@sisense/sdk-ui 1.29.0 → 1.31.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.
Files changed (85) hide show
  1. package/dist/ai.cjs +53 -51
  2. package/dist/ai.js +1049 -1005
  3. package/dist/analytics-composer.cjs +37 -37
  4. package/dist/analytics-composer.js +460 -461
  5. package/dist/{derive-chart-family-Cy3hlluo.js → derive-chart-family-D3iN--j2.js} +2078 -2028
  6. package/dist/{derive-chart-family-DWCXp57c.cjs → derive-chart-family-Tt7cIUck.cjs} +46 -46
  7. package/dist/index.cjs +120 -97
  8. package/dist/index.js +8073 -7197
  9. package/dist/packages/sdk-ui/src/ai/ai-context-provider.d.ts +2 -1
  10. package/dist/packages/sdk-ui/src/ai/api/chat-api-provider.d.ts +2 -1
  11. package/dist/packages/sdk-ui/src/ai/api/chat-rest-api.d.ts +5 -3
  12. package/dist/packages/sdk-ui/src/ai/api/hooks.d.ts +2 -2
  13. package/dist/packages/sdk-ui/src/ai/api/types.d.ts +11 -1
  14. package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +3 -2
  15. package/dist/packages/sdk-ui/src/ai/chat-box.d.ts +3 -1
  16. package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +7 -1
  17. package/dist/packages/sdk-ui/src/ai/chat-id-storage-provider.d.ts +12 -0
  18. package/dist/packages/sdk-ui/src/ai/use-chat-session.d.ts +4 -3
  19. package/dist/packages/sdk-ui/src/ai/use-get-chat.d.ts +6 -0
  20. package/dist/packages/sdk-ui/src/ai/use-get-nlg-insights.d.ts +2 -0
  21. package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +1 -1
  22. package/dist/packages/sdk-ui/src/ai/use-last-nlq-response.d.ts +4 -2
  23. package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +13 -6
  24. package/dist/packages/sdk-ui/src/chart-data/chart-data-service.d.ts +1 -13
  25. package/dist/packages/sdk-ui/src/chart-data-options/coloring/range-coloring.d.ts +12 -0
  26. package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +5 -1
  27. package/dist/packages/sdk-ui/src/chart-options-processor/advanced-chart-options.d.ts +3 -4
  28. package/dist/packages/sdk-ui/src/common/components/popper.d.ts +9 -0
  29. package/dist/packages/sdk-ui/src/common/components/radio.d.ts +1 -1
  30. package/dist/packages/sdk-ui/src/common/hooks/use-debounced-value.d.ts +5 -0
  31. package/dist/packages/sdk-ui/src/common/hooks/use-was-modified.d.ts +5 -0
  32. package/dist/packages/sdk-ui/src/const.d.ts +3 -0
  33. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +23 -23
  34. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +4 -5
  35. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/index.d.ts +2 -1
  36. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/types.d.ts +7 -0
  37. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/input.d.ts +9 -3
  38. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/scroll-wrapper.d.ts +13 -0
  39. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/base.d.ts +7 -0
  40. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/multi-select-item.d.ts +2 -0
  41. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-multi-select.d.ts +5 -0
  42. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/searchable-single-select.d.ts +5 -0
  43. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select-item.d.ts +2 -0
  44. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/single-select.d.ts +2 -0
  45. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/select/types.d.ts +2 -0
  46. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/selectable-section.d.ts +2 -3
  47. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/common/small-loader.d.ts +1 -0
  48. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/constants.d.ts +2 -0
  49. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-container.d.ts +5 -0
  50. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-numerical.d.ts +8 -0
  51. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/filter-editor-textual.d.ts +8 -0
  52. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/hooks/use-get-attribute-stats.d.ts +28 -0
  53. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/members-section.d.ts +5 -1
  54. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-condition-section/index.d.ts +1 -0
  55. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-condition-section/numeric-condition-section.d.ts +15 -0
  56. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-condition-section/types.d.ts +16 -0
  57. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-condition-section/utils.d.ts +7 -0
  58. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/numeric-range-section.d.ts +11 -0
  59. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/text-condition-section.d.ts +6 -2
  60. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/sections/utils.d.ts +4 -0
  61. package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +1 -0
  62. package/dist/packages/sdk-ui/src/filters/components/icons/equal-icon.d.ts +2 -0
  63. package/dist/packages/sdk-ui/src/filters/components/icons/greater-than-icon.d.ts +2 -0
  64. package/dist/packages/sdk-ui/src/filters/components/icons/greater-than-or-equal-icon.d.ts +2 -0
  65. package/dist/packages/sdk-ui/src/filters/components/icons/index.d.ts +6 -0
  66. package/dist/packages/sdk-ui/src/filters/components/icons/not-equal-icon.d.ts +2 -0
  67. package/dist/packages/sdk-ui/src/filters/components/icons/pencil-icon.d.ts +3 -1
  68. package/dist/packages/sdk-ui/src/filters/components/icons/smaller-than-icon.d.ts +2 -0
  69. package/dist/packages/sdk-ui/src/filters/components/icons/smaller-than-or-equal-icon.d.ts +2 -0
  70. package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +21 -1
  71. package/dist/packages/sdk-ui/src/index-typedoc.d.ts +28 -0
  72. package/dist/packages/sdk-ui/src/pivot-table/formatters/data-cell-formatters/data-cell-color-formatter.d.ts +4 -0
  73. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-builder.d.ts +7 -0
  74. package/dist/packages/sdk-ui/src/query-execution/types.d.ts +10 -1
  75. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +15 -0
  76. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +30 -0
  77. package/dist/packages/sdk-ui/src/types.d.ts +10 -0
  78. package/dist/packages/sdk-ui/src/utils/is-numeric-string.d.ts +10 -0
  79. package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +1 -0
  80. package/dist/{useQuery-CdtycPOg.js → use-common-filters-CHBXz5rL.js} +17543 -17520
  81. package/dist/{useQuery-CRu7WcYd.cjs → use-common-filters-Dd-gOMfB.cjs} +170 -170
  82. package/dist/widget-composer-BHf4pbvI.cjs +311 -0
  83. package/dist/{widget-composer-G4mPX-JO.js → widget-composer-BrQ6SrZ6.js} +221 -203
  84. package/package.json +8 -7
  85. package/dist/widget-composer-DyY3yi_b.cjs +0 -300
@@ -1,27 +1,27 @@
1
- var xs = Object.defineProperty, zs = Object.defineProperties;
2
- var Xs = Object.getOwnPropertyDescriptors;
3
- var _e = Object.getOwnPropertySymbols;
1
+ var xs = Object.defineProperty, Xs = Object.defineProperties;
2
+ var Zs = Object.getOwnPropertyDescriptors;
3
+ var Me = Object.getOwnPropertySymbols;
4
4
  var Dt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable;
