@nxgt/material 1.12.3 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/abnfDiagram-O67JEVCF-mm89LXw2.js +89 -0
- package/dist/architecture-7GRP2DOG-DDr0RGVC.js +3 -0
- package/dist/architectureDiagram-NJMV4G6O-CGoA5SIv.js +4146 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/blockDiagram-BEXU5L5S-Dq8gitB4.js +1946 -0
- package/dist/c4Diagram-YGBWAQC7-DO_alqIu.js +2990 -0
- package/dist/channel-1fT-W0NS.js +5 -0
- package/dist/chunk-2Q5K7J3B-kzxEEeTu.js +15 -0
- package/dist/chunk-3FUC2YCW-C3yD2fMw.js +364 -0
- package/dist/chunk-5DYCD2WN-Dn2jrYde.js +37 -0
- package/dist/chunk-5VM5RSS4-Cr17nBXp.js +5 -0
- package/dist/chunk-6AEJRKK7-JyfUnUEu.js +10 -0
- package/dist/chunk-742MDFTN-BbWkrtj2.js +275 -0
- package/dist/chunk-7INBJB4K-C3x7JNTG.js +4487 -0
- package/dist/chunk-7M6MHVWA-Cc7UTu4b.js +4256 -0
- package/dist/chunk-7PRAP22T-C8rsGRvH.js +67 -0
- package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
- package/dist/chunk-FOHPRMQF-Crq0JMf2.js +21388 -0
- package/dist/chunk-GNY47TPC-d-Bi8r0p.js +75 -0
- package/dist/chunk-GTNCS2PH-CTS015lZ.js +490 -0
- package/dist/chunk-GWA4HPMP-B4pgM-E1.js +61 -0
- package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
- package/dist/chunk-JWPE2WC7-Ccb0QaC8.js +8 -0
- package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
- package/dist/chunk-MBY4JIJT-Dg6AeftH.js +1847 -0
- package/dist/chunk-NETBCI7D-TXZM0vKz.js +236 -0
- package/dist/chunk-O7XYJQB3-md6vjVm4.js +3922 -0
- package/dist/chunk-UA2S7LBM-DQTYPe9y.js +363 -0
- package/dist/chunk-WEXAMYUT-DmKWJz6y.js +26 -0
- package/dist/chunk-XXDRQBXY-C9XIYQdM.js +9 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/chunk-Z7XXMR3K-BoDf6lxl.js +677 -0
- package/dist/chunk-ZIGJFQKS-CP5430fN.js +663 -0
- package/dist/classDiagram-v2-NBCMYWYE-6KoTmufe.js +3397 -0
- package/dist/components.js +3 -3
- package/dist/cose-bilkent-JH36ORCC-CejnZl_t.js +2251 -0
- package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +3 -0
- package/dist/cynefinDiagram-VND7K2PF-DZnc0dlm.js +349 -0
- package/dist/cytoscape.esm-_jXi1N4y.js +18151 -0
- package/dist/dagre-6A5THRUB-cuS57NO5.js +2192 -0
- package/dist/diagram-22UHCM2B-zQSFmH0t.js +5084 -0
- package/dist/diagram-3UASUU5V-D45Fgu1j.js +724 -0
- package/dist/diagram-ATOU4E4O-YMtQnlqd.js +432 -0
- package/dist/diagram-CDSNMT55-DP7UmEW1.js +301 -0
- package/dist/diagram-MLGK6HIB-WvSqrTRC.js +134 -0
- package/dist/diagram-MPIPVDR6-C2F3__mt.js +214 -0
- package/dist/dist-1DdJvBEt.js +50 -0
- package/dist/{dist-DGsPFADz.js → dist-DppLdkXt.js} +2 -2
- package/dist/dnd.js +2 -2
- package/dist/ebnfDiagram-ZINNZB2B-BZC6cSiy.js +100 -0
- package/dist/elk-276RUBZZ-7DJf1MEV.js +47598 -0
- package/dist/erDiagram-OPXOYQCR-YKlEVEF0.js +1970 -0
- package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +3 -0
- package/dist/flowDiagram-KWPJA3E3-DyLvzIlg.js +17 -0
- package/dist/ganttDiagram-FUAMR5RP-KIaOrYOF.js +2928 -0
- package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +3 -0
- package/dist/gitGraphDiagram-X574FWY7-DpFW-7JE.js +729 -0
- package/dist/graphlib-DFaO_iIU.js +372 -0
- package/dist/{hooks-BjSuqEof.js → hooks-C5xy0u03.js} +1 -1
- package/dist/hooks.js +1 -1
- package/dist/{i18n-DmVqVJXj.js → i18n-Cech9IAc.js} +328 -843
- package/dist/i18n.js +1 -1
- package/dist/info-A6RAGUB7-BvtuPd9C.js +3 -0
- package/dist/infoDiagram-VRGFBTTK-H3F-BCnu.js +20 -0
- package/dist/init-Buj1GKRa.js +27 -0
- package/dist/isArrayLikeObject-VG1KOJ3m.js +539 -0
- package/dist/ishikawaDiagram-OU5B5YK6-DgQDmcF3.js +719 -0
- package/dist/journeyDiagram-ZHPQQLJL-CanDOlfn.js +884 -0
- package/dist/kanban-definition-PNTS6WVX-DmnUgxgb.js +976 -0
- package/dist/katex-BMQ6LGsM.js +21962 -0
- package/dist/lib/components/index.d.ts +4 -0
- package/dist/lib/components/ui/action-card.d.ts +1 -1
- package/dist/lib/components/ui/chat/chat-composer-mentions.d.ts +8 -0
- package/dist/lib/components/ui/chat/chat-composer.d.ts +5 -1
- package/dist/lib/components/ui/chat/chat-markdown.d.ts +2 -2
- package/dist/lib/components/ui/emoji/emoji-list.d.ts +5 -0
- package/dist/lib/components/ui/emoji/emoji-picker.d.ts +7 -0
- package/dist/lib/components/ui/emoji/emoji.utils.d.ts +2 -0
- package/dist/lib/components/ui/emoji/emoji.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/emoji/index.d.ts +4 -0
- package/dist/lib/components/ui/emoji/types.d.ts +6 -0
- package/dist/lib/components/ui/entity-header.stories.d.ts +1 -0
- package/dist/lib/components/ui/kanban/kanban.stories.d.ts +1 -0
- package/dist/lib/components/ui/markdown/index.d.ts +3 -0
- package/dist/lib/components/ui/markdown/markdown.d.ts +7 -0
- package/dist/lib/components/ui/markdown/markdown.stories.d.ts +14 -0
- package/dist/lib/components/ui/markdown/markdown.test.d.ts +1 -0
- package/dist/lib/components/ui/markdown/markdown.utils.d.ts +1 -0
- package/dist/lib/components/ui/markdown/mermaid.lazy.d.ts +12 -0
- package/dist/lib/components/ui/markdown/partials/markdown-code.d.ts +2 -0
- package/dist/lib/components/ui/markdown/partials/mermaid-diagram.d.ts +4 -0
- package/dist/lib/components/ui/mentions/index.d.ts +3 -0
- package/dist/lib/components/ui/mentions/mention-list.d.ts +8 -0
- package/dist/lib/components/ui/mentions/mentions.utils.d.ts +7 -0
- package/dist/lib/components/ui/mentions/mentions.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/mentions/types.d.ts +7 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/mention/mention-list.d.ts +12 -1
- package/dist/lib/components/ui/terminal/index.d.ts +2 -0
- package/dist/lib/components/ui/terminal/terminal.d.ts +11 -0
- package/dist/lib/components/ui/terminal/terminal.stories.d.ts +14 -0
- package/dist/lib/components/ui/terminal/terminal.utils.d.ts +5 -0
- package/dist/lib/components/ui/terminal/terminal.utils.test.d.ts +1 -0
- package/dist/lib/i18n/resources/en/index.d.ts +13 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +14 -1
- package/dist/lib/i18n/resources/fr/index.d.ts +13 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +14 -1
- package/dist/lib/i18n/resources/index.d.ts +26 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/{lib-B1KXma-r.js → lib-Bbw5QPoj.js} +472 -471
- package/dist/lib.js +2 -2
- package/dist/{main-Cw-Yaqo9.js → main-BjDU9FDM.js} +58614 -29566
- package/dist/main.js +6 -6
- package/dist/material.css +1 -1
- package/dist/math-C5EhTgJw.js +10 -0
- package/dist/mermaid-parser.core-Cz-MfB4Z.js +638 -0
- package/dist/mermaid.core-BI1sunfX.js +1096 -0
- package/dist/mindmap-definition-NLK3R4M7-DW0BIU_q.js +1008 -0
- package/dist/ordinal-DuP05kVQ.js +65 -0
- package/dist/packet-AYTQ26CC-CshIswP8.js +3 -0
- package/dist/path-Cjou0lUh.js +85 -0
- package/dist/pegDiagram-GJSIUBJH-CJIx0u4M.js +94 -0
- package/dist/pie-WAS4IAKB-CYs22y4X.js +3 -0
- package/dist/pieDiagram-5QR66LMP-zAhv5fKz.js +157 -0
- package/dist/quadrantDiagram-O4NWA36T-CO4n_yQo.js +2001 -0
- package/dist/radar-RG4KPBEZ-BOJKjbGv.js +3 -0
- package/dist/railroad-74A4TZTK-Dt1BmUkI.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +3 -0
- package/dist/railroadDiagram-XR7U4H2S-B8iV7mfe.js +76 -0
- package/dist/requirementDiagram-PLB6GJNP-CGoX1NrW.js +2228 -0
- package/dist/rough.esm-rcMoXTJj.js +1352 -0
- package/dist/sankeyDiagram-IPEJSGJF-DdSM2wiI.js +962 -0
- package/dist/sequenceDiagram-PO4LG4MO-CCRqF5XO.js +4200 -0
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/src-B4npqWNl.js +1775 -0
- package/dist/stateDiagram-v2-GCMORJYK-CQTX5ks8.js +2143 -0
- package/dist/step-B6KjpKgN.js +706 -0
- package/dist/string-B-ZWXCs2.js +392 -0
- package/dist/swimlanes-2SLR337P-C2NNOb5n.js +4763 -0
- package/dist/swimlanesDiagram-TC7HE7FX-CPsqPrbP.js +28 -0
- package/dist/timeline-definition-EJHVYXUP-DuxGHv-N.js +1073 -0
- package/dist/treeView-Q6P3EWNA-BrJylG9N.js +3 -0
- package/dist/treemap-WGGIJYW6-DpIZuqbj.js +3 -0
- package/dist/usecaseDiagram-POWQR4AR-cuAeIBW3.js +9932 -0
- package/dist/vennDiagram-UO4OBE2U-DLwBSAnC.js +1880 -0
- package/dist/wardley-WFR3VGLG-CbwdAAbH.js +3 -0
- package/dist/wardleyDiagram-VNRHLVJA-D7IZU6vu.js +645 -0
- package/dist/xychartDiagram-PMCCYNJV-BDOFv_xK.js +2167 -0
- package/package.json +7 -1
|
@@ -0,0 +1,1513 @@
|
|
|
1
|
+
import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
2
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-LNGE3PJU.mjs
|
|
3
|
+
function t(e) {
|
|
4
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
|
+
}
|
|
6
|
+
e(t, "getDefaultExportFromCjs");
|
|
7
|
+
var n = {}, r = {}, i = {}, a;
|
|
8
|
+
function o() {
|
|
9
|
+
if (a) return i;
|
|
10
|
+
a = 1;
|
|
11
|
+
function t(e) {
|
|
12
|
+
return e == null;
|
|
13
|
+
}
|
|
14
|
+
e(t, "isNothing");
|
|
15
|
+
function n(e) {
|
|
16
|
+
return typeof e == "object" && !!e;
|
|
17
|
+
}
|
|
18
|
+
e(n, "isObject");
|
|
19
|
+
function r(e) {
|
|
20
|
+
return Array.isArray(e) ? e : t(e) ? [] : [e];
|
|
21
|
+
}
|
|
22
|
+
e(r, "toArray");
|
|
23
|
+
function o(e, t) {
|
|
24
|
+
if (t) {
|
|
25
|
+
let n = Object.keys(t);
|
|
26
|
+
for (let r = 0, i = n.length; r < i; r += 1) {
|
|
27
|
+
let i = n[r];
|
|
28
|
+
e[i] = t[i];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return e;
|
|
32
|
+
}
|
|
33
|
+
e(o, "extend");
|
|
34
|
+
function s(e, t) {
|
|
35
|
+
let n = "";
|
|
36
|
+
for (let r = 0; r < t; r += 1) n += e;
|
|
37
|
+
return n;
|
|
38
|
+
}
|
|
39
|
+
e(s, "repeat");
|
|
40
|
+
function c(e) {
|
|
41
|
+
return e === 0 && 1 / e == -Infinity;
|
|
42
|
+
}
|
|
43
|
+
return e(c, "isNegativeZero"), i.isNothing = t, i.isObject = n, i.toArray = r, i.repeat = s, i.isNegativeZero = c, i.extend = o, i;
|
|
44
|
+
}
|
|
45
|
+
e(o, "requireCommon");
|
|
46
|
+
var s, c;
|
|
47
|
+
function l() {
|
|
48
|
+
if (c) return s;
|
|
49
|
+
c = 1;
|
|
50
|
+
function t(e, t) {
|
|
51
|
+
let n = "", r = e.reason || "(unknown reason)";
|
|
52
|
+
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), r + " " + n) : r;
|
|
53
|
+
}
|
|
54
|
+
e(t, "formatError");
|
|
55
|
+
function n(e, n) {
|
|
56
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = t(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
|
|
57
|
+
}
|
|
58
|
+
return e(n, "YAMLException2"), n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n.prototype.toString = /* @__PURE__ */ e(function(e) {
|
|
59
|
+
return this.name + ": " + t(this, e);
|
|
60
|
+
}, "toString"), s = n, s;
|
|
61
|
+
}
|
|
62
|
+
e(l, "requireException");
|
|
63
|
+
var u, d;
|
|
64
|
+
function f() {
|
|
65
|
+
if (d) return u;
|
|
66
|
+
d = 1;
|
|
67
|
+
let t = o();
|
|
68
|
+
function n(e, t, n, r, i) {
|
|
69
|
+
let a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
70
|
+
return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
|
|
71
|
+
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
72
|
+
pos: r - t + a.length
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
e(n, "getLine");
|
|
76
|
+
function r(e, n) {
|
|
77
|
+
return t.repeat(" ", n - e.length) + e;
|
|
78
|
+
}
|
|
79
|
+
e(r, "padStart");
|
|
80
|
+
function i(e, i) {
|
|
81
|
+
if (i = Object.create(i || null), !e.buffer) return null;
|
|
82
|
+
i.maxLength ||= 79, typeof i.indent != "number" && (i.indent = 1), typeof i.linesBefore != "number" && (i.linesBefore = 3), typeof i.linesAfter != "number" && (i.linesAfter = 2);
|
|
83
|
+
let a = /\r?\n|\r|\0/g, o = [0], s = [], c, l = -1;
|
|
84
|
+
for (; c = a.exec(e.buffer);) s.push(c.index), o.push(c.index + c[0].length), e.position <= c.index && l < 0 && (l = o.length - 2);
|
|
85
|
+
l < 0 && (l = o.length - 1);
|
|
86
|
+
let u = "", d = Math.min(e.line + i.linesAfter, s.length).toString().length, f = i.maxLength - (i.indent + d + 3);
|
|
87
|
+
for (let a = 1; a <= i.linesBefore && !(l - a < 0); a++) {
|
|
88
|
+
let c = n(e.buffer, o[l - a], s[l - a], e.position - (o[l] - o[l - a]), f);
|
|
89
|
+
u = t.repeat(" ", i.indent) + r((e.line - a + 1).toString(), d) + " | " + c.str + "\n" + u;
|
|
90
|
+
}
|
|
91
|
+
let p = n(e.buffer, o[l], s[l], e.position, f);
|
|
92
|
+
u += t.repeat(" ", i.indent) + r((e.line + 1).toString(), d) + " | " + p.str + "\n", u += t.repeat("-", i.indent + d + 3 + p.pos) + "^\n";
|
|
93
|
+
for (let a = 1; a <= i.linesAfter && !(l + a >= s.length); a++) {
|
|
94
|
+
let c = n(e.buffer, o[l + a], s[l + a], e.position - (o[l] - o[l + a]), f);
|
|
95
|
+
u += t.repeat(" ", i.indent) + r((e.line + a + 1).toString(), d) + " | " + c.str + "\n";
|
|
96
|
+
}
|
|
97
|
+
return u.replace(/\n$/, "");
|
|
98
|
+
}
|
|
99
|
+
return e(i, "makeSnippet"), u = i, u;
|
|
100
|
+
}
|
|
101
|
+
e(f, "requireSnippet");
|
|
102
|
+
var p, m;
|
|
103
|
+
function h() {
|
|
104
|
+
if (m) return p;
|
|
105
|
+
m = 1;
|
|
106
|
+
let t = l(), n = [
|
|
107
|
+
"kind",
|
|
108
|
+
"multi",
|
|
109
|
+
"resolve",
|
|
110
|
+
"construct",
|
|
111
|
+
"instanceOf",
|
|
112
|
+
"predicate",
|
|
113
|
+
"represent",
|
|
114
|
+
"representName",
|
|
115
|
+
"defaultStyle",
|
|
116
|
+
"styleAliases"
|
|
117
|
+
], r = [
|
|
118
|
+
"scalar",
|
|
119
|
+
"sequence",
|
|
120
|
+
"mapping"
|
|
121
|
+
];
|
|
122
|
+
function i(e) {
|
|
123
|
+
let t = {};
|
|
124
|
+
return e !== null && Object.keys(e).forEach(function(n) {
|
|
125
|
+
e[n].forEach(function(e) {
|
|
126
|
+
t[String(e)] = n;
|
|
127
|
+
});
|
|
128
|
+
}), t;
|
|
129
|
+
}
|
|
130
|
+
e(i, "compileStyleAliases");
|
|
131
|
+
function a(e, a) {
|
|
132
|
+
if (a ||= {}, Object.keys(a).forEach(function(r) {
|
|
133
|
+
if (n.indexOf(r) === -1) throw new t("Unknown option \"" + r + "\" is met in definition of \"" + e + "\" YAML type.");
|
|
134
|
+
}), this.options = a, this.tag = e, this.kind = a.kind || null, this.resolve = a.resolve || function() {
|
|
135
|
+
return !0;
|
|
136
|
+
}, this.construct = a.construct || function(e) {
|
|
137
|
+
return e;
|
|
138
|
+
}, this.instanceOf = a.instanceOf || null, this.predicate = a.predicate || null, this.represent = a.represent || null, this.representName = a.representName || null, this.defaultStyle = a.defaultStyle || null, this.multi = a.multi || !1, this.styleAliases = i(a.styleAliases || null), r.indexOf(this.kind) === -1) throw new t("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
|
|
139
|
+
}
|
|
140
|
+
return e(a, "Type2"), p = a, p;
|
|
141
|
+
}
|
|
142
|
+
e(h, "requireType");
|
|
143
|
+
var g, _;
|
|
144
|
+
function v() {
|
|
145
|
+
if (_) return g;
|
|
146
|
+
_ = 1;
|
|
147
|
+
let t = l(), n = h();
|
|
148
|
+
function r(e, t) {
|
|
149
|
+
let n = [];
|
|
150
|
+
return e[t].forEach(function(e) {
|
|
151
|
+
let t = n.length;
|
|
152
|
+
n.forEach(function(n, r) {
|
|
153
|
+
n.tag === e.tag && n.kind === e.kind && n.multi === e.multi && (t = r);
|
|
154
|
+
}), n[t] = e;
|
|
155
|
+
}), n;
|
|
156
|
+
}
|
|
157
|
+
e(r, "compileList");
|
|
158
|
+
function i() {
|
|
159
|
+
let t = {
|
|
160
|
+
scalar: {},
|
|
161
|
+
sequence: {},
|
|
162
|
+
mapping: {},
|
|
163
|
+
fallback: {},
|
|
164
|
+
multi: {
|
|
165
|
+
scalar: [],
|
|
166
|
+
sequence: [],
|
|
167
|
+
mapping: [],
|
|
168
|
+
fallback: []
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
function n(e) {
|
|
172
|
+
e.multi ? (t.multi[e.kind].push(e), t.multi.fallback.push(e)) : t[e.kind][e.tag] = t.fallback[e.tag] = e;
|
|
173
|
+
}
|
|
174
|
+
e(n, "collectType");
|
|
175
|
+
for (let e = 0, t = arguments.length; e < t; e += 1) arguments[e].forEach(n);
|
|
176
|
+
return t;
|
|
177
|
+
}
|
|
178
|
+
e(i, "compileMap");
|
|
179
|
+
function a(e) {
|
|
180
|
+
return this.extend(e);
|
|
181
|
+
}
|
|
182
|
+
return e(a, "Schema2"), a.prototype.extend = /* @__PURE__ */ e(function(e) {
|
|
183
|
+
let o = [], s = [];
|
|
184
|
+
if (e instanceof n) s.push(e);
|
|
185
|
+
else if (Array.isArray(e)) s = s.concat(e);
|
|
186
|
+
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit))) e.implicit && (o = o.concat(e.implicit)), e.explicit && (s = s.concat(e.explicit));
|
|
187
|
+
else throw new t("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
188
|
+
o.forEach(function(e) {
|
|
189
|
+
if (!(e instanceof n)) throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
190
|
+
if (e.loadKind && e.loadKind !== "scalar") throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
191
|
+
if (e.multi) throw new t("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
192
|
+
}), s.forEach(function(e) {
|
|
193
|
+
if (!(e instanceof n)) throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
194
|
+
});
|
|
195
|
+
let c = Object.create(a.prototype);
|
|
196
|
+
return c.implicit = (this.implicit || []).concat(o), c.explicit = (this.explicit || []).concat(s), c.compiledImplicit = r(c, "implicit"), c.compiledExplicit = r(c, "explicit"), c.compiledTypeMap = i(c.compiledImplicit, c.compiledExplicit), c;
|
|
197
|
+
}, "extend"), g = a, g;
|
|
198
|
+
}
|
|
199
|
+
e(v, "requireSchema");
|
|
200
|
+
var y, b;
|
|
201
|
+
function x() {
|
|
202
|
+
return b ? y : (b = 1, y = new (h())("tag:yaml.org,2002:str", {
|
|
203
|
+
kind: "scalar",
|
|
204
|
+
construct: /* @__PURE__ */ e(function(e) {
|
|
205
|
+
return e === null ? "" : e;
|
|
206
|
+
}, "construct")
|
|
207
|
+
}), y);
|
|
208
|
+
}
|
|
209
|
+
e(x, "requireStr");
|
|
210
|
+
var S, C;
|
|
211
|
+
function w() {
|
|
212
|
+
return C ? S : (C = 1, S = new (h())("tag:yaml.org,2002:seq", {
|
|
213
|
+
kind: "sequence",
|
|
214
|
+
construct: /* @__PURE__ */ e(function(e) {
|
|
215
|
+
return e === null ? [] : e;
|
|
216
|
+
}, "construct")
|
|
217
|
+
}), S);
|
|
218
|
+
}
|
|
219
|
+
e(w, "requireSeq");
|
|
220
|
+
var T, E;
|
|
221
|
+
function D() {
|
|
222
|
+
return E ? T : (E = 1, T = new (h())("tag:yaml.org,2002:map", {
|
|
223
|
+
kind: "mapping",
|
|
224
|
+
construct: /* @__PURE__ */ e(function(e) {
|
|
225
|
+
return e === null ? {} : e;
|
|
226
|
+
}, "construct")
|
|
227
|
+
}), T);
|
|
228
|
+
}
|
|
229
|
+
e(D, "requireMap");
|
|
230
|
+
var O, k;
|
|
231
|
+
function A() {
|
|
232
|
+
return k ? O : (k = 1, O = new (v())({ explicit: [
|
|
233
|
+
x(),
|
|
234
|
+
w(),
|
|
235
|
+
D()
|
|
236
|
+
] }), O);
|
|
237
|
+
}
|
|
238
|
+
e(A, "requireFailsafe");
|
|
239
|
+
var j, M;
|
|
240
|
+
function N() {
|
|
241
|
+
if (M) return j;
|
|
242
|
+
M = 1;
|
|
243
|
+
let t = h();
|
|
244
|
+
function n(e) {
|
|
245
|
+
if (e === null) return !0;
|
|
246
|
+
let t = e.length;
|
|
247
|
+
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
248
|
+
}
|
|
249
|
+
e(n, "resolveYamlNull");
|
|
250
|
+
function r() {
|
|
251
|
+
return null;
|
|
252
|
+
}
|
|
253
|
+
e(r, "constructYamlNull");
|
|
254
|
+
function i(e) {
|
|
255
|
+
return e === null;
|
|
256
|
+
}
|
|
257
|
+
return e(i, "isNull"), j = new t("tag:yaml.org,2002:null", {
|
|
258
|
+
kind: "scalar",
|
|
259
|
+
resolve: n,
|
|
260
|
+
construct: r,
|
|
261
|
+
predicate: i,
|
|
262
|
+
represent: {
|
|
263
|
+
canonical: /* @__PURE__ */ e(function() {
|
|
264
|
+
return "~";
|
|
265
|
+
}, "canonical"),
|
|
266
|
+
lowercase: /* @__PURE__ */ e(function() {
|
|
267
|
+
return "null";
|
|
268
|
+
}, "lowercase"),
|
|
269
|
+
uppercase: /* @__PURE__ */ e(function() {
|
|
270
|
+
return "NULL";
|
|
271
|
+
}, "uppercase"),
|
|
272
|
+
camelcase: /* @__PURE__ */ e(function() {
|
|
273
|
+
return "Null";
|
|
274
|
+
}, "camelcase"),
|
|
275
|
+
empty: /* @__PURE__ */ e(function() {
|
|
276
|
+
return "";
|
|
277
|
+
}, "empty")
|
|
278
|
+
},
|
|
279
|
+
defaultStyle: "lowercase"
|
|
280
|
+
}), j;
|
|
281
|
+
}
|
|
282
|
+
e(N, "require_null");
|
|
283
|
+
var P, F;
|
|
284
|
+
function I() {
|
|
285
|
+
if (F) return P;
|
|
286
|
+
F = 1;
|
|
287
|
+
let t = h();
|
|
288
|
+
function n(e) {
|
|
289
|
+
if (e === null) return !1;
|
|
290
|
+
let t = e.length;
|
|
291
|
+
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
292
|
+
}
|
|
293
|
+
e(n, "resolveYamlBoolean");
|
|
294
|
+
function r(e) {
|
|
295
|
+
return e === "true" || e === "True" || e === "TRUE";
|
|
296
|
+
}
|
|
297
|
+
e(r, "constructYamlBoolean");
|
|
298
|
+
function i(e) {
|
|
299
|
+
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
300
|
+
}
|
|
301
|
+
return e(i, "isBoolean"), P = new t("tag:yaml.org,2002:bool", {
|
|
302
|
+
kind: "scalar",
|
|
303
|
+
resolve: n,
|
|
304
|
+
construct: r,
|
|
305
|
+
predicate: i,
|
|
306
|
+
represent: {
|
|
307
|
+
lowercase: /* @__PURE__ */ e(function(e) {
|
|
308
|
+
return e ? "true" : "false";
|
|
309
|
+
}, "lowercase"),
|
|
310
|
+
uppercase: /* @__PURE__ */ e(function(e) {
|
|
311
|
+
return e ? "TRUE" : "FALSE";
|
|
312
|
+
}, "uppercase"),
|
|
313
|
+
camelcase: /* @__PURE__ */ e(function(e) {
|
|
314
|
+
return e ? "True" : "False";
|
|
315
|
+
}, "camelcase")
|
|
316
|
+
},
|
|
317
|
+
defaultStyle: "lowercase"
|
|
318
|
+
}), P;
|
|
319
|
+
}
|
|
320
|
+
e(I, "requireBool");
|
|
321
|
+
var L, R;
|
|
322
|
+
function z() {
|
|
323
|
+
if (R) return L;
|
|
324
|
+
R = 1;
|
|
325
|
+
let t = o(), n = h();
|
|
326
|
+
function r(e) {
|
|
327
|
+
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
328
|
+
}
|
|
329
|
+
e(r, "isHexCode");
|
|
330
|
+
function i(e) {
|
|
331
|
+
return e >= 48 && e <= 55;
|
|
332
|
+
}
|
|
333
|
+
e(i, "isOctCode");
|
|
334
|
+
function a(e) {
|
|
335
|
+
return e >= 48 && e <= 57;
|
|
336
|
+
}
|
|
337
|
+
e(a, "isDecCode");
|
|
338
|
+
function s(e) {
|
|
339
|
+
if (e === null) return !1;
|
|
340
|
+
let t = e.length, n = 0, o = !1;
|
|
341
|
+
if (!t) return !1;
|
|
342
|
+
let s = e[n];
|
|
343
|
+
if ((s === "-" || s === "+") && (s = e[++n]), s === "0") {
|
|
344
|
+
if (n + 1 === t) return !0;
|
|
345
|
+
if (s = e[++n], s === "b") {
|
|
346
|
+
for (n++; n < t; n++) {
|
|
347
|
+
if (s = e[n], s !== "0" && s !== "1") return !1;
|
|
348
|
+
o = !0;
|
|
349
|
+
}
|
|
350
|
+
return o && isFinite(c(e));
|
|
351
|
+
}
|
|
352
|
+
if (s === "x") {
|
|
353
|
+
for (n++; n < t; n++) {
|
|
354
|
+
if (!r(e.charCodeAt(n))) return !1;
|
|
355
|
+
o = !0;
|
|
356
|
+
}
|
|
357
|
+
return o && isFinite(c(e));
|
|
358
|
+
}
|
|
359
|
+
if (s === "o") {
|
|
360
|
+
for (n++; n < t; n++) {
|
|
361
|
+
if (!i(e.charCodeAt(n))) return !1;
|
|
362
|
+
o = !0;
|
|
363
|
+
}
|
|
364
|
+
return o && isFinite(c(e));
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
for (; n < t; n++) {
|
|
368
|
+
if (!a(e.charCodeAt(n))) return !1;
|
|
369
|
+
o = !0;
|
|
370
|
+
}
|
|
371
|
+
return o ? isFinite(c(e)) : !1;
|
|
372
|
+
}
|
|
373
|
+
e(s, "resolveYamlInteger");
|
|
374
|
+
function c(e) {
|
|
375
|
+
let t = e, n = 1, r = t[0];
|
|
376
|
+
if ((r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
|
|
377
|
+
if (r === "0") {
|
|
378
|
+
if (t[1] === "b") return n * parseInt(t.slice(2), 2);
|
|
379
|
+
if (t[1] === "x") return n * parseInt(t.slice(2), 16);
|
|
380
|
+
if (t[1] === "o") return n * parseInt(t.slice(2), 8);
|
|
381
|
+
}
|
|
382
|
+
return n * parseInt(t, 10);
|
|
383
|
+
}
|
|
384
|
+
e(c, "parseYamlInteger");
|
|
385
|
+
function l(e) {
|
|
386
|
+
return c(e);
|
|
387
|
+
}
|
|
388
|
+
e(l, "constructYamlInteger");
|
|
389
|
+
function u(e) {
|
|
390
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !t.isNegativeZero(e);
|
|
391
|
+
}
|
|
392
|
+
return e(u, "isInteger"), L = new n("tag:yaml.org,2002:int", {
|
|
393
|
+
kind: "scalar",
|
|
394
|
+
resolve: s,
|
|
395
|
+
construct: l,
|
|
396
|
+
predicate: u,
|
|
397
|
+
represent: {
|
|
398
|
+
binary: /* @__PURE__ */ e(function(e) {
|
|
399
|
+
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
400
|
+
}, "binary"),
|
|
401
|
+
octal: /* @__PURE__ */ e(function(e) {
|
|
402
|
+
return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
|
|
403
|
+
}, "octal"),
|
|
404
|
+
decimal: /* @__PURE__ */ e(function(e) {
|
|
405
|
+
return e.toString(10);
|
|
406
|
+
}, "decimal"),
|
|
407
|
+
hexadecimal: /* @__PURE__ */ e(function(e) {
|
|
408
|
+
return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
|
|
409
|
+
}, "hexadecimal")
|
|
410
|
+
},
|
|
411
|
+
defaultStyle: "decimal",
|
|
412
|
+
styleAliases: {
|
|
413
|
+
binary: [2, "bin"],
|
|
414
|
+
octal: [8, "oct"],
|
|
415
|
+
decimal: [10, "dec"],
|
|
416
|
+
hexadecimal: [16, "hex"]
|
|
417
|
+
}
|
|
418
|
+
}), L;
|
|
419
|
+
}
|
|
420
|
+
e(z, "requireInt");
|
|
421
|
+
var B, V;
|
|
422
|
+
function H() {
|
|
423
|
+
if (V) return B;
|
|
424
|
+
V = 1;
|
|
425
|
+
let t = o(), n = h(), r = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), i = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
426
|
+
function a(e) {
|
|
427
|
+
return e === null || !r.test(e) ? !1 : isFinite(parseFloat(e, 10)) ? !0 : i.test(e);
|
|
428
|
+
}
|
|
429
|
+
e(a, "resolveYamlFloat");
|
|
430
|
+
function s(e) {
|
|
431
|
+
let t = e.toLowerCase(), n = t[0] === "-" ? -1 : 1;
|
|
432
|
+
return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
433
|
+
}
|
|
434
|
+
e(s, "constructYamlFloat");
|
|
435
|
+
let c = /^[-+]?[0-9]+e/;
|
|
436
|
+
function l(e, n) {
|
|
437
|
+
if (isNaN(e)) switch (n) {
|
|
438
|
+
case "lowercase": return ".nan";
|
|
439
|
+
case "uppercase": return ".NAN";
|
|
440
|
+
case "camelcase": return ".NaN";
|
|
441
|
+
}
|
|
442
|
+
else if (e === Infinity) switch (n) {
|
|
443
|
+
case "lowercase": return ".inf";
|
|
444
|
+
case "uppercase": return ".INF";
|
|
445
|
+
case "camelcase": return ".Inf";
|
|
446
|
+
}
|
|
447
|
+
else if (e === -Infinity) switch (n) {
|
|
448
|
+
case "lowercase": return "-.inf";
|
|
449
|
+
case "uppercase": return "-.INF";
|
|
450
|
+
case "camelcase": return "-.Inf";
|
|
451
|
+
}
|
|
452
|
+
else if (t.isNegativeZero(e)) return "-0.0";
|
|
453
|
+
let r = e.toString(10);
|
|
454
|
+
return c.test(r) ? r.replace("e", ".e") : r;
|
|
455
|
+
}
|
|
456
|
+
e(l, "representYamlFloat");
|
|
457
|
+
function u(e) {
|
|
458
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || t.isNegativeZero(e));
|
|
459
|
+
}
|
|
460
|
+
return e(u, "isFloat"), B = new n("tag:yaml.org,2002:float", {
|
|
461
|
+
kind: "scalar",
|
|
462
|
+
resolve: a,
|
|
463
|
+
construct: s,
|
|
464
|
+
predicate: u,
|
|
465
|
+
represent: l,
|
|
466
|
+
defaultStyle: "lowercase"
|
|
467
|
+
}), B;
|
|
468
|
+
}
|
|
469
|
+
e(H, "requireFloat");
|
|
470
|
+
var U, W;
|
|
471
|
+
function G() {
|
|
472
|
+
return W ? U : (W = 1, U = A().extend({ implicit: [
|
|
473
|
+
N(),
|
|
474
|
+
I(),
|
|
475
|
+
z(),
|
|
476
|
+
H()
|
|
477
|
+
] }), U);
|
|
478
|
+
}
|
|
479
|
+
e(G, "requireJson");
|
|
480
|
+
var ee, te;
|
|
481
|
+
function K() {
|
|
482
|
+
return te ? ee : (te = 1, ee = G(), ee);
|
|
483
|
+
}
|
|
484
|
+
e(K, "requireCore");
|
|
485
|
+
var q, ne;
|
|
486
|
+
function J() {
|
|
487
|
+
if (ne) return q;
|
|
488
|
+
ne = 1;
|
|
489
|
+
let t = h(), n = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), r = /* @__PURE__ */ 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]))?))?$");
|
|
490
|
+
function i(e) {
|
|
491
|
+
return e === null ? !1 : n.exec(e) !== null || r.exec(e) !== null;
|
|
492
|
+
}
|
|
493
|
+
e(i, "resolveYamlTimestamp");
|
|
494
|
+
function a(e) {
|
|
495
|
+
let t = 0, i = null, a = n.exec(e);
|
|
496
|
+
if (a === null && (a = r.exec(e)), a === null) throw Error("Date resolve error");
|
|
497
|
+
let o = +a[1], s = a[2] - 1, c = +a[3];
|
|
498
|
+
if (!a[4]) return new Date(Date.UTC(o, s, c));
|
|
499
|
+
let l = +a[4], u = +a[5], d = +a[6];
|
|
500
|
+
if (a[7]) {
|
|
501
|
+
for (t = a[7].slice(0, 3); t.length < 3;) t += "0";
|
|
502
|
+
t = +t;
|
|
503
|
+
}
|
|
504
|
+
if (a[9]) {
|
|
505
|
+
let e = +a[10], t = +(a[11] || 0);
|
|
506
|
+
i = (e * 60 + t) * 6e4, a[9] === "-" && (i = -i);
|
|
507
|
+
}
|
|
508
|
+
let f = new Date(Date.UTC(o, s, c, l, u, d, t));
|
|
509
|
+
return i && f.setTime(f.getTime() - i), f;
|
|
510
|
+
}
|
|
511
|
+
e(a, "constructYamlTimestamp");
|
|
512
|
+
function o(e) {
|
|
513
|
+
return e.toISOString();
|
|
514
|
+
}
|
|
515
|
+
return e(o, "representYamlTimestamp"), q = new t("tag:yaml.org,2002:timestamp", {
|
|
516
|
+
kind: "scalar",
|
|
517
|
+
resolve: i,
|
|
518
|
+
construct: a,
|
|
519
|
+
instanceOf: Date,
|
|
520
|
+
represent: o
|
|
521
|
+
}), q;
|
|
522
|
+
}
|
|
523
|
+
e(J, "requireTimestamp");
|
|
524
|
+
var Y, re;
|
|
525
|
+
function X() {
|
|
526
|
+
if (re) return Y;
|
|
527
|
+
re = 1;
|
|
528
|
+
let t = h();
|
|
529
|
+
function n(e) {
|
|
530
|
+
return e === "<<" || e === null;
|
|
531
|
+
}
|
|
532
|
+
return e(n, "resolveYamlMerge"), Y = new t("tag:yaml.org,2002:merge", {
|
|
533
|
+
kind: "scalar",
|
|
534
|
+
resolve: n
|
|
535
|
+
}), Y;
|
|
536
|
+
}
|
|
537
|
+
e(X, "requireMerge");
|
|
538
|
+
var Z, ie;
|
|
539
|
+
function Q() {
|
|
540
|
+
if (ie) return Z;
|
|
541
|
+
ie = 1;
|
|
542
|
+
let t = h();
|
|
543
|
+
function n(e) {
|
|
544
|
+
if (e === null) return !1;
|
|
545
|
+
let t = 0, n = e.length;
|
|
546
|
+
for (let r = 0; r < n; r++) {
|
|
547
|
+
let n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r".indexOf(e.charAt(r));
|
|
548
|
+
if (!(n > 64)) {
|
|
549
|
+
if (n < 0) return !1;
|
|
550
|
+
t += 6;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
return t % 8 == 0;
|
|
554
|
+
}
|
|
555
|
+
e(n, "resolveYamlBinary");
|
|
556
|
+
function r(e) {
|
|
557
|
+
let t = e.replace(/[\r\n=]/g, ""), n = t.length, r = 0, i = [];
|
|
558
|
+
for (let e = 0; e < n; e++) e % 4 == 0 && e && (i.push(r >> 16 & 255), i.push(r >> 8 & 255), i.push(r & 255)), r = r << 6 | "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r".indexOf(t.charAt(e));
|
|
559
|
+
let a = n % 4 * 6;
|
|
560
|
+
return a === 0 ? (i.push(r >> 16 & 255), i.push(r >> 8 & 255), i.push(r & 255)) : a === 18 ? (i.push(r >> 10 & 255), i.push(r >> 2 & 255)) : a === 12 && i.push(r >> 4 & 255), new Uint8Array(i);
|
|
561
|
+
}
|
|
562
|
+
e(r, "constructYamlBinary");
|
|
563
|
+
function i(e) {
|
|
564
|
+
let t = "", n = 0, r = e.length, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
565
|
+
for (let a = 0; a < r; a++) a % 3 == 0 && a && (t += i[n >> 18 & 63], t += i[n >> 12 & 63], t += i[n >> 6 & 63], t += i[n & 63]), n = (n << 8) + e[a];
|
|
566
|
+
let a = r % 3;
|
|
567
|
+
return a === 0 ? (t += i[n >> 18 & 63], t += i[n >> 12 & 63], t += i[n >> 6 & 63], t += i[n & 63]) : a === 2 ? (t += i[n >> 10 & 63], t += i[n >> 4 & 63], t += i[n << 2 & 63], t += i[64]) : a === 1 && (t += i[n >> 2 & 63], t += i[n << 4 & 63], t += i[64], t += i[64]), t;
|
|
568
|
+
}
|
|
569
|
+
e(i, "representYamlBinary");
|
|
570
|
+
function a(e) {
|
|
571
|
+
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
572
|
+
}
|
|
573
|
+
return e(a, "isBinary"), Z = new t("tag:yaml.org,2002:binary", {
|
|
574
|
+
kind: "scalar",
|
|
575
|
+
resolve: n,
|
|
576
|
+
construct: r,
|
|
577
|
+
predicate: a,
|
|
578
|
+
represent: i
|
|
579
|
+
}), Z;
|
|
580
|
+
}
|
|
581
|
+
e(Q, "requireBinary");
|
|
582
|
+
var $, ae;
|
|
583
|
+
function oe() {
|
|
584
|
+
if (ae) return $;
|
|
585
|
+
ae = 1;
|
|
586
|
+
let t = h(), n = Object.prototype.hasOwnProperty, r = Object.prototype.toString;
|
|
587
|
+
function i(e) {
|
|
588
|
+
if (e === null) return !0;
|
|
589
|
+
let t = [], i = e;
|
|
590
|
+
for (let e = 0, a = i.length; e < a; e += 1) {
|
|
591
|
+
let a = i[e], o = !1;
|
|
592
|
+
if (r.call(a) !== "[object Object]") return !1;
|
|
593
|
+
let s;
|
|
594
|
+
for (s in a) if (n.call(a, s)) if (!o) o = !0;
|
|
595
|
+
else return !1;
|
|
596
|
+
if (!o) return !1;
|
|
597
|
+
if (t.indexOf(s) === -1) t.push(s);
|
|
598
|
+
else return !1;
|
|
599
|
+
}
|
|
600
|
+
return !0;
|
|
601
|
+
}
|
|
602
|
+
e(i, "resolveYamlOmap");
|
|
603
|
+
function a(e) {
|
|
604
|
+
return e === null ? [] : e;
|
|
605
|
+
}
|
|
606
|
+
return e(a, "constructYamlOmap"), $ = new t("tag:yaml.org,2002:omap", {
|
|
607
|
+
kind: "sequence",
|
|
608
|
+
resolve: i,
|
|
609
|
+
construct: a
|
|
610
|
+
}), $;
|
|
611
|
+
}
|
|
612
|
+
e(oe, "requireOmap");
|
|
613
|
+
var se, ce;
|
|
614
|
+
function le() {
|
|
615
|
+
if (ce) return se;
|
|
616
|
+
ce = 1;
|
|
617
|
+
let t = h(), n = Object.prototype.toString;
|
|
618
|
+
function r(e) {
|
|
619
|
+
if (e === null) return !0;
|
|
620
|
+
let t = e, r = Array(t.length);
|
|
621
|
+
for (let e = 0, i = t.length; e < i; e += 1) {
|
|
622
|
+
let i = t[e];
|
|
623
|
+
if (n.call(i) !== "[object Object]") return !1;
|
|
624
|
+
let a = Object.keys(i);
|
|
625
|
+
if (a.length !== 1) return !1;
|
|
626
|
+
r[e] = [a[0], i[a[0]]];
|
|
627
|
+
}
|
|
628
|
+
return !0;
|
|
629
|
+
}
|
|
630
|
+
e(r, "resolveYamlPairs");
|
|
631
|
+
function i(e) {
|
|
632
|
+
if (e === null) return [];
|
|
633
|
+
let t = e, n = Array(t.length);
|
|
634
|
+
for (let e = 0, r = t.length; e < r; e += 1) {
|
|
635
|
+
let r = t[e], i = Object.keys(r);
|
|
636
|
+
n[e] = [i[0], r[i[0]]];
|
|
637
|
+
}
|
|
638
|
+
return n;
|
|
639
|
+
}
|
|
640
|
+
return e(i, "constructYamlPairs"), se = new t("tag:yaml.org,2002:pairs", {
|
|
641
|
+
kind: "sequence",
|
|
642
|
+
resolve: r,
|
|
643
|
+
construct: i
|
|
644
|
+
}), se;
|
|
645
|
+
}
|
|
646
|
+
e(le, "requirePairs");
|
|
647
|
+
var ue, de;
|
|
648
|
+
function fe() {
|
|
649
|
+
if (de) return ue;
|
|
650
|
+
de = 1;
|
|
651
|
+
let t = h(), n = Object.prototype.hasOwnProperty;
|
|
652
|
+
function r(e) {
|
|
653
|
+
if (e === null) return !0;
|
|
654
|
+
let t = e;
|
|
655
|
+
for (let e in t) if (n.call(t, e) && t[e] !== null) return !1;
|
|
656
|
+
return !0;
|
|
657
|
+
}
|
|
658
|
+
e(r, "resolveYamlSet");
|
|
659
|
+
function i(e) {
|
|
660
|
+
return e === null ? {} : e;
|
|
661
|
+
}
|
|
662
|
+
return e(i, "constructYamlSet"), ue = new t("tag:yaml.org,2002:set", {
|
|
663
|
+
kind: "mapping",
|
|
664
|
+
resolve: r,
|
|
665
|
+
construct: i
|
|
666
|
+
}), ue;
|
|
667
|
+
}
|
|
668
|
+
e(fe, "requireSet");
|
|
669
|
+
var pe, me;
|
|
670
|
+
function he() {
|
|
671
|
+
return me ? pe : (me = 1, pe = K().extend({
|
|
672
|
+
implicit: [J(), X()],
|
|
673
|
+
explicit: [
|
|
674
|
+
Q(),
|
|
675
|
+
oe(),
|
|
676
|
+
le(),
|
|
677
|
+
fe()
|
|
678
|
+
]
|
|
679
|
+
}), pe);
|
|
680
|
+
}
|
|
681
|
+
e(he, "require_default");
|
|
682
|
+
var ge;
|
|
683
|
+
function _e() {
|
|
684
|
+
if (ge) return r;
|
|
685
|
+
ge = 1;
|
|
686
|
+
let t = o(), n = l(), i = f(), a = he(), s = Object.prototype.hasOwnProperty, c = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, u = /[\x85\u2028\u2029]/, d = /[,\[\]{}]/, p = /^(?:!|!!|![0-9A-Za-z-]+!)$/, m = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
687
|
+
function h(e) {
|
|
688
|
+
return Object.prototype.toString.call(e);
|
|
689
|
+
}
|
|
690
|
+
e(h, "_class");
|
|
691
|
+
function g(e) {
|
|
692
|
+
return e === 10 || e === 13;
|
|
693
|
+
}
|
|
694
|
+
e(g, "isEol");
|
|
695
|
+
function _(e) {
|
|
696
|
+
return e === 9 || e === 32;
|
|
697
|
+
}
|
|
698
|
+
e(_, "isWhiteSpace");
|
|
699
|
+
function v(e) {
|
|
700
|
+
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
701
|
+
}
|
|
702
|
+
e(v, "isWsOrEol");
|
|
703
|
+
function y(e) {
|
|
704
|
+
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
705
|
+
}
|
|
706
|
+
e(y, "isFlowIndicator");
|
|
707
|
+
function b(e) {
|
|
708
|
+
if (e >= 48 && e <= 57) return e - 48;
|
|
709
|
+
let t = e | 32;
|
|
710
|
+
return t >= 97 && t <= 102 ? t - 97 + 10 : -1;
|
|
711
|
+
}
|
|
712
|
+
e(b, "fromHexCode");
|
|
713
|
+
function x(e) {
|
|
714
|
+
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
715
|
+
}
|
|
716
|
+
e(x, "escapedHexLen");
|
|
717
|
+
function S(e) {
|
|
718
|
+
return e >= 48 && e <= 57 ? e - 48 : -1;
|
|
719
|
+
}
|
|
720
|
+
e(S, "fromDecimalCode");
|
|
721
|
+
function C(e) {
|
|
722
|
+
switch (e) {
|
|
723
|
+
case 48: return "\0";
|
|
724
|
+
case 97: return "\x07";
|
|
725
|
+
case 98: return "\b";
|
|
726
|
+
case 116: return " ";
|
|
727
|
+
case 9: return " ";
|
|
728
|
+
case 110: return "\n";
|
|
729
|
+
case 118: return "\v";
|
|
730
|
+
case 102: return "\f";
|
|
731
|
+
case 114: return "\r";
|
|
732
|
+
case 101: return "\x1B";
|
|
733
|
+
case 32: return " ";
|
|
734
|
+
case 34: return "\"";
|
|
735
|
+
case 47: return "/";
|
|
736
|
+
case 92: return "\\";
|
|
737
|
+
case 78: return "
";
|
|
738
|
+
case 95: return "\xA0";
|
|
739
|
+
case 76: return "\u2028";
|
|
740
|
+
case 80: return "\u2029";
|
|
741
|
+
default: return "";
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
e(C, "simpleEscapeSequence");
|
|
745
|
+
function w(e) {
|
|
746
|
+
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
747
|
+
}
|
|
748
|
+
e(w, "charFromCodepoint");
|
|
749
|
+
function T(e, t, n) {
|
|
750
|
+
t === "__proto__" ? Object.defineProperty(e, t, {
|
|
751
|
+
configurable: !0,
|
|
752
|
+
enumerable: !0,
|
|
753
|
+
writable: !0,
|
|
754
|
+
value: n
|
|
755
|
+
}) : e[t] = n;
|
|
756
|
+
}
|
|
757
|
+
e(T, "setProperty");
|
|
758
|
+
let E = Array(256), D = Array(256);
|
|
759
|
+
for (let e = 0; e < 256; e++) E[e] = +!!C(e), D[e] = C(e);
|
|
760
|
+
function O(e, t) {
|
|
761
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || a, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : 100, this.maxTotalMergeKeys = typeof t.maxTotalMergeKeys == "number" ? t.maxTotalMergeKeys : 1e4, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.depth = 0, this.totalMergeKeys = 0, this.firstTabInLine = -1, this.documents = [], this.anchorMapTransactions = [];
|
|
762
|
+
}
|
|
763
|
+
e(O, "State");
|
|
764
|
+
function k(e, t) {
|
|
765
|
+
let r = {
|
|
766
|
+
name: e.filename,
|
|
767
|
+
buffer: e.input.slice(0, -1),
|
|
768
|
+
position: e.position,
|
|
769
|
+
line: e.line,
|
|
770
|
+
column: e.position - e.lineStart
|
|
771
|
+
};
|
|
772
|
+
return r.snippet = i(r), new n(t, r);
|
|
773
|
+
}
|
|
774
|
+
e(k, "generateError");
|
|
775
|
+
function A(e, t) {
|
|
776
|
+
throw k(e, t);
|
|
777
|
+
}
|
|
778
|
+
e(A, "throwError");
|
|
779
|
+
function j(e, t) {
|
|
780
|
+
e.onWarning && e.onWarning.call(null, k(e, t));
|
|
781
|
+
}
|
|
782
|
+
e(j, "throwWarning");
|
|
783
|
+
function M(e, t, n) {
|
|
784
|
+
let r = e.anchorMapTransactions;
|
|
785
|
+
if (r.length !== 0) {
|
|
786
|
+
let n = r[r.length - 1];
|
|
787
|
+
s.call(n, t) || (n[t] = {
|
|
788
|
+
existed: s.call(e.anchorMap, t),
|
|
789
|
+
value: e.anchorMap[t]
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
e.anchorMap[t] = n;
|
|
793
|
+
}
|
|
794
|
+
e(M, "storeAnchor");
|
|
795
|
+
function N(e) {
|
|
796
|
+
e.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
|
|
797
|
+
}
|
|
798
|
+
e(N, "beginAnchorTransaction");
|
|
799
|
+
function P(e) {
|
|
800
|
+
let t = e.anchorMapTransactions.pop(), n = e.anchorMapTransactions;
|
|
801
|
+
if (n.length === 0) return;
|
|
802
|
+
let r = n[n.length - 1], i = Object.keys(t);
|
|
803
|
+
for (let e = 0, n = i.length; e < n; e += 1) {
|
|
804
|
+
let n = i[e];
|
|
805
|
+
s.call(r, n) || (r[n] = t[n]);
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
e(P, "commitAnchorTransaction");
|
|
809
|
+
function F(e) {
|
|
810
|
+
let t = e.anchorMapTransactions.pop(), n = Object.keys(t);
|
|
811
|
+
for (let r = n.length - 1; r >= 0; --r) {
|
|
812
|
+
let i = t[n[r]];
|
|
813
|
+
i.existed ? e.anchorMap[n[r]] = i.value : delete e.anchorMap[n[r]];
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
e(F, "rollbackAnchorTransaction");
|
|
817
|
+
function I(e) {
|
|
818
|
+
return {
|
|
819
|
+
position: e.position,
|
|
820
|
+
line: e.line,
|
|
821
|
+
lineStart: e.lineStart,
|
|
822
|
+
lineIndent: e.lineIndent,
|
|
823
|
+
firstTabInLine: e.firstTabInLine,
|
|
824
|
+
tag: e.tag,
|
|
825
|
+
anchor: e.anchor,
|
|
826
|
+
kind: e.kind,
|
|
827
|
+
result: e.result
|
|
828
|
+
};
|
|
829
|
+
}
|
|
830
|
+
e(I, "snapshotState");
|
|
831
|
+
function L(e, t) {
|
|
832
|
+
e.position = t.position, e.line = t.line, e.lineStart = t.lineStart, e.lineIndent = t.lineIndent, e.firstTabInLine = t.firstTabInLine, e.tag = t.tag, e.anchor = t.anchor, e.kind = t.kind, e.result = t.result;
|
|
833
|
+
}
|
|
834
|
+
e(L, "restoreState");
|
|
835
|
+
let R = {
|
|
836
|
+
YAML: /* @__PURE__ */ e(function(e, t, n) {
|
|
837
|
+
e.version !== null && A(e, "duplication of %YAML directive"), n.length !== 1 && A(e, "YAML directive accepts exactly one argument");
|
|
838
|
+
let r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]);
|
|
839
|
+
r === null && A(e, "ill-formed argument of the YAML directive");
|
|
840
|
+
let i = parseInt(r[1], 10), a = parseInt(r[2], 10);
|
|
841
|
+
i !== 1 && A(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && j(e, "unsupported YAML version of the document");
|
|
842
|
+
}, "handleYamlDirective"),
|
|
843
|
+
TAG: /* @__PURE__ */ e(function(e, t, n) {
|
|
844
|
+
let r;
|
|
845
|
+
n.length !== 2 && A(e, "TAG directive accepts exactly two arguments");
|
|
846
|
+
let i = n[0];
|
|
847
|
+
r = n[1], p.test(i) || A(e, "ill-formed tag handle (first argument) of the TAG directive"), s.call(e.tagMap, i) && A(e, "there is a previously declared suffix for \"" + i + "\" tag handle"), m.test(r) || A(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
848
|
+
try {
|
|
849
|
+
r = decodeURIComponent(r);
|
|
850
|
+
} catch {
|
|
851
|
+
A(e, "tag prefix is malformed: " + r);
|
|
852
|
+
}
|
|
853
|
+
e.tagMap[i] = r;
|
|
854
|
+
}, "handleTagDirective")
|
|
855
|
+
};
|
|
856
|
+
function z(e, t, n, r) {
|
|
857
|
+
if (t < n) {
|
|
858
|
+
let i = e.input.slice(t, n);
|
|
859
|
+
if (r) for (let t = 0, n = i.length; t < n; t += 1) {
|
|
860
|
+
let n = i.charCodeAt(t);
|
|
861
|
+
n === 9 || n >= 32 && n <= 1114111 || A(e, "expected valid JSON character");
|
|
862
|
+
}
|
|
863
|
+
else c.test(i) && A(e, "the stream contains non-printable characters");
|
|
864
|
+
e.result += i;
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
e(z, "captureSegment");
|
|
868
|
+
function B(e, n, r, i) {
|
|
869
|
+
t.isObject(r) || A(e, "cannot merge mappings; the provided source object is unacceptable");
|
|
870
|
+
let a = Object.keys(r);
|
|
871
|
+
for (let t = 0, o = a.length; t < o; t += 1) {
|
|
872
|
+
let o = a[t];
|
|
873
|
+
e.maxTotalMergeKeys !== -1 && ++e.totalMergeKeys > e.maxTotalMergeKeys && A(e, "merge keys exceeded maxTotalMergeKeys (" + e.maxTotalMergeKeys + ")"), s.call(n, o) || (T(n, o, r[o]), i[o] = !0);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
e(B, "mergeMappings");
|
|
877
|
+
function V(e, t, n, r, i, a, o, c, l) {
|
|
878
|
+
if (Array.isArray(i)) {
|
|
879
|
+
i = Array.prototype.slice.call(i);
|
|
880
|
+
for (let t = 0, n = i.length; t < n; t += 1) Array.isArray(i[t]) && A(e, "nested arrays are not supported inside keys"), typeof i == "object" && h(i[t]) === "[object Object]" && (i[t] = "[object Object]");
|
|
881
|
+
}
|
|
882
|
+
if (typeof i == "object" && h(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") if (Array.isArray(a)) for (let r = 0, i = a.length; r < i; r += 1) B(e, t, a[r], n);
|
|
883
|
+
else B(e, t, a, n);
|
|
884
|
+
else !e.json && !s.call(n, i) && s.call(t, i) && (e.line = o || e.line, e.lineStart = c || e.lineStart, e.position = l || e.position, A(e, "duplicated mapping key")), T(t, i, a), delete n[i];
|
|
885
|
+
return t;
|
|
886
|
+
}
|
|
887
|
+
e(V, "storeMappingPair");
|
|
888
|
+
function H(e) {
|
|
889
|
+
let t = e.input.charCodeAt(e.position);
|
|
890
|
+
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : A(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
891
|
+
}
|
|
892
|
+
e(H, "readLineBreak");
|
|
893
|
+
function U(e, t, n) {
|
|
894
|
+
let r = 0, i = e.input.charCodeAt(e.position);
|
|
895
|
+
for (; i !== 0;) {
|
|
896
|
+
for (; _(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
897
|
+
if (t && i === 35) do
|
|
898
|
+
i = e.input.charCodeAt(++e.position);
|
|
899
|
+
while (i !== 10 && i !== 13 && i !== 0);
|
|
900
|
+
if (g(i)) for (H(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
901
|
+
else break;
|
|
902
|
+
}
|
|
903
|
+
return n !== -1 && r !== 0 && e.lineIndent < n && j(e, "deficient indentation"), r;
|
|
904
|
+
}
|
|
905
|
+
e(U, "skipSeparationSpace");
|
|
906
|
+
function W(e) {
|
|
907
|
+
let t = e.position, n = e.input.charCodeAt(t);
|
|
908
|
+
return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || v(n)));
|
|
909
|
+
}
|
|
910
|
+
e(W, "testDocumentSeparator");
|
|
911
|
+
function G(e, n) {
|
|
912
|
+
n === 1 ? e.result += " " : n > 1 && (e.result += t.repeat("\n", n - 1));
|
|
913
|
+
}
|
|
914
|
+
e(G, "writeFoldedLines");
|
|
915
|
+
function ee(e, t, n) {
|
|
916
|
+
let r, i, a, o, s, c, l = e.kind, u = e.result, d = e.input.charCodeAt(e.position);
|
|
917
|
+
if (v(d) || y(d) || d === 35 || d === 38 || d === 42 || d === 33 || d === 124 || d === 62 || d === 39 || d === 34 || d === 37 || d === 64 || d === 96) return !1;
|
|
918
|
+
if (d === 63 || d === 45) {
|
|
919
|
+
let t = e.input.charCodeAt(e.position + 1);
|
|
920
|
+
if (v(t) || n && y(t)) return !1;
|
|
921
|
+
}
|
|
922
|
+
for (e.kind = "scalar", e.result = "", r = i = e.position, a = !1; d !== 0;) {
|
|
923
|
+
if (d === 58) {
|
|
924
|
+
let t = e.input.charCodeAt(e.position + 1);
|
|
925
|
+
if (v(t) || n && y(t)) break;
|
|
926
|
+
} else if (d === 35) {
|
|
927
|
+
if (v(e.input.charCodeAt(e.position - 1))) break;
|
|
928
|
+
} else if (e.position === e.lineStart && W(e) || n && y(d)) break;
|
|
929
|
+
else if (g(d)) if (o = e.line, s = e.lineStart, c = e.lineIndent, U(e, !1, -1), e.lineIndent >= t) {
|
|
930
|
+
a = !0, d = e.input.charCodeAt(e.position);
|
|
931
|
+
continue;
|
|
932
|
+
} else {
|
|
933
|
+
e.position = i, e.line = o, e.lineStart = s, e.lineIndent = c;
|
|
934
|
+
break;
|
|
935
|
+
}
|
|
936
|
+
a &&= (z(e, r, i, !1), G(e, e.line - o), r = i = e.position, !1), _(d) || (i = e.position + 1), d = e.input.charCodeAt(++e.position);
|
|
937
|
+
}
|
|
938
|
+
return z(e, r, i, !1), e.result ? !0 : (e.kind = l, e.result = u, !1);
|
|
939
|
+
}
|
|
940
|
+
e(ee, "readPlainScalar");
|
|
941
|
+
function te(e, t) {
|
|
942
|
+
let n, r, i = e.input.charCodeAt(e.position);
|
|
943
|
+
if (i !== 39) return !1;
|
|
944
|
+
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (i = e.input.charCodeAt(e.position)) !== 0;) if (i === 39) if (z(e, n, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39) n = e.position, e.position++, r = e.position;
|
|
945
|
+
else return !0;
|
|
946
|
+
else g(i) ? (z(e, n, r, !0), G(e, U(e, !1, t)), n = r = e.position) : e.position === e.lineStart && W(e) ? A(e, "unexpected end of the document within a single quoted scalar") : (e.position++, _(i) || (r = e.position));
|
|
947
|
+
A(e, "unexpected end of the stream within a single quoted scalar");
|
|
948
|
+
}
|
|
949
|
+
e(te, "readSingleQuotedScalar");
|
|
950
|
+
function K(e, t) {
|
|
951
|
+
let n, r, i, a = e.input.charCodeAt(e.position);
|
|
952
|
+
if (a !== 34) return !1;
|
|
953
|
+
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (a = e.input.charCodeAt(e.position)) !== 0;) if (a === 34) return z(e, n, e.position, !0), e.position++, !0;
|
|
954
|
+
else if (a === 92) {
|
|
955
|
+
if (z(e, n, e.position, !0), a = e.input.charCodeAt(++e.position), g(a)) U(e, !1, t);
|
|
956
|
+
else if (a < 256 && E[a]) e.result += D[a], e.position++;
|
|
957
|
+
else if ((i = x(a)) > 0) {
|
|
958
|
+
let t = i, n = 0;
|
|
959
|
+
for (; t > 0; t--) a = e.input.charCodeAt(++e.position), (i = b(a)) >= 0 ? n = (n << 4) + i : A(e, "expected hexadecimal character");
|
|
960
|
+
e.result += w(n), e.position++;
|
|
961
|
+
} else A(e, "unknown escape sequence");
|
|
962
|
+
n = r = e.position;
|
|
963
|
+
} else g(a) ? (z(e, n, r, !0), G(e, U(e, !1, t)), n = r = e.position) : e.position === e.lineStart && W(e) ? A(e, "unexpected end of the document within a double quoted scalar") : (e.position++, _(a) || (r = e.position));
|
|
964
|
+
A(e, "unexpected end of the stream within a double quoted scalar");
|
|
965
|
+
}
|
|
966
|
+
e(K, "readDoubleQuotedScalar");
|
|
967
|
+
function q(e, t) {
|
|
968
|
+
let n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p = /* @__PURE__ */ Object.create(null), m, h, g, _ = e.input.charCodeAt(e.position);
|
|
969
|
+
if (_ === 91) l = 93, f = !1, s = [];
|
|
970
|
+
else if (_ === 123) l = 125, f = !0, s = {};
|
|
971
|
+
else return !1;
|
|
972
|
+
for (e.anchor !== null && M(e, e.anchor, s), _ = e.input.charCodeAt(++e.position); _ !== 0;) {
|
|
973
|
+
if (U(e, !0, t), _ = e.input.charCodeAt(e.position), _ === l) return e.position++, e.tag = o, e.anchor = c, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
|
|
974
|
+
n ? _ === 44 && A(e, "expected the node content, but found ','") : A(e, "missed comma between flow collection entries"), h = m = g = null, u = d = !1, _ === 63 && v(e.input.charCodeAt(e.position + 1)) && (u = d = !0, e.position++, U(e, !0, t)), r = e.line, i = e.lineStart, a = e.position, Q(e, t, 1, !1, !0), h = e.tag, m = e.result, U(e, !0, t), _ = e.input.charCodeAt(e.position), (d || e.line === r) && _ === 58 && (u = !0, _ = e.input.charCodeAt(++e.position), U(e, !0, t), Q(e, t, 1, !1, !0), g = e.result), f ? V(e, s, p, h, m, g, r, i, a) : u ? s.push(V(e, null, p, h, m, g, r, i, a)) : s.push(m), U(e, !0, t), _ = e.input.charCodeAt(e.position), _ === 44 ? (n = !0, _ = e.input.charCodeAt(++e.position)) : n = !1;
|
|
975
|
+
}
|
|
976
|
+
A(e, "unexpected end of the stream within a flow collection");
|
|
977
|
+
}
|
|
978
|
+
e(q, "readFlowCollection");
|
|
979
|
+
function ne(e, n) {
|
|
980
|
+
let r, i = 1, a = !1, o = !1, s = n, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
|
|
981
|
+
if (d === 124) r = !1;
|
|
982
|
+
else if (d === 62) r = !0;
|
|
983
|
+
else return !1;
|
|
984
|
+
for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) i === 1 ? i = d === 43 ? 3 : 2 : A(e, "repeat of a chomping mode identifier");
|
|
985
|
+
else if ((u = S(d)) >= 0) u === 0 ? A(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? A(e, "repeat of an indentation width identifier") : (s = n + u - 1, o = !0);
|
|
986
|
+
else break;
|
|
987
|
+
if (_(d)) {
|
|
988
|
+
do
|
|
989
|
+
d = e.input.charCodeAt(++e.position);
|
|
990
|
+
while (_(d));
|
|
991
|
+
if (d === 35) do
|
|
992
|
+
d = e.input.charCodeAt(++e.position);
|
|
993
|
+
while (!g(d) && d !== 0);
|
|
994
|
+
}
|
|
995
|
+
for (; d !== 0;) {
|
|
996
|
+
for (H(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
|
|
997
|
+
if (!o && e.lineIndent > s && (s = e.lineIndent), g(d)) {
|
|
998
|
+
c++;
|
|
999
|
+
continue;
|
|
1000
|
+
}
|
|
1001
|
+
if (!o && s === 0 && A(e, "missing indentation for block scalar"), e.lineIndent < s) {
|
|
1002
|
+
i === 3 ? e.result += t.repeat("\n", a ? 1 + c : c) : i === 1 && a && (e.result += "\n");
|
|
1003
|
+
break;
|
|
1004
|
+
}
|
|
1005
|
+
r ? _(d) ? (l = !0, e.result += t.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, e.result += t.repeat("\n", c + 1)) : c === 0 ? a && (e.result += " ") : e.result += t.repeat("\n", c) : e.result += t.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0;
|
|
1006
|
+
let n = e.position;
|
|
1007
|
+
for (; !g(d) && d !== 0;) d = e.input.charCodeAt(++e.position);
|
|
1008
|
+
z(e, n, e.position, !1);
|
|
1009
|
+
}
|
|
1010
|
+
return !0;
|
|
1011
|
+
}
|
|
1012
|
+
e(ne, "readBlockScalar");
|
|
1013
|
+
function J(e, t) {
|
|
1014
|
+
let n = e.tag, r = e.anchor, i = [], a = !1;
|
|
1015
|
+
if (e.firstTabInLine !== -1) return !1;
|
|
1016
|
+
e.anchor !== null && M(e, e.anchor, i);
|
|
1017
|
+
let o = e.input.charCodeAt(e.position);
|
|
1018
|
+
for (; o !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, A(e, "tab characters must not be used in indentation")), !(o !== 45 || !v(e.input.charCodeAt(e.position + 1))));) {
|
|
1019
|
+
if (a = !0, e.position++, U(e, !0, -1) && e.lineIndent <= t) {
|
|
1020
|
+
i.push(null), o = e.input.charCodeAt(e.position);
|
|
1021
|
+
continue;
|
|
1022
|
+
}
|
|
1023
|
+
let n = e.line;
|
|
1024
|
+
if (Q(e, t, 3, !1, !0), i.push(e.result), U(e, !0, -1), o = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && o !== 0) A(e, "bad indentation of a sequence entry");
|
|
1025
|
+
else if (e.lineIndent < t) break;
|
|
1026
|
+
}
|
|
1027
|
+
return a ? (e.tag = n, e.anchor = r, e.kind = "sequence", e.result = i, !0) : !1;
|
|
1028
|
+
}
|
|
1029
|
+
e(J, "readBlockSequence");
|
|
1030
|
+
function Y(e, t, n) {
|
|
1031
|
+
let r, i, a, o, s = e.tag, c = e.anchor, l = {}, u = /* @__PURE__ */ Object.create(null), d = null, f = null, p = null, m = !1, h = !1;
|
|
1032
|
+
if (e.firstTabInLine !== -1) return !1;
|
|
1033
|
+
e.anchor !== null && M(e, e.anchor, l);
|
|
1034
|
+
let g = e.input.charCodeAt(e.position);
|
|
1035
|
+
for (; g !== 0;) {
|
|
1036
|
+
!m && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, A(e, "tab characters must not be used in indentation"));
|
|
1037
|
+
let y = e.input.charCodeAt(e.position + 1), b = e.line;
|
|
1038
|
+
if ((g === 63 || g === 58) && v(y)) g === 63 ? (m && (V(e, l, u, d, f, null, i, a, o), d = f = p = null), h = !0, m = !0, r = !0) : m ? (m = !1, r = !0) : A(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, g = y;
|
|
1039
|
+
else {
|
|
1040
|
+
if (i = e.line, a = e.lineStart, o = e.position, !Q(e, n, 2, !1, !0)) break;
|
|
1041
|
+
if (e.line === b) {
|
|
1042
|
+
for (g = e.input.charCodeAt(e.position); _(g);) g = e.input.charCodeAt(++e.position);
|
|
1043
|
+
if (g === 58) g = e.input.charCodeAt(++e.position), v(g) || A(e, "a whitespace character is expected after the key-value separator within a block mapping"), m && (V(e, l, u, d, f, null, i, a, o), d = f = p = null), h = !0, m = !1, r = !1, d = e.tag, f = e.result;
|
|
1044
|
+
else if (h) A(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1045
|
+
else return e.tag = s, e.anchor = c, !0;
|
|
1046
|
+
} else if (h) A(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1047
|
+
else return e.tag = s, e.anchor = c, !0;
|
|
1048
|
+
}
|
|
1049
|
+
if ((e.line === b || e.lineIndent > t) && (m && (i = e.line, a = e.lineStart, o = e.position), Q(e, t, 4, !0, r) && (m ? f = e.result : p = e.result), m || (V(e, l, u, d, f, p, i, a, o), d = f = p = null), U(e, !0, -1), g = e.input.charCodeAt(e.position)), (e.line === b || e.lineIndent > t) && g !== 0) A(e, "bad indentation of a mapping entry");
|
|
1050
|
+
else if (e.lineIndent < t) break;
|
|
1051
|
+
}
|
|
1052
|
+
return m && V(e, l, u, d, f, null, i, a, o), h && (e.tag = s, e.anchor = c, e.kind = "mapping", e.result = l), h;
|
|
1053
|
+
}
|
|
1054
|
+
e(Y, "readBlockMapping");
|
|
1055
|
+
function re(e) {
|
|
1056
|
+
let t = !1, n = !1, r, i, a = e.input.charCodeAt(e.position);
|
|
1057
|
+
if (a !== 33) return !1;
|
|
1058
|
+
e.tag !== null && A(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (t = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (n = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!";
|
|
1059
|
+
let o = e.position;
|
|
1060
|
+
if (t) {
|
|
1061
|
+
do
|
|
1062
|
+
a = e.input.charCodeAt(++e.position);
|
|
1063
|
+
while (a !== 0 && a !== 62);
|
|
1064
|
+
e.position < e.length ? (i = e.input.slice(o, e.position), a = e.input.charCodeAt(++e.position)) : A(e, "unexpected end of the stream within a verbatim tag");
|
|
1065
|
+
} else {
|
|
1066
|
+
for (; a !== 0 && !v(a);) a === 33 && (n ? A(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(o - 1, e.position + 1), p.test(r) || A(e, "named tag handle cannot contain such characters"), n = !0, o = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
1067
|
+
i = e.input.slice(o, e.position), d.test(i) && A(e, "tag suffix cannot contain flow indicator characters");
|
|
1068
|
+
}
|
|
1069
|
+
i && !m.test(i) && A(e, "tag name cannot contain such characters: " + i);
|
|
1070
|
+
try {
|
|
1071
|
+
i = decodeURIComponent(i);
|
|
1072
|
+
} catch {
|
|
1073
|
+
A(e, "tag name is malformed: " + i);
|
|
1074
|
+
}
|
|
1075
|
+
return t ? e.tag = i : s.call(e.tagMap, r) ? e.tag = e.tagMap[r] + i : r === "!" ? e.tag = "!" + i : r === "!!" ? e.tag = "tag:yaml.org,2002:" + i : A(e, "undeclared tag handle \"" + r + "\""), !0;
|
|
1076
|
+
}
|
|
1077
|
+
e(re, "readTagProperty");
|
|
1078
|
+
function X(e) {
|
|
1079
|
+
let t = e.input.charCodeAt(e.position);
|
|
1080
|
+
if (t !== 38) return !1;
|
|
1081
|
+
e.anchor !== null && A(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position);
|
|
1082
|
+
let n = e.position;
|
|
1083
|
+
for (; t !== 0 && !v(t) && !y(t);) t = e.input.charCodeAt(++e.position);
|
|
1084
|
+
return e.position === n && A(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
1085
|
+
}
|
|
1086
|
+
e(X, "readAnchorProperty");
|
|
1087
|
+
function Z(e) {
|
|
1088
|
+
let t = e.input.charCodeAt(e.position);
|
|
1089
|
+
if (t !== 42) return !1;
|
|
1090
|
+
t = e.input.charCodeAt(++e.position);
|
|
1091
|
+
let n = e.position;
|
|
1092
|
+
for (; t !== 0 && !v(t) && !y(t);) t = e.input.charCodeAt(++e.position);
|
|
1093
|
+
e.position === n && A(e, "name of an alias node must contain at least one character");
|
|
1094
|
+
let r = e.input.slice(n, e.position);
|
|
1095
|
+
return s.call(e.anchorMap, r) || A(e, "unidentified alias \"" + r + "\""), e.result = e.anchorMap[r], U(e, !0, -1), !0;
|
|
1096
|
+
}
|
|
1097
|
+
e(Z, "readAlias");
|
|
1098
|
+
function ie(e, t, n, r) {
|
|
1099
|
+
let i = I(e);
|
|
1100
|
+
return N(e), L(e, t), e.tag = null, e.anchor = null, e.kind = null, e.result = null, Y(e, n, r) && e.kind === "mapping" ? (P(e), !0) : (F(e), L(e, i), !1);
|
|
1101
|
+
}
|
|
1102
|
+
e(ie, "tryReadBlockMappingFromProperty");
|
|
1103
|
+
function Q(e, t, n, r, i) {
|
|
1104
|
+
let a, o, c = 1, l = !1, u = !1, d = null, f, p, m;
|
|
1105
|
+
e.depth >= e.maxDepth && A(e, "nesting exceeded maxDepth (" + e.maxDepth + ")"), e.depth += 1, e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null;
|
|
1106
|
+
let h = a = o = n === 4 || n === 3;
|
|
1107
|
+
if (r && U(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (;;) {
|
|
1108
|
+
let n = e.input.charCodeAt(e.position), r = I(e);
|
|
1109
|
+
if (l && (n === 33 && e.tag !== null || n === 38 && e.anchor !== null) || !re(e) && !X(e)) break;
|
|
1110
|
+
d === null && (d = r), U(e, !0, -1) ? (l = !0, o = h, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : o = !1;
|
|
1111
|
+
}
|
|
1112
|
+
if (o &&= l || i, c === 1 || n === 4) if (p = n === 1 || n === 2 ? t : t + 1, m = e.position - e.lineStart, c === 1) if (o && (J(e, m) || Y(e, m, p)) || q(e, p)) u = !0;
|
|
1113
|
+
else {
|
|
1114
|
+
let t = e.input.charCodeAt(e.position);
|
|
1115
|
+
d !== null && h && !o && t !== 124 && t !== 62 && ie(e, d, d.position - d.lineStart, p) || a && ne(e, p) || te(e, p) || K(e, p) ? u = !0 : Z(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && A(e, "alias node should not have any properties")) : ee(e, p, n === 1) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && M(e, e.anchor, e.result);
|
|
1116
|
+
}
|
|
1117
|
+
else c === 0 && (u = o && J(e, m));
|
|
1118
|
+
if (e.tag === null) e.anchor !== null && M(e, e.anchor, e.result);
|
|
1119
|
+
else if (e.tag === "?") {
|
|
1120
|
+
e.result !== null && e.kind !== "scalar" && A(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\"");
|
|
1121
|
+
for (let t = 0, n = e.implicitTypes.length; t < n; t += 1) if (f = e.implicitTypes[t], f.resolve(e.result)) {
|
|
1122
|
+
e.result = f.construct(e.result), e.tag = f.tag, e.anchor !== null && M(e, e.anchor, e.result);
|
|
1123
|
+
break;
|
|
1124
|
+
}
|
|
1125
|
+
} else if (e.tag !== "!") {
|
|
1126
|
+
if (s.call(e.typeMap[e.kind || "fallback"], e.tag)) f = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1127
|
+
else {
|
|
1128
|
+
f = null;
|
|
1129
|
+
let t = e.typeMap.multi[e.kind || "fallback"];
|
|
1130
|
+
for (let n = 0, r = t.length; n < r; n += 1) if (e.tag.slice(0, t[n].tag.length) === t[n].tag) {
|
|
1131
|
+
f = t[n];
|
|
1132
|
+
break;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
f || A(e, "unknown tag !<" + e.tag + ">"), e.result !== null && f.kind !== e.kind && A(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + f.kind + "\", not \"" + e.kind + "\""), f.resolve(e.result, e.tag) ? (e.result = f.construct(e.result, e.tag), e.anchor !== null && M(e, e.anchor, e.result)) : A(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1136
|
+
}
|
|
1137
|
+
return e.listener !== null && e.listener("close", e), --e.depth, e.tag !== null || e.anchor !== null || u;
|
|
1138
|
+
}
|
|
1139
|
+
e(Q, "composeNode");
|
|
1140
|
+
function $(e) {
|
|
1141
|
+
let t = e.position, n = !1, r;
|
|
1142
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (r = e.input.charCodeAt(e.position)) !== 0 && (U(e, !0, -1), r = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || r !== 37));) {
|
|
1143
|
+
n = !0, r = e.input.charCodeAt(++e.position);
|
|
1144
|
+
let t = e.position;
|
|
1145
|
+
for (; r !== 0 && !v(r);) r = e.input.charCodeAt(++e.position);
|
|
1146
|
+
let i = e.input.slice(t, e.position), a = [];
|
|
1147
|
+
for (i.length < 1 && A(e, "directive name must not be less than one character in length"); r !== 0;) {
|
|
1148
|
+
for (; _(r);) r = e.input.charCodeAt(++e.position);
|
|
1149
|
+
if (r === 35) {
|
|
1150
|
+
do
|
|
1151
|
+
r = e.input.charCodeAt(++e.position);
|
|
1152
|
+
while (r !== 0 && !g(r));
|
|
1153
|
+
break;
|
|
1154
|
+
}
|
|
1155
|
+
if (g(r)) break;
|
|
1156
|
+
for (t = e.position; r !== 0 && !v(r);) r = e.input.charCodeAt(++e.position);
|
|
1157
|
+
a.push(e.input.slice(t, e.position));
|
|
1158
|
+
}
|
|
1159
|
+
r !== 0 && H(e), s.call(R, i) ? R[i](e, i, a) : j(e, "unknown document directive \"" + i + "\"");
|
|
1160
|
+
}
|
|
1161
|
+
if (U(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, U(e, !0, -1)) : n && A(e, "directives end mark is expected"), Q(e, e.lineIndent - 1, 4, !1, !0), U(e, !0, -1), e.checkLineBreaks && u.test(e.input.slice(t, e.position)) && j(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && W(e)) {
|
|
1162
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, U(e, !0, -1));
|
|
1163
|
+
return;
|
|
1164
|
+
}
|
|
1165
|
+
e.position < e.length - 1 && A(e, "end of the stream or a document separator is expected");
|
|
1166
|
+
}
|
|
1167
|
+
e($, "readDocument");
|
|
1168
|
+
function ae(e, t) {
|
|
1169
|
+
e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1170
|
+
let n = new O(e, t), r = e.indexOf("\0");
|
|
1171
|
+
for (r !== -1 && (n.position = r, A(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
|
|
1172
|
+
for (; n.position < n.length - 1;) $(n);
|
|
1173
|
+
return n.documents;
|
|
1174
|
+
}
|
|
1175
|
+
e(ae, "loadDocuments");
|
|
1176
|
+
function oe(e, t, n) {
|
|
1177
|
+
typeof t == "object" && t && n === void 0 && (n = t, t = null);
|
|
1178
|
+
let r = ae(e, n);
|
|
1179
|
+
if (typeof t != "function") return r;
|
|
1180
|
+
for (let e = 0, n = r.length; e < n; e += 1) t(r[e]);
|
|
1181
|
+
}
|
|
1182
|
+
e(oe, "loadAll2");
|
|
1183
|
+
function se(e, t) {
|
|
1184
|
+
let r = ae(e, t);
|
|
1185
|
+
if (r.length !== 0) {
|
|
1186
|
+
if (r.length === 1) return r[0];
|
|
1187
|
+
throw new n("expected a single document in the stream, but found more");
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
return e(se, "load2"), r.loadAll = oe, r.load = se, r;
|
|
1191
|
+
}
|
|
1192
|
+
e(_e, "requireLoader");
|
|
1193
|
+
var ve = {}, ye;
|
|
1194
|
+
function be() {
|
|
1195
|
+
if (ye) return ve;
|
|
1196
|
+
ye = 1;
|
|
1197
|
+
let t = o(), n = l(), r = he(), i = Object.prototype.toString, a = Object.prototype.hasOwnProperty, s = 65279, c = {};
|
|
1198
|
+
c[0] = "\\0", c[7] = "\\a", c[8] = "\\b", c[9] = "\\t", c[10] = "\\n", c[11] = "\\v", c[12] = "\\f", c[13] = "\\r", c[27] = "\\e", c[34] = "\\\"", c[92] = "\\\\", c[133] = "\\N", c[160] = "\\_", c[8232] = "\\L", c[8233] = "\\P";
|
|
1199
|
+
let u = [
|
|
1200
|
+
"y",
|
|
1201
|
+
"Y",
|
|
1202
|
+
"yes",
|
|
1203
|
+
"Yes",
|
|
1204
|
+
"YES",
|
|
1205
|
+
"on",
|
|
1206
|
+
"On",
|
|
1207
|
+
"ON",
|
|
1208
|
+
"n",
|
|
1209
|
+
"N",
|
|
1210
|
+
"no",
|
|
1211
|
+
"No",
|
|
1212
|
+
"NO",
|
|
1213
|
+
"off",
|
|
1214
|
+
"Off",
|
|
1215
|
+
"OFF"
|
|
1216
|
+
], d = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
1217
|
+
function f(e, t) {
|
|
1218
|
+
if (t === null) return {};
|
|
1219
|
+
let n = {}, r = Object.keys(t);
|
|
1220
|
+
for (let i = 0, o = r.length; i < o; i += 1) {
|
|
1221
|
+
let o = r[i], s = String(t[o]);
|
|
1222
|
+
o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2));
|
|
1223
|
+
let c = e.compiledTypeMap.fallback[o];
|
|
1224
|
+
c && a.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
|
|
1225
|
+
}
|
|
1226
|
+
return n;
|
|
1227
|
+
}
|
|
1228
|
+
e(f, "compileStyleMap");
|
|
1229
|
+
function p(e) {
|
|
1230
|
+
let r, i, a = e.toString(16).toUpperCase();
|
|
1231
|
+
if (e <= 255) r = "x", i = 2;
|
|
1232
|
+
else if (e <= 65535) r = "u", i = 4;
|
|
1233
|
+
else if (e <= 4294967295) r = "U", i = 8;
|
|
1234
|
+
else throw new n("code point within a string may not be greater than 0xFFFFFFFF");
|
|
1235
|
+
return "\\" + r + t.repeat("0", i - a.length) + a;
|
|
1236
|
+
}
|
|
1237
|
+
e(p, "encodeHex");
|
|
1238
|
+
function m(e) {
|
|
1239
|
+
this.schema = e.schema || r, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = t.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = f(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? 2 : 1, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
1240
|
+
}
|
|
1241
|
+
e(m, "State");
|
|
1242
|
+
function h(e, n) {
|
|
1243
|
+
let r = t.repeat(" ", n), i = 0, a = "", o = e.length;
|
|
1244
|
+
for (; i < o;) {
|
|
1245
|
+
let t, n = e.indexOf("\n", i);
|
|
1246
|
+
n === -1 ? (t = e.slice(i), i = o) : (t = e.slice(i, n + 1), i = n + 1), t.length && t !== "\n" && (a += r), a += t;
|
|
1247
|
+
}
|
|
1248
|
+
return a;
|
|
1249
|
+
}
|
|
1250
|
+
e(h, "indentString");
|
|
1251
|
+
function g(e, n) {
|
|
1252
|
+
return "\n" + t.repeat(" ", e.indent * n);
|
|
1253
|
+
}
|
|
1254
|
+
e(g, "generateNextLine");
|
|
1255
|
+
function _(e, t) {
|
|
1256
|
+
for (let n = 0, r = e.implicitTypes.length; n < r; n += 1) if (e.implicitTypes[n].resolve(t)) return !0;
|
|
1257
|
+
return !1;
|
|
1258
|
+
}
|
|
1259
|
+
e(_, "testImplicitResolving");
|
|
1260
|
+
function v(e) {
|
|
1261
|
+
return e === 32 || e === 9;
|
|
1262
|
+
}
|
|
1263
|
+
e(v, "isWhitespace");
|
|
1264
|
+
function y(e) {
|
|
1265
|
+
return e >= 32 && e <= 126 || e >= 161 && e <= 55295 && e !== 8232 && e !== 8233 || e >= 57344 && e <= 65533 && e !== s || e >= 65536 && e <= 1114111;
|
|
1266
|
+
}
|
|
1267
|
+
e(y, "isPrintable");
|
|
1268
|
+
function b(e) {
|
|
1269
|
+
return y(e) && e !== s && e !== 13 && e !== 10;
|
|
1270
|
+
}
|
|
1271
|
+
e(b, "isNsCharOrWhitespace");
|
|
1272
|
+
function x(e, t, n) {
|
|
1273
|
+
let r = b(e), i = r && !v(e);
|
|
1274
|
+
return (n ? r : r && e !== 44 && e !== 91 && e !== 93 && e !== 123 && e !== 125) && e !== 35 && !(t === 58 && !i) || b(t) && !v(t) && e === 35 || t === 58 && i;
|
|
1275
|
+
}
|
|
1276
|
+
e(x, "isPlainSafe");
|
|
1277
|
+
function S(e) {
|
|
1278
|
+
return y(e) && e !== s && !v(e) && e !== 45 && e !== 63 && e !== 58 && e !== 44 && e !== 91 && e !== 93 && e !== 123 && e !== 125 && e !== 35 && e !== 38 && e !== 42 && e !== 33 && e !== 124 && e !== 61 && e !== 62 && e !== 39 && e !== 34 && e !== 37 && e !== 64 && e !== 96;
|
|
1279
|
+
}
|
|
1280
|
+
e(S, "isPlainSafeFirst");
|
|
1281
|
+
function C(e) {
|
|
1282
|
+
return !v(e) && e !== 58;
|
|
1283
|
+
}
|
|
1284
|
+
e(C, "isPlainSafeLast");
|
|
1285
|
+
function w(e, t) {
|
|
1286
|
+
let n = e.charCodeAt(t), r;
|
|
1287
|
+
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
1288
|
+
}
|
|
1289
|
+
e(w, "codePointAt");
|
|
1290
|
+
function T(e) {
|
|
1291
|
+
return /^\n* /.test(e);
|
|
1292
|
+
}
|
|
1293
|
+
e(T, "needIndentIndicator");
|
|
1294
|
+
function E(e, t, n, r, i, a, o, s) {
|
|
1295
|
+
let c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = S(w(e, 0)) && C(w(e, e.length - 1));
|
|
1296
|
+
if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
1297
|
+
if (l = w(e, c), !y(l)) return 5;
|
|
1298
|
+
h &&= x(l, u, s), u = l;
|
|
1299
|
+
}
|
|
1300
|
+
else {
|
|
1301
|
+
for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
1302
|
+
if (l = w(e, c), l === 10) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
|
|
1303
|
+
else if (!y(l)) return 5;
|
|
1304
|
+
h &&= x(l, u, s), u = l;
|
|
1305
|
+
}
|
|
1306
|
+
f ||= p && c - m - 1 > r && e[m + 1] !== " ";
|
|
1307
|
+
}
|
|
1308
|
+
return !d && !f ? h && !o && !i(e) ? 1 : a === 2 ? 5 : 2 : n > 9 && T(e) ? 5 : o ? a === 2 ? 5 : 2 : f ? 4 : 3;
|
|
1309
|
+
}
|
|
1310
|
+
e(E, "chooseScalarStyle");
|
|
1311
|
+
function D(t, r, i, a, o) {
|
|
1312
|
+
t.dump = (function() {
|
|
1313
|
+
if (r.length === 0) return t.quotingType === 2 ? "\"\"" : "''";
|
|
1314
|
+
if (!t.noCompatMode && (u.indexOf(r) !== -1 || d.test(r))) return t.quotingType === 2 ? "\"" + r + "\"" : "'" + r + "'";
|
|
1315
|
+
let s = t.indent * Math.max(1, i), c = t.lineWidth === -1 ? -1 : Math.max(Math.min(t.lineWidth, 40), t.lineWidth - s), l = a || t.flowLevel > -1 && i >= t.flowLevel;
|
|
1316
|
+
function f(e) {
|
|
1317
|
+
return _(t, e);
|
|
1318
|
+
}
|
|
1319
|
+
switch (e(f, "testAmbiguity"), E(r, l, t.indent, c, f, t.quotingType, t.forceQuotes && !a, o)) {
|
|
1320
|
+
case 1: return r;
|
|
1321
|
+
case 2: return "'" + r.replace(/'/g, "''") + "'";
|
|
1322
|
+
case 3: return "|" + O(r, t.indent) + k(h(r, s));
|
|
1323
|
+
case 4: return ">" + O(r, t.indent) + k(h(A(r, c), s));
|
|
1324
|
+
case 5: return "\"" + M(r) + "\"";
|
|
1325
|
+
default: throw new n("impossible error: invalid scalar style");
|
|
1326
|
+
}
|
|
1327
|
+
})();
|
|
1328
|
+
}
|
|
1329
|
+
e(D, "writeScalar");
|
|
1330
|
+
function O(e, t) {
|
|
1331
|
+
let n = T(e) ? String(t) : "", r = e[e.length - 1] === "\n";
|
|
1332
|
+
return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
|
|
1333
|
+
}
|
|
1334
|
+
e(O, "blockHeader");
|
|
1335
|
+
function k(e) {
|
|
1336
|
+
return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
|
|
1337
|
+
}
|
|
1338
|
+
e(k, "dropEndingNewline");
|
|
1339
|
+
function A(e, t) {
|
|
1340
|
+
let n = /(\n+)([^\n]*)/g, r = (function() {
|
|
1341
|
+
let r = e.indexOf("\n");
|
|
1342
|
+
return r = r === -1 ? e.length : r, n.lastIndex = r, j(e.slice(0, r), t);
|
|
1343
|
+
})(), i = e[0] === "\n" || e[0] === " ", a, o;
|
|
1344
|
+
for (; o = n.exec(e);) {
|
|
1345
|
+
let e = o[1], n = o[2];
|
|
1346
|
+
a = n[0] === " ", r += e + (!i && !a && n !== "" ? "\n" : "") + j(n, t), i = a;
|
|
1347
|
+
}
|
|
1348
|
+
return r;
|
|
1349
|
+
}
|
|
1350
|
+
e(A, "foldString");
|
|
1351
|
+
function j(e, t) {
|
|
1352
|
+
if (e === "" || e[0] === " ") return e;
|
|
1353
|
+
let n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = "";
|
|
1354
|
+
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;
|
|
1355
|
+
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);
|
|
1356
|
+
}
|
|
1357
|
+
e(j, "foldLine");
|
|
1358
|
+
function M(e) {
|
|
1359
|
+
let t = "", n = 0;
|
|
1360
|
+
for (let r = 0; r < e.length; n >= 65536 ? r += 2 : r++) {
|
|
1361
|
+
n = w(e, r);
|
|
1362
|
+
let i = c[n];
|
|
1363
|
+
!i && y(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || p(n);
|
|
1364
|
+
}
|
|
1365
|
+
return t;
|
|
1366
|
+
}
|
|
1367
|
+
e(M, "escapeString");
|
|
1368
|
+
function N(e, t, n) {
|
|
1369
|
+
let r = "", i = e.tag;
|
|
1370
|
+
for (let i = 0, a = n.length; i < a; i += 1) {
|
|
1371
|
+
let a = n[i];
|
|
1372
|
+
e.replacer && (a = e.replacer.call(n, String(i), a)), (R(e, t, a, !1, !1) || a === void 0 && R(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
1373
|
+
}
|
|
1374
|
+
e.tag = i, e.dump = "[" + r + "]";
|
|
1375
|
+
}
|
|
1376
|
+
e(N, "writeFlowSequence");
|
|
1377
|
+
function P(e, t, n, r) {
|
|
1378
|
+
let i = "", a = e.tag;
|
|
1379
|
+
for (let a = 0, o = n.length; a < o; a += 1) {
|
|
1380
|
+
let o = n[a];
|
|
1381
|
+
e.replacer && (o = e.replacer.call(n, String(a), o)), (R(e, t + 1, o, !0, !0, !1, !0) || o === void 0 && R(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += g(e, t)), e.dump && e.dump.charCodeAt(0) === 10 ? i += "-" : i += "- ", i += e.dump);
|
|
1382
|
+
}
|
|
1383
|
+
e.tag = a, e.dump = i || "[]";
|
|
1384
|
+
}
|
|
1385
|
+
e(P, "writeBlockSequence");
|
|
1386
|
+
function F(e, t, n) {
|
|
1387
|
+
let r = "", i = e.tag, a = Object.keys(n);
|
|
1388
|
+
for (let i = 0, o = a.length; i < o; i += 1) {
|
|
1389
|
+
let o = "";
|
|
1390
|
+
r !== "" && (o += ", "), e.condenseFlow && (o += "\"");
|
|
1391
|
+
let s = a[i], c = n[s];
|
|
1392
|
+
e.replacer && (c = e.replacer.call(n, s, c)), R(e, t, s, !1, !1) && (e.dump.length > 1024 && (o += "? "), o += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), R(e, t, c, !1, !1) && (o += e.dump, r += o));
|
|
1393
|
+
}
|
|
1394
|
+
e.tag = i, e.dump = "{" + r + "}";
|
|
1395
|
+
}
|
|
1396
|
+
e(F, "writeFlowMapping");
|
|
1397
|
+
function I(e, t, r, i) {
|
|
1398
|
+
let a = "", o = e.tag, s = Object.keys(r);
|
|
1399
|
+
if (e.sortKeys === !0) s.sort();
|
|
1400
|
+
else if (typeof e.sortKeys == "function") s.sort(e.sortKeys);
|
|
1401
|
+
else if (e.sortKeys) throw new n("sortKeys must be a boolean or a function");
|
|
1402
|
+
for (let n = 0, o = s.length; n < o; n += 1) {
|
|
1403
|
+
let o = "";
|
|
1404
|
+
(!i || a !== "") && (o += g(e, t));
|
|
1405
|
+
let c = s[n], l = r[c];
|
|
1406
|
+
if (e.replacer && (l = e.replacer.call(r, c, l)), !R(e, t + 1, c, !0, !0, !0)) continue;
|
|
1407
|
+
let u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024;
|
|
1408
|
+
u && (e.dump && e.dump.charCodeAt(0) === 10 ? o += "?" : o += "? "), o += e.dump, u && (o += g(e, t)), R(e, t + 1, l, !0, u) && (e.dump && e.dump.charCodeAt(0) === 10 ? o += ":" : o += ": ", o += e.dump, a += o);
|
|
1409
|
+
}
|
|
1410
|
+
e.tag = o, e.dump = a || "{}";
|
|
1411
|
+
}
|
|
1412
|
+
e(I, "writeBlockMapping");
|
|
1413
|
+
function L(e, t, r) {
|
|
1414
|
+
let o = r ? e.explicitTypes : e.implicitTypes;
|
|
1415
|
+
for (let s = 0, c = o.length; s < c; s += 1) {
|
|
1416
|
+
let c = o[s];
|
|
1417
|
+
if ((c.instanceOf || c.predicate) && (!c.instanceOf || typeof t == "object" && t instanceof c.instanceOf) && (!c.predicate || c.predicate(t))) {
|
|
1418
|
+
if (r ? c.multi && c.representName ? e.tag = c.representName(t) : e.tag = c.tag : e.tag = "?", c.represent) {
|
|
1419
|
+
let r = e.styleMap[c.tag] || c.defaultStyle, o;
|
|
1420
|
+
if (i.call(c.represent) === "[object Function]") o = c.represent(t, r);
|
|
1421
|
+
else if (a.call(c.represent, r)) o = c.represent[r](t, r);
|
|
1422
|
+
else throw new n("!<" + c.tag + "> tag resolver accepts not \"" + r + "\" style");
|
|
1423
|
+
e.dump = o;
|
|
1424
|
+
}
|
|
1425
|
+
return !0;
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
return !1;
|
|
1429
|
+
}
|
|
1430
|
+
e(L, "detectType");
|
|
1431
|
+
function R(e, t, r, a, o, s, c) {
|
|
1432
|
+
e.tag = null, e.dump = r, L(e, r, !1) || L(e, r, !0);
|
|
1433
|
+
let l = i.call(e.dump), u = a;
|
|
1434
|
+
a &&= e.flowLevel < 0 || e.flowLevel > t;
|
|
1435
|
+
let d = l === "[object Object]" || l === "[object Array]", f, p;
|
|
1436
|
+
if (d && (f = e.duplicates.indexOf(r), p = f !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && t > 0) && (o = !1), p && e.usedDuplicates[f]) e.dump = "*ref_" + f;
|
|
1437
|
+
else {
|
|
1438
|
+
if (d && p && !e.usedDuplicates[f] && (e.usedDuplicates[f] = !0), l === "[object Object]") a && Object.keys(e.dump).length !== 0 ? (I(e, t, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (F(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
|
|
1439
|
+
else if (l === "[object Array]") a && e.dump.length !== 0 ? (e.noArrayIndent && !c && t > 0 ? P(e, t - 1, e.dump, o) : P(e, t, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (N(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
|
|
1440
|
+
else if (l === "[object String]") e.tag !== "?" && D(e, e.dump, t, s, u);
|
|
1441
|
+
else if (l === "[object Undefined]") return !1;
|
|
1442
|
+
else {
|
|
1443
|
+
if (e.skipInvalid) return !1;
|
|
1444
|
+
throw new n("unacceptable kind of an object to dump " + l);
|
|
1445
|
+
}
|
|
1446
|
+
if (e.tag !== null && e.tag !== "?") {
|
|
1447
|
+
let t = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21");
|
|
1448
|
+
t = e.tag[0] === "!" ? "!" + t : t.slice(0, 18) === "tag:yaml.org,2002:" ? "!!" + t.slice(18) : "!<" + t + ">", e.dump = t + " " + e.dump;
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
return !0;
|
|
1452
|
+
}
|
|
1453
|
+
e(R, "writeNode");
|
|
1454
|
+
function z(e, t) {
|
|
1455
|
+
let n = [], r = [];
|
|
1456
|
+
B(e, n, r);
|
|
1457
|
+
let i = r.length;
|
|
1458
|
+
for (let e = 0; e < i; e += 1) t.duplicates.push(n[r[e]]);
|
|
1459
|
+
t.usedDuplicates = Array(i);
|
|
1460
|
+
}
|
|
1461
|
+
e(z, "getDuplicateReferences");
|
|
1462
|
+
function B(e, t, n) {
|
|
1463
|
+
if (typeof e == "object" && e) {
|
|
1464
|
+
let r = t.indexOf(e);
|
|
1465
|
+
if (r !== -1) n.indexOf(r) === -1 && n.push(r);
|
|
1466
|
+
else if (t.push(e), Array.isArray(e)) for (let r = 0, i = e.length; r < i; r += 1) B(e[r], t, n);
|
|
1467
|
+
else {
|
|
1468
|
+
let r = Object.keys(e);
|
|
1469
|
+
for (let i = 0, a = r.length; i < a; i += 1) B(e[r[i]], t, n);
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
e(B, "inspectNode");
|
|
1474
|
+
function V(e, t) {
|
|
1475
|
+
t ||= {};
|
|
1476
|
+
let n = new m(t);
|
|
1477
|
+
n.noRefs || z(e, n);
|
|
1478
|
+
let r = e;
|
|
1479
|
+
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), R(n, 0, r, !0, !0) ? n.dump + "\n" : "";
|
|
1480
|
+
}
|
|
1481
|
+
return e(V, "dump2"), ve.dump = V, ve;
|
|
1482
|
+
}
|
|
1483
|
+
e(be, "requireDumper");
|
|
1484
|
+
var xe;
|
|
1485
|
+
function Se() {
|
|
1486
|
+
if (xe) return n;
|
|
1487
|
+
xe = 1;
|
|
1488
|
+
let t = _e(), r = be();
|
|
1489
|
+
function i(e, t) {
|
|
1490
|
+
return function() {
|
|
1491
|
+
throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
1492
|
+
};
|
|
1493
|
+
}
|
|
1494
|
+
return e(i, "renamed"), n.Type = h(), n.Schema = v(), n.FAILSAFE_SCHEMA = A(), n.JSON_SCHEMA = G(), n.CORE_SCHEMA = K(), n.DEFAULT_SCHEMA = he(), n.load = t.load, n.loadAll = t.loadAll, n.dump = r.dump, n.YAMLException = l(), n.types = {
|
|
1495
|
+
binary: Q(),
|
|
1496
|
+
float: H(),
|
|
1497
|
+
map: D(),
|
|
1498
|
+
null: N(),
|
|
1499
|
+
pairs: le(),
|
|
1500
|
+
set: fe(),
|
|
1501
|
+
timestamp: J(),
|
|
1502
|
+
bool: I(),
|
|
1503
|
+
int: z(),
|
|
1504
|
+
merge: X(),
|
|
1505
|
+
omap: oe(),
|
|
1506
|
+
seq: w(),
|
|
1507
|
+
str: x()
|
|
1508
|
+
}, n.safeLoad = i("safeLoad", "load"), n.safeLoadAll = i("safeLoadAll", "loadAll"), n.safeDump = i("safeDump", "dump"), n;
|
|
1509
|
+
}
|
|
1510
|
+
e(Se, "requireJsYaml");
|
|
1511
|
+
var { Type: Ce, Schema: we, FAILSAFE_SCHEMA: Te, JSON_SCHEMA: Ee, CORE_SCHEMA: De, DEFAULT_SCHEMA: Oe, load: ke, loadAll: Ae, dump: je, YAMLException: Me, types: Ne, safeLoad: Pe, safeLoadAll: Fe, safeDump: Ie } = /* @__PURE__ */ t(Se());
|
|
1512
|
+
//#endregion
|
|
1513
|
+
export { ke as n, Ee as t };
|