@incajs/cli 0.0.22 → 0.0.23
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 +5 -6
- package/dist/chunks/_format-CFy6_BQd.js +1 -0
- package/dist/chunks/defaults-DfHXv1fN.js +1 -0
- package/dist/chunks/dist-B-B_PlmU.js +1 -0
- package/dist/chunks/dist-BTWvruNB.js +1 -0
- package/dist/chunks/json5-BcF68iGq.js +14 -0
- package/dist/chunks/jsonc-DJWoCi14.js +4 -0
- package/dist/chunks/ohash-DUMW2FP0.js +1 -0
- package/dist/chunks/rolldown-runtime-DT7IzrpZ.js +1 -0
- package/dist/chunks/toml-n3nLqi2g.js +5 -0
- package/dist/chunks/types-Dz2aIWaI.d.ts +84 -0
- package/dist/chunks/yaml-DtBxpt6z.js +38 -0
- package/dist/{cli.d.mts → cli.d.ts} +1 -1
- package/dist/cli.js +22 -2229
- package/dist/config.d.ts +35 -0
- package/dist/config.js +1 -5
- package/dist/index.d.ts +27 -0
- package/dist/index.js +1 -0
- package/dist/vite-runtime.d.ts +28 -0
- package/dist/vite-runtime.js +7 -1179
- package/package.json +8 -26
- package/dist/adapterCore.d.mts +0 -11
- package/dist/build.d.mts +0 -28
- package/dist/chunks/__vite-optional-peer-dep_dotenv_c12-CxKvRg9-.js +0 -3
- package/dist/chunks/__vite-optional-peer-dep_giget_c12-BYcrHYBM.js +0 -5
- package/dist/chunks/__vite-optional-peer-dep_jiti_c12-DZVJNj6v.js +0 -5
- package/dist/chunks/_format-BKs7bsc4.js +0 -98
- package/dist/chunks/defaults-Ct95BSBl.js +0 -23
- package/dist/chunks/dist-C64iuQVW.js +0 -730
- package/dist/chunks/dist-DrnNGO2a.js +0 -114
- package/dist/chunks/json5-RapVXICN.js +0 -711
- package/dist/chunks/jsonc-BDHXk_1o.js +0 -40
- package/dist/chunks/ohash-Cc4pJh84.js +0 -231
- package/dist/chunks/rolldown-runtime-Dy4uBu1J.js +0 -11
- package/dist/chunks/toml-CgS7wGvD.js +0 -416
- package/dist/chunks/yaml-U_oPOIGK.js +0 -2123
- package/dist/config/defaults.d.mts +0 -45
- package/dist/config/index.d.mts +0 -18
- package/dist/config/loader.d.mts +0 -82
- package/dist/config/types.d.mts +0 -73
- package/dist/defaultBundler.d.mts +0 -7
- package/dist/dev-client/hostBin.d.mts +0 -15
- package/dist/dev-client/hostClient.d.mts +0 -70
- package/dist/dev-client/hostError.d.mts +0 -6
- package/dist/dev-client/index.d.mts +0 -4
- package/dist/dev-client/protocol.d.mts +0 -39
- package/dist/dev.d.mts +0 -51
- package/dist/devLock.d.mts +0 -11
- package/dist/entry.d.mts +0 -29
- package/dist/error.d.mts +0 -15
- package/dist/index.d.mts +0 -1
- package/dist/log.d.mts +0 -36
- package/dist/macosApp.d.mts +0 -47
- package/dist/package.d.mts +0 -50
- package/dist/plist.d.mts +0 -4
- package/dist/printConfig.d.mts +0 -20
- package/dist/retryOnEdit.d.mts +0 -32
- package/dist/types.d.mts +0 -136
- package/dist/vite/build.d.mts +0 -6
- package/dist/vite/captureOutput.d.mts +0 -17
- package/dist/vite/config.d.mts +0 -45
- package/dist/vite/createBundler.d.mts +0 -7
- package/dist/vite/emitConfig.d.mts +0 -17
- package/dist/vite/hmr.d.mts +0 -37
- package/dist/vite/index.d.mts +0 -1
- package/dist/vite/logger.d.mts +0 -8
- package/dist/vite/unsupported.d.mts +0 -24
- package/dist/vite/watch.d.mts +0 -7
- package/dist/watchForEdit.d.mts +0 -27
|
@@ -1,2123 +0,0 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./_format-BKs7bsc4.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/confbox@0.3.1/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs
|
|
3
|
-
var r = Symbol("NOT_RESOLVED");
|
|
4
|
-
function i(e, t) {
|
|
5
|
-
return {
|
|
6
|
-
tagName: e,
|
|
7
|
-
nodeKind: "scalar",
|
|
8
|
-
implicit: t.implicit ?? !1,
|
|
9
|
-
matchByTagPrefix: t.matchByTagPrefix ?? !1,
|
|
10
|
-
implicitFirstChars: t.implicitFirstChars ?? null,
|
|
11
|
-
resolve: t.resolve,
|
|
12
|
-
identify: t.identify,
|
|
13
|
-
represent: t.represent ?? ((e) => String(e)),
|
|
14
|
-
representTagName: t.representTagName ?? (() => e)
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
function a(e, t) {
|
|
18
|
-
let n = t.finalize === void 0;
|
|
19
|
-
return {
|
|
20
|
-
tagName: e,
|
|
21
|
-
nodeKind: "sequence",
|
|
22
|
-
implicit: !1,
|
|
23
|
-
matchByTagPrefix: t.matchByTagPrefix ?? !1,
|
|
24
|
-
create: t.create,
|
|
25
|
-
addItem: t.addItem,
|
|
26
|
-
finalize: t.finalize ?? ((e) => e),
|
|
27
|
-
carrierIsResult: n,
|
|
28
|
-
identify: t.identify,
|
|
29
|
-
represent: t.represent ?? ((e) => e),
|
|
30
|
-
representTagName: t.representTagName ?? (() => e)
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function o(e, t) {
|
|
34
|
-
let n = t.finalize === void 0;
|
|
35
|
-
return {
|
|
36
|
-
tagName: e,
|
|
37
|
-
nodeKind: "mapping",
|
|
38
|
-
implicit: !1,
|
|
39
|
-
matchByTagPrefix: t.matchByTagPrefix ?? !1,
|
|
40
|
-
create: t.create,
|
|
41
|
-
addPair: t.addPair,
|
|
42
|
-
has: t.has,
|
|
43
|
-
keys: t.keys,
|
|
44
|
-
get: t.get,
|
|
45
|
-
finalize: t.finalize ?? ((e) => e),
|
|
46
|
-
carrierIsResult: n,
|
|
47
|
-
identify: t.identify,
|
|
48
|
-
represent: t.represent ?? ((e) => e),
|
|
49
|
-
representTagName: t.representTagName ?? (() => e)
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
var s = i("tag:yaml.org,2002:str", {
|
|
53
|
-
resolve: (e) => e,
|
|
54
|
-
identify: (e) => typeof e == "string"
|
|
55
|
-
}), c = [
|
|
56
|
-
"",
|
|
57
|
-
"~",
|
|
58
|
-
"null",
|
|
59
|
-
"Null",
|
|
60
|
-
"NULL"
|
|
61
|
-
], l = i("tag:yaml.org,2002:null", {
|
|
62
|
-
implicit: !0,
|
|
63
|
-
implicitFirstChars: [
|
|
64
|
-
"",
|
|
65
|
-
"~",
|
|
66
|
-
"n",
|
|
67
|
-
"N"
|
|
68
|
-
],
|
|
69
|
-
resolve: (e) => c.indexOf(e) === -1 ? r : null,
|
|
70
|
-
identify: (e) => e === null,
|
|
71
|
-
represent: () => "null"
|
|
72
|
-
}), u = i("tag:yaml.org,2002:null", {
|
|
73
|
-
implicit: !0,
|
|
74
|
-
implicitFirstChars: ["n"],
|
|
75
|
-
resolve: (e, t) => e === "null" || t && e === "" ? null : r,
|
|
76
|
-
identify: (e) => e === null,
|
|
77
|
-
represent: () => "null"
|
|
78
|
-
}), d = [
|
|
79
|
-
"",
|
|
80
|
-
"~",
|
|
81
|
-
"null",
|
|
82
|
-
"Null",
|
|
83
|
-
"NULL"
|
|
84
|
-
], f = i("tag:yaml.org,2002:null", {
|
|
85
|
-
implicit: !0,
|
|
86
|
-
implicitFirstChars: [
|
|
87
|
-
"",
|
|
88
|
-
"~",
|
|
89
|
-
"n",
|
|
90
|
-
"N"
|
|
91
|
-
],
|
|
92
|
-
resolve: (e) => d.indexOf(e) === -1 ? r : null,
|
|
93
|
-
identify: (e) => e === null,
|
|
94
|
-
represent: () => "null"
|
|
95
|
-
}), p = [
|
|
96
|
-
"true",
|
|
97
|
-
"True",
|
|
98
|
-
"TRUE"
|
|
99
|
-
], m = [
|
|
100
|
-
"false",
|
|
101
|
-
"False",
|
|
102
|
-
"FALSE"
|
|
103
|
-
], h = i("tag:yaml.org,2002:bool", {
|
|
104
|
-
implicit: !0,
|
|
105
|
-
implicitFirstChars: [
|
|
106
|
-
"t",
|
|
107
|
-
"T",
|
|
108
|
-
"f",
|
|
109
|
-
"F"
|
|
110
|
-
],
|
|
111
|
-
resolve: (e) => p.indexOf(e) !== -1 || m.indexOf(e) === -1 && r,
|
|
112
|
-
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
113
|
-
represent: (e) => e ? "true" : "false"
|
|
114
|
-
}), ee = ["true"], te = ["false"], ne = i("tag:yaml.org,2002:bool", {
|
|
115
|
-
implicit: !0,
|
|
116
|
-
implicitFirstChars: ["t", "f"],
|
|
117
|
-
resolve: (e) => ee.indexOf(e) !== -1 || te.indexOf(e) === -1 && r,
|
|
118
|
-
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
119
|
-
represent: (e) => e ? "true" : "false"
|
|
120
|
-
}), re = [
|
|
121
|
-
"true",
|
|
122
|
-
"True",
|
|
123
|
-
"TRUE",
|
|
124
|
-
"y",
|
|
125
|
-
"Y",
|
|
126
|
-
"yes",
|
|
127
|
-
"Yes",
|
|
128
|
-
"YES",
|
|
129
|
-
"on",
|
|
130
|
-
"On",
|
|
131
|
-
"ON"
|
|
132
|
-
], ie = [
|
|
133
|
-
"false",
|
|
134
|
-
"False",
|
|
135
|
-
"FALSE",
|
|
136
|
-
"n",
|
|
137
|
-
"N",
|
|
138
|
-
"no",
|
|
139
|
-
"No",
|
|
140
|
-
"NO",
|
|
141
|
-
"off",
|
|
142
|
-
"Off",
|
|
143
|
-
"OFF"
|
|
144
|
-
], ae = i("tag:yaml.org,2002:bool", {
|
|
145
|
-
implicit: !0,
|
|
146
|
-
implicitFirstChars: [
|
|
147
|
-
"y",
|
|
148
|
-
"Y",
|
|
149
|
-
"n",
|
|
150
|
-
"N",
|
|
151
|
-
"t",
|
|
152
|
-
"T",
|
|
153
|
-
"f",
|
|
154
|
-
"F",
|
|
155
|
-
"o",
|
|
156
|
-
"O"
|
|
157
|
-
],
|
|
158
|
-
resolve: (e) => re.indexOf(e) !== -1 || ie.indexOf(e) === -1 && r,
|
|
159
|
-
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
160
|
-
represent: (e) => e ? "true" : "false"
|
|
161
|
-
}), oe = RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"), se = RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
|
|
162
|
-
function ce(e) {
|
|
163
|
-
let t = e, n = 1;
|
|
164
|
-
return (t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b") ? n * parseInt(t.slice(2), 2) : t.startsWith("0o") ? n * parseInt(t.slice(2), 8) : t.startsWith("0x") ? n * parseInt(t.slice(2), 16) : n * parseInt(t, 10);
|
|
165
|
-
}
|
|
166
|
-
function le(e, t) {
|
|
167
|
-
if (t) {
|
|
168
|
-
if (!se.test(e)) return r;
|
|
169
|
-
} else if (!oe.test(e)) return r;
|
|
170
|
-
let n = ce(e);
|
|
171
|
-
return Number.isFinite(n) ? n : r;
|
|
172
|
-
}
|
|
173
|
-
var ue = i("tag:yaml.org,2002:int", {
|
|
174
|
-
implicit: !0,
|
|
175
|
-
implicitFirstChars: [
|
|
176
|
-
"-",
|
|
177
|
-
"+",
|
|
178
|
-
..."0123456789"
|
|
179
|
-
],
|
|
180
|
-
resolve: le,
|
|
181
|
-
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
182
|
-
represent: (e) => e.toString(10)
|
|
183
|
-
}), de = RegExp("^-?(?:0|[1-9][0-9]*)$"), fe = RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
|
|
184
|
-
function pe(e) {
|
|
185
|
-
let t = e, n = 1;
|
|
186
|
-
return (t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b") ? n * parseInt(t.slice(2), 2) : t.startsWith("0o") ? n * parseInt(t.slice(2), 8) : t.startsWith("0x") ? n * parseInt(t.slice(2), 16) : n * parseInt(t, 10);
|
|
187
|
-
}
|
|
188
|
-
function me(e, t) {
|
|
189
|
-
if (t) {
|
|
190
|
-
if (!fe.test(e)) return r;
|
|
191
|
-
} else if (!de.test(e)) return r;
|
|
192
|
-
let n = pe(e);
|
|
193
|
-
return Number.isFinite(n) ? n : r;
|
|
194
|
-
}
|
|
195
|
-
var he = i("tag:yaml.org,2002:int", {
|
|
196
|
-
implicit: !0,
|
|
197
|
-
implicitFirstChars: ["-", ..."0123456789"],
|
|
198
|
-
resolve: me,
|
|
199
|
-
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
200
|
-
represent: (e) => e.toString(10)
|
|
201
|
-
}), ge = RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");
|
|
202
|
-
function _e(e) {
|
|
203
|
-
let t = e.replace(/_/g, ""), n = 1;
|
|
204
|
-
if ((t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b")) return n * parseInt(t.slice(2), 2);
|
|
205
|
-
if (t.startsWith("0x")) return n * parseInt(t.slice(2), 16);
|
|
206
|
-
if (t.includes(":")) {
|
|
207
|
-
let e = 0;
|
|
208
|
-
for (let n of t.split(":")) e = e * 60 + Number(n);
|
|
209
|
-
return n * e;
|
|
210
|
-
}
|
|
211
|
-
return t !== "0" && t[0] === "0" ? n * parseInt(t, 8) : n * parseInt(t, 10);
|
|
212
|
-
}
|
|
213
|
-
function ve(e) {
|
|
214
|
-
if (!ge.test(e)) return r;
|
|
215
|
-
let t = _e(e);
|
|
216
|
-
return Number.isFinite(t) ? t : r;
|
|
217
|
-
}
|
|
218
|
-
var ye = i("tag:yaml.org,2002:int", {
|
|
219
|
-
implicit: !0,
|
|
220
|
-
implicitFirstChars: [
|
|
221
|
-
"-",
|
|
222
|
-
"+",
|
|
223
|
-
..."0123456789"
|
|
224
|
-
],
|
|
225
|
-
resolve: ve,
|
|
226
|
-
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
227
|
-
represent: (e) => e.toString(10)
|
|
228
|
-
}), be = RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), xe = RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
229
|
-
function Se(e) {
|
|
230
|
-
if (!be.test(e)) return r;
|
|
231
|
-
let t = e.toLowerCase(), n = t[0] === "-" ? -1 : 1;
|
|
232
|
-
if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? 1 / 0 : -1 / 0;
|
|
233
|
-
if (t === ".nan") return NaN;
|
|
234
|
-
let i = n * parseFloat(t);
|
|
235
|
-
return Number.isFinite(i) || xe.test(e) ? i : r;
|
|
236
|
-
}
|
|
237
|
-
function Ce(e) {
|
|
238
|
-
if (isNaN(e)) return ".nan";
|
|
239
|
-
if (e === 1 / 0) return ".inf";
|
|
240
|
-
if (e === -1 / 0) return "-.inf";
|
|
241
|
-
if (Object.is(e, -0)) return "-0.0";
|
|
242
|
-
let t = e.toString(10);
|
|
243
|
-
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
244
|
-
}
|
|
245
|
-
var we = i("tag:yaml.org,2002:float", {
|
|
246
|
-
implicit: !0,
|
|
247
|
-
implicitFirstChars: [
|
|
248
|
-
"-",
|
|
249
|
-
"+",
|
|
250
|
-
".",
|
|
251
|
-
..."0123456789"
|
|
252
|
-
],
|
|
253
|
-
resolve: Se,
|
|
254
|
-
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
255
|
-
represent: Ce
|
|
256
|
-
}), Te = RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"), Ee = RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
257
|
-
function De(e, t) {
|
|
258
|
-
if (t) {
|
|
259
|
-
if (!Ee.test(e)) return r;
|
|
260
|
-
let t = e.toLowerCase(), n = t[0] === "-" ? -1 : 1;
|
|
261
|
-
if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? 1 / 0 : -1 / 0;
|
|
262
|
-
if (t === ".nan") return NaN;
|
|
263
|
-
let i = n * parseFloat(t);
|
|
264
|
-
return Number.isFinite(i) ? i : r;
|
|
265
|
-
}
|
|
266
|
-
if (!Te.test(e)) return r;
|
|
267
|
-
let n = Number(e);
|
|
268
|
-
return Number.isFinite(n) ? n : r;
|
|
269
|
-
}
|
|
270
|
-
function Oe(e) {
|
|
271
|
-
if (isNaN(e)) return ".nan";
|
|
272
|
-
if (e === 1 / 0) return ".inf";
|
|
273
|
-
if (e === -1 / 0) return "-.inf";
|
|
274
|
-
if (Object.is(e, -0)) return "-0.0";
|
|
275
|
-
let t = e.toString(10);
|
|
276
|
-
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
277
|
-
}
|
|
278
|
-
var ke = i("tag:yaml.org,2002:float", {
|
|
279
|
-
implicit: !0,
|
|
280
|
-
implicitFirstChars: ["-", ..."0123456789"],
|
|
281
|
-
resolve: De,
|
|
282
|
-
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
283
|
-
represent: Oe
|
|
284
|
-
}), Ae = RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), je = RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
285
|
-
function Me(e) {
|
|
286
|
-
if (!Ae.test(e)) return r;
|
|
287
|
-
let t = e.toLowerCase().replace(/_/g, ""), n = t[0] === "-" ? -1 : 1;
|
|
288
|
-
if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? 1 / 0 : -1 / 0;
|
|
289
|
-
if (t === ".nan") return NaN;
|
|
290
|
-
let i = 0;
|
|
291
|
-
if (t.includes(":")) {
|
|
292
|
-
for (let e of t.split(":")) i = i * 60 + Number(e);
|
|
293
|
-
i *= n;
|
|
294
|
-
} else i = n * parseFloat(t);
|
|
295
|
-
return Number.isFinite(i) || je.test(e) ? i : r;
|
|
296
|
-
}
|
|
297
|
-
function Ne(e) {
|
|
298
|
-
if (isNaN(e)) return ".nan";
|
|
299
|
-
if (e === 1 / 0) return ".inf";
|
|
300
|
-
if (e === -1 / 0) return "-.inf";
|
|
301
|
-
if (Object.is(e, -0)) return "-0.0";
|
|
302
|
-
let t = e.toString(10);
|
|
303
|
-
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
304
|
-
}
|
|
305
|
-
var Pe = i("tag:yaml.org,2002:float", {
|
|
306
|
-
implicit: !0,
|
|
307
|
-
implicitFirstChars: [
|
|
308
|
-
"-",
|
|
309
|
-
"+",
|
|
310
|
-
".",
|
|
311
|
-
..."0123456789"
|
|
312
|
-
],
|
|
313
|
-
resolve: Me,
|
|
314
|
-
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
315
|
-
represent: Ne
|
|
316
|
-
}), Fe = i("tag:yaml.org,2002:merge", {
|
|
317
|
-
implicit: !0,
|
|
318
|
-
implicitFirstChars: ["<"],
|
|
319
|
-
resolve: (e, t) => e === "<<" || t && e === "" ? "<<" : r,
|
|
320
|
-
identify: () => !1
|
|
321
|
-
}), Ie = /^[A-Za-z0-9+/]*={0,2}$/;
|
|
322
|
-
function Le(e) {
|
|
323
|
-
let t = e.replace(/\s/g, "");
|
|
324
|
-
if (t.length % 4 != 0 || !Ie.test(t)) return r;
|
|
325
|
-
let n = atob(t), i = new Uint8Array(n.length);
|
|
326
|
-
for (let e = 0; e < n.length; e++) i[e] = n.charCodeAt(e);
|
|
327
|
-
return i;
|
|
328
|
-
}
|
|
329
|
-
function Re(e) {
|
|
330
|
-
let t = "";
|
|
331
|
-
for (let n = 0; n < e.length; n++) t += String.fromCharCode(e[n]);
|
|
332
|
-
return btoa(t);
|
|
333
|
-
}
|
|
334
|
-
var ze = i("tag:yaml.org,2002:binary", {
|
|
335
|
-
resolve: Le,
|
|
336
|
-
identify: (e) => Object.prototype.toString.call(e) === "[object Uint8Array]",
|
|
337
|
-
represent: Re
|
|
338
|
-
}), Be = RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), Ve = RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
339
|
-
function He(e, t, n, r = 0, i = 0, a = 0, o = 0) {
|
|
340
|
-
let s = new Date(Date.UTC(e, t, n, r, i, a, o));
|
|
341
|
-
return s.setUTCFullYear(e, t, n), s;
|
|
342
|
-
}
|
|
343
|
-
function Ue(e) {
|
|
344
|
-
let t = Be.exec(e);
|
|
345
|
-
if (t === null && (t = Ve.exec(e)), t === null) return r;
|
|
346
|
-
let n = +t[1], i = t[2] - 1, a = +t[3];
|
|
347
|
-
if (!t[4]) {
|
|
348
|
-
let e = He(n, i, a);
|
|
349
|
-
return e.getUTCFullYear() !== n || e.getUTCMonth() !== i || e.getUTCDate() !== a ? r : e;
|
|
350
|
-
}
|
|
351
|
-
let o = +t[4], s = +t[5], c = +t[6], l = 0;
|
|
352
|
-
if (o > 23 || s > 59 || c > 59) return r;
|
|
353
|
-
if (t[7]) {
|
|
354
|
-
let e = t[7].slice(0, 3);
|
|
355
|
-
for (; e.length < 3;) e += "0";
|
|
356
|
-
l = +e;
|
|
357
|
-
}
|
|
358
|
-
let u = He(n, i, a, o, s, c, l);
|
|
359
|
-
if (u.getUTCFullYear() !== n || u.getUTCMonth() !== i || u.getUTCDate() !== a) return r;
|
|
360
|
-
if (t[9]) {
|
|
361
|
-
let e = +t[10], n = +(t[11] || 0);
|
|
362
|
-
if (e > 23 || n > 59) return r;
|
|
363
|
-
let i = (e * 60 + n) * 6e4;
|
|
364
|
-
u.setTime(u.getTime() - (t[9] === "-" ? -i : i));
|
|
365
|
-
}
|
|
366
|
-
return u;
|
|
367
|
-
}
|
|
368
|
-
var We = i("tag:yaml.org,2002:timestamp", {
|
|
369
|
-
implicit: !0,
|
|
370
|
-
implicitFirstChars: [..."0123456789"],
|
|
371
|
-
resolve: Ue,
|
|
372
|
-
identify: (e) => e instanceof Date,
|
|
373
|
-
represent: (e) => e.toISOString()
|
|
374
|
-
}), Ge = a("tag:yaml.org,2002:seq", {
|
|
375
|
-
create: () => [],
|
|
376
|
-
addItem: (e, t) => {
|
|
377
|
-
e.push(t);
|
|
378
|
-
},
|
|
379
|
-
identify: Array.isArray
|
|
380
|
-
});
|
|
381
|
-
function g(e) {
|
|
382
|
-
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
383
|
-
let t = Object.getPrototypeOf(e);
|
|
384
|
-
return t === null || t === Object.prototype;
|
|
385
|
-
}
|
|
386
|
-
function Ke(e, t) {
|
|
387
|
-
let n = {};
|
|
388
|
-
for (let r of t) e[r] !== void 0 && (n[r] = e[r]);
|
|
389
|
-
return n;
|
|
390
|
-
}
|
|
391
|
-
var qe = a("tag:yaml.org,2002:omap", {
|
|
392
|
-
create: () => ({
|
|
393
|
-
list: [],
|
|
394
|
-
seen: /* @__PURE__ */ new Set()
|
|
395
|
-
}),
|
|
396
|
-
addItem: (e, t) => {
|
|
397
|
-
let n;
|
|
398
|
-
if (t instanceof Map) {
|
|
399
|
-
if (t.size !== 1) return "cannot resolve an ordered map item";
|
|
400
|
-
n = t.keys().next().value;
|
|
401
|
-
} else if (g(t)) {
|
|
402
|
-
let e = Object.keys(t);
|
|
403
|
-
if (e.length !== 1) return "cannot resolve an ordered map item";
|
|
404
|
-
n = e[0];
|
|
405
|
-
} else return "cannot resolve an ordered map item";
|
|
406
|
-
return e.seen.has(n) ? "duplicate key in ordered map" : (e.seen.add(n), e.list.push(t), "");
|
|
407
|
-
},
|
|
408
|
-
finalize: (e) => e.list,
|
|
409
|
-
identify: () => !1
|
|
410
|
-
}), Je = a("tag:yaml.org,2002:pairs", {
|
|
411
|
-
create: () => [],
|
|
412
|
-
addItem: (e, t) => {
|
|
413
|
-
if (t instanceof Map) return t.size === 1 ? (e.push(t.entries().next().value), "") : "cannot resolve a pairs item";
|
|
414
|
-
if (Object.prototype.toString.call(t) !== "[object Object]") return "cannot resolve a pairs item";
|
|
415
|
-
let n = t, r = Object.keys(n);
|
|
416
|
-
return r.length === 1 ? (e.push([r[0], n[r[0]]]), "") : "cannot resolve a pairs item";
|
|
417
|
-
},
|
|
418
|
-
identify: () => !1
|
|
419
|
-
}), Ye = o("tag:yaml.org,2002:map", {
|
|
420
|
-
create: () => ({}),
|
|
421
|
-
identify: g,
|
|
422
|
-
represent: (e) => {
|
|
423
|
-
let t = /* @__PURE__ */ new Map();
|
|
424
|
-
for (let n of Object.keys(e)) t.set(n, e[n]);
|
|
425
|
-
return t;
|
|
426
|
-
},
|
|
427
|
-
addPair: (e, t, n) => {
|
|
428
|
-
if (typeof t == "object" && t) return "object-based map does not support complex keys";
|
|
429
|
-
let r = String(t);
|
|
430
|
-
return r === "__proto__" ? Object.defineProperty(e, r, {
|
|
431
|
-
value: n,
|
|
432
|
-
enumerable: !0,
|
|
433
|
-
configurable: !0,
|
|
434
|
-
writable: !0
|
|
435
|
-
}) : e[r] = n, "";
|
|
436
|
-
},
|
|
437
|
-
has: (e, t) => typeof t == "object" && t ? !1 : Object.prototype.hasOwnProperty.call(e, String(t)),
|
|
438
|
-
keys: (e) => Object.keys(e),
|
|
439
|
-
get: (e, t) => {
|
|
440
|
-
let n = String(t);
|
|
441
|
-
return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
|
|
442
|
-
}
|
|
443
|
-
}), Xe = o("tag:yaml.org,2002:set", {
|
|
444
|
-
create: () => /* @__PURE__ */ new Set(),
|
|
445
|
-
identify: (e) => e instanceof Set,
|
|
446
|
-
represent: (e) => {
|
|
447
|
-
let t = /* @__PURE__ */ new Map();
|
|
448
|
-
for (let n of e) t.set(n, null);
|
|
449
|
-
return t;
|
|
450
|
-
},
|
|
451
|
-
addPair: (e, t, n) => n === null ? (e.add(t), "") : "cannot resolve a set item",
|
|
452
|
-
has: (e, t) => e.has(t),
|
|
453
|
-
keys: (e) => e.keys(),
|
|
454
|
-
get: () => null
|
|
455
|
-
});
|
|
456
|
-
function Ze() {
|
|
457
|
-
return {
|
|
458
|
-
scalar: Object.create(null),
|
|
459
|
-
sequence: Object.create(null),
|
|
460
|
-
mapping: Object.create(null)
|
|
461
|
-
};
|
|
462
|
-
}
|
|
463
|
-
function Qe() {
|
|
464
|
-
return {
|
|
465
|
-
scalar: [],
|
|
466
|
-
sequence: [],
|
|
467
|
-
mapping: []
|
|
468
|
-
};
|
|
469
|
-
}
|
|
470
|
-
function $e(e) {
|
|
471
|
-
let t = [];
|
|
472
|
-
for (let n of e) {
|
|
473
|
-
let e = t.length;
|
|
474
|
-
for (let r = 0; r < t.length; r++) {
|
|
475
|
-
let i = t[r];
|
|
476
|
-
if (i.nodeKind === n.nodeKind && i.tagName === n.tagName && i.matchByTagPrefix === n.matchByTagPrefix) {
|
|
477
|
-
e = r;
|
|
478
|
-
break;
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
t[e] = n;
|
|
482
|
-
}
|
|
483
|
-
return t;
|
|
484
|
-
}
|
|
485
|
-
var _ = class e {
|
|
486
|
-
tags;
|
|
487
|
-
implicitScalarTags;
|
|
488
|
-
implicitScalarByFirstChar;
|
|
489
|
-
implicitScalarAnyFirstChar;
|
|
490
|
-
defaultScalarTag;
|
|
491
|
-
defaultSequenceTag;
|
|
492
|
-
defaultMappingTag;
|
|
493
|
-
exact;
|
|
494
|
-
prefix;
|
|
495
|
-
constructor(e) {
|
|
496
|
-
let t = $e(e), n = [], r = Ze(), i = Qe();
|
|
497
|
-
for (let e of t) {
|
|
498
|
-
if (e.nodeKind === "scalar" && e.implicit) {
|
|
499
|
-
if (e.matchByTagPrefix) throw Error("Implicit scalar tags cannot match by tag prefix");
|
|
500
|
-
n.push(e);
|
|
501
|
-
}
|
|
502
|
-
switch (e.nodeKind) {
|
|
503
|
-
case "scalar":
|
|
504
|
-
e.matchByTagPrefix ? i.scalar.push(e) : r.scalar[e.tagName] = e;
|
|
505
|
-
break;
|
|
506
|
-
case "sequence":
|
|
507
|
-
e.matchByTagPrefix ? i.sequence.push(e) : r.sequence[e.tagName] = e;
|
|
508
|
-
break;
|
|
509
|
-
case "mapping": e.matchByTagPrefix ? i.mapping.push(e) : r.mapping[e.tagName] = e;
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
let a = n.filter((e) => e.implicitFirstChars === null), o = /* @__PURE__ */ new Set();
|
|
513
|
-
for (let e of n) if (e.implicitFirstChars !== null) for (let t of e.implicitFirstChars) o.add(t);
|
|
514
|
-
let s = /* @__PURE__ */ new Map();
|
|
515
|
-
for (let e of o) s.set(e, n.filter((t) => t.implicitFirstChars === null || t.implicitFirstChars.indexOf(e) !== -1));
|
|
516
|
-
let c = r.scalar["tag:yaml.org,2002:str"];
|
|
517
|
-
if (!c) throw Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");
|
|
518
|
-
this.tags = t, this.implicitScalarTags = n, this.implicitScalarByFirstChar = s, this.implicitScalarAnyFirstChar = a, this.defaultScalarTag = c, this.defaultSequenceTag = r.sequence["tag:yaml.org,2002:seq"], this.defaultMappingTag = r.mapping["tag:yaml.org,2002:map"], this.exact = r, this.prefix = i;
|
|
519
|
-
}
|
|
520
|
-
lookupScalarTag(e) {
|
|
521
|
-
let t = this.exact.scalar[e];
|
|
522
|
-
if (t) return t;
|
|
523
|
-
for (let t of this.prefix.scalar) if (e.startsWith(t.tagName)) return t;
|
|
524
|
-
}
|
|
525
|
-
lookupSequenceTag(e) {
|
|
526
|
-
let t = this.exact.sequence[e];
|
|
527
|
-
if (t) return t;
|
|
528
|
-
for (let t of this.prefix.sequence) if (e.startsWith(t.tagName)) return t;
|
|
529
|
-
}
|
|
530
|
-
lookupMappingTag(e) {
|
|
531
|
-
let t = this.exact.mapping[e];
|
|
532
|
-
if (t) return t;
|
|
533
|
-
for (let t of this.prefix.mapping) if (e.startsWith(t.tagName)) return t;
|
|
534
|
-
}
|
|
535
|
-
resolveImplicitScalarTag(e) {
|
|
536
|
-
let t = this.implicitScalarByFirstChar.get(e.charAt(0)) ?? this.implicitScalarAnyFirstChar;
|
|
537
|
-
for (let n of t) {
|
|
538
|
-
let t = n.resolve(e, !1, n.tagName);
|
|
539
|
-
if (t !== r) return {
|
|
540
|
-
value: t,
|
|
541
|
-
tag: n
|
|
542
|
-
};
|
|
543
|
-
}
|
|
544
|
-
let n = this.defaultScalarTag;
|
|
545
|
-
return {
|
|
546
|
-
value: n.resolve(e, !1, n.tagName),
|
|
547
|
-
tag: n
|
|
548
|
-
};
|
|
549
|
-
}
|
|
550
|
-
withTags(...t) {
|
|
551
|
-
let n = [];
|
|
552
|
-
for (let e of t) n = n.concat(e);
|
|
553
|
-
return new e([...this.tags, ...n]);
|
|
554
|
-
}
|
|
555
|
-
}, et = new _([
|
|
556
|
-
s,
|
|
557
|
-
Ge,
|
|
558
|
-
Ye
|
|
559
|
-
]);
|
|
560
|
-
new _([
|
|
561
|
-
...et.tags,
|
|
562
|
-
u,
|
|
563
|
-
ne,
|
|
564
|
-
he,
|
|
565
|
-
ke
|
|
566
|
-
]);
|
|
567
|
-
var tt = new _([
|
|
568
|
-
...et.tags,
|
|
569
|
-
l,
|
|
570
|
-
h,
|
|
571
|
-
ue,
|
|
572
|
-
we
|
|
573
|
-
]), nt = new _([
|
|
574
|
-
...et.tags,
|
|
575
|
-
f,
|
|
576
|
-
ae,
|
|
577
|
-
ye,
|
|
578
|
-
Pe,
|
|
579
|
-
We,
|
|
580
|
-
Fe,
|
|
581
|
-
ze,
|
|
582
|
-
qe,
|
|
583
|
-
Je,
|
|
584
|
-
Xe
|
|
585
|
-
]).withTags({
|
|
586
|
-
...ye,
|
|
587
|
-
resolve: (e, t, n) => {
|
|
588
|
-
let i = ye.resolve(e, t, n);
|
|
589
|
-
return i === r ? ue.resolve(e, t, n) : i;
|
|
590
|
-
}
|
|
591
|
-
}, {
|
|
592
|
-
...Pe,
|
|
593
|
-
resolve: (e, t, n) => {
|
|
594
|
-
let i = Pe.resolve(e, t, n);
|
|
595
|
-
return i === r ? we.resolve(e, t, n) : i;
|
|
596
|
-
}
|
|
597
|
-
});
|
|
598
|
-
o("tag:yaml.org,2002:map", {
|
|
599
|
-
create: () => /* @__PURE__ */ new Map(),
|
|
600
|
-
addPair: (e, t, n) => (e.set(t, n), ""),
|
|
601
|
-
has: (e, t) => e.has(t),
|
|
602
|
-
keys: (e) => e.keys(),
|
|
603
|
-
get: (e, t) => e.get(t),
|
|
604
|
-
identify: (e) => e instanceof Map || g(e),
|
|
605
|
-
represent: (e) => {
|
|
606
|
-
if (e instanceof Map) return e;
|
|
607
|
-
let t = /* @__PURE__ */ new Map(), n = e;
|
|
608
|
-
for (let e of Object.keys(n)) t.set(e, n[e]);
|
|
609
|
-
return t;
|
|
610
|
-
}
|
|
611
|
-
});
|
|
612
|
-
function rt(e) {
|
|
613
|
-
if (Array.isArray(e)) {
|
|
614
|
-
let t = Array.prototype.slice.call(e);
|
|
615
|
-
for (let e = 0; e < t.length; e++) {
|
|
616
|
-
if (Array.isArray(t[e])) return null;
|
|
617
|
-
typeof t[e] == "object" && Object.prototype.toString.call(t[e]) === "[object Object]" && (t[e] = "[object Object]");
|
|
618
|
-
}
|
|
619
|
-
return String(t);
|
|
620
|
-
}
|
|
621
|
-
return typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" ? "[object Object]" : String(e);
|
|
622
|
-
}
|
|
623
|
-
o("tag:yaml.org,2002:map", {
|
|
624
|
-
create: () => ({}),
|
|
625
|
-
identify: g,
|
|
626
|
-
represent: (e) => {
|
|
627
|
-
let t = /* @__PURE__ */ new Map();
|
|
628
|
-
for (let n of Object.keys(e)) t.set(n, e[n]);
|
|
629
|
-
return t;
|
|
630
|
-
},
|
|
631
|
-
addPair: (e, t, n) => {
|
|
632
|
-
let r = rt(t);
|
|
633
|
-
return r === null ? "nested arrays are not supported inside keys" : (r === "__proto__" ? Object.defineProperty(e, r, {
|
|
634
|
-
value: n,
|
|
635
|
-
enumerable: !0,
|
|
636
|
-
configurable: !0,
|
|
637
|
-
writable: !0
|
|
638
|
-
}) : e[r] = n, "");
|
|
639
|
-
},
|
|
640
|
-
has: (e, t) => {
|
|
641
|
-
let n = rt(t);
|
|
642
|
-
return n !== null && Object.prototype.hasOwnProperty.call(e, n);
|
|
643
|
-
},
|
|
644
|
-
keys: (e) => Object.keys(e),
|
|
645
|
-
get: (e, t) => {
|
|
646
|
-
let n = String(t);
|
|
647
|
-
return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
|
|
648
|
-
}
|
|
649
|
-
});
|
|
650
|
-
var it = {
|
|
651
|
-
maxLength: 79,
|
|
652
|
-
indent: 1,
|
|
653
|
-
linesBefore: 3,
|
|
654
|
-
linesAfter: 2
|
|
655
|
-
};
|
|
656
|
-
function at(e, t, n, r, i) {
|
|
657
|
-
let a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
658
|
-
return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
|
|
659
|
-
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
660
|
-
pos: r - t + a.length
|
|
661
|
-
};
|
|
662
|
-
}
|
|
663
|
-
function ot(e, t) {
|
|
664
|
-
return " ".repeat(Math.max(t - e.length, 0)) + e;
|
|
665
|
-
}
|
|
666
|
-
function st(e, t) {
|
|
667
|
-
if (!e.buffer) return null;
|
|
668
|
-
let n = {
|
|
669
|
-
...it,
|
|
670
|
-
...t
|
|
671
|
-
}, r = /\r?\n|\r|\0/g, i = [0], a = [], o, s = -1;
|
|
672
|
-
for (; o = r.exec(e.buffer);) a.push(o.index), i.push(o.index + o[0].length), e.position <= o.index && s < 0 && (s = i.length - 2);
|
|
673
|
-
s < 0 && (s = i.length - 1);
|
|
674
|
-
let c = "", l = Math.min(e.line + n.linesAfter, a.length).toString().length, u = n.maxLength - (n.indent + l + 3);
|
|
675
|
-
for (let t = 1; t <= n.linesBefore && !(s - t < 0); t++) {
|
|
676
|
-
let r = at(e.buffer, i[s - t], a[s - t], e.position - (i[s] - i[s - t]), u);
|
|
677
|
-
c = `${" ".repeat(n.indent)}${ot((e.line - t + 1).toString(), l)} | ${r.str}\n${c}`;
|
|
678
|
-
}
|
|
679
|
-
let d = at(e.buffer, i[s], a[s], e.position, u);
|
|
680
|
-
c += `${" ".repeat(n.indent)}${ot((e.line + 1).toString(), l)} | ${d.str}\n`, c += `${"-".repeat(n.indent + l + 3 + d.pos)}^\n`;
|
|
681
|
-
for (let t = 1; t <= n.linesAfter && !(s + t >= a.length); t++) {
|
|
682
|
-
let r = at(e.buffer, i[s + t], a[s + t], e.position - (i[s] - i[s + t]), u);
|
|
683
|
-
c += `${" ".repeat(n.indent)}${ot((e.line + t + 1).toString(), l)} | ${r.str}\n`;
|
|
684
|
-
}
|
|
685
|
-
return c.replace(/\n$/, "");
|
|
686
|
-
}
|
|
687
|
-
function ct(e, t) {
|
|
688
|
-
let n = "";
|
|
689
|
-
return e.mark ? (e.mark.name && (n += `in "${e.mark.name}" `), n += `(${e.mark.line + 1}:${e.mark.column + 1})`, !t && e.mark.snippet && (n += `\n\n${e.mark.snippet}`), `${e.reason} ${n}`) : e.reason;
|
|
690
|
-
}
|
|
691
|
-
var v = class e extends Error {
|
|
692
|
-
reason;
|
|
693
|
-
mark;
|
|
694
|
-
constructor(e, t) {
|
|
695
|
-
super(), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = ct(this, !1), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
696
|
-
}
|
|
697
|
-
toString(e) {
|
|
698
|
-
return `${this.name}: ${ct(this, e)}`;
|
|
699
|
-
}
|
|
700
|
-
static throwAt(t, n, r, i = "") {
|
|
701
|
-
let a = 0, o = 0;
|
|
702
|
-
for (let e = 0; e < n; e++) {
|
|
703
|
-
let n = t.charCodeAt(e);
|
|
704
|
-
n === 10 ? (a++, o = e + 1) : n === 13 && (a++, t.charCodeAt(e + 1) === 10 && e++, o = e + 1);
|
|
705
|
-
}
|
|
706
|
-
let s = {
|
|
707
|
-
name: i,
|
|
708
|
-
buffer: t,
|
|
709
|
-
position: n,
|
|
710
|
-
line: a,
|
|
711
|
-
column: n - o
|
|
712
|
-
};
|
|
713
|
-
throw s.snippet = st(s), new e(r, s);
|
|
714
|
-
}
|
|
715
|
-
}, y = {
|
|
716
|
-
DOCUMENT: 1,
|
|
717
|
-
SEQUENCE: 2,
|
|
718
|
-
MAPPING: 3,
|
|
719
|
-
SCALAR: 4,
|
|
720
|
-
ALIAS: 5,
|
|
721
|
-
POP: 6
|
|
722
|
-
}, b = {
|
|
723
|
-
PLAIN: 1,
|
|
724
|
-
SINGLE_QUOTED: 2,
|
|
725
|
-
DOUBLE_QUOTED: 3,
|
|
726
|
-
LITERAL_BLOCK: 4,
|
|
727
|
-
FOLDED_BLOCK: 5
|
|
728
|
-
}, x = {
|
|
729
|
-
BLOCK: 1,
|
|
730
|
-
FLOW: 2
|
|
731
|
-
}, S = {
|
|
732
|
-
CLIP: 1,
|
|
733
|
-
STRIP: 2,
|
|
734
|
-
KEEP: 3
|
|
735
|
-
}, lt = -1;
|
|
736
|
-
function ut(e) {
|
|
737
|
-
switch (e) {
|
|
738
|
-
case 48: return "\0";
|
|
739
|
-
case 97: return "\x07";
|
|
740
|
-
case 98: return "\b";
|
|
741
|
-
case 116: return " ";
|
|
742
|
-
case 9: return " ";
|
|
743
|
-
case 110: return "\n";
|
|
744
|
-
case 118: return "\v";
|
|
745
|
-
case 102: return "\f";
|
|
746
|
-
case 114: return "\r";
|
|
747
|
-
case 101: return "\x1B";
|
|
748
|
-
case 32: return " ";
|
|
749
|
-
case 34: return "\"";
|
|
750
|
-
case 47: return "/";
|
|
751
|
-
case 92: return "\\";
|
|
752
|
-
case 78: return "
";
|
|
753
|
-
case 95: return "\xA0";
|
|
754
|
-
case 76: return "\u2028";
|
|
755
|
-
case 80: return "\u2029";
|
|
756
|
-
default: return "";
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
var dt = Array(256), ft = Array(256);
|
|
760
|
-
for (let e = 0; e < 256; e++) dt[e] = +!!ut(e), ft[e] = ut(e);
|
|
761
|
-
function pt(e) {
|
|
762
|
-
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
763
|
-
}
|
|
764
|
-
function mt(e) {
|
|
765
|
-
return e >= 48 && e <= 57 ? e - 48 : (e | 32) - 97 + 10;
|
|
766
|
-
}
|
|
767
|
-
function ht(e) {
|
|
768
|
-
return e === 120 ? 2 : e === 117 ? 4 : 8;
|
|
769
|
-
}
|
|
770
|
-
function C(e, t, n) {
|
|
771
|
-
let r = 0;
|
|
772
|
-
for (; t < n;) {
|
|
773
|
-
let n = e.charCodeAt(t);
|
|
774
|
-
if (n === 10) r++, t++;
|
|
775
|
-
else if (n === 13) r++, t++, e.charCodeAt(t) === 10 && t++;
|
|
776
|
-
else if (n === 32 || n === 9) t++;
|
|
777
|
-
else break;
|
|
778
|
-
}
|
|
779
|
-
return {
|
|
780
|
-
position: t,
|
|
781
|
-
breaks: r
|
|
782
|
-
};
|
|
783
|
-
}
|
|
784
|
-
function gt(e) {
|
|
785
|
-
return e === 1 ? " " : "\n".repeat(e - 1);
|
|
786
|
-
}
|
|
787
|
-
function _t(e, t, n) {
|
|
788
|
-
let r = "", i = t, a = t, o = t;
|
|
789
|
-
for (; i < n;) {
|
|
790
|
-
let t = e.charCodeAt(i);
|
|
791
|
-
if (t === 10 || t === 13) {
|
|
792
|
-
r += e.slice(a, o);
|
|
793
|
-
let t = C(e, i, n);
|
|
794
|
-
r += gt(t.breaks), i = a = o = t.position;
|
|
795
|
-
} else i++, t !== 32 && t !== 9 && (o = i);
|
|
796
|
-
}
|
|
797
|
-
return r + e.slice(a, o);
|
|
798
|
-
}
|
|
799
|
-
function vt(e, t, n) {
|
|
800
|
-
let r = "", i = t, a = t, o = t;
|
|
801
|
-
for (; i < n;) {
|
|
802
|
-
let t = e.charCodeAt(i);
|
|
803
|
-
if (t === 39) r += e.slice(a, i) + "'", i += 2, a = o = i;
|
|
804
|
-
else if (t === 10 || t === 13) {
|
|
805
|
-
r += e.slice(a, o);
|
|
806
|
-
let t = C(e, i, n);
|
|
807
|
-
r += gt(t.breaks), i = a = o = t.position;
|
|
808
|
-
} else i++, t !== 32 && t !== 9 && (o = i);
|
|
809
|
-
}
|
|
810
|
-
return r + e.slice(a, n);
|
|
811
|
-
}
|
|
812
|
-
function yt(e, t, n) {
|
|
813
|
-
let r = "", i = t, a = t, o = t;
|
|
814
|
-
for (; i < n;) {
|
|
815
|
-
let t = e.charCodeAt(i);
|
|
816
|
-
if (t === 92) {
|
|
817
|
-
r += e.slice(a, i), i++;
|
|
818
|
-
let t = e.charCodeAt(i);
|
|
819
|
-
if (t === 10 || t === 13) i = C(e, i, n).position;
|
|
820
|
-
else if (t < 256 && dt[t]) r += ft[t], i++;
|
|
821
|
-
else {
|
|
822
|
-
let n = ht(t), a = 0;
|
|
823
|
-
for (; n > 0; n--) {
|
|
824
|
-
i++;
|
|
825
|
-
let t = mt(e.charCodeAt(i));
|
|
826
|
-
a = (a << 4) + t;
|
|
827
|
-
}
|
|
828
|
-
r += pt(a), i++;
|
|
829
|
-
}
|
|
830
|
-
a = o = i;
|
|
831
|
-
} else if (t === 10 || t === 13) {
|
|
832
|
-
r += e.slice(a, o);
|
|
833
|
-
let t = C(e, i, n);
|
|
834
|
-
r += gt(t.breaks), i = a = o = t.position;
|
|
835
|
-
} else i++, t !== 32 && t !== 9 && (o = i);
|
|
836
|
-
}
|
|
837
|
-
return r + e.slice(a, n);
|
|
838
|
-
}
|
|
839
|
-
function bt(e, t, n, r, i, a) {
|
|
840
|
-
let o = r < 0 ? 0 : r, s = e.slice(t, n).replace(/\r\n?/g, "\n"), c = s === "" ? [] : (s.endsWith("\n") ? s.slice(0, -1) : s).split("\n"), l = "", u = !1, d = 0, f = !1;
|
|
841
|
-
for (let e of c) {
|
|
842
|
-
let t = 0;
|
|
843
|
-
for (; t < o && e.charCodeAt(t) === 32;) t++;
|
|
844
|
-
if (r < 0 || t >= e.length) {
|
|
845
|
-
d++;
|
|
846
|
-
continue;
|
|
847
|
-
}
|
|
848
|
-
let n = e.slice(o), i = n.charCodeAt(0);
|
|
849
|
-
a ? i === 32 || i === 9 ? (f = !0, l += "\n".repeat(u ? 1 + d : d)) : f ? (f = !1, l += "\n".repeat(d + 1)) : d === 0 ? u && (l += " ") : l += "\n".repeat(d) : l += "\n".repeat(u ? 1 + d : d), l += n, u = !0, d = 0;
|
|
850
|
-
}
|
|
851
|
-
return i === S.KEEP ? l += "\n".repeat(u ? 1 + d : d) : i !== S.STRIP && u && (l += "\n"), l;
|
|
852
|
-
}
|
|
853
|
-
function xt(e, t) {
|
|
854
|
-
if (t.valueStart === lt) return "";
|
|
855
|
-
let { valueStart: n, valueEnd: r } = t;
|
|
856
|
-
if (t.fast) return e.slice(n, r);
|
|
857
|
-
switch (t.style) {
|
|
858
|
-
case b.SINGLE_QUOTED: return vt(e, n, r);
|
|
859
|
-
case b.DOUBLE_QUOTED: return yt(e, n, r);
|
|
860
|
-
case b.LITERAL_BLOCK: return bt(e, n, r, t.indent, t.chomping, !1);
|
|
861
|
-
case b.FOLDED_BLOCK: return bt(e, n, r, t.indent, t.chomping, !0);
|
|
862
|
-
default: return _t(e, n, r);
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
var St = Object.assign(Object.create(null), {
|
|
866
|
-
"!": "!",
|
|
867
|
-
"!!": "tag:yaml.org,2002:"
|
|
868
|
-
});
|
|
869
|
-
function Ct(e) {
|
|
870
|
-
return encodeURI(e).replace(/!/g, "%21");
|
|
871
|
-
}
|
|
872
|
-
function wt(e, t) {
|
|
873
|
-
if (e.startsWith("!<") && e.endsWith(">")) return decodeURIComponent(e.slice(2, -1));
|
|
874
|
-
let n = e.indexOf("!", 1), r = n === -1 ? "!" : e.slice(0, n + 1), i = t?.[r] ?? St[r] ?? r;
|
|
875
|
-
return decodeURIComponent(i) + decodeURIComponent(e.slice(r.length));
|
|
876
|
-
}
|
|
877
|
-
function Tt(e) {
|
|
878
|
-
let t = e;
|
|
879
|
-
return t.charCodeAt(0) === 33 ? (t = t.slice(1), `!${Ct(t)}`) : t.slice(0, 18) === "tag:yaml.org,2002:" ? `!!${Ct(t.slice(18))}` : `!<${Ct(t)}>`;
|
|
880
|
-
}
|
|
881
|
-
var w = -1, Et = "tag:yaml.org,2002:merge", Dt = {
|
|
882
|
-
filename: "",
|
|
883
|
-
schema: tt,
|
|
884
|
-
json: !1,
|
|
885
|
-
maxTotalMergeKeys: 1e4,
|
|
886
|
-
maxAliases: -1
|
|
887
|
-
};
|
|
888
|
-
function Ot(e) {
|
|
889
|
-
return "tagStart" in e && e.tagStart !== w ? e.tagStart : "anchorStart" in e && e.anchorStart !== w ? e.anchorStart : "valueStart" in e && e.valueStart !== w ? e.valueStart : "start" in e ? e.start : 0;
|
|
890
|
-
}
|
|
891
|
-
function T(e, t) {
|
|
892
|
-
v.throwAt(e.source, e.position, t, e.filename);
|
|
893
|
-
}
|
|
894
|
-
function kt(e, t, n, r) {
|
|
895
|
-
try {
|
|
896
|
-
return n.finalize(r);
|
|
897
|
-
} catch (n) {
|
|
898
|
-
if (n instanceof v) throw n;
|
|
899
|
-
v.throwAt(e.source, t, n instanceof Error ? n.message : String(n), e.filename);
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
function At(e, t) {
|
|
903
|
-
let n = xt(e.source, t), i = t.tagStart === w ? "" : e.source.slice(t.tagStart, t.tagEnd), a = e.schema.defaultScalarTag;
|
|
904
|
-
if (i !== "") {
|
|
905
|
-
if (i === "!") return {
|
|
906
|
-
value: n,
|
|
907
|
-
tag: a
|
|
908
|
-
};
|
|
909
|
-
let t = wt(i, e.tagHandlers), o = e.schema.lookupScalarTag(t);
|
|
910
|
-
if (o) {
|
|
911
|
-
let i = o.resolve(n, !0, t);
|
|
912
|
-
return i === r && T(e, `cannot resolve a node with !<${t}> explicit tag`), {
|
|
913
|
-
value: i,
|
|
914
|
-
tag: o
|
|
915
|
-
};
|
|
916
|
-
}
|
|
917
|
-
let s = e.schema.lookupMappingTag(t) ?? e.schema.lookupSequenceTag(t);
|
|
918
|
-
if (s) {
|
|
919
|
-
n !== "" && T(e, `cannot resolve a node with !<${t}> explicit tag`);
|
|
920
|
-
let r = s.create(t);
|
|
921
|
-
return {
|
|
922
|
-
value: s.carrierIsResult ? r : kt(e, e.position, s, r),
|
|
923
|
-
tag: s
|
|
924
|
-
};
|
|
925
|
-
}
|
|
926
|
-
T(e, `unknown scalar tag !<${t}>`);
|
|
927
|
-
}
|
|
928
|
-
return t.style === b.PLAIN ? e.schema.resolveImplicitScalarTag(n) : {
|
|
929
|
-
value: a.resolve(n, !1, a.tagName),
|
|
930
|
-
tag: a
|
|
931
|
-
};
|
|
932
|
-
}
|
|
933
|
-
function jt(e, t, n) {
|
|
934
|
-
let r = t.tagStart === w ? "" : e.source.slice(t.tagStart, t.tagEnd);
|
|
935
|
-
return r === "" || r === "!" ? n : wt(r, e.tagHandlers);
|
|
936
|
-
}
|
|
937
|
-
function Mt(e) {
|
|
938
|
-
return e.nodeKind === "mapping";
|
|
939
|
-
}
|
|
940
|
-
function Nt(e) {
|
|
941
|
-
e.totalMergeKeys++, e.maxTotalMergeKeys !== -1 && e.totalMergeKeys > e.maxTotalMergeKeys && T(e, `merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`);
|
|
942
|
-
}
|
|
943
|
-
function Pt(e, t, n, r) {
|
|
944
|
-
Nt(e);
|
|
945
|
-
for (let i of r.keys(n)) {
|
|
946
|
-
if (Nt(e), t.tag.has(t.value, i)) continue;
|
|
947
|
-
let a = t.tag.addPair(t.value, i, r.get(n, i));
|
|
948
|
-
a && T(e, a), t.overridable ??= /* @__PURE__ */ new Set(), t.overridable.add(i);
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
function Ft(e, t, n, r) {
|
|
952
|
-
if (e.position = t.keyPosition, Mt(r)) Pt(e, t, n, r);
|
|
953
|
-
else if (r.nodeKind === "sequence" && Array.isArray(n)) {
|
|
954
|
-
n.length > 100 && T(e, "abnormal merge sequence size");
|
|
955
|
-
for (let r of n) {
|
|
956
|
-
let n = e.nodeTags.get(r);
|
|
957
|
-
n || T(e, "cannot merge mappings; the provided source object is unacceptable"), Pt(e, t, r, n);
|
|
958
|
-
}
|
|
959
|
-
} else T(e, "cannot merge mappings; the provided source object is unacceptable");
|
|
960
|
-
}
|
|
961
|
-
function It(e, t, n, r, i) {
|
|
962
|
-
if (e.position = t.keyPosition, t.keyIsMerge) {
|
|
963
|
-
Ft(e, t, r, i);
|
|
964
|
-
return;
|
|
965
|
-
}
|
|
966
|
-
!e.json && t.tag.has(t.value, n) && !t.overridable?.has(n) && T(e, "duplicated mapping key");
|
|
967
|
-
let a = t.tag.addPair(t.value, n, r);
|
|
968
|
-
a && T(e, a), t.overridable?.delete(n);
|
|
969
|
-
}
|
|
970
|
-
function Lt(e, t, n) {
|
|
971
|
-
let r = e.frames[e.frames.length - 1];
|
|
972
|
-
if (r.kind === "document") r.value = t, r.hasValue = !0;
|
|
973
|
-
else if (r.kind === "sequence") {
|
|
974
|
-
Mt(n) && e.nodeTags.set(t, n);
|
|
975
|
-
let i = r.tag.addItem(r.value, t, r.index++);
|
|
976
|
-
i && T(e, i);
|
|
977
|
-
} else if (r.hasKey) {
|
|
978
|
-
let i = r.key;
|
|
979
|
-
r.key = void 0, r.hasKey = !1, It(e, r, i, t, n);
|
|
980
|
-
} else r.key = t, r.keyPosition = e.position, r.hasKey = !0, r.keyIsMerge = n.tagName === Et;
|
|
981
|
-
}
|
|
982
|
-
function Rt(e, t, n, r, i) {
|
|
983
|
-
if (t.anchorStart !== w) {
|
|
984
|
-
let a = {
|
|
985
|
-
value: n,
|
|
986
|
-
tag: r,
|
|
987
|
-
isValueFinal: i
|
|
988
|
-
};
|
|
989
|
-
return e.anchors.set(e.source.slice(t.anchorStart, t.anchorEnd), a), a;
|
|
990
|
-
}
|
|
991
|
-
return null;
|
|
992
|
-
}
|
|
993
|
-
function zt(e, t) {
|
|
994
|
-
let n = {
|
|
995
|
-
...Dt,
|
|
996
|
-
...t,
|
|
997
|
-
events: e,
|
|
998
|
-
documents: [],
|
|
999
|
-
eventIndex: 0,
|
|
1000
|
-
position: 0,
|
|
1001
|
-
frames: [],
|
|
1002
|
-
anchors: /* @__PURE__ */ new Map(),
|
|
1003
|
-
nodeTags: /* @__PURE__ */ new Map(),
|
|
1004
|
-
tagHandlers: Object.create(null),
|
|
1005
|
-
totalMergeKeys: 0,
|
|
1006
|
-
aliasCount: 0
|
|
1007
|
-
};
|
|
1008
|
-
for (; n.eventIndex < n.events.length;) {
|
|
1009
|
-
let e = n.events[n.eventIndex++];
|
|
1010
|
-
switch (n.position = Ot(e), e.type) {
|
|
1011
|
-
case y.DOCUMENT:
|
|
1012
|
-
n.anchors = /* @__PURE__ */ new Map(), n.nodeTags = /* @__PURE__ */ new Map(), n.aliasCount = 0, n.tagHandlers = Object.create(null);
|
|
1013
|
-
for (let t of e.directives) t.kind === "tag" && (n.tagHandlers[t.handle] = t.prefix);
|
|
1014
|
-
n.frames.push({
|
|
1015
|
-
kind: "document",
|
|
1016
|
-
position: n.position,
|
|
1017
|
-
value: void 0,
|
|
1018
|
-
hasValue: !1
|
|
1019
|
-
});
|
|
1020
|
-
break;
|
|
1021
|
-
case y.SCALAR: {
|
|
1022
|
-
let { value: t, tag: r } = At(n, e);
|
|
1023
|
-
Rt(n, e, t, r, !0), Lt(n, t, r);
|
|
1024
|
-
break;
|
|
1025
|
-
}
|
|
1026
|
-
case y.SEQUENCE: {
|
|
1027
|
-
let t = jt(n, e, "tag:yaml.org,2002:seq"), r = n.schema.lookupSequenceTag(t);
|
|
1028
|
-
r || T(n, `unknown sequence tag !<${t}>`);
|
|
1029
|
-
let i = r.create(t), a = Rt(n, e, i, r, r.carrierIsResult);
|
|
1030
|
-
n.frames.push({
|
|
1031
|
-
kind: "sequence",
|
|
1032
|
-
position: n.position,
|
|
1033
|
-
value: i,
|
|
1034
|
-
tag: r,
|
|
1035
|
-
anchor: a,
|
|
1036
|
-
index: 0
|
|
1037
|
-
});
|
|
1038
|
-
break;
|
|
1039
|
-
}
|
|
1040
|
-
case y.MAPPING: {
|
|
1041
|
-
let t = jt(n, e, "tag:yaml.org,2002:map"), r = n.schema.lookupMappingTag(t);
|
|
1042
|
-
r || T(n, `unknown mapping tag !<${t}>`);
|
|
1043
|
-
let i = r.create(t), a = Rt(n, e, i, r, r.carrierIsResult);
|
|
1044
|
-
n.frames.push({
|
|
1045
|
-
kind: "mapping",
|
|
1046
|
-
position: n.position,
|
|
1047
|
-
value: i,
|
|
1048
|
-
tag: r,
|
|
1049
|
-
anchor: a,
|
|
1050
|
-
key: void 0,
|
|
1051
|
-
keyPosition: n.position,
|
|
1052
|
-
hasKey: !1,
|
|
1053
|
-
keyIsMerge: !1,
|
|
1054
|
-
overridable: null
|
|
1055
|
-
});
|
|
1056
|
-
break;
|
|
1057
|
-
}
|
|
1058
|
-
case y.ALIAS: {
|
|
1059
|
-
n.maxAliases !== -1 && ++n.aliasCount > n.maxAliases && T(n, `aliases exceeded maxAliases (${n.maxAliases})`);
|
|
1060
|
-
let t = n.source.slice(e.anchorStart, e.anchorEnd), r = n.anchors.get(t);
|
|
1061
|
-
r || T(n, `unidentified alias "${t}"`), r.isValueFinal || T(n, `recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`), Lt(n, r.value, r.tag);
|
|
1062
|
-
break;
|
|
1063
|
-
}
|
|
1064
|
-
case y.POP: {
|
|
1065
|
-
let e = n.frames.pop();
|
|
1066
|
-
if (e.kind === "mapping" && e.hasKey && (n.position = e.keyPosition, T(n, "incomplete mapping pair in event stream")), e.kind === "document") n.documents.push(e.value);
|
|
1067
|
-
else {
|
|
1068
|
-
let t = e.tag.carrierIsResult ? e.value : kt(n, e.position, e.tag, e.value);
|
|
1069
|
-
e.anchor && (e.anchor.value = t, e.anchor.isValueFinal = !0), Lt(n, t, e.tag);
|
|
1070
|
-
}
|
|
1071
|
-
break;
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
return n.documents;
|
|
1076
|
-
}
|
|
1077
|
-
var E = -1, Bt = Object.prototype.hasOwnProperty, D = 1, Vt = 2, Ht = 3, O = 4, Ut = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Wt = /[,\[\]{}]/, Gt = /^(?:!|!!|![0-9A-Za-z-]+!)$/, Kt = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`, qt = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`, Jt = RegExp(`^(?:${Kt})*$`), Yt = RegExp(`^(?:${qt})+$`), Xt = RegExp(`^(?:!(?:${Kt})*|${qt}(?:${Kt})*)$`), Zt = {
|
|
1078
|
-
filename: "",
|
|
1079
|
-
maxDepth: 100
|
|
1080
|
-
};
|
|
1081
|
-
function Qt(e, t, n) {
|
|
1082
|
-
e.events.push({
|
|
1083
|
-
type: y.DOCUMENT,
|
|
1084
|
-
explicitStart: t,
|
|
1085
|
-
explicitEnd: n,
|
|
1086
|
-
directives: e.directives
|
|
1087
|
-
});
|
|
1088
|
-
}
|
|
1089
|
-
function $t(e, t, n, r, i, a, o) {
|
|
1090
|
-
e.events.push({
|
|
1091
|
-
type: y.SEQUENCE,
|
|
1092
|
-
start: t,
|
|
1093
|
-
anchorStart: n,
|
|
1094
|
-
anchorEnd: r,
|
|
1095
|
-
tagStart: i,
|
|
1096
|
-
tagEnd: a,
|
|
1097
|
-
style: o
|
|
1098
|
-
});
|
|
1099
|
-
}
|
|
1100
|
-
function en(e, t, n, r, i, a, o) {
|
|
1101
|
-
e.events.push({
|
|
1102
|
-
type: y.MAPPING,
|
|
1103
|
-
start: t,
|
|
1104
|
-
anchorStart: n,
|
|
1105
|
-
anchorEnd: r,
|
|
1106
|
-
tagStart: i,
|
|
1107
|
-
tagEnd: a,
|
|
1108
|
-
style: o
|
|
1109
|
-
});
|
|
1110
|
-
}
|
|
1111
|
-
function tn(e, t) {
|
|
1112
|
-
e.events.splice(t.eventsLength, 0, {
|
|
1113
|
-
type: y.MAPPING,
|
|
1114
|
-
start: t.position,
|
|
1115
|
-
anchorStart: E,
|
|
1116
|
-
anchorEnd: E,
|
|
1117
|
-
tagStart: E,
|
|
1118
|
-
tagEnd: E,
|
|
1119
|
-
style: x.FLOW
|
|
1120
|
-
});
|
|
1121
|
-
}
|
|
1122
|
-
function k(e, t, n, r, i, a, o, s, c = S.CLIP, l = -1, u = !1) {
|
|
1123
|
-
e.events.push({
|
|
1124
|
-
type: y.SCALAR,
|
|
1125
|
-
valueStart: t,
|
|
1126
|
-
valueEnd: n,
|
|
1127
|
-
anchorStart: r,
|
|
1128
|
-
anchorEnd: i,
|
|
1129
|
-
tagStart: a,
|
|
1130
|
-
tagEnd: o,
|
|
1131
|
-
style: s,
|
|
1132
|
-
chomping: c,
|
|
1133
|
-
indent: l,
|
|
1134
|
-
fast: u
|
|
1135
|
-
});
|
|
1136
|
-
}
|
|
1137
|
-
function nn(e, t, n) {
|
|
1138
|
-
e.events.push({
|
|
1139
|
-
type: y.ALIAS,
|
|
1140
|
-
anchorStart: t,
|
|
1141
|
-
anchorEnd: n
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
function A(e) {
|
|
1145
|
-
e.events.push({ type: y.POP });
|
|
1146
|
-
}
|
|
1147
|
-
function j(e) {
|
|
1148
|
-
k(e, E, E, E, E, E, E, b.PLAIN);
|
|
1149
|
-
}
|
|
1150
|
-
function rn() {
|
|
1151
|
-
return {
|
|
1152
|
-
anchorStart: E,
|
|
1153
|
-
anchorEnd: E,
|
|
1154
|
-
tagStart: E,
|
|
1155
|
-
tagEnd: E
|
|
1156
|
-
};
|
|
1157
|
-
}
|
|
1158
|
-
function M(e) {
|
|
1159
|
-
return {
|
|
1160
|
-
position: e.position,
|
|
1161
|
-
line: e.line,
|
|
1162
|
-
lineStart: e.lineStart,
|
|
1163
|
-
lineIndent: e.lineIndent,
|
|
1164
|
-
firstTabInLine: e.firstTabInLine,
|
|
1165
|
-
eventsLength: e.events.length
|
|
1166
|
-
};
|
|
1167
|
-
}
|
|
1168
|
-
function N(e, t) {
|
|
1169
|
-
e.position = t.position, e.line = t.line, e.lineStart = t.lineStart, e.lineIndent = t.lineIndent, e.firstTabInLine = t.firstTabInLine, e.events.length = t.eventsLength;
|
|
1170
|
-
}
|
|
1171
|
-
function P(e, t) {
|
|
1172
|
-
v.throwAt(e.input.slice(0, e.length), e.position, t, e.filename);
|
|
1173
|
-
}
|
|
1174
|
-
function F(e) {
|
|
1175
|
-
return e === 10 || e === 13;
|
|
1176
|
-
}
|
|
1177
|
-
function I(e) {
|
|
1178
|
-
return e === 9 || e === 32;
|
|
1179
|
-
}
|
|
1180
|
-
function L(e) {
|
|
1181
|
-
return I(e) || F(e);
|
|
1182
|
-
}
|
|
1183
|
-
function R(e) {
|
|
1184
|
-
return e === 0 || L(e);
|
|
1185
|
-
}
|
|
1186
|
-
function z(e) {
|
|
1187
|
-
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1188
|
-
}
|
|
1189
|
-
function an(e) {
|
|
1190
|
-
return e >= 48 && e <= 57 ? e - 48 : -1;
|
|
1191
|
-
}
|
|
1192
|
-
function on(e) {
|
|
1193
|
-
if (e >= 48 && e <= 57) return e - 48;
|
|
1194
|
-
let t = e | 32;
|
|
1195
|
-
return t >= 97 && t <= 102 ? t - 97 + 10 : -1;
|
|
1196
|
-
}
|
|
1197
|
-
function sn(e) {
|
|
1198
|
-
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1199
|
-
}
|
|
1200
|
-
function cn(e) {
|
|
1201
|
-
return e === 48 || e === 97 || e === 98 || e === 116 || e === 9 || e === 110 || e === 118 || e === 102 || e === 114 || e === 101 || e === 32 || e === 34 || e === 47 || e === 92 || e === 78 || e === 95 || e === 76 || e === 80;
|
|
1202
|
-
}
|
|
1203
|
-
function B(e) {
|
|
1204
|
-
e.input.charCodeAt(e.position) === 10 ? e.position++ : (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++), e.line++, e.lineStart = e.position, e.lineIndent = 0, e.firstTabInLine = -1;
|
|
1205
|
-
}
|
|
1206
|
-
function V(e, t) {
|
|
1207
|
-
let n = 0, r = e.input.charCodeAt(e.position), i = e.position === e.lineStart || L(e.input.charCodeAt(e.position - 1));
|
|
1208
|
-
for (; r !== 0;) {
|
|
1209
|
-
for (; I(r);) i = !0, r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
1210
|
-
if (t && i && r === 35) do
|
|
1211
|
-
r = e.input.charCodeAt(++e.position);
|
|
1212
|
-
while (!F(r) && r !== 0);
|
|
1213
|
-
if (!F(r)) break;
|
|
1214
|
-
for (B(e), n++, i = !0, r = e.input.charCodeAt(e.position); r === 32;) e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
1215
|
-
}
|
|
1216
|
-
return n;
|
|
1217
|
-
}
|
|
1218
|
-
function H(e, t = e.position) {
|
|
1219
|
-
let n = e.input.charCodeAt(t);
|
|
1220
|
-
if ((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2)) {
|
|
1221
|
-
let n = e.input.charCodeAt(t + 3);
|
|
1222
|
-
return n === 0 || L(n);
|
|
1223
|
-
}
|
|
1224
|
-
return !1;
|
|
1225
|
-
}
|
|
1226
|
-
function ln(e) {
|
|
1227
|
-
e.position === e.lineStart && e.input.charCodeAt(e.position) === 65279 && (e.position++, e.lineStart = e.position);
|
|
1228
|
-
}
|
|
1229
|
-
function un(e) {
|
|
1230
|
-
if (e.position !== e.lineStart) return !1;
|
|
1231
|
-
if (H(e)) return !0;
|
|
1232
|
-
if (e.input.charCodeAt(e.position) !== 65279) return !1;
|
|
1233
|
-
let t = M(e);
|
|
1234
|
-
ln(e), V(e, !0);
|
|
1235
|
-
let n = e.input.charCodeAt(e.position), r = e.position === e.lineStart && (n === 37 || n === 45 && H(e));
|
|
1236
|
-
return N(e, t), r;
|
|
1237
|
-
}
|
|
1238
|
-
function dn(e) {
|
|
1239
|
-
let t = e.input.charCodeAt(e.position);
|
|
1240
|
-
for (; t !== 0 && !F(t);) t = e.input.charCodeAt(++e.position);
|
|
1241
|
-
}
|
|
1242
|
-
function fn(e, t, n) {
|
|
1243
|
-
Ut.test(e.input.slice(t, n)) && P(e, "the stream contains non-printable characters");
|
|
1244
|
-
}
|
|
1245
|
-
function pn(e, t, n) {
|
|
1246
|
-
if (e.input.charCodeAt(e.position) !== 33) return !1;
|
|
1247
|
-
t.tagStart !== E && P(e, "duplication of a tag property");
|
|
1248
|
-
let r = e.position, i = !1, a = !1, o = "!", s = e.input.charCodeAt(++e.position);
|
|
1249
|
-
s === 60 ? (i = !0, s = e.input.charCodeAt(++e.position)) : s === 33 && (a = !0, o = "!!", s = e.input.charCodeAt(++e.position));
|
|
1250
|
-
let c = e.position, l;
|
|
1251
|
-
if (i) {
|
|
1252
|
-
for (; s !== 0 && s !== 62;) s = e.input.charCodeAt(++e.position);
|
|
1253
|
-
s !== 62 && P(e, "unexpected end of the stream within a verbatim tag"), l = e.input.slice(c, e.position), e.position++;
|
|
1254
|
-
} else {
|
|
1255
|
-
for (; s !== 0 && !L(s) && !(n && z(s));) s === 33 && (a ? P(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(c - 1, e.position + 1), Gt.test(o) || P(e, "named tag handle cannot contain such characters"), a = !0, c = e.position + 1)), s = e.input.charCodeAt(++e.position);
|
|
1256
|
-
l = e.input.slice(c, e.position), Wt.test(l) && P(e, "tag suffix cannot contain flow indicator characters");
|
|
1257
|
-
}
|
|
1258
|
-
return l && !(i ? Jt.test(l) : Yt.test(l)) && P(e, `tag name cannot contain such characters: ${l}`), !i && o !== "!" && o !== "!!" && !Bt.call(e.tagHandlers, o) && P(e, `undeclared tag handle "${o}"`), t.tagStart = r, t.tagEnd = e.position, !0;
|
|
1259
|
-
}
|
|
1260
|
-
function mn(e, t) {
|
|
1261
|
-
if (e.input.charCodeAt(e.position) !== 38) return !1;
|
|
1262
|
-
t.anchorStart !== E && P(e, "duplication of an anchor property"), e.position++;
|
|
1263
|
-
let n = e.position;
|
|
1264
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !L(e.input.charCodeAt(e.position)) && !z(e.input.charCodeAt(e.position));) e.position++;
|
|
1265
|
-
return e.position === n && P(e, "name of an anchor node must contain at least one character"), t.anchorStart = n, t.anchorEnd = e.position, !0;
|
|
1266
|
-
}
|
|
1267
|
-
function hn(e, t) {
|
|
1268
|
-
if (e.input.charCodeAt(e.position) !== 42) return !1;
|
|
1269
|
-
(t.anchorStart !== E || t.tagStart !== E) && P(e, "alias node should not have any properties"), e.position++;
|
|
1270
|
-
let n = e.position;
|
|
1271
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !L(e.input.charCodeAt(e.position)) && !z(e.input.charCodeAt(e.position));) e.position++;
|
|
1272
|
-
return e.position === n && P(e, "name of an alias node must contain at least one character"), nn(e, n, e.position), !0;
|
|
1273
|
-
}
|
|
1274
|
-
function gn(e, t) {
|
|
1275
|
-
V(e, !1), e.lineIndent < t && P(e, "deficient indentation");
|
|
1276
|
-
}
|
|
1277
|
-
function _n(e, t, n) {
|
|
1278
|
-
if (e.input.charCodeAt(e.position) !== 39) return !1;
|
|
1279
|
-
e.position++;
|
|
1280
|
-
let r = e.position, i = !0;
|
|
1281
|
-
for (; e.input.charCodeAt(e.position) !== 0;) {
|
|
1282
|
-
let a = e.input.charCodeAt(e.position);
|
|
1283
|
-
if (a === 39) {
|
|
1284
|
-
if (e.input.charCodeAt(e.position + 1) === 39) {
|
|
1285
|
-
i = !1, e.position += 2;
|
|
1286
|
-
continue;
|
|
1287
|
-
}
|
|
1288
|
-
let t = e.position;
|
|
1289
|
-
return e.position++, k(e, r, t, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, b.SINGLE_QUOTED, S.CLIP, -1, i), !0;
|
|
1290
|
-
}
|
|
1291
|
-
F(a) ? (i = !1, gn(e, t)) : e.position === e.lineStart && H(e) ? P(e, "unexpected end of the document within a single quoted scalar") : a !== 9 && a < 32 ? P(e, "expected valid JSON character") : e.position++;
|
|
1292
|
-
}
|
|
1293
|
-
P(e, "unexpected end of the stream within a single quoted scalar");
|
|
1294
|
-
}
|
|
1295
|
-
function vn(e, t, n) {
|
|
1296
|
-
if (e.input.charCodeAt(e.position) !== 34) return !1;
|
|
1297
|
-
e.position++;
|
|
1298
|
-
let r = e.position, i = !0;
|
|
1299
|
-
for (; e.input.charCodeAt(e.position) !== 0;) {
|
|
1300
|
-
let a = e.input.charCodeAt(e.position);
|
|
1301
|
-
if (a === 34) {
|
|
1302
|
-
let t = e.position;
|
|
1303
|
-
return e.position++, k(e, r, t, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, b.DOUBLE_QUOTED, S.CLIP, -1, i), !0;
|
|
1304
|
-
}
|
|
1305
|
-
if (a === 92) {
|
|
1306
|
-
i = !1;
|
|
1307
|
-
let n = e.input.charCodeAt(++e.position);
|
|
1308
|
-
if (F(n)) gn(e, t);
|
|
1309
|
-
else if (cn(n)) e.position++;
|
|
1310
|
-
else {
|
|
1311
|
-
let t = sn(n);
|
|
1312
|
-
for (t === 0 && P(e, "unknown escape sequence"); t-- > 0;) e.position++, on(e.input.charCodeAt(e.position)) < 0 && P(e, "expected hexadecimal character");
|
|
1313
|
-
e.position++;
|
|
1314
|
-
}
|
|
1315
|
-
} else F(a) ? (i = !1, gn(e, t)) : e.position === e.lineStart && H(e) ? P(e, "unexpected end of the document within a double quoted scalar") : a !== 9 && a < 32 ? P(e, "expected valid JSON character") : e.position++;
|
|
1316
|
-
}
|
|
1317
|
-
P(e, "unexpected end of the stream within a double quoted scalar");
|
|
1318
|
-
}
|
|
1319
|
-
function yn(e, t, n) {
|
|
1320
|
-
let r = e.input.charCodeAt(e.position), i = S.CLIP, a = -1, o = !1;
|
|
1321
|
-
if (r !== 124 && r !== 62) return !1;
|
|
1322
|
-
let s = r === 124 ? b.LITERAL_BLOCK : b.FOLDED_BLOCK;
|
|
1323
|
-
for (e.position++; e.input.charCodeAt(e.position) !== 0;) {
|
|
1324
|
-
let n = e.input.charCodeAt(e.position), r = an(n);
|
|
1325
|
-
if (n === 43 || n === 45) i !== S.CLIP && P(e, "repeat of a chomping mode identifier"), i = n === 43 ? S.KEEP : S.STRIP, e.position++;
|
|
1326
|
-
else if (r >= 0) r === 0 && P(e, "bad explicit indentation width of a block scalar; it cannot be less than one"), o && P(e, "repeat of an indentation width identifier"), a = t + r - 1, o = !0, e.position++;
|
|
1327
|
-
else break;
|
|
1328
|
-
}
|
|
1329
|
-
let c = !1;
|
|
1330
|
-
for (; I(e.input.charCodeAt(e.position));) c = !0, e.position++;
|
|
1331
|
-
c && e.input.charCodeAt(e.position) === 35 && dn(e), F(e.input.charCodeAt(e.position)) ? B(e) : e.input.charCodeAt(e.position) !== 0 && P(e, "a line break is expected");
|
|
1332
|
-
let l = o ? a : -1, u = 0, d = e.position, f = e.position;
|
|
1333
|
-
for (; e.input.charCodeAt(e.position) !== 0;) {
|
|
1334
|
-
let n = e.position, r = 0;
|
|
1335
|
-
for (; e.input.charCodeAt(n + r) === 32;) r++;
|
|
1336
|
-
let i = e.input.charCodeAt(n + r);
|
|
1337
|
-
if (i === 0) {
|
|
1338
|
-
l >= 0 ? r > l && (f = n + r) : r > 0 && (f = n + r);
|
|
1339
|
-
break;
|
|
1340
|
-
}
|
|
1341
|
-
if (un(e)) break;
|
|
1342
|
-
if (!o && l === -1 && F(i) && (u = Math.max(u, r)), !o && l === -1 && !F(i) && (i === 9 && r < t && (e.position = n + r, P(e, "tab characters must not be used in indentation")), r < u && (e.position = n + r, P(e, "bad indentation of a mapping entry"))), l === -1 && i !== 0 && !F(i) && r < t) {
|
|
1343
|
-
e.lineIndent = r, e.position = n + r;
|
|
1344
|
-
break;
|
|
1345
|
-
}
|
|
1346
|
-
!o && i !== 0 && !F(i) && l === -1 && (l = r);
|
|
1347
|
-
let a = l === -1 ? t + 1 : l;
|
|
1348
|
-
if (i !== 0 && !F(i) && r < a) {
|
|
1349
|
-
e.lineIndent = r, e.position = n + r;
|
|
1350
|
-
break;
|
|
1351
|
-
}
|
|
1352
|
-
dn(e), f = e.position, F(e.input.charCodeAt(e.position)) && (B(e), f = e.position);
|
|
1353
|
-
}
|
|
1354
|
-
return fn(e, d, f), k(e, d, f, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, s, i, l), !0;
|
|
1355
|
-
}
|
|
1356
|
-
function bn(e, t) {
|
|
1357
|
-
let n = e.input.charCodeAt(e.position), r = t === D;
|
|
1358
|
-
if (n === 0 || L(n) || n === 35 || n === 38 || n === 42 || n === 33 || n === 124 || n === 62 || n === 39 || n === 34 || n === 37 || n === 64 || n === 96 || r && z(n)) return !1;
|
|
1359
|
-
if (n === 63 || n === 45) {
|
|
1360
|
-
let t = e.input.charCodeAt(e.position + 1);
|
|
1361
|
-
if (R(t) || r && z(t)) return !1;
|
|
1362
|
-
}
|
|
1363
|
-
return !0;
|
|
1364
|
-
}
|
|
1365
|
-
function xn(e, t, n, r) {
|
|
1366
|
-
if (!bn(e, n)) return !1;
|
|
1367
|
-
let i = e.position, a = e.position, o = e.input.charCodeAt(e.position), s = n === D, c = !1;
|
|
1368
|
-
for (; o !== 0 && !un(e);) {
|
|
1369
|
-
if (o === 58) {
|
|
1370
|
-
let t = e.input.charCodeAt(e.position + 1);
|
|
1371
|
-
if (R(t) || s && z(t)) break;
|
|
1372
|
-
} else if (o === 35) {
|
|
1373
|
-
if (L(e.input.charCodeAt(e.position - 1))) break;
|
|
1374
|
-
} else if (s && z(o)) break;
|
|
1375
|
-
else if (F(o)) {
|
|
1376
|
-
let n = e.position, r = e.line, i = e.lineStart, a = e.lineIndent;
|
|
1377
|
-
if (V(e, !1), e.lineIndent >= t) {
|
|
1378
|
-
c = !0, o = e.input.charCodeAt(e.position);
|
|
1379
|
-
continue;
|
|
1380
|
-
}
|
|
1381
|
-
e.position = n, e.line = r, e.lineStart = i, e.lineIndent = a;
|
|
1382
|
-
break;
|
|
1383
|
-
}
|
|
1384
|
-
I(o) || (a = e.position + 1), o = e.input.charCodeAt(++e.position);
|
|
1385
|
-
}
|
|
1386
|
-
return a !== i && (fn(e, i, a), k(e, i, a, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, b.PLAIN, S.CLIP, -1, !c), !0);
|
|
1387
|
-
}
|
|
1388
|
-
function U(e, t) {
|
|
1389
|
-
let n = e.line;
|
|
1390
|
-
V(e, !0), (e.line > n && e.lineIndent < t || e.firstTabInLine !== -1 && e.lineIndent < t) && P(e, "deficient indentation");
|
|
1391
|
-
}
|
|
1392
|
-
function Sn(e, t, n) {
|
|
1393
|
-
let r = e.input.charCodeAt(e.position), i = r === 123, a = e.position, o = !0;
|
|
1394
|
-
if (r !== 91 && r !== 123) return !1;
|
|
1395
|
-
let s = i ? 125 : 93;
|
|
1396
|
-
for (i ? en(e, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, x.FLOW) : $t(e, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, x.FLOW), e.position++; e.input.charCodeAt(e.position) !== 0;) {
|
|
1397
|
-
U(e, t);
|
|
1398
|
-
let n = e.input.charCodeAt(e.position);
|
|
1399
|
-
if (n === s) return e.position++, A(e), !0;
|
|
1400
|
-
o ? n === 44 && P(e, "expected the node content, but found ','") : P(e, "missed comma between flow collection entries");
|
|
1401
|
-
let r = !1, a = !1;
|
|
1402
|
-
n === 63 && L(e.input.charCodeAt(e.position + 1)) && (r = a = !0, e.position += 1, U(e, t));
|
|
1403
|
-
let c = e.line, l = M(e), u = G(e, t, D, !1, !0);
|
|
1404
|
-
U(e, t), n = e.input.charCodeAt(e.position), (i || a || e.line === c) && n === 58 ? (r = !0, e.position++, U(e, t), i || tn(e, l), u || j(e), G(e, t, D, !1, !0) || j(e), U(e, t), i || A(e)) : i && r ? (u || j(e), j(e)) : i ? j(e) : r && (tn(e, l), u || j(e), j(e), A(e)), n = e.input.charCodeAt(e.position), n === 44 ? (o = !0, e.position++) : o = !1;
|
|
1405
|
-
}
|
|
1406
|
-
P(e, "unexpected end of the stream within a flow collection");
|
|
1407
|
-
}
|
|
1408
|
-
function Cn(e, t, n) {
|
|
1409
|
-
if (e.firstTabInLine !== -1 || e.input.charCodeAt(e.position) !== 45 || !R(e.input.charCodeAt(e.position + 1))) return !1;
|
|
1410
|
-
for ($t(e, e.position, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, x.BLOCK); e.input.charCodeAt(e.position) === 45 && R(e.input.charCodeAt(e.position + 1));) {
|
|
1411
|
-
e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, P(e, "tab characters must not be used in indentation"));
|
|
1412
|
-
let n = e.line;
|
|
1413
|
-
e.position++;
|
|
1414
|
-
let r = V(e, !0) > 0;
|
|
1415
|
-
if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 && R(e.input.charCodeAt(e.position + 1)) && P(e, "bad indentation of a sequence entry"), r && e.lineIndent <= t ? j(e) : G(e, t, Ht, !1, !0), V(e, !0), e.lineIndent < t || e.position >= e.length) break;
|
|
1416
|
-
e.lineIndent > t && P(e, "bad indentation of a sequence entry"), e.line === n && e.input.charCodeAt(e.position) === 45 && R(e.input.charCodeAt(e.position + 1)) && P(e, "bad indentation of a sequence entry");
|
|
1417
|
-
}
|
|
1418
|
-
return A(e), !0;
|
|
1419
|
-
}
|
|
1420
|
-
function W(e, t, n, r) {
|
|
1421
|
-
let i = !1, a = !1, o = !1, s = !1;
|
|
1422
|
-
if (e.firstTabInLine !== -1) return !1;
|
|
1423
|
-
let c = e.input.charCodeAt(e.position);
|
|
1424
|
-
for (; c !== 0;) {
|
|
1425
|
-
!i && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, P(e, "tab characters must not be used in indentation"));
|
|
1426
|
-
let l = e.input.charCodeAt(e.position + 1), u = e.line;
|
|
1427
|
-
if ((c === 63 || c === 58) && R(l)) o ||= (en(e, e.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, x.BLOCK), !0), c === 63 ? (i && j(e), a = !0, i = !0) : (i || (j(e), a = !0), i = !1), e.position += 1, s = !0;
|
|
1428
|
-
else {
|
|
1429
|
-
i &&= (j(e), !1);
|
|
1430
|
-
let t = M(e);
|
|
1431
|
-
if (!G(e, n, Vt, !1, !0)) break;
|
|
1432
|
-
if (e.line === u) {
|
|
1433
|
-
for (c = e.input.charCodeAt(e.position); I(c);) c = e.input.charCodeAt(++e.position);
|
|
1434
|
-
if (c === 58) {
|
|
1435
|
-
if (c = e.input.charCodeAt(++e.position), R(c) || P(e, "a whitespace character is expected after the key-value separator within a block mapping"), !o) {
|
|
1436
|
-
for (N(e, t), en(e, t.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, x.BLOCK), o = !0, G(e, n, Vt, !1, !0), c = e.input.charCodeAt(e.position); I(c);) c = e.input.charCodeAt(++e.position);
|
|
1437
|
-
e.position++;
|
|
1438
|
-
}
|
|
1439
|
-
a = !0, i = !1, s = !1;
|
|
1440
|
-
} else if (a) P(e, "expected ':' after a mapping key");
|
|
1441
|
-
else return r.anchorStart !== E || r.tagStart !== E ? (N(e, t), !1) : !0;
|
|
1442
|
-
} else if (a) P(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1443
|
-
else return r.anchorStart !== E || r.tagStart !== E ? (N(e, t), !1) : !0;
|
|
1444
|
-
}
|
|
1445
|
-
if (G(e, t, O, !0, s) && (s = !1), i || (s &&= (j(e), !1)), V(e, !0), c = e.input.charCodeAt(e.position), (e.line === u || e.lineIndent > t) && c !== 0) P(e, "bad indentation of a mapping entry");
|
|
1446
|
-
else if (e.lineIndent < t) break;
|
|
1447
|
-
}
|
|
1448
|
-
return a ? (i && j(e), o && A(e), !0) : !1;
|
|
1449
|
-
}
|
|
1450
|
-
function G(e, t, n, r, i, a = !0) {
|
|
1451
|
-
e.depth >= e.maxDepth && P(e, `nesting exceeded maxDepth (${e.maxDepth})`), e.depth++;
|
|
1452
|
-
let o = 1, s = !1, c = !1, l = null, u = rn(), d = n === O || n === Ht, f = d, p = d;
|
|
1453
|
-
if (r && V(e, !0) && (s = !0, o = e.lineIndent > t ? 1 : e.lineIndent === t ? 0 : -1), o === 1) for (;;) {
|
|
1454
|
-
let r = e.input.charCodeAt(e.position), i = M(e);
|
|
1455
|
-
if (s && o !== 1 && (r === 33 || r === 38)) break;
|
|
1456
|
-
if (s && p && (u.tagStart !== E || u.anchorStart !== E) && (r === 33 || r === 38)) {
|
|
1457
|
-
let n = M(e), r = t + 1;
|
|
1458
|
-
if (W(e, e.position - e.lineStart, r, u) && e.events[n.eventsLength]?.type === y.MAPPING) return e.depth--, !0;
|
|
1459
|
-
N(e, n);
|
|
1460
|
-
}
|
|
1461
|
-
if (s && (r === 33 && u.tagStart !== E || r === 38 && u.anchorStart !== E) || !pn(e, u, n === D) && !mn(e, u)) break;
|
|
1462
|
-
l === null && (l = i), V(e, !0) ? (s = !0, f = p, o = e.lineIndent > t ? 1 : e.lineIndent === t ? 0 : -1) : f = !1;
|
|
1463
|
-
}
|
|
1464
|
-
if (f &&= s || i, o === 1 || n === O) {
|
|
1465
|
-
let r = n === D || n === Vt ? t : t + 1, i = e.position - e.lineStart;
|
|
1466
|
-
if (o === 1) {
|
|
1467
|
-
if (f && (Cn(e, i, u) || W(e, i, r, u)) || Sn(e, r, u)) c = !0;
|
|
1468
|
-
else {
|
|
1469
|
-
let t = e.input.charCodeAt(e.position);
|
|
1470
|
-
if (l !== null && a && p && !f && t !== 124 && t !== 62) {
|
|
1471
|
-
let t = M(e), n = l.position - l.lineStart;
|
|
1472
|
-
N(e, l), W(e, n, r, rn()) && e.events[t.eventsLength]?.type === y.MAPPING ? c = !0 : N(e, t);
|
|
1473
|
-
}
|
|
1474
|
-
!c && (d && yn(e, r, u) || _n(e, r, u) || vn(e, r, u) || hn(e, u) || xn(e, r, n, u)) && (c = !0);
|
|
1475
|
-
}
|
|
1476
|
-
} else o === 0 && (c = f && Cn(e, i, u));
|
|
1477
|
-
}
|
|
1478
|
-
return d &&= !c, !c && (u.anchorStart !== E || u.tagStart !== E || d) && (k(e, E, E, u.anchorStart, u.anchorEnd, u.tagStart, u.tagEnd, b.PLAIN), c = !0), e.depth--, c || u.anchorStart !== E || u.tagStart !== E;
|
|
1479
|
-
}
|
|
1480
|
-
function wn(e) {
|
|
1481
|
-
if (e.lineIndent > 0 || e.input.charCodeAt(e.position) !== 37) return !1;
|
|
1482
|
-
e.position++;
|
|
1483
|
-
let t = e.position;
|
|
1484
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !L(e.input.charCodeAt(e.position));) e.position++;
|
|
1485
|
-
let n = e.input.slice(t, e.position), r = [];
|
|
1486
|
-
for (n.length === 0 && P(e, "directive name must not be less than one character in length"); e.input.charCodeAt(e.position) !== 0 && !F(e.input.charCodeAt(e.position));) {
|
|
1487
|
-
for (; I(e.input.charCodeAt(e.position));) e.position++;
|
|
1488
|
-
if (e.input.charCodeAt(e.position) === 35 || F(e.input.charCodeAt(e.position)) || e.input.charCodeAt(e.position) === 0) break;
|
|
1489
|
-
let t = e.position;
|
|
1490
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !L(e.input.charCodeAt(e.position));) e.position++;
|
|
1491
|
-
r.push(e.input.slice(t, e.position));
|
|
1492
|
-
}
|
|
1493
|
-
if (F(e.input.charCodeAt(e.position)) && B(e), n === "YAML") {
|
|
1494
|
-
e.directives.some((e) => e.kind === "yaml") && P(e, "duplication of %YAML directive"), r.length !== 1 && P(e, "YAML directive accepts exactly one argument");
|
|
1495
|
-
let t = /^([0-9]+)\.([0-9]+)$/.exec(r[0]);
|
|
1496
|
-
t === null && P(e, "ill-formed argument of the YAML directive"), parseInt(t[1], 10) !== 1 && P(e, "unacceptable YAML version of the document"), e.directives.push({
|
|
1497
|
-
kind: "yaml",
|
|
1498
|
-
version: r[0]
|
|
1499
|
-
});
|
|
1500
|
-
} else if (n === "TAG") {
|
|
1501
|
-
r.length !== 2 && P(e, "TAG directive accepts exactly two arguments");
|
|
1502
|
-
let [t, n] = r;
|
|
1503
|
-
Gt.test(t) || P(e, "ill-formed tag handle (first argument) of the TAG directive"), Bt.call(e.tagHandlers, t) && P(e, `there is a previously declared suffix for "${t}" tag handle`), Xt.test(n) || P(e, "ill-formed tag prefix (second argument) of the TAG directive"), e.tagHandlers[t] = n, e.directives.push({
|
|
1504
|
-
kind: "tag",
|
|
1505
|
-
handle: t,
|
|
1506
|
-
prefix: n
|
|
1507
|
-
});
|
|
1508
|
-
}
|
|
1509
|
-
return !0;
|
|
1510
|
-
}
|
|
1511
|
-
function Tn(e) {
|
|
1512
|
-
e.directives = [], e.tagHandlers = Object.create(null);
|
|
1513
|
-
let t = !1;
|
|
1514
|
-
for (V(e, !0); wn(e);) t = !0, V(e, !0);
|
|
1515
|
-
let n = !1, r = !1, i = !0;
|
|
1516
|
-
if (e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 && R(e.input.charCodeAt(e.position + 3))) {
|
|
1517
|
-
n = !0;
|
|
1518
|
-
let t = e.line;
|
|
1519
|
-
e.position += 3, V(e, !0), i = e.line > t;
|
|
1520
|
-
} else t && P(e, "directives end mark is expected");
|
|
1521
|
-
let a = e.events.length;
|
|
1522
|
-
if (!n && e.position === e.lineStart && e.input.charCodeAt(e.position) === 46 && H(e)) {
|
|
1523
|
-
e.position += 3, V(e, !0);
|
|
1524
|
-
return;
|
|
1525
|
-
}
|
|
1526
|
-
if (Qt(e, n, !1), G(e, e.lineIndent - 1, O, !1, i, i) || j(e), V(e, !0), e.position === e.lineStart && H(e) && (r = e.input.charCodeAt(e.position) === 46, r)) {
|
|
1527
|
-
let t = e.line;
|
|
1528
|
-
e.position += 3, V(e, !0), e.line === t && e.position < e.length && P(e, "end of the stream or a document separator is expected");
|
|
1529
|
-
}
|
|
1530
|
-
let o = e.events[a];
|
|
1531
|
-
o?.type === y.DOCUMENT && (o.explicitEnd = r), A(e), !r && e.position < e.length && !un(e) && P(e, "end of the stream or a document separator is expected");
|
|
1532
|
-
}
|
|
1533
|
-
function En(e, t) {
|
|
1534
|
-
let n = e.length, r = {
|
|
1535
|
-
...Zt,
|
|
1536
|
-
...t,
|
|
1537
|
-
input: `${e}\0`,
|
|
1538
|
-
length: n,
|
|
1539
|
-
position: 0,
|
|
1540
|
-
line: 0,
|
|
1541
|
-
lineStart: 0,
|
|
1542
|
-
lineIndent: 0,
|
|
1543
|
-
firstTabInLine: -1,
|
|
1544
|
-
depth: 0,
|
|
1545
|
-
directives: [],
|
|
1546
|
-
tagHandlers: Object.create(null),
|
|
1547
|
-
events: []
|
|
1548
|
-
}, i = e.indexOf("\0");
|
|
1549
|
-
for (i !== -1 && v.throwAt(e, i, "null byte is not allowed in input", r.filename); r.position < r.length && (ln(r), V(r, !0), !(r.position >= r.length));) {
|
|
1550
|
-
let e = r.position;
|
|
1551
|
-
Tn(r), r.position === e && P(r, "can not read a document");
|
|
1552
|
-
}
|
|
1553
|
-
return r.events;
|
|
1554
|
-
}
|
|
1555
|
-
var Dn = {
|
|
1556
|
-
...Zt,
|
|
1557
|
-
...Dt
|
|
1558
|
-
};
|
|
1559
|
-
function On(e, t = {}) {
|
|
1560
|
-
let n = {
|
|
1561
|
-
...Dn,
|
|
1562
|
-
...t
|
|
1563
|
-
}, r = String(e), i = Object.keys(Zt), a = Object.keys(Dt);
|
|
1564
|
-
return zt(En(r, Ke(n, i)), {
|
|
1565
|
-
...Ke(n, a),
|
|
1566
|
-
source: r
|
|
1567
|
-
});
|
|
1568
|
-
}
|
|
1569
|
-
function kn(e, t) {
|
|
1570
|
-
let n = On(e, t);
|
|
1571
|
-
if (n.length === 0) throw new v("expected a document, but the input is empty");
|
|
1572
|
-
if (n.length === 1) return n[0];
|
|
1573
|
-
throw new v("expected a single document in the stream, but found more");
|
|
1574
|
-
}
|
|
1575
|
-
var K = Symbol("INVALID");
|
|
1576
|
-
function An(e) {
|
|
1577
|
-
let t = new Set([
|
|
1578
|
-
e.defaultScalarTag,
|
|
1579
|
-
e.defaultSequenceTag,
|
|
1580
|
-
e.defaultMappingTag
|
|
1581
|
-
].filter((e) => e !== void 0)), n = e.implicitScalarTags, r = e.tags.filter((e) => !(e.nodeKind === "scalar" && e.implicit) && !t.has(e)), i = e.tags.filter((e) => t.has(e));
|
|
1582
|
-
return [
|
|
1583
|
-
...n.map((e) => ({
|
|
1584
|
-
tag: e,
|
|
1585
|
-
implicitTag: !0
|
|
1586
|
-
})),
|
|
1587
|
-
...r.map((e) => ({
|
|
1588
|
-
tag: e,
|
|
1589
|
-
implicitTag: !1
|
|
1590
|
-
})),
|
|
1591
|
-
...i.map((e) => ({
|
|
1592
|
-
tag: e,
|
|
1593
|
-
implicitTag: !0
|
|
1594
|
-
}))
|
|
1595
|
-
];
|
|
1596
|
-
}
|
|
1597
|
-
function jn(e, t) {
|
|
1598
|
-
for (let n = 0, r = e.representTypes.length; n < r; n += 1) {
|
|
1599
|
-
let { tag: r, implicitTag: i } = e.representTypes[n];
|
|
1600
|
-
if (r.identify(t)) {
|
|
1601
|
-
let e;
|
|
1602
|
-
return e = r.matchByTagPrefix ? r.representTagName(t) : r.tagName, {
|
|
1603
|
-
tag: r,
|
|
1604
|
-
tagName: e,
|
|
1605
|
-
implicitTag: i
|
|
1606
|
-
};
|
|
1607
|
-
}
|
|
1608
|
-
}
|
|
1609
|
-
return null;
|
|
1610
|
-
}
|
|
1611
|
-
function q(e, t) {
|
|
1612
|
-
if (!e.noRefs && typeof t == "object" && t) {
|
|
1613
|
-
let n = e.refs.get(t);
|
|
1614
|
-
if (n) return n.anchor === void 0 && (n.anchor = `ref_${e.refCounter++}`), {
|
|
1615
|
-
kind: "alias",
|
|
1616
|
-
anchor: n.anchor
|
|
1617
|
-
};
|
|
1618
|
-
}
|
|
1619
|
-
let n = jn(e, t);
|
|
1620
|
-
if (!n) {
|
|
1621
|
-
if (t === void 0 || e.skipInvalid) return K;
|
|
1622
|
-
throw new v(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`);
|
|
1623
|
-
}
|
|
1624
|
-
let { tag: r, tagName: i, implicitTag: a } = n, o = a ? i : Tt(i);
|
|
1625
|
-
if (r.nodeKind === "scalar") return {
|
|
1626
|
-
kind: "scalar",
|
|
1627
|
-
tag: o,
|
|
1628
|
-
tagged: !a,
|
|
1629
|
-
style: b.PLAIN,
|
|
1630
|
-
value: r.represent(t)
|
|
1631
|
-
};
|
|
1632
|
-
if (r.nodeKind === "sequence") {
|
|
1633
|
-
let n = r.represent(t), i = {
|
|
1634
|
-
kind: "sequence",
|
|
1635
|
-
tag: o,
|
|
1636
|
-
tagged: !a,
|
|
1637
|
-
style: x.BLOCK,
|
|
1638
|
-
items: []
|
|
1639
|
-
};
|
|
1640
|
-
e.noRefs || e.refs.set(t, i);
|
|
1641
|
-
for (let t = 0, r = n.length; t < r; t += 1) {
|
|
1642
|
-
let r = q(e, n[t]);
|
|
1643
|
-
r === K && n[t] === void 0 && (r = q(e, null)), r !== K && i.items.push(r);
|
|
1644
|
-
}
|
|
1645
|
-
return i;
|
|
1646
|
-
}
|
|
1647
|
-
let s = r.represent(t), c = {
|
|
1648
|
-
kind: "mapping",
|
|
1649
|
-
tag: o,
|
|
1650
|
-
tagged: !a,
|
|
1651
|
-
style: x.BLOCK,
|
|
1652
|
-
items: []
|
|
1653
|
-
};
|
|
1654
|
-
e.noRefs || e.refs.set(t, c);
|
|
1655
|
-
for (let [t, n] of s) {
|
|
1656
|
-
let r = q(e, t);
|
|
1657
|
-
if (r === K) continue;
|
|
1658
|
-
let i = q(e, n);
|
|
1659
|
-
i !== K && c.items.push({
|
|
1660
|
-
key: r,
|
|
1661
|
-
value: i
|
|
1662
|
-
});
|
|
1663
|
-
}
|
|
1664
|
-
return c;
|
|
1665
|
-
}
|
|
1666
|
-
function Mn(e, t, n = {}) {
|
|
1667
|
-
let r = q({
|
|
1668
|
-
representTypes: An(t),
|
|
1669
|
-
noRefs: n.noRefs ?? !1,
|
|
1670
|
-
skipInvalid: n.skipInvalid ?? !1,
|
|
1671
|
-
refs: /* @__PURE__ */ new Map(),
|
|
1672
|
-
refCounter: 0
|
|
1673
|
-
}, e);
|
|
1674
|
-
return [{
|
|
1675
|
-
contents: r === K ? null : r,
|
|
1676
|
-
directives: []
|
|
1677
|
-
}];
|
|
1678
|
-
}
|
|
1679
|
-
var Nn = Symbol("visit:break"), Pn = Symbol("visit:skip");
|
|
1680
|
-
function J(e, t, n) {
|
|
1681
|
-
let r = t(e, n);
|
|
1682
|
-
if (r === Nn) return !0;
|
|
1683
|
-
if (r === Pn) return !1;
|
|
1684
|
-
let i = n.depth + 1;
|
|
1685
|
-
switch (e.kind) {
|
|
1686
|
-
case "sequence":
|
|
1687
|
-
for (let n of e.items) if (J(n, t, {
|
|
1688
|
-
depth: i,
|
|
1689
|
-
parent: e,
|
|
1690
|
-
isKey: !1
|
|
1691
|
-
})) return !0;
|
|
1692
|
-
break;
|
|
1693
|
-
case "mapping": for (let { key: n, value: r } of e.items) if (J(n, t, {
|
|
1694
|
-
depth: i,
|
|
1695
|
-
parent: e,
|
|
1696
|
-
isKey: !0
|
|
1697
|
-
}) || J(r, t, {
|
|
1698
|
-
depth: i,
|
|
1699
|
-
parent: e,
|
|
1700
|
-
isKey: !1
|
|
1701
|
-
})) return !0;
|
|
1702
|
-
}
|
|
1703
|
-
return !1;
|
|
1704
|
-
}
|
|
1705
|
-
function Fn(e, t) {
|
|
1706
|
-
for (let n of e) if (n.contents && J(n.contents, t, {
|
|
1707
|
-
depth: 0,
|
|
1708
|
-
parent: null,
|
|
1709
|
-
isKey: !1
|
|
1710
|
-
})) return;
|
|
1711
|
-
}
|
|
1712
|
-
function Y(e, t) {
|
|
1713
|
-
return !!(e & 1 << t);
|
|
1714
|
-
}
|
|
1715
|
-
var In = {
|
|
1716
|
-
applyQuoteFlowKeysOption: Rn,
|
|
1717
|
-
doubleQuoteForInvisibles: zn,
|
|
1718
|
-
doubleQuoteWhitespaceOnly: Bn,
|
|
1719
|
-
applyForceQuotesOption: Vn,
|
|
1720
|
-
tryLongOrMultilineAsBlock: Hn,
|
|
1721
|
-
quoteInvalidPlain: Un,
|
|
1722
|
-
fallbackToDoubleQuoted: Wn
|
|
1723
|
-
};
|
|
1724
|
-
function Ln(e) {
|
|
1725
|
-
return e.presenterOptions.quoteStyle === "single" && Y(e.allowedStylesMask, b.SINGLE_QUOTED) ? b.SINGLE_QUOTED : b.DOUBLE_QUOTED;
|
|
1726
|
-
}
|
|
1727
|
-
function Rn(e) {
|
|
1728
|
-
e.presenterOptions.quoteFlowKeys && (!e.isKey || !e.flowOnly || e.style !== b.PLAIN || (e.style = b.DOUBLE_QUOTED));
|
|
1729
|
-
}
|
|
1730
|
-
function zn(e) {
|
|
1731
|
-
e.style === b.PLAIN && /[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value) && (e.style = b.DOUBLE_QUOTED);
|
|
1732
|
-
}
|
|
1733
|
-
function Bn(e) {
|
|
1734
|
-
e.style === b.PLAIN && /^\s+$/.test(e.node.value) && (e.style = b.DOUBLE_QUOTED);
|
|
1735
|
-
}
|
|
1736
|
-
function Vn(e) {
|
|
1737
|
-
e.presenterOptions.forceQuotes && (e.isKey || e.style !== b.PLAIN || (e.style = e.node.value.includes("\n") ? b.DOUBLE_QUOTED : Ln(e)));
|
|
1738
|
-
}
|
|
1739
|
-
function Hn(e) {
|
|
1740
|
-
if (e.style !== b.PLAIN || e.isKey) return;
|
|
1741
|
-
let t = e.node.value, n = t.indexOf("\n") !== -1;
|
|
1742
|
-
if (!Y(e.allowedStylesMask, b.LITERAL_BLOCK)) {
|
|
1743
|
-
n && (e.style = b.DOUBLE_QUOTED);
|
|
1744
|
-
return;
|
|
1745
|
-
}
|
|
1746
|
-
let r = e.presenterOptions.lineWidth;
|
|
1747
|
-
if (r === -1) {
|
|
1748
|
-
n && (e.style = b.LITERAL_BLOCK);
|
|
1749
|
-
return;
|
|
1750
|
-
}
|
|
1751
|
-
let i = Math.max(Math.min(r, 40), r - e.shiftOfContent), a = 0, o = !1;
|
|
1752
|
-
for (; a <= t.length;) {
|
|
1753
|
-
let e = t.length, n = t.indexOf("\n", a);
|
|
1754
|
-
n !== -1 && (e = n);
|
|
1755
|
-
let r = t.slice(a, e);
|
|
1756
|
-
if (r.length > i && r[0] !== " " && / [^ \t]/.test(r) && (o = !0), n === -1) break;
|
|
1757
|
-
a = n + 1;
|
|
1758
|
-
}
|
|
1759
|
-
o ? e.style = b.FOLDED_BLOCK : n && (e.style = b.LITERAL_BLOCK);
|
|
1760
|
-
}
|
|
1761
|
-
function Un(e) {
|
|
1762
|
-
e.style === b.PLAIN && !Y(e.allowedStylesMask, b.PLAIN) && (e.style = Ln(e));
|
|
1763
|
-
}
|
|
1764
|
-
function Wn(e) {
|
|
1765
|
-
Y(e.allowedStylesMask, e.style) || (e.style = b.DOUBLE_QUOTED);
|
|
1766
|
-
}
|
|
1767
|
-
function X(e, t) {
|
|
1768
|
-
return e | 1 << t;
|
|
1769
|
-
}
|
|
1770
|
-
var Gn = "[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]", Kn = "[\\n\\r]", qn = "\\uFEFF", Jn = "[ \\t]", Yn = `(?:(?!(?:${Kn}|${qn}))${Gn})`, Z = `(?:(?!${Jn})${Yn})`, Xn = "[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]", Zn = "[-?:,\\[\\]{}#&*!|>'\"%@`]", Qn = "[,\\[\\]{}]", $n = Z, er = `(?:(?!${Qn})${Z})`, tr = `(?:(?:(?!${Zn})${Z})|[?:-](?=${$n}))`, nr = `(?:(?:(?!${Zn})${Z})|[?:-](?=${er}))`, rr = `(?:(?:(?![:#])${$n})|:(?=${$n}))#*`, ir = `(?:(?:(?![:#])${er})|:(?=${er}))#*`, ar = `(?:${Jn}*${rr})*`, or = `(?:${Jn}*${ir})*`, sr = `${tr}#*${ar}`, cr = `${nr}#*${or}`, lr = sr, ur = cr, dr = `\\n+${rr}${ar}`, fr = `\\n+${ir}${or}`, pr = `${sr}(?:${dr})*`, mr = `${cr}(?:${fr})*`, hr = RegExp(`^(?:${pr})$`, "u"), gr = RegExp(`^(?:${mr})$`, "u"), _r = RegExp(`^(?:${lr})$`, "u"), vr = RegExp(`^(?:${ur})$`, "u"), yr = RegExp(`^(?:${Xn})*$`, "u"), br = RegExp(`^(?:${Xn}|\\n)*$`, "u"), xr = RegExp(`^(?:${Yn}|\\n)*$`, "u"), Sr = /^(?:---|\.\.\.)(?=$|[ \t\n\r])/, Cr = /^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;
|
|
1771
|
-
function wr(e) {
|
|
1772
|
-
let t = e.node.value;
|
|
1773
|
-
if (t !== "") {
|
|
1774
|
-
if (!(e.isKey ? e.flowOnly ? vr : _r : e.flowOnly ? gr : hr).test(t) || e.shiftOfFirstLine === 0 && Sr.test(t)) return !1;
|
|
1775
|
-
if (e.shiftOfContent === 0) {
|
|
1776
|
-
let e = t.indexOf("\n");
|
|
1777
|
-
if (e !== -1) {
|
|
1778
|
-
let n = t.slice(e + 1);
|
|
1779
|
-
if (Cr.test(n)) return !1;
|
|
1780
|
-
}
|
|
1781
|
-
}
|
|
1782
|
-
}
|
|
1783
|
-
let n = e.presenterOptions.schema.resolveImplicitScalarTag(t).tag.tagName;
|
|
1784
|
-
return !(!e.node.tagged && n !== e.node.tag || !e.node.tagged && t === "=" && n === e.presenterOptions.schema.defaultScalarTag.tagName);
|
|
1785
|
-
}
|
|
1786
|
-
function Tr(e) {
|
|
1787
|
-
let t = e.node.value;
|
|
1788
|
-
if (!(e.isKey ? yr : br).test(t) || /[ \t]\n|\n[ \t]/.test(t)) return !1;
|
|
1789
|
-
if (!e.isKey && e.shiftOfContent === 0) {
|
|
1790
|
-
let e = t.indexOf("\n");
|
|
1791
|
-
if (e !== -1 && Cr.test(t.slice(e + 1))) return !1;
|
|
1792
|
-
}
|
|
1793
|
-
return !0;
|
|
1794
|
-
}
|
|
1795
|
-
function Er(e) {
|
|
1796
|
-
if (e.flowOnly || !xr.test(e.node.value)) return !1;
|
|
1797
|
-
let t = e.shiftOfContent - e.shiftOfParent;
|
|
1798
|
-
return !(t < 1 || t > 9 && /^\n* /.test(e.node.value) || e.shiftOfContent === 0 && Cr.test(e.node.value));
|
|
1799
|
-
}
|
|
1800
|
-
function Dr(e) {
|
|
1801
|
-
let t = X(0, b.DOUBLE_QUOTED);
|
|
1802
|
-
wr(e) && (t = X(t, b.PLAIN)), Tr(e) && (t = X(t, b.SINGLE_QUOTED)), Er(e) && (t = X(X(t, b.LITERAL_BLOCK), b.FOLDED_BLOCK)), e.allowedStylesMask = t;
|
|
1803
|
-
}
|
|
1804
|
-
function Or(e) {
|
|
1805
|
-
switch (e.style) {
|
|
1806
|
-
case b.PLAIN: return kr(e);
|
|
1807
|
-
case b.SINGLE_QUOTED: return Ar(e);
|
|
1808
|
-
case b.LITERAL_BLOCK: return jr(e);
|
|
1809
|
-
case b.FOLDED_BLOCK: return Mr(e);
|
|
1810
|
-
case b.DOUBLE_QUOTED: return Nr(e);
|
|
1811
|
-
}
|
|
1812
|
-
}
|
|
1813
|
-
function kr(e) {
|
|
1814
|
-
return Pr(e.node.value, e.shiftOfContent);
|
|
1815
|
-
}
|
|
1816
|
-
function Ar(e) {
|
|
1817
|
-
return `'${Pr(e.node.value, e.shiftOfContent).replace(/'/g, "''")}'`;
|
|
1818
|
-
}
|
|
1819
|
-
function jr(e) {
|
|
1820
|
-
let t = e.node.value;
|
|
1821
|
-
return "|" + Lr(t, e.shiftOfParent, e.shiftOfContent) + Rr(Fr(t, e.shiftOfContent));
|
|
1822
|
-
}
|
|
1823
|
-
function Mr(e) {
|
|
1824
|
-
let t = e.node.value, n = e.presenterOptions.lineWidth, r = 1 / 0;
|
|
1825
|
-
return n !== -1 && (r = Math.max(Math.min(n, 40), n - e.shiftOfContent)), ">" + Lr(t, e.shiftOfParent, e.shiftOfContent) + Rr(Fr(Vr(t, r), e.shiftOfContent));
|
|
1826
|
-
}
|
|
1827
|
-
function Nr(e) {
|
|
1828
|
-
return `"${Wr(e.node.value)}"`;
|
|
1829
|
-
}
|
|
1830
|
-
function Pr(e, t) {
|
|
1831
|
-
let n = e.indexOf("\n");
|
|
1832
|
-
if (n === -1) return e;
|
|
1833
|
-
let r = " ".repeat(t), i = e.slice(0, n), a = /(\n+)([^\n]*)/g;
|
|
1834
|
-
a.lastIndex = n;
|
|
1835
|
-
let o;
|
|
1836
|
-
for (; o = a.exec(e);) {
|
|
1837
|
-
let e = o[1].length, t = o[2];
|
|
1838
|
-
i += "\n".repeat(e + 1) + r + t;
|
|
1839
|
-
}
|
|
1840
|
-
return i;
|
|
1841
|
-
}
|
|
1842
|
-
function Fr(e, t) {
|
|
1843
|
-
let n = " ".repeat(t), r = 0, i = "", a = e.length;
|
|
1844
|
-
for (; r < a;) {
|
|
1845
|
-
let t, o = e.indexOf("\n", r);
|
|
1846
|
-
o === -1 ? (t = e.slice(r), r = a) : (t = e.slice(r, o + 1), r = o + 1), t.length && t !== "\n" && (i += n), i += t;
|
|
1847
|
-
}
|
|
1848
|
-
return i;
|
|
1849
|
-
}
|
|
1850
|
-
function Ir(e) {
|
|
1851
|
-
return /^\n* /.test(e);
|
|
1852
|
-
}
|
|
1853
|
-
function Lr(e, t, n) {
|
|
1854
|
-
let r = Ir(e) ? String(n - t) : "", i = e[e.length - 1] === "\n";
|
|
1855
|
-
return `${r}${i && (e[e.length - 2] === "\n" || e === "\n") ? "+" : i ? "" : "-"}\n`;
|
|
1856
|
-
}
|
|
1857
|
-
function Rr(e) {
|
|
1858
|
-
return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
|
|
1859
|
-
}
|
|
1860
|
-
function zr(e) {
|
|
1861
|
-
return e === " " || e === " ";
|
|
1862
|
-
}
|
|
1863
|
-
function Br(e, t) {
|
|
1864
|
-
if (e === "" || zr(e[0])) return e;
|
|
1865
|
-
let n = / [^ \t]/g, r, i = 0, a, o = 0, s = 0, c = "";
|
|
1866
|
-
for (; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += `\n${e.slice(i, a)}`, i = a + 1), o = s;
|
|
1867
|
-
return c += "\n", e.length - i > t && o > i ? c += `${e.slice(i, o)}\n${e.slice(o + 1)}` : c += e.slice(i), c.slice(1);
|
|
1868
|
-
}
|
|
1869
|
-
function Vr(e, t) {
|
|
1870
|
-
let n = /(\n+)([^\n]*)/g, r = e.indexOf("\n");
|
|
1871
|
-
r === -1 && (r = e.length), n.lastIndex = r;
|
|
1872
|
-
let i = Br(e.slice(0, r), t), a = e[0] === "\n" || zr(e[0]), o, s;
|
|
1873
|
-
for (; s = n.exec(e);) {
|
|
1874
|
-
let e = s[1], n = s[2];
|
|
1875
|
-
o = n !== "" && zr(n[0]), i += e + (!a && !o && n !== "" ? "\n" : "") + Br(n, t), a = o;
|
|
1876
|
-
}
|
|
1877
|
-
return i;
|
|
1878
|
-
}
|
|
1879
|
-
var Hr = /["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;
|
|
1880
|
-
function Ur(e) {
|
|
1881
|
-
switch (e) {
|
|
1882
|
-
case "\0": return "\\0";
|
|
1883
|
-
case "\x07": return "\\a";
|
|
1884
|
-
case "\b": return "\\b";
|
|
1885
|
-
case " ": return "\\t";
|
|
1886
|
-
case "\n": return "\\n";
|
|
1887
|
-
case "\v": return "\\v";
|
|
1888
|
-
case "\f": return "\\f";
|
|
1889
|
-
case "\r": return "\\r";
|
|
1890
|
-
case "\x1B": return "\\e";
|
|
1891
|
-
case "\"": return "\\\"";
|
|
1892
|
-
case "\\": return "\\\\";
|
|
1893
|
-
case "
": return "\\N";
|
|
1894
|
-
case "\xA0": return "\\_";
|
|
1895
|
-
case "\u2028": return "\\L";
|
|
1896
|
-
case "\u2029": return "\\P";
|
|
1897
|
-
}
|
|
1898
|
-
let t = e.charCodeAt(0), n = t.toString(16).toUpperCase();
|
|
1899
|
-
return t <= 255 ? `\\x${"0".repeat(2 - n.length)}${n}` : `\\u${"0".repeat(4 - n.length)}${n}`;
|
|
1900
|
-
}
|
|
1901
|
-
function Wr(e) {
|
|
1902
|
-
return e.replace(Hr, Ur);
|
|
1903
|
-
}
|
|
1904
|
-
var Q = 10, Gr = {
|
|
1905
|
-
indent: 2,
|
|
1906
|
-
seqNoIndent: !1,
|
|
1907
|
-
seqInlineFirst: !0,
|
|
1908
|
-
lineWidth: 80,
|
|
1909
|
-
flowBracketPadding: !1,
|
|
1910
|
-
flowSkipCommaSpace: !1,
|
|
1911
|
-
flowSkipColonSpace: !1,
|
|
1912
|
-
quoteFlowKeys: !1,
|
|
1913
|
-
quoteStyle: "single",
|
|
1914
|
-
forceQuotes: !1,
|
|
1915
|
-
scalarStyleRules: Object.keys(In).map((e) => Reflect.get(In, e)),
|
|
1916
|
-
tagBeforeAnchor: !1
|
|
1917
|
-
};
|
|
1918
|
-
function Kr(e) {
|
|
1919
|
-
return e.tagged ? e.tag : Tt(e.tag);
|
|
1920
|
-
}
|
|
1921
|
-
function qr(e) {
|
|
1922
|
-
let t = {
|
|
1923
|
-
...Gr,
|
|
1924
|
-
...e
|
|
1925
|
-
};
|
|
1926
|
-
return t.flowSkipColonSpace && (t.quoteFlowKeys = !0), {
|
|
1927
|
-
...t,
|
|
1928
|
-
defaultScalarTagName: t.schema.defaultScalarTag.tagName,
|
|
1929
|
-
openEnded: !1
|
|
1930
|
-
};
|
|
1931
|
-
}
|
|
1932
|
-
function Jr(e, t) {
|
|
1933
|
-
return `\n${" ".repeat(e.indent * t)}`;
|
|
1934
|
-
}
|
|
1935
|
-
function Yr(e, t, n, r, i, a) {
|
|
1936
|
-
return {
|
|
1937
|
-
node: t,
|
|
1938
|
-
parent: n,
|
|
1939
|
-
level: r,
|
|
1940
|
-
isKey: i,
|
|
1941
|
-
flowOnly: a,
|
|
1942
|
-
shiftOfParent: r === 0 ? -1 : e.indent * (r - 1),
|
|
1943
|
-
shiftOfContent: e.indent * Math.max(1, r),
|
|
1944
|
-
shiftOfFirstLine: r === 0 ? 0 : e.indent * r,
|
|
1945
|
-
presenterOptions: e,
|
|
1946
|
-
allowedStylesMask: 0,
|
|
1947
|
-
style: t.style
|
|
1948
|
-
};
|
|
1949
|
-
}
|
|
1950
|
-
function Xr(e, t, n) {
|
|
1951
|
-
let r = "";
|
|
1952
|
-
for (let i = 0, a = n.items.length; i < a; i += 1) {
|
|
1953
|
-
let a = $(e, t, n.items[i], n, {}).text;
|
|
1954
|
-
i > 0 && (r += `,${e.flowSkipCommaSpace ? "" : " "}`), r += a;
|
|
1955
|
-
}
|
|
1956
|
-
let i = e.flowBracketPadding && n.items.length > 0 ? " " : "";
|
|
1957
|
-
return `[${i}${r}${i}]`;
|
|
1958
|
-
}
|
|
1959
|
-
function Zr(e, t, n, r) {
|
|
1960
|
-
let i = "";
|
|
1961
|
-
for (let a = 0, o = n.items.length; a < o; a += 1) {
|
|
1962
|
-
let o = $(e, t + 1, n.items[a], n, {
|
|
1963
|
-
block: !0,
|
|
1964
|
-
compact: e.seqInlineFirst,
|
|
1965
|
-
isblockseq: !0
|
|
1966
|
-
}).text;
|
|
1967
|
-
(!r || i !== "") && (i += Jr(e, t)), o === "" || Q === o.charCodeAt(0) ? i += "-" : i += "- ", i += o;
|
|
1968
|
-
}
|
|
1969
|
-
return i;
|
|
1970
|
-
}
|
|
1971
|
-
function Qr(e, t, n) {
|
|
1972
|
-
let r = "";
|
|
1973
|
-
for (let { key: i, value: a } of n.items) {
|
|
1974
|
-
let o = "";
|
|
1975
|
-
r !== "" && (o += `,${e.flowSkipCommaSpace ? "" : " "}`);
|
|
1976
|
-
let s = $(e, t, i, n, { iskey: !0 }), c = s.text, l = $(e, t, a, n, {}).text, u = e.flowSkipColonSpace || l === "" ? "" : " ", d = i.kind === "scalar" && s.noBody && (i.tagged || i.anchor !== void 0), f = i.kind === "alias" || d ? " " : "";
|
|
1977
|
-
o += `${c}${f}:${u}${l}`, r += o;
|
|
1978
|
-
}
|
|
1979
|
-
let i = e.flowBracketPadding && r !== "" ? " " : "";
|
|
1980
|
-
return `{${i}${r}${i}}`;
|
|
1981
|
-
}
|
|
1982
|
-
function $r(e, t, n, r) {
|
|
1983
|
-
let i = "";
|
|
1984
|
-
for (let a = 0, o = n.items.length; a < o; a += 1) {
|
|
1985
|
-
let o = "";
|
|
1986
|
-
(!r || i !== "") && (o += Jr(e, t));
|
|
1987
|
-
let { key: s, value: c } = n.items[a], l = (s.kind === "mapping" || s.kind === "sequence") && s.style === x.BLOCK && s.items.length !== 0 || s.kind === "scalar" && (s.style === b.LITERAL_BLOCK || s.style === b.FOLDED_BLOCK), u = l ? $(e, t + 1, s, n, {
|
|
1988
|
-
block: !0,
|
|
1989
|
-
compact: !0,
|
|
1990
|
-
isblockseq: !ei(e, s, t + 1)
|
|
1991
|
-
}) : $(e, t + 1, s, n, {
|
|
1992
|
-
block: !0,
|
|
1993
|
-
compact: !0,
|
|
1994
|
-
iskey: !0
|
|
1995
|
-
}), d = u.text, f = s.kind === "scalar" && s.value.indexOf("\n") !== -1, p = d.length > 1024 && /^[\s\S]{1025}/u.test(d), m = l || f || p;
|
|
1996
|
-
m && (d && Q === d.charCodeAt(0) ? o += "?" : o += "? "), o += d, m && (o += Jr(e, t));
|
|
1997
|
-
let h = $(e, t + 1, c, n, {
|
|
1998
|
-
block: !0,
|
|
1999
|
-
compact: m,
|
|
2000
|
-
isblockseq: m && !ei(e, c, t + 1)
|
|
2001
|
-
}).text, ee = s.kind === "scalar" && u.noBody && (s.tagged || s.anchor !== void 0), te = !m && (s.kind === "alias" || ee) ? " " : "";
|
|
2002
|
-
h === "" || Q === h.charCodeAt(0) ? o += `${te}:` : o += `${te}: `, o += h, i += o;
|
|
2003
|
-
}
|
|
2004
|
-
return i;
|
|
2005
|
-
}
|
|
2006
|
-
function ei(e, t, n) {
|
|
2007
|
-
return t.kind === "alias" || t.tagged || t.anchor !== void 0 || e.indent < 2 && n > 0;
|
|
2008
|
-
}
|
|
2009
|
-
function $(e, t, n, r, i) {
|
|
2010
|
-
if (n.kind === "alias") return e.openEnded = !1, {
|
|
2011
|
-
text: `*${n.anchor}`,
|
|
2012
|
-
noBody: !1
|
|
2013
|
-
};
|
|
2014
|
-
let { block: a = !1, iskey: o = !1, isblockseq: s = !1 } = i, c = i.compact ?? !1, l = n.anchor !== void 0;
|
|
2015
|
-
ei(e, n, t) && (c = !1);
|
|
2016
|
-
let u, d = n.tagged, f = a && (n.kind === "mapping" || n.kind === "sequence") && n.style === x.BLOCK && n.items.length !== 0;
|
|
2017
|
-
if (n.kind === "mapping") u = f ? $r(e, t, n, c) : Qr(e, t, n);
|
|
2018
|
-
else if (n.kind === "sequence") u = f ? e.seqNoIndent && !s && t > 0 ? Zr(e, t - 1, n, c) : Zr(e, t, n, c) : Xr(e, t, n);
|
|
2019
|
-
else {
|
|
2020
|
-
let i = Yr(e, n, r, t, o, !a);
|
|
2021
|
-
Dr(i);
|
|
2022
|
-
for (let t of e.scalarStyleRules) t(i);
|
|
2023
|
-
u = Or(i), e.openEnded = (i.style === b.LITERAL_BLOCK || i.style === b.FOLDED_BLOCK) && (n.value === "\n" || n.value.endsWith("\n\n")), d = n.tagged || u === "" && i.flowOnly && r?.kind === "sequence" && !l || i.style !== b.PLAIN && n.tag !== e.defaultScalarTagName;
|
|
2024
|
-
}
|
|
2025
|
-
(n.kind === "mapping" || n.kind === "sequence") && !f && (e.openEnded = !1), f && c && t > 0 && e.indent > 2 && (u = `${" ".repeat(e.indent - 2)}${u}`);
|
|
2026
|
-
let p = u === "", m = u;
|
|
2027
|
-
if (d || l) {
|
|
2028
|
-
let t = [], r = d ? Kr(n) : null, i = l ? `&${n.anchor}` : null;
|
|
2029
|
-
e.tagBeforeAnchor ? (r !== null && t.push(r), i !== null && t.push(i)) : (i !== null && t.push(i), r !== null && t.push(r));
|
|
2030
|
-
let a = u === "" || u.charCodeAt(0) === Q ? "" : " ";
|
|
2031
|
-
m = `${t.join(" ")}${a}${u}`;
|
|
2032
|
-
}
|
|
2033
|
-
return {
|
|
2034
|
-
text: m,
|
|
2035
|
-
noBody: p
|
|
2036
|
-
};
|
|
2037
|
-
}
|
|
2038
|
-
function ti(e) {
|
|
2039
|
-
return (e.kind === "sequence" || e.kind === "mapping") && e.style === x.BLOCK && e.items.length !== 0 && !e.tagged && e.anchor === void 0;
|
|
2040
|
-
}
|
|
2041
|
-
function ni(e) {
|
|
2042
|
-
let t = "";
|
|
2043
|
-
for (let n of e.directives) {
|
|
2044
|
-
if (n.kind === "yaml") {
|
|
2045
|
-
t += `%YAML ${n.version}\n`;
|
|
2046
|
-
continue;
|
|
2047
|
-
}
|
|
2048
|
-
let { handle: e, prefix: r } = n;
|
|
2049
|
-
t += `%TAG ${e} ${r}\n`;
|
|
2050
|
-
}
|
|
2051
|
-
return t;
|
|
2052
|
-
}
|
|
2053
|
-
function ri(e, t) {
|
|
2054
|
-
let n = qr(t), r = "", i = !1;
|
|
2055
|
-
for (let t = 0; t < e.length; t += 1) {
|
|
2056
|
-
let a = e[t];
|
|
2057
|
-
n.openEnded = !1;
|
|
2058
|
-
let o = ni(a), s = o !== "", c = a.explicitStart || s || t > 0 && !i;
|
|
2059
|
-
if (r += o, a.contents === null) c && (r += "---\n");
|
|
2060
|
-
else if (c) {
|
|
2061
|
-
let e = $(n, 0, a.contents, null, {
|
|
2062
|
-
block: !0,
|
|
2063
|
-
compact: !0
|
|
2064
|
-
}).text, t = e === "" ? "" : s || ti(a.contents) ? "\n" : " ";
|
|
2065
|
-
r += `---${t}${e}\n`;
|
|
2066
|
-
} else r += $(n, 0, a.contents, null, {
|
|
2067
|
-
block: !0,
|
|
2068
|
-
compact: !0
|
|
2069
|
-
}).text + "\n";
|
|
2070
|
-
i = a.explicitEnd || n.openEnded, i && (r += "...\n");
|
|
2071
|
-
}
|
|
2072
|
-
return r;
|
|
2073
|
-
}
|
|
2074
|
-
var ii = {
|
|
2075
|
-
...Gr,
|
|
2076
|
-
schema: nt,
|
|
2077
|
-
skipInvalid: !1,
|
|
2078
|
-
noRefs: !1,
|
|
2079
|
-
flowLevel: -1,
|
|
2080
|
-
sortKeys: !1,
|
|
2081
|
-
transform: () => {}
|
|
2082
|
-
};
|
|
2083
|
-
function ai(e, t) {
|
|
2084
|
-
let n = String(e), r = String(t);
|
|
2085
|
-
return n < r ? -1 : +(n > r);
|
|
2086
|
-
}
|
|
2087
|
-
function oi(e, t = {}) {
|
|
2088
|
-
let n = {
|
|
2089
|
-
...ii,
|
|
2090
|
-
...t
|
|
2091
|
-
}, r = Mn(e, n.schema, {
|
|
2092
|
-
noRefs: n.noRefs,
|
|
2093
|
-
skipInvalid: n.skipInvalid
|
|
2094
|
-
});
|
|
2095
|
-
if (n.flowLevel >= 0 && Fn(r, (e, t) => {
|
|
2096
|
-
if (!(t.depth < n.flowLevel)) return (e.kind === "sequence" || e.kind === "mapping") && (e.style = x.FLOW), Pn;
|
|
2097
|
-
}), n.sortKeys) {
|
|
2098
|
-
let e = n.sortKeys === !0 ? ai : n.sortKeys;
|
|
2099
|
-
Fn(r, (t) => {
|
|
2100
|
-
t.kind === "mapping" && t.items.sort((t, n) => e(t.key.kind === "scalar" ? t.key.value : "", n.key.kind === "scalar" ? n.key.value : ""));
|
|
2101
|
-
});
|
|
2102
|
-
}
|
|
2103
|
-
return n.transform(r), ri(r, {
|
|
2104
|
-
...Ke(n, Object.keys(Gr)),
|
|
2105
|
-
schema: n.schema
|
|
2106
|
-
});
|
|
2107
|
-
}
|
|
2108
|
-
y.DOCUMENT, y.SEQUENCE, y.MAPPING, y.SCALAR, y.ALIAS, y.POP, b.PLAIN, b.SINGLE_QUOTED, b.DOUBLE_QUOTED, b.LITERAL_BLOCK, b.FOLDED_BLOCK, x.BLOCK, x.FLOW, S.CLIP, S.STRIP, S.KEEP;
|
|
2109
|
-
//#endregion
|
|
2110
|
-
//#region ../../node_modules/.pnpm/confbox@0.3.1/node_modules/confbox/dist/yaml.mjs
|
|
2111
|
-
function si(t, r) {
|
|
2112
|
-
let i = kn(n(t), r);
|
|
2113
|
-
return e(t, i, r), i;
|
|
2114
|
-
}
|
|
2115
|
-
function ci(e, n) {
|
|
2116
|
-
let r = t(e, { preserveIndentation: !1 }), i = oi(e, {
|
|
2117
|
-
indent: typeof r.indent == "string" ? r.indent.length : r.indent,
|
|
2118
|
-
...n
|
|
2119
|
-
});
|
|
2120
|
-
return r.whitespace.start + i.trim() + r.whitespace.end;
|
|
2121
|
-
}
|
|
2122
|
-
//#endregion
|
|
2123
|
-
export { si as parseYAML, ci as stringifyYAML };
|