5
- var it = (s, e) => (e = Symbol[s]) ? e : Symbol.for("Symbol." + s);
6
- var rt = (s, e, t) => e in s ? xs(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, R = (s, e) => {
5
+ var rt = (s, e) => (e = Symbol[s]) ? e : Symbol.for("Symbol." + s);
6
+ var ot = (s, e, t) => e in s ? xs(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, R = (s, e) => {
7
7
  for (var t in e || (e = {}))
8
- Dt.call(e, t) && rt(s, t, e[t]);
9
- if (_e)
10
- for (var t of _e(e))
11
- Kt.call(e, t) && rt(s, t, e[t]);
8
+ Dt.call(e, t) && ot(s, t, e[t]);
9
+ if (Me)
10
+ for (var t of Me(e))
11
+ Kt.call(e, t) && ot(s, t, e[t]);
12
12
  return s;
13
- }, G = (s, e) => zs(s, Xs(e));
13
+ }, G = (s, e) => Xs(s, Zs(e));
14
14
  var qt = (s, e) => {
15
15
  var t = {};
16
16
  for (var n in s)
17
17
  Dt.call(s, n) && e.indexOf(n) < 0 && (t[n] = s[n]);
18
- if (s != null && _e)
19
- for (var n of _e(s))
18
+ if (s != null && Me)
19
+ for (var n of Me(s))
20
20
  e.indexOf(n) < 0 && Kt.call(s, n) && (t[n] = s[n]);
21
21
  return t;
22
22
  };
23
- var ot = (s, e, t) => (rt(s, typeof e != "symbol" ? e + "" : e, t), t);
24
- var lt = (s, e, t) => new Promise((n, i) => {
23
+ var lt = (s, e, t) => (ot(s, typeof e != "symbol" ? e + "" : e, t), t);
24
+ var at = (s, e, t) => new Promise((n, i) => {
25
25
  var r = (a) => {
26
26
  try {
27
27
  l(t.next(a));
@@ -36,12 +36,12 @@ var lt = (s, e, t) => new Promise((n, i) => {
36
36
  }
37
37
  }, l = (a) => a.done ? n(a.value) : Promise.resolve(a.value).then(r, o);
38
38
  l((t = t.apply(s, e)).next());
39
- }), Zs = function(s, e) {
39
+ }), en = function(s, e) {
40
40
  this[0] = s, this[1] = e;
41
41
  };
42
42
  var d = (s) => {
43
- var e = s[it("asyncIterator")], t = !1, n, i = {};
44
- return e == null ? (e = s[it("iterator")](), n = (r) => i[r] = (o) => e[r](o)) : (e = e.call(s), n = (r) => i[r] = (o) => {
43
+ var e = s[rt("asyncIterator")], t = !1, n, i = {};
44
+ return e == null ? (e = s[rt("iterator")](), n = (r) => i[r] = (o) => e[r](o)) : (e = e.call(s), n = (r) => i[r] = (o) => {
45
45
  if (t) {
46
46
  if (t = !1, r === "throw")
47
47
  throw o;
@@ -49,21 +49,21 @@ var d = (s) => {
49
49
  }
50
50
  return t = !0, {
51
51
  done: !1,
52
- value: new Zs(new Promise((l) => {
52
+ value: new en(new Promise((l) => {
53
53
  var a = e[r](o);
54
54
  if (!(a instanceof Object))
55
55
  throw TypeError("Object expected");
56
56
  l(a);
57
57
  }), 1)
58
58
  };
59
- }), i[it("iterator")] = () => i, n("next"), "throw" in e ? n("throw") : i.throw = (r) => {
59
+ }), i[rt("iterator")] = () => i, n("next"), "throw" in e ? n("throw") : i.throw = (r) => {
60
60
  throw r;
61
61
  }, "return" in e && n("return"), i;
62
62
  };
63
- import { s as en, E as Ft, c as tn, p as sn, v as nn, a as es, b as at, d as rn, e as ts, g as ss, f as ns } from "./widget-composer-G4mPX-JO.js";
64
- import { h as ji, j as Pi, i as Di, w as Ki } from "./widget-composer-G4mPX-JO.js";
65
- import { ad as on, aT as Rt, cm as ln, cE as an } from "./derive-chart-family-Cy3hlluo.js";
66
- const Nt = Symbol.for("yaml.alias"), yt = Symbol.for("yaml.document"), W = Symbol.for("yaml.map"), is = Symbol.for("yaml.pair"), Y = Symbol.for("yaml.scalar"), me = Symbol.for("yaml.seq"), F = Symbol.for("yaml.node.type"), ne = (s) => !!s && typeof s == "object" && s[F] === Nt, ye = (s) => !!s && typeof s == "object" && s[F] === yt, ge = (s) => !!s && typeof s == "object" && s[F] === W, E = (s) => !!s && typeof s == "object" && s[F] === is, A = (s) => !!s && typeof s == "object" && s[F] === Y, be = (s) => !!s && typeof s == "object" && s[F] === me;
63
+ import { s as tn, E as Ft, c as sn, p as nn, v as rn, a as es, b as ts, d as Te, e as ss, f as ns, g as is } from "./widget-composer-BrQ6SrZ6.js";
64
+ import { h as Pi, j as Di, i as Ki, w as qi } from "./widget-composer-BrQ6SrZ6.js";
65
+ import { ae as on, a4 as ln, aW as Rt, cj as an, cL as cn } from "./derive-chart-family-D3iN--j2.js";
66
+ const Nt = Symbol.for("yaml.alias"), yt = Symbol.for("yaml.document"), W = Symbol.for("yaml.map"), rs = Symbol.for("yaml.pair"), Y = Symbol.for("yaml.scalar"), me = Symbol.for("yaml.seq"), F = Symbol.for("yaml.node.type"), ne = (s) => !!s && typeof s == "object" && s[F] === Nt, ye = (s) => !!s && typeof s == "object" && s[F] === yt, ge = (s) => !!s && typeof s == "object" && s[F] === W, E = (s) => !!s && typeof s == "object" && s[F] === rs, A = (s) => !!s && typeof s == "object" && s[F] === Y, be = (s) => !!s && typeof s == "object" && s[F] === me;
67
67
  function $(s) {
68
68
  if (s && typeof s == "object")
69
69
  switch (s[F]) {
@@ -84,18 +84,18 @@ function M(s) {
84
84
  }
85
85
  return !1;
86
86
  }
87
- const cn = (s) => (A(s) || $(s)) && !!s.anchor, D = Symbol("break visit"), rs = Symbol("skip children"), J = Symbol("remove node");
87
+ const fn = (s) => (A(s) || $(s)) && !!s.anchor, D = Symbol("break visit"), os = Symbol("skip children"), J = Symbol("remove node");
88
88
  function H(s, e) {
89
- const t = os(e);
89
+ const t = ls(e);
90
90
  ye(s) ? le(null, s.contents, t, Object.freeze([s])) === J && (s.contents = null) : le(null, s, t, Object.freeze([]));
91
91
  }
92
92
  H.BREAK = D;
93
- H.SKIP = rs;
93
+ H.SKIP = os;
94
94
  H.REMOVE = J;
95
95
  function le(s, e, t, n) {
96
- const i = ls(s, e, t, n);
96
+ const i = as(s, e, t, n);
97
97
  if (M(i) || E(i))
98
- return as(s, n, i), le(s, i, t, n);
98
+ return cs(s, n, i), le(s, i, t, n);
99
99
  if (typeof i != "symbol") {
100
100
  if ($(e)) {
101
101
  n = Object.freeze(n.concat(e));
@@ -123,20 +123,20 @@ function le(s, e, t, n) {
123
123
  }
124
124
  return i;
125
125
  }
126
- function Je(s, e) {
127
- return lt(this, null, function* () {
128
- const t = os(e);
126
+ function Qe(s, e) {
127
+ return at(this, null, function* () {
128
+ const t = ls(e);
129
129
  ye(s) ? (yield ae(null, s.contents, t, Object.freeze([s]))) === J && (s.contents = null) : yield ae(null, s, t, Object.freeze([]));
130
130
  });
131
131
  }
132
- Je.BREAK = D;
133
- Je.SKIP = rs;
134
- Je.REMOVE = J;
132
+ Qe.BREAK = D;
133
+ Qe.SKIP = os;
134
+ Qe.REMOVE = J;
135
135
  function ae(s, e, t, n) {
136
- return lt(this, null, function* () {
137
- const i = yield ls(s, e, t, n);
136
+ return at(this, null, function* () {
137
+ const i = yield as(s, e, t, n);
138
138
  if (M(i) || E(i))
139
- return as(s, n, i), ae(s, i, t, n);
139
+ return cs(s, n, i), ae(s, i, t, n);
140
140
  if (typeof i != "symbol") {
141
141
  if ($(e)) {
142
142
  n = Object.freeze(n.concat(e));
@@ -165,7 +165,7 @@ function ae(s, e, t, n) {
165
165
  return i;
166
166
  });
167
167
  }
168
- function os(s) {
168
+ function ls(s) {
169
169
  return typeof s == "object" && (s.Collection || s.Node || s.Value) ? Object.assign({
170
170
  Alias: s.Node,
171
171
  Map: s.Node,
@@ -180,7 +180,7 @@ function os(s) {
180
180
  Seq: s.Collection
181
181
  }, s) : s;
182
182
  }
183
- function ls(s, e, t, n) {
183
+ function as(s, e, t, n) {
184
184
  var i, r, o, l, a;
185
185
  if (typeof t == "function")
186
186
  return t(s, e, n);
@@ -195,7 +195,7 @@ function ls(s, e, t, n) {
195
195
  if (ne(e))
196
196
  return (a = t.Alias) == null ? void 0 : a.call(t, s, e, n);
197
197
  }
198
- function as(s, e, t) {
198
+ function cs(s, e, t) {
199
199
  const n = e[e.length - 1];
200
200
  if ($(n))
201
201
  n.items[s] = t;
@@ -208,14 +208,14 @@ function as(s, e, t) {
208
208
  throw new Error(`Cannot replace node with ${i} parent`);
209
209
  }
210
210
  }
211
- const fn = {
211
+ const un = {
212
212
  "!": "%21",
213
213
  ",": "%2C",
214
214
  "[": "%5B",
215
215
  "]": "%5D",
216
216
  "{": "%7B",
217
217
  "}": "%7D"
218
- }, un = (s) => s.replace(/[!,[\]{}]/g, (e) => fn[e]);
218
+ }, hn = (s) => s.replace(/[!,[\]{}]/g, (e) => un[e]);
219
219
  class P {
220
220
  constructor(e, t) {
221
221
  this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, P.defaultYaml, e), this.tags = Object.assign({}, P.defaultTags, t);
@@ -305,7 +305,7 @@ class P {
305
305
  tagString(e) {
306
306
  for (const [t, n] of Object.entries(this.tags))
307
307
  if (e.startsWith(n))
308
- return t + un(e.substring(n.length));
308
+ return t + hn(e.substring(n.length));
309
309
  return e[0] === "!" ? e : `!<${e}>`;
310
310
  }
311
311
  toString(e) {
@@ -326,14 +326,14 @@ class P {
326
326
  }
327
327
  P.defaultYaml = { explicit: !1, version: "1.2" };
328
328
  P.defaultTags = { "!!": "tag:yaml.org,2002:" };
329
- function cs(s) {
329
+ function fs(s) {
330
330
  if (/[\x00-\x19\s,[\]{}]/.test(s)) {
331
331
  const t = `Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;
332
332
  throw new Error(t);
333
333
  }
334
334
  return !0;
335
335
  }
336
- function fs(s) {
336
+ function us(s) {
337
337
  const e = /* @__PURE__ */ new Set();
338
338
  return H(s, {
339
339
  Value(t, n) {
@@ -341,20 +341,20 @@ function fs(s) {
341
341
  }
342
342
  }), e;
343
343
  }
344
- function us(s, e) {
344
+ function hs(s, e) {
345
345
  for (let t = 1; ; ++t) {
346
346
  const n = `${s}${t}`;
347
347
  if (!e.has(n))
348
348
  return n;
349
349
  }
350
350
  }
351
- function hn(s, e) {
351
+ function dn(s, e) {
352
352
  const t = [], n = /* @__PURE__ */ new Map();
353
353
  let i = null;
354
354
  return {
355
355
  onAnchor: (r) => {
356
- t.push(r), i || (i = fs(s));
357
- const o = us(e, i);
356
+ t.push(r), i || (i = us(s));
357
+ const o = hs(e, i);
358
358
  return i.add(o), o;
359
359
  },
360
360
  /**
@@ -404,7 +404,7 @@ function q(s, e, t) {
404
404
  if (Array.isArray(s))
405
405
  return s.map((n, i) => q(n, String(i), t));
406
406
  if (s && typeof s.toJSON == "function") {
407
- if (!t || !cn(s))
407
+ if (!t || !fn(s))
408
408
  return s.toJSON(e, t);
409
409
  const n = { aliasCount: 0, count: 1, res: void 0 };
410
410
  t.anchors.set(s, n), t.onCreate = (r) => {
@@ -442,7 +442,7 @@ class Ot {
442
442
  return typeof r == "function" ? ce(r, { "": l }, "", l) : l;
443
443
  }
444
444
  }
445
- class Qe extends Ot {
445
+ class Ye extends Ot {
446
446
  constructor(e) {
447
447
  super(Nt), this.source = e, Object.defineProperty(this, "tag", {
448
448
  set() {
@@ -477,7 +477,7 @@ class Qe extends Ot {
477
477
  const a = "This should not happen: Alias anchor was not resolved?";
478
478
  throw new ReferenceError(a);
479
479
  }
480
- if (r >= 0 && (l.count += 1, l.aliasCount === 0 && (l.aliasCount = Pe(i, o, n)), l.count * l.aliasCount > r)) {
480
+ if (r >= 0 && (l.count += 1, l.aliasCount === 0 && (l.aliasCount = De(i, o, n)), l.count * l.aliasCount > r)) {
481
481
  const a = "Excessive alias count indicates a resource exhaustion attack";
482
482
  throw new ReferenceError(a);
483
483
  }
@@ -486,7 +486,7 @@ class Qe extends Ot {
486
486
  toString(e, t, n) {
487
487
  const i = `*${this.source}`;
488
488
  if (e) {
489
- if (cs(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
489
+ if (fs(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
490
490
  const r = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
491
491
  throw new Error(r);
492
492
  }
@@ -496,24 +496,24 @@ class Qe extends Ot {
496
496
  return i;
497
497
  }
498
498
  }
499
- function Pe(s, e, t) {
499
+ function De(s, e, t) {
500
500
  if (ne(e)) {
501
501
  const n = e.resolve(s), i = t && n && t.get(n);
502
502
  return i ? i.count * i.aliasCount : 0;
503
503
  } else if ($(e)) {
504
504
  let n = 0;
505
505
  for (const i of e.items) {
506
- const r = Pe(s, i, t);
506
+ const r = De(s, i, t);
507
507
  r > n && (n = r);
508
508
  }
509
509
  return n;
510
510
  } else if (E(e)) {
511
- const n = Pe(s, e.key, t), i = Pe(s, e.value, t);
511
+ const n = De(s, e.key, t), i = De(s, e.value, t);
512
512
  return Math.max(n, i);
513
513
  }
514
514
  return 1;
515
515
  }
516
- const hs = (s) => !s || typeof s != "function" && typeof s != "object";
516
+ const ds = (s) => !s || typeof s != "function" && typeof s != "object";
517
517
  class N extends Ot {
518
518
  constructor(e) {
519
519
  super(Y), this.value = e;
@@ -530,8 +530,8 @@ N.BLOCK_LITERAL = "BLOCK_LITERAL";
530
530
  N.PLAIN = "PLAIN";
531
531
  N.QUOTE_DOUBLE = "QUOTE_DOUBLE";
532
532
  N.QUOTE_SINGLE = "QUOTE_SINGLE";
533
- const dn = "tag:yaml.org,2002:";
534
- function pn(s, e, t) {
533
+ const pn = "tag:yaml.org,2002:";
534
+ function mn(s, e, t) {
535
535
  var n;
536
536
  if (e) {
537
537
  const i = t.filter((o) => o.tag === e), r = (n = i.find((o) => !o.format)) != null ? n : i[0];
@@ -544,7 +544,7 @@ function pn(s, e, t) {
544
544
  return ((r = i.identify) == null ? void 0 : r.call(i, s)) && !i.format;
545
545
  });
546
546
  }
547
- function Ie(s, e, t) {
547
+ function Ae(s, e, t) {
548
548
  var f, p, m;
549
549
  if (ye(s) && (s = s.contents), M(s))
550
550
  return s;
@@ -557,11 +557,11 @@ function Ie(s, e, t) {
557
557
  let a;
558
558
  if (n && s && typeof s == "object") {
559
559
  if (a = l.get(s), a)
560
- return a.anchor || (a.anchor = i(s)), new Qe(a.anchor);
560
+ return a.anchor || (a.anchor = i(s)), new Ye(a.anchor);
561
561
  a = { anchor: null, node: null }, l.set(s, a);
562
562
  }
563
- e != null && e.startsWith("!!") && (e = dn + e.slice(2));
564
- let c = pn(s, e, o.tags);
563
+ e != null && e.startsWith("!!") && (e = pn + e.slice(2));
564
+ let c = mn(s, e, o.tags);
565
565
  if (!c) {
566
566
  if (s && typeof s.toJSON == "function" && (s = s.toJSON()), !s || typeof s != "object") {
567
567
  const y = new N(s);
@@ -573,7 +573,7 @@ function Ie(s, e, t) {
573
573
  const h = c != null && c.createNode ? c.createNode(t.schema, s, t) : typeof ((m = c == null ? void 0 : c.nodeClass) == null ? void 0 : m.from) == "function" ? c.nodeClass.from(t.schema, s, t) : new N(s);
574
574
  return e ? h.tag = e : c.default || (h.tag = c.tag), a && (a.node = h), h;
575
575
  }
576
- function Fe(s, e, t) {
576
+ function Re(s, e, t) {
577
577
  let n = t;
578
578
  for (let i = e.length - 1; i >= 0; --i) {
579
579
  const r = e[i];
@@ -583,7 +583,7 @@ function Fe(s, e, t) {
583
583
  } else
584
584
  n = /* @__PURE__ */ new Map([[r, n]]);
585
585
  }
586
- return Ie(n, void 0, {
586
+ return Ae(n, void 0, {
587
587
  aliasDuplicateObjects: !1,
588
588
  keepUndefined: !1,
589
589
  onAnchor: () => {
@@ -594,7 +594,7 @@ function Fe(s, e, t) {
594
594
  });
595
595
  }
596
596
  const Oe = (s) => s == null || typeof s == "object" && !!s[Symbol.iterator]().next().done;
597
- class ds extends Ot {
597
+ class ps extends Ot {
598
598
  constructor(e, t) {
599
599
  super(e), Object.defineProperty(this, "schema", {
600
600
  value: t,
@@ -625,7 +625,7 @@ class ds extends Ot {
625
625
  if ($(r))
626
626
  r.addIn(i, t);
627
627
  else if (r === void 0 && this.schema)
628
- this.set(n, Fe(this.schema, i, t));
628
+ this.set(n, Re(this.schema, i, t));
629
629
  else
630
630
  throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`);
631
631
  }
@@ -683,21 +683,21 @@ class ds extends Ot {
683
683
  if ($(r))
684
684
  r.setIn(i, t);
685
685
  else if (r === void 0 && this.schema)
686
- this.set(n, Fe(this.schema, i, t));
686
+ this.set(n, Re(this.schema, i, t));
687
687
  else
688
688
  throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`);
689
689
  }
690
690
  }
691
691
  }
692
- const mn = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
692
+ const yn = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
693
693
  function Q(s, e) {
694
694
  return /^\n+$/.test(s) ? s.substring(1) : e ? s.replace(/^(?! *$)/gm, e) : s;
695
695
  }
696
696
  const Z = (s, e, t) => s.endsWith(`
697
697
  `) ? Q(t, e) : t.includes(`
698
698
  `) ? `
699
- ` + Q(t, e) : (s.endsWith(" ") ? "" : " ") + t, ps = "flow", gt = "block", De = "quoted";
700
- function Ye(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: l } = {}) {
699
+ ` + Q(t, e) : (s.endsWith(" ") ? "" : " ") + t, ms = "flow", gt = "block", Ke = "quoted";
700
+ function Ge(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: l } = {}) {
701
701
  if (!i || i < 0)
702
702
  return s;
703
703
  i < r && (r = 0);
@@ -710,7 +710,7 @@ function Ye(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
710
710
  let p, m, y = !1, u = -1, g = -1, b = -1;
711
711
  t === gt && (u = Ut(s, u, e.length), u !== -1 && (f = u + a));
712
712
  for (let I; I = s[u += 1]; ) {
713
- if (t === De && I === "\\") {
713
+ if (t === Ke && I === "\\") {
714
714
  switch (g = u, s[u + 1]) {
715
715
  case "x":
716
716
  u += 3;
@@ -739,7 +739,7 @@ function Ye(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
739
739
  if (u >= f)
740
740
  if (p)
741
741
  c.push(p), f = p + a, p = void 0;
742
- else if (t === De) {
742
+ else if (t === Ke) {
743
743
  for (; m === " " || m === " "; )
744
744
  m = I, I = s[u += 1], y = !0;
745
745
  const k = u > b + 1 ? u - 2 : g - 1;
@@ -758,7 +758,7 @@ function Ye(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
758
758
  for (let I = 0; I < c.length; ++I) {
759
759
  const k = c[I], O = c[I + 1] || s.length;
760
760
  k === 0 ? S = `
761
- ${e}${s.slice(0, O)}` : (t === De && h[k] && (S += `${s[k]}\\`), S += `
761
+ ${e}${s.slice(0, O)}` : (t === Ke && h[k] && (S += `${s[k]}\\`), S += `
762
762
  ${e}${s.slice(k + 1, O)}`);
763
763
  }
764
764
  return S;
@@ -777,12 +777,12 @@ function Ut(s, e, t) {
777
777
  }
778
778
  return n;
779
779
  }
780
- const Ge = (s, e) => ({
780
+ const We = (s, e) => ({
781
781
  indentAtStart: e ? s.indent.length : s.indentAtStart,
782
782
  lineWidth: s.options.lineWidth,
783
783
  minContentWidth: s.options.minContentWidth
784
- }), We = (s) => /^(%|---|\.\.\.)/m.test(s);
785
- function yn(s, e, t) {
784
+ }), He = (s) => /^(%|---|\.\.\.)/m.test(s);
785
+ function gn(s, e, t) {
786
786
  if (!e || e < 0)
787
787
  return !1;
788
788
  const n = e - t, i = s.length;
@@ -798,11 +798,11 @@ function yn(s, e, t) {
798
798
  }
799
799
  return !0;
800
800
  }
801
- function Te(s, e) {
801
+ function Ie(s, e) {
802
802
  const t = JSON.stringify(s);
803
803
  if (e.options.doubleQuotedAsJSON)
804
804
  return t;
805
- const { implicitKey: n } = e, i = e.options.doubleQuotedMinMultiLineLength, r = e.indent || (We(s) ? " " : "");
805
+ const { implicitKey: n } = e, i = e.options.doubleQuotedMinMultiLineLength, r = e.indent || (He(s) ? " " : "");
806
806
  let o = "", l = 0;
807
807
  for (let a = 0, c = t[a]; c; c = t[++a])
808
808
  if (c === " " && t[a + 1] === "\\" && t[a + 2] === "n" && (o += t.slice(l, a) + "\\ ", a += 1, l = a, c = "\\"), c === "\\")
@@ -857,24 +857,24 @@ function Te(s, e) {
857
857
  default:
858
858
  a += 1;
859
859
  }
860
- return o = l ? o + t.slice(l) : t, n ? o : Ye(o, r, De, Ge(e, !1));
860
+ return o = l ? o + t.slice(l) : t, n ? o : Ge(o, r, Ke, We(e, !1));
861
861
  }
862
862
  function bt(s, e) {
863
863
  if (e.options.singleQuote === !1 || e.implicitKey && s.includes(`
864
864
  `) || /[ \t]\n|\n[ \t]/.test(s))
865
- return Te(s, e);
866
- const t = e.indent || (We(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
865
+ return Ie(s, e);
866
+ const t = e.indent || (He(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
867
867
  ${t}`) + "'";
868
- return e.implicitKey ? n : Ye(n, t, ps, Ge(e, !1));
868
+ return e.implicitKey ? n : Ge(n, t, ms, We(e, !1));
869
869
  }
870
870
  function fe(s, e) {
871
871
  const { singleQuote: t } = e.options;
872
872
  let n;
873
873
  if (t === !1)
874
- n = Te;
874
+ n = Ie;
875
875
  else {
876
876
  const i = s.includes('"'), r = s.includes("'");
877
- i && !r ? n = bt : r && !i ? n = Te : n = t ? bt : Te;
877
+ i && !r ? n = bt : r && !i ? n = Ie : n = t ? bt : Ie;
878
878
  }
879
879
  return n(s, e);
880
880
  }
@@ -887,11 +887,11 @@ try {
887
887
  } catch (s) {
888
888
  wt = /\n+(?!\n|$)/g;
889
889
  }
890
- function Ke({ comment: s, type: e, value: t }, n, i, r) {
890
+ function qe({ comment: s, type: e, value: t }, n, i, r) {
891
891
  const { blockQuote: o, commentString: l, lineWidth: a } = n.options;
892
892
  if (!o || /\n[\t ]+$/.test(t) || /^\s*$/.test(t))
893
893
  return fe(t, n);
894
- const c = n.indent || (n.forceBlockIndent || We(t) ? " " : ""), h = o === "literal" ? !0 : o === "folded" || e === N.BLOCK_FOLDED ? !1 : e === N.BLOCK_LITERAL ? !0 : !yn(t, a, c.length);
894
+ const c = n.indent || (n.forceBlockIndent || He(t) ? " " : ""), h = o === "literal" ? !0 : o === "folded" || e === N.BLOCK_FOLDED ? !1 : e === N.BLOCK_LITERAL ? !0 : !gn(t, a, c.length);
895
895
  if (!t)
896
896
  return h ? `|
897
897
  ` : `>
@@ -927,24 +927,24 @@ function Ke({ comment: s, type: e, value: t }, n, i, r) {
927
927
  ${c}${S}${t}${m}`;
928
928
  t = t.replace(/\n+/g, `
929
929
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
930
- const O = Ye(`${S}${t}${m}`, c, gt, Ge(n, !0));
930
+ const O = Ge(`${S}${t}${m}`, c, gt, We(n, !0));
931
931
  return `${k}
932
932
  ${c}${O}`;
933
933
  }
934
- function gn(s, e, t, n) {
934
+ function bn(s, e, t, n) {
935
935
  const { type: i, value: r } = s, { actualString: o, implicitKey: l, indent: a, indentStep: c, inFlow: h } = e;
936
936
  if (l && r.includes(`
937
937
  `) || h && /[[\]{},]/.test(r))
938
938
  return fe(r, e);
939
939
  if (!r || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))
940
940
  return l || h || !r.includes(`
941
- `) ? fe(r, e) : Ke(s, e, t, n);
941
+ `) ? fe(r, e) : qe(s, e, t, n);
942
942
  if (!l && !h && i !== N.PLAIN && r.includes(`
943
943
  `))
944
- return Ke(s, e, t, n);
945
- if (We(r)) {
944
+ return qe(s, e, t, n);
945
+ if (He(r)) {
946
946
  if (a === "")
947
- return e.forceBlockIndent = !0, Ke(s, e, t, n);
947
+ return e.forceBlockIndent = !0, qe(s, e, t, n);
948
948
  if (l && a === c)
949
949
  return fe(r, e);
950
950
  }
@@ -958,9 +958,9 @@ ${a}`);
958
958
  if (y.some(p) || m != null && m.some(p))
959
959
  return fe(r, e);
960
960
  }
961
- return l ? f : Ye(f, a, ps, Ge(e, !1));
961
+ return l ? f : Ge(f, a, ms, We(e, !1));
962
962
  }
963
- function Le(s, e, t, n) {
963
+ function $e(s, e, t, n) {
964
964
  const { implicitKey: i, inFlow: r } = e, o = typeof s.value == "string" ? s : Object.assign({}, s, { value: String(s.value) });
965
965
  let { type: l } = s;
966
966
  l !== N.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (l = N.QUOTE_DOUBLE);
@@ -968,13 +968,13 @@ function Le(s, e, t, n) {
968
968
  switch (h) {
969
969
  case N.BLOCK_FOLDED:
970
970
  case N.BLOCK_LITERAL:
971
- return i || r ? fe(o.value, e) : Ke(o, e, t, n);
971
+ return i || r ? fe(o.value, e) : qe(o, e, t, n);
972
972
  case N.QUOTE_DOUBLE:
973
- return Te(o.value, e);
973
+ return Ie(o.value, e);
974
974
  case N.QUOTE_SINGLE:
975
975
  return bt(o.value, e);
976
976
  case N.PLAIN:
977
- return gn(o, e, t, n);
977
+ return bn(o, e, t, n);
978
978
  default:
979
979
  return null;
980
980
  }
@@ -987,10 +987,10 @@ function Le(s, e, t, n) {
987
987
  }
988
988
  return c;
989
989
  }
990
- function ms(s, e) {
990
+ function ys(s, e) {
991
991
  const t = Object.assign({
992
992
  blockQuote: !0,
993
- commentString: mn,
993
+ commentString: yn,
994
994
  defaultKeyType: null,
995
995
  defaultStringType: "PLAIN",
996
996
  directives: null,
@@ -1028,7 +1028,7 @@ function ms(s, e) {
1028
1028
  options: t
1029
1029
  };
1030
1030
  }
1031
- function bn(s, e) {
1031
+ function wn(s, e) {
1032
1032
  var i, r, o, l;
1033
1033
  if (e.tag) {
1034
1034
  const a = s.filter((c) => c.tag === e.tag);
@@ -1051,11 +1051,11 @@ function bn(s, e) {
1051
1051
  }
1052
1052
  return t;
1053
1053
  }
1054
- function wn(s, e, { anchors: t, doc: n }) {
1054
+ function Sn(s, e, { anchors: t, doc: n }) {
1055
1055
  if (!n.directives)
1056
1056
  return "";
1057
1057
  const i = [], r = (A(s) || $(s)) && s.anchor;
1058
- r && cs(r) && (t.add(r), i.push(`&${r}`));
1058
+ r && fs(r) && (t.add(r), i.push(`&${r}`));
1059
1059
  const o = s.tag ? s.tag : e.default ? null : e.tag;
1060
1060
  return o && i.push(n.directives.tagString(o)), i.join(" ");
1061
1061
  }
@@ -1072,14 +1072,14 @@ function de(s, e, t, n) {
1072
1072
  }
1073
1073
  let i;
1074
1074
  const r = M(s) ? s : e.doc.createNode(s, { onTagObj: (h) => i = h });
1075
- i || (i = bn(e.doc.schema.tags, r));
1076
- const o = wn(r, i, e);
1075
+ i || (i = wn(e.doc.schema.tags, r));
1076
+ const o = Sn(r, i, e);
1077
1077
  o.length > 0 && (e.indentAtStart = ((c = e.indentAtStart) != null ? c : 0) + o.length + 1);
1078
- const l = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : A(r) ? Le(r, e, t, n) : r.toString(e, t, n);
1078
+ const l = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : A(r) ? $e(r, e, t, n) : r.toString(e, t, n);
1079
1079
  return o ? A(r) || l[0] === "{" || l[0] === "[" ? `${o} ${l}` : `${o}
1080
1080
  ${e.indent}${l}` : l;
1081
1081
  }
1082
- function Sn({ key: s, value: e }, t, n, i) {
1082
+ function kn({ key: s, value: e }, t, n, i) {
1083
1083
  var C, w;
1084
1084
  const { allNullValues: r, doc: o, indent: l, indentStep: a, options: { commentString: c, indentSeq: h, simpleKeys: f } } = t;
1085
1085
  let p = M(s) && s.comment || null;
@@ -1129,8 +1129,8 @@ ${Q(L, t.indent)}`;
1129
1129
  ${t.indent}`;
1130
1130
  } else if (!m && $(e)) {
1131
1131
  const L = O[0], _ = O.indexOf(`
1132
- `), B = _ !== -1, z = (w = (C = t.inFlow) != null ? C : e.flow) != null ? w : e.items.length === 0;
1133
- if (B || !z) {
1132
+ `), B = _ !== -1, x = (w = (C = t.inFlow) != null ? C : e.flow) != null ? w : e.items.length === 0;
1133
+ if (B || !x) {
1134
1134
  let ie = !1;
1135
1135
  if (B && (L === "&" || L === "!")) {
1136
1136
  let v = O.indexOf(" ");
@@ -1144,12 +1144,12 @@ ${t.indent}`);
1144
1144
  `) && (T = "");
1145
1145
  return g += T + O, t.inFlow ? k && n && n() : I && !k ? g += Z(g, t.indent, c(I)) : u && i && i(), g;
1146
1146
  }
1147
- function ys(s, e) {
1147
+ function gs(s, e) {
1148
1148
  (s === "debug" || s === "warn") && (typeof process != "undefined" && process.emitWarning ? process.emitWarning(e) : console.warn(e));
1149
1149
  }
1150
1150
  const Vt = "<<";
1151
- function gs(s, e, { key: t, value: n }) {
1152
- if (s != null && s.doc.schema.merge && kn(t))
1151
+ function bs(s, e, { key: t, value: n }) {
1152
+ if (s != null && s.doc.schema.merge && Nn(t))
1153
1153
  if (n = ne(n) ? n.resolve(s.doc) : n, be(n))
1154
1154
  for (const i of n.items)
1155
1155
  ct(s, e, i);
@@ -1165,7 +1165,7 @@ function gs(s, e, { key: t, value: n }) {
1165
1165
  else if (e instanceof Set)
1166
1166
  e.add(i);
1167
1167
  else {
1168
- const r = Nn(t, i, s), o = q(n, r, s);
1168
+ const r = On(t, i, s), o = q(n, r, s);
1169
1169
  r in e ? Object.defineProperty(e, r, {
1170
1170
  value: o,
1171
1171
  writable: !0,
@@ -1176,7 +1176,7 @@ function gs(s, e, { key: t, value: n }) {
1176
1176
  }
1177
1177
  return e;
1178
1178
  }
1179
- const kn = (s) => s === Vt || A(s) && s.value === Vt && (!s.type || s.type === N.PLAIN);
1179
+ const Nn = (s) => s === Vt || A(s) && s.value === Vt && (!s.type || s.type === N.PLAIN);
1180
1180
  function ct(s, e, t) {
1181
1181
  const n = s && ne(t) ? t.resolve(s.doc) : t;
1182
1182
  if (!ge(n))
@@ -1191,13 +1191,13 @@ function ct(s, e, t) {
1191
1191
  });
1192
1192
  return e;
1193
1193
  }
1194
- function Nn(s, e, t) {
1194
+ function On(s, e, t) {
1195
1195
  if (e === null)
1196
1196
  return "";
1197
1197
  if (typeof e != "object")
1198
1198
  return String(e);
1199
1199
  if (M(s) && (t != null && t.doc)) {
1200
- const n = ms(t.doc, {});
1200
+ const n = ys(t.doc, {});
1201
1201
  n.anchors = /* @__PURE__ */ new Set();
1202
1202
  for (const r of t.anchors.keys())
1203
1203
  n.anchors.add(r.anchor);
@@ -1205,19 +1205,19 @@ function Nn(s, e, t) {
1205
1205
  const i = s.toString(n);
1206
1206
  if (!t.mapKeyWarned) {
1207
1207
  let r = JSON.stringify(i);
1208
- r.length > 40 && (r = r.substring(0, 36) + '..."'), ys(t.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`), t.mapKeyWarned = !0;
1208
+ r.length > 40 && (r = r.substring(0, 36) + '..."'), gs(t.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`), t.mapKeyWarned = !0;
1209
1209
  }
1210
1210
  return i;
1211
1211
  }
1212
1212
  return JSON.stringify(e);
1213
1213
  }
1214
1214
  function Tt(s, e, t) {
1215
- const n = Ie(s, void 0, t), i = Ie(e, void 0, t);
1215
+ const n = Ae(s, void 0, t), i = Ae(e, void 0, t);
1216
1216
  return new j(n, i);
1217
1217
  }
1218
1218
  class j {
1219
1219
  constructor(e, t = null) {
1220
- Object.defineProperty(this, F, { value: is }), this.key = e, this.value = t;
1220
+ Object.defineProperty(this, F, { value: rs }), this.key = e, this.value = t;
1221
1221
  }
1222
1222
  clone(e) {
1223
1223
  let { key: t, value: n } = this;
@@ -1225,17 +1225,17 @@ class j {
1225
1225
  }
1226
1226
  toJSON(e, t) {
1227
1227
  const n = t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {};
1228
- return gs(t, n, this);
1228
+ return bs(t, n, this);
1229
1229
  }
1230
1230
  toString(e, t, n) {
1231
- return e != null && e.doc ? Sn(this, e, t, n) : JSON.stringify(this);
1231
+ return e != null && e.doc ? kn(this, e, t, n) : JSON.stringify(this);
1232
1232
  }
1233
1233
  }
1234
- function bs(s, e, t) {
1234
+ function ws(s, e, t) {
1235
1235
  var r;
1236
- return (((r = e.inFlow) != null ? r : s.flow) ? Tn : On)(s, e, t);
1236
+ return (((r = e.inFlow) != null ? r : s.flow) ? In : Tn)(s, e, t);
1237
1237
  }
1238
- function On({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: l }) {
1238
+ function Tn({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: l }) {
1239
1239
  const { indent: a, options: { commentString: c } } = t, h = Object.assign({}, t, { indent: r, type: null });
1240
1240
  let f = !1;
1241
1241
  const p = [];
@@ -1243,10 +1243,10 @@ function On({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, ite
1243
1243
  const u = e[y];
1244
1244
  let g = null;
1245
1245
  if (M(u))
1246
- !f && u.spaceBefore && p.push(""), Re(t, p, u.commentBefore, f), u.comment && (g = u.comment);
1246
+ !f && u.spaceBefore && p.push(""), Ue(t, p, u.commentBefore, f), u.comment && (g = u.comment);
1247
1247
  else if (E(u)) {
1248
1248
  const S = M(u.key) ? u.key : null;
1249
- S && (!f && S.spaceBefore && p.push(""), Re(t, p, S.commentBefore, f));
1249
+ S && (!f && S.spaceBefore && p.push(""), Ue(t, p, S.commentBefore, f));
1250
1250
  }
1251
1251
  f = !1;
1252
1252
  let b = de(u, h, () => g = null, () => f = !0);
@@ -1267,7 +1267,7 @@ ${a}${u}` : `
1267
1267
  return s ? (m += `
1268
1268
  ` + Q(c(s), a), l && l()) : f && o && o(), m;
1269
1269
  }
1270
- function Tn({ items: s }, e, { flowChars: t, itemIndent: n }) {
1270
+ function In({ items: s }, e, { flowChars: t, itemIndent: n }) {
1271
1271
  const { indent: i, indentStep: r, flowCollectionPadding: o, options: { commentString: l } } = e;
1272
1272
  n += r;
1273
1273
  const a = Object.assign({}, e, {
@@ -1281,10 +1281,10 @@ function Tn({ items: s }, e, { flowChars: t, itemIndent: n }) {
1281
1281
  const u = s[y];
1282
1282
  let g = null;
1283
1283
  if (M(u))
1284
- u.spaceBefore && f.push(""), Re(e, f, u.commentBefore, !1), u.comment && (g = u.comment);
1284
+ u.spaceBefore && f.push(""), Ue(e, f, u.commentBefore, !1), u.comment && (g = u.comment);
1285
1285
  else if (E(u)) {
1286
1286
  const S = M(u.key) ? u.key : null;
1287
- S && (S.spaceBefore && f.push(""), Re(e, f, S.commentBefore, !1), S.comment && (c = !0));
1287
+ S && (S.spaceBefore && f.push(""), Ue(e, f, S.commentBefore, !1), S.comment && (c = !0));
1288
1288
  const I = M(u.value) ? u.value : null;
1289
1289
  I ? (I.comment && (g = I.comment), I.commentBefore && (c = !0)) : u.value == null && (S != null && S.comment) && (g = S.comment);
1290
1290
  }
@@ -1311,7 +1311,7 @@ ${i}${m}`;
1311
1311
  } else
1312
1312
  return `${p}${o}${f.join(" ")}${o}${m}`;
1313
1313
  }
1314
- function Re({ indent: s, options: { commentString: e } }, t, n, i) {
1314
+ function Ue({ indent: s, options: { commentString: e } }, t, n, i) {
1315
1315
  if (n && i && (n = n.replace(/^\n+/, "")), n) {
1316
1316
  const r = Q(e(n), s);
1317
1317
  t.push(r.trimStart());
@@ -1323,7 +1323,7 @@ function ee(s, e) {
1323
1323
  if (E(n) && (n.key === e || n.key === t || A(n.key) && n.key.value === t))
1324
1324
  return n;
1325
1325
  }
1326
- class K extends ds {
1326
+ class K extends ps {
1327
1327
  static get tagName() {
1328
1328
  return "tag:yaml.org,2002:map";
1329
1329
  }
@@ -1364,7 +1364,7 @@ class K extends ds {
1364
1364
  if (i) {
1365
1365
  if (!t)
1366
1366
  throw new Error(`Key ${n.key} already set`);
1367
- A(i.value) && hs(n.value) ? i.value.value = n.value : i.value = n.value;
1367
+ A(i.value) && ds(n.value) ? i.value.value = n.value : i.value = n.value;
1368
1368
  } else if (r) {
1369
1369
  const l = this.items.findIndex((a) => r(n, a) < 0);
1370
1370
  l === -1 ? this.items.push(n) : this.items.splice(l, 0, n);
@@ -1395,7 +1395,7 @@ class K extends ds {
1395
1395
  const i = n ? new n() : t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {};
1396
1396
  t != null && t.onCreate && t.onCreate(i);
1397
1397
  for (const r of this.items)
1398
- gs(t, i, r);
1398
+ bs(t, i, r);
1399
1399
  return i;
1400
1400
  }
1401
1401
  toString(e, t, n) {
@@ -1404,7 +1404,7 @@ class K extends ds {
1404
1404
  for (const i of this.items)
1405
1405
  if (!E(i))
1406
1406
  throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);
1407
- return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), bs(this, e, {
1407
+ return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), ws(this, e, {
1408
1408
  blockItemPrefix: "",
1409
1409
  flowChars: { start: "{", end: "}" },
1410
1410
  itemIndent: e.indent || "",
@@ -1423,7 +1423,7 @@ const we = {
1423
1423
  },
1424
1424
  createNode: (s, e, t) => K.from(s, e, t)
1425
1425
  };
1426
- class x extends ds {
1426
+ class z extends ps {
1427
1427
  static get tagName() {
1428
1428
  return "tag:yaml.org,2002:seq";
1429
1429
  }
@@ -1442,11 +1442,11 @@ class x extends ds {
1442
1442
  * @returns `true` if the item was found and removed.
1443
1443
  */
1444
1444
  delete(e) {
1445
- const t = Me(e);
1445
+ const t = ve(e);
1446
1446
  return typeof t != "number" ? !1 : this.items.splice(t, 1).length > 0;
1447
1447
  }
1448
1448
  get(e, t) {
1449
- const n = Me(e);
1449
+ const n = ve(e);
1450
1450
  if (typeof n != "number")
1451
1451
  return;
1452
1452
  const i = this.items[n];
@@ -1459,7 +1459,7 @@ class x extends ds {
1459
1459
  * It may be wrapped in a `Scalar`.
1460
1460
  */
1461
1461
  has(e) {
1462
- const t = Me(e);
1462
+ const t = ve(e);
1463
1463
  return typeof t == "number" && t < this.items.length;
1464
1464
  }
1465
1465
  /**
@@ -1470,11 +1470,11 @@ class x extends ds {
1470
1470
  * It may be wrapped in a `Scalar`.
1471
1471
  */
1472
1472
  set(e, t) {
1473
- const n = Me(e);
1473
+ const n = ve(e);
1474
1474
  if (typeof n != "number")
1475
1475
  throw new Error(`Expected a valid index, not ${e}.`);
1476
1476
  const i = this.items[n];
1477
- A(i) && hs(t) ? i.value = t : this.items[n] = t;
1477
+ A(i) && ds(t) ? i.value = t : this.items[n] = t;
1478
1478
  }
1479
1479
  toJSON(e, t) {
1480
1480
  const n = [];
@@ -1485,7 +1485,7 @@ class x extends ds {
1485
1485
  return n;
1486
1486
  }
1487
1487
  toString(e, t, n) {
1488
- return e ? bs(this, e, {
1488
+ return e ? ws(this, e, {
1489
1489
  blockItemPrefix: "- ",
1490
1490
  flowChars: { start: "[", end: "]" },
1491
1491
  itemIndent: (e.indent || "") + " ",
@@ -1502,32 +1502,32 @@ class x extends ds {
1502
1502
  const a = t instanceof Set ? l : String(o++);
1503
1503
  l = i.call(t, a, l);
1504
1504
  }
1505
- r.items.push(Ie(l, void 0, n));
1505
+ r.items.push(Ae(l, void 0, n));
1506
1506
  }
1507
1507
  }
1508
1508
  return r;
1509
1509
  }
1510
1510
  }
1511
- function Me(s) {
1511
+ function ve(s) {
1512
1512
  let e = A(s) ? s.value : s;
1513
1513
  return e && typeof e == "string" && (e = Number(e)), typeof e == "number" && Number.isInteger(e) && e >= 0 ? e : null;
1514
1514
  }
1515
1515
  const Se = {
1516
1516
  collection: "seq",
1517
1517
  default: !0,
1518
- nodeClass: x,
1518
+ nodeClass: z,
1519
1519
  tag: "tag:yaml.org,2002:seq",
1520
1520
  resolve(s, e) {
1521
1521
  return be(s) || e("Expected a sequence for this tag"), s;
1522
1522
  },
1523
- createNode: (s, e, t) => x.from(s, e, t)
1524
- }, He = {
1523
+ createNode: (s, e, t) => z.from(s, e, t)
1524
+ }, ze = {
1525
1525
  identify: (s) => typeof s == "string",
1526
1526
  default: !0,
1527
1527
  tag: "tag:yaml.org,2002:str",
1528
1528
  resolve: (s) => s,
1529
1529
  stringify(s, e, t, n) {
1530
- return e = Object.assign({ actualString: !0 }, e), Le(s, e, t, n);
1530
+ return e = Object.assign({ actualString: !0 }, e), $e(s, e, t, n);
1531
1531
  }
1532
1532
  }, xe = {
1533
1533
  identify: (s) => s == null,
@@ -1568,14 +1568,14 @@ function V({ format: s, minFractionDigits: e, tag: t, value: n }) {
1568
1568
  }
1569
1569
  return r;
1570
1570
  }
1571
- const ws = {
1571
+ const Ss = {
1572
1572
  identify: (s) => typeof s == "number",
1573
1573
  default: !0,
1574
1574
  tag: "tag:yaml.org,2002:float",
1575
1575
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
1576
1576
  resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
1577
1577
  stringify: V
1578
- }, Ss = {
1578
+ }, ks = {
1579
1579
  identify: (s) => typeof s == "number",
1580
1580
  default: !0,
1581
1581
  tag: "tag:yaml.org,2002:float",
@@ -1586,7 +1586,7 @@ const ws = {
1586
1586
  const e = Number(s.value);
1587
1587
  return isFinite(e) ? e.toExponential() : V(s);
1588
1588
  }
1589
- }, ks = {
1589
+ }, Ns = {
1590
1590
  identify: (s) => typeof s == "number",
1591
1591
  default: !0,
1592
1592
  tag: "tag:yaml.org,2002:float",
@@ -1596,57 +1596,57 @@ const ws = {
1596
1596
  return t !== -1 && s[s.length - 1] === "0" && (e.minFractionDigits = s.length - t - 1), e;
1597
1597
  },
1598
1598
  stringify: V
1599
- }, ze = (s) => typeof s == "bigint" || Number.isInteger(s), At = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
1600
- function Ns(s, e, t) {
1599
+ }, Xe = (s) => typeof s == "bigint" || Number.isInteger(s), At = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
1600
+ function Os(s, e, t) {
1601
1601
  const { value: n } = s;
1602
- return ze(n) && n >= 0 ? t + n.toString(e) : V(s);
1602
+ return Xe(n) && n >= 0 ? t + n.toString(e) : V(s);
1603
1603
  }
1604
- const Os = {
1605
- identify: (s) => ze(s) && s >= 0,
1604
+ const Ts = {
1605
+ identify: (s) => Xe(s) && s >= 0,
1606
1606
  default: !0,
1607
1607
  tag: "tag:yaml.org,2002:int",
1608
1608
  format: "OCT",
1609
1609
  test: /^0o[0-7]+$/,
1610
1610
  resolve: (s, e, t) => At(s, 2, 8, t),
1611
- stringify: (s) => Ns(s, 8, "0o")
1612
- }, Ts = {
1613
- identify: ze,
1611
+ stringify: (s) => Os(s, 8, "0o")
1612
+ }, Is = {
1613
+ identify: Xe,
1614
1614
  default: !0,
1615
1615
  tag: "tag:yaml.org,2002:int",
1616
1616
  test: /^[-+]?[0-9]+$/,
1617
1617
  resolve: (s, e, t) => At(s, 0, 10, t),
1618
1618
  stringify: V
1619
- }, Is = {
1620
- identify: (s) => ze(s) && s >= 0,
1619
+ }, As = {
1620
+ identify: (s) => Xe(s) && s >= 0,
1621
1621
  default: !0,
1622
1622
  tag: "tag:yaml.org,2002:int",
1623
1623
  format: "HEX",
1624
1624
  test: /^0x[0-9a-fA-F]+$/,
1625
1625
  resolve: (s, e, t) => At(s, 2, 16, t),
1626
- stringify: (s) => Ns(s, 16, "0x")
1627
- }, In = [
1626
+ stringify: (s) => Os(s, 16, "0x")
1627
+ }, An = [
1628
1628
  we,
1629
1629
  Se,
1630
- He,
1630
+ ze,
1631
1631
  xe,
1632
1632
  It,
1633
- Os,
1634
1633
  Ts,
1635
1634
  Is,
1636
- ws,
1635
+ As,
1637
1636
  Ss,
1638
- ks
1637
+ ks,
1638
+ Ns
1639
1639
  ];
1640
1640
  function Jt(s) {
1641
1641
  return typeof s == "bigint" || Number.isInteger(s);
1642
1642
  }
1643
- const ve = ({ value: s }) => JSON.stringify(s), An = [
1643
+ const Be = ({ value: s }) => JSON.stringify(s), En = [
1644
1644
  {
1645
1645
  identify: (s) => typeof s == "string",
1646
1646
  default: !0,
1647
1647
  tag: "tag:yaml.org,2002:str",
1648
1648
  resolve: (s) => s,
1649
- stringify: ve
1649
+ stringify: Be
1650
1650
  },
1651
1651
  {
1652
1652
  identify: (s) => s == null,
@@ -1655,7 +1655,7 @@ const ve = ({ value: s }) => JSON.stringify(s), An = [
1655
1655
  tag: "tag:yaml.org,2002:null",
1656
1656
  test: /^null$/,
1657
1657
  resolve: () => null,
1658
- stringify: ve
1658
+ stringify: Be
1659
1659
  },
1660
1660
  {
1661
1661
  identify: (s) => typeof s == "boolean",
@@ -1663,7 +1663,7 @@ const ve = ({ value: s }) => JSON.stringify(s), An = [
1663
1663
  tag: "tag:yaml.org,2002:bool",
1664
1664
  test: /^true|false$/,
1665
1665
  resolve: (s) => s === "true",
1666
- stringify: ve
1666
+ stringify: Be
1667
1667
  },
1668
1668
  {
1669
1669
  identify: Jt,
@@ -1679,16 +1679,16 @@ const ve = ({ value: s }) => JSON.stringify(s), An = [
1679
1679
  tag: "tag:yaml.org,2002:float",
1680
1680
  test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
1681
1681
  resolve: (s) => parseFloat(s),
1682
- stringify: ve
1682
+ stringify: Be
1683
1683
  }
1684
- ], En = {
1684
+ ], Ln = {
1685
1685
  default: !0,
1686
1686
  tag: "",
1687
1687
  test: /^/,
1688
1688
  resolve(s, e) {
1689
1689
  return e(`Unresolved plain scalar ${JSON.stringify(s)}`), s;
1690
1690
  }
1691
- }, Ln = [we, Se].concat(An, En), Et = {
1691
+ }, $n = [we, Se].concat(En, Ln), Et = {
1692
1692
  identify: (s) => s instanceof Uint8Array,
1693
1693
  // Buffer inherits from Uint8Array
1694
1694
  default: !1,
@@ -1731,10 +1731,10 @@ const ve = ({ value: s }) => JSON.stringify(s), An = [
1731
1731
  l = h.join(e === N.BLOCK_LITERAL ? `
1732
1732
  ` : " ");
1733
1733
  }
1734
- return Le({ comment: s, type: e, value: l }, n, i, r);
1734
+ return $e({ comment: s, type: e, value: l }, n, i, r);
1735
1735
  }
1736
1736
  };
1737
- function As(s, e) {
1737
+ function Es(s, e) {
1738
1738
  var t;
1739
1739
  if (be(s))
1740
1740
  for (let n = 0; n < s.items.length; ++n) {
@@ -1758,8 +1758,8 @@ ${o.comment}` : i.comment;
1758
1758
  e("Expected a sequence for this tag");
1759
1759
  return s;
1760
1760
  }
1761
- function Es(s, e, t) {
1762
- const { replacer: n } = t, i = new x(s);
1761
+ function Ls(s, e, t) {
1762
+ const { replacer: n } = t, i = new z(s);
1763
1763
  i.tag = "tag:yaml.org,2002:pairs";
1764
1764
  let r = 0;
1765
1765
  if (e && Symbol.iterator in Object(e))
@@ -1787,10 +1787,10 @@ const Lt = {
1787
1787
  collection: "seq",
1788
1788
  default: !1,
1789
1789
  tag: "tag:yaml.org,2002:pairs",
1790
- resolve: As,
1791
- createNode: Es
1790
+ resolve: Es,
1791
+ createNode: Ls
1792
1792
  };
1793
- class ue extends x {
1793
+ class ue extends z {
1794
1794
  constructor() {
1795
1795
  super(), this.add = K.prototype.add.bind(this), this.delete = K.prototype.delete.bind(this), this.get = K.prototype.get.bind(this), this.has = K.prototype.has.bind(this), this.set = K.prototype.set.bind(this), this.tag = ue.tag;
1796
1796
  }
@@ -1812,7 +1812,7 @@ class ue extends x {
1812
1812
  return n;
1813
1813
  }
1814
1814
  static from(e, t, n) {
1815
- const i = Es(e, t, n), r = new this();
1815
+ const i = Ls(e, t, n), r = new this();
1816
1816
  return r.items = i.items, r;
1817
1817
  }
1818
1818
  }
@@ -1824,38 +1824,38 @@ const $t = {
1824
1824
  default: !1,
1825
1825
  tag: "tag:yaml.org,2002:omap",
1826
1826
  resolve(s, e) {
1827
- const t = As(s, e), n = [];
1827
+ const t = Es(s, e), n = [];
1828
1828
  for (const { key: i } of t.items)
1829
1829
  A(i) && (n.includes(i.value) ? e(`Ordered maps must not include duplicate keys: ${i.value}`) : n.push(i.value));
1830
1830
  return Object.assign(new ue(), t);
1831
1831
  },
1832
1832
  createNode: (s, e, t) => ue.from(s, e, t)
1833
1833
  };
1834
- function Ls({ value: s, source: e }, t) {
1835
- return e && (s ? $s : Cs).test.test(e) ? e : s ? t.options.trueStr : t.options.falseStr;
1834
+ function $s({ value: s, source: e }, t) {
1835
+ return e && (s ? Cs : _s).test.test(e) ? e : s ? t.options.trueStr : t.options.falseStr;
1836
1836
  }
1837
- const $s = {
1837
+ const Cs = {
1838
1838
  identify: (s) => s === !0,
1839
1839
  default: !0,
1840
1840
  tag: "tag:yaml.org,2002:bool",
1841
1841
  test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
1842
1842
  resolve: () => new N(!0),
1843
- stringify: Ls
1844
- }, Cs = {
1843
+ stringify: $s
1844
+ }, _s = {
1845
1845
  identify: (s) => s === !1,
1846
1846
  default: !0,
1847
1847
  tag: "tag:yaml.org,2002:bool",
1848
1848
  test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
1849
1849
  resolve: () => new N(!1),
1850
- stringify: Ls
1851
- }, $n = {
1850
+ stringify: $s
1851
+ }, Cn = {
1852
1852
  identify: (s) => typeof s == "number",
1853
1853
  default: !0,
1854
1854
  tag: "tag:yaml.org,2002:float",
1855
1855
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
1856
1856
  resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
1857
1857
  stringify: V
1858
- }, Cn = {
1858
+ }, _n = {
1859
1859
  identify: (s) => typeof s == "number",
1860
1860
  default: !0,
1861
1861
  tag: "tag:yaml.org,2002:float",
@@ -1866,7 +1866,7 @@ const $s = {
1866
1866
  const e = Number(s.value);
1867
1867
  return isFinite(e) ? e.toExponential() : V(s);
1868
1868
  }
1869
- }, _n = {
1869
+ }, Mn = {
1870
1870
  identify: (s) => typeof s == "number",
1871
1871
  default: !0,
1872
1872
  tag: "tag:yaml.org,2002:float",
@@ -1880,8 +1880,8 @@ const $s = {
1880
1880
  return e;
1881
1881
  },
1882
1882
  stringify: V
1883
- }, $e = (s) => typeof s == "bigint" || Number.isInteger(s);
1884
- function Xe(s, e, t, { intAsBigInt: n }) {
1883
+ }, Ce = (s) => typeof s == "bigint" || Number.isInteger(s);
1884
+ function Ze(s, e, t, { intAsBigInt: n }) {
1885
1885
  const i = s[0];
1886
1886
  if ((i === "-" || i === "+") && (e += 1), s = s.substring(e).replace(/_/g, ""), n) {
1887
1887
  switch (t) {
@@ -1903,42 +1903,42 @@ function Xe(s, e, t, { intAsBigInt: n }) {
1903
1903
  }
1904
1904
  function Ct(s, e, t) {
1905
1905
  const { value: n } = s;
1906
- if ($e(n)) {
1906
+ if (Ce(n)) {
1907
1907
  const i = n.toString(e);
1908
1908
  return n < 0 ? "-" + t + i.substr(1) : t + i;
1909
1909
  }
1910
1910
  return V(s);
1911
1911
  }
1912
- const Mn = {
1913
- identify: $e,
1912
+ const vn = {
1913
+ identify: Ce,
1914
1914
  default: !0,
1915
1915
  tag: "tag:yaml.org,2002:int",
1916
1916
  format: "BIN",
1917
1917
  test: /^[-+]?0b[0-1_]+$/,
1918
- resolve: (s, e, t) => Xe(s, 2, 2, t),
1918
+ resolve: (s, e, t) => Ze(s, 2, 2, t),
1919
1919
  stringify: (s) => Ct(s, 2, "0b")
1920
- }, vn = {
1921
- identify: $e,
1920
+ }, Bn = {
1921
+ identify: Ce,
1922
1922
  default: !0,
1923
1923
  tag: "tag:yaml.org,2002:int",
1924
1924
  format: "OCT",
1925
1925
  test: /^[-+]?0[0-7_]+$/,
1926
- resolve: (s, e, t) => Xe(s, 1, 8, t),
1926
+ resolve: (s, e, t) => Ze(s, 1, 8, t),
1927
1927
  stringify: (s) => Ct(s, 8, "0")
1928
- }, Bn = {
1929
- identify: $e,
1928
+ }, jn = {
1929
+ identify: Ce,
1930
1930
  default: !0,
1931
1931
  tag: "tag:yaml.org,2002:int",
1932
1932
  test: /^[-+]?[0-9][0-9_]*$/,
1933
- resolve: (s, e, t) => Xe(s, 0, 10, t),
1933
+ resolve: (s, e, t) => Ze(s, 0, 10, t),
1934
1934
  stringify: V
1935
- }, jn = {
1936
- identify: $e,
1935
+ }, Pn = {
1936
+ identify: Ce,
1937
1937
  default: !0,
1938
1938
  tag: "tag:yaml.org,2002:int",
1939
1939
  format: "HEX",
1940
1940
  test: /^[-+]?0x[0-9a-fA-F_]+$/,
1941
- resolve: (s, e, t) => Xe(s, 2, 16, t),
1941
+ resolve: (s, e, t) => Ze(s, 2, 16, t),
1942
1942
  stringify: (s) => Ct(s, 16, "0x")
1943
1943
  };
1944
1944
  class he extends K {
@@ -2003,7 +2003,7 @@ function Mt(s, e) {
2003
2003
  const t = s[0], n = t === "-" || t === "+" ? s.substring(1) : s, i = (o) => e ? BigInt(o) : Number(o), r = n.replace(/_/g, "").split(":").reduce((o, l) => o * i(60) + i(l), i(0));
2004
2004
  return t === "-" ? i(-1) * r : r;
2005
2005
  }
2006
- function _s(s) {
2006
+ function Ms(s) {
2007
2007
  let { value: e } = s, t = (o) => o;
2008
2008
  if (typeof e == "bigint")
2009
2009
  t = (o) => BigInt(o);
@@ -2014,23 +2014,23 @@ function _s(s) {
2014
2014
  const i = t(60), r = [e % i];
2015
2015
  return e < 60 ? r.unshift(0) : (e = (e - r[0]) / i, r.unshift(e % i), e >= 60 && (e = (e - r[0]) / i, r.unshift(e))), n + r.map((o) => String(o).padStart(2, "0")).join(":").replace(/000000\d*$/, "");
2016
2016
  }
2017
- const Ms = {
2017
+ const vs = {
2018
2018
  identify: (s) => typeof s == "bigint" || Number.isInteger(s),
2019
2019
  default: !0,
2020
2020
  tag: "tag:yaml.org,2002:int",
2021
2021
  format: "TIME",
2022
2022
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,
2023
2023
  resolve: (s, e, { intAsBigInt: t }) => Mt(s, t),
2024
- stringify: _s
2025
- }, vs = {
2024
+ stringify: Ms
2025
+ }, Bs = {
2026
2026
  identify: (s) => typeof s == "number",
2027
2027
  default: !0,
2028
2028
  tag: "tag:yaml.org,2002:float",
2029
2029
  format: "TIME",
2030
2030
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
2031
2031
  resolve: (s) => Mt(s, !1),
2032
- stringify: _s
2033
- }, Ze = {
2032
+ stringify: Ms
2033
+ }, et = {
2034
2034
  identify: (s) => s instanceof Date,
2035
2035
  default: !0,
2036
2036
  tag: "tag:yaml.org,2002:timestamp",
@@ -2039,7 +2039,7 @@ const Ms = {
2039
2039
  // assumed to be 00:00:00Z (start of day, UTC).
2040
2040
  test: RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),
2041
2041
  resolve(s) {
2042
- const e = s.match(Ze.test);
2042
+ const e = s.match(et.test);
2043
2043
  if (!e)
2044
2044
  throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");
2045
2045
  const [, t, n, i, r, o, l] = e.map(Number), a = e[7] ? Number((e[7] + "00").substr(1, 3)) : 0;
@@ -2055,54 +2055,54 @@ const Ms = {
2055
2055
  }, Qt = [
2056
2056
  we,
2057
2057
  Se,
2058
- He,
2058
+ ze,
2059
2059
  xe,
2060
- $s,
2061
2060
  Cs,
2062
- Mn,
2061
+ _s,
2063
2062
  vn,
2064
2063
  Bn,
2065
2064
  jn,
2066
- $n,
2065
+ Pn,
2067
2066
  Cn,
2068
2067
  _n,
2068
+ Mn,
2069
2069
  Et,
2070
2070
  $t,
2071
2071
  Lt,
2072
2072
  _t,
2073
- Ms,
2074
2073
  vs,
2075
- Ze
2074
+ Bs,
2075
+ et
2076
2076
  ], Yt = /* @__PURE__ */ new Map([
2077
- ["core", In],
2078
- ["failsafe", [we, Se, He]],
2079
- ["json", Ln],
2077
+ ["core", An],
2078
+ ["failsafe", [we, Se, ze]],
2079
+ ["json", $n],
2080
2080
  ["yaml11", Qt],
2081
2081
  ["yaml-1.1", Qt]
2082
2082
  ]), Gt = {
2083
2083
  binary: Et,
2084
2084
  bool: It,
2085
- float: ks,
2086
- floatExp: Ss,
2087
- floatNaN: ws,
2088
- floatTime: vs,
2089
- int: Ts,
2090
- intHex: Is,
2091
- intOct: Os,
2092
- intTime: Ms,
2085
+ float: Ns,
2086
+ floatExp: ks,
2087
+ floatNaN: Ss,
2088
+ floatTime: Bs,
2089
+ int: Is,
2090
+ intHex: As,
2091
+ intOct: Ts,
2092
+ intTime: vs,
2093
2093
  map: we,
2094
2094
  null: xe,
2095
2095
  omap: $t,
2096
2096
  pairs: Lt,
2097
2097
  seq: Se,
2098
2098
  set: _t,
2099
- timestamp: Ze
2100
- }, Pn = {
2099
+ timestamp: et
2100
+ }, Dn = {
2101
2101
  "tag:yaml.org,2002:binary": Et,
2102
2102
  "tag:yaml.org,2002:omap": $t,
2103
2103
  "tag:yaml.org,2002:pairs": Lt,
2104
2104
  "tag:yaml.org,2002:set": _t,
2105
- "tag:yaml.org,2002:timestamp": Ze
2105
+ "tag:yaml.org,2002:timestamp": et
2106
2106
  };
2107
2107
  function ft(s, e) {
2108
2108
  let t = Yt.get(e);
@@ -2128,17 +2128,17 @@ function ft(s, e) {
2128
2128
  throw new Error(`Unknown custom tag "${n}"; use one of ${r}`);
2129
2129
  });
2130
2130
  }
2131
- const Dn = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2132
- class et {
2131
+ const Kn = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2132
+ class tt {
2133
2133
  constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: i, schema: r, sortMapEntries: o, toStringDefaults: l }) {
2134
- this.compat = Array.isArray(e) ? ft(e, "compat") : e ? ft(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ? Pn : {}, this.tags = ft(t, this.name), this.toStringOptions = l != null ? l : null, Object.defineProperty(this, W, { value: we }), Object.defineProperty(this, Y, { value: He }), Object.defineProperty(this, me, { value: Se }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? Dn : null;
2134
+ this.compat = Array.isArray(e) ? ft(e, "compat") : e ? ft(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ? Dn : {}, this.tags = ft(t, this.name), this.toStringOptions = l != null ? l : null, Object.defineProperty(this, W, { value: we }), Object.defineProperty(this, Y, { value: ze }), Object.defineProperty(this, me, { value: Se }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? Kn : null;
2135
2135
  }
2136
2136
  clone() {
2137
- const e = Object.create(et.prototype, Object.getOwnPropertyDescriptors(this));
2137
+ const e = Object.create(tt.prototype, Object.getOwnPropertyDescriptors(this));
2138
2138
  return e.tags = this.tags.slice(), e;
2139
2139
  }
2140
2140
  }
2141
- function Kn(s, e) {
2141
+ function qn(s, e) {
2142
2142
  var a;
2143
2143
  const t = [];
2144
2144
  let n = e.directives === !0;
@@ -2147,7 +2147,7 @@ function Kn(s, e) {
2147
2147
  c ? (t.push(c), n = !0) : s.directives.docStart && (n = !0);
2148
2148
  }
2149
2149
  n && t.push("---");
2150
- const i = ms(s, e), { commentString: r } = i.options;
2150
+ const i = ys(s, e), { commentString: r } = i.options;
2151
2151
  if (s.commentBefore) {
2152
2152
  t.length !== 1 && t.unshift("");
2153
2153
  const c = r(s.commentBefore);
@@ -2230,11 +2230,11 @@ class ke {
2230
2230
  */
2231
2231
  createAlias(e, t) {
2232
2232
  if (!e.anchor) {
2233
- const n = fs(this);
2233
+ const n = us(this);
2234
2234
  e.anchor = // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2235
- !t || n.has(t) ? us(t || "a", n) : t;
2235
+ !t || n.has(t) ? hs(t || "a", n) : t;
2236
2236
  }
2237
- return new Qe(e.anchor);
2237
+ return new Ye(e.anchor);
2238
2238
  }
2239
2239
  createNode(e, t, n) {
2240
2240
  let i;
@@ -2245,7 +2245,7 @@ class ke {
2245
2245
  b.length > 0 && (t = t.concat(b)), i = t;
2246
2246
  } else
2247
2247
  n === void 0 && t && (n = t, t = void 0);
2248
- const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: h } = n != null ? n : {}, { onAnchor: f, setAnchors: p, sourceObjects: m } = hn(
2248
+ const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: h } = n != null ? n : {}, { onAnchor: f, setAnchors: p, sourceObjects: m } = dn(
2249
2249
  this,
2250
2250
  // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2251
2251
  o || "a"
@@ -2257,7 +2257,7 @@ class ke {
2257
2257
  replacer: i,
2258
2258
  schema: this.schema,
2259
2259
  sourceObjects: m
2260
- }, u = Ie(e, h, y);
2260
+ }, u = Ae(e, h, y);
2261
2261
  return l && $(u) && (u.flow = !0), p(), u;
2262
2262
  }
2263
2263
  /**
@@ -2315,14 +2315,14 @@ class ke {
2315
2315
  * boolean to add/remove the item from the set.
2316
2316
  */
2317
2317
  set(e, t) {
2318
- this.contents == null ? this.contents = Fe(this.schema, [e], t) : re(this.contents) && this.contents.set(e, t);
2318
+ this.contents == null ? this.contents = Re(this.schema, [e], t) : re(this.contents) && this.contents.set(e, t);
2319
2319
  }
2320
2320
  /**
2321
2321
  * Sets a value in this document. For `!!set`, `value` needs to be a
2322
2322
  * boolean to add/remove the item from the set.
2323
2323
  */
2324
2324
  setIn(e, t) {
2325
- Oe(e) ? this.contents = t : this.contents == null ? this.contents = Fe(this.schema, Array.from(e), t) : re(this.contents) && this.contents.setIn(e, t);
2325
+ Oe(e) ? this.contents = t : this.contents == null ? this.contents = Re(this.schema, Array.from(e), t) : re(this.contents) && this.contents.setIn(e, t);
2326
2326
  }
2327
2327
  /**
2328
2328
  * Change the YAML version and schema used by the document.
@@ -2353,7 +2353,7 @@ class ke {
2353
2353
  if (t.schema instanceof Object)
2354
2354
  this.schema = t.schema;
2355
2355
  else if (n)
2356
- this.schema = new et(Object.assign(n, t));
2356
+ this.schema = new tt(Object.assign(n, t));
2357
2357
  else
2358
2358
  throw new Error("With a null YAML version, the { schema: Schema } option is required");
2359
2359
  }
@@ -2389,7 +2389,7 @@ class ke {
2389
2389
  const t = JSON.stringify(e.indent);
2390
2390
  throw new Error(`"indent" option must be a positive integer, not ${t}`);
2391
2391
  }
2392
- return Kn(this, e);
2392
+ return qn(this, e);
2393
2393
  }
2394
2394
  }
2395
2395
  function re(s) {
@@ -2407,12 +2407,12 @@ class te extends vt {
2407
2407
  super("YAMLParseError", e, t, n);
2408
2408
  }
2409
2409
  }
2410
- class Bs extends vt {
2410
+ class js extends vt {
2411
2411
  constructor(e, t, n) {
2412
2412
  super("YAMLWarning", e, t, n);
2413
2413
  }
2414
2414
  }
2415
- const Ue = (s, e) => (t) => {
2415
+ const Ve = (s, e) => (t) => {
2416
2416
  if (t.pos[0] === -1)
2417
2417
  return;
2418
2418
  t.linePos = t.pos.map((l) => e.linePos(l));
@@ -2488,7 +2488,7 @@ function pe(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
2488
2488
  start: O != null ? O : C
2489
2489
  };
2490
2490
  }
2491
- function Ae(s) {
2491
+ function Ee(s) {
2492
2492
  if (!s)
2493
2493
  return null;
2494
2494
  switch (s.type) {
@@ -2515,7 +2515,7 @@ function Ae(s) {
2515
2515
  if (t.type === "newline")
2516
2516
  return !0;
2517
2517
  }
2518
- if (Ae(e.key) || Ae(e.value))
2518
+ if (Ee(e.key) || Ee(e.value))
2519
2519
  return !0;
2520
2520
  }
2521
2521
  return !1;
@@ -2526,10 +2526,10 @@ function Ae(s) {
2526
2526
  function St(s, e, t) {
2527
2527
  if ((e == null ? void 0 : e.type) === "flow-collection") {
2528
2528
  const n = e.end[0];
2529
- n.indent === s && (n.source === "]" || n.source === "}") && Ae(e) && t(n, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
2529
+ n.indent === s && (n.source === "]" || n.source === "}") && Ee(e) && t(n, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
2530
2530
  }
2531
2531
  }
2532
- function js(s, e, t) {
2532
+ function Ps(s, e, t) {
2533
2533
  const { uniqueKeys: n } = s.options;
2534
2534
  if (n === !1)
2535
2535
  return !1;
@@ -2537,7 +2537,7 @@ function js(s, e, t) {
2537
2537
  return e.some((r) => i(r.key, t));
2538
2538
  }
2539
2539
  const Wt = "All mapping items must start at the same column";
2540
- function qn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2540
+ function Fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2541
2541
  var h, f;
2542
2542
  const o = (h = r == null ? void 0 : r.nodeClass) != null ? h : K, l = new o(t.schema);
2543
2543
  t.atRoot && (t.atRoot = !1);
@@ -2557,11 +2557,11 @@ function qn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2557
2557
  ` + b.comment : l.comment = b.comment);
2558
2558
  continue;
2559
2559
  }
2560
- (b.newlineAfterProp || Ae(y)) && i(y != null ? y : m[m.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2560
+ (b.newlineAfterProp || Ee(y)) && i(y != null ? y : m[m.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2561
2561
  } else
2562
2562
  ((f = b.found) == null ? void 0 : f.indent) !== n.indent && i(a, "BAD_INDENT", Wt);
2563
2563
  const I = b.end, k = y ? s(t, y, b, i) : e(t, I, m, null, b, i);
2564
- t.schema.compat && St(n.indent, y, i), js(t, l.items, k) && i(I, "DUPLICATE_KEY", "Map keys must be unique");
2564
+ t.schema.compat && St(n.indent, y, i), Ps(t, l.items, k) && i(I, "DUPLICATE_KEY", "Map keys must be unique");
2565
2565
  const O = pe(u != null ? u : [], {
2566
2566
  indicator: "map-value-ind",
2567
2567
  next: g,
@@ -2585,9 +2585,9 @@ function qn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2585
2585
  }
2586
2586
  return c && c < a && i(c, "IMPOSSIBLE", "Map comment with trailing content"), l.range = [n.offset, a, c != null ? c : a], l;
2587
2587
  }
2588
- function Fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2588
+ function Rn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2589
2589
  var h;
2590
- const o = (h = r == null ? void 0 : r.nodeClass) != null ? h : x, l = new o(t.schema);
2590
+ const o = (h = r == null ? void 0 : r.nodeClass) != null ? h : z, l = new o(t.schema);
2591
2591
  t.atRoot && (t.atRoot = !1);
2592
2592
  let a = n.offset, c = null;
2593
2593
  for (const { start: f, value: p } of n.items) {
@@ -2611,7 +2611,7 @@ function Fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2611
2611
  }
2612
2612
  return l.range = [n.offset, a, c != null ? c : a], l;
2613
2613
  }
2614
- function Ce(s, e, t, n) {
2614
+ function _e(s, e, t, n) {
2615
2615
  let i = "";
2616
2616
  if (s) {
2617
2617
  let r = !1, o = "";
@@ -2639,9 +2639,9 @@ function Ce(s, e, t, n) {
2639
2639
  return { comment: i, offset: e };
2640
2640
  }
2641
2641
  const ut = "Block collections are not allowed within flow collections", ht = (s) => s && (s.type === "block-map" || s.type === "block-seq");
2642
- function Rn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2642
+ function Un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2643
2643
  var g, b;
2644
- const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a = (g = r == null ? void 0 : r.nodeClass) != null ? g : o ? K : x, c = new a(t.schema);
2644
+ const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a = (g = r == null ? void 0 : r.nodeClass) != null ? g : o ? K : z, c = new a(t.schema);
2645
2645
  c.flow = !0;
2646
2646
  const h = t.atRoot;
2647
2647
  h && (t.atRoot = !1);
@@ -2662,7 +2662,7 @@ function Rn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2662
2662
  ` + w.comment : c.comment = w.comment), f = w.end;
2663
2663
  continue;
2664
2664
  }
2665
- !o && t.options.strict && Ae(O) && i(
2665
+ !o && t.options.strict && Ee(O) && i(
2666
2666
  O,
2667
2667
  // checked by containsNewline()
2668
2668
  "MULTILINE_IMPLICIT_KEY",
@@ -2721,18 +2721,18 @@ function Rn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2721
2721
  }
2722
2722
  } else
2723
2723
  C && ("source" in C && C.source && C.source[0] === ":" ? i(C, "MISSING_CHAR", `Missing space after : in ${l}`) : i(B.start, "MISSING_CHAR", `Missing , or : between ${l} items`));
2724
- const z = C ? s(t, C, B, i) : B.found ? e(t, B.end, T, null, B, i) : null;
2725
- z ? ht(C) && i(z.range, "BLOCK_IN_FLOW", ut) : B.comment && (_.comment ? _.comment += `
2724
+ const x = C ? s(t, C, B, i) : B.found ? e(t, B.end, T, null, B, i) : null;
2725
+ x ? ht(C) && i(x.range, "BLOCK_IN_FLOW", ut) : B.comment && (_.comment ? _.comment += `
2726
2726
  ` + B.comment : _.comment = B.comment);
2727
- const ie = new j(_, z);
2727
+ const ie = new j(_, x);
2728
2728
  if (t.options.keepSourceTokens && (ie.srcToken = I), o) {
2729
2729
  const v = c;
2730
- js(t, v.items, _) && i(L, "DUPLICATE_KEY", "Map keys must be unique"), v.items.push(ie);
2730
+ Ps(t, v.items, _) && i(L, "DUPLICATE_KEY", "Map keys must be unique"), v.items.push(ie);
2731
2731
  } else {
2732
2732
  const v = new K(t.schema);
2733
2733
  v.flow = !0, v.items.push(ie), c.items.push(v);
2734
2734
  }
2735
- f = z ? z.range[2] : B.end;
2735
+ f = x ? x.range[2] : B.end;
2736
2736
  }
2737
2737
  }
2738
2738
  const p = o ? "}" : "]", [m, ...y] = n.end;
@@ -2744,7 +2744,7 @@ function Rn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2744
2744
  i(f, h ? "MISSING_CHAR" : "BAD_INDENT", I), m && m.source.length !== 1 && y.unshift(m);
2745
2745
  }
2746
2746
  if (y.length > 0) {
2747
- const S = Ce(y, u, t.options.strict, i);
2747
+ const S = _e(y, u, t.options.strict, i);
2748
2748
  S.comment && (c.comment ? c.comment += `
2749
2749
  ` + S.comment : c.comment = S.comment), c.range = [n.offset, u, S.offset];
2750
2750
  } else
@@ -2752,10 +2752,10 @@ function Rn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2752
2752
  return c;
2753
2753
  }
2754
2754
  function dt(s, e, t, n, i, r) {
2755
- const o = t.type === "block-map" ? qn(s, e, t, n, r) : t.type === "block-seq" ? Fn(s, e, t, n, r) : Rn(s, e, t, n, r), l = o.constructor;
2755
+ const o = t.type === "block-map" ? Fn(s, e, t, n, r) : t.type === "block-seq" ? Rn(s, e, t, n, r) : Un(s, e, t, n, r), l = o.constructor;
2756
2756
  return i === "!" || i === l.tagName ? (o.tag = l.tagName, o) : (i && (o.tag = i), o);
2757
2757
  }
2758
- function Un(s, e, t, n, i) {
2758
+ function Vn(s, e, t, n, i) {
2759
2759
  var p, m;
2760
2760
  const r = n.tag, o = r ? e.directives.tagName(r.source, (y) => i(r, "TAG_RESOLVE_FAILED", y)) : null;
2761
2761
  if (t.type === "block-seq") {
@@ -2763,7 +2763,7 @@ function Un(s, e, t, n, i) {
2763
2763
  g && (!u || u.offset < g.offset) && i(g, "MISSING_CHAR", "Missing newline after block sequence props");
2764
2764
  }
2765
2765
  const l = t.type === "block-map" ? "map" : t.type === "block-seq" ? "seq" : t.start.source === "{" ? "map" : "seq";
2766
- if (!r || !o || o === "!" || o === K.tagName && l === "map" || o === x.tagName && l === "seq")
2766
+ if (!r || !o || o === "!" || o === K.tagName && l === "map" || o === z.tagName && l === "seq")
2767
2767
  return dt(s, e, t, i, o);
2768
2768
  let a = e.schema.tags.find((y) => y.tag === o && y.collection === l);
2769
2769
  if (!a) {
@@ -2776,11 +2776,11 @@ function Un(s, e, t, n, i) {
2776
2776
  const c = dt(s, e, t, i, o, a), h = (m = (p = a.resolve) == null ? void 0 : p.call(a, c, (y) => i(r, "TAG_RESOLVE_FAILED", y), e.options)) != null ? m : c, f = M(h) ? h : new N(h);
2777
2777
  return f.range = c.range, f.tag = o, a != null && a.format && (f.format = a.format), f;
2778
2778
  }
2779
- function Ps(s, e, t) {
2780
- const n = e.offset, i = Vn(e, s.options.strict, t);
2779
+ function Ds(s, e, t) {
2780
+ const n = e.offset, i = Jn(e, s.options.strict, t);
2781
2781
  if (!i)
2782
2782
  return { value: "", type: null, comment: "", range: [n, n, n] };
2783
- const r = i.mode === ">" ? N.BLOCK_FOLDED : N.BLOCK_LITERAL, o = e.source ? Jn(e.source) : [];
2783
+ const r = i.mode === ">" ? N.BLOCK_FOLDED : N.BLOCK_LITERAL, o = e.source ? Qn(e.source) : [];
2784
2784
  let l = o.length;
2785
2785
  for (let u = o.length - 1; u >= 0; --u) {
2786
2786
  const g = o[u][1];
@@ -2849,7 +2849,7 @@ function Ps(s, e, t) {
2849
2849
  const y = n + i.length + e.source.length;
2850
2850
  return { value: f, type: r, comment: i.comment, range: [n, y, y] };
2851
2851
  }
2852
- function Vn({ offset: s, props: e }, t, n) {
2852
+ function Jn({ offset: s, props: e }, t, n) {
2853
2853
  if (e[0].type !== "block-scalar-header")
2854
2854
  return n(e[0], "IMPOSSIBLE", "Block scalar header not found"), null;
2855
2855
  const { source: i } = e[0], r = i[0];
@@ -2889,25 +2889,25 @@ function Vn({ offset: s, props: e }, t, n) {
2889
2889
  }
2890
2890
  return { mode: r, indent: o, chomp: l, comment: h, length: f };
2891
2891
  }
2892
- function Jn(s) {
2892
+ function Qn(s) {
2893
2893
  const e = s.split(/\n( *)/), t = e[0], n = t.match(/^( *)/), r = [n != null && n[1] ? [n[1], t.slice(n[1].length)] : ["", t]];
2894
2894
  for (let o = 1; o < e.length; o += 2)
2895
2895
  r.push([e[o], e[o + 1]]);
2896
2896
  return r;
2897
2897
  }
2898
- function Ds(s, e, t) {
2898
+ function Ks(s, e, t) {
2899
2899
  const { offset: n, type: i, source: r, end: o } = s;
2900
2900
  let l, a;
2901
2901
  const c = (p, m, y) => t(n + p, m, y);
2902
2902
  switch (i) {
2903
2903
  case "scalar":
2904
- l = N.PLAIN, a = Qn(r, c);
2904
+ l = N.PLAIN, a = Yn(r, c);
2905
2905
  break;
2906
2906
  case "single-quoted-scalar":
2907
- l = N.QUOTE_SINGLE, a = Yn(r, c);
2907
+ l = N.QUOTE_SINGLE, a = Gn(r, c);
2908
2908
  break;
2909
2909
  case "double-quoted-scalar":
2910
- l = N.QUOTE_DOUBLE, a = Gn(r, c);
2910
+ l = N.QUOTE_DOUBLE, a = Wn(r, c);
2911
2911
  break;
2912
2912
  default:
2913
2913
  return t(s, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
@@ -2917,7 +2917,7 @@ function Ds(s, e, t) {
2917
2917
  range: [n, n + r.length, n + r.length]
2918
2918
  };
2919
2919
  }
2920
- const h = n + r.length, f = Ce(o, h, e, t);
2920
+ const h = n + r.length, f = _e(o, h, e, t);
2921
2921
  return {
2922
2922
  value: a,
2923
2923
  type: l,
@@ -2925,7 +2925,7 @@ function Ds(s, e, t) {
2925
2925
  range: [n, h, f.offset]
2926
2926
  };
2927
2927
  }
2928
- function Qn(s, e) {
2928
+ function Yn(s, e) {
2929
2929
  let t = "";
2930
2930
  switch (s[0]) {
2931
2931
  case " ":
@@ -2948,12 +2948,12 @@ function Qn(s, e) {
2948
2948
  break;
2949
2949
  }
2950
2950
  }
2951
- return t && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${t}`), Ks(s);
2951
+ return t && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${t}`), qs(s);
2952
2952
  }
2953
- function Yn(s, e) {
2954
- return (s[s.length - 1] !== "'" || s.length === 1) && e(s.length, "MISSING_CHAR", "Missing closing 'quote"), Ks(s.slice(1, -1)).replace(/''/g, "'");
2953
+ function Gn(s, e) {
2954
+ return (s[s.length - 1] !== "'" || s.length === 1) && e(s.length, "MISSING_CHAR", "Missing closing 'quote"), qs(s.slice(1, -1)).replace(/''/g, "'");
2955
2955
  }
2956
- function Ks(s) {
2956
+ function qs(s) {
2957
2957
  var a;
2958
2958
  let e, t;
2959
2959
  try {
@@ -2974,7 +2974,7 @@ function Ks(s) {
2974
2974
  const l = new RegExp("[ \\t]*(.*)", "sy");
2975
2975
  return l.lastIndex = o, n = l.exec(s), i + r + ((a = n == null ? void 0 : n[1]) != null ? a : "");
2976
2976
  }
2977
- function Gn(s, e) {
2977
+ function Wn(s, e) {
2978
2978
  let t = "";
2979
2979
  for (let n = 1; n < s.length - 1; ++n) {
2980
2980
  const i = s[n];
@@ -2982,11 +2982,11 @@ function Gn(s, e) {
2982
2982
  `))
2983
2983
  if (i === `
2984
2984
  `) {
2985
- const { fold: r, offset: o } = Wn(s, n);
2985
+ const { fold: r, offset: o } = Hn(s, n);
2986
2986
  t += r, n = o;
2987
2987
  } else if (i === "\\") {
2988
2988
  let r = s[++n];
2989
- const o = Hn[r];
2989
+ const o = zn[r];
2990
2990
  if (o)
2991
2991
  t += o;
2992
2992
  else if (r === `
@@ -3017,7 +3017,7 @@ function Gn(s, e) {
3017
3017
  }
3018
3018
  return (s[s.length - 1] !== '"' || s.length === 1) && e(s.length, "MISSING_CHAR", 'Missing closing "quote'), t;
3019
3019
  }
3020
- function Wn(s, e) {
3020
+ function Hn(s, e) {
3021
3021
  let t = "", n = s[e + 1];
3022
3022
  for (; (n === " " || n === " " || n === `
3023
3023
  ` || n === "\r") && !(n === "\r" && s[e + 2] !== `
@@ -3027,7 +3027,7 @@ function Wn(s, e) {
3027
3027
  `), e += 1, n = s[e + 1];
3028
3028
  return t || (t = " "), { fold: t, offset: e };
3029
3029
  }
3030
- const Hn = {
3030
+ const zn = {
3031
3031
  0: "\0",
3032
3032
  // null character
3033
3033
  a: "\x07",
@@ -3069,8 +3069,8 @@ function xn(s, e, t, n) {
3069
3069
  }
3070
3070
  return String.fromCodePoint(o);
3071
3071
  }
3072
- function qs(s, e, t, n) {
3073
- const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? Ps(s, e, n) : Ds(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null, c = t && a ? zn(s.schema, i, a, t, n) : e.type === "scalar" ? Xn(s, i, e, n) : s.schema[Y];
3072
+ function Fs(s, e, t, n) {
3073
+ const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? Ds(s, e, n) : Ks(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null, c = t && a ? Xn(s.schema, i, a, t, n) : e.type === "scalar" ? Zn(s, i, e, n) : s.schema[Y];
3074
3074
  let h;
3075
3075
  try {
3076
3076
  const f = c.resolve(i, (p) => n(t != null ? t : e, "TAG_RESOLVE_FAILED", p), s.options);
@@ -3081,7 +3081,7 @@ function qs(s, e, t, n) {
3081
3081
  }
3082
3082
  return h.range = l, h.source = i, r && (h.type = r), a && (h.tag = a), c.format && (h.format = c.format), o && (h.comment = o), h;
3083
3083
  }
3084
- function zn(s, e, t, n, i) {
3084
+ function Xn(s, e, t, n, i) {
3085
3085
  var l;
3086
3086
  if (t === "!")
3087
3087
  return s[Y];
@@ -3098,7 +3098,7 @@ function zn(s, e, t, n, i) {
3098
3098
  const o = s.knownTags[t];
3099
3099
  return o && !o.collection ? (s.tags.push(Object.assign({}, o, { default: !1, test: void 0 })), o) : (i(n, "TAG_RESOLVE_FAILED", `Unresolved tag: ${t}`, t !== "tag:yaml.org,2002:str"), s[Y]);
3100
3100
  }
3101
- function Xn({ directives: s, schema: e }, t, n, i) {
3101
+ function Zn({ directives: s, schema: e }, t, n, i) {
3102
3102
  var o;
3103
3103
  const r = e.tags.find((l) => {
3104
3104
  var a;
@@ -3116,7 +3116,7 @@ function Xn({ directives: s, schema: e }, t, n, i) {
3116
3116
  }
3117
3117
  return r;
3118
3118
  }
3119
- function Zn(s, e, t) {
3119
+ function ei(s, e, t) {
3120
3120
  if (e) {
3121
3121
  t === null && (t = e.length);
3122
3122
  for (let n = t - 1; n >= 0; --n) {
@@ -3135,24 +3135,24 @@ function Zn(s, e, t) {
3135
3135
  }
3136
3136
  return s;
3137
3137
  }
3138
- const ei = { composeNode: Fs, composeEmptyNode: Bt };
3139
- function Fs(s, e, t, n) {
3138
+ const ti = { composeNode: Rs, composeEmptyNode: Bt };
3139
+ function Rs(s, e, t, n) {
3140
3140
  const { spaceBefore: i, comment: r, anchor: o, tag: l } = t;
3141
3141
  let a, c = !0;
3142
3142
  switch (e.type) {
3143
3143
  case "alias":
3144
- a = ti(s, e, n), (o || l) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3144
+ a = si(s, e, n), (o || l) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3145
3145
  break;
3146
3146
  case "scalar":
3147
3147
  case "single-quoted-scalar":
3148
3148
  case "double-quoted-scalar":
3149
3149
  case "block-scalar":
3150
- a = qs(s, e, l, n), o && (a.anchor = o.source.substring(1));
3150
+ a = Fs(s, e, l, n), o && (a.anchor = o.source.substring(1));
3151
3151
  break;
3152
3152
  case "block-map":
3153
3153
  case "block-seq":
3154
3154
  case "flow-collection":
3155
- a = Un(ei, s, e, t, n), o && (a.anchor = o.source.substring(1));
3155
+ a = Vn(ti, s, e, t, n), o && (a.anchor = o.source.substring(1));
3156
3156
  break;
3157
3157
  default: {
3158
3158
  const h = e.type === "error" ? e.message : `Unsupported token (type: ${e.type})`;
@@ -3164,19 +3164,19 @@ function Fs(s, e, t, n) {
3164
3164
  function Bt(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a }, c) {
3165
3165
  const h = {
3166
3166
  type: "scalar",
3167
- offset: Zn(e, t, n),
3167
+ offset: ei(e, t, n),
3168
3168
  indent: -1,
3169
3169
  source: ""
3170
- }, f = qs(s, h, l, c);
3170
+ }, f = Fs(s, h, l, c);
3171
3171
  return o && (f.anchor = o.source.substring(1), f.anchor === "" && c(o, "BAD_ALIAS", "Anchor cannot be an empty string")), i && (f.spaceBefore = !0), r && (f.comment = r, f.range[2] = a), f;
3172
3172
  }
3173
- function ti({ options: s }, { offset: e, source: t, end: n }, i) {
3174
- const r = new Qe(t.substring(1));
3173
+ function si({ options: s }, { offset: e, source: t, end: n }, i) {
3174
+ const r = new Ye(t.substring(1));
3175
3175
  r.source === "" && i(e, "BAD_ALIAS", "Alias cannot be an empty string"), r.source.endsWith(":") && i(e + t.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", !0);
3176
- const o = e + t.length, l = Ce(n, o, s.strict, i);
3176
+ const o = e + t.length, l = _e(n, o, s.strict, i);
3177
3177
  return r.range = [e, o, l.offset], l.comment && (r.comment = l.comment), r;
3178
3178
  }
3179
- function si(s, e, { offset: t, start: n, value: i, end: r }, o) {
3179
+ function ni(s, e, { offset: t, start: n, value: i, end: r }, o) {
3180
3180
  const l = Object.assign({ _directives: e }, s), a = new ke(void 0, l), c = {
3181
3181
  atRoot: !0,
3182
3182
  directives: a.directives,
@@ -3190,8 +3190,8 @@ function si(s, e, { offset: t, start: n, value: i, end: r }, o) {
3190
3190
  parentIndent: 0,
3191
3191
  startOnNewline: !0
3192
3192
  });
3193
- h.found && (a.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !h.hasNewline && o(h.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), a.contents = i ? Fs(c, i, h, o) : Bt(c, h.end, n, null, h, o);
3194
- const f = a.contents.range[2], p = Ce(r, f, !1, o);
3193
+ h.found && (a.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !h.hasNewline && o(h.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), a.contents = i ? Rs(c, i, h, o) : Bt(c, h.end, n, null, h, o);
3194
+ const f = a.contents.range[2], p = _e(r, f, !1, o);
3195
3195
  return p.comment && (a.comment = p.comment), a.range = [t, f, p.offset], a;
3196
3196
  }
3197
3197
  function Ne(s) {
@@ -3227,7 +3227,7 @@ class jt {
3227
3227
  constructor(e = {}) {
3228
3228
  this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (t, n, i, r) => {
3229
3229
  const o = Ne(t);
3230
- r ? this.warnings.push(new Bs(o, n, i)) : this.errors.push(new te(o, n, i));
3230
+ r ? this.warnings.push(new js(o, n, i)) : this.errors.push(new te(o, n, i));
3231
3231
  }, this.directives = new P({ version: e.version || "1.2" }), this.options = e;
3232
3232
  }
3233
3233
  decorate(e, t) {
@@ -3287,7 +3287,7 @@ ${o}` : n;
3287
3287
  }), this.prelude.push(e.source), this.atDirectives = !0;
3288
3288
  break;
3289
3289
  case "document": {
3290
- const t = si(this.options, this.directives, e, this.onError);
3290
+ const t = ni(this.options, this.directives, e, this.onError);
3291
3291
  this.atDirectives && !t.directives.docStart && this.onError(e, "MISSING_CHAR", "Missing directives-end/doc-start indicator line"), this.decorate(t, !1), this.doc && (yield this.doc), this.doc = t, this.atDirectives = !1;
3292
3292
  break;
3293
3293
  }
@@ -3310,7 +3310,7 @@ ${o}` : n;
3310
3310
  break;
3311
3311
  }
3312
3312
  this.doc.directives.docEnd = !0;
3313
- const t = Ce(e.end, e.offset + e.source.length, this.doc.options.strict, this.onError);
3313
+ const t = _e(e.end, e.offset + e.source.length, this.doc.options.strict, this.onError);
3314
3314
  if (this.decorate(this.doc, !0), t.comment) {
3315
3315
  const n = this.doc.comment;
3316
3316
  this.doc.comment = n ? `${n}
@@ -3338,7 +3338,7 @@ ${t.comment}` : t.comment;
3338
3338
  }
3339
3339
  }
3340
3340
  }
3341
- function ni(s, e = !0, t) {
3341
+ function ii(s, e = !0, t) {
3342
3342
  if (s) {
3343
3343
  const n = (i, r, o) => {
3344
3344
  const l = typeof i == "number" ? i : Array.isArray(i) ? i[0] : i.offset;
@@ -3351,16 +3351,16 @@ function ni(s, e = !0, t) {
3351
3351
  case "scalar":
3352
3352
  case "single-quoted-scalar":
3353
3353
  case "double-quoted-scalar":
3354
- return Ds(s, e, n);
3354
+ return Ks(s, e, n);
3355
3355
  case "block-scalar":
3356
- return Ps({ options: { strict: e } }, s, n);
3356
+ return Ds({ options: { strict: e } }, s, n);
3357
3357
  }
3358
3358
  }
3359
3359
  return null;
3360
3360
  }
3361
- function ii(s, e) {
3361
+ function ri(s, e) {
3362
3362
  var c;
3363
- const { implicitKey: t = !1, indent: n, inFlow: i = !1, offset: r = -1, type: o = "PLAIN" } = e, l = Le({ type: o, value: s }, {
3363
+ const { implicitKey: t = !1, indent: n, inFlow: i = !1, offset: r = -1, type: o = "PLAIN" } = e, l = $e({ type: o, value: s }, {
3364
3364
  implicitKey: t,
3365
3365
  indent: n > 0 ? " ".repeat(n) : "",
3366
3366
  inFlow: i,
@@ -3377,7 +3377,7 @@ function ii(s, e) {
3377
3377
  `, m = [
3378
3378
  { type: "block-scalar-header", offset: r, indent: n, source: f }
3379
3379
  ];
3380
- return Rs(m, a) || m.push({ type: "newline", offset: -1, indent: n, source: `
3380
+ return Us(m, a) || m.push({ type: "newline", offset: -1, indent: n, source: `
3381
3381
  ` }), { type: "block-scalar", offset: r, indent: n, props: m, source: p };
3382
3382
  }
3383
3383
  case '"':
@@ -3388,7 +3388,7 @@ function ii(s, e) {
3388
3388
  return { type: "scalar", offset: r, indent: n, source: l, end: a };
3389
3389
  }
3390
3390
  }
3391
- function ri(s, e, t = {}) {
3391
+ function oi(s, e, t = {}) {
3392
3392
  let { afterKey: n = !1, implicitKey: i = !1, inFlow: r = !1, type: o } = t, l = "indent" in s ? s.indent : null;
3393
3393
  if (n && typeof l == "number" && (l += 2), !o)
3394
3394
  switch (s.type) {
@@ -3408,7 +3408,7 @@ function ri(s, e, t = {}) {
3408
3408
  default:
3409
3409
  o = "PLAIN";
3410
3410
  }
3411
- const a = Le({ type: o, value: e }, {
3411
+ const a = $e({ type: o, value: e }, {
3412
3412
  implicitKey: i || l === null,
3413
3413
  indent: l !== null && l > 0 ? " ".repeat(l) : "",
3414
3414
  inFlow: r,
@@ -3417,7 +3417,7 @@ function ri(s, e, t = {}) {
3417
3417
  switch (a[0]) {
3418
3418
  case "|":
3419
3419
  case ">":
3420
- oi(s, a);
3420
+ li(s, a);
3421
3421
  break;
3422
3422
  case '"':
3423
3423
  pt(s, a, "double-quoted-scalar");
@@ -3429,7 +3429,7 @@ function ri(s, e, t = {}) {
3429
3429
  pt(s, a, "scalar");
3430
3430
  }
3431
3431
  }
3432
- function oi(s, e) {
3432
+ function li(s, e) {
3433
3433
  const t = e.indexOf(`
3434
3434
  `), n = e.substring(0, t), i = e.substring(t + 1) + `
3435
3435
  `;
@@ -3442,14 +3442,14 @@ function oi(s, e) {
3442
3442
  const { offset: r } = s, o = "indent" in s ? s.indent : -1, l = [
3443
3443
  { type: "block-scalar-header", offset: r, indent: o, source: n }
3444
3444
  ];
3445
- Rs(l, "end" in s ? s.end : void 0) || l.push({ type: "newline", offset: -1, indent: o, source: `
3445
+ Us(l, "end" in s ? s.end : void 0) || l.push({ type: "newline", offset: -1, indent: o, source: `
3446
3446
  ` });
3447
3447
  for (const a of Object.keys(s))
3448
3448
  a !== "type" && a !== "offset" && delete s[a];
3449
3449
  Object.assign(s, { type: "block-scalar", indent: o, props: l, source: i });
3450
3450
  }
3451
3451
  }
3452
- function Rs(s, e) {
3452
+ function Us(s, e) {
3453
3453
  if (e)
3454
3454
  for (const t of e)
3455
3455
  switch (t.type) {
@@ -3493,32 +3493,32 @@ function pt(s, e, t) {
3493
3493
  }
3494
3494
  }
3495
3495
  }
3496
- const li = (s) => "type" in s ? Ve(s) : qe(s);
3497
- function Ve(s) {
3496
+ const ai = (s) => "type" in s ? Je(s) : Fe(s);
3497
+ function Je(s) {
3498
3498
  switch (s.type) {
3499
3499
  case "block-scalar": {
3500
3500
  let e = "";
3501
3501
  for (const t of s.props)
3502
- e += Ve(t);
3502
+ e += Je(t);
3503
3503
  return e + s.source;
3504
3504
  }
3505
3505
  case "block-map":
3506
3506
  case "block-seq": {
3507
3507
  let e = "";
3508
3508
  for (const t of s.items)
3509
- e += qe(t);
3509
+ e += Fe(t);
3510
3510
  return e;
3511
3511
  }
3512
3512
  case "flow-collection": {
3513
3513
  let e = s.start.source;
3514
3514
  for (const t of s.items)
3515
- e += qe(t);
3515
+ e += Fe(t);
3516
3516
  for (const t of s.end)
3517
3517
  e += t.source;
3518
3518
  return e;
3519
3519
  }
3520
3520
  case "document": {
3521
- let e = qe(s);
3521
+ let e = Fe(s);
3522
3522
  if (s.end)
3523
3523
  for (const t of s.end)
3524
3524
  e += t.source;
@@ -3533,22 +3533,22 @@ function Ve(s) {
3533
3533
  }
3534
3534
  }
3535
3535
  }
3536
- function qe({ start: s, key: e, sep: t, value: n }) {
3536
+ function Fe({ start: s, key: e, sep: t, value: n }) {
3537
3537
  let i = "";
3538
3538
  for (const r of s)
3539
3539
  i += r.source;
3540
- if (e && (i += Ve(e)), t)
3540
+ if (e && (i += Je(e)), t)
3541
3541
  for (const r of t)
3542
3542
  i += r.source;
3543
- return n && (i += Ve(n)), i;
3543
+ return n && (i += Je(n)), i;
3544
3544
  }
3545
- const kt = Symbol("break visit"), ai = Symbol("skip children"), Us = Symbol("remove item");
3545
+ const kt = Symbol("break visit"), ci = Symbol("skip children"), Vs = Symbol("remove item");
3546
3546
  function se(s, e) {
3547
- "type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Vs(Object.freeze([]), s, e);
3547
+ "type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Js(Object.freeze([]), s, e);
3548
3548
  }
3549
3549
  se.BREAK = kt;
3550
- se.SKIP = ai;
3551
- se.REMOVE = Us;
3550
+ se.SKIP = ci;
3551
+ se.REMOVE = Vs;
3552
3552
  se.itemAtPath = (s, e) => {
3553
3553
  let t = s;
3554
3554
  for (const [n, i] of e) {
@@ -3566,7 +3566,7 @@ se.parentCollection = (s, e) => {
3566
3566
  return i;
3567
3567
  throw new Error("Parent collection not found");
3568
3568
  };
3569
- function Vs(s, e, t) {
3569
+ function Js(s, e, t) {
3570
3570
  let n = t(e, s);
3571
3571
  if (typeof n == "symbol")
3572
3572
  return n;
@@ -3574,13 +3574,13 @@ function Vs(s, e, t) {
3574
3574
  const r = e[i];
3575
3575
  if (r && "items" in r) {
3576
3576
  for (let o = 0; o < r.items.length; ++o) {
3577
- const l = Vs(Object.freeze(s.concat([[i, o]])), r.items[o], t);
3577
+ const l = Js(Object.freeze(s.concat([[i, o]])), r.items[o], t);
3578
3578
  if (typeof l == "number")
3579
3579
  o = l - 1;
3580
3580
  else {
3581
3581
  if (l === kt)
3582
3582
  return kt;
3583
- l === Us && (r.items.splice(o, 1), o -= 1);
3583
+ l === Vs && (r.items.splice(o, 1), o -= 1);
3584
3584
  }
3585
3585
  }
3586
3586
  typeof n == "function" && i === "key" && (n = n(e, s));
@@ -3588,30 +3588,30 @@ function Vs(s, e, t) {
3588
3588
  }
3589
3589
  return typeof n == "function" ? n(e, s) : n;
3590
3590
  }
3591
- const tt = "\uFEFF", st = "", nt = "", Ee = "", ci = (s) => !!s && "items" in s, fi = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
3592
- function ui(s) {
3591
+ const st = "\uFEFF", nt = "", it = "", Le = "", fi = (s) => !!s && "items" in s, ui = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
3592
+ function hi(s) {
3593
3593
  switch (s) {
3594
- case tt:
3595
- return "<BOM>";
3596
3594
  case st:
3597
- return "<DOC>";
3595
+ return "<BOM>";
3598
3596
  case nt:
3597
+ return "<DOC>";
3598
+ case it:
3599
3599
  return "<FLOW_END>";
3600
- case Ee:
3600
+ case Le:
3601
3601
  return "<SCALAR>";
3602
3602
  default:
3603
3603
  return JSON.stringify(s);
3604
3604
  }
3605
3605
  }
3606
- function Js(s) {
3606
+ function Qs(s) {
3607
3607
  switch (s) {
3608
- case tt:
3609
- return "byte-order-mark";
3610
3608
  case st:
3611
- return "doc-mode";
3609
+ return "byte-order-mark";
3612
3610
  case nt:
3611
+ return "doc-mode";
3612
+ case it:
3613
3613
  return "flow-error-end";
3614
- case Ee:
3614
+ case Le:
3615
3615
  return "scalar";
3616
3616
  case "---":
3617
3617
  return "doc-start";
@@ -3664,20 +3664,20 @@ function Js(s) {
3664
3664
  }
3665
3665
  return null;
3666
3666
  }
3667
- const hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3667
+ const di = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3668
3668
  __proto__: null,
3669
- BOM: tt,
3670
- DOCUMENT: st,
3671
- FLOW_END: nt,
3672
- SCALAR: Ee,
3673
- createScalarToken: ii,
3674
- isCollection: ci,
3675
- isScalar: fi,
3676
- prettyToken: ui,
3677
- resolveAsScalar: ni,
3678
- setScalarValue: ri,
3679
- stringify: li,
3680
- tokenType: Js,
3669
+ BOM: st,
3670
+ DOCUMENT: nt,
3671
+ FLOW_END: it,
3672
+ SCALAR: Le,
3673
+ createScalarToken: ri,
3674
+ isCollection: fi,
3675
+ isScalar: ui,
3676
+ prettyToken: hi,
3677
+ resolveAsScalar: ii,
3678
+ setScalarValue: oi,
3679
+ stringify: ai,
3680
+ tokenType: Qs,
3681
3681
  visit: se
3682
3682
  }, Symbol.toStringTag, { value: "Module" }));
3683
3683
  function U(s) {
@@ -3693,9 +3693,9 @@ function U(s) {
3693
3693
  return !1;
3694
3694
  }
3695
3695
  }
3696
- const xt = new Set("0123456789ABCDEFabcdef"), di = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), Be = new Set(",[]{}"), pi = new Set(` ,[]{}
3697
- \r `), mt = (s) => !s || pi.has(s);
3698
- class Qs {
3696
+ const zt = new Set("0123456789ABCDEFabcdef"), pi = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), je = new Set(",[]{}"), mi = new Set(` ,[]{}
3697
+ \r `), mt = (s) => !s || mi.has(s);
3698
+ class Ys {
3699
3699
  constructor() {
3700
3700
  this.atEnd = !1, this.blockScalarIndent = -1, this.blockScalarKeep = !1, this.buffer = "", this.flowKey = !1, this.flowLevel = 0, this.indentNext = 0, this.indentValue = 0, this.lineEndPos = null, this.next = null, this.pos = 0;
3701
3701
  }
@@ -3788,7 +3788,7 @@ class Qs {
3788
3788
  let e = this.getLine();
3789
3789
  if (e === null)
3790
3790
  return this.setNext("stream");
3791
- if (e[0] === tt && (yield* d(this.pushCount(1)), e = e.substring(1)), e[0] === "%") {
3791
+ if (e[0] === st && (yield* d(this.pushCount(1)), e = e.substring(1)), e[0] === "%") {
3792
3792
  let t = e.length, n = e.indexOf("#");
3793
3793
  for (; n !== -1; ) {
3794
3794
  const r = e[n - 1];
@@ -3812,7 +3812,7 @@ class Qs {
3812
3812
  const t = yield* d(this.pushSpaces(!0));
3813
3813
  return yield* d(this.pushCount(e.length - t)), yield* d(this.pushNewline()), "stream";
3814
3814
  }
3815
- return yield st, yield* d(this.parseLineStart());
3815
+ return yield nt, yield* d(this.parseLineStart());
3816
3816
  }
3817
3817
  *parseLineStart() {
3818
3818
  const e = this.charAt(0);
@@ -3875,7 +3875,7 @@ class Qs {
3875
3875
  if (i === null)
3876
3876
  return this.setNext("flow");
3877
3877
  if ((n !== -1 && n < this.indentNext && i[0] !== "#" || n === 0 && (i.startsWith("---") || i.startsWith("...")) && U(i[3])) && !(n === this.indentNext - 1 && this.flowLevel === 1 && (i[0] === "]" || i[0] === "}")))
3878
- return this.flowLevel = 0, yield nt, yield* d(this.parseLineStart());
3878
+ return this.flowLevel = 0, yield it, yield* d(this.parseLineStart());
3879
3879
  let r = 0;
3880
3880
  for (; i[r] === ","; )
3881
3881
  r += yield* d(this.pushCount(1)), r += yield* d(this.pushSpaces(!0)), this.flowKey = !1;
@@ -4014,7 +4014,7 @@ class Qs {
4014
4014
  else
4015
4015
  break;
4016
4016
  } while (!0);
4017
- return yield Ee, yield* d(this.pushToIndex(e + 1, !0)), yield* d(this.parseLineStart());
4017
+ return yield Le, yield* d(this.pushToIndex(e + 1, !0)), yield* d(this.parseLineStart());
4018
4018
  }
4019
4019
  *parsePlainScalar() {
4020
4020
  const e = this.flowLevel > 0;
@@ -4022,14 +4022,14 @@ class Qs {
4022
4022
  for (; i = this.buffer[++n]; )
4023
4023
  if (i === ":") {
4024
4024
  const r = this.buffer[n + 1];
4025
- if (U(r) || e && Be.has(r))
4025
+ if (U(r) || e && je.has(r))
4026
4026
  break;
4027
4027
  t = n;
4028
4028
  } else if (U(i)) {
4029
4029
  let r = this.buffer[n + 1];
4030
4030
  if (i === "\r" && (r === `
4031
4031
  ` ? (n += 1, i = `
4032
- `, r = this.buffer[n + 1]) : t = n), r === "#" || e && Be.has(r))
4032
+ `, r = this.buffer[n + 1]) : t = n), r === "#" || e && je.has(r))
4033
4033
  break;
4034
4034
  if (i === `
4035
4035
  `) {
@@ -4039,11 +4039,11 @@ class Qs {
4039
4039
  n = Math.max(n, o - 2);
4040
4040
  }
4041
4041
  } else {
4042
- if (e && Be.has(i))
4042
+ if (e && je.has(i))
4043
4043
  break;
4044
4044
  t = n;
4045
4045
  }
4046
- return !i && !this.atEnd ? this.setNext("plain-scalar") : (yield Ee, yield* d(this.pushToIndex(t + 1, !0)), e ? "flow" : "doc");
4046
+ return !i && !this.atEnd ? this.setNext("plain-scalar") : (yield Le, yield* d(this.pushToIndex(t + 1, !0)), e ? "flow" : "doc");
4047
4047
  }
4048
4048
  *pushCount(e) {
4049
4049
  return e > 0 ? (yield this.buffer.substr(this.pos, e), this.pos += e, e) : 0;
@@ -4062,7 +4062,7 @@ class Qs {
4062
4062
  case "?":
4063
4063
  case ":": {
4064
4064
  const e = this.flowLevel > 0, t = this.charAt(1);
4065
- if (U(t) || e && Be.has(t))
4065
+ if (U(t) || e && je.has(t))
4066
4066
  return e ? this.flowKey && (this.flowKey = !1) : this.indentNext = this.indentValue + 1, (yield* d(this.pushCount(1))) + (yield* d(this.pushSpaces(!0))) + (yield* d(this.pushIndicators()));
4067
4067
  }
4068
4068
  }
@@ -4077,9 +4077,9 @@ class Qs {
4077
4077
  } else {
4078
4078
  let e = this.pos + 1, t = this.buffer[e];
4079
4079
  for (; t; )
4080
- if (di.has(t))
4080
+ if (pi.has(t))
4081
4081
  t = this.buffer[++e];
4082
- else if (t === "%" && xt.has(this.buffer[e + 1]) && xt.has(this.buffer[e + 2]))
4082
+ else if (t === "%" && zt.has(this.buffer[e + 1]) && zt.has(this.buffer[e + 2]))
4083
4083
  t = this.buffer[e += 3];
4084
4084
  else
4085
4085
  break;
@@ -4107,7 +4107,7 @@ class Qs {
4107
4107
  return yield* d(this.pushToIndex(t, !1));
4108
4108
  }
4109
4109
  }
4110
- class Ys {
4110
+ class Gs {
4111
4111
  constructor() {
4112
4112
  this.lineStarts = [], this.addNewLine = (e) => this.lineStarts.push(e), this.linePos = (e) => {
4113
4113
  let t = 0, n = this.lineStarts.length;
@@ -4130,7 +4130,7 @@ function X(s, e) {
4130
4130
  return !0;
4131
4131
  return !1;
4132
4132
  }
4133
- function zt(s) {
4133
+ function xt(s) {
4134
4134
  for (let e = 0; e < s.length; ++e)
4135
4135
  switch (s[e].type) {
4136
4136
  case "space":
@@ -4142,7 +4142,7 @@ function zt(s) {
4142
4142
  }
4143
4143
  return -1;
4144
4144
  }
4145
- function Gs(s) {
4145
+ function Ws(s) {
4146
4146
  switch (s == null ? void 0 : s.type) {
4147
4147
  case "alias":
4148
4148
  case "scalar":
@@ -4154,7 +4154,7 @@ function Gs(s) {
4154
4154
  return !1;
4155
4155
  }
4156
4156
  }
4157
- function je(s) {
4157
+ function Pe(s) {
4158
4158
  var e;
4159
4159
  switch (s.type) {
4160
4160
  case "document":
@@ -4191,7 +4191,7 @@ function oe(s) {
4191
4191
  function Xt(s) {
4192
4192
  if (s.start.type === "flow-seq-start")
4193
4193
  for (const e of s.items)
4194
- e.sep && !e.value && !X(e.start, "explicit-key-ind") && !X(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, Gs(e.value) ? e.value.end ? Array.prototype.push.apply(e.value.end, e.sep) : e.value.end = e.sep : Array.prototype.push.apply(e.start, e.sep), delete e.sep);
4194
+ e.sep && !e.value && !X(e.start, "explicit-key-ind") && !X(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, Ws(e.value) ? e.value.end ? Array.prototype.push.apply(e.value.end, e.sep) : e.value.end = e.sep : Array.prototype.push.apply(e.start, e.sep), delete e.sep);
4195
4195
  }
4196
4196
  class Pt {
4197
4197
  /**
@@ -4199,7 +4199,7 @@ class Pt {
4199
4199
  * each new line (in `parse()`, including the start of input).
4200
4200
  */
4201
4201
  constructor(e) {
4202
- this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Qs(), this.onNewLine = e;
4202
+ this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Ys(), this.onNewLine = e;
4203
4203
  }
4204
4204
  /**
4205
4205
  * Parse `source` as a YAML stream.
@@ -4223,7 +4223,7 @@ class Pt {
4223
4223
  this.atScalar = !1, yield* d(this.step()), this.offset += e.length;
4224
4224
  return;
4225
4225
  }
4226
- const t = Js(e);
4226
+ const t = Qs(e);
4227
4227
  if (t)
4228
4228
  if (t === "scalar")
4229
4229
  this.atNewLine = !1, this.atScalar = !0, this.type = "scalar";
@@ -4347,7 +4347,7 @@ class Pt {
4347
4347
  }
4348
4348
  if ((n.type === "document" || n.type === "block-map" || n.type === "block-seq") && (t.type === "block-map" || t.type === "block-seq")) {
4349
4349
  const i = t.items[t.items.length - 1];
4350
- i && !i.sep && !i.value && i.start.length > 0 && zt(i.start) === -1 && (t.indent === 0 || i.start.every((r) => r.type !== "comment" || r.indent < t.indent)) && (n.type === "document" ? n.end = i.start : n.items.push({ start: i.start }), t.items.splice(-1, 1));
4350
+ i && !i.sep && !i.value && i.start.length > 0 && xt(i.start) === -1 && (t.indent === 0 || i.start.every((r) => r.type !== "comment" || r.indent < t.indent)) && (n.type === "document" ? n.end = i.start : n.items.push({ start: i.start }), t.items.splice(-1, 1));
4351
4351
  }
4352
4352
  }
4353
4353
  }
@@ -4385,7 +4385,7 @@ class Pt {
4385
4385
  return yield* d(this.lineEnd(e));
4386
4386
  switch (this.type) {
4387
4387
  case "doc-start": {
4388
- zt(e.start) !== -1 ? (yield* d(this.pop()), yield* d(this.step())) : e.start.push(this.sourceToken);
4388
+ xt(e.start) !== -1 ? (yield* d(this.pop()), yield* d(this.step())) : e.start.push(this.sourceToken);
4389
4389
  return;
4390
4390
  }
4391
4391
  case "anchor":
@@ -4406,7 +4406,7 @@ class Pt {
4406
4406
  }
4407
4407
  *scalar(e) {
4408
4408
  if (this.type === "map-value-ind") {
4409
- const t = je(this.peek(2)), n = oe(t);
4409
+ const t = Pe(this.peek(2)), n = oe(t);
4410
4410
  let i;
4411
4411
  e.end ? (i = e.end, i.push(this.sourceToken), delete e.end) : i = [this.sourceToken];
4412
4412
  const r = {
@@ -4516,7 +4516,7 @@ class Pt {
4516
4516
  indent: this.indent,
4517
4517
  items: [{ start: o, key: null, sep: [this.sourceToken] }]
4518
4518
  });
4519
- else if (Gs(t.key) && !X(t.sep, "newline")) {
4519
+ else if (Ws(t.key) && !X(t.sep, "newline")) {
4520
4520
  const l = oe(t.start), a = t.key, c = t.sep;
4521
4521
  c.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
4522
4522
  type: "block-map",
@@ -4655,7 +4655,7 @@ class Pt {
4655
4655
  if (n.type === "block-map" && (this.type === "map-value-ind" && n.indent === e.indent || this.type === "newline" && !n.items[n.items.length - 1].sep))
4656
4656
  yield* d(this.pop()), yield* d(this.step());
4657
4657
  else if (this.type === "map-value-ind" && n.type !== "flow-collection") {
4658
- const i = je(n), r = oe(i);
4658
+ const i = Pe(n), r = oe(i);
4659
4659
  Xt(e);
4660
4660
  const o = e.end.splice(1, e.end.length);
4661
4661
  o.push(this.sourceToken);
@@ -4719,7 +4719,7 @@ class Pt {
4719
4719
  };
4720
4720
  case "explicit-key-ind": {
4721
4721
  this.onKeyLine = !0;
4722
- const t = je(e), n = oe(t);
4722
+ const t = Pe(e), n = oe(t);
4723
4723
  return n.push(this.sourceToken), {
4724
4724
  type: "block-map",
4725
4725
  offset: this.offset,
@@ -4729,7 +4729,7 @@ class Pt {
4729
4729
  }
4730
4730
  case "map-value-ind": {
4731
4731
  this.onKeyLine = !0;
4732
- const t = je(e), n = oe(t);
4732
+ const t = Pe(e), n = oe(t);
4733
4733
  return {
4734
4734
  type: "block-map",
4735
4735
  offset: this.offset,
@@ -4765,19 +4765,19 @@ class Pt {
4765
4765
  }
4766
4766
  }
4767
4767
  }
4768
- function Ws(s) {
4768
+ function Hs(s) {
4769
4769
  const e = s.prettyErrors !== !1;
4770
- return { lineCounter: s.lineCounter || e && new Ys() || null, prettyErrors: e };
4770
+ return { lineCounter: s.lineCounter || e && new Gs() || null, prettyErrors: e };
4771
4771
  }
4772
- function mi(s, e = {}) {
4773
- const { lineCounter: t, prettyErrors: n } = Ws(e), i = new Pt(t == null ? void 0 : t.addNewLine), r = new jt(e), o = Array.from(r.compose(i.parse(s)));
4772
+ function yi(s, e = {}) {
4773
+ const { lineCounter: t, prettyErrors: n } = Hs(e), i = new Pt(t == null ? void 0 : t.addNewLine), r = new jt(e), o = Array.from(r.compose(i.parse(s)));
4774
4774
  if (n && t)
4775
4775
  for (const l of o)
4776
- l.errors.forEach(Ue(s, t)), l.warnings.forEach(Ue(s, t));
4776
+ l.errors.forEach(Ve(s, t)), l.warnings.forEach(Ve(s, t));
4777
4777
  return o.length > 0 ? o : Object.assign([], { empty: !0 }, r.streamInfo());
4778
4778
  }
4779
- function Hs(s, e = {}) {
4780
- const { lineCounter: t, prettyErrors: n } = Ws(e), i = new Pt(t == null ? void 0 : t.addNewLine), r = new jt(e);
4779
+ function zs(s, e = {}) {
4780
+ const { lineCounter: t, prettyErrors: n } = Hs(e), i = new Pt(t == null ? void 0 : t.addNewLine), r = new jt(e);
4781
4781
  let o = null;
4782
4782
  for (const l of r.compose(i.parse(s), !0, s.length))
4783
4783
  if (!o)
@@ -4786,22 +4786,22 @@ function Hs(s, e = {}) {
4786
4786
  o.errors.push(new te(l.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
4787
4787
  break;
4788
4788
  }
4789
- return n && t && (o.errors.forEach(Ue(s, t)), o.warnings.forEach(Ue(s, t))), o;
4789
+ return n && t && (o.errors.forEach(Ve(s, t)), o.warnings.forEach(Ve(s, t))), o;
4790
4790
  }
4791
- function yi(s, e, t) {
4791
+ function gi(s, e, t) {
4792
4792
  let n;
4793
4793
  typeof e == "function" ? n = e : t === void 0 && e && typeof e == "object" && (t = e);
4794
- const i = Hs(s, t);
4794
+ const i = zs(s, t);
4795
4795
  if (!i)
4796
4796
  return null;
4797
- if (i.warnings.forEach((r) => ys(i.options.logLevel, r)), i.errors.length > 0) {
4797
+ if (i.warnings.forEach((r) => gs(i.options.logLevel, r)), i.errors.length > 0) {
4798
4798
  if (i.options.logLevel !== "silent")
4799
4799
  throw i.errors[0];
4800
4800
  i.errors = [];
4801
4801
  }
4802
4802
  return i.toJS(Object.assign({ reviver: n }, t));
4803
4803
  }
4804
- function gi(s, e, t) {
4804
+ function bi(s, e, t) {
4805
4805
  var i;
4806
4806
  let n = null;
4807
4807
  if (typeof e == "function" || Array.isArray(e) ? n = e : t === void 0 && e && (t = e), typeof t == "string" && (t = t.length), typeof t == "number") {
@@ -4817,21 +4817,21 @@ function gi(s, e, t) {
4817
4817
  }
4818
4818
  const Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4819
4819
  __proto__: null,
4820
- Alias: Qe,
4821
- CST: hi,
4820
+ Alias: Ye,
4821
+ CST: di,
4822
4822
  Composer: jt,
4823
4823
  Document: ke,
4824
- Lexer: Qs,
4825
- LineCounter: Ys,
4824
+ Lexer: Ys,
4825
+ LineCounter: Gs,
4826
4826
  Pair: j,
4827
4827
  Parser: Pt,
4828
4828
  Scalar: N,
4829
- Schema: et,
4829
+ Schema: tt,
4830
4830
  YAMLError: vt,
4831
4831
  YAMLMap: K,
4832
4832
  YAMLParseError: te,
4833
- YAMLSeq: x,
4834
- YAMLWarning: Bs,
4833
+ YAMLSeq: z,
4834
+ YAMLWarning: js,
4835
4835
  isAlias: ne,
4836
4836
  isCollection: $,
4837
4837
  isDocument: ye,
@@ -4840,13 +4840,13 @@ const Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4840
4840
  isPair: E,
4841
4841
  isScalar: A,
4842
4842
  isSeq: be,
4843
- parse: yi,
4844
- parseAllDocuments: mi,
4845
- parseDocument: Hs,
4846
- stringify: gi,
4843
+ parse: gi,
4844
+ parseAllDocuments: yi,
4845
+ parseDocument: zs,
4846
+ stringify: bi,
4847
4847
  visit: H,
4848
- visitAsync: Je
4849
- }, Symbol.toStringTag, { value: "Module" })), bi = `# This is your query - you can modify it directly and click Run to see new results.
4848
+ visitAsync: Qe
4849
+ }, Symbol.toStringTag, { value: "Module" })), wi = `# This is your query - you can modify it directly and click Run to see new results.
4850
4850
  # Try uncommenting the elements below
4851
4851
  # To learn more about the query syntax, visit [Doc URL]
4852
4852
  ---
@@ -4888,7 +4888,7 @@ model: {{dataSourceTitle}}
4888
4888
  # - name: Dimension2
4889
4889
  # - name: Measure1
4890
4890
  # - name: Measure2`;
4891
- class Ci {
4891
+ class _i {
4892
4892
  /**
4893
4893
  * Constructor for QueryTranslator.
4894
4894
  *
@@ -4896,15 +4896,15 @@ class Ci {
4896
4896
  * @param fields - The data source fields
4897
4897
  */
4898
4898
  constructor(e, t) {
4899
- ot(this, "contextTitle");
4900
- ot(this, "indexedFields", {});
4899
+ lt(this, "contextTitle");
4900
+ lt(this, "indexedFields", {});
4901
4901
  this.contextTitle = e, this.indexedFields = this.indexFields(t);
4902
4902
  }
4903
4903
  indexFields(e) {
4904
4904
  return e.reduce((t, n) => {
4905
4905
  const i = n.id;
4906
4906
  t[i] = n;
4907
- const r = en(i);
4907
+ const r = tn(i);
4908
4908
  return i !== r && (t[r] = G(R({}, n), { id: r })), t;
4909
4909
  }, {});
4910
4910
  }
@@ -4912,7 +4912,7 @@ class Ci {
4912
4912
  * Concatenates Aggregation Types.
4913
4913
  */
4914
4914
  concatAggTypes() {
4915
- return Object.values(an).map((t) => on.aggregationToJAQL(t)).join("|");
4915
+ return Object.values(cn).map((t) => on.aggregationToJAQL(t)).join("|");
4916
4916
  }
4917
4917
  /**
4918
4918
  * Simplifies Aggregation Formula defined in MetadataItemJaql returned from chat response.
@@ -5010,8 +5010,8 @@ class Ci {
5010
5010
  simplifyChartRecommendations(e) {
5011
5011
  if (!("axesMapping" in e))
5012
5012
  return {};
5013
- const { chartType: t, axesMapping: n } = e, i = Object.entries(n).reduce((r, [o, l]) => (r[o] = l.map((a) => ({ name: a.name })), r), {});
5014
- return { chartType: t, dataOptions: i };
5013
+ const { chartType: t, axesMapping: n, styleOptions: i } = e, r = Object.entries(n).reduce((o, [l, a]) => (o[l] = a.map((c) => ln(c)), o), {});
5014
+ return { chartType: t, dataOptions: r, styleOptions: i };
5015
5015
  }
5016
5016
  /**
5017
5017
  * Returns the query title with the chart type.
@@ -5051,13 +5051,13 @@ class Ci {
5051
5051
  */
5052
5052
  stringifySimple(e) {
5053
5053
  const r = e, { queryTitle: t } = r, n = qt(r, ["queryTitle"]), i = new Zt.Document(n);
5054
- return i.commentBefore = ` ${tn(t)}`, i.directives && (i.directives.docStart = !0), String(i);
5054
+ return i.commentBefore = ` ${sn(t)}`, i.directives && (i.directives.docStart = !0), String(i);
5055
5055
  }
5056
5056
  /**
5057
5057
  * Returns the query template.
5058
5058
  */
5059
5059
  getQueryTemplate() {
5060
- return sn(bi, { dataSourceTitle: this.contextTitle });
5060
+ return nn(wi, { dataSourceTitle: this.contextTitle });
5061
5061
  }
5062
5062
  /**
5063
5063
  * Parses a YAML string to Simple Query Model.
@@ -5067,7 +5067,7 @@ class Ci {
5067
5067
  */
5068
5068
  parseSimple(e) {
5069
5069
  try {
5070
- const t = Zt.parseDocument(e), { commentBefore: n } = t, i = nn(t.toJS());
5070
+ const t = Zt.parseDocument(e), { commentBefore: n } = t, i = rn(t.toJS());
5071
5071
  return i.queryTitle = (n == null ? void 0 : n.trim()) || "", i;
5072
5072
  } catch (t) {
5073
5073
  console.error("Error parsing the YAML string", t);
@@ -5083,8 +5083,8 @@ class Ci {
5083
5083
  expandChartRecommendations(e) {
5084
5084
  if (!e || !("dataOptions" in e))
5085
5085
  return {};
5086
- const { chartType: t, dataOptions: n } = e;
5087
- return { chartFamily: ln(t), chartType: t, axesMapping: n };
5086
+ const { chartType: t, dataOptions: n, styleOptions: i } = e;
5087
+ return { chartFamily: an(t), chartType: t, axesMapping: n, styleOptions: i };
5088
5088
  }
5089
5089
  /**
5090
5090
  * Expands MetadataItemJaql by adding table, column, datatype, and title
@@ -5138,46 +5138,45 @@ class Ci {
5138
5138
  return { jaql: o, chartRecommendations: l, queryTitle: r };
5139
5139
  }
5140
5140
  }
5141
- const _i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5141
+ const Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5142
5142
  __proto__: null
5143
- }, Symbol.toStringTag, { value: "Module" })), wi = "executeQueryTmpl", Si = "executePivotQueryTmpl", ki = (s, e, t) => {
5144
- const n = ns(s), i = {
5145
- dataSourceString: es(s.dataSource),
5146
- dimensionsString: at(s.dimensions || []),
5147
- measuresString: at(s.measures || []),
5148
- filtersString: rn(s.filters),
5149
- highlightsString: at(s.highlights || []),
5150
- extraImportsString: ts(s.filters || [], n)
5143
+ }, Symbol.toStringTag, { value: "Module" })), Si = "executeQueryTmpl", ki = "executePivotQueryTmpl", Ni = (s, e, t) => {
5144
+ const n = es(s), i = {
5145
+ dataSourceString: ts(s.dataSource),
5146
+ dimensionsString: Te(s.dimensions || []),
5147
+ measuresString: Te(s.measures || []),
5148
+ filtersString: ss(s.filters),
5149
+ highlightsString: Te(s.highlights || []),
5150
+ extraImportsString: ns(s.filters || [], n)
5151
5151
  };
5152
- return ss(t, i, e);
5153
- }, Ni = (s, e, t) => {
5154
- const n = ns(s), i = {
5155
- dataSourceString: es(s.dataSource),
5156
- rowsString: "[]",
5157
- // TODO
5158
- valuesString: "[]",
5159
- // TODO
5160
- extraImportsString: ts(s.filters || [], n)
5152
+ return is(t, i, e);
5153
+ }, Oi = (s, e, t) => {
5154
+ const n = es(s), i = {
5155
+ dataSourceString: ts(s.dataSource),
5156
+ rowsString: Te(s.rows || []),
5157
+ valuesString: Te(s.values || []),
5158
+ filtersString: ss(s.filters),
5159
+ extraImportsString: ns(s.filters || [], n)
5161
5160
  };
5162
- return ss(t, i, e);
5163
- }, Oi = ({
5161
+ return is(t, i, e);
5162
+ }, Ti = ({
5164
5163
  queryParams: s,
5165
5164
  uiFramework: e = "react"
5166
- }) => ki(s, e, wi), Ti = ({
5165
+ }) => Ni(s, e, Si), Ii = ({
5167
5166
  pivotQueryParams: s,
5168
5167
  uiFramework: e = "react"
5169
- }) => Ni(s, e, Si), Ii = (s) => Oi(s), Ai = (s) => Ti(s), Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5168
+ }) => Oi(s, e, ki), Ai = (s) => Ti(s), Ei = (s) => Ii(s), vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5170
5169
  __proto__: null,
5171
- toExecutePivotQueryCode: Ai,
5172
- toExecuteQueryCode: Ii
5170
+ toExecutePivotQueryCode: Ei,
5171
+ toExecuteQueryCode: Ai
5173
5172
  }, Symbol.toStringTag, { value: "Module" }));
5174
5173
  export {
5175
- ji as EMPTY_EXPANDED_QUERY_MODEL,
5174
+ Pi as EMPTY_EXPANDED_QUERY_MODEL,
5176
5175
  Ft as EMPTY_SIMPLE_QUERY_MODEL,
5177
- Ci as QueryTranslator,
5178
- _i as dashboardComposer,
5179
- Mi as executeQueryComposer,
5180
- Pi as isByIdWidgetCodeParams,
5181
- Di as isClientSideWidgetCodeParams,
5182
- Ki as widgetComposer
5176
+ _i as QueryTranslator,
5177
+ Mi as dashboardComposer,
5178
+ vi as executeQueryComposer,
5179
+ Di as isByIdWidgetCodeParams,
5180
+ Ki as isClientSideWidgetCodeParams,
5181
+ qi as widgetComposer
5183
5182
  };