@redocly/replay 0.28.0-next.7 → 0.28.0-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{replay-AiChatProvider-Dib77evR.js → replay-AiChatProvider--1WugvKf.js} +1 -1
- package/dist/{replay-AiChatProvider-CL61KEj-.js → replay-AiChatProvider-BJdxRVOc.js} +6 -6
- package/dist/{replay-AiChatSqliteDBStorage-BmHRaty6.js → replay-AiChatSqliteDBStorage-D9fgt_9s.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-CAB-uQ_2.js → replay-AiChatSqliteDBStorage-DbGtw6xx.js} +1 -1
- package/dist/{replay-AiPanel-CKf0GTch.js → replay-AiPanel-BU8oG0pD.js} +4 -4
- package/dist/{replay-AiPanel-Co-SG9hy.js → replay-AiPanel-BYOLZjQX.js} +1 -1
- package/dist/{replay-FileWatcher-BpsHu7xD.js → replay-FileWatcher-BrhE0AP6.js} +1 -1
- package/dist/{replay-FileWatcher-BpncVTHg.js → replay-FileWatcher-JoqPJECh.js} +2 -2
- package/dist/{replay-SemanticSearchService-B9YYS_s4.js → replay-SemanticSearchService-BgQ1HMcT.js} +1 -1
- package/dist/{replay-SemanticSearchService-B_97hbQZ.js → replay-SemanticSearchService-DRDdGJkI.js} +1 -1
- package/dist/{replay-SqliteDBStorage-BYAD4Hdr.js → replay-SqliteDBStorage-B3zO7RGD.js} +1 -1
- package/dist/{replay-SqliteDBStorage-C4jv_awl.js → replay-SqliteDBStorage-D9Oeu_XC.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-DNp7rTwA.js → replay-TauriFileSystemAdapter-CxHFFCmk.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-dRydQRfd.js → replay-TauriFileSystemAdapter-DJETGEY7.js} +1 -1
- package/dist/{replay-TauriRootStorage-TvtzeQ9x.js → replay-TauriRootStorage-BSQQcFgG.js} +1 -1
- package/dist/{replay-TauriRootStorage-BUSjQzb0.js → replay-TauriRootStorage-XIJpsp6_.js} +2 -2
- package/dist/{replay-agent-loop-Bv3OEM5Y.js → replay-agent-loop-DxK1tiVw.js} +3 -3
- package/dist/{replay-agent-loop-FONgy9Lo.js → replay-agent-loop-IDavXm8f.js} +1 -1
- package/dist/{replay-ai-chat-mappers-Kj9YEXwF.js → replay-ai-chat-mappers-B-_eSMi4.js} +1 -1
- package/dist/{replay-ai-chat-mappers-CknwkJ22.js → replay-ai-chat-mappers-BmvAc4xt.js} +1 -1
- package/dist/{replay-create-model-DgfhU1ps.js → replay-create-model-CIY7WZ1P.js} +3 -3
- package/dist/{replay-create-model-Bq8Fl5Ai.js → replay-create-model-CscK0cT1.js} +3 -3
- package/dist/{replay-db-D3MZ3YVw.js → replay-db-C_cdHXEt.js} +1 -1
- package/dist/{replay-db-DjHsvWMQ.js → replay-db-e_3o5e3f.js} +1 -1
- package/dist/{replay-external-resolver-DgcgzfRI.js → replay-external-resolver-BmOmF-DG.js} +1 -1
- package/dist/{replay-external-resolver-SsE1pZoq.js → replay-external-resolver-nuL3ajF5.js} +2 -2
- package/dist/{replay-index-AEsPADo_.js → replay-index-B8Zfn7JD.js} +516 -510
- package/dist/{replay-index-C04sCExL.js → replay-index-C_DfEx-H.js} +1 -1
- package/dist/{replay-index-B-Z3hRlH.js → replay-index-DDt4LOBo.js} +13399 -13382
- package/dist/{replay-index-B3h5Szid.js → replay-index-Da2H-hpA.js} +2 -2
- package/dist/{replay-index-BJ5jmb2F.js → replay-index-DcbwI4wD.js} +1 -1
- package/dist/{replay-index-DzrZDRUX.js → replay-index-DjdDUkfV.js} +13 -13
- package/dist/{replay-index-l3GM4sbc.js → replay-index-E3Eu6_jY.js} +1 -1
- package/dist/{replay-index-eABpOyfi.js → replay-index-etIeWhnn.js} +1 -1
- package/dist/{replay-lint-BHwuW5sm.js → replay-lint-BjrmIhuZ.js} +11034 -10745
- package/dist/replay-lint-DVAifLdU.js +177 -0
- package/dist/{replay-lint-graphql-taKxgtqM.js → replay-lint-graphql-D1qaeEmu.js} +1 -1
- package/dist/{replay-lint-graphql-CcbpryHy.js → replay-lint-graphql-U_VxwRr1.js} +1 -1
- package/dist/{replay-periodic-revalidation-CEMQo8s1.js → replay-periodic-revalidation-BtEKdEKa.js} +1 -1
- package/dist/{replay-periodic-revalidation-Cg2y1tgz.js → replay-periodic-revalidation-C3eLm7Mw.js} +1 -1
- package/dist/{replay-resolve-DJdvx14A.js → replay-resolve-BYJosLqD.js} +18 -18
- package/dist/{replay-resolve-CSzH6SDp.js → replay-resolve-C97SfUAB.js} +271 -271
- package/dist/replay-respect-run-3FHTVHvs.js +8392 -0
- package/dist/replay-respect-run-CW5xFLKz.js +82 -0
- package/dist/{replay-tauri-path-C-oZvov6.js → replay-tauri-path-C-vLbl1V.js} +2 -2
- package/dist/{replay-tauri-path-D_hXMLdc.js → replay-tauri-path-CMpWmGvW.js} +1 -1
- package/dist/{replay-useAiChatQueries-DVCG23XB.js → replay-useAiChatQueries-CEYDGx9f.js} +1 -1
- package/dist/{replay-useAiChatQueries-DFd8ZJQG.js → replay-useAiChatQueries-DhTcllVx.js} +4 -4
- package/dist/{replay-validate-key-fIEjvAUc.js → replay-validate-key-DJ_1khxq.js} +2 -2
- package/dist/{replay-validate-key-qqV8ZWzl.js → replay-validate-key-Dj_UT2WG.js} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/package.json +5 -5
- package/dist/replay-lint-7nMI-JAv.js +0 -177
- package/dist/replay-respect-run-DTUpcIOb.js +0 -78
- package/dist/replay-respect-run-gVY8_9EV.js +0 -8200
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as hr, b8 as Ve, b9 as Re } from "./replay-index-
|
|
1
|
+
import { g as hr, b8 as Ve, b9 as Re } from "./replay-index-DDt4LOBo.js";
|
|
2
2
|
function gr(e) {
|
|
3
3
|
return !!e;
|
|
4
4
|
}
|
|
5
|
-
var
|
|
6
|
-
function
|
|
7
|
-
if (un) return
|
|
5
|
+
var Ct = {}, bt, un;
|
|
6
|
+
function dt() {
|
|
7
|
+
if (un) return bt;
|
|
8
8
|
un = 1;
|
|
9
9
|
const e = "\\\\/", t = `[^${e}]`, n = 0, r = "\\.", i = "\\+", o = "\\?", a = "\\/", s = "(?=.)", l = "[^/]", u = `(?:${a}|$)`, c = `(?:^|${a})`, S = `${r}{1,2}${u}`, m = `(?!${r})`, C = `(?!${c}${S})`, E = `(?!${r}{0,1}${u})`, w = `(?!${S})`, M = `[^.${a}]`, N = `${l}*?`, y = {
|
|
10
10
|
DOT_LITERAL: r,
|
|
@@ -54,7 +54,7 @@ function pt() {
|
|
|
54
54
|
word: "A-Za-z0-9_",
|
|
55
55
|
xdigit: "A-Fa-f0-9"
|
|
56
56
|
};
|
|
57
|
-
return
|
|
57
|
+
return bt = {
|
|
58
58
|
DEFAULT_MAX_EXTGLOB_RECURSION: n,
|
|
59
59
|
MAX_LENGTH: 1024 * 64,
|
|
60
60
|
POSIX_REGEX_SOURCE: f,
|
|
@@ -179,17 +179,17 @@ function pt() {
|
|
|
179
179
|
globChars(I) {
|
|
180
180
|
return I === !0 ? R : y;
|
|
181
181
|
}
|
|
182
|
-
},
|
|
182
|
+
}, bt;
|
|
183
183
|
}
|
|
184
184
|
var fn;
|
|
185
|
-
function
|
|
185
|
+
function ht() {
|
|
186
186
|
return fn || (fn = 1, (function(e) {
|
|
187
187
|
const {
|
|
188
188
|
REGEX_BACKSLASH: t,
|
|
189
189
|
REGEX_REMOVE_BACKSLASH: n,
|
|
190
190
|
REGEX_SPECIAL_CHARS: r,
|
|
191
191
|
REGEX_SPECIAL_CHARS_GLOBAL: i
|
|
192
|
-
} = /* @__PURE__ */
|
|
192
|
+
} = /* @__PURE__ */ dt();
|
|
193
193
|
e.isObject = (o) => o !== null && typeof o == "object" && !Array.isArray(o), e.hasRegexChars = (o) => r.test(o), e.isRegexChar = (o) => o.length === 1 && e.hasRegexChars(o), e.escapeRegex = (o) => o.replace(i, "\\$1"), e.toPosixSlashes = (o) => o.replace(t, "/"), e.isWindows = () => {
|
|
194
194
|
if (typeof navigator < "u" && navigator.platform) {
|
|
195
195
|
const o = navigator.platform.toLowerCase();
|
|
@@ -210,13 +210,13 @@ function dt() {
|
|
|
210
210
|
const s = o.split(a ? /[\\/]/ : "/"), l = s[s.length - 1];
|
|
211
211
|
return l === "" ? s[s.length - 2] : l;
|
|
212
212
|
};
|
|
213
|
-
})(
|
|
213
|
+
})(Ct)), Ct;
|
|
214
214
|
}
|
|
215
215
|
var Tt, pn;
|
|
216
216
|
function mr() {
|
|
217
217
|
if (pn) return Tt;
|
|
218
218
|
pn = 1;
|
|
219
|
-
const e = /* @__PURE__ */
|
|
219
|
+
const e = /* @__PURE__ */ ht(), {
|
|
220
220
|
CHAR_ASTERISK: t,
|
|
221
221
|
/* * */
|
|
222
222
|
CHAR_AT: n,
|
|
@@ -247,7 +247,7 @@ function mr() {
|
|
|
247
247
|
/* ) */
|
|
248
248
|
CHAR_RIGHT_SQUARE_BRACKET: w
|
|
249
249
|
/* ] */
|
|
250
|
-
} = /* @__PURE__ */
|
|
250
|
+
} = /* @__PURE__ */ dt(), M = (y) => y === s || y === r, N = (y) => {
|
|
251
251
|
y.isPrefix !== !0 && (y.depth = y.isGlobstar ? 1 / 0 : 1);
|
|
252
252
|
};
|
|
253
253
|
return Tt = (y, R) => {
|
|
@@ -386,8 +386,8 @@ function mr() {
|
|
|
386
386
|
if (f.tokens === !0 && (ue.maxDepth = 0, M($) || g.push(F), ue.tokens = g), f.parts === !0 || f.tokens === !0) {
|
|
387
387
|
let D;
|
|
388
388
|
for (let V = 0; V < A.length; V++) {
|
|
389
|
-
const Se = D ? D + 1 : q, fe = A[V],
|
|
390
|
-
f.tokens && (V === 0 && q !== 0 ? (g[V].isPrefix = !0, g[V].value = d) : g[V].value =
|
|
389
|
+
const Se = D ? D + 1 : q, fe = A[V], be = y.slice(Se, fe);
|
|
390
|
+
f.tokens && (V === 0 && q !== 0 ? (g[V].isPrefix = !0, g[V].value = d) : g[V].value = be, N(g[V]), ue.maxDepth += g[V].depth), (V !== 0 || be !== "") && x.push(be), D = fe;
|
|
391
391
|
}
|
|
392
392
|
if (D && D + 1 < y.length) {
|
|
393
393
|
const V = y.slice(D + 1);
|
|
@@ -398,11 +398,11 @@ function mr() {
|
|
|
398
398
|
return ue;
|
|
399
399
|
}, Tt;
|
|
400
400
|
}
|
|
401
|
-
var
|
|
401
|
+
var vt, dn;
|
|
402
402
|
function Ar() {
|
|
403
|
-
if (dn) return
|
|
403
|
+
if (dn) return vt;
|
|
404
404
|
dn = 1;
|
|
405
|
-
const e = /* @__PURE__ */
|
|
405
|
+
const e = /* @__PURE__ */ dt(), t = /* @__PURE__ */ ht(), {
|
|
406
406
|
MAX_LENGTH: n,
|
|
407
407
|
POSIX_REGEX_SOURCE: r,
|
|
408
408
|
REGEX_NON_SPECIAL_CHARS: i,
|
|
@@ -591,7 +591,7 @@ function Ar() {
|
|
|
591
591
|
QMARK_NO_DOT: ge,
|
|
592
592
|
STAR: we,
|
|
593
593
|
START_ANCHOR: ne
|
|
594
|
-
} = W, J = (
|
|
594
|
+
} = W, J = (T) => `(${x}(?:(?!${ne}${T.dot ? j : q}).)*?)`, le = f.dot ? "" : ye, $ = f.dot ? U : ge;
|
|
595
595
|
let F = f.bash === !0 ? J(f) : we;
|
|
596
596
|
f.capture && (F = `(${F})`), typeof f.noext == "boolean" && (f.noextglob = f.noext);
|
|
597
597
|
const h = {
|
|
@@ -614,67 +614,67 @@ function Ar() {
|
|
|
614
614
|
y = t.removePrefix(y, h), v = y.length;
|
|
615
615
|
const ae = [], z = [], X = [];
|
|
616
616
|
let d = A, p;
|
|
617
|
-
const ue = () => h.index === v - 1, D = h.peek = (
|
|
618
|
-
h.consumed +=
|
|
619
|
-
},
|
|
620
|
-
h.output +=
|
|
617
|
+
const ue = () => h.index === v - 1, D = h.peek = (T = 1) => y[h.index + T], V = h.advance = () => y[++h.index] || "", Se = () => y.slice(h.index + 1), fe = (T = "", Y = 0) => {
|
|
618
|
+
h.consumed += T, h.index += Y;
|
|
619
|
+
}, be = (T) => {
|
|
620
|
+
h.output += T.output != null ? T.output : T.value, fe(T.value);
|
|
621
621
|
}, pr = () => {
|
|
622
|
-
let
|
|
622
|
+
let T = 1;
|
|
623
623
|
for (; D() === "!" && (D(2) !== "(" || D(3) === "?"); )
|
|
624
|
-
V(), h.start++,
|
|
625
|
-
return
|
|
626
|
-
}, Je = (
|
|
627
|
-
h[
|
|
628
|
-
},
|
|
629
|
-
h[
|
|
630
|
-
}, O = (
|
|
624
|
+
V(), h.start++, T++;
|
|
625
|
+
return T % 2 === 0 ? !1 : (h.negated = !0, h.start++, !0);
|
|
626
|
+
}, Je = (T) => {
|
|
627
|
+
h[T]++, X.push(T);
|
|
628
|
+
}, Te = (T) => {
|
|
629
|
+
h[T]--, X.pop();
|
|
630
|
+
}, O = (T) => {
|
|
631
631
|
if (d.type === "globstar") {
|
|
632
|
-
const Y = h.braces > 0 && (
|
|
633
|
-
|
|
632
|
+
const Y = h.braces > 0 && (T.type === "comma" || T.type === "brace"), b = T.extglob === !0 || ae.length && (T.type === "pipe" || T.type === "paren");
|
|
633
|
+
T.type !== "slash" && T.type !== "paren" && !Y && !b && (h.output = h.output.slice(0, -d.output.length), d.type = "star", d.value = "*", d.output = F, h.output += d.output);
|
|
634
634
|
}
|
|
635
|
-
if (ae.length &&
|
|
636
|
-
d.output = (d.output || d.value) +
|
|
635
|
+
if (ae.length && T.type !== "paren" && (ae[ae.length - 1].inner += T.value), (T.value || T.output) && be(T), d && d.type === "text" && T.type === "text") {
|
|
636
|
+
d.output = (d.output || d.value) + T.value, d.value += T.value;
|
|
637
637
|
return;
|
|
638
638
|
}
|
|
639
|
-
|
|
640
|
-
}, et = (
|
|
641
|
-
const
|
|
642
|
-
|
|
643
|
-
const P = (f.capture ? "(" : "") +
|
|
644
|
-
Je("parens"), O({ type:
|
|
645
|
-
}, dr = (
|
|
646
|
-
const Y = y.slice(
|
|
647
|
-
if ((
|
|
648
|
-
const K = P.safeOutput ? (
|
|
639
|
+
T.prev = d, g.push(T), d = T;
|
|
640
|
+
}, et = (T, Y) => {
|
|
641
|
+
const b = { ...L[Y], conditions: 1, inner: "" };
|
|
642
|
+
b.prev = d, b.parens = h.parens, b.output = h.output, b.startIndex = h.index, b.tokensIndex = g.length;
|
|
643
|
+
const P = (f.capture ? "(" : "") + b.open;
|
|
644
|
+
Je("parens"), O({ type: T, value: Y, output: h.output ? "" : de }), O({ type: "paren", extglob: !0, value: V(), output: P }), ae.push(b);
|
|
645
|
+
}, dr = (T) => {
|
|
646
|
+
const Y = y.slice(T.startIndex, h.index + 1), b = y.slice(T.startIndex + 2, h.index), P = N(b, f);
|
|
647
|
+
if ((T.type === "plus" || T.type === "star") && P.risky) {
|
|
648
|
+
const K = P.safeOutput ? (T.output ? "" : de) + (f.capture ? `(${P.safeOutput})` : P.safeOutput) : void 0, me = g[T.tokensIndex];
|
|
649
649
|
me.type = "text", me.value = Y, me.output = K || t.escapeRegex(Y);
|
|
650
|
-
for (let Ae =
|
|
650
|
+
for (let Ae = T.tokensIndex + 1; Ae < g.length; Ae++)
|
|
651
651
|
g[Ae].value = "", g[Ae].output = "", delete g[Ae].suffix;
|
|
652
|
-
h.output =
|
|
652
|
+
h.output = T.output + me.output, h.backtrack = !0, O({ type: "paren", extglob: !0, value: p, output: "" }), Te("parens");
|
|
653
653
|
return;
|
|
654
654
|
}
|
|
655
|
-
let G =
|
|
656
|
-
if (
|
|
655
|
+
let G = T.close + (f.capture ? ")" : ""), Q;
|
|
656
|
+
if (T.type === "negate") {
|
|
657
657
|
let K = F;
|
|
658
|
-
if (
|
|
658
|
+
if (T.inner && T.inner.length > 1 && T.inner.includes("/") && (K = J(f)), (K !== F || ue() || /^\)+$/.test(Se())) && (G = T.close = `)$))${K}`), T.inner.includes("*") && (Q = Se()) && /^\.[^\\/.]+$/.test(Q)) {
|
|
659
659
|
const me = k(Q, { ...R, fastpaths: !1 }).output;
|
|
660
|
-
G =
|
|
660
|
+
G = T.close = `)${me})${K})`;
|
|
661
661
|
}
|
|
662
|
-
|
|
662
|
+
T.prev.type === "bos" && (h.negatedExtglob = !0);
|
|
663
663
|
}
|
|
664
|
-
O({ type: "paren", extglob: !0, value: p, output: G }),
|
|
664
|
+
O({ type: "paren", extglob: !0, value: p, output: G }), Te("parens");
|
|
665
665
|
};
|
|
666
666
|
if (f.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(y)) {
|
|
667
|
-
let
|
|
668
|
-
return
|
|
667
|
+
let T = !1, Y = y.replace(o, (b, P, G, Q, K, me) => Q === "\\" ? (T = !0, b) : Q === "?" ? P ? P + Q + (K ? U.repeat(K.length) : "") : me === 0 ? $ + (K ? U.repeat(K.length) : "") : U.repeat(G.length) : Q === "." ? q.repeat(G.length) : Q === "*" ? P ? P + Q + (K ? F : "") : F : P ? b : `\\${b}`);
|
|
668
|
+
return T === !0 && (f.unescape === !0 ? Y = Y.replace(/\\/g, "") : Y = Y.replace(/\\+/g, (b) => b.length % 2 === 0 ? "\\\\" : b ? "\\" : "")), Y === y && f.contains === !0 ? (h.output = y, h) : (h.output = t.wrapOutput(Y, h, R), h);
|
|
669
669
|
}
|
|
670
670
|
for (; !ue(); ) {
|
|
671
671
|
if (p = V(), p === "\0")
|
|
672
672
|
continue;
|
|
673
673
|
if (p === "\\") {
|
|
674
|
-
const
|
|
675
|
-
if (
|
|
674
|
+
const b = D();
|
|
675
|
+
if (b === "/" && f.bash !== !0 || b === "." || b === ";")
|
|
676
676
|
continue;
|
|
677
|
-
if (!
|
|
677
|
+
if (!b) {
|
|
678
678
|
p += "\\", O({ type: "text", value: p });
|
|
679
679
|
continue;
|
|
680
680
|
}
|
|
@@ -687,8 +687,8 @@ function Ar() {
|
|
|
687
687
|
}
|
|
688
688
|
if (h.brackets > 0 && (p !== "]" || d.value === "[" || d.value === "[^")) {
|
|
689
689
|
if (f.posix !== !1 && p === ":") {
|
|
690
|
-
const
|
|
691
|
-
if (
|
|
690
|
+
const b = d.value.slice(1);
|
|
691
|
+
if (b.includes("[") && (d.posix = !0, b.includes(":"))) {
|
|
692
692
|
const P = d.value.lastIndexOf("["), G = d.value.slice(0, P), Q = d.value.slice(P + 2), K = r[Q];
|
|
693
693
|
if (K) {
|
|
694
694
|
d.value = G + K, h.backtrack = !0, V(), !A.output && g.indexOf(d) === 1 && (A.output = de);
|
|
@@ -696,11 +696,11 @@ function Ar() {
|
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
|
-
(p === "[" && D() !== ":" || p === "-" && D() === "]") && (p = `\\${p}`), p === "]" && (d.value === "[" || d.value === "[^") && (p = `\\${p}`), f.posix === !0 && p === "!" && d.value === "[" && (p = "^"), d.value += p,
|
|
699
|
+
(p === "[" && D() !== ":" || p === "-" && D() === "]") && (p = `\\${p}`), p === "]" && (d.value === "[" || d.value === "[^") && (p = `\\${p}`), f.posix === !0 && p === "!" && d.value === "[" && (p = "^"), d.value += p, be({ value: p });
|
|
700
700
|
continue;
|
|
701
701
|
}
|
|
702
702
|
if (h.quotes === 1 && p !== '"') {
|
|
703
|
-
p = t.escapeRegex(p), d.value += p,
|
|
703
|
+
p = t.escapeRegex(p), d.value += p, be({ value: p });
|
|
704
704
|
continue;
|
|
705
705
|
}
|
|
706
706
|
if (p === '"') {
|
|
@@ -714,12 +714,12 @@ function Ar() {
|
|
|
714
714
|
if (p === ")") {
|
|
715
715
|
if (h.parens === 0 && f.strictBrackets === !0)
|
|
716
716
|
throw new SyntaxError(l("opening", "("));
|
|
717
|
-
const
|
|
718
|
-
if (
|
|
717
|
+
const b = ae[ae.length - 1];
|
|
718
|
+
if (b && h.parens === b.parens + 1) {
|
|
719
719
|
dr(ae.pop());
|
|
720
720
|
continue;
|
|
721
721
|
}
|
|
722
|
-
O({ type: "paren", value: p, output: h.parens ? ")" : "\\)" }),
|
|
722
|
+
O({ type: "paren", value: p, output: h.parens ? ")" : "\\)" }), Te("parens");
|
|
723
723
|
continue;
|
|
724
724
|
}
|
|
725
725
|
if (p === "[") {
|
|
@@ -743,9 +743,9 @@ function Ar() {
|
|
|
743
743
|
O({ type: "text", value: p, output: `\\${p}` });
|
|
744
744
|
continue;
|
|
745
745
|
}
|
|
746
|
-
|
|
747
|
-
const
|
|
748
|
-
if (d.posix !== !0 &&
|
|
746
|
+
Te("brackets");
|
|
747
|
+
const b = d.value.slice(1);
|
|
748
|
+
if (d.posix !== !0 && b[0] === "^" && !b.includes("/") && (p = `/${p}`), d.value += p, be({ value: p }), f.literalBrackets === !1 || t.hasRegexChars(b))
|
|
749
749
|
continue;
|
|
750
750
|
const P = t.escapeRegex(d.value);
|
|
751
751
|
if (h.output = h.output.slice(0, -d.value.length), f.literalBrackets === !0) {
|
|
@@ -757,36 +757,36 @@ function Ar() {
|
|
|
757
757
|
}
|
|
758
758
|
if (p === "{" && f.nobrace !== !0) {
|
|
759
759
|
Je("braces");
|
|
760
|
-
const
|
|
760
|
+
const b = {
|
|
761
761
|
type: "brace",
|
|
762
762
|
value: p,
|
|
763
763
|
output: "(",
|
|
764
764
|
outputIndex: h.output.length,
|
|
765
765
|
tokensIndex: h.tokens.length
|
|
766
766
|
};
|
|
767
|
-
z.push(
|
|
767
|
+
z.push(b), O(b);
|
|
768
768
|
continue;
|
|
769
769
|
}
|
|
770
770
|
if (p === "}") {
|
|
771
|
-
const
|
|
772
|
-
if (f.nobrace === !0 || !
|
|
771
|
+
const b = z[z.length - 1];
|
|
772
|
+
if (f.nobrace === !0 || !b) {
|
|
773
773
|
O({ type: "text", value: p, output: p });
|
|
774
774
|
continue;
|
|
775
775
|
}
|
|
776
776
|
let P = ")";
|
|
777
|
-
if (
|
|
777
|
+
if (b.dots === !0) {
|
|
778
778
|
const G = g.slice(), Q = [];
|
|
779
779
|
for (let K = G.length - 1; K >= 0 && (g.pop(), G[K].type !== "brace"); K--)
|
|
780
780
|
G[K].type !== "dots" && Q.unshift(G[K].value);
|
|
781
781
|
P = s(Q, f), h.backtrack = !0;
|
|
782
782
|
}
|
|
783
|
-
if (
|
|
784
|
-
const G = h.output.slice(0,
|
|
785
|
-
|
|
783
|
+
if (b.comma !== !0 && b.dots !== !0) {
|
|
784
|
+
const G = h.output.slice(0, b.outputIndex), Q = h.tokens.slice(b.tokensIndex);
|
|
785
|
+
b.value = b.output = "\\{", p = P = "\\}", h.output = G;
|
|
786
786
|
for (const K of Q)
|
|
787
787
|
h.output += K.output || K.value;
|
|
788
788
|
}
|
|
789
|
-
O({ type: "brace", value: p, output: P }),
|
|
789
|
+
O({ type: "brace", value: p, output: P }), Te("braces"), z.pop();
|
|
790
790
|
continue;
|
|
791
791
|
}
|
|
792
792
|
if (p === "|") {
|
|
@@ -794,9 +794,9 @@ function Ar() {
|
|
|
794
794
|
continue;
|
|
795
795
|
}
|
|
796
796
|
if (p === ",") {
|
|
797
|
-
let
|
|
797
|
+
let b = p;
|
|
798
798
|
const P = z[z.length - 1];
|
|
799
|
-
P && X[X.length - 1] === "braces" && (P.comma = !0,
|
|
799
|
+
P && X[X.length - 1] === "braces" && (P.comma = !0, b = "|"), O({ type: "comma", value: p, output: b });
|
|
800
800
|
continue;
|
|
801
801
|
}
|
|
802
802
|
if (p === "/") {
|
|
@@ -810,8 +810,8 @@ function Ar() {
|
|
|
810
810
|
if (p === ".") {
|
|
811
811
|
if (h.braces > 0 && d.type === "dot") {
|
|
812
812
|
d.value === "." && (d.output = q);
|
|
813
|
-
const
|
|
814
|
-
d.type = "dots", d.output += p, d.value += p,
|
|
813
|
+
const b = z[z.length - 1];
|
|
814
|
+
d.type = "dots", d.output += p, d.value += p, b.dots = !0;
|
|
815
815
|
continue;
|
|
816
816
|
}
|
|
817
817
|
if (h.braces + h.parens === 0 && d.type !== "bos" && d.type !== "slash") {
|
|
@@ -875,16 +875,16 @@ function Ar() {
|
|
|
875
875
|
}
|
|
876
876
|
if (p !== "*") {
|
|
877
877
|
(p === "$" || p === "^") && (p = `\\${p}`);
|
|
878
|
-
const
|
|
879
|
-
|
|
878
|
+
const b = i.exec(Se());
|
|
879
|
+
b && (p += b[0], h.index += b[0].length), O({ type: "text", value: p });
|
|
880
880
|
continue;
|
|
881
881
|
}
|
|
882
882
|
if (d && (d.type === "globstar" || d.star === !0)) {
|
|
883
883
|
d.type = "star", d.star = !0, d.value += p, d.output = F, h.backtrack = !0, h.globstar = !0, fe(p);
|
|
884
884
|
continue;
|
|
885
885
|
}
|
|
886
|
-
let
|
|
887
|
-
if (f.noextglob !== !0 && /^\([^?]/.test(
|
|
886
|
+
let T = Se();
|
|
887
|
+
if (f.noextglob !== !0 && /^\([^?]/.test(T)) {
|
|
888
888
|
et("star", p);
|
|
889
889
|
continue;
|
|
890
890
|
}
|
|
@@ -893,36 +893,36 @@ function Ar() {
|
|
|
893
893
|
fe(p);
|
|
894
894
|
continue;
|
|
895
895
|
}
|
|
896
|
-
const
|
|
897
|
-
if (f.bash === !0 && (!G ||
|
|
896
|
+
const b = d.prev, P = b.prev, G = b.type === "slash" || b.type === "bos", Q = P && (P.type === "star" || P.type === "globstar");
|
|
897
|
+
if (f.bash === !0 && (!G || T[0] && T[0] !== "/")) {
|
|
898
898
|
O({ type: "star", value: p, output: "" });
|
|
899
899
|
continue;
|
|
900
900
|
}
|
|
901
|
-
const K = h.braces > 0 && (
|
|
902
|
-
if (!G &&
|
|
901
|
+
const K = h.braces > 0 && (b.type === "comma" || b.type === "brace"), me = ae.length && (b.type === "pipe" || b.type === "paren");
|
|
902
|
+
if (!G && b.type !== "paren" && !K && !me) {
|
|
903
903
|
O({ type: "star", value: p, output: "" });
|
|
904
904
|
continue;
|
|
905
905
|
}
|
|
906
|
-
for (;
|
|
906
|
+
for (; T.slice(0, 3) === "/**"; ) {
|
|
907
907
|
const Ae = y[h.index + 4];
|
|
908
908
|
if (Ae && Ae !== "/")
|
|
909
909
|
break;
|
|
910
|
-
|
|
910
|
+
T = T.slice(3), fe("/**", 3);
|
|
911
911
|
}
|
|
912
|
-
if (
|
|
912
|
+
if (b.type === "bos" && ue()) {
|
|
913
913
|
d.type = "globstar", d.value += p, d.output = J(f), h.output = d.output, h.globstar = !0, fe(p);
|
|
914
914
|
continue;
|
|
915
915
|
}
|
|
916
|
-
if (
|
|
917
|
-
h.output = h.output.slice(0, -(
|
|
916
|
+
if (b.type === "slash" && b.prev.type !== "bos" && !Q && ue()) {
|
|
917
|
+
h.output = h.output.slice(0, -(b.output + d.output).length), b.output = `(?:${b.output}`, d.type = "globstar", d.output = J(f) + (f.strictSlashes ? ")" : "|$)"), d.value += p, h.globstar = !0, h.output += b.output + d.output, fe(p);
|
|
918
918
|
continue;
|
|
919
919
|
}
|
|
920
|
-
if (
|
|
921
|
-
const Ae =
|
|
922
|
-
h.output = h.output.slice(0, -(
|
|
920
|
+
if (b.type === "slash" && b.prev.type !== "bos" && T[0] === "/") {
|
|
921
|
+
const Ae = T[1] !== void 0 ? "|$" : "";
|
|
922
|
+
h.output = h.output.slice(0, -(b.output + d.output).length), b.output = `(?:${b.output}`, d.type = "globstar", d.output = `${J(f)}${se}|${se}${Ae})`, d.value += p, h.output += b.output + d.output, h.globstar = !0, fe(p + V()), O({ type: "slash", value: "/", output: "" });
|
|
923
923
|
continue;
|
|
924
924
|
}
|
|
925
|
-
if (
|
|
925
|
+
if (b.type === "bos" && T[0] === "/") {
|
|
926
926
|
d.type = "globstar", d.value += p, d.output = `(?:^|${se}|${J(f)}${se})`, h.output = d.output, h.globstar = !0, fe(p + V()), O({ type: "slash", value: "/", output: "" });
|
|
927
927
|
continue;
|
|
928
928
|
}
|
|
@@ -942,20 +942,20 @@ function Ar() {
|
|
|
942
942
|
}
|
|
943
943
|
for (; h.brackets > 0; ) {
|
|
944
944
|
if (f.strictBrackets === !0) throw new SyntaxError(l("closing", "]"));
|
|
945
|
-
h.output = t.escapeLast(h.output, "["),
|
|
945
|
+
h.output = t.escapeLast(h.output, "["), Te("brackets");
|
|
946
946
|
}
|
|
947
947
|
for (; h.parens > 0; ) {
|
|
948
948
|
if (f.strictBrackets === !0) throw new SyntaxError(l("closing", ")"));
|
|
949
|
-
h.output = t.escapeLast(h.output, "("),
|
|
949
|
+
h.output = t.escapeLast(h.output, "("), Te("parens");
|
|
950
950
|
}
|
|
951
951
|
for (; h.braces > 0; ) {
|
|
952
952
|
if (f.strictBrackets === !0) throw new SyntaxError(l("closing", "}"));
|
|
953
|
-
h.output = t.escapeLast(h.output, "{"),
|
|
953
|
+
h.output = t.escapeLast(h.output, "{"), Te("braces");
|
|
954
954
|
}
|
|
955
955
|
if (f.strictSlashes !== !0 && (d.type === "star" || d.type === "bracket") && O({ type: "maybe_slash", value: "", output: `${se}?` }), h.backtrack === !0) {
|
|
956
956
|
h.output = "";
|
|
957
|
-
for (const
|
|
958
|
-
h.output +=
|
|
957
|
+
for (const T of h.tokens)
|
|
958
|
+
h.output += T.output != null ? T.output : T.value, T.suffix && (h.output += T.suffix);
|
|
959
959
|
}
|
|
960
960
|
return h;
|
|
961
961
|
};
|
|
@@ -1005,13 +1005,13 @@ function Ar() {
|
|
|
1005
1005
|
}, ne = t.removePrefix(y, he);
|
|
1006
1006
|
let J = we(ne);
|
|
1007
1007
|
return J && f.strictSlashes !== !0 && (J += `${g}?`), J;
|
|
1008
|
-
},
|
|
1008
|
+
}, vt = k, vt;
|
|
1009
1009
|
}
|
|
1010
|
-
var
|
|
1010
|
+
var Rt, hn;
|
|
1011
1011
|
function yr() {
|
|
1012
|
-
if (hn) return
|
|
1012
|
+
if (hn) return Rt;
|
|
1013
1013
|
hn = 1;
|
|
1014
|
-
const e = /* @__PURE__ */ mr(), t = /* @__PURE__ */ Ar(), n = /* @__PURE__ */
|
|
1014
|
+
const e = /* @__PURE__ */ mr(), t = /* @__PURE__ */ Ar(), n = /* @__PURE__ */ ht(), r = /* @__PURE__ */ dt(), i = (a) => a && typeof a == "object" && !Array.isArray(a), o = (a, s, l = !1) => {
|
|
1015
1015
|
if (Array.isArray(a)) {
|
|
1016
1016
|
const M = a.map((k) => o(k, s, l));
|
|
1017
1017
|
return (k) => {
|
|
@@ -1067,24 +1067,24 @@ function yr() {
|
|
|
1067
1067
|
if (s && s.debug === !0) throw l;
|
|
1068
1068
|
return /$^/;
|
|
1069
1069
|
}
|
|
1070
|
-
}, o.constants = r,
|
|
1070
|
+
}, o.constants = r, Rt = o, Rt;
|
|
1071
1071
|
}
|
|
1072
|
-
var
|
|
1072
|
+
var xt, gn;
|
|
1073
1073
|
function Sr() {
|
|
1074
|
-
if (gn) return
|
|
1074
|
+
if (gn) return xt;
|
|
1075
1075
|
gn = 1;
|
|
1076
|
-
const e = /* @__PURE__ */ yr(), t = /* @__PURE__ */
|
|
1076
|
+
const e = /* @__PURE__ */ yr(), t = /* @__PURE__ */ ht();
|
|
1077
1077
|
function n(r, i, o = !1) {
|
|
1078
1078
|
return i && (i.windows === null || i.windows === void 0) && (i = { ...i, windows: t.isWindows() }), e(r, i, o);
|
|
1079
1079
|
}
|
|
1080
|
-
return Object.assign(n, e),
|
|
1080
|
+
return Object.assign(n, e), xt = n, xt;
|
|
1081
1081
|
}
|
|
1082
1082
|
var Er = /* @__PURE__ */ Sr();
|
|
1083
|
-
const Cr = /* @__PURE__ */ hr(Er),
|
|
1083
|
+
const Cr = /* @__PURE__ */ hr(Er), br = typeof window < "u" || typeof process > "u" || process?.platform === "browser", Tr = br ? {} : process.env || {};
|
|
1084
1084
|
async function vr(e, t) {
|
|
1085
1085
|
const n = {};
|
|
1086
1086
|
for (const i of t.headers)
|
|
1087
|
-
Rr(e, i.matches) && (n[i.name] = i.envVariable !== void 0 ?
|
|
1087
|
+
Rr(e, i.matches) && (n[i.name] = i.envVariable !== void 0 ? Tr[i.envVariable] || "" : i.value);
|
|
1088
1088
|
const r = await (t.customFetch || fetch)(e, {
|
|
1089
1089
|
headers: n
|
|
1090
1090
|
});
|
|
@@ -1164,17 +1164,17 @@ function xr(e) {
|
|
|
1164
1164
|
function _r(e) {
|
|
1165
1165
|
return Re(e) && typeof e.externalValue == "string";
|
|
1166
1166
|
}
|
|
1167
|
-
class
|
|
1167
|
+
class ct {
|
|
1168
1168
|
source;
|
|
1169
1169
|
pointer;
|
|
1170
1170
|
constructor(t, n) {
|
|
1171
1171
|
this.source = t, this.pointer = n;
|
|
1172
1172
|
}
|
|
1173
1173
|
child(t) {
|
|
1174
|
-
return new
|
|
1174
|
+
return new ct(this.source, ve(this.pointer, (Array.isArray(t) ? t : [t]).map(Fe).join("/")));
|
|
1175
1175
|
}
|
|
1176
1176
|
key() {
|
|
1177
|
-
return
|
|
1177
|
+
return Object.assign(Object.create(ct.prototype), this, { reportOnKey: !0 });
|
|
1178
1178
|
}
|
|
1179
1179
|
get absolutePointer() {
|
|
1180
1180
|
return this.source.absoluteRef + (this.pointer === "#/" ? "" : this.pointer);
|
|
@@ -1218,13 +1218,13 @@ function Ea(e) {
|
|
|
1218
1218
|
function Ca(e, t) {
|
|
1219
1219
|
return Ne(e) ? new URL(t, e.endsWith("/") ? e : `${e}/`).href : Ve.resolve(e, t);
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1221
|
+
function ba(e) {
|
|
1222
1222
|
return typeof e == "string" && (e.startsWith("#") || Ne(e) || e.startsWith("./") || e.startsWith("../") || e.indexOf("/") > -1 || /\.(ya?ml|json)$/i.test(e));
|
|
1223
1223
|
}
|
|
1224
1224
|
function $r(e) {
|
|
1225
1225
|
return /^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e);
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function Ta(e, t, n) {
|
|
1228
1228
|
if (!Re(t.node) && n.parent) {
|
|
1229
1229
|
n.parent[n.key] = t.node;
|
|
1230
1230
|
return;
|
|
@@ -1261,7 +1261,7 @@ function Zt(e, t) {
|
|
|
1261
1261
|
representTagName: t.representTagName ?? null
|
|
1262
1262
|
};
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function gt(e, t) {
|
|
1265
1265
|
const n = t.finalize === void 0;
|
|
1266
1266
|
return {
|
|
1267
1267
|
tagName: e,
|
|
@@ -1446,7 +1446,7 @@ function ii(e) {
|
|
|
1446
1446
|
const t = ri(e);
|
|
1447
1447
|
return Number.isFinite(t) ? t : H;
|
|
1448
1448
|
}
|
|
1449
|
-
var
|
|
1449
|
+
var Ot = ee("tag:yaml.org,2002:int", {
|
|
1450
1450
|
implicit: !0,
|
|
1451
1451
|
implicitFirstChars: [
|
|
1452
1452
|
"-",
|
|
@@ -1536,7 +1536,7 @@ function Ai(e) {
|
|
|
1536
1536
|
const t = e.toString(10);
|
|
1537
1537
|
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
1538
1538
|
}
|
|
1539
|
-
var
|
|
1539
|
+
var Pt = ee("tag:yaml.org,2002:float", {
|
|
1540
1540
|
implicit: !0,
|
|
1541
1541
|
implicitFirstChars: [
|
|
1542
1542
|
"-",
|
|
@@ -1568,14 +1568,14 @@ var Bn = ee("tag:yaml.org,2002:binary", {
|
|
|
1568
1568
|
resolve: Si,
|
|
1569
1569
|
identify: (e) => Object.prototype.toString.call(e) === "[object Uint8Array]",
|
|
1570
1570
|
represent: Ei
|
|
1571
|
-
}), Ci = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),
|
|
1571
|
+
}), Ci = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), bi = /* @__PURE__ */ new 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]))?))?$");
|
|
1572
1572
|
function mn(e, t, n, r = 0, i = 0, o = 0, a = 0) {
|
|
1573
1573
|
const s = new Date(Date.UTC(e, t, n, r, i, o, a));
|
|
1574
1574
|
return s.setUTCFullYear(e, t, n), s;
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1576
|
+
function Ti(e) {
|
|
1577
1577
|
let t = Ci.exec(e);
|
|
1578
|
-
if (t === null && (t =
|
|
1578
|
+
if (t === null && (t = bi.exec(e)), t === null) return H;
|
|
1579
1579
|
const n = +t[1], r = +t[2] - 1, i = +t[3];
|
|
1580
1580
|
if (!t[4]) {
|
|
1581
1581
|
const c = mn(n, r, i);
|
|
@@ -1602,7 +1602,7 @@ function bi(e) {
|
|
|
1602
1602
|
var vi = ee("tag:yaml.org,2002:timestamp", {
|
|
1603
1603
|
implicit: !0,
|
|
1604
1604
|
implicitFirstChars: [..."0123456789"],
|
|
1605
|
-
resolve:
|
|
1605
|
+
resolve: Ti,
|
|
1606
1606
|
identify: (e) => e instanceof Date,
|
|
1607
1607
|
represent: (e) => e.toISOString()
|
|
1608
1608
|
}), Ri = Zt("tag:yaml.org,2002:seq", {
|
|
@@ -1612,12 +1612,12 @@ var vi = ee("tag:yaml.org,2002:timestamp", {
|
|
|
1612
1612
|
},
|
|
1613
1613
|
identify: Array.isArray
|
|
1614
1614
|
});
|
|
1615
|
-
function
|
|
1615
|
+
function mt(e) {
|
|
1616
1616
|
if (e === null || typeof e != "object" || Array.isArray(e)) return !1;
|
|
1617
1617
|
const t = Object.getPrototypeOf(e);
|
|
1618
1618
|
return t === null || t === Object.prototype;
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function Ft(e, t) {
|
|
1621
1621
|
const n = {};
|
|
1622
1622
|
for (const r of t) e[r] !== void 0 && (n[r] = e[r]);
|
|
1623
1623
|
return n;
|
|
@@ -1632,7 +1632,7 @@ var Dn = Zt("tag:yaml.org,2002:omap", {
|
|
|
1632
1632
|
if (t instanceof Map) {
|
|
1633
1633
|
if (t.size !== 1) return "cannot resolve an ordered map item";
|
|
1634
1634
|
n = t.keys().next().value;
|
|
1635
|
-
} else if (
|
|
1635
|
+
} else if (mt(t)) {
|
|
1636
1636
|
const r = Object.keys(t);
|
|
1637
1637
|
if (r.length !== 1) return "cannot resolve an ordered map item";
|
|
1638
1638
|
n = r[0];
|
|
@@ -1649,9 +1649,9 @@ var Dn = Zt("tag:yaml.org,2002:omap", {
|
|
|
1649
1649
|
const n = t, r = Object.keys(n);
|
|
1650
1650
|
return r.length !== 1 ? "cannot resolve a pairs item" : (e.push([r[0], n[r[0]]]), "");
|
|
1651
1651
|
}
|
|
1652
|
-
}), xi =
|
|
1652
|
+
}), xi = gt("tag:yaml.org,2002:map", {
|
|
1653
1653
|
create: () => ({}),
|
|
1654
|
-
identify:
|
|
1654
|
+
identify: mt,
|
|
1655
1655
|
represent: (e) => {
|
|
1656
1656
|
const t = /* @__PURE__ */ new Map();
|
|
1657
1657
|
for (const n of Object.keys(e)) t.set(n, e[n]);
|
|
@@ -1673,7 +1673,7 @@ var Dn = Zt("tag:yaml.org,2002:omap", {
|
|
|
1673
1673
|
const n = String(t);
|
|
1674
1674
|
return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
|
|
1675
1675
|
}
|
|
1676
|
-
}), Kn =
|
|
1676
|
+
}), Kn = gt("tag:yaml.org,2002:set", {
|
|
1677
1677
|
create: () => /* @__PURE__ */ new Set(),
|
|
1678
1678
|
identify: (e) => e instanceof Set,
|
|
1679
1679
|
represent: (e) => {
|
|
@@ -1715,7 +1715,7 @@ function Ii(e) {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
return t;
|
|
1717
1717
|
}
|
|
1718
|
-
var
|
|
1718
|
+
var At = class qn {
|
|
1719
1719
|
tags;
|
|
1720
1720
|
implicitScalarTags;
|
|
1721
1721
|
implicitScalarByFirstChar;
|
|
@@ -1757,30 +1757,30 @@ var mt = class qn {
|
|
|
1757
1757
|
for (const r of t) n = n.concat(r);
|
|
1758
1758
|
return new qn([...this.tags, ...n]);
|
|
1759
1759
|
}
|
|
1760
|
-
}, Jt = new
|
|
1760
|
+
}, Jt = new At([
|
|
1761
1761
|
kr,
|
|
1762
1762
|
Ri,
|
|
1763
1763
|
xi
|
|
1764
1764
|
]);
|
|
1765
|
-
new
|
|
1765
|
+
new At([
|
|
1766
1766
|
...Jt.tags,
|
|
1767
1767
|
Pr,
|
|
1768
1768
|
qr,
|
|
1769
1769
|
ti,
|
|
1770
1770
|
di
|
|
1771
1771
|
]);
|
|
1772
|
-
var Gn = new
|
|
1772
|
+
var Gn = new At([
|
|
1773
1773
|
...Jt.tags,
|
|
1774
1774
|
Or,
|
|
1775
1775
|
Dr,
|
|
1776
1776
|
Fn,
|
|
1777
1777
|
Hn
|
|
1778
|
-
]), Ni = new
|
|
1778
|
+
]), Ni = new At([
|
|
1779
1779
|
...Jt.tags,
|
|
1780
1780
|
Hr,
|
|
1781
1781
|
Wr,
|
|
1782
|
-
Lt,
|
|
1783
1782
|
Ot,
|
|
1783
|
+
Pt,
|
|
1784
1784
|
vi,
|
|
1785
1785
|
Mn,
|
|
1786
1786
|
Bn,
|
|
@@ -1788,13 +1788,13 @@ var Gn = new mt([
|
|
|
1788
1788
|
Un,
|
|
1789
1789
|
Kn
|
|
1790
1790
|
]);
|
|
1791
|
-
|
|
1791
|
+
gt("tag:yaml.org,2002:map", {
|
|
1792
1792
|
create: () => /* @__PURE__ */ new Map(),
|
|
1793
1793
|
addPair: (e, t, n) => (e.set(t, n), ""),
|
|
1794
1794
|
has: (e, t) => e.has(t),
|
|
1795
1795
|
keys: (e) => e.keys(),
|
|
1796
1796
|
get: (e, t) => e.get(t),
|
|
1797
|
-
identify: (e) => e instanceof Map ||
|
|
1797
|
+
identify: (e) => e instanceof Map || mt(e),
|
|
1798
1798
|
represent: (e) => {
|
|
1799
1799
|
if (e instanceof Map) return e;
|
|
1800
1800
|
const t = /* @__PURE__ */ new Map(), n = e;
|
|
@@ -1813,9 +1813,9 @@ function An(e) {
|
|
|
1813
1813
|
}
|
|
1814
1814
|
return typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" ? "[object Object]" : String(e);
|
|
1815
1815
|
}
|
|
1816
|
-
|
|
1816
|
+
gt("tag:yaml.org,2002:map", {
|
|
1817
1817
|
create: () => ({}),
|
|
1818
|
-
identify:
|
|
1818
|
+
identify: mt,
|
|
1819
1819
|
represent: (e) => {
|
|
1820
1820
|
const t = /* @__PURE__ */ new Map();
|
|
1821
1821
|
for (const n of Object.keys(e)) t.set(n, e[n]);
|
|
@@ -1846,7 +1846,7 @@ var $i = {
|
|
|
1846
1846
|
linesBefore: 3,
|
|
1847
1847
|
linesAfter: 2
|
|
1848
1848
|
};
|
|
1849
|
-
function
|
|
1849
|
+
function _t(e, t, n, r, i) {
|
|
1850
1850
|
let o = "", a = "";
|
|
1851
1851
|
const s = Math.floor(i / 2) - 1;
|
|
1852
1852
|
return r - t > s && (o = " ... ", t = r - s + o.length), n - r > s && (a = " ...", n = r + s - a.length), {
|
|
@@ -1854,7 +1854,7 @@ function xt(e, t, n, r, i) {
|
|
|
1854
1854
|
pos: r - t + o.length
|
|
1855
1855
|
};
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function wt(e, t) {
|
|
1858
1858
|
return " ".repeat(Math.max(t - e.length, 0)) + e;
|
|
1859
1859
|
}
|
|
1860
1860
|
function ki(e, t) {
|
|
@@ -1870,17 +1870,17 @@ function ki(e, t) {
|
|
|
1870
1870
|
let l = "";
|
|
1871
1871
|
const u = Math.min(e.line + n.linesAfter, o.length).toString().length, c = n.maxLength - (n.indent + u + 3);
|
|
1872
1872
|
for (let m = 1; m <= n.linesBefore && !(s - m < 0); m++) {
|
|
1873
|
-
const C =
|
|
1874
|
-
l = `${" ".repeat(n.indent)}${
|
|
1873
|
+
const C = _t(e.buffer, i[s - m], o[s - m], e.position - (i[s] - i[s - m]), c);
|
|
1874
|
+
l = `${" ".repeat(n.indent)}${wt((e.line - m + 1).toString(), u)} | ${C.str}
|
|
1875
1875
|
${l}`;
|
|
1876
1876
|
}
|
|
1877
|
-
const S =
|
|
1878
|
-
l += `${" ".repeat(n.indent)}${
|
|
1877
|
+
const S = _t(e.buffer, i[s], o[s], e.position, c);
|
|
1878
|
+
l += `${" ".repeat(n.indent)}${wt((e.line + 1).toString(), u)} | ${S.str}
|
|
1879
1879
|
`, l += `${"-".repeat(n.indent + u + 3 + S.pos)}^
|
|
1880
1880
|
`;
|
|
1881
1881
|
for (let m = 1; m <= n.linesAfter && !(s + m >= o.length); m++) {
|
|
1882
|
-
const C =
|
|
1883
|
-
l += `${" ".repeat(n.indent)}${
|
|
1882
|
+
const C = _t(e.buffer, i[s + m], o[s + m], e.position - (i[s] - i[s + m]), c);
|
|
1883
|
+
l += `${" ".repeat(n.indent)}${wt((e.line + m + 1).toString(), u)} | ${C.str}
|
|
1884
1884
|
`;
|
|
1885
1885
|
}
|
|
1886
1886
|
return l.replace(/\n$/, "");
|
|
@@ -1891,7 +1891,7 @@ function yn(e, t) {
|
|
|
1891
1891
|
|
|
1892
1892
|
${e.mark.snippet}`), `${e.reason} ${n}`) : e.reason;
|
|
1893
1893
|
}
|
|
1894
|
-
var
|
|
1894
|
+
var yt = class extends Error {
|
|
1895
1895
|
reason;
|
|
1896
1896
|
mark;
|
|
1897
1897
|
constructor(e, t) {
|
|
@@ -1901,7 +1901,7 @@ var At = class extends Error {
|
|
|
1901
1901
|
return `${this.name}: ${yn(this, e)}`;
|
|
1902
1902
|
}
|
|
1903
1903
|
};
|
|
1904
|
-
function
|
|
1904
|
+
function St(e, t, n, r = "") {
|
|
1905
1905
|
let i = 0, o = 0;
|
|
1906
1906
|
for (let s = 0; s < t; s++) {
|
|
1907
1907
|
const l = e.charCodeAt(s);
|
|
@@ -1914,7 +1914,7 @@ function yt(e, t, n, r = "") {
|
|
|
1914
1914
|
line: i,
|
|
1915
1915
|
column: t - o
|
|
1916
1916
|
};
|
|
1917
|
-
throw a.snippet = ki(a), new
|
|
1917
|
+
throw a.snippet = ki(a), new yt(n, a);
|
|
1918
1918
|
}
|
|
1919
1919
|
var Li = -1;
|
|
1920
1920
|
function Sn(e) {
|
|
@@ -1972,7 +1972,7 @@ function Pi(e) {
|
|
|
1972
1972
|
function Fi(e) {
|
|
1973
1973
|
return e === 120 ? 2 : e === 117 ? 4 : 8;
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1975
|
+
function ut(e, t, n) {
|
|
1976
1976
|
let r = 0;
|
|
1977
1977
|
for (; t < n; ) {
|
|
1978
1978
|
const i = e.charCodeAt(t);
|
|
@@ -1998,7 +1998,7 @@ function Hi(e, t, n) {
|
|
|
1998
1998
|
const s = e.charCodeAt(i);
|
|
1999
1999
|
if (s === 10 || s === 13) {
|
|
2000
2000
|
r += e.slice(o, a);
|
|
2001
|
-
const l =
|
|
2001
|
+
const l = ut(e, i, n);
|
|
2002
2002
|
r += en(l.breaks), i = o = a = l.position;
|
|
2003
2003
|
} else
|
|
2004
2004
|
i++, s !== 32 && s !== 9 && (a = i);
|
|
@@ -2013,7 +2013,7 @@ function Mi(e, t, n) {
|
|
|
2013
2013
|
r += e.slice(o, i) + "'", i += 2, o = a = i;
|
|
2014
2014
|
else if (s === 10 || s === 13) {
|
|
2015
2015
|
r += e.slice(o, a);
|
|
2016
|
-
const l =
|
|
2016
|
+
const l = ut(e, i, n);
|
|
2017
2017
|
r += en(l.breaks), i = o = a = l.position;
|
|
2018
2018
|
} else
|
|
2019
2019
|
i++, s !== 32 && s !== 9 && (a = i);
|
|
@@ -2027,7 +2027,7 @@ function Bi(e, t, n) {
|
|
|
2027
2027
|
if (s === 92) {
|
|
2028
2028
|
r += e.slice(o, i), i++;
|
|
2029
2029
|
const l = e.charCodeAt(i);
|
|
2030
|
-
if (l === 10 || l === 13) i =
|
|
2030
|
+
if (l === 10 || l === 13) i = ut(e, i, n).position;
|
|
2031
2031
|
else if (l < 256 && Yn[l])
|
|
2032
2032
|
r += Wn[l], i++;
|
|
2033
2033
|
else {
|
|
@@ -2042,7 +2042,7 @@ function Bi(e, t, n) {
|
|
|
2042
2042
|
o = a = i;
|
|
2043
2043
|
} else if (s === 10 || s === 13) {
|
|
2044
2044
|
r += e.slice(o, a);
|
|
2045
|
-
const l =
|
|
2045
|
+
const l = ut(e, i, n);
|
|
2046
2046
|
r += en(l.breaks), i = o = a = l.position;
|
|
2047
2047
|
} else
|
|
2048
2048
|
i++, s !== 32 && s !== 9 && (a = i);
|
|
@@ -2094,7 +2094,7 @@ var Ui = Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
|
2094
2094
|
"!": "!",
|
|
2095
2095
|
"!!": "tag:yaml.org,2002:"
|
|
2096
2096
|
});
|
|
2097
|
-
function
|
|
2097
|
+
function It(e) {
|
|
2098
2098
|
return encodeURI(e).replace(/!/g, "%21");
|
|
2099
2099
|
}
|
|
2100
2100
|
function jn(e, t) {
|
|
@@ -2104,7 +2104,7 @@ function jn(e, t) {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
function Vn(e) {
|
|
2106
2106
|
let t = e;
|
|
2107
|
-
return t.charCodeAt(0) === 33 ? (t = t.slice(1), `!${
|
|
2107
|
+
return t.charCodeAt(0) === 33 ? (t = t.slice(1), `!${It(t)}`) : t.slice(0, 18) === "tag:yaml.org,2002:" ? `!!${It(t.slice(18))}` : `!<${It(t)}>`;
|
|
2108
2108
|
}
|
|
2109
2109
|
var He = -1, tn = {
|
|
2110
2110
|
filename: "",
|
|
@@ -2117,14 +2117,14 @@ function Ki(e) {
|
|
|
2117
2117
|
return "tagStart" in e && e.tagStart !== He ? e.tagStart : "anchorStart" in e && e.anchorStart !== He ? e.anchorStart : "valueStart" in e && e.valueStart !== He ? e.valueStart : "start" in e ? e.start : 0;
|
|
2118
2118
|
}
|
|
2119
2119
|
function oe(e, t) {
|
|
2120
|
-
|
|
2120
|
+
St(e.source, e.position, t, e.filename);
|
|
2121
2121
|
}
|
|
2122
2122
|
function Xn(e, t, n, r) {
|
|
2123
2123
|
try {
|
|
2124
2124
|
return n.finalize(r);
|
|
2125
2125
|
} catch (i) {
|
|
2126
|
-
if (i instanceof
|
|
2127
|
-
|
|
2126
|
+
if (i instanceof yt) throw i;
|
|
2127
|
+
St(e.source, t, i instanceof Error ? i.message : String(i), e.filename);
|
|
2128
2128
|
}
|
|
2129
2129
|
}
|
|
2130
2130
|
function st(e, t, n) {
|
|
@@ -2188,7 +2188,7 @@ function Cn(e, t, n, r, i, o) {
|
|
|
2188
2188
|
function zn(e) {
|
|
2189
2189
|
return e.nodeKind === "mapping";
|
|
2190
2190
|
}
|
|
2191
|
-
function
|
|
2191
|
+
function bn(e, t, n, r) {
|
|
2192
2192
|
for (const i of r.keys(n)) {
|
|
2193
2193
|
if (e.maxTotalMergeKeys !== -1 && ++e.totalMergeKeys > e.maxTotalMergeKeys && oe(e, `merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`), t.tag.has(t.value, i)) continue;
|
|
2194
2194
|
const o = t.tag.addPair(t.value, i, r.get(n, i));
|
|
@@ -2196,8 +2196,8 @@ function Tn(e, t, n, r) {
|
|
|
2196
2196
|
}
|
|
2197
2197
|
}
|
|
2198
2198
|
function Yi(e, t, n, r) {
|
|
2199
|
-
if (e.position = t.keyPosition, zn(r))
|
|
2200
|
-
else if (r.nodeKind === "sequence" && Array.isArray(n)) for (const i of n)
|
|
2199
|
+
if (e.position = t.keyPosition, zn(r)) bn(e, t, n, r);
|
|
2200
|
+
else if (r.nodeKind === "sequence" && Array.isArray(n)) for (const i of n) bn(e, t, i, t.tag);
|
|
2201
2201
|
else oe(e, "cannot merge mappings; the provided source object is unacceptable");
|
|
2202
2202
|
}
|
|
2203
2203
|
function Wi(e, t, n, r, i) {
|
|
@@ -2209,7 +2209,7 @@ function Wi(e, t, n, r, i) {
|
|
|
2209
2209
|
const o = t.tag.addPair(t.value, n, r);
|
|
2210
2210
|
o && oe(e, o), t.overridable?.delete(n);
|
|
2211
2211
|
}
|
|
2212
|
-
function
|
|
2212
|
+
function Nt(e, t, n) {
|
|
2213
2213
|
const r = e.frames[e.frames.length - 1];
|
|
2214
2214
|
if (r.kind === "document")
|
|
2215
2215
|
r.value = t, r.hasValue = !0;
|
|
@@ -2223,7 +2223,7 @@ function It(e, t, n) {
|
|
|
2223
2223
|
} else
|
|
2224
2224
|
r.key = t, r.keyPosition = e.position, r.hasKey = !0;
|
|
2225
2225
|
}
|
|
2226
|
-
function
|
|
2226
|
+
function $t(e, t, n, r, i) {
|
|
2227
2227
|
if (t.anchorStart !== He) {
|
|
2228
2228
|
const o = {
|
|
2229
2229
|
value: n,
|
|
@@ -2263,11 +2263,11 @@ function ji(e, t) {
|
|
|
2263
2263
|
break;
|
|
2264
2264
|
case 4: {
|
|
2265
2265
|
const { value: i, tag: o } = Gi(n, r);
|
|
2266
|
-
|
|
2266
|
+
$t(n, r, i, o, !0), Nt(n, i, o);
|
|
2267
2267
|
break;
|
|
2268
2268
|
}
|
|
2269
2269
|
case 2: {
|
|
2270
|
-
const i = Cn(n, r, n.schema.exact.sequence, n.schema.prefix.sequence, "tag:yaml.org,2002:seq", "sequence"), o = i.tag.create(i.tagName), a =
|
|
2270
|
+
const i = Cn(n, r, n.schema.exact.sequence, n.schema.prefix.sequence, "tag:yaml.org,2002:seq", "sequence"), o = i.tag.create(i.tagName), a = $t(n, r, o, i.tag, i.tag.carrierIsResult), s = n.frames[n.frames.length - 1], l = s !== void 0 && s.kind === "mapping" && s.hasKey && s.key === Qt;
|
|
2271
2271
|
n.frames.push({
|
|
2272
2272
|
kind: "sequence",
|
|
2273
2273
|
position: n.position,
|
|
@@ -2280,7 +2280,7 @@ function ji(e, t) {
|
|
|
2280
2280
|
break;
|
|
2281
2281
|
}
|
|
2282
2282
|
case 3: {
|
|
2283
|
-
const i = Cn(n, r, n.schema.exact.mapping, n.schema.prefix.mapping, "tag:yaml.org,2002:map", "mapping"), o = i.tag.create(i.tagName), a =
|
|
2283
|
+
const i = Cn(n, r, n.schema.exact.mapping, n.schema.prefix.mapping, "tag:yaml.org,2002:map", "mapping"), o = i.tag.create(i.tagName), a = $t(n, r, o, i.tag, i.tag.carrierIsResult);
|
|
2284
2284
|
n.frames.push({
|
|
2285
2285
|
kind: "mapping",
|
|
2286
2286
|
position: n.position,
|
|
@@ -2297,7 +2297,7 @@ function ji(e, t) {
|
|
|
2297
2297
|
case 5: {
|
|
2298
2298
|
n.maxAliases !== -1 && ++n.aliasCount > n.maxAliases && oe(n, `aliases exceeded maxAliases (${n.maxAliases})`);
|
|
2299
2299
|
const i = n.source.slice(r.anchorStart, r.anchorEnd), o = n.anchors.get(i);
|
|
2300
|
-
o || oe(n, `unidentified alias "${i}"`), o.isValueFinal || oe(n, `recursive alias "${i}" is not supported for tag ${o.tag.tagName} because it uses finalize()`),
|
|
2300
|
+
o || oe(n, `unidentified alias "${i}"`), o.isValueFinal || oe(n, `recursive alias "${i}" is not supported for tag ${o.tag.tagName} because it uses finalize()`), Nt(n, o.value, o.tag);
|
|
2301
2301
|
break;
|
|
2302
2302
|
}
|
|
2303
2303
|
case 6: {
|
|
@@ -2305,7 +2305,7 @@ function ji(e, t) {
|
|
|
2305
2305
|
if (i.kind === "mapping" && i.hasKey && (n.position = i.keyPosition, oe(n, "incomplete mapping pair in event stream")), i.kind === "document") n.documents.push(i.value);
|
|
2306
2306
|
else {
|
|
2307
2307
|
const o = i.tag.carrierIsResult ? i.value : Xn(n, i.position, i.tag, i.value);
|
|
2308
|
-
i.anchor && (i.anchor.value = o, i.anchor.isValueFinal = !0),
|
|
2308
|
+
i.anchor && (i.anchor.value = o, i.anchor.isValueFinal = !0), Nt(n, o, i.tag);
|
|
2309
2309
|
}
|
|
2310
2310
|
break;
|
|
2311
2311
|
}
|
|
@@ -2313,7 +2313,7 @@ function ji(e, t) {
|
|
|
2313
2313
|
}
|
|
2314
2314
|
return n.documents;
|
|
2315
2315
|
}
|
|
2316
|
-
var B = -1, Qn = Object.prototype.hasOwnProperty, Ue = 1,
|
|
2316
|
+
var B = -1, Qn = Object.prototype.hasOwnProperty, Ue = 1, Ht = 2, Zn = 3, ft = 4, Vi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Xi = /[,\[\]{}]/, Jn = /^(?:!|!!|![0-9A-Za-z-]+!)$/, Mt = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`, er = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`, zi = new RegExp(`^(?:${Mt})*$`), Qi = new RegExp(`^(?:${er})+$`), Zi = new RegExp(`^(?:!(?:${Mt})*|${er}(?:${Mt})*)$`), nn = {
|
|
2317
2317
|
filename: "",
|
|
2318
2318
|
maxDepth: 100
|
|
2319
2319
|
};
|
|
@@ -2336,7 +2336,7 @@ function tr(e, t, n, r, i, o, a) {
|
|
|
2336
2336
|
style: a
|
|
2337
2337
|
});
|
|
2338
2338
|
}
|
|
2339
|
-
function
|
|
2339
|
+
function Bt(e, t, n, r, i, o, a) {
|
|
2340
2340
|
e.events.push({
|
|
2341
2341
|
type: 3,
|
|
2342
2342
|
start: t,
|
|
@@ -2347,7 +2347,7 @@ function Mt(e, t, n, r, i, o, a) {
|
|
|
2347
2347
|
style: a
|
|
2348
2348
|
});
|
|
2349
2349
|
}
|
|
2350
|
-
function
|
|
2350
|
+
function Tn(e, t) {
|
|
2351
2351
|
e.events.splice(t.eventsLength, 0, {
|
|
2352
2352
|
type: 3,
|
|
2353
2353
|
start: t.position,
|
|
@@ -2408,7 +2408,7 @@ function Be(e, t) {
|
|
|
2408
2408
|
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;
|
|
2409
2409
|
}
|
|
2410
2410
|
function _(e, t) {
|
|
2411
|
-
|
|
2411
|
+
St(e.input.slice(0, e.length), e.position, t, e.filename);
|
|
2412
2412
|
}
|
|
2413
2413
|
function Z(e) {
|
|
2414
2414
|
return e === 10 || e === 13;
|
|
@@ -2439,7 +2439,7 @@ function ro(e) {
|
|
|
2439
2439
|
function io(e) {
|
|
2440
2440
|
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;
|
|
2441
2441
|
}
|
|
2442
|
-
function
|
|
2442
|
+
function pt(e) {
|
|
2443
2443
|
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;
|
|
2444
2444
|
}
|
|
2445
2445
|
function ie(e, t) {
|
|
@@ -2451,7 +2451,7 @@ function ie(e, t) {
|
|
|
2451
2451
|
r = e.input.charCodeAt(++e.position);
|
|
2452
2452
|
while (!Z(r) && r !== 0);
|
|
2453
2453
|
if (!Z(r)) break;
|
|
2454
|
-
for (
|
|
2454
|
+
for (pt(e), n++, i = !0, r = e.input.charCodeAt(e.position); r === 32; )
|
|
2455
2455
|
e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
2456
2456
|
}
|
|
2457
2457
|
return n;
|
|
@@ -2502,7 +2502,7 @@ function so(e, t) {
|
|
|
2502
2502
|
for (; e.input.charCodeAt(e.position) !== 0 && !pe(e.input.charCodeAt(e.position)) && !Oe(e.input.charCodeAt(e.position)); ) e.position++;
|
|
2503
2503
|
return e.position === n && _(e, "name of an alias node must contain at least one character"), eo(e, n, e.position), !0;
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2505
|
+
function Dt(e, t) {
|
|
2506
2506
|
ie(e, !1), e.lineIndent < t && _(e, "deficient indentation");
|
|
2507
2507
|
}
|
|
2508
2508
|
function lo(e, t, n) {
|
|
@@ -2520,7 +2520,7 @@ function lo(e, t, n) {
|
|
|
2520
2520
|
const a = e.position;
|
|
2521
2521
|
return e.position++, qe(e, r, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2, 1, -1, i), !0;
|
|
2522
2522
|
}
|
|
2523
|
-
Z(o) ? (i = !1,
|
|
2523
|
+
Z(o) ? (i = !1, Dt(e, t)) : e.position === e.lineStart && $e(e) ? _(e, "unexpected end of the document within a single quoted scalar") : o !== 9 && o < 32 ? _(e, "expected valid JSON character") : e.position++;
|
|
2524
2524
|
}
|
|
2525
2525
|
_(e, "unexpected end of the stream within a single quoted scalar");
|
|
2526
2526
|
}
|
|
@@ -2538,7 +2538,7 @@ function co(e, t, n) {
|
|
|
2538
2538
|
if (o === 92) {
|
|
2539
2539
|
i = !1;
|
|
2540
2540
|
const a = e.input.charCodeAt(++e.position);
|
|
2541
|
-
if (Z(a))
|
|
2541
|
+
if (Z(a)) Dt(e, t);
|
|
2542
2542
|
else if (io(a)) e.position++;
|
|
2543
2543
|
else {
|
|
2544
2544
|
let s = ro(a);
|
|
@@ -2546,7 +2546,7 @@ function co(e, t, n) {
|
|
|
2546
2546
|
e.position++, no(e.input.charCodeAt(e.position)) < 0 && _(e, "expected hexadecimal character");
|
|
2547
2547
|
e.position++;
|
|
2548
2548
|
}
|
|
2549
|
-
} else Z(o) ? (i = !1,
|
|
2549
|
+
} else Z(o) ? (i = !1, Dt(e, t)) : e.position === e.lineStart && $e(e) ? _(e, "unexpected end of the document within a double quoted scalar") : o !== 9 && o < 32 ? _(e, "expected valid JSON character") : e.position++;
|
|
2550
2550
|
}
|
|
2551
2551
|
_(e, "unexpected end of the stream within a double quoted scalar");
|
|
2552
2552
|
}
|
|
@@ -2566,7 +2566,7 @@ function uo(e, t, n) {
|
|
|
2566
2566
|
let l = !1;
|
|
2567
2567
|
for (; Le(e.input.charCodeAt(e.position)); )
|
|
2568
2568
|
l = !0, e.position++;
|
|
2569
|
-
l && e.input.charCodeAt(e.position) === 35 && Rn(e), Z(e.input.charCodeAt(e.position)) ?
|
|
2569
|
+
l && e.input.charCodeAt(e.position) === 35 && Rn(e), Z(e.input.charCodeAt(e.position)) ? pt(e) : e.input.charCodeAt(e.position) !== 0 && _(e, "a line break is expected");
|
|
2570
2570
|
let u = a ? o : -1, c = 0;
|
|
2571
2571
|
const S = e.position;
|
|
2572
2572
|
let m = e.position;
|
|
@@ -2590,7 +2590,7 @@ function uo(e, t, n) {
|
|
|
2590
2590
|
e.lineIndent = E, e.position = C + E;
|
|
2591
2591
|
break;
|
|
2592
2592
|
}
|
|
2593
|
-
Rn(e), m = e.position, Z(e.input.charCodeAt(e.position)) && (
|
|
2593
|
+
Rn(e), m = e.position, Z(e.input.charCodeAt(e.position)) && (pt(e), m = e.position);
|
|
2594
2594
|
}
|
|
2595
2595
|
return nr(e, S, m), qe(e, S, m, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, s, i, u), !0;
|
|
2596
2596
|
}
|
|
@@ -2640,7 +2640,7 @@ function ho(e, t, n) {
|
|
|
2640
2640
|
let a = !0;
|
|
2641
2641
|
if (r !== 91 && r !== 123) return !1;
|
|
2642
2642
|
const s = i ? 125 : 93;
|
|
2643
|
-
for (i ?
|
|
2643
|
+
for (i ? Bt(e, o, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2) : tr(e, o, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, 2), e.position++; e.input.charCodeAt(e.position) !== 0; ) {
|
|
2644
2644
|
Ge(e, t);
|
|
2645
2645
|
let l = e.input.charCodeAt(e.position);
|
|
2646
2646
|
if (l === s)
|
|
@@ -2649,7 +2649,7 @@ function ho(e, t, n) {
|
|
|
2649
2649
|
let u = !1, c = !1;
|
|
2650
2650
|
l === 63 && pe(e.input.charCodeAt(e.position + 1)) && (u = c = !0, e.position += 1, Ge(e, t));
|
|
2651
2651
|
const S = e.line, m = We(e), C = ke(e, t, Ue, !1, !0);
|
|
2652
|
-
Ge(e, t), l = e.input.charCodeAt(e.position), (i || c || e.line === S) && l === 58 ? (u = !0, e.position++, Ge(e, t), i ||
|
|
2652
|
+
Ge(e, t), l = e.input.charCodeAt(e.position), (i || c || e.line === S) && l === 58 ? (u = !0, e.position++, Ge(e, t), i || Tn(e, m), C || re(e), ke(e, t, Ue, !1, !0) || re(e), Ge(e, t), i || Me(e)) : i && u ? (C || re(e), re(e)) : i ? re(e) : u && (Tn(e, m), C || re(e), re(e), Me(e)), l = e.input.charCodeAt(e.position), l === 44 ? (a = !0, e.position++) : a = !1;
|
|
2653
2653
|
}
|
|
2654
2654
|
_(e, "unexpected end of the stream within a flow collection");
|
|
2655
2655
|
}
|
|
@@ -2665,7 +2665,7 @@ function xn(e, t, n) {
|
|
|
2665
2665
|
}
|
|
2666
2666
|
return Me(e), !0;
|
|
2667
2667
|
}
|
|
2668
|
-
function
|
|
2668
|
+
function kt(e, t, n, r) {
|
|
2669
2669
|
let i = !1, o = !1, a = !1, s = !1;
|
|
2670
2670
|
if (e.firstTabInLine !== -1) return !1;
|
|
2671
2671
|
let l = e.input.charCodeAt(e.position);
|
|
@@ -2673,16 +2673,16 @@ function $t(e, t, n, r) {
|
|
|
2673
2673
|
!i && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation"));
|
|
2674
2674
|
const u = e.input.charCodeAt(e.position + 1), c = e.line;
|
|
2675
2675
|
if ((l === 63 || l === 58) && Ee(u))
|
|
2676
|
-
a || (
|
|
2676
|
+
a || (Bt(e, e.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1), a = !0), l === 63 ? (i && re(e), o = !0, i = !0) : (i || (re(e), o = !0), i = !1), e.position += 1, s = !0;
|
|
2677
2677
|
else {
|
|
2678
2678
|
i && (re(e), i = !1);
|
|
2679
2679
|
const S = We(e);
|
|
2680
|
-
if (!ke(e, n,
|
|
2680
|
+
if (!ke(e, n, Ht, !1, !0)) break;
|
|
2681
2681
|
if (e.line === c) {
|
|
2682
2682
|
for (l = e.input.charCodeAt(e.position); Le(l); ) l = e.input.charCodeAt(++e.position);
|
|
2683
2683
|
if (l === 58) {
|
|
2684
2684
|
if (l = e.input.charCodeAt(++e.position), Ee(l) || _(e, "a whitespace character is expected after the key-value separator within a block mapping"), !a) {
|
|
2685
|
-
for (Be(e, S),
|
|
2685
|
+
for (Be(e, S), Bt(e, S.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, 1), a = !0, ke(e, n, Ht, !1, !0), l = e.input.charCodeAt(e.position); Le(l); ) l = e.input.charCodeAt(++e.position);
|
|
2686
2686
|
e.position++;
|
|
2687
2687
|
}
|
|
2688
2688
|
o = !0, i = !1, s = !1;
|
|
@@ -2693,7 +2693,7 @@ function $t(e, t, n, r) {
|
|
|
2693
2693
|
else
|
|
2694
2694
|
return r.anchorStart !== B || r.tagStart !== B ? (Be(e, S), !1) : !0;
|
|
2695
2695
|
}
|
|
2696
|
-
if (ke(e, t,
|
|
2696
|
+
if (ke(e, t, ft, !0, s) && (s = !1), i || s && (re(e), s = !1), ie(e, !0), l = e.input.charCodeAt(e.position), (e.line === c || e.lineIndent > t) && l !== 0) _(e, "bad indentation of a mapping entry");
|
|
2697
2697
|
else if (e.lineIndent < t) break;
|
|
2698
2698
|
}
|
|
2699
2699
|
return o ? (i && re(e), a && Me(e), !0) : !1;
|
|
@@ -2702,28 +2702,28 @@ function ke(e, t, n, r, i, o = !0) {
|
|
|
2702
2702
|
e.depth >= e.maxDepth && _(e, `nesting exceeded maxDepth (${e.maxDepth})`), e.depth++;
|
|
2703
2703
|
let a = 1, s = !1, l = !1, u = null;
|
|
2704
2704
|
const c = vn();
|
|
2705
|
-
let S = n ===
|
|
2705
|
+
let S = n === ft || n === Zn, m = S;
|
|
2706
2706
|
const C = S;
|
|
2707
2707
|
if (r && ie(e, !0) && (s = !0, e.lineIndent > t ? a = 1 : e.lineIndent === t ? a = 0 : a = -1), a === 1) for (; ; ) {
|
|
2708
2708
|
const E = e.input.charCodeAt(e.position), w = We(e);
|
|
2709
2709
|
if (s && a !== 1 && (E === 33 || E === 38)) break;
|
|
2710
2710
|
if (s && C && (c.tagStart !== B || c.anchorStart !== B) && (E === 33 || E === 38)) {
|
|
2711
2711
|
const M = We(e), N = t + 1;
|
|
2712
|
-
if (
|
|
2712
|
+
if (kt(e, e.position - e.lineStart, N, c) && e.events[M.eventsLength]?.type === 3)
|
|
2713
2713
|
return e.depth--, !0;
|
|
2714
2714
|
Be(e, M);
|
|
2715
2715
|
}
|
|
2716
2716
|
if (s && (E === 33 && c.tagStart !== B || E === 38 && c.anchorStart !== B) || !oo(e, c, n === Ue) && !ao(e, c)) break;
|
|
2717
2717
|
u === null && (u = w), ie(e, !0) ? (s = !0, m = C, e.lineIndent > t ? a = 1 : e.lineIndent === t ? a = 0 : a = -1) : m = !1;
|
|
2718
2718
|
}
|
|
2719
|
-
if (m && (m = s || i), a === 1 || n ===
|
|
2720
|
-
const E = n === Ue || n ===
|
|
2721
|
-
if (a === 1) if (m && (xn(e, w, c) ||
|
|
2719
|
+
if (m && (m = s || i), a === 1 || n === ft) {
|
|
2720
|
+
const E = n === Ue || n === Ht ? t : t + 1, w = e.position - e.lineStart;
|
|
2721
|
+
if (a === 1) if (m && (xn(e, w, c) || kt(e, w, E, c)) || ho(e, E, c)) l = !0;
|
|
2722
2722
|
else {
|
|
2723
2723
|
const M = e.input.charCodeAt(e.position);
|
|
2724
2724
|
if (u !== null && o && C && !m && M !== 124 && M !== 62) {
|
|
2725
2725
|
const N = We(e), k = u.position - u.lineStart;
|
|
2726
|
-
Be(e, u),
|
|
2726
|
+
Be(e, u), kt(e, k, E, vn()) && e.events[N.eventsLength]?.type === 3 ? l = !0 : Be(e, N);
|
|
2727
2727
|
}
|
|
2728
2728
|
!l && (S && uo(e, E, c) || lo(e, E, c) || co(e, E, c) || so(e, c) || po(e, E, n, c)) && (l = !0);
|
|
2729
2729
|
}
|
|
@@ -2744,7 +2744,7 @@ function go(e) {
|
|
|
2744
2744
|
for (; e.input.charCodeAt(e.position) !== 0 && !pe(e.input.charCodeAt(e.position)); ) e.position++;
|
|
2745
2745
|
r.push(e.input.slice(i, e.position));
|
|
2746
2746
|
}
|
|
2747
|
-
if (Z(e.input.charCodeAt(e.position)) &&
|
|
2747
|
+
if (Z(e.input.charCodeAt(e.position)) && pt(e), n === "YAML") {
|
|
2748
2748
|
e.directives.some((o) => o.kind === "yaml") && _(e, "duplication of %YAML directive"), r.length !== 1 && _(e, "YAML directive accepts exactly one argument");
|
|
2749
2749
|
const i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]);
|
|
2750
2750
|
i === null && _(e, "ill-formed argument of the YAML directive"), parseInt(i[1], 10) !== 1 && _(e, "unacceptable YAML version of the document"), e.directives.push({
|
|
@@ -2778,7 +2778,7 @@ function mo(e) {
|
|
|
2778
2778
|
e.position += 3, ie(e, !0);
|
|
2779
2779
|
return;
|
|
2780
2780
|
}
|
|
2781
|
-
if (Ji(e, n, !1), ke(e, e.lineIndent - 1,
|
|
2781
|
+
if (Ji(e, n, !1), ke(e, e.lineIndent - 1, ft, !1, i, i) || re(e), ie(e, !0), e.position === e.lineStart && $e(e) && (r = e.input.charCodeAt(e.position) === 46, r)) {
|
|
2782
2782
|
const s = e.line;
|
|
2783
2783
|
e.position += 3, ie(e, !0), e.line === s && e.position < e.length && _(e, "end of the stream or a document separator is expected");
|
|
2784
2784
|
}
|
|
@@ -2801,7 +2801,7 @@ function Ao(e, t) {
|
|
|
2801
2801
|
tagHandlers: /* @__PURE__ */ Object.create(null),
|
|
2802
2802
|
events: []
|
|
2803
2803
|
}, i = e.indexOf("\0");
|
|
2804
|
-
for (i !== -1 &&
|
|
2804
|
+
for (i !== -1 && St(e, i, "null byte is not allowed in input", r.filename), r.input.charCodeAt(r.position) === 65279 && r.position++; r.position < r.length && (ie(r, !0), !(r.position >= r.length)); ) {
|
|
2805
2805
|
const o = r.position;
|
|
2806
2806
|
mo(r), r.position === o && _(r, "can not read a document");
|
|
2807
2807
|
}
|
|
@@ -2816,8 +2816,8 @@ function So(e, t = {}) {
|
|
|
2816
2816
|
...yo,
|
|
2817
2817
|
...t
|
|
2818
2818
|
}, r = String(e), i = Object.keys(nn), o = Object.keys(tn);
|
|
2819
|
-
return ji(Ao(r,
|
|
2820
|
-
...
|
|
2819
|
+
return ji(Ao(r, Ft(n, i)), {
|
|
2820
|
+
...Ft(n, o),
|
|
2821
2821
|
source: r
|
|
2822
2822
|
});
|
|
2823
2823
|
}
|
|
@@ -2857,7 +2857,7 @@ function Co(e) {
|
|
|
2857
2857
|
}))
|
|
2858
2858
|
];
|
|
2859
2859
|
}
|
|
2860
|
-
function
|
|
2860
|
+
function bo(e, t) {
|
|
2861
2861
|
for (let n = 0, r = e.representTypes.length; n < r; n += 1) {
|
|
2862
2862
|
const { tag: i, implicitTag: o } = e.representTypes[n];
|
|
2863
2863
|
if (i.identify && i.identify(t)) {
|
|
@@ -2882,10 +2882,10 @@ function Ye(e, t) {
|
|
|
2882
2882
|
anchor: c.anchor
|
|
2883
2883
|
};
|
|
2884
2884
|
}
|
|
2885
|
-
const n =
|
|
2885
|
+
const n = bo(e, t);
|
|
2886
2886
|
if (!n) {
|
|
2887
2887
|
if (t === void 0 || e.skipInvalid) return Ie;
|
|
2888
|
-
throw new
|
|
2888
|
+
throw new yt(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`);
|
|
2889
2889
|
}
|
|
2890
2890
|
const { tag: r, tagName: i, implicitTag: o } = n, a = o ? i : Vn(i);
|
|
2891
2891
|
if (r.nodeKind === "scalar") {
|
|
@@ -2933,7 +2933,7 @@ function Ye(e, t) {
|
|
|
2933
2933
|
}
|
|
2934
2934
|
return u;
|
|
2935
2935
|
}
|
|
2936
|
-
function
|
|
2936
|
+
function To(e, t, n = {}) {
|
|
2937
2937
|
const r = Ye({
|
|
2938
2938
|
representTypes: Co(t),
|
|
2939
2939
|
noRefs: n.noRefs ?? !1,
|
|
@@ -2982,7 +2982,7 @@ function Ro(e, t) {
|
|
|
2982
2982
|
isKey: !1
|
|
2983
2983
|
})) return;
|
|
2984
2984
|
}
|
|
2985
|
-
var rn = 65279, xo = 9, Pe = 10, ir = 13, _o = 32, wo = 33, or = 34,
|
|
2985
|
+
var rn = 65279, xo = 9, Pe = 10, ir = 13, _o = 32, wo = 33, or = 34, Ut = 35, Io = 37, No = 38, ar = 39, $o = 42, Kt = 44, on = 45, Xe = 58, ko = 61, Lo = 62, sr = 63, Oo = 64, qt = 91, Gt = 93, Po = 96, Yt = 123, Fo = 124, Wt = 125, te = {};
|
|
2986
2986
|
te[0] = "\\0";
|
|
2987
2987
|
te[7] = "\\a";
|
|
2988
2988
|
te[8] = "\\b";
|
|
@@ -3043,7 +3043,7 @@ function _n(e, t) {
|
|
|
3043
3043
|
}
|
|
3044
3044
|
return i;
|
|
3045
3045
|
}
|
|
3046
|
-
function
|
|
3046
|
+
function jt(e, t) {
|
|
3047
3047
|
return `
|
|
3048
3048
|
${" ".repeat(e.indent * t)}`;
|
|
3049
3049
|
}
|
|
@@ -3078,19 +3078,19 @@ function ze(e) {
|
|
|
3078
3078
|
function In(e) {
|
|
3079
3079
|
return ze(e) && e !== rn && e !== ir && e !== Pe;
|
|
3080
3080
|
}
|
|
3081
|
-
function
|
|
3081
|
+
function Vt(e, t, n) {
|
|
3082
3082
|
const r = In(e), i = r && !Ke(e);
|
|
3083
|
-
return (n ? r : r && e !==
|
|
3083
|
+
return (n ? r : r && e !== Kt && e !== qt && e !== Gt && e !== Yt && e !== Wt) && e !== Ut && !(t === Xe && !i) || In(t) && !Ke(t) && e === Ut || t === Xe && i && (n || e !== Kt && e !== qt && e !== Gt && e !== Yt && e !== Wt);
|
|
3084
3084
|
}
|
|
3085
3085
|
function Ko(e) {
|
|
3086
|
-
return ze(e) && e !== rn && !Ke(e) && e !== on && e !== sr && e !== Xe && e !==
|
|
3086
|
+
return ze(e) && e !== rn && !Ke(e) && e !== on && e !== sr && e !== Xe && e !== Kt && e !== qt && e !== Gt && e !== Yt && e !== Wt && e !== Ut && e !== No && e !== $o && e !== wo && e !== Fo && e !== ko && e !== Lo && e !== ar && e !== or && e !== Io && e !== Oo && e !== Po;
|
|
3087
3087
|
}
|
|
3088
3088
|
function qo(e, t) {
|
|
3089
3089
|
const n = De(e, 0);
|
|
3090
3090
|
if (Ko(n)) return !0;
|
|
3091
3091
|
if (e.length > 1 && (n === on || n === sr || n === Xe)) {
|
|
3092
3092
|
const r = De(e, 1);
|
|
3093
|
-
return !Ke(r) &&
|
|
3093
|
+
return !Ke(r) && Vt(r, n, t);
|
|
3094
3094
|
}
|
|
3095
3095
|
return !1;
|
|
3096
3096
|
}
|
|
@@ -3113,14 +3113,14 @@ function Yo(e, t, n, r, i, o) {
|
|
|
3113
3113
|
let E = -1, w = !Uo(t) && qo(t, o) && Go(De(t, t.length - 1));
|
|
3114
3114
|
if (r || i) for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) {
|
|
3115
3115
|
if (u = De(t, l), !ze(u)) return xe;
|
|
3116
|
-
w = w &&
|
|
3116
|
+
w = w && Vt(u, c, o), c = u;
|
|
3117
3117
|
}
|
|
3118
3118
|
else {
|
|
3119
3119
|
for (l = 0; l < t.length; u >= 65536 ? l += 2 : l++) {
|
|
3120
3120
|
if (u = De(t, l), u === Pe)
|
|
3121
3121
|
S = !0, C && (m = m || l - E - 1 > s && !Ze(t[E + 1]), E = l);
|
|
3122
3122
|
else if (!ze(u)) return xe;
|
|
3123
|
-
w = w &&
|
|
3123
|
+
w = w && Vt(u, c, o), c = u;
|
|
3124
3124
|
}
|
|
3125
3125
|
m = m || C && l - E - 1 > s && !Ze(t[E + 1]);
|
|
3126
3126
|
}
|
|
@@ -3245,7 +3245,7 @@ function On(e, t, n, r) {
|
|
|
3245
3245
|
compact: e.seqInlineFirst,
|
|
3246
3246
|
isblockseq: !0
|
|
3247
3247
|
});
|
|
3248
|
-
(!r || i !== "") && (i +=
|
|
3248
|
+
(!r || i !== "") && (i += jt(e, t)), s === "" || Pe === s.charCodeAt(0) ? i += "-" : i += "- ", i += s;
|
|
3249
3249
|
}
|
|
3250
3250
|
return i;
|
|
3251
3251
|
}
|
|
@@ -3284,28 +3284,28 @@ function Zo(e, t, n, r) {
|
|
|
3284
3284
|
const o = cr(e, n.items);
|
|
3285
3285
|
for (let a = 0, s = o.length; a < s; a += 1) {
|
|
3286
3286
|
let l = "";
|
|
3287
|
-
(!r || i !== "") && (l +=
|
|
3287
|
+
(!r || i !== "") && (l += jt(e, t));
|
|
3288
3288
|
const { key: u, value: c } = o[a], S = (u.kind === "mapping" || u.kind === "sequence") && !u.style.flow && u.items.length !== 0 || u.kind === "scalar" && (u.style.literal || u.style.folded), m = S ? Ce(e, t + 1, u, {
|
|
3289
3289
|
block: !0,
|
|
3290
3290
|
compact: !0,
|
|
3291
|
-
isblockseq: !
|
|
3291
|
+
isblockseq: !Xt(e, u, t + 1)
|
|
3292
3292
|
}) : Ce(e, t + 1, u, {
|
|
3293
3293
|
block: !0,
|
|
3294
3294
|
compact: !0,
|
|
3295
3295
|
iskey: !0
|
|
3296
3296
|
}), C = u.kind === "scalar" && u.value.indexOf(`
|
|
3297
3297
|
`) !== -1, E = S || C || m.length > 1024;
|
|
3298
|
-
E && (m && Pe === m.charCodeAt(0) ? l += "?" : l += "? "), l += m, E && (l +=
|
|
3298
|
+
E && (m && Pe === m.charCodeAt(0) ? l += "?" : l += "? "), l += m, E && (l += jt(e, t));
|
|
3299
3299
|
const w = Ce(e, t + 1, c, {
|
|
3300
3300
|
block: !0,
|
|
3301
3301
|
compact: E,
|
|
3302
|
-
isblockseq: E && !
|
|
3302
|
+
isblockseq: E && !Xt(e, c, t + 1)
|
|
3303
3303
|
}), M = u.kind === "scalar" && u.value === "" && m !== "" && m.charCodeAt(m.length - 1) !== ar && m.charCodeAt(m.length - 1) !== or, N = !E && (u.kind === "alias" || M) ? " " : "";
|
|
3304
3304
|
w === "" || Pe === w.charCodeAt(0) ? l += `${N}:` : l += `${N}: `, l += w, i += l;
|
|
3305
3305
|
}
|
|
3306
3306
|
return i;
|
|
3307
3307
|
}
|
|
3308
|
-
function
|
|
3308
|
+
function Xt(e, t, n) {
|
|
3309
3309
|
return t.style.tagged || t.anchor !== void 0 || e.indent < 2 && n > 0;
|
|
3310
3310
|
}
|
|
3311
3311
|
function Ce(e, t, n, r) {
|
|
@@ -3313,7 +3313,7 @@ function Ce(e, t, n, r) {
|
|
|
3313
3313
|
const { block: i = !1, iskey: o = !1, isblockseq: a = !1 } = r;
|
|
3314
3314
|
let s = r.compact ?? !1;
|
|
3315
3315
|
const l = n.anchor !== void 0;
|
|
3316
|
-
|
|
3316
|
+
Xt(e, n, t) && (s = !1);
|
|
3317
3317
|
let u, c = n.style.tagged;
|
|
3318
3318
|
const S = i && (n.kind === "mapping" || n.kind === "sequence") && !n.style.flow && n.items.length !== 0;
|
|
3319
3319
|
if (n.kind === "mapping") S ? u = Zo(e, t, n, s) : u = Qo(e, t, n);
|
|
@@ -3384,15 +3384,15 @@ function na(e, t) {
|
|
|
3384
3384
|
return r;
|
|
3385
3385
|
}
|
|
3386
3386
|
var ra = Ni.withTags({
|
|
3387
|
-
...
|
|
3387
|
+
...Ot,
|
|
3388
3388
|
resolve: (e, t, n) => {
|
|
3389
|
-
const r =
|
|
3389
|
+
const r = Ot.resolve(e, t, n);
|
|
3390
3390
|
return r === H ? Fn.resolve(e, t, n) : r;
|
|
3391
3391
|
}
|
|
3392
3392
|
}, {
|
|
3393
|
-
...
|
|
3393
|
+
...Pt,
|
|
3394
3394
|
resolve: (e, t, n) => {
|
|
3395
|
-
const r =
|
|
3395
|
+
const r = Pt.resolve(e, t, n);
|
|
3396
3396
|
return r === H ? Hn.resolve(e, t, n) : r;
|
|
3397
3397
|
}
|
|
3398
3398
|
}), ia = {
|
|
@@ -3408,7 +3408,7 @@ function oa(e, t = {}) {
|
|
|
3408
3408
|
const n = {
|
|
3409
3409
|
...ia,
|
|
3410
3410
|
...t
|
|
3411
|
-
}, r =
|
|
3411
|
+
}, r = To(e, n.schema, {
|
|
3412
3412
|
noRefs: n.noRefs,
|
|
3413
3413
|
skipInvalid: n.skipInvalid
|
|
3414
3414
|
});
|
|
@@ -3416,7 +3416,7 @@ function oa(e, t = {}) {
|
|
|
3416
3416
|
if (!(o.depth < n.flowLevel))
|
|
3417
3417
|
return i.style.flow = !0, rr;
|
|
3418
3418
|
}), n.transform(r), na(r, {
|
|
3419
|
-
...
|
|
3419
|
+
...Ft(n, Object.keys(an)),
|
|
3420
3420
|
schema: n.schema
|
|
3421
3421
|
});
|
|
3422
3422
|
}
|
|
@@ -3425,34 +3425,33 @@ const aa = Gn.withTags(Mn, Bn, Dn, Un, Kn), ur = (e, t) => {
|
|
|
3425
3425
|
if (n.length === 0)
|
|
3426
3426
|
return e.trim() === "" ? void 0 : null;
|
|
3427
3427
|
if (n.length > 1)
|
|
3428
|
-
throw new
|
|
3428
|
+
throw new yt("expected a single document in the stream, but found more");
|
|
3429
3429
|
return n[0];
|
|
3430
|
-
}, va = (e, t) => oa(e, t)
|
|
3431
|
-
|
|
3432
|
-
return e.hasOwnProperty(t) ? e[t] : void 0;
|
|
3433
|
-
}
|
|
3434
|
-
const la = /\((\d+):(\d+)\)$/;
|
|
3435
|
-
class St extends Error {
|
|
3430
|
+
}, va = (e, t) => oa(e, t), sa = /\((\d+):(\d+)\)$/;
|
|
3431
|
+
class Et extends Error {
|
|
3436
3432
|
originalError;
|
|
3437
3433
|
source;
|
|
3438
3434
|
col;
|
|
3439
3435
|
line;
|
|
3440
3436
|
constructor(t, n) {
|
|
3441
3437
|
super(t.message.split(`
|
|
3442
|
-
`)[0]), this.originalError = t, this.source = n, Object.setPrototypeOf(this,
|
|
3443
|
-
const [, r, i] = this.message.match(
|
|
3438
|
+
`)[0]), this.originalError = t, this.source = n, Object.setPrototypeOf(this, Et.prototype);
|
|
3439
|
+
const [, r, i] = this.message.match(sa) || [];
|
|
3444
3440
|
this.line = parseInt(r, 10), this.col = parseInt(i, 10);
|
|
3445
3441
|
}
|
|
3446
3442
|
}
|
|
3447
|
-
|
|
3448
|
-
return e.endsWith(".yaml") || e.endsWith(".yml") || e.endsWith(".json");
|
|
3449
|
-
}
|
|
3450
|
-
const ua = [".graphql", ".gql"];
|
|
3443
|
+
const la = [".graphql", ".gql"];
|
|
3451
3444
|
function fr(e) {
|
|
3452
3445
|
const t = e.toLowerCase();
|
|
3453
|
-
return
|
|
3446
|
+
return la.some((n) => t.endsWith(n));
|
|
3454
3447
|
}
|
|
3455
|
-
function
|
|
3448
|
+
function ca(e, t) {
|
|
3449
|
+
return e.hasOwnProperty(t) ? e[t] : void 0;
|
|
3450
|
+
}
|
|
3451
|
+
function ua(e) {
|
|
3452
|
+
return e.endsWith(".yaml") || e.endsWith(".yml") || e.endsWith(".json");
|
|
3453
|
+
}
|
|
3454
|
+
function Lt(e, t) {
|
|
3456
3455
|
return e + "::" + t;
|
|
3457
3456
|
}
|
|
3458
3457
|
function fa() {
|
|
@@ -3460,7 +3459,7 @@ function fa() {
|
|
|
3460
3459
|
setTimeout(e);
|
|
3461
3460
|
});
|
|
3462
3461
|
}
|
|
3463
|
-
class
|
|
3462
|
+
class zt {
|
|
3464
3463
|
absoluteRef;
|
|
3465
3464
|
body;
|
|
3466
3465
|
mimeType;
|
|
@@ -3485,7 +3484,7 @@ class cn extends Error {
|
|
|
3485
3484
|
}
|
|
3486
3485
|
}
|
|
3487
3486
|
function Ra(e, t) {
|
|
3488
|
-
const n = new
|
|
3487
|
+
const n = new zt(t, e);
|
|
3489
3488
|
if (fr(t))
|
|
3490
3489
|
return { source: n, parsed: e };
|
|
3491
3490
|
try {
|
|
@@ -3494,7 +3493,7 @@ function Ra(e, t) {
|
|
|
3494
3493
|
parsed: ur(e, { filename: t })
|
|
3495
3494
|
};
|
|
3496
3495
|
} catch (r) {
|
|
3497
|
-
throw new
|
|
3496
|
+
throw new Et(r, n);
|
|
3498
3497
|
}
|
|
3499
3498
|
}
|
|
3500
3499
|
class xa {
|
|
@@ -3513,12 +3512,12 @@ class xa {
|
|
|
3513
3512
|
try {
|
|
3514
3513
|
if (Ne(t)) {
|
|
3515
3514
|
const { body: n, mimeType: r } = await vr(t, this.config.http);
|
|
3516
|
-
return new
|
|
3515
|
+
return new zt(t, n, r);
|
|
3517
3516
|
} else {
|
|
3518
3517
|
if ((void 0)(t).isDirectory())
|
|
3519
3518
|
throw new Error(`Expected a file but received a folder at ${t}.`);
|
|
3520
3519
|
const n = await (void 0).readFile(t, "utf-8");
|
|
3521
|
-
return new
|
|
3520
|
+
return new zt(t, n.replace(/\r\n/g, `
|
|
3522
3521
|
`));
|
|
3523
3522
|
}
|
|
3524
3523
|
} catch (n) {
|
|
@@ -3529,7 +3528,7 @@ class xa {
|
|
|
3529
3528
|
if (fr(t.absoluteRef))
|
|
3530
3529
|
return { source: t, parsed: t.body };
|
|
3531
3530
|
const r = Ne(t.absoluteRef) ? new URL(t.absoluteRef).pathname : t.absoluteRef;
|
|
3532
|
-
if (!
|
|
3531
|
+
if (!ua(r) && !t.mimeType?.match(/(json|yaml|openapi)/) && !n)
|
|
3533
3532
|
return { source: t, parsed: t.body };
|
|
3534
3533
|
try {
|
|
3535
3534
|
return {
|
|
@@ -3537,7 +3536,7 @@ class xa {
|
|
|
3537
3536
|
parsed: ur(t.body, { filename: t.absoluteRef })
|
|
3538
3537
|
};
|
|
3539
3538
|
} catch (i) {
|
|
3540
|
-
throw new
|
|
3539
|
+
throw new Et(i, t);
|
|
3541
3540
|
}
|
|
3542
3541
|
}
|
|
3543
3542
|
async resolveDocument(t, n, r = !1) {
|
|
@@ -3597,7 +3596,7 @@ async function _a(e) {
|
|
|
3597
3596
|
const [f, I] = Object.entries(N).find(([v]) => v === "$anchor") || [];
|
|
3598
3597
|
I && E.set(`#${I}`, N);
|
|
3599
3598
|
for (const v of Object.keys(N)) {
|
|
3600
|
-
let A = N[v], g =
|
|
3599
|
+
let A = N[v], g = ca(k.properties, v);
|
|
3601
3600
|
const x = k.extensionsPrefix !== void 0 && v.startsWith(k.extensionsPrefix);
|
|
3602
3601
|
g === void 0 && !x && (g = k.additionalProperties), typeof g == "function" && (g = g(A, v)), x && g === void 0 && (g = it), g === void 0 && (g = rt), !ot(g) && g?.directResolveAs && (g = g.directResolveAs, A = { $ref: A }), g && g.name === void 0 && g.resolvable !== !1 && (g = da), !(!ot(g) || !(Re(A) || Array.isArray(A))) && w(A, g, ve(y, Fe(v)));
|
|
3603
3602
|
}
|
|
@@ -3635,7 +3634,7 @@ async function _a(e) {
|
|
|
3635
3634
|
node: E.get(k.$ref),
|
|
3636
3635
|
document: N,
|
|
3637
3636
|
nodePointer: k.$ref
|
|
3638
|
-
}, q =
|
|
3637
|
+
}, q = Lt(N.source.absoluteRef, k.$ref);
|
|
3639
3638
|
return i.set(q, L), L;
|
|
3640
3639
|
}
|
|
3641
3640
|
const { uri: R, pointer: f } = Ir(k.$ref), I = R !== null && n.resolveExternalRef(N.source.absoluteRef, R) !== N.source.absoluteRef;
|
|
@@ -3648,7 +3647,7 @@ async function _a(e) {
|
|
|
3648
3647
|
isRemote: I,
|
|
3649
3648
|
document: void 0,
|
|
3650
3649
|
error: L
|
|
3651
|
-
}, ce =
|
|
3650
|
+
}, ce = Lt(N.source.absoluteRef, k.$ref);
|
|
3652
3651
|
return i.set(ce, q), q;
|
|
3653
3652
|
}
|
|
3654
3653
|
let A = {
|
|
@@ -3678,12 +3677,12 @@ async function _a(e) {
|
|
|
3678
3677
|
break;
|
|
3679
3678
|
}
|
|
3680
3679
|
A.node = g, A.document = v;
|
|
3681
|
-
const W =
|
|
3680
|
+
const W = Lt(N.source.absoluteRef, k.$ref);
|
|
3682
3681
|
if (A.document && at(g)) {
|
|
3683
3682
|
const L = xr(g) ? {
|
|
3684
3683
|
node: g,
|
|
3685
3684
|
document: A.document,
|
|
3686
|
-
location: new
|
|
3685
|
+
location: new ct(A.document.source, A.nodePointer)
|
|
3687
3686
|
} : void 0;
|
|
3688
3687
|
A = await M(A.document, g, Pn(y, g)), L && A.resolved && (A = { ...A, chain: [L, ...A.chain ?? []] });
|
|
3689
3688
|
}
|
|
@@ -3692,22 +3691,23 @@ async function _a(e) {
|
|
|
3692
3691
|
}
|
|
3693
3692
|
}
|
|
3694
3693
|
export {
|
|
3695
|
-
|
|
3694
|
+
Lt as A,
|
|
3696
3695
|
xa as B,
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3696
|
+
_r as C,
|
|
3697
|
+
ya as D,
|
|
3698
|
+
Sa as E,
|
|
3699
|
+
Nr as F,
|
|
3700
|
+
Tr as G,
|
|
3701
|
+
ct as L,
|
|
3702
3702
|
cn as R,
|
|
3703
|
-
|
|
3704
|
-
|
|
3703
|
+
zt as S,
|
|
3704
|
+
Et as Y,
|
|
3705
3705
|
Ne as a,
|
|
3706
|
-
|
|
3706
|
+
br as b,
|
|
3707
3707
|
fr as c,
|
|
3708
|
-
|
|
3708
|
+
ba as d,
|
|
3709
3709
|
Fe as e,
|
|
3710
|
-
|
|
3710
|
+
ua as f,
|
|
3711
3711
|
Ea as g,
|
|
3712
3712
|
gr as h,
|
|
3713
3713
|
at as i,
|
|
@@ -3718,14 +3718,14 @@ export {
|
|
|
3718
3718
|
Aa as n,
|
|
3719
3719
|
ma as o,
|
|
3720
3720
|
ur as p,
|
|
3721
|
-
|
|
3721
|
+
ve as q,
|
|
3722
3722
|
_a as r,
|
|
3723
3723
|
va as s,
|
|
3724
|
-
|
|
3724
|
+
Ir as t,
|
|
3725
3725
|
wr as u,
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3726
|
+
ca as v,
|
|
3727
|
+
it as w,
|
|
3728
|
+
ot as x,
|
|
3729
|
+
Ta as y,
|
|
3730
|
+
xr as z
|
|
3731
3731
|
};
|