@sisense/sdk-ui 1.20.0 → 1.22.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 (103) hide show
  1. package/dist/ai.cjs +67 -67
  2. package/dist/ai.js +895 -950
  3. package/dist/analytics-composer.cjs +18 -18
  4. package/dist/analytics-composer.js +595 -595
  5. package/dist/{get-widget-options-B9VkQy30.js → get-widget-options-DTIulxC2.js} +12387 -12162
  6. package/dist/{get-widget-options-CQuHmkuX.cjs → get-widget-options-DixoCEhn.cjs} +92 -92
  7. package/dist/index.cjs +125 -66
  8. package/dist/index.js +6907 -6448
  9. package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +1 -1
  10. package/dist/packages/sdk-ui/src/ai/use-get-nlg-query-result.d.ts +3 -1
  11. package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +4 -1
  12. package/dist/packages/sdk-ui/src/api/rest-api.d.ts +4 -0
  13. package/dist/packages/sdk-ui/src/app/client-application.d.ts +57 -13
  14. package/dist/packages/sdk-ui/src/app/settings/settings.d.ts +5 -0
  15. package/dist/packages/sdk-ui/src/boxplot-utils.d.ts +6 -5
  16. package/dist/packages/sdk-ui/src/chart/chart.d.ts +1 -0
  17. package/dist/packages/sdk-ui/src/chart-data/advanced-analytics-data.d.ts +6 -42
  18. package/dist/packages/sdk-ui/src/chart-data/areamap-data.d.ts +1 -1
  19. package/dist/packages/sdk-ui/src/chart-data/boxplot-data.d.ts +1 -1
  20. package/dist/packages/sdk-ui/src/chart-data/cartesian-data.d.ts +3 -3
  21. package/dist/packages/sdk-ui/src/chart-data/categorical-data.d.ts +1 -1
  22. package/dist/packages/sdk-ui/src/chart-data/filter-and-aggregate-chart-data.d.ts +2 -2
  23. package/dist/packages/sdk-ui/src/chart-data/indicator-data.d.ts +1 -1
  24. package/dist/packages/sdk-ui/src/chart-data/range-data.d.ts +2 -2
  25. package/dist/packages/sdk-ui/src/chart-data/scatter-data.d.ts +2 -2
  26. package/dist/packages/sdk-ui/src/chart-data/scattermap-data.d.ts +1 -1
  27. package/dist/packages/sdk-ui/src/chart-data/table-data.d.ts +2 -2
  28. package/dist/packages/sdk-ui/src/chart-data-options/translate-boxplot-data-options.d.ts +1 -1
  29. package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +37 -60
  30. package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +34 -19
  31. package/dist/packages/sdk-ui/src/chart-data-options/validate-data-options/validate-data-options.d.ts +2 -2
  32. package/dist/packages/sdk-ui/src/chart-options-processor/data-points.d.ts +5 -4
  33. package/dist/packages/sdk-ui/src/chart-options-processor/plot-bands.d.ts +1 -1
  34. package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +5 -5
  35. package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-axis.d.ts +3 -3
  36. package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-axis.d.ts +2 -2
  37. package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +5 -5
  38. package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +1 -1
  39. package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-data-options.d.ts +1 -1
  40. package/dist/packages/sdk-ui/src/common/hooks/use-fetch.d.ts +2 -5
  41. package/dist/packages/sdk-ui/src/common/hooks/use-synced-state.d.ts +19 -0
  42. package/dist/packages/sdk-ui/src/common-filters/selection-utils.d.ts +9 -1
  43. package/dist/packages/sdk-ui/src/common-filters/use-common-filters.d.ts +4 -2
  44. package/dist/packages/sdk-ui/src/dashboard/components/HorizontalCollapse.d.ts +5 -0
  45. package/dist/packages/sdk-ui/src/dashboard/components/dashboard-header.d.ts +1 -0
  46. package/dist/packages/sdk-ui/src/dashboard/dashboard-by-id.d.ts +4 -1
  47. package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +91 -0
  48. package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +13 -1
  49. package/dist/packages/sdk-ui/src/dashboard/index.d.ts +2 -0
  50. package/dist/packages/sdk-ui/src/dashboard/types.d.ts +18 -0
  51. package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +30 -0
  52. package/dist/packages/sdk-ui/src/dashboard/use-dashboard-theme.d.ts +40 -0
  53. package/dist/packages/sdk-ui/src/dashboard-widget/dashboard-widget.d.ts +2 -2
  54. package/dist/packages/sdk-ui/src/dashboard-widget/translate-widget-data-options.d.ts +13 -3
  55. package/dist/packages/sdk-ui/src/dashboard-widget/types.d.ts +1 -1
  56. package/dist/packages/sdk-ui/src/dashboard-widget/utils.d.ts +1 -0
  57. package/dist/packages/sdk-ui/src/decorators/hook-decorators/with-tracking.d.ts +3 -2
  58. package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
  59. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-display.d.ts +2 -1
  60. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel.d.ts +2 -2
  61. package/dist/packages/sdk-ui/src/filters/components/filters-panel/index.d.ts +1 -1
  62. package/dist/packages/sdk-ui/src/filters/components/unsupported-filter-tile.d.ts +12 -0
  63. package/dist/packages/sdk-ui/src/formulas/use-get-shared-formula.d.ts +3 -4
  64. package/dist/packages/sdk-ui/src/index.d.ts +16 -6
  65. package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model-translator.d.ts +2 -2
  66. package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +1 -1
  67. package/dist/packages/sdk-ui/src/models/dashboard/get-dashboard-model.d.ts +0 -2
  68. package/dist/packages/sdk-ui/src/models/dashboard/index.d.ts +2 -0
  69. package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-dto-utils.d.ts +11 -0
  70. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +22 -0
  71. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model-reducer.d.ts +63 -0
  72. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model.d.ts +38 -0
  73. package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-model.d.ts +2 -2
  74. package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-models.d.ts +2 -2
  75. package/dist/packages/sdk-ui/src/models/hierarchy/use-get-hierarchy-models.d.ts +3 -3
  76. package/dist/packages/sdk-ui/src/models/widget/use-get-widget-model.d.ts +3 -3
  77. package/dist/packages/sdk-ui/src/models/widget/widget-model-translator.d.ts +18 -1
  78. package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +1 -3
  79. package/dist/packages/sdk-ui/src/plugins-provider/types.d.ts +4 -4
  80. package/dist/packages/sdk-ui/src/plugins-provider/use-execute-plugin-query.d.ts +2 -2
  81. package/dist/packages/sdk-ui/src/props.d.ts +42 -23
  82. package/dist/packages/sdk-ui/src/query-execution/execute-query-by-widget-id.d.ts +1 -1
  83. package/dist/packages/sdk-ui/src/query-execution/use-execute-csv-query.d.ts +1 -1
  84. package/dist/packages/sdk-ui/src/query-execution/use-execute-pivot-query.d.ts +1 -1
  85. package/dist/packages/sdk-ui/src/query-execution/use-execute-query-by-widget-id.d.ts +2 -2
  86. package/dist/packages/sdk-ui/src/query-execution/use-execute-query.d.ts +1 -1
  87. package/dist/packages/sdk-ui/src/translation/custom-translations-loader.d.ts +10 -0
  88. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +98 -4
  89. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +196 -8
  90. package/dist/packages/sdk-ui/src/types.d.ts +24 -3
  91. package/dist/packages/sdk-ui/src/widgets/chart-widget.d.ts +1 -1
  92. package/dist/packages/sdk-ui/src/widgets/common/drilldown-utils.d.ts +7 -0
  93. package/dist/packages/sdk-ui/src/widgets/common/{use-drilldown.d.ts → use-drilldown-core.d.ts} +7 -8
  94. package/dist/packages/sdk-ui/src/widgets/common-widget.d.ts +1 -0
  95. package/dist/packages/sdk-ui/src/widgets/hooks/use-drilldown.d.ts +25 -0
  96. package/dist/packages/sdk-ui/src/widgets/hooks/use-with-drilldown.d.ts +12 -0
  97. package/dist/packages/sdk-ui/src/widgets/pivot-table-widget.d.ts +1 -1
  98. package/dist/packages/sdk-ui/src/widgets/widget.d.ts +9 -0
  99. package/dist/{table-widget-D9gDMRyX.js → table-widget-CLL1iN3H.js} +14844 -14659
  100. package/dist/{table-widget-DXNtx9V_.cjs → table-widget-CYCcYqzZ.cjs} +179 -179
  101. package/package.json +9 -9
  102. package/dist/packages/sdk-ui/src/ai/api/errors.d.ts +0 -4
  103. package/dist/packages/sdk-ui/src/widgets/common/drilldown-connector.d.ts +0 -19
@@ -1,27 +1,27 @@
1
- var en = Object.defineProperty, tn = Object.defineProperties;
2
- var sn = Object.getOwnPropertyDescriptors;
3
- var qe = Object.getOwnPropertySymbols;
4
- var Rt = Object.prototype.hasOwnProperty, Ut = Object.prototype.propertyIsEnumerable;
5
- var ct = (s, e) => (e = Symbol[s]) ? e : Symbol.for("Symbol." + s);
6
- var ft = (s, e, t) => e in s ? en(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, P = (s, e) => {
1
+ var tn = Object.defineProperty, sn = Object.defineProperties;
2
+ var nn = Object.getOwnPropertyDescriptors;
3
+ var Be = Object.getOwnPropertySymbols;
4
+ var Ut = Object.prototype.hasOwnProperty, Vt = Object.prototype.propertyIsEnumerable;
5
+ var ft = (s, e) => (e = Symbol[s]) ? e : Symbol.for("Symbol." + s);
6
+ var ut = (s, e, t) => e in s ? tn(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, P = (s, e) => {
7
7
  for (var t in e || (e = {}))
8
- Rt.call(e, t) && ft(s, t, e[t]);
9
- if (qe)
10
- for (var t of qe(e))
11
- Ut.call(e, t) && ft(s, t, e[t]);
8
+ Ut.call(e, t) && ut(s, t, e[t]);
9
+ if (Be)
10
+ for (var t of Be(e))
11
+ Vt.call(e, t) && ut(s, t, e[t]);
12
12
  return s;
13
- }, G = (s, e) => tn(s, sn(e));
14
- var Vt = (s, e) => {
13
+ }, G = (s, e) => sn(s, nn(e));
14
+ var Jt = (s, e) => {
15
15
  var t = {};
16
16
  for (var n in s)
17
- Rt.call(s, n) && e.indexOf(n) < 0 && (t[n] = s[n]);
18
- if (s != null && qe)
19
- for (var n of qe(s))
20
- e.indexOf(n) < 0 && Ut.call(s, n) && (t[n] = s[n]);
17
+ Ut.call(s, n) && e.indexOf(n) < 0 && (t[n] = s[n]);
18
+ if (s != null && Be)
19
+ for (var n of Be(s))
20
+ e.indexOf(n) < 0 && Vt.call(s, n) && (t[n] = s[n]);
21
21
  return t;
22
22
  };
23
- var K = (s, e, t) => (ft(s, typeof e != "symbol" ? e + "" : e, t), t);
24
- var ut = (s, e, t) => new Promise((n, i) => {
23
+ var K = (s, e, t) => (ut(s, typeof e != "symbol" ? e + "" : e, t), t);
24
+ var ht = (s, e, t) => new Promise((n, i) => {
25
25
  var r = (l) => {
26
26
  try {
27
27
  a(t.next(l));
@@ -36,12 +36,12 @@ var ut = (s, e, t) => new Promise((n, i) => {
36
36
  }
37
37
  }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(r, o);
38
38
  a((t = t.apply(s, e)).next());
39
- }), nn = function(s, e) {
39
+ }), rn = function(s, e) {
40
40
  this[0] = s, this[1] = e;
41
41
  };
42
42
  var d = (s) => {
43
- var e = s[ct("asyncIterator")], t = !1, n, i = {};
44
- return e == null ? (e = s[ct("iterator")](), n = (r) => i[r] = (o) => e[r](o)) : (e = e.call(s), n = (r) => i[r] = (o) => {
43
+ var e = s[ft("asyncIterator")], t = !1, n, i = {};
44
+ return e == null ? (e = s[ft("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,56 +49,56 @@ var d = (s) => {
49
49
  }
50
50
  return t = !0, {
51
51
  done: !1,
52
- value: new nn(new Promise((a) => {
52
+ value: new rn(new Promise((a) => {
53
53
  var l = e[r](o);
54
54
  if (!(l instanceof Object))
55
55
  throw TypeError("Object expected");
56
56
  a(l);
57
57
  }), 1)
58
58
  };
59
- }), i[ct("iterator")] = () => i, n("next"), "throw" in e ? n("throw") : i.throw = (r) => {
59
+ }), i[ft("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 { bf as rn, cR as is, cL as rs, h as on, w as an, aQ as Je, bb as ln, be as cn, cS as fn } from "./get-widget-options-B9VkQy30.js";
64
- const qi = {
63
+ import { T as Ee, bh as on, cW as rs, cQ as os, h as an, F as ln, aW as We, bd as cn, bg as fn, cX as un } from "./get-widget-options-DTIulxC2.js";
64
+ const Bi = {
65
65
  jaql: { datasource: { title: "" }, metadata: [] },
66
66
  queryTitle: "",
67
67
  chartRecommendations: {}
68
- }, Jt = {
68
+ }, Wt = {
69
69
  model: "",
70
70
  metadata: [],
71
71
  chart: {},
72
72
  queryTitle: ""
73
73
  };
74
- function un(s) {
74
+ function hn(s) {
75
75
  return s.replace(/\s+/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
76
76
  }
77
- function hn(s) {
77
+ function dn(s) {
78
78
  return s.charAt(0).toUpperCase() + s.slice(1);
79
79
  }
80
- function dn(s) {
80
+ function pn(s) {
81
81
  const e = /\[(.+?)\s\(Calendar\)\]/;
82
82
  return s.replace(e, "[$1]").trim();
83
83
  }
84
- function pn(s) {
84
+ function mn(s) {
85
85
  if (s)
86
86
  if (s.metadata) {
87
87
  if (!s.model)
88
- throw Error("Missing model title");
88
+ throw new Ee("errors.missingModelTitle");
89
89
  } else
90
- throw Error("Missing metadata");
90
+ throw new Ee("errors.missingMetadata");
91
91
  else
92
- throw Error("Empty model");
92
+ throw new Ee("errors.emptyModel");
93
93
  return s;
94
94
  }
95
- function mn(s) {
95
+ function yn(s) {
96
96
  return !s || !s.jaql.datasource.title || !s.jaql.metadata.length;
97
97
  }
98
- function Ee(s) {
98
+ function Ie(s) {
99
99
  return s && s.replace(new RegExp("(?<!\\\\)'", "g"), "\\'");
100
100
  }
101
- const yn = {
101
+ const gn = {
102
102
  react: {
103
103
  baseChartTmpl: `import { {{componentString}} } from '@sisense/sdk-ui';
104
104
  {{extraImportsString}}
@@ -164,23 +164,23 @@ export class CodeExample {
164
164
  chartTmpl: "{{baseChartTmpl}}",
165
165
  chartWidgetTmpl: "{{baseChartTmpl}}"
166
166
  }
167
- }, os = (s, e) => yn[e][s].replace(
167
+ }, as = (s, e) => gn[e][s].replace(
168
168
  /{{(.*?)Tmpl}}/g,
169
- (n, i) => os(`${i}Tmpl`, e)
170
- ), as = (s, e) => s.replace(/{{(.*?)}}/g, (t, n) => n in e ? e[n] : (console.warn(`Placeholder ${n} not found in data`), t)), gn = (s, e, t = "react") => {
171
- const n = os(s, t);
172
- return as(n, e);
169
+ (n, i) => as(`${i}Tmpl`, e)
170
+ ), ls = (s, e) => s.replace(/{{(.*?)}}/g, (t, n) => n in e ? e[n] : (console.warn(`Placeholder ${n} not found in data`), t)), bn = (s, e, t = "react") => {
171
+ const n = as(s, t);
172
+ return ls(n, e);
173
173
  }, Te = `
174
- `, wt = "UNKNOWN", bn = (s, e) => {
174
+ `, St = "UNKNOWN", wn = (s, e) => {
175
175
  let t = "";
176
176
  return t += `measureFactory.customFormula(
177
- `, t += " ".repeat(e), t += ` '${Ee(s.title)}',
177
+ `, t += " ".repeat(e), t += ` '${Ie(s.title)}',
178
178
  `, t += " ".repeat(e), t += ` '${s.formula}',
179
179
  `, t += " ".repeat(e), t += ` {
180
180
  `, Object.entries(s.context).forEach(([n, i]) => {
181
- const r = is(
182
- i.table || wt,
183
- i.column || wt,
181
+ const r = rs(
182
+ i.table || St,
183
+ i.column || St,
184
184
  void 0,
185
185
  "DM"
186
186
  );
@@ -188,44 +188,44 @@ export class CodeExample {
188
188
  `;
189
189
  }), t += " ".repeat(e), t += ` }
190
190
  `, t += " ".repeat(e), t += ")", t;
191
- }, wn = (s, e) => {
191
+ }, Sn = (s, e) => {
192
192
  const { level: t, table: n, column: i, agg: r, sort: o, title: a } = s;
193
193
  let l;
194
- return n && i && (l = is(n, i, t, "DM")), r && n && i && a && (l = `measureFactory.${rs.aggregationFromJAQL(
194
+ return n && i && (l = rs(n, i, t, "DM")), r && n && i && a && (l = `measureFactory.${os.aggregationFromJAQL(
195
195
  r
196
- )}(${l}, '${Ee(a)}')`), o && (l = `{column: ${l}, sortType: '${on(o)}'}`), l ? `${" ".repeat(e)}${l}` : wt;
197
- }, Sn = (s, e) => {
196
+ )}(${l}, '${Ie(a)}')`), o && (l = `{column: ${l}, sortType: '${an(o)}'}`), l ? `${" ".repeat(e)}${l}` : St;
197
+ }, kn = (s, e) => {
198
198
  const t = s.jaql().jaql;
199
- return "formula" in t ? bn(t, e) : Te + wn(t, e);
200
- }, Ie = (s, e = 0, t = !1) => {
199
+ return "formula" in t ? wn(t, e) : Te + Sn(t, e);
200
+ }, $e = (s, e = 0, t = !1) => {
201
201
  if (!s)
202
202
  return "";
203
203
  if (typeof s == "string")
204
- return `'${Ee(s)}'`;
205
- if (s instanceof rn)
206
- return Sn(s, e);
204
+ return `'${Ie(s)}'`;
205
+ if (s instanceof on)
206
+ return kn(s, e);
207
207
  let n = "";
208
- return Array.isArray(s) ? n += `[${s.map((i) => Ie(i, e + 2))}${s.length ? Te + " ".repeat(e + 2) : ""}]` : (n += `{${Te}`, Object.entries(s).forEach(([i, r]) => {
209
- t && (i = `'${Ee(i)}'`), n += " ".repeat(e + 2), Array.isArray(r) ? n += `${i}: [${r.map((o) => Ie(o, e + 4, t))}${r.length ? Te + " ".repeat(e + 2) : ""}]` : typeof r == "object" ? n += `${i}: ${Ie(r, e + 2, t)}` : ["number", "boolean", "undefined", null].includes(typeof r) ? n += `${i}: ${r}` : n += `${i}: '${Ee(r)}'`, n += `,${Te}`;
208
+ return Array.isArray(s) ? n += `[${s.map((i) => $e(i, e + 2))}${s.length ? Te + " ".repeat(e + 2) : ""}]` : (n += `{${Te}`, Object.entries(s).forEach(([i, r]) => {
209
+ t && (i = `'${Ie(i)}'`), n += " ".repeat(e + 2), Array.isArray(r) ? n += `${i}: [${r.map((o) => $e(o, e + 4, t))}${r.length ? Te + " ".repeat(e + 2) : ""}]` : typeof r == "object" ? n += `${i}: ${$e(r, e + 2, t)}` : ["number", "boolean", "undefined", null].includes(typeof r) ? n += `${i}: ${r}` : n += `${i}: '${Ie(r)}'`, n += `,${Te}`;
210
210
  }), n += " ".repeat(e), n += "}"), n;
211
211
  }, Yt = `
212
- `, kn = (s, e) => {
212
+ `, On = (s, e) => {
213
213
  if (s.composeCode)
214
214
  return `${Yt}${" ".repeat(e)}${s.composeCode}`;
215
215
  const t = s.jaql().jaql;
216
- return `${Yt}${" ".repeat(e)}filterFactory.customFilter(${Ie(
216
+ return `${Yt}${" ".repeat(e)}filterFactory.customFilter(${$e(
217
217
  t,
218
218
  e,
219
219
  !0
220
220
  )})`;
221
- }, On = (s, e = 0) => {
221
+ }, Nn = (s, e = 0) => {
222
222
  if (!s)
223
223
  return "";
224
224
  let t = "";
225
- return t += `[${s.map((n) => kn(n, e + 2))}${s.length ? `
225
+ return t += `[${s.map((n) => On(n, e + 2))}${s.length ? `
226
226
  ` + " ".repeat(e + 2) : ""}]`, t;
227
227
  };
228
- class Bi {
228
+ class Di {
229
229
  constructor(e) {
230
230
  K(this, "queryModel");
231
231
  /**
@@ -245,7 +245,7 @@ class Bi {
245
245
  * @param metadata - metadata items
246
246
  * @return array of Filter objects
247
247
  */
248
- K(this, "getFilters", (e) => e.map((t) => an(t.jaql)));
248
+ K(this, "getFilters", (e) => e.map((t) => ln(t.jaql)));
249
249
  /**
250
250
  * Splits metadata into columns and filters.
251
251
  *
@@ -253,8 +253,8 @@ class Bi {
253
253
  */
254
254
  K(this, "splitMetadata", (e) => e.reduce(
255
255
  (t, n) => {
256
- if ((n.panel === "scope" || n.jaql.filter) && t.metadataFilters.push(Je(n)), n.panel !== "scope") {
257
- const i = Je(n);
256
+ if ((n.panel === "scope" || n.jaql.filter) && t.metadataFilters.push(We(n)), n.panel !== "scope") {
257
+ const i = We(n);
258
258
  delete i.jaql.filter, t.metadataColumns.push(i);
259
259
  }
260
260
  return t;
@@ -263,19 +263,19 @@ class Bi {
263
263
  ));
264
264
  K(this, "stringifyDataSource", (e) => {
265
265
  if (!e)
266
- throw new Error("Data source is not defined");
266
+ throw new Ee("errors.undefinedDataSource");
267
267
  let t;
268
- return typeof e == "object" && "title" in e ? t = e.title : t = e, un(t);
268
+ return typeof e == "object" && "title" in e ? t = e.title : t = e, hn(t);
269
269
  });
270
270
  K(this, "stringifyChartType", (e) => e);
271
271
  K(this, "stringifyFilters", (e) => {
272
272
  if (!e)
273
273
  return "";
274
274
  if (Array.isArray(e))
275
- return On(e, 2);
276
- throw new Error("Filter relations not supported yet");
275
+ return Nn(e, 2);
276
+ throw new Ee("errors.filterRelationsNotSupported");
277
277
  });
278
- K(this, "stringifyDataOptions", (e) => Ie(e, 2));
278
+ K(this, "stringifyDataOptions", (e) => $e(e, 2));
279
279
  K(this, "stringifyExtraImports", (e) => {
280
280
  const t = ["measureFactory"], { filters: n } = e;
281
281
  return Array.isArray(n) && n.length > 0 && t.push("filterFactory"), `import { ${t.join(", ")} } from '@sisense/sdk-data';`;
@@ -290,7 +290,7 @@ class Bi {
290
290
  componentString: "ChartWidget",
291
291
  extraImportsString: this.stringifyExtraImports(e)
292
292
  };
293
- return gn("chartWidgetTmpl", n, t);
293
+ return bn("chartWidgetTmpl", n, t);
294
294
  });
295
295
  this.queryModel = e;
296
296
  }
@@ -298,7 +298,7 @@ class Bi {
298
298
  * Converts query model to chart
299
299
  */
300
300
  toChart() {
301
- if (!mn(this.queryModel))
301
+ if (!yn(this.queryModel))
302
302
  try {
303
303
  const e = this.queryModel, { jaql: t, chartRecommendations: n, queryTitle: i } = e, {
304
304
  metadata: r,
@@ -316,7 +316,7 @@ class Bi {
316
316
  chartType: l,
317
317
  queryTitle: i,
318
318
  getChartWidgetProps: () => {
319
- const { dataOptions: m, chartStyleOptions: y } = ln(
319
+ const { dataOptions: m, chartStyleOptions: y } = cn(
320
320
  h,
321
321
  a,
322
322
  !1
@@ -352,7 +352,7 @@ class Bi {
352
352
  }
353
353
  }
354
354
  }
355
- const Et = Symbol.for("yaml.alias"), St = Symbol.for("yaml.document"), H = Symbol.for("yaml.map"), ls = Symbol.for("yaml.pair"), Q = Symbol.for("yaml.scalar"), ye = Symbol.for("yaml.seq"), U = Symbol.for("yaml.node.type"), ie = (s) => !!s && typeof s == "object" && s[U] === Et, ge = (s) => !!s && typeof s == "object" && s[U] === St, be = (s) => !!s && typeof s == "object" && s[U] === H, I = (s) => !!s && typeof s == "object" && s[U] === ls, E = (s) => !!s && typeof s == "object" && s[U] === Q, we = (s) => !!s && typeof s == "object" && s[U] === ye;
355
+ const It = Symbol.for("yaml.alias"), kt = Symbol.for("yaml.document"), H = Symbol.for("yaml.map"), cs = Symbol.for("yaml.pair"), Q = Symbol.for("yaml.scalar"), ye = Symbol.for("yaml.seq"), U = Symbol.for("yaml.node.type"), ie = (s) => !!s && typeof s == "object" && s[U] === It, ge = (s) => !!s && typeof s == "object" && s[U] === kt, be = (s) => !!s && typeof s == "object" && s[U] === H, I = (s) => !!s && typeof s == "object" && s[U] === cs, E = (s) => !!s && typeof s == "object" && s[U] === Q, we = (s) => !!s && typeof s == "object" && s[U] === ye;
356
356
  function L(s) {
357
357
  if (s && typeof s == "object")
358
358
  switch (s[U]) {
@@ -365,7 +365,7 @@ function L(s) {
365
365
  function M(s) {
366
366
  if (s && typeof s == "object")
367
367
  switch (s[U]) {
368
- case Et:
368
+ case It:
369
369
  case H:
370
370
  case Q:
371
371
  case ye:
@@ -373,18 +373,18 @@ function M(s) {
373
373
  }
374
374
  return !1;
375
375
  }
376
- const Nn = (s) => (E(s) || L(s)) && !!s.anchor, D = Symbol("break visit"), cs = Symbol("skip children"), Y = Symbol("remove node");
377
- function z(s, e) {
378
- const t = fs(e);
379
- ge(s) ? le(null, s.contents, t, Object.freeze([s])) === Y && (s.contents = null) : le(null, s, t, Object.freeze([]));
376
+ const Tn = (s) => (E(s) || L(s)) && !!s.anchor, D = Symbol("break visit"), fs = Symbol("skip children"), W = Symbol("remove node");
377
+ function X(s, e) {
378
+ const t = us(e);
379
+ ge(s) ? le(null, s.contents, t, Object.freeze([s])) === W && (s.contents = null) : le(null, s, t, Object.freeze([]));
380
380
  }
381
- z.BREAK = D;
382
- z.SKIP = cs;
383
- z.REMOVE = Y;
381
+ X.BREAK = D;
382
+ X.SKIP = fs;
383
+ X.REMOVE = W;
384
384
  function le(s, e, t, n) {
385
- const i = us(s, e, t, n);
385
+ const i = hs(s, e, t, n);
386
386
  if (M(i) || I(i))
387
- return hs(s, n, i), le(s, i, t, n);
387
+ return ds(s, n, i), le(s, i, t, n);
388
388
  if (typeof i != "symbol") {
389
389
  if (L(e)) {
390
390
  n = Object.freeze(n.concat(e));
@@ -395,7 +395,7 @@ function le(s, e, t, n) {
395
395
  else {
396
396
  if (o === D)
397
397
  return D;
398
- o === Y && (e.items.splice(r, 1), r -= 1);
398
+ o === W && (e.items.splice(r, 1), r -= 1);
399
399
  }
400
400
  }
401
401
  } else if (I(e)) {
@@ -403,29 +403,29 @@ function le(s, e, t, n) {
403
403
  const r = le("key", e.key, t, n);
404
404
  if (r === D)
405
405
  return D;
406
- r === Y && (e.key = null);
406
+ r === W && (e.key = null);
407
407
  const o = le("value", e.value, t, n);
408
408
  if (o === D)
409
409
  return D;
410
- o === Y && (e.value = null);
410
+ o === W && (e.value = null);
411
411
  }
412
412
  }
413
413
  return i;
414
414
  }
415
- function He(s, e) {
416
- return ut(this, null, function* () {
417
- const t = fs(e);
418
- ge(s) ? (yield ce(null, s.contents, t, Object.freeze([s]))) === Y && (s.contents = null) : yield ce(null, s, t, Object.freeze([]));
415
+ function Xe(s, e) {
416
+ return ht(this, null, function* () {
417
+ const t = us(e);
418
+ ge(s) ? (yield ce(null, s.contents, t, Object.freeze([s]))) === W && (s.contents = null) : yield ce(null, s, t, Object.freeze([]));
419
419
  });
420
420
  }
421
- He.BREAK = D;
422
- He.SKIP = cs;
423
- He.REMOVE = Y;
421
+ Xe.BREAK = D;
422
+ Xe.SKIP = fs;
423
+ Xe.REMOVE = W;
424
424
  function ce(s, e, t, n) {
425
- return ut(this, null, function* () {
426
- const i = yield us(s, e, t, n);
425
+ return ht(this, null, function* () {
426
+ const i = yield hs(s, e, t, n);
427
427
  if (M(i) || I(i))
428
- return hs(s, n, i), ce(s, i, t, n);
428
+ return ds(s, n, i), ce(s, i, t, n);
429
429
  if (typeof i != "symbol") {
430
430
  if (L(e)) {
431
431
  n = Object.freeze(n.concat(e));
@@ -436,7 +436,7 @@ function ce(s, e, t, n) {
436
436
  else {
437
437
  if (o === D)
438
438
  return D;
439
- o === Y && (e.items.splice(r, 1), r -= 1);
439
+ o === W && (e.items.splice(r, 1), r -= 1);
440
440
  }
441
441
  }
442
442
  } else if (I(e)) {
@@ -444,17 +444,17 @@ function ce(s, e, t, n) {
444
444
  const r = yield ce("key", e.key, t, n);
445
445
  if (r === D)
446
446
  return D;
447
- r === Y && (e.key = null);
447
+ r === W && (e.key = null);
448
448
  const o = yield ce("value", e.value, t, n);
449
449
  if (o === D)
450
450
  return D;
451
- o === Y && (e.value = null);
451
+ o === W && (e.value = null);
452
452
  }
453
453
  }
454
454
  return i;
455
455
  });
456
456
  }
457
- function fs(s) {
457
+ function us(s) {
458
458
  return typeof s == "object" && (s.Collection || s.Node || s.Value) ? Object.assign({
459
459
  Alias: s.Node,
460
460
  Map: s.Node,
@@ -469,7 +469,7 @@ function fs(s) {
469
469
  Seq: s.Collection
470
470
  }, s) : s;
471
471
  }
472
- function us(s, e, t, n) {
472
+ function hs(s, e, t, n) {
473
473
  var i, r, o, a, l;
474
474
  if (typeof t == "function")
475
475
  return t(s, e, n);
@@ -484,7 +484,7 @@ function us(s, e, t, n) {
484
484
  if (ie(e))
485
485
  return (l = t.Alias) == null ? void 0 : l.call(t, s, e, n);
486
486
  }
487
- function hs(s, e, t) {
487
+ function ds(s, e, t) {
488
488
  const n = e[e.length - 1];
489
489
  if (L(n))
490
490
  n.items[s] = t;
@@ -497,14 +497,14 @@ function hs(s, e, t) {
497
497
  throw new Error(`Cannot replace node with ${i} parent`);
498
498
  }
499
499
  }
500
- const Tn = {
500
+ const An = {
501
501
  "!": "%21",
502
502
  ",": "%2C",
503
503
  "[": "%5B",
504
504
  "]": "%5D",
505
505
  "{": "%7B",
506
506
  "}": "%7D"
507
- }, An = (s) => s.replace(/[!,[\]{}]/g, (e) => Tn[e]);
507
+ }, En = (s) => s.replace(/[!,[\]{}]/g, (e) => An[e]);
508
508
  class B {
509
509
  constructor(e, t) {
510
510
  this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, B.defaultYaml, e), this.tags = Object.assign({}, B.defaultTags, t);
@@ -594,7 +594,7 @@ class B {
594
594
  tagString(e) {
595
595
  for (const [t, n] of Object.entries(this.tags))
596
596
  if (e.startsWith(n))
597
- return t + An(e.substring(n.length));
597
+ return t + En(e.substring(n.length));
598
598
  return e[0] === "!" ? e : `!<${e}>`;
599
599
  }
600
600
  toString(e) {
@@ -602,7 +602,7 @@ class B {
602
602
  let i;
603
603
  if (e && n.length > 0 && M(e.contents)) {
604
604
  const r = {};
605
- z(e.contents, (o, a) => {
605
+ X(e.contents, (o, a) => {
606
606
  M(a) && a.tag && (r[a.tag] = !0);
607
607
  }), i = Object.keys(r);
608
608
  } else
@@ -615,35 +615,35 @@ class B {
615
615
  }
616
616
  B.defaultYaml = { explicit: !1, version: "1.2" };
617
617
  B.defaultTags = { "!!": "tag:yaml.org,2002:" };
618
- function ds(s) {
618
+ function ps(s) {
619
619
  if (/[\x00-\x19\s,[\]{}]/.test(s)) {
620
620
  const t = `Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;
621
621
  throw new Error(t);
622
622
  }
623
623
  return !0;
624
624
  }
625
- function ps(s) {
625
+ function ms(s) {
626
626
  const e = /* @__PURE__ */ new Set();
627
- return z(s, {
627
+ return X(s, {
628
628
  Value(t, n) {
629
629
  n.anchor && e.add(n.anchor);
630
630
  }
631
631
  }), e;
632
632
  }
633
- function ms(s, e) {
633
+ function ys(s, e) {
634
634
  for (let t = 1; ; ++t) {
635
635
  const n = `${s}${t}`;
636
636
  if (!e.has(n))
637
637
  return n;
638
638
  }
639
639
  }
640
- function En(s, e) {
640
+ function In(s, e) {
641
641
  const t = [], n = /* @__PURE__ */ new Map();
642
642
  let i = null;
643
643
  return {
644
644
  onAnchor: (r) => {
645
- t.push(r), i || (i = ps(s));
646
- const o = ms(e, i);
645
+ t.push(r), i || (i = ms(s));
646
+ const o = ys(e, i);
647
647
  return i.add(o), o;
648
648
  },
649
649
  /**
@@ -693,7 +693,7 @@ function R(s, e, t) {
693
693
  if (Array.isArray(s))
694
694
  return s.map((n, i) => R(n, String(i), t));
695
695
  if (s && typeof s.toJSON == "function") {
696
- if (!t || !Nn(s))
696
+ if (!t || !Tn(s))
697
697
  return s.toJSON(e, t);
698
698
  const n = { aliasCount: 0, count: 1, res: void 0 };
699
699
  t.anchors.set(s, n), t.onCreate = (r) => {
@@ -704,7 +704,7 @@ function R(s, e, t) {
704
704
  }
705
705
  return typeof s == "bigint" && !(t != null && t.keep) ? Number(s) : s;
706
706
  }
707
- class It {
707
+ class $t {
708
708
  constructor(e) {
709
709
  Object.defineProperty(this, U, { value: e });
710
710
  }
@@ -731,9 +731,9 @@ class It {
731
731
  return typeof r == "function" ? fe(r, { "": a }, "", a) : a;
732
732
  }
733
733
  }
734
- class ze extends It {
734
+ class ze extends $t {
735
735
  constructor(e) {
736
- super(Et), this.source = e, Object.defineProperty(this, "tag", {
736
+ super(It), this.source = e, Object.defineProperty(this, "tag", {
737
737
  set() {
738
738
  throw new Error("Alias nodes cannot have tags");
739
739
  }
@@ -745,10 +745,10 @@ class ze extends It {
745
745
  */
746
746
  resolve(e) {
747
747
  let t;
748
- return z(e, {
748
+ return X(e, {
749
749
  Node: (n, i) => {
750
750
  if (i === this)
751
- return z.BREAK;
751
+ return X.BREAK;
752
752
  i.anchor === this.source && (t = i);
753
753
  }
754
754
  }), t;
@@ -766,7 +766,7 @@ class ze extends It {
766
766
  const l = "This should not happen: Alias anchor was not resolved?";
767
767
  throw new ReferenceError(l);
768
768
  }
769
- if (r >= 0 && (a.count += 1, a.aliasCount === 0 && (a.aliasCount = Fe(i, o, n)), a.count * a.aliasCount > r)) {
769
+ if (r >= 0 && (a.count += 1, a.aliasCount === 0 && (a.aliasCount = Re(i, o, n)), a.count * a.aliasCount > r)) {
770
770
  const l = "Excessive alias count indicates a resource exhaustion attack";
771
771
  throw new ReferenceError(l);
772
772
  }
@@ -775,7 +775,7 @@ class ze extends It {
775
775
  toString(e, t, n) {
776
776
  const i = `*${this.source}`;
777
777
  if (e) {
778
- if (ds(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
778
+ if (ps(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
779
779
  const r = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
780
780
  throw new Error(r);
781
781
  }
@@ -785,25 +785,25 @@ class ze extends It {
785
785
  return i;
786
786
  }
787
787
  }
788
- function Fe(s, e, t) {
788
+ function Re(s, e, t) {
789
789
  if (ie(e)) {
790
790
  const n = e.resolve(s), i = t && n && t.get(n);
791
791
  return i ? i.count * i.aliasCount : 0;
792
792
  } else if (L(e)) {
793
793
  let n = 0;
794
794
  for (const i of e.items) {
795
- const r = Fe(s, i, t);
795
+ const r = Re(s, i, t);
796
796
  r > n && (n = r);
797
797
  }
798
798
  return n;
799
799
  } else if (I(e)) {
800
- const n = Fe(s, e.key, t), i = Fe(s, e.value, t);
800
+ const n = Re(s, e.key, t), i = Re(s, e.value, t);
801
801
  return Math.max(n, i);
802
802
  }
803
803
  return 1;
804
804
  }
805
- const ys = (s) => !s || typeof s != "function" && typeof s != "object";
806
- class O extends It {
805
+ const gs = (s) => !s || typeof s != "function" && typeof s != "object";
806
+ class O extends $t {
807
807
  constructor(e) {
808
808
  super(Q), this.value = e;
809
809
  }
@@ -819,8 +819,8 @@ O.BLOCK_LITERAL = "BLOCK_LITERAL";
819
819
  O.PLAIN = "PLAIN";
820
820
  O.QUOTE_DOUBLE = "QUOTE_DOUBLE";
821
821
  O.QUOTE_SINGLE = "QUOTE_SINGLE";
822
- const In = "tag:yaml.org,2002:";
823
- function $n(s, e, t) {
822
+ const $n = "tag:yaml.org,2002:";
823
+ function Ln(s, e, t) {
824
824
  var n;
825
825
  if (e) {
826
826
  const i = t.filter((o) => o.tag === e), r = (n = i.find((o) => !o.format)) != null ? n : i[0];
@@ -833,7 +833,7 @@ function $n(s, e, t) {
833
833
  return ((r = i.identify) == null ? void 0 : r.call(i, s)) && !i.format;
834
834
  });
835
835
  }
836
- function Le(s, e, t) {
836
+ function Ce(s, e, t) {
837
837
  var f, p, m;
838
838
  if (ge(s) && (s = s.contents), M(s))
839
839
  return s;
@@ -849,8 +849,8 @@ function Le(s, e, t) {
849
849
  return l.anchor || (l.anchor = i(s)), new ze(l.anchor);
850
850
  l = { anchor: null, node: null }, a.set(s, l);
851
851
  }
852
- e != null && e.startsWith("!!") && (e = In + e.slice(2));
853
- let c = $n(s, e, o.tags);
852
+ e != null && e.startsWith("!!") && (e = $n + e.slice(2));
853
+ let c = Ln(s, e, o.tags);
854
854
  if (!c) {
855
855
  if (s && typeof s.toJSON == "function" && (s = s.toJSON()), !s || typeof s != "object") {
856
856
  const y = new O(s);
@@ -872,7 +872,7 @@ function Ye(s, e, t) {
872
872
  } else
873
873
  n = /* @__PURE__ */ new Map([[r, n]]);
874
874
  }
875
- return Le(n, void 0, {
875
+ return Ce(n, void 0, {
876
876
  aliasDuplicateObjects: !1,
877
877
  keepUndefined: !1,
878
878
  onAnchor: () => {
@@ -883,7 +883,7 @@ function Ye(s, e, t) {
883
883
  });
884
884
  }
885
885
  const Ae = (s) => s == null || typeof s == "object" && !!s[Symbol.iterator]().next().done;
886
- class gs extends It {
886
+ class bs extends $t {
887
887
  constructor(e, t) {
888
888
  super(e), Object.defineProperty(this, "schema", {
889
889
  value: t,
@@ -978,15 +978,15 @@ class gs extends It {
978
978
  }
979
979
  }
980
980
  }
981
- const Ln = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
982
- function W(s, e) {
981
+ const Cn = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
982
+ function Y(s, e) {
983
983
  return /^\n+$/.test(s) ? s.substring(1) : e ? s.replace(/^(?! *$)/gm, e) : s;
984
984
  }
985
985
  const ee = (s, e, t) => s.endsWith(`
986
- `) ? W(t, e) : t.includes(`
986
+ `) ? Y(t, e) : t.includes(`
987
987
  `) ? `
988
- ` + W(t, e) : (s.endsWith(" ") ? "" : " ") + t, bs = "flow", kt = "block", Re = "quoted";
989
- function Xe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: a } = {}) {
988
+ ` + Y(t, e) : (s.endsWith(" ") ? "" : " ") + t, ws = "flow", Ot = "block", Ue = "quoted";
989
+ function xe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: a } = {}) {
990
990
  if (!i || i < 0)
991
991
  return s;
992
992
  i < r && (r = 0);
@@ -997,9 +997,9 @@ function Xe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
997
997
  let f = i - e.length;
998
998
  typeof n == "number" && (n > i - Math.max(2, r) ? c.push(0) : f = i - n);
999
999
  let p, m, y = !1, u = -1, g = -1, b = -1;
1000
- t === kt && (u = Wt(s, u, e.length), u !== -1 && (f = u + l));
1000
+ t === Ot && (u = Qt(s, u, e.length), u !== -1 && (f = u + l));
1001
1001
  for (let A; A = s[u += 1]; ) {
1002
- if (t === Re && A === "\\") {
1002
+ if (t === Ue && A === "\\") {
1003
1003
  switch (g = u, s[u + 1]) {
1004
1004
  case "x":
1005
1005
  u += 3;
@@ -1017,7 +1017,7 @@ function Xe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
1017
1017
  }
1018
1018
  if (A === `
1019
1019
  `)
1020
- t === kt && (u = Wt(s, u, e.length)), f = u + e.length + l, p = void 0;
1020
+ t === Ot && (u = Qt(s, u, e.length)), f = u + e.length + l, p = void 0;
1021
1021
  else {
1022
1022
  if (A === " " && m && m !== " " && m !== `
1023
1023
  ` && m !== " ") {
@@ -1028,7 +1028,7 @@ function Xe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
1028
1028
  if (u >= f)
1029
1029
  if (p)
1030
1030
  c.push(p), f = p + l, p = void 0;
1031
- else if (t === Re) {
1031
+ else if (t === Ue) {
1032
1032
  for (; m === " " || m === " "; )
1033
1033
  m = A, A = s[u += 1], y = !0;
1034
1034
  const k = u > b + 1 ? u - 2 : g - 1;
@@ -1047,12 +1047,12 @@ function Xe(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
1047
1047
  for (let A = 0; A < c.length; ++A) {
1048
1048
  const k = c[A], N = c[A + 1] || s.length;
1049
1049
  k === 0 ? S = `
1050
- ${e}${s.slice(0, N)}` : (t === Re && h[k] && (S += `${s[k]}\\`), S += `
1050
+ ${e}${s.slice(0, N)}` : (t === Ue && h[k] && (S += `${s[k]}\\`), S += `
1051
1051
  ${e}${s.slice(k + 1, N)}`);
1052
1052
  }
1053
1053
  return S;
1054
1054
  }
1055
- function Wt(s, e, t) {
1055
+ function Qt(s, e, t) {
1056
1056
  let n = e, i = e + 1, r = s[i];
1057
1057
  for (; r === " " || r === " "; )
1058
1058
  if (e < i + t)
@@ -1066,12 +1066,12 @@ function Wt(s, e, t) {
1066
1066
  }
1067
1067
  return n;
1068
1068
  }
1069
- const xe = (s, e) => ({
1069
+ const Ze = (s, e) => ({
1070
1070
  indentAtStart: e ? s.indent.length : s.indentAtStart,
1071
1071
  lineWidth: s.options.lineWidth,
1072
1072
  minContentWidth: s.options.minContentWidth
1073
- }), Ze = (s) => /^(%|---|\.\.\.)/m.test(s);
1074
- function Cn(s, e, t) {
1073
+ }), et = (s) => /^(%|---|\.\.\.)/m.test(s);
1074
+ function _n(s, e, t) {
1075
1075
  if (!e || e < 0)
1076
1076
  return !1;
1077
1077
  const n = e - t, i = s.length;
@@ -1087,11 +1087,11 @@ function Cn(s, e, t) {
1087
1087
  }
1088
1088
  return !0;
1089
1089
  }
1090
- function $e(s, e) {
1090
+ function Le(s, e) {
1091
1091
  const t = JSON.stringify(s);
1092
1092
  if (e.options.doubleQuotedAsJSON)
1093
1093
  return t;
1094
- const { implicitKey: n } = e, i = e.options.doubleQuotedMinMultiLineLength, r = e.indent || (Ze(s) ? " " : "");
1094
+ const { implicitKey: n } = e, i = e.options.doubleQuotedMinMultiLineLength, r = e.indent || (et(s) ? " " : "");
1095
1095
  let o = "", a = 0;
1096
1096
  for (let l = 0, c = t[l]; c; c = t[++l])
1097
1097
  if (c === " " && t[l + 1] === "\\" && t[l + 2] === "n" && (o += t.slice(a, l) + "\\ ", l += 1, a = l, c = "\\"), c === "\\")
@@ -1146,41 +1146,41 @@ function $e(s, e) {
1146
1146
  default:
1147
1147
  l += 1;
1148
1148
  }
1149
- return o = a ? o + t.slice(a) : t, n ? o : Xe(o, r, Re, xe(e, !1));
1149
+ return o = a ? o + t.slice(a) : t, n ? o : xe(o, r, Ue, Ze(e, !1));
1150
1150
  }
1151
- function Ot(s, e) {
1151
+ function Nt(s, e) {
1152
1152
  if (e.options.singleQuote === !1 || e.implicitKey && s.includes(`
1153
1153
  `) || /[ \t]\n|\n[ \t]/.test(s))
1154
- return $e(s, e);
1155
- const t = e.indent || (Ze(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
1154
+ return Le(s, e);
1155
+ const t = e.indent || (et(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
1156
1156
  ${t}`) + "'";
1157
- return e.implicitKey ? n : Xe(n, t, bs, xe(e, !1));
1157
+ return e.implicitKey ? n : xe(n, t, ws, Ze(e, !1));
1158
1158
  }
1159
1159
  function ue(s, e) {
1160
1160
  const { singleQuote: t } = e.options;
1161
1161
  let n;
1162
1162
  if (t === !1)
1163
- n = $e;
1163
+ n = Le;
1164
1164
  else {
1165
1165
  const i = s.includes('"'), r = s.includes("'");
1166
- i && !r ? n = Ot : r && !i ? n = $e : n = t ? Ot : $e;
1166
+ i && !r ? n = Nt : r && !i ? n = Le : n = t ? Nt : Le;
1167
1167
  }
1168
1168
  return n(s, e);
1169
1169
  }
1170
- let Nt;
1170
+ let Tt;
1171
1171
  try {
1172
- Nt = new RegExp(`(^|(?<!
1172
+ Tt = new RegExp(`(^|(?<!
1173
1173
  ))
1174
1174
  +(?!
1175
1175
  |$)`, "g");
1176
1176
  } catch (s) {
1177
- Nt = /\n+(?!\n|$)/g;
1177
+ Tt = /\n+(?!\n|$)/g;
1178
1178
  }
1179
- function Ue({ comment: s, type: e, value: t }, n, i, r) {
1179
+ function Ve({ comment: s, type: e, value: t }, n, i, r) {
1180
1180
  const { blockQuote: o, commentString: a, lineWidth: l } = n.options;
1181
1181
  if (!o || /\n[\t ]+$/.test(t) || /^\s*$/.test(t))
1182
1182
  return ue(t, n);
1183
- const c = n.indent || (n.forceBlockIndent || Ze(t) ? " " : ""), h = o === "literal" ? !0 : o === "folded" || e === O.BLOCK_FOLDED ? !1 : e === O.BLOCK_LITERAL ? !0 : !Cn(t, l, c.length);
1183
+ const c = n.indent || (n.forceBlockIndent || et(t) ? " " : ""), h = o === "literal" ? !0 : o === "folded" || e === O.BLOCK_FOLDED ? !1 : e === O.BLOCK_LITERAL ? !0 : !_n(t, l, c.length);
1184
1184
  if (!t)
1185
1185
  return h ? `|
1186
1186
  ` : `>
@@ -1196,7 +1196,7 @@ function Ue({ comment: s, type: e, value: t }, n, i, r) {
1196
1196
  const y = m.indexOf(`
1197
1197
  `);
1198
1198
  y === -1 ? f = "-" : t === m || y !== m.length - 1 ? (f = "+", r && r()) : f = "", m && (t = t.slice(0, -m.length), m[m.length - 1] === `
1199
- ` && (m = m.slice(0, -1)), m = m.replace(Nt, `$&${c}`));
1199
+ ` && (m = m.slice(0, -1)), m = m.replace(Tt, `$&${c}`));
1200
1200
  let u = !1, g, b = -1;
1201
1201
  for (g = 0; g < t.length; ++g) {
1202
1202
  const T = t[g];
@@ -1216,24 +1216,24 @@ function Ue({ comment: s, type: e, value: t }, n, i, r) {
1216
1216
  ${c}${S}${t}${m}`;
1217
1217
  t = t.replace(/\n+/g, `
1218
1218
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
1219
- const N = Xe(`${S}${t}${m}`, c, kt, xe(n, !0));
1219
+ const N = xe(`${S}${t}${m}`, c, Ot, Ze(n, !0));
1220
1220
  return `${k}
1221
1221
  ${c}${N}`;
1222
1222
  }
1223
- function _n(s, e, t, n) {
1223
+ function Mn(s, e, t, n) {
1224
1224
  const { type: i, value: r } = s, { actualString: o, implicitKey: a, indent: l, indentStep: c, inFlow: h } = e;
1225
1225
  if (a && r.includes(`
1226
1226
  `) || h && /[[\]{},]/.test(r))
1227
1227
  return ue(r, e);
1228
1228
  if (!r || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))
1229
1229
  return a || h || !r.includes(`
1230
- `) ? ue(r, e) : Ue(s, e, t, n);
1230
+ `) ? ue(r, e) : Ve(s, e, t, n);
1231
1231
  if (!a && !h && i !== O.PLAIN && r.includes(`
1232
1232
  `))
1233
- return Ue(s, e, t, n);
1234
- if (Ze(r)) {
1233
+ return Ve(s, e, t, n);
1234
+ if (et(r)) {
1235
1235
  if (l === "")
1236
- return e.forceBlockIndent = !0, Ue(s, e, t, n);
1236
+ return e.forceBlockIndent = !0, Ve(s, e, t, n);
1237
1237
  if (a && l === c)
1238
1238
  return ue(r, e);
1239
1239
  }
@@ -1247,9 +1247,9 @@ ${l}`);
1247
1247
  if (y.some(p) || m != null && m.some(p))
1248
1248
  return ue(r, e);
1249
1249
  }
1250
- return a ? f : Xe(f, l, bs, xe(e, !1));
1250
+ return a ? f : xe(f, l, ws, Ze(e, !1));
1251
1251
  }
1252
- function Me(s, e, t, n) {
1252
+ function ve(s, e, t, n) {
1253
1253
  const { implicitKey: i, inFlow: r } = e, o = typeof s.value == "string" ? s : Object.assign({}, s, { value: String(s.value) });
1254
1254
  let { type: a } = s;
1255
1255
  a !== O.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (a = O.QUOTE_DOUBLE);
@@ -1257,13 +1257,13 @@ function Me(s, e, t, n) {
1257
1257
  switch (h) {
1258
1258
  case O.BLOCK_FOLDED:
1259
1259
  case O.BLOCK_LITERAL:
1260
- return i || r ? ue(o.value, e) : Ue(o, e, t, n);
1260
+ return i || r ? ue(o.value, e) : Ve(o, e, t, n);
1261
1261
  case O.QUOTE_DOUBLE:
1262
- return $e(o.value, e);
1262
+ return Le(o.value, e);
1263
1263
  case O.QUOTE_SINGLE:
1264
- return Ot(o.value, e);
1264
+ return Nt(o.value, e);
1265
1265
  case O.PLAIN:
1266
- return _n(o, e, t, n);
1266
+ return Mn(o, e, t, n);
1267
1267
  default:
1268
1268
  return null;
1269
1269
  }
@@ -1276,10 +1276,10 @@ function Me(s, e, t, n) {
1276
1276
  }
1277
1277
  return c;
1278
1278
  }
1279
- function ws(s, e) {
1279
+ function Ss(s, e) {
1280
1280
  const t = Object.assign({
1281
1281
  blockQuote: !0,
1282
- commentString: Ln,
1282
+ commentString: Cn,
1283
1283
  defaultKeyType: null,
1284
1284
  defaultStringType: "PLAIN",
1285
1285
  directives: null,
@@ -1317,7 +1317,7 @@ function ws(s, e) {
1317
1317
  options: t
1318
1318
  };
1319
1319
  }
1320
- function Mn(s, e) {
1320
+ function vn(s, e) {
1321
1321
  var i, r, o, a;
1322
1322
  if (e.tag) {
1323
1323
  const l = s.filter((c) => c.tag === e.tag);
@@ -1340,11 +1340,11 @@ function Mn(s, e) {
1340
1340
  }
1341
1341
  return t;
1342
1342
  }
1343
- function vn(s, e, { anchors: t, doc: n }) {
1343
+ function jn(s, e, { anchors: t, doc: n }) {
1344
1344
  if (!n.directives)
1345
1345
  return "";
1346
1346
  const i = [], r = (E(s) || L(s)) && s.anchor;
1347
- r && ds(r) && (t.add(r), i.push(`&${r}`));
1347
+ r && ps(r) && (t.add(r), i.push(`&${r}`));
1348
1348
  const o = s.tag ? s.tag : e.default ? null : e.tag;
1349
1349
  return o && i.push(n.directives.tagString(o)), i.join(" ");
1350
1350
  }
@@ -1361,14 +1361,14 @@ function pe(s, e, t, n) {
1361
1361
  }
1362
1362
  let i;
1363
1363
  const r = M(s) ? s : e.doc.createNode(s, { onTagObj: (h) => i = h });
1364
- i || (i = Mn(e.doc.schema.tags, r));
1365
- const o = vn(r, i, e);
1364
+ i || (i = vn(e.doc.schema.tags, r));
1365
+ const o = jn(r, i, e);
1366
1366
  o.length > 0 && (e.indentAtStart = ((c = e.indentAtStart) != null ? c : 0) + o.length + 1);
1367
- const a = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : E(r) ? Me(r, e, t, n) : r.toString(e, t, n);
1367
+ const a = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : E(r) ? ve(r, e, t, n) : r.toString(e, t, n);
1368
1368
  return o ? E(r) || a[0] === "{" || a[0] === "[" ? `${o} ${a}` : `${o}
1369
1369
  ${e.indent}${a}` : a;
1370
1370
  }
1371
- function jn({ key: s, value: e }, t, n, i) {
1371
+ function qn({ key: s, value: e }, t, n, i) {
1372
1372
  var C, w;
1373
1373
  const { allNullValues: r, doc: o, indent: a, indentStep: l, options: { commentString: c, indentSeq: h, simpleKeys: f } } = t;
1374
1374
  let p = M(s) && s.comment || null;
@@ -1409,7 +1409,7 @@ ${a}:`) : (g = `${g}:`, p && (g += ee(g, t.indent, c(p))));
1409
1409
  ` : "", S) {
1410
1410
  const $ = c(S);
1411
1411
  T += `
1412
- ${W($, t.indent)}`;
1412
+ ${Y($, t.indent)}`;
1413
1413
  }
1414
1414
  N === "" && !t.inFlow ? T === `
1415
1415
  ` && (T = `
@@ -1433,20 +1433,20 @@ ${t.indent}`);
1433
1433
  `) && (T = "");
1434
1434
  return g += T + N, t.inFlow ? k && n && n() : A && !k ? g += ee(g, t.indent, c(A)) : u && i && i(), g;
1435
1435
  }
1436
- function Ss(s, e) {
1436
+ function ks(s, e) {
1437
1437
  (s === "debug" || s === "warn") && (typeof process != "undefined" && process.emitWarning ? process.emitWarning(e) : console.warn(e));
1438
1438
  }
1439
- const Qt = "<<";
1440
- function ks(s, e, { key: t, value: n }) {
1441
- if (s != null && s.doc.schema.merge && qn(t))
1439
+ const Gt = "<<";
1440
+ function Os(s, e, { key: t, value: n }) {
1441
+ if (s != null && s.doc.schema.merge && Bn(t))
1442
1442
  if (n = ie(n) ? n.resolve(s.doc) : n, we(n))
1443
1443
  for (const i of n.items)
1444
- ht(s, e, i);
1444
+ dt(s, e, i);
1445
1445
  else if (Array.isArray(n))
1446
1446
  for (const i of n)
1447
- ht(s, e, i);
1447
+ dt(s, e, i);
1448
1448
  else
1449
- ht(s, e, n);
1449
+ dt(s, e, n);
1450
1450
  else {
1451
1451
  const i = R(t, "", s);
1452
1452
  if (e instanceof Map)
@@ -1454,7 +1454,7 @@ function ks(s, e, { key: t, value: n }) {
1454
1454
  else if (e instanceof Set)
1455
1455
  e.add(i);
1456
1456
  else {
1457
- const r = Bn(t, i, s), o = R(n, r, s);
1457
+ const r = Dn(t, i, s), o = R(n, r, s);
1458
1458
  r in e ? Object.defineProperty(e, r, {
1459
1459
  value: o,
1460
1460
  writable: !0,
@@ -1465,8 +1465,8 @@ function ks(s, e, { key: t, value: n }) {
1465
1465
  }
1466
1466
  return e;
1467
1467
  }
1468
- const qn = (s) => s === Qt || E(s) && s.value === Qt && (!s.type || s.type === O.PLAIN);
1469
- function ht(s, e, t) {
1468
+ const Bn = (s) => s === Gt || E(s) && s.value === Gt && (!s.type || s.type === O.PLAIN);
1469
+ function dt(s, e, t) {
1470
1470
  const n = s && ie(t) ? t.resolve(s.doc) : t;
1471
1471
  if (!be(n))
1472
1472
  throw new Error("Merge sources must be maps or map aliases");
@@ -1480,13 +1480,13 @@ function ht(s, e, t) {
1480
1480
  });
1481
1481
  return e;
1482
1482
  }
1483
- function Bn(s, e, t) {
1483
+ function Dn(s, e, t) {
1484
1484
  if (e === null)
1485
1485
  return "";
1486
1486
  if (typeof e != "object")
1487
1487
  return String(e);
1488
1488
  if (M(s) && (t != null && t.doc)) {
1489
- const n = ws(t.doc, {});
1489
+ const n = Ss(t.doc, {});
1490
1490
  n.anchors = /* @__PURE__ */ new Set();
1491
1491
  for (const r of t.anchors.keys())
1492
1492
  n.anchors.add(r.anchor);
@@ -1494,19 +1494,19 @@ function Bn(s, e, t) {
1494
1494
  const i = s.toString(n);
1495
1495
  if (!t.mapKeyWarned) {
1496
1496
  let r = JSON.stringify(i);
1497
- r.length > 40 && (r = r.substring(0, 36) + '..."'), Ss(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;
1497
+ r.length > 40 && (r = r.substring(0, 36) + '..."'), ks(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;
1498
1498
  }
1499
1499
  return i;
1500
1500
  }
1501
1501
  return JSON.stringify(e);
1502
1502
  }
1503
- function $t(s, e, t) {
1504
- const n = Le(s, void 0, t), i = Le(e, void 0, t);
1503
+ function Lt(s, e, t) {
1504
+ const n = Ce(s, void 0, t), i = Ce(e, void 0, t);
1505
1505
  return new q(n, i);
1506
1506
  }
1507
1507
  class q {
1508
1508
  constructor(e, t = null) {
1509
- Object.defineProperty(this, U, { value: ls }), this.key = e, this.value = t;
1509
+ Object.defineProperty(this, U, { value: cs }), this.key = e, this.value = t;
1510
1510
  }
1511
1511
  clone(e) {
1512
1512
  let { key: t, value: n } = this;
@@ -1514,17 +1514,17 @@ class q {
1514
1514
  }
1515
1515
  toJSON(e, t) {
1516
1516
  const n = t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {};
1517
- return ks(t, n, this);
1517
+ return Os(t, n, this);
1518
1518
  }
1519
1519
  toString(e, t, n) {
1520
- return e != null && e.doc ? jn(this, e, t, n) : JSON.stringify(this);
1520
+ return e != null && e.doc ? qn(this, e, t, n) : JSON.stringify(this);
1521
1521
  }
1522
1522
  }
1523
- function Os(s, e, t) {
1523
+ function Ns(s, e, t) {
1524
1524
  var r;
1525
- return (((r = e.inFlow) != null ? r : s.flow) ? Pn : Dn)(s, e, t);
1525
+ return (((r = e.inFlow) != null ? r : s.flow) ? Kn : Pn)(s, e, t);
1526
1526
  }
1527
- function Dn({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: a }) {
1527
+ function Pn({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: a }) {
1528
1528
  const { indent: l, options: { commentString: c } } = t, h = Object.assign({}, t, { indent: r, type: null });
1529
1529
  let f = !1;
1530
1530
  const p = [];
@@ -1532,10 +1532,10 @@ function Dn({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, ite
1532
1532
  const u = e[y];
1533
1533
  let g = null;
1534
1534
  if (M(u))
1535
- !f && u.spaceBefore && p.push(""), We(t, p, u.commentBefore, f), u.comment && (g = u.comment);
1535
+ !f && u.spaceBefore && p.push(""), Qe(t, p, u.commentBefore, f), u.comment && (g = u.comment);
1536
1536
  else if (I(u)) {
1537
1537
  const S = M(u.key) ? u.key : null;
1538
- S && (!f && S.spaceBefore && p.push(""), We(t, p, S.commentBefore, f));
1538
+ S && (!f && S.spaceBefore && p.push(""), Qe(t, p, S.commentBefore, f));
1539
1539
  }
1540
1540
  f = !1;
1541
1541
  let b = pe(u, h, () => g = null, () => f = !0);
@@ -1554,9 +1554,9 @@ ${l}${u}` : `
1554
1554
  }
1555
1555
  }
1556
1556
  return s ? (m += `
1557
- ` + W(c(s), l), a && a()) : f && o && o(), m;
1557
+ ` + Y(c(s), l), a && a()) : f && o && o(), m;
1558
1558
  }
1559
- function Pn({ items: s }, e, { flowChars: t, itemIndent: n }) {
1559
+ function Kn({ items: s }, e, { flowChars: t, itemIndent: n }) {
1560
1560
  const { indent: i, indentStep: r, flowCollectionPadding: o, options: { commentString: a } } = e;
1561
1561
  n += r;
1562
1562
  const l = Object.assign({}, e, {
@@ -1570,10 +1570,10 @@ function Pn({ items: s }, e, { flowChars: t, itemIndent: n }) {
1570
1570
  const u = s[y];
1571
1571
  let g = null;
1572
1572
  if (M(u))
1573
- u.spaceBefore && f.push(""), We(e, f, u.commentBefore, !1), u.comment && (g = u.comment);
1573
+ u.spaceBefore && f.push(""), Qe(e, f, u.commentBefore, !1), u.comment && (g = u.comment);
1574
1574
  else if (I(u)) {
1575
1575
  const S = M(u.key) ? u.key : null;
1576
- S && (S.spaceBefore && f.push(""), We(e, f, S.commentBefore, !1), S.comment && (c = !0));
1576
+ S && (S.spaceBefore && f.push(""), Qe(e, f, S.commentBefore, !1), S.comment && (c = !0));
1577
1577
  const A = M(u.value) ? u.value : null;
1578
1578
  A ? (A.comment && (g = A.comment), A.commentBefore && (c = !0)) : u.value == null && (S != null && S.comment) && (g = S.comment);
1579
1579
  }
@@ -1600,9 +1600,9 @@ ${i}${m}`;
1600
1600
  } else
1601
1601
  return `${p}${o}${f.join(" ")}${o}${m}`;
1602
1602
  }
1603
- function We({ indent: s, options: { commentString: e } }, t, n, i) {
1603
+ function Qe({ indent: s, options: { commentString: e } }, t, n, i) {
1604
1604
  if (n && i && (n = n.replace(/^\n+/, "")), n) {
1605
- const r = W(e(n), s);
1605
+ const r = Y(e(n), s);
1606
1606
  t.push(r.trimStart());
1607
1607
  }
1608
1608
  }
@@ -1612,7 +1612,7 @@ function te(s, e) {
1612
1612
  if (I(n) && (n.key === e || n.key === t || E(n.key) && n.key.value === t))
1613
1613
  return n;
1614
1614
  }
1615
- class F extends gs {
1615
+ class F extends bs {
1616
1616
  static get tagName() {
1617
1617
  return "tag:yaml.org,2002:map";
1618
1618
  }
@@ -1629,7 +1629,7 @@ class F extends gs {
1629
1629
  c = r.call(t, l, c);
1630
1630
  else if (Array.isArray(r) && !r.includes(l))
1631
1631
  return;
1632
- (c !== void 0 || i) && o.items.push($t(l, c, n));
1632
+ (c !== void 0 || i) && o.items.push(Lt(l, c, n));
1633
1633
  };
1634
1634
  if (t instanceof Map)
1635
1635
  for (const [l, c] of t)
@@ -1653,7 +1653,7 @@ class F extends gs {
1653
1653
  if (i) {
1654
1654
  if (!t)
1655
1655
  throw new Error(`Key ${n.key} already set`);
1656
- E(i.value) && ys(n.value) ? i.value.value = n.value : i.value = n.value;
1656
+ E(i.value) && gs(n.value) ? i.value.value = n.value : i.value = n.value;
1657
1657
  } else if (r) {
1658
1658
  const a = this.items.findIndex((l) => r(n, l) < 0);
1659
1659
  a === -1 ? this.items.push(n) : this.items.splice(a, 0, n);
@@ -1684,7 +1684,7 @@ class F extends gs {
1684
1684
  const i = n ? new n() : t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {};
1685
1685
  t != null && t.onCreate && t.onCreate(i);
1686
1686
  for (const r of this.items)
1687
- ks(t, i, r);
1687
+ Os(t, i, r);
1688
1688
  return i;
1689
1689
  }
1690
1690
  toString(e, t, n) {
@@ -1693,7 +1693,7 @@ class F extends gs {
1693
1693
  for (const i of this.items)
1694
1694
  if (!I(i))
1695
1695
  throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);
1696
- return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), Os(this, e, {
1696
+ return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), Ns(this, e, {
1697
1697
  blockItemPrefix: "",
1698
1698
  flowChars: { start: "{", end: "}" },
1699
1699
  itemIndent: e.indent || "",
@@ -1712,7 +1712,7 @@ const Se = {
1712
1712
  },
1713
1713
  createNode: (s, e, t) => F.from(s, e, t)
1714
1714
  };
1715
- class X extends gs {
1715
+ class z extends bs {
1716
1716
  static get tagName() {
1717
1717
  return "tag:yaml.org,2002:seq";
1718
1718
  }
@@ -1731,11 +1731,11 @@ class X extends gs {
1731
1731
  * @returns `true` if the item was found and removed.
1732
1732
  */
1733
1733
  delete(e) {
1734
- const t = Be(e);
1734
+ const t = De(e);
1735
1735
  return typeof t != "number" ? !1 : this.items.splice(t, 1).length > 0;
1736
1736
  }
1737
1737
  get(e, t) {
1738
- const n = Be(e);
1738
+ const n = De(e);
1739
1739
  if (typeof n != "number")
1740
1740
  return;
1741
1741
  const i = this.items[n];
@@ -1748,7 +1748,7 @@ class X extends gs {
1748
1748
  * It may be wrapped in a `Scalar`.
1749
1749
  */
1750
1750
  has(e) {
1751
- const t = Be(e);
1751
+ const t = De(e);
1752
1752
  return typeof t == "number" && t < this.items.length;
1753
1753
  }
1754
1754
  /**
@@ -1759,11 +1759,11 @@ class X extends gs {
1759
1759
  * It may be wrapped in a `Scalar`.
1760
1760
  */
1761
1761
  set(e, t) {
1762
- const n = Be(e);
1762
+ const n = De(e);
1763
1763
  if (typeof n != "number")
1764
1764
  throw new Error(`Expected a valid index, not ${e}.`);
1765
1765
  const i = this.items[n];
1766
- E(i) && ys(t) ? i.value = t : this.items[n] = t;
1766
+ E(i) && gs(t) ? i.value = t : this.items[n] = t;
1767
1767
  }
1768
1768
  toJSON(e, t) {
1769
1769
  const n = [];
@@ -1774,7 +1774,7 @@ class X extends gs {
1774
1774
  return n;
1775
1775
  }
1776
1776
  toString(e, t, n) {
1777
- return e ? Os(this, e, {
1777
+ return e ? Ns(this, e, {
1778
1778
  blockItemPrefix: "- ",
1779
1779
  flowChars: { start: "[", end: "]" },
1780
1780
  itemIndent: (e.indent || "") + " ",
@@ -1791,49 +1791,49 @@ class X extends gs {
1791
1791
  const l = t instanceof Set ? a : String(o++);
1792
1792
  a = i.call(t, l, a);
1793
1793
  }
1794
- r.items.push(Le(a, void 0, n));
1794
+ r.items.push(Ce(a, void 0, n));
1795
1795
  }
1796
1796
  }
1797
1797
  return r;
1798
1798
  }
1799
1799
  }
1800
- function Be(s) {
1800
+ function De(s) {
1801
1801
  let e = E(s) ? s.value : s;
1802
1802
  return e && typeof e == "string" && (e = Number(e)), typeof e == "number" && Number.isInteger(e) && e >= 0 ? e : null;
1803
1803
  }
1804
1804
  const ke = {
1805
1805
  collection: "seq",
1806
1806
  default: !0,
1807
- nodeClass: X,
1807
+ nodeClass: z,
1808
1808
  tag: "tag:yaml.org,2002:seq",
1809
1809
  resolve(s, e) {
1810
1810
  return we(s) || e("Expected a sequence for this tag"), s;
1811
1811
  },
1812
- createNode: (s, e, t) => X.from(s, e, t)
1813
- }, et = {
1812
+ createNode: (s, e, t) => z.from(s, e, t)
1813
+ }, tt = {
1814
1814
  identify: (s) => typeof s == "string",
1815
1815
  default: !0,
1816
1816
  tag: "tag:yaml.org,2002:str",
1817
1817
  resolve: (s) => s,
1818
1818
  stringify(s, e, t, n) {
1819
- return e = Object.assign({ actualString: !0 }, e), Me(s, e, t, n);
1819
+ return e = Object.assign({ actualString: !0 }, e), ve(s, e, t, n);
1820
1820
  }
1821
- }, tt = {
1821
+ }, st = {
1822
1822
  identify: (s) => s == null,
1823
1823
  createNode: () => new O(null),
1824
1824
  default: !0,
1825
1825
  tag: "tag:yaml.org,2002:null",
1826
1826
  test: /^(?:~|[Nn]ull|NULL)?$/,
1827
1827
  resolve: () => new O(null),
1828
- stringify: ({ source: s }, e) => typeof s == "string" && tt.test.test(s) ? s : e.options.nullStr
1829
- }, Lt = {
1828
+ stringify: ({ source: s }, e) => typeof s == "string" && st.test.test(s) ? s : e.options.nullStr
1829
+ }, Ct = {
1830
1830
  identify: (s) => typeof s == "boolean",
1831
1831
  default: !0,
1832
1832
  tag: "tag:yaml.org,2002:bool",
1833
1833
  test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
1834
1834
  resolve: (s) => new O(s[0] === "t" || s[0] === "T"),
1835
1835
  stringify({ source: s, value: e }, t) {
1836
- if (s && Lt.test.test(s)) {
1836
+ if (s && Ct.test.test(s)) {
1837
1837
  const n = s[0] === "t" || s[0] === "T";
1838
1838
  if (e === n)
1839
1839
  return s;
@@ -1857,14 +1857,14 @@ function J({ format: s, minFractionDigits: e, tag: t, value: n }) {
1857
1857
  }
1858
1858
  return r;
1859
1859
  }
1860
- const Ns = {
1860
+ const Ts = {
1861
1861
  identify: (s) => typeof s == "number",
1862
1862
  default: !0,
1863
1863
  tag: "tag:yaml.org,2002:float",
1864
1864
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
1865
1865
  resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
1866
1866
  stringify: J
1867
- }, Ts = {
1867
+ }, As = {
1868
1868
  identify: (s) => typeof s == "number",
1869
1869
  default: !0,
1870
1870
  tag: "tag:yaml.org,2002:float",
@@ -1875,7 +1875,7 @@ const Ns = {
1875
1875
  const e = Number(s.value);
1876
1876
  return isFinite(e) ? e.toExponential() : J(s);
1877
1877
  }
1878
- }, As = {
1878
+ }, Es = {
1879
1879
  identify: (s) => typeof s == "number",
1880
1880
  default: !0,
1881
1881
  tag: "tag:yaml.org,2002:float",
@@ -1885,57 +1885,57 @@ const Ns = {
1885
1885
  return t !== -1 && s[s.length - 1] === "0" && (e.minFractionDigits = s.length - t - 1), e;
1886
1886
  },
1887
1887
  stringify: J
1888
- }, st = (s) => typeof s == "bigint" || Number.isInteger(s), Ct = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
1889
- function Es(s, e, t) {
1888
+ }, nt = (s) => typeof s == "bigint" || Number.isInteger(s), _t = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
1889
+ function Is(s, e, t) {
1890
1890
  const { value: n } = s;
1891
- return st(n) && n >= 0 ? t + n.toString(e) : J(s);
1891
+ return nt(n) && n >= 0 ? t + n.toString(e) : J(s);
1892
1892
  }
1893
- const Is = {
1894
- identify: (s) => st(s) && s >= 0,
1893
+ const $s = {
1894
+ identify: (s) => nt(s) && s >= 0,
1895
1895
  default: !0,
1896
1896
  tag: "tag:yaml.org,2002:int",
1897
1897
  format: "OCT",
1898
1898
  test: /^0o[0-7]+$/,
1899
- resolve: (s, e, t) => Ct(s, 2, 8, t),
1900
- stringify: (s) => Es(s, 8, "0o")
1901
- }, $s = {
1902
- identify: st,
1899
+ resolve: (s, e, t) => _t(s, 2, 8, t),
1900
+ stringify: (s) => Is(s, 8, "0o")
1901
+ }, Ls = {
1902
+ identify: nt,
1903
1903
  default: !0,
1904
1904
  tag: "tag:yaml.org,2002:int",
1905
1905
  test: /^[-+]?[0-9]+$/,
1906
- resolve: (s, e, t) => Ct(s, 0, 10, t),
1906
+ resolve: (s, e, t) => _t(s, 0, 10, t),
1907
1907
  stringify: J
1908
- }, Ls = {
1909
- identify: (s) => st(s) && s >= 0,
1908
+ }, Cs = {
1909
+ identify: (s) => nt(s) && s >= 0,
1910
1910
  default: !0,
1911
1911
  tag: "tag:yaml.org,2002:int",
1912
1912
  format: "HEX",
1913
1913
  test: /^0x[0-9a-fA-F]+$/,
1914
- resolve: (s, e, t) => Ct(s, 2, 16, t),
1915
- stringify: (s) => Es(s, 16, "0x")
1916
- }, Kn = [
1914
+ resolve: (s, e, t) => _t(s, 2, 16, t),
1915
+ stringify: (s) => Is(s, 16, "0x")
1916
+ }, Fn = [
1917
1917
  Se,
1918
1918
  ke,
1919
- et,
1920
1919
  tt,
1921
- Lt,
1922
- Is,
1920
+ st,
1921
+ Ct,
1923
1922
  $s,
1924
1923
  Ls,
1925
- Ns,
1924
+ Cs,
1926
1925
  Ts,
1927
- As
1926
+ As,
1927
+ Es
1928
1928
  ];
1929
- function Gt(s) {
1929
+ function Ht(s) {
1930
1930
  return typeof s == "bigint" || Number.isInteger(s);
1931
1931
  }
1932
- const De = ({ value: s }) => JSON.stringify(s), Fn = [
1932
+ const Pe = ({ value: s }) => JSON.stringify(s), Rn = [
1933
1933
  {
1934
1934
  identify: (s) => typeof s == "string",
1935
1935
  default: !0,
1936
1936
  tag: "tag:yaml.org,2002:str",
1937
1937
  resolve: (s) => s,
1938
- stringify: De
1938
+ stringify: Pe
1939
1939
  },
1940
1940
  {
1941
1941
  identify: (s) => s == null,
@@ -1944,7 +1944,7 @@ const De = ({ value: s }) => JSON.stringify(s), Fn = [
1944
1944
  tag: "tag:yaml.org,2002:null",
1945
1945
  test: /^null$/,
1946
1946
  resolve: () => null,
1947
- stringify: De
1947
+ stringify: Pe
1948
1948
  },
1949
1949
  {
1950
1950
  identify: (s) => typeof s == "boolean",
@@ -1952,15 +1952,15 @@ const De = ({ value: s }) => JSON.stringify(s), Fn = [
1952
1952
  tag: "tag:yaml.org,2002:bool",
1953
1953
  test: /^true|false$/,
1954
1954
  resolve: (s) => s === "true",
1955
- stringify: De
1955
+ stringify: Pe
1956
1956
  },
1957
1957
  {
1958
- identify: Gt,
1958
+ identify: Ht,
1959
1959
  default: !0,
1960
1960
  tag: "tag:yaml.org,2002:int",
1961
1961
  test: /^-?(?:0|[1-9][0-9]*)$/,
1962
1962
  resolve: (s, e, { intAsBigInt: t }) => t ? BigInt(s) : parseInt(s, 10),
1963
- stringify: ({ value: s }) => Gt(s) ? s.toString() : JSON.stringify(s)
1963
+ stringify: ({ value: s }) => Ht(s) ? s.toString() : JSON.stringify(s)
1964
1964
  },
1965
1965
  {
1966
1966
  identify: (s) => typeof s == "number",
@@ -1968,16 +1968,16 @@ const De = ({ value: s }) => JSON.stringify(s), Fn = [
1968
1968
  tag: "tag:yaml.org,2002:float",
1969
1969
  test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
1970
1970
  resolve: (s) => parseFloat(s),
1971
- stringify: De
1971
+ stringify: Pe
1972
1972
  }
1973
- ], Rn = {
1973
+ ], Un = {
1974
1974
  default: !0,
1975
1975
  tag: "",
1976
1976
  test: /^/,
1977
1977
  resolve(s, e) {
1978
1978
  return e(`Unresolved plain scalar ${JSON.stringify(s)}`), s;
1979
1979
  }
1980
- }, Un = [Se, ke].concat(Fn, Rn), _t = {
1980
+ }, Vn = [Se, ke].concat(Rn, Un), Mt = {
1981
1981
  identify: (s) => s instanceof Uint8Array,
1982
1982
  // Buffer inherits from Uint8Array
1983
1983
  default: !1,
@@ -2020,10 +2020,10 @@ const De = ({ value: s }) => JSON.stringify(s), Fn = [
2020
2020
  a = h.join(e === O.BLOCK_LITERAL ? `
2021
2021
  ` : " ");
2022
2022
  }
2023
- return Me({ comment: s, type: e, value: a }, n, i, r);
2023
+ return ve({ comment: s, type: e, value: a }, n, i, r);
2024
2024
  }
2025
2025
  };
2026
- function Cs(s, e) {
2026
+ function _s(s, e) {
2027
2027
  var t;
2028
2028
  if (we(s))
2029
2029
  for (let n = 0; n < s.items.length; ++n) {
@@ -2047,8 +2047,8 @@ ${o.comment}` : i.comment;
2047
2047
  e("Expected a sequence for this tag");
2048
2048
  return s;
2049
2049
  }
2050
- function _s(s, e, t) {
2051
- const { replacer: n } = t, i = new X(s);
2050
+ function Ms(s, e, t) {
2051
+ const { replacer: n } = t, i = new z(s);
2052
2052
  i.tag = "tag:yaml.org,2002:pairs";
2053
2053
  let r = 0;
2054
2054
  if (e && Symbol.iterator in Object(e))
@@ -2068,18 +2068,18 @@ function _s(s, e, t) {
2068
2068
  throw new TypeError(`Expected tuple with one key, not ${c.length} keys`);
2069
2069
  } else
2070
2070
  a = o;
2071
- i.items.push($t(a, l, t));
2071
+ i.items.push(Lt(a, l, t));
2072
2072
  }
2073
2073
  return i;
2074
2074
  }
2075
- const Mt = {
2075
+ const vt = {
2076
2076
  collection: "seq",
2077
2077
  default: !1,
2078
2078
  tag: "tag:yaml.org,2002:pairs",
2079
- resolve: Cs,
2080
- createNode: _s
2079
+ resolve: _s,
2080
+ createNode: Ms
2081
2081
  };
2082
- class he extends X {
2082
+ class he extends z {
2083
2083
  constructor() {
2084
2084
  super(), this.add = F.prototype.add.bind(this), this.delete = F.prototype.delete.bind(this), this.get = F.prototype.get.bind(this), this.has = F.prototype.has.bind(this), this.set = F.prototype.set.bind(this), this.tag = he.tag;
2085
2085
  }
@@ -2101,50 +2101,50 @@ class he extends X {
2101
2101
  return n;
2102
2102
  }
2103
2103
  static from(e, t, n) {
2104
- const i = _s(e, t, n), r = new this();
2104
+ const i = Ms(e, t, n), r = new this();
2105
2105
  return r.items = i.items, r;
2106
2106
  }
2107
2107
  }
2108
2108
  he.tag = "tag:yaml.org,2002:omap";
2109
- const vt = {
2109
+ const jt = {
2110
2110
  collection: "seq",
2111
2111
  identify: (s) => s instanceof Map,
2112
2112
  nodeClass: he,
2113
2113
  default: !1,
2114
2114
  tag: "tag:yaml.org,2002:omap",
2115
2115
  resolve(s, e) {
2116
- const t = Cs(s, e), n = [];
2116
+ const t = _s(s, e), n = [];
2117
2117
  for (const { key: i } of t.items)
2118
2118
  E(i) && (n.includes(i.value) ? e(`Ordered maps must not include duplicate keys: ${i.value}`) : n.push(i.value));
2119
2119
  return Object.assign(new he(), t);
2120
2120
  },
2121
2121
  createNode: (s, e, t) => he.from(s, e, t)
2122
2122
  };
2123
- function Ms({ value: s, source: e }, t) {
2124
- return e && (s ? vs : js).test.test(e) ? e : s ? t.options.trueStr : t.options.falseStr;
2123
+ function vs({ value: s, source: e }, t) {
2124
+ return e && (s ? js : qs).test.test(e) ? e : s ? t.options.trueStr : t.options.falseStr;
2125
2125
  }
2126
- const vs = {
2126
+ const js = {
2127
2127
  identify: (s) => s === !0,
2128
2128
  default: !0,
2129
2129
  tag: "tag:yaml.org,2002:bool",
2130
2130
  test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
2131
2131
  resolve: () => new O(!0),
2132
- stringify: Ms
2133
- }, js = {
2132
+ stringify: vs
2133
+ }, qs = {
2134
2134
  identify: (s) => s === !1,
2135
2135
  default: !0,
2136
2136
  tag: "tag:yaml.org,2002:bool",
2137
2137
  test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
2138
2138
  resolve: () => new O(!1),
2139
- stringify: Ms
2140
- }, Vn = {
2139
+ stringify: vs
2140
+ }, Jn = {
2141
2141
  identify: (s) => typeof s == "number",
2142
2142
  default: !0,
2143
2143
  tag: "tag:yaml.org,2002:float",
2144
2144
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
2145
2145
  resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
2146
2146
  stringify: J
2147
- }, Jn = {
2147
+ }, Wn = {
2148
2148
  identify: (s) => typeof s == "number",
2149
2149
  default: !0,
2150
2150
  tag: "tag:yaml.org,2002:float",
@@ -2169,8 +2169,8 @@ const vs = {
2169
2169
  return e;
2170
2170
  },
2171
2171
  stringify: J
2172
- }, ve = (s) => typeof s == "bigint" || Number.isInteger(s);
2173
- function nt(s, e, t, { intAsBigInt: n }) {
2172
+ }, je = (s) => typeof s == "bigint" || Number.isInteger(s);
2173
+ function it(s, e, t, { intAsBigInt: n }) {
2174
2174
  const i = s[0];
2175
2175
  if ((i === "-" || i === "+") && (e += 1), s = s.substring(e).replace(/_/g, ""), n) {
2176
2176
  switch (t) {
@@ -2190,45 +2190,45 @@ function nt(s, e, t, { intAsBigInt: n }) {
2190
2190
  const r = parseInt(s, t);
2191
2191
  return i === "-" ? -1 * r : r;
2192
2192
  }
2193
- function jt(s, e, t) {
2193
+ function qt(s, e, t) {
2194
2194
  const { value: n } = s;
2195
- if (ve(n)) {
2195
+ if (je(n)) {
2196
2196
  const i = n.toString(e);
2197
2197
  return n < 0 ? "-" + t + i.substr(1) : t + i;
2198
2198
  }
2199
2199
  return J(s);
2200
2200
  }
2201
- const Wn = {
2202
- identify: ve,
2201
+ const Qn = {
2202
+ identify: je,
2203
2203
  default: !0,
2204
2204
  tag: "tag:yaml.org,2002:int",
2205
2205
  format: "BIN",
2206
2206
  test: /^[-+]?0b[0-1_]+$/,
2207
- resolve: (s, e, t) => nt(s, 2, 2, t),
2208
- stringify: (s) => jt(s, 2, "0b")
2209
- }, Qn = {
2210
- identify: ve,
2207
+ resolve: (s, e, t) => it(s, 2, 2, t),
2208
+ stringify: (s) => qt(s, 2, "0b")
2209
+ }, Gn = {
2210
+ identify: je,
2211
2211
  default: !0,
2212
2212
  tag: "tag:yaml.org,2002:int",
2213
2213
  format: "OCT",
2214
2214
  test: /^[-+]?0[0-7_]+$/,
2215
- resolve: (s, e, t) => nt(s, 1, 8, t),
2216
- stringify: (s) => jt(s, 8, "0")
2217
- }, Gn = {
2218
- identify: ve,
2215
+ resolve: (s, e, t) => it(s, 1, 8, t),
2216
+ stringify: (s) => qt(s, 8, "0")
2217
+ }, Hn = {
2218
+ identify: je,
2219
2219
  default: !0,
2220
2220
  tag: "tag:yaml.org,2002:int",
2221
2221
  test: /^[-+]?[0-9][0-9_]*$/,
2222
- resolve: (s, e, t) => nt(s, 0, 10, t),
2222
+ resolve: (s, e, t) => it(s, 0, 10, t),
2223
2223
  stringify: J
2224
- }, Hn = {
2225
- identify: ve,
2224
+ }, Xn = {
2225
+ identify: je,
2226
2226
  default: !0,
2227
2227
  tag: "tag:yaml.org,2002:int",
2228
2228
  format: "HEX",
2229
2229
  test: /^[-+]?0x[0-9a-fA-F_]+$/,
2230
- resolve: (s, e, t) => nt(s, 2, 16, t),
2231
- stringify: (s) => jt(s, 16, "0x")
2230
+ resolve: (s, e, t) => it(s, 2, 16, t),
2231
+ stringify: (s) => qt(s, 16, "0x")
2232
2232
  };
2233
2233
  class de extends F {
2234
2234
  constructor(e) {
@@ -2266,12 +2266,12 @@ class de extends F {
2266
2266
  const { replacer: i } = n, r = new this(e);
2267
2267
  if (t && Symbol.iterator in Object(t))
2268
2268
  for (let o of t)
2269
- typeof i == "function" && (o = i.call(t, o, o)), r.items.push($t(o, null, n));
2269
+ typeof i == "function" && (o = i.call(t, o, o)), r.items.push(Lt(o, null, n));
2270
2270
  return r;
2271
2271
  }
2272
2272
  }
2273
2273
  de.tag = "tag:yaml.org,2002:set";
2274
- const qt = {
2274
+ const Bt = {
2275
2275
  collection: "map",
2276
2276
  identify: (s) => s instanceof Set,
2277
2277
  nodeClass: de,
@@ -2288,11 +2288,11 @@ const qt = {
2288
2288
  return s;
2289
2289
  }
2290
2290
  };
2291
- function Bt(s, e) {
2291
+ function Dt(s, e) {
2292
2292
  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, a) => o * i(60) + i(a), i(0));
2293
2293
  return t === "-" ? i(-1) * r : r;
2294
2294
  }
2295
- function qs(s) {
2295
+ function Bs(s) {
2296
2296
  let { value: e } = s, t = (o) => o;
2297
2297
  if (typeof e == "bigint")
2298
2298
  t = (o) => BigInt(o);
@@ -2303,23 +2303,23 @@ function qs(s) {
2303
2303
  const i = t(60), r = [e % i];
2304
2304
  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*$/, "");
2305
2305
  }
2306
- const Bs = {
2306
+ const Ds = {
2307
2307
  identify: (s) => typeof s == "bigint" || Number.isInteger(s),
2308
2308
  default: !0,
2309
2309
  tag: "tag:yaml.org,2002:int",
2310
2310
  format: "TIME",
2311
2311
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,
2312
- resolve: (s, e, { intAsBigInt: t }) => Bt(s, t),
2313
- stringify: qs
2314
- }, Ds = {
2312
+ resolve: (s, e, { intAsBigInt: t }) => Dt(s, t),
2313
+ stringify: Bs
2314
+ }, Ps = {
2315
2315
  identify: (s) => typeof s == "number",
2316
2316
  default: !0,
2317
2317
  tag: "tag:yaml.org,2002:float",
2318
2318
  format: "TIME",
2319
2319
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
2320
- resolve: (s) => Bt(s, !1),
2321
- stringify: qs
2322
- }, it = {
2320
+ resolve: (s) => Dt(s, !1),
2321
+ stringify: Bs
2322
+ }, rt = {
2323
2323
  identify: (s) => s instanceof Date,
2324
2324
  default: !0,
2325
2325
  tag: "tag:yaml.org,2002:timestamp",
@@ -2328,72 +2328,72 @@ const Bs = {
2328
2328
  // assumed to be 00:00:00Z (start of day, UTC).
2329
2329
  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})?))?)?$"),
2330
2330
  resolve(s) {
2331
- const e = s.match(it.test);
2331
+ const e = s.match(rt.test);
2332
2332
  if (!e)
2333
2333
  throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");
2334
2334
  const [, t, n, i, r, o, a] = e.map(Number), l = e[7] ? Number((e[7] + "00").substr(1, 3)) : 0;
2335
2335
  let c = Date.UTC(t, n - 1, i, r || 0, o || 0, a || 0, l);
2336
2336
  const h = e[8];
2337
2337
  if (h && h !== "Z") {
2338
- let f = Bt(h, !1);
2338
+ let f = Dt(h, !1);
2339
2339
  Math.abs(f) < 30 && (f *= 60), c -= 6e4 * f;
2340
2340
  }
2341
2341
  return new Date(c);
2342
2342
  },
2343
2343
  stringify: ({ value: s }) => s.toISOString().replace(/((T00:00)?:00)?\.000Z$/, "")
2344
- }, Ht = [
2344
+ }, Xt = [
2345
2345
  Se,
2346
2346
  ke,
2347
- et,
2348
2347
  tt,
2349
- vs,
2348
+ st,
2350
2349
  js,
2351
- Wn,
2350
+ qs,
2352
2351
  Qn,
2353
2352
  Gn,
2354
2353
  Hn,
2355
- Vn,
2354
+ Xn,
2356
2355
  Jn,
2356
+ Wn,
2357
2357
  Yn,
2358
- _t,
2359
- vt,
2360
2358
  Mt,
2361
- qt,
2362
- Bs,
2359
+ jt,
2360
+ vt,
2361
+ Bt,
2363
2362
  Ds,
2364
- it
2363
+ Ps,
2364
+ rt
2365
2365
  ], zt = /* @__PURE__ */ new Map([
2366
- ["core", Kn],
2367
- ["failsafe", [Se, ke, et]],
2368
- ["json", Un],
2369
- ["yaml11", Ht],
2370
- ["yaml-1.1", Ht]
2371
- ]), Xt = {
2372
- binary: _t,
2373
- bool: Lt,
2374
- float: As,
2375
- floatExp: Ts,
2376
- floatNaN: Ns,
2377
- floatTime: Ds,
2378
- int: $s,
2379
- intHex: Ls,
2380
- intOct: Is,
2381
- intTime: Bs,
2366
+ ["core", Fn],
2367
+ ["failsafe", [Se, ke, tt]],
2368
+ ["json", Vn],
2369
+ ["yaml11", Xt],
2370
+ ["yaml-1.1", Xt]
2371
+ ]), xt = {
2372
+ binary: Mt,
2373
+ bool: Ct,
2374
+ float: Es,
2375
+ floatExp: As,
2376
+ floatNaN: Ts,
2377
+ floatTime: Ps,
2378
+ int: Ls,
2379
+ intHex: Cs,
2380
+ intOct: $s,
2381
+ intTime: Ds,
2382
2382
  map: Se,
2383
- null: tt,
2384
- omap: vt,
2385
- pairs: Mt,
2383
+ null: st,
2384
+ omap: jt,
2385
+ pairs: vt,
2386
2386
  seq: ke,
2387
- set: qt,
2388
- timestamp: it
2387
+ set: Bt,
2388
+ timestamp: rt
2389
2389
  }, zn = {
2390
- "tag:yaml.org,2002:binary": _t,
2391
- "tag:yaml.org,2002:omap": vt,
2392
- "tag:yaml.org,2002:pairs": Mt,
2393
- "tag:yaml.org,2002:set": qt,
2394
- "tag:yaml.org,2002:timestamp": it
2390
+ "tag:yaml.org,2002:binary": Mt,
2391
+ "tag:yaml.org,2002:omap": jt,
2392
+ "tag:yaml.org,2002:pairs": vt,
2393
+ "tag:yaml.org,2002:set": Bt,
2394
+ "tag:yaml.org,2002:timestamp": rt
2395
2395
  };
2396
- function dt(s, e) {
2396
+ function pt(s, e) {
2397
2397
  let t = zt.get(e);
2398
2398
  if (!t)
2399
2399
  if (Array.isArray(s))
@@ -2410,24 +2410,24 @@ function dt(s, e) {
2410
2410
  return t.map((n) => {
2411
2411
  if (typeof n != "string")
2412
2412
  return n;
2413
- const i = Xt[n];
2413
+ const i = xt[n];
2414
2414
  if (i)
2415
2415
  return i;
2416
- const r = Object.keys(Xt).map((o) => JSON.stringify(o)).join(", ");
2416
+ const r = Object.keys(xt).map((o) => JSON.stringify(o)).join(", ");
2417
2417
  throw new Error(`Unknown custom tag "${n}"; use one of ${r}`);
2418
2418
  });
2419
2419
  }
2420
- const Xn = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2421
- class rt {
2420
+ const xn = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2421
+ class ot {
2422
2422
  constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: i, schema: r, sortMapEntries: o, toStringDefaults: a }) {
2423
- this.compat = Array.isArray(e) ? dt(e, "compat") : e ? dt(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ? zn : {}, this.tags = dt(t, this.name), this.toStringOptions = a != null ? a : null, Object.defineProperty(this, H, { value: Se }), Object.defineProperty(this, Q, { value: et }), Object.defineProperty(this, ye, { value: ke }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? Xn : null;
2423
+ this.compat = Array.isArray(e) ? pt(e, "compat") : e ? pt(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ? zn : {}, this.tags = pt(t, this.name), this.toStringOptions = a != null ? a : null, Object.defineProperty(this, H, { value: Se }), Object.defineProperty(this, Q, { value: tt }), Object.defineProperty(this, ye, { value: ke }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? xn : null;
2424
2424
  }
2425
2425
  clone() {
2426
- const e = Object.create(rt.prototype, Object.getOwnPropertyDescriptors(this));
2426
+ const e = Object.create(ot.prototype, Object.getOwnPropertyDescriptors(this));
2427
2427
  return e.tags = this.tags.slice(), e;
2428
2428
  }
2429
2429
  }
2430
- function xn(s, e) {
2430
+ function Zn(s, e) {
2431
2431
  var l;
2432
2432
  const t = [];
2433
2433
  let n = e.directives === !0;
@@ -2436,18 +2436,18 @@ function xn(s, e) {
2436
2436
  c ? (t.push(c), n = !0) : s.directives.docStart && (n = !0);
2437
2437
  }
2438
2438
  n && t.push("---");
2439
- const i = ws(s, e), { commentString: r } = i.options;
2439
+ const i = Ss(s, e), { commentString: r } = i.options;
2440
2440
  if (s.commentBefore) {
2441
2441
  t.length !== 1 && t.unshift("");
2442
2442
  const c = r(s.commentBefore);
2443
- t.unshift(W(c, ""));
2443
+ t.unshift(Y(c, ""));
2444
2444
  }
2445
2445
  let o = !1, a = null;
2446
2446
  if (s.contents) {
2447
2447
  if (M(s.contents)) {
2448
2448
  if (s.contents.spaceBefore && n && t.push(""), s.contents.commentBefore) {
2449
2449
  const f = r(s.contents.commentBefore);
2450
- t.push(W(f, ""));
2450
+ t.push(Y(f, ""));
2451
2451
  }
2452
2452
  i.forceBlockIndent = !!s.comment, a = s.contents.comment;
2453
2453
  }
@@ -2460,12 +2460,12 @@ function xn(s, e) {
2460
2460
  if (s.comment) {
2461
2461
  const c = r(s.comment);
2462
2462
  c.includes(`
2463
- `) ? (t.push("..."), t.push(W(c, ""))) : t.push(`... ${c}`);
2463
+ `) ? (t.push("..."), t.push(Y(c, ""))) : t.push(`... ${c}`);
2464
2464
  } else
2465
2465
  t.push("...");
2466
2466
  else {
2467
2467
  let c = s.comment;
2468
- c && o && (c = c.replace(/^\n+/, "")), c && ((!o || a) && t[t.length - 1] !== "" && t.push(""), t.push(W(r(c), "")));
2468
+ c && o && (c = c.replace(/^\n+/, "")), c && ((!o || a) && t[t.length - 1] !== "" && t.push(""), t.push(Y(r(c), "")));
2469
2469
  }
2470
2470
  return t.join(`
2471
2471
  `) + `
@@ -2473,7 +2473,7 @@ function xn(s, e) {
2473
2473
  }
2474
2474
  class Oe {
2475
2475
  constructor(e, t, n) {
2476
- this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, U, { value: St });
2476
+ this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, U, { value: kt });
2477
2477
  let i = null;
2478
2478
  typeof t == "function" || Array.isArray(t) ? i = t : n === void 0 && t && (n = t, t = void 0);
2479
2479
  const r = Object.assign({
@@ -2496,7 +2496,7 @@ class Oe {
2496
2496
  */
2497
2497
  clone() {
2498
2498
  const e = Object.create(Oe.prototype, {
2499
- [U]: { value: St }
2499
+ [U]: { value: kt }
2500
2500
  });
2501
2501
  return e.commentBefore = this.commentBefore, e.comment = this.comment, e.errors = this.errors.slice(), e.warnings = this.warnings.slice(), e.options = Object.assign({}, this.options), this.directives && (e.directives = this.directives.clone()), e.schema = this.schema.clone(), e.contents = M(this.contents) ? this.contents.clone(e.schema) : this.contents, this.range && (e.range = this.range.slice()), e;
2502
2502
  }
@@ -2519,9 +2519,9 @@ class Oe {
2519
2519
  */
2520
2520
  createAlias(e, t) {
2521
2521
  if (!e.anchor) {
2522
- const n = ps(this);
2522
+ const n = ms(this);
2523
2523
  e.anchor = // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2524
- !t || n.has(t) ? ms(t || "a", n) : t;
2524
+ !t || n.has(t) ? ys(t || "a", n) : t;
2525
2525
  }
2526
2526
  return new ze(e.anchor);
2527
2527
  }
@@ -2534,7 +2534,7 @@ class Oe {
2534
2534
  b.length > 0 && (t = t.concat(b)), i = t;
2535
2535
  } else
2536
2536
  n === void 0 && t && (n = t, t = void 0);
2537
- const { aliasDuplicateObjects: r, anchorPrefix: o, flow: a, keepUndefined: l, onTagObj: c, tag: h } = n != null ? n : {}, { onAnchor: f, setAnchors: p, sourceObjects: m } = En(
2537
+ const { aliasDuplicateObjects: r, anchorPrefix: o, flow: a, keepUndefined: l, onTagObj: c, tag: h } = n != null ? n : {}, { onAnchor: f, setAnchors: p, sourceObjects: m } = In(
2538
2538
  this,
2539
2539
  // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2540
2540
  o || "a"
@@ -2546,7 +2546,7 @@ class Oe {
2546
2546
  replacer: i,
2547
2547
  schema: this.schema,
2548
2548
  sourceObjects: m
2549
- }, u = Le(e, h, y);
2549
+ }, u = Ce(e, h, y);
2550
2550
  return a && L(u) && (u.flow = !0), p(), u;
2551
2551
  }
2552
2552
  /**
@@ -2642,7 +2642,7 @@ class Oe {
2642
2642
  if (t.schema instanceof Object)
2643
2643
  this.schema = t.schema;
2644
2644
  else if (n)
2645
- this.schema = new rt(Object.assign(n, t));
2645
+ this.schema = new ot(Object.assign(n, t));
2646
2646
  else
2647
2647
  throw new Error("With a null YAML version, the { schema: Schema } option is required");
2648
2648
  }
@@ -2678,7 +2678,7 @@ class Oe {
2678
2678
  const t = JSON.stringify(e.indent);
2679
2679
  throw new Error(`"indent" option must be a positive integer, not ${t}`);
2680
2680
  }
2681
- return xn(this, e);
2681
+ return Zn(this, e);
2682
2682
  }
2683
2683
  }
2684
2684
  function oe(s) {
@@ -2686,22 +2686,22 @@ function oe(s) {
2686
2686
  return !0;
2687
2687
  throw new Error("Expected a YAML collection as document contents");
2688
2688
  }
2689
- class Dt extends Error {
2689
+ class Pt extends Error {
2690
2690
  constructor(e, t, n, i) {
2691
2691
  super(), this.name = e, this.code = n, this.message = i, this.pos = t;
2692
2692
  }
2693
2693
  }
2694
- class se extends Dt {
2694
+ class se extends Pt {
2695
2695
  constructor(e, t, n) {
2696
2696
  super("YAMLParseError", e, t, n);
2697
2697
  }
2698
2698
  }
2699
- class Ps extends Dt {
2699
+ class Ks extends Pt {
2700
2700
  constructor(e, t, n) {
2701
2701
  super("YAMLWarning", e, t, n);
2702
2702
  }
2703
2703
  }
2704
- const Qe = (s, e) => (t) => {
2704
+ const Ge = (s, e) => (t) => {
2705
2705
  if (t.pos[0] === -1)
2706
2706
  return;
2707
2707
  t.linePos = t.pos.map((a) => e.linePos(a));
@@ -2777,7 +2777,7 @@ function me(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
2777
2777
  start: N != null ? N : C
2778
2778
  };
2779
2779
  }
2780
- function Ce(s) {
2780
+ function _e(s) {
2781
2781
  if (!s)
2782
2782
  return null;
2783
2783
  switch (s.type) {
@@ -2804,7 +2804,7 @@ function Ce(s) {
2804
2804
  if (t.type === "newline")
2805
2805
  return !0;
2806
2806
  }
2807
- if (Ce(e.key) || Ce(e.value))
2807
+ if (_e(e.key) || _e(e.value))
2808
2808
  return !0;
2809
2809
  }
2810
2810
  return !1;
@@ -2812,21 +2812,21 @@ function Ce(s) {
2812
2812
  return !0;
2813
2813
  }
2814
2814
  }
2815
- function Tt(s, e, t) {
2815
+ function At(s, e, t) {
2816
2816
  if ((e == null ? void 0 : e.type) === "flow-collection") {
2817
2817
  const n = e.end[0];
2818
- n.indent === s && (n.source === "]" || n.source === "}") && Ce(e) && t(n, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
2818
+ n.indent === s && (n.source === "]" || n.source === "}") && _e(e) && t(n, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
2819
2819
  }
2820
2820
  }
2821
- function Ks(s, e, t) {
2821
+ function Fs(s, e, t) {
2822
2822
  const { uniqueKeys: n } = s.options;
2823
2823
  if (n === !1)
2824
2824
  return !1;
2825
2825
  const i = typeof n == "function" ? n : (r, o) => r === o || E(r) && E(o) && r.value === o.value && !(r.value === "<<" && s.schema.merge);
2826
2826
  return e.some((r) => i(r.key, t));
2827
2827
  }
2828
- const xt = "All mapping items must start at the same column";
2829
- function Zn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2828
+ const Zt = "All mapping items must start at the same column";
2829
+ function ei({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2830
2830
  var h, f;
2831
2831
  const o = (h = r == null ? void 0 : r.nodeClass) != null ? h : F, a = new o(t.schema);
2832
2832
  t.atRoot && (t.atRoot = !1);
@@ -2841,16 +2841,16 @@ function Zn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2841
2841
  startOnNewline: !0
2842
2842
  }), S = !b.found;
2843
2843
  if (S) {
2844
- if (y && (y.type === "block-seq" ? i(l, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in y && y.indent !== n.indent && i(l, "BAD_INDENT", xt)), !b.anchor && !b.tag && !u) {
2844
+ if (y && (y.type === "block-seq" ? i(l, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in y && y.indent !== n.indent && i(l, "BAD_INDENT", Zt)), !b.anchor && !b.tag && !u) {
2845
2845
  c = b.end, b.comment && (a.comment ? a.comment += `
2846
2846
  ` + b.comment : a.comment = b.comment);
2847
2847
  continue;
2848
2848
  }
2849
- (b.newlineAfterProp || Ce(y)) && i(y != null ? y : m[m.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2849
+ (b.newlineAfterProp || _e(y)) && i(y != null ? y : m[m.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2850
2850
  } else
2851
- ((f = b.found) == null ? void 0 : f.indent) !== n.indent && i(l, "BAD_INDENT", xt);
2851
+ ((f = b.found) == null ? void 0 : f.indent) !== n.indent && i(l, "BAD_INDENT", Zt);
2852
2852
  const A = b.end, k = y ? s(t, y, b, i) : e(t, A, m, null, b, i);
2853
- t.schema.compat && Tt(n.indent, y, i), Ks(t, a.items, k) && i(A, "DUPLICATE_KEY", "Map keys must be unique");
2853
+ t.schema.compat && At(n.indent, y, i), Fs(t, a.items, k) && i(A, "DUPLICATE_KEY", "Map keys must be unique");
2854
2854
  const N = me(u != null ? u : [], {
2855
2855
  indicator: "map-value-ind",
2856
2856
  next: g,
@@ -2862,7 +2862,7 @@ function Zn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2862
2862
  if (l = N.end, N.found) {
2863
2863
  S && ((g == null ? void 0 : g.type) === "block-map" && !N.hasNewline && i(l, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && b.start < N.found.offset - 1024 && i(k.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
2864
2864
  const T = g ? s(t, g, N, i) : e(t, l, u, null, N, i);
2865
- t.schema.compat && Tt(n.indent, g, i), l = T.range[2];
2865
+ t.schema.compat && At(n.indent, g, i), l = T.range[2];
2866
2866
  const C = new q(k, T);
2867
2867
  t.options.keepSourceTokens && (C.srcToken = p), a.items.push(C);
2868
2868
  } else {
@@ -2874,9 +2874,9 @@ function Zn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2874
2874
  }
2875
2875
  return c && c < l && i(c, "IMPOSSIBLE", "Map comment with trailing content"), a.range = [n.offset, l, c != null ? c : l], a;
2876
2876
  }
2877
- function ei({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2877
+ function ti({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2878
2878
  var h;
2879
- const o = (h = r == null ? void 0 : r.nodeClass) != null ? h : X, a = new o(t.schema);
2879
+ const o = (h = r == null ? void 0 : r.nodeClass) != null ? h : z, a = new o(t.schema);
2880
2880
  t.atRoot && (t.atRoot = !1);
2881
2881
  let l = n.offset, c = null;
2882
2882
  for (const { start: f, value: p } of n.items) {
@@ -2896,11 +2896,11 @@ function ei({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2896
2896
  continue;
2897
2897
  }
2898
2898
  const y = p ? s(t, p, m, i) : e(t, m.end, f, null, m, i);
2899
- t.schema.compat && Tt(n.indent, p, i), l = y.range[2], a.items.push(y);
2899
+ t.schema.compat && At(n.indent, p, i), l = y.range[2], a.items.push(y);
2900
2900
  }
2901
2901
  return a.range = [n.offset, l, c != null ? c : l], a;
2902
2902
  }
2903
- function je(s, e, t, n) {
2903
+ function qe(s, e, t, n) {
2904
2904
  let i = "";
2905
2905
  if (s) {
2906
2906
  let r = !1, o = "";
@@ -2927,10 +2927,10 @@ function je(s, e, t, n) {
2927
2927
  }
2928
2928
  return { comment: i, offset: e };
2929
2929
  }
2930
- const pt = "Block collections are not allowed within flow collections", mt = (s) => s && (s.type === "block-map" || s.type === "block-seq");
2931
- function ti({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2930
+ const mt = "Block collections are not allowed within flow collections", yt = (s) => s && (s.type === "block-map" || s.type === "block-seq");
2931
+ function si({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2932
2932
  var g, b;
2933
- const o = n.start.source === "{", a = o ? "flow map" : "flow sequence", l = (g = r == null ? void 0 : r.nodeClass) != null ? g : o ? F : X, c = new l(t.schema);
2933
+ const o = n.start.source === "{", a = o ? "flow map" : "flow sequence", l = (g = r == null ? void 0 : r.nodeClass) != null ? g : o ? F : z, c = new l(t.schema);
2934
2934
  c.flow = !0;
2935
2935
  const h = t.atRoot;
2936
2936
  h && (t.atRoot = !1);
@@ -2951,7 +2951,7 @@ function ti({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2951
2951
  ` + w.comment : c.comment = w.comment), f = w.end;
2952
2952
  continue;
2953
2953
  }
2954
- !o && t.options.strict && Ce(N) && i(
2954
+ !o && t.options.strict && _e(N) && i(
2955
2955
  N,
2956
2956
  // checked by containsNewline()
2957
2957
  "MULTILINE_IMPLICIT_KEY",
@@ -2982,10 +2982,10 @@ function ti({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2982
2982
  }
2983
2983
  if (!o && !T && !w.found) {
2984
2984
  const $ = C ? s(t, C, w, i) : e(t, w.end, T, null, w, i);
2985
- c.items.push($), f = $.range[2], mt(C) && i($.range, "BLOCK_IN_FLOW", pt);
2985
+ c.items.push($), f = $.range[2], yt(C) && i($.range, "BLOCK_IN_FLOW", mt);
2986
2986
  } else {
2987
2987
  const $ = w.end, _ = N ? s(t, N, w, i) : e(t, $, k, null, w, i);
2988
- mt(N) && i(_.range, "BLOCK_IN_FLOW", pt);
2988
+ yt(N) && i(_.range, "BLOCK_IN_FLOW", mt);
2989
2989
  const j = me(T != null ? T : [], {
2990
2990
  flow: a,
2991
2991
  indicator: "map-value-ind",
@@ -3011,12 +3011,12 @@ function ti({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
3011
3011
  } else
3012
3012
  C && ("source" in C && C.source && C.source[0] === ":" ? i(C, "MISSING_CHAR", `Missing space after : in ${a}`) : i(j.start, "MISSING_CHAR", `Missing , or : between ${a} items`));
3013
3013
  const x = C ? s(t, C, j, i) : j.found ? e(t, j.end, T, null, j, i) : null;
3014
- x ? mt(C) && i(x.range, "BLOCK_IN_FLOW", pt) : j.comment && (_.comment ? _.comment += `
3014
+ x ? yt(C) && i(x.range, "BLOCK_IN_FLOW", mt) : j.comment && (_.comment ? _.comment += `
3015
3015
  ` + j.comment : _.comment = j.comment);
3016
3016
  const re = new q(_, x);
3017
3017
  if (t.options.keepSourceTokens && (re.srcToken = A), o) {
3018
3018
  const v = c;
3019
- Ks(t, v.items, _) && i($, "DUPLICATE_KEY", "Map keys must be unique"), v.items.push(re);
3019
+ Fs(t, v.items, _) && i($, "DUPLICATE_KEY", "Map keys must be unique"), v.items.push(re);
3020
3020
  } else {
3021
3021
  const v = new F(t.schema);
3022
3022
  v.flow = !0, v.items.push(re), c.items.push(v);
@@ -3033,18 +3033,18 @@ function ti({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
3033
3033
  i(f, h ? "MISSING_CHAR" : "BAD_INDENT", A), m && m.source.length !== 1 && y.unshift(m);
3034
3034
  }
3035
3035
  if (y.length > 0) {
3036
- const S = je(y, u, t.options.strict, i);
3036
+ const S = qe(y, u, t.options.strict, i);
3037
3037
  S.comment && (c.comment ? c.comment += `
3038
3038
  ` + S.comment : c.comment = S.comment), c.range = [n.offset, u, S.offset];
3039
3039
  } else
3040
3040
  c.range = [n.offset, u, u];
3041
3041
  return c;
3042
3042
  }
3043
- function yt(s, e, t, n, i, r) {
3044
- const o = t.type === "block-map" ? Zn(s, e, t, n, r) : t.type === "block-seq" ? ei(s, e, t, n, r) : ti(s, e, t, n, r), a = o.constructor;
3043
+ function gt(s, e, t, n, i, r) {
3044
+ const o = t.type === "block-map" ? ei(s, e, t, n, r) : t.type === "block-seq" ? ti(s, e, t, n, r) : si(s, e, t, n, r), a = o.constructor;
3045
3045
  return i === "!" || i === a.tagName ? (o.tag = a.tagName, o) : (i && (o.tag = i), o);
3046
3046
  }
3047
- function si(s, e, t, n, i) {
3047
+ function ni(s, e, t, n, i) {
3048
3048
  var p, m;
3049
3049
  const r = n.tag, o = r ? e.directives.tagName(r.source, (y) => i(r, "TAG_RESOLVE_FAILED", y)) : null;
3050
3050
  if (t.type === "block-seq") {
@@ -3052,24 +3052,24 @@ function si(s, e, t, n, i) {
3052
3052
  g && (!u || u.offset < g.offset) && i(g, "MISSING_CHAR", "Missing newline after block sequence props");
3053
3053
  }
3054
3054
  const a = t.type === "block-map" ? "map" : t.type === "block-seq" ? "seq" : t.start.source === "{" ? "map" : "seq";
3055
- if (!r || !o || o === "!" || o === F.tagName && a === "map" || o === X.tagName && a === "seq")
3056
- return yt(s, e, t, i, o);
3055
+ if (!r || !o || o === "!" || o === F.tagName && a === "map" || o === z.tagName && a === "seq")
3056
+ return gt(s, e, t, i, o);
3057
3057
  let l = e.schema.tags.find((y) => y.tag === o && y.collection === a);
3058
3058
  if (!l) {
3059
3059
  const y = e.schema.knownTags[o];
3060
3060
  if (y && y.collection === a)
3061
3061
  e.schema.tags.push(Object.assign({}, y, { default: !1 })), l = y;
3062
3062
  else
3063
- return y != null && y.collection ? i(r, "BAD_COLLECTION_TYPE", `${y.tag} used for ${a} collection, but expects ${y.collection}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), yt(s, e, t, i, o);
3063
+ return y != null && y.collection ? i(r, "BAD_COLLECTION_TYPE", `${y.tag} used for ${a} collection, but expects ${y.collection}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), gt(s, e, t, i, o);
3064
3064
  }
3065
- const c = yt(s, e, t, i, o, l), h = (m = (p = l.resolve) == null ? void 0 : p.call(l, c, (y) => i(r, "TAG_RESOLVE_FAILED", y), e.options)) != null ? m : c, f = M(h) ? h : new O(h);
3065
+ const c = gt(s, e, t, i, o, l), h = (m = (p = l.resolve) == null ? void 0 : p.call(l, c, (y) => i(r, "TAG_RESOLVE_FAILED", y), e.options)) != null ? m : c, f = M(h) ? h : new O(h);
3066
3066
  return f.range = c.range, f.tag = o, l != null && l.format && (f.format = l.format), f;
3067
3067
  }
3068
- function Fs(s, e, t) {
3069
- const n = e.offset, i = ni(e, s.options.strict, t);
3068
+ function Rs(s, e, t) {
3069
+ const n = e.offset, i = ii(e, s.options.strict, t);
3070
3070
  if (!i)
3071
3071
  return { value: "", type: null, comment: "", range: [n, n, n] };
3072
- const r = i.mode === ">" ? O.BLOCK_FOLDED : O.BLOCK_LITERAL, o = e.source ? ii(e.source) : [];
3072
+ const r = i.mode === ">" ? O.BLOCK_FOLDED : O.BLOCK_LITERAL, o = e.source ? ri(e.source) : [];
3073
3073
  let a = o.length;
3074
3074
  for (let u = o.length - 1; u >= 0; --u) {
3075
3075
  const g = o[u][1];
@@ -3138,7 +3138,7 @@ function Fs(s, e, t) {
3138
3138
  const y = n + i.length + e.source.length;
3139
3139
  return { value: f, type: r, comment: i.comment, range: [n, y, y] };
3140
3140
  }
3141
- function ni({ offset: s, props: e }, t, n) {
3141
+ function ii({ offset: s, props: e }, t, n) {
3142
3142
  if (e[0].type !== "block-scalar-header")
3143
3143
  return n(e[0], "IMPOSSIBLE", "Block scalar header not found"), null;
3144
3144
  const { source: i } = e[0], r = i[0];
@@ -3178,25 +3178,25 @@ function ni({ offset: s, props: e }, t, n) {
3178
3178
  }
3179
3179
  return { mode: r, indent: o, chomp: a, comment: h, length: f };
3180
3180
  }
3181
- function ii(s) {
3181
+ function ri(s) {
3182
3182
  const e = s.split(/\n( *)/), t = e[0], n = t.match(/^( *)/), r = [n != null && n[1] ? [n[1], t.slice(n[1].length)] : ["", t]];
3183
3183
  for (let o = 1; o < e.length; o += 2)
3184
3184
  r.push([e[o], e[o + 1]]);
3185
3185
  return r;
3186
3186
  }
3187
- function Rs(s, e, t) {
3187
+ function Us(s, e, t) {
3188
3188
  const { offset: n, type: i, source: r, end: o } = s;
3189
3189
  let a, l;
3190
3190
  const c = (p, m, y) => t(n + p, m, y);
3191
3191
  switch (i) {
3192
3192
  case "scalar":
3193
- a = O.PLAIN, l = ri(r, c);
3193
+ a = O.PLAIN, l = oi(r, c);
3194
3194
  break;
3195
3195
  case "single-quoted-scalar":
3196
- a = O.QUOTE_SINGLE, l = oi(r, c);
3196
+ a = O.QUOTE_SINGLE, l = ai(r, c);
3197
3197
  break;
3198
3198
  case "double-quoted-scalar":
3199
- a = O.QUOTE_DOUBLE, l = ai(r, c);
3199
+ a = O.QUOTE_DOUBLE, l = li(r, c);
3200
3200
  break;
3201
3201
  default:
3202
3202
  return t(s, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
@@ -3206,7 +3206,7 @@ function Rs(s, e, t) {
3206
3206
  range: [n, n + r.length, n + r.length]
3207
3207
  };
3208
3208
  }
3209
- const h = n + r.length, f = je(o, h, e, t);
3209
+ const h = n + r.length, f = qe(o, h, e, t);
3210
3210
  return {
3211
3211
  value: l,
3212
3212
  type: a,
@@ -3214,7 +3214,7 @@ function Rs(s, e, t) {
3214
3214
  range: [n, h, f.offset]
3215
3215
  };
3216
3216
  }
3217
- function ri(s, e) {
3217
+ function oi(s, e) {
3218
3218
  let t = "";
3219
3219
  switch (s[0]) {
3220
3220
  case " ":
@@ -3237,12 +3237,12 @@ function ri(s, e) {
3237
3237
  break;
3238
3238
  }
3239
3239
  }
3240
- return t && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${t}`), Us(s);
3240
+ return t && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${t}`), Vs(s);
3241
3241
  }
3242
- function oi(s, e) {
3243
- return (s[s.length - 1] !== "'" || s.length === 1) && e(s.length, "MISSING_CHAR", "Missing closing 'quote"), Us(s.slice(1, -1)).replace(/''/g, "'");
3242
+ function ai(s, e) {
3243
+ return (s[s.length - 1] !== "'" || s.length === 1) && e(s.length, "MISSING_CHAR", "Missing closing 'quote"), Vs(s.slice(1, -1)).replace(/''/g, "'");
3244
3244
  }
3245
- function Us(s) {
3245
+ function Vs(s) {
3246
3246
  var l;
3247
3247
  let e, t;
3248
3248
  try {
@@ -3263,7 +3263,7 @@ function Us(s) {
3263
3263
  const a = new RegExp("[ \\t]*(.*)", "sy");
3264
3264
  return a.lastIndex = o, n = a.exec(s), i + r + ((l = n == null ? void 0 : n[1]) != null ? l : "");
3265
3265
  }
3266
- function ai(s, e) {
3266
+ function li(s, e) {
3267
3267
  let t = "";
3268
3268
  for (let n = 1; n < s.length - 1; ++n) {
3269
3269
  const i = s[n];
@@ -3271,11 +3271,11 @@ function ai(s, e) {
3271
3271
  `))
3272
3272
  if (i === `
3273
3273
  `) {
3274
- const { fold: r, offset: o } = li(s, n);
3274
+ const { fold: r, offset: o } = ci(s, n);
3275
3275
  t += r, n = o;
3276
3276
  } else if (i === "\\") {
3277
3277
  let r = s[++n];
3278
- const o = ci[r];
3278
+ const o = fi[r];
3279
3279
  if (o)
3280
3280
  t += o;
3281
3281
  else if (r === `
@@ -3288,7 +3288,7 @@ function ai(s, e) {
3288
3288
  r = s[++n + 1];
3289
3289
  else if (r === "x" || r === "u" || r === "U") {
3290
3290
  const a = { x: 2, u: 4, U: 8 }[r];
3291
- t += fi(s, n + 1, a, e), n += a;
3291
+ t += ui(s, n + 1, a, e), n += a;
3292
3292
  } else {
3293
3293
  const a = s.substr(n - 1, 2);
3294
3294
  e(n - 1, "BAD_DQ_ESCAPE", `Invalid escape sequence ${a}`), t += a;
@@ -3306,7 +3306,7 @@ function ai(s, e) {
3306
3306
  }
3307
3307
  return (s[s.length - 1] !== '"' || s.length === 1) && e(s.length, "MISSING_CHAR", 'Missing closing "quote'), t;
3308
3308
  }
3309
- function li(s, e) {
3309
+ function ci(s, e) {
3310
3310
  let t = "", n = s[e + 1];
3311
3311
  for (; (n === " " || n === " " || n === `
3312
3312
  ` || n === "\r") && !(n === "\r" && s[e + 2] !== `
@@ -3316,7 +3316,7 @@ function li(s, e) {
3316
3316
  `), e += 1, n = s[e + 1];
3317
3317
  return t || (t = " "), { fold: t, offset: e };
3318
3318
  }
3319
- const ci = {
3319
+ const fi = {
3320
3320
  0: "\0",
3321
3321
  // null character
3322
3322
  a: "\x07",
@@ -3350,7 +3350,7 @@ const ci = {
3350
3350
  "\\": "\\",
3351
3351
  " ": " "
3352
3352
  };
3353
- function fi(s, e, t, n) {
3353
+ function ui(s, e, t, n) {
3354
3354
  const i = s.substr(e, t), o = i.length === t && /^[0-9a-fA-F]+$/.test(i) ? parseInt(i, 16) : NaN;
3355
3355
  if (isNaN(o)) {
3356
3356
  const a = s.substr(e - 2, t + 2);
@@ -3358,8 +3358,8 @@ function fi(s, e, t, n) {
3358
3358
  }
3359
3359
  return String.fromCodePoint(o);
3360
3360
  }
3361
- function Vs(s, e, t, n) {
3362
- const { value: i, type: r, comment: o, range: a } = e.type === "block-scalar" ? Fs(s, e, n) : Rs(e, s.options.strict, n), l = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null, c = t && l ? ui(s.schema, i, l, t, n) : e.type === "scalar" ? hi(s, i, e, n) : s.schema[Q];
3361
+ function Js(s, e, t, n) {
3362
+ const { value: i, type: r, comment: o, range: a } = e.type === "block-scalar" ? Rs(s, e, n) : Us(e, s.options.strict, n), l = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null, c = t && l ? hi(s.schema, i, l, t, n) : e.type === "scalar" ? di(s, i, e, n) : s.schema[Q];
3363
3363
  let h;
3364
3364
  try {
3365
3365
  const f = c.resolve(i, (p) => n(t != null ? t : e, "TAG_RESOLVE_FAILED", p), s.options);
@@ -3370,7 +3370,7 @@ function Vs(s, e, t, n) {
3370
3370
  }
3371
3371
  return h.range = a, h.source = i, r && (h.type = r), l && (h.tag = l), c.format && (h.format = c.format), o && (h.comment = o), h;
3372
3372
  }
3373
- function ui(s, e, t, n, i) {
3373
+ function hi(s, e, t, n, i) {
3374
3374
  var a;
3375
3375
  if (t === "!")
3376
3376
  return s[Q];
@@ -3387,7 +3387,7 @@ function ui(s, e, t, n, i) {
3387
3387
  const o = s.knownTags[t];
3388
3388
  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[Q]);
3389
3389
  }
3390
- function hi({ directives: s, schema: e }, t, n, i) {
3390
+ function di({ directives: s, schema: e }, t, n, i) {
3391
3391
  var o;
3392
3392
  const r = e.tags.find((a) => {
3393
3393
  var l;
@@ -3405,7 +3405,7 @@ function hi({ directives: s, schema: e }, t, n, i) {
3405
3405
  }
3406
3406
  return r;
3407
3407
  }
3408
- function di(s, e, t) {
3408
+ function pi(s, e, t) {
3409
3409
  if (e) {
3410
3410
  t === null && (t = e.length);
3411
3411
  for (let n = t - 1; n >= 0; --n) {
@@ -3424,48 +3424,48 @@ function di(s, e, t) {
3424
3424
  }
3425
3425
  return s;
3426
3426
  }
3427
- const pi = { composeNode: Js, composeEmptyNode: Pt };
3428
- function Js(s, e, t, n) {
3427
+ const mi = { composeNode: Ws, composeEmptyNode: Kt };
3428
+ function Ws(s, e, t, n) {
3429
3429
  const { spaceBefore: i, comment: r, anchor: o, tag: a } = t;
3430
3430
  let l, c = !0;
3431
3431
  switch (e.type) {
3432
3432
  case "alias":
3433
- l = mi(s, e, n), (o || a) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3433
+ l = yi(s, e, n), (o || a) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3434
3434
  break;
3435
3435
  case "scalar":
3436
3436
  case "single-quoted-scalar":
3437
3437
  case "double-quoted-scalar":
3438
3438
  case "block-scalar":
3439
- l = Vs(s, e, a, n), o && (l.anchor = o.source.substring(1));
3439
+ l = Js(s, e, a, n), o && (l.anchor = o.source.substring(1));
3440
3440
  break;
3441
3441
  case "block-map":
3442
3442
  case "block-seq":
3443
3443
  case "flow-collection":
3444
- l = si(pi, s, e, t, n), o && (l.anchor = o.source.substring(1));
3444
+ l = ni(mi, s, e, t, n), o && (l.anchor = o.source.substring(1));
3445
3445
  break;
3446
3446
  default: {
3447
3447
  const h = e.type === "error" ? e.message : `Unsupported token (type: ${e.type})`;
3448
- n(e, "UNEXPECTED_TOKEN", h), l = Pt(s, e.offset, void 0, null, t, n), c = !1;
3448
+ n(e, "UNEXPECTED_TOKEN", h), l = Kt(s, e.offset, void 0, null, t, n), c = !1;
3449
3449
  }
3450
3450
  }
3451
3451
  return o && l.anchor === "" && n(o, "BAD_ALIAS", "Anchor cannot be an empty string"), i && (l.spaceBefore = !0), r && (e.type === "scalar" && e.source === "" ? l.comment = r : l.commentBefore = r), s.options.keepSourceTokens && c && (l.srcToken = e), l;
3452
3452
  }
3453
- function Pt(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: a, end: l }, c) {
3453
+ function Kt(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: a, end: l }, c) {
3454
3454
  const h = {
3455
3455
  type: "scalar",
3456
- offset: di(e, t, n),
3456
+ offset: pi(e, t, n),
3457
3457
  indent: -1,
3458
3458
  source: ""
3459
- }, f = Vs(s, h, a, c);
3459
+ }, f = Js(s, h, a, c);
3460
3460
  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] = l), f;
3461
3461
  }
3462
- function mi({ options: s }, { offset: e, source: t, end: n }, i) {
3462
+ function yi({ options: s }, { offset: e, source: t, end: n }, i) {
3463
3463
  const r = new ze(t.substring(1));
3464
3464
  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);
3465
- const o = e + t.length, a = je(n, o, s.strict, i);
3465
+ const o = e + t.length, a = qe(n, o, s.strict, i);
3466
3466
  return r.range = [e, o, a.offset], a.comment && (r.comment = a.comment), r;
3467
3467
  }
3468
- function yi(s, e, { offset: t, start: n, value: i, end: r }, o) {
3468
+ function gi(s, e, { offset: t, start: n, value: i, end: r }, o) {
3469
3469
  const a = Object.assign({ _directives: e }, s), l = new Oe(void 0, a), c = {
3470
3470
  atRoot: !0,
3471
3471
  directives: l.directives,
@@ -3479,8 +3479,8 @@ function yi(s, e, { offset: t, start: n, value: i, end: r }, o) {
3479
3479
  parentIndent: 0,
3480
3480
  startOnNewline: !0
3481
3481
  });
3482
- h.found && (l.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")), l.contents = i ? Js(c, i, h, o) : Pt(c, h.end, n, null, h, o);
3483
- const f = l.contents.range[2], p = je(r, f, !1, o);
3482
+ h.found && (l.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")), l.contents = i ? Ws(c, i, h, o) : Kt(c, h.end, n, null, h, o);
3483
+ const f = l.contents.range[2], p = qe(r, f, !1, o);
3484
3484
  return p.comment && (l.comment = p.comment), l.range = [t, f, p.offset], l;
3485
3485
  }
3486
3486
  function Ne(s) {
@@ -3491,7 +3491,7 @@ function Ne(s) {
3491
3491
  const { offset: e, source: t } = s;
3492
3492
  return [e, e + (typeof t == "string" ? t.length : 1)];
3493
3493
  }
3494
- function Zt(s) {
3494
+ function es(s) {
3495
3495
  var i;
3496
3496
  let e = "", t = !1, n = !1;
3497
3497
  for (let r = 0; r < s.length; ++r) {
@@ -3512,15 +3512,15 @@ function Zt(s) {
3512
3512
  }
3513
3513
  return { comment: e, afterEmptyLine: n };
3514
3514
  }
3515
- class Kt {
3515
+ class Ft {
3516
3516
  constructor(e = {}) {
3517
3517
  this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (t, n, i, r) => {
3518
3518
  const o = Ne(t);
3519
- r ? this.warnings.push(new Ps(o, n, i)) : this.errors.push(new se(o, n, i));
3519
+ r ? this.warnings.push(new Ks(o, n, i)) : this.errors.push(new se(o, n, i));
3520
3520
  }, this.directives = new B({ version: e.version || "1.2" }), this.options = e;
3521
3521
  }
3522
3522
  decorate(e, t) {
3523
- const { comment: n, afterEmptyLine: i } = Zt(this.prelude);
3523
+ const { comment: n, afterEmptyLine: i } = es(this.prelude);
3524
3524
  if (n) {
3525
3525
  const r = e.contents;
3526
3526
  if (t)
@@ -3549,7 +3549,7 @@ ${o}` : n;
3549
3549
  */
3550
3550
  streamInfo() {
3551
3551
  return {
3552
- comment: Zt(this.prelude).comment,
3552
+ comment: es(this.prelude).comment,
3553
3553
  directives: this.directives,
3554
3554
  errors: this.errors,
3555
3555
  warnings: this.warnings
@@ -3576,7 +3576,7 @@ ${o}` : n;
3576
3576
  }), this.prelude.push(e.source), this.atDirectives = !0;
3577
3577
  break;
3578
3578
  case "document": {
3579
- const t = yi(this.options, this.directives, e, this.onError);
3579
+ const t = gi(this.options, this.directives, e, this.onError);
3580
3580
  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;
3581
3581
  break;
3582
3582
  }
@@ -3599,7 +3599,7 @@ ${o}` : n;
3599
3599
  break;
3600
3600
  }
3601
3601
  this.doc.directives.docEnd = !0;
3602
- const t = je(e.end, e.offset + e.source.length, this.doc.options.strict, this.onError);
3602
+ const t = qe(e.end, e.offset + e.source.length, this.doc.options.strict, this.onError);
3603
3603
  if (this.decorate(this.doc, !0), t.comment) {
3604
3604
  const n = this.doc.comment;
3605
3605
  this.doc.comment = n ? `${n}
@@ -3627,7 +3627,7 @@ ${t.comment}` : t.comment;
3627
3627
  }
3628
3628
  }
3629
3629
  }
3630
- function gi(s, e = !0, t) {
3630
+ function bi(s, e = !0, t) {
3631
3631
  if (s) {
3632
3632
  const n = (i, r, o) => {
3633
3633
  const a = typeof i == "number" ? i : Array.isArray(i) ? i[0] : i.offset;
@@ -3640,16 +3640,16 @@ function gi(s, e = !0, t) {
3640
3640
  case "scalar":
3641
3641
  case "single-quoted-scalar":
3642
3642
  case "double-quoted-scalar":
3643
- return Rs(s, e, n);
3643
+ return Us(s, e, n);
3644
3644
  case "block-scalar":
3645
- return Fs({ options: { strict: e } }, s, n);
3645
+ return Rs({ options: { strict: e } }, s, n);
3646
3646
  }
3647
3647
  }
3648
3648
  return null;
3649
3649
  }
3650
- function bi(s, e) {
3650
+ function wi(s, e) {
3651
3651
  var c;
3652
- const { implicitKey: t = !1, indent: n, inFlow: i = !1, offset: r = -1, type: o = "PLAIN" } = e, a = Me({ type: o, value: s }, {
3652
+ const { implicitKey: t = !1, indent: n, inFlow: i = !1, offset: r = -1, type: o = "PLAIN" } = e, a = ve({ type: o, value: s }, {
3653
3653
  implicitKey: t,
3654
3654
  indent: n > 0 ? " ".repeat(n) : "",
3655
3655
  inFlow: i,
@@ -3677,7 +3677,7 @@ function bi(s, e) {
3677
3677
  return { type: "scalar", offset: r, indent: n, source: a, end: l };
3678
3678
  }
3679
3679
  }
3680
- function wi(s, e, t = {}) {
3680
+ function Si(s, e, t = {}) {
3681
3681
  let { afterKey: n = !1, implicitKey: i = !1, inFlow: r = !1, type: o } = t, a = "indent" in s ? s.indent : null;
3682
3682
  if (n && typeof a == "number" && (a += 2), !o)
3683
3683
  switch (s.type) {
@@ -3697,7 +3697,7 @@ function wi(s, e, t = {}) {
3697
3697
  default:
3698
3698
  o = "PLAIN";
3699
3699
  }
3700
- const l = Me({ type: o, value: e }, {
3700
+ const l = ve({ type: o, value: e }, {
3701
3701
  implicitKey: i || a === null,
3702
3702
  indent: a !== null && a > 0 ? " ".repeat(a) : "",
3703
3703
  inFlow: r,
@@ -3706,19 +3706,19 @@ function wi(s, e, t = {}) {
3706
3706
  switch (l[0]) {
3707
3707
  case "|":
3708
3708
  case ">":
3709
- Si(s, l);
3709
+ ki(s, l);
3710
3710
  break;
3711
3711
  case '"':
3712
- gt(s, l, "double-quoted-scalar");
3712
+ bt(s, l, "double-quoted-scalar");
3713
3713
  break;
3714
3714
  case "'":
3715
- gt(s, l, "single-quoted-scalar");
3715
+ bt(s, l, "single-quoted-scalar");
3716
3716
  break;
3717
3717
  default:
3718
- gt(s, l, "scalar");
3718
+ bt(s, l, "scalar");
3719
3719
  }
3720
3720
  }
3721
- function Si(s, e) {
3721
+ function ki(s, e) {
3722
3722
  const t = e.indexOf(`
3723
3723
  `), n = e.substring(0, t), i = e.substring(t + 1) + `
3724
3724
  `;
@@ -3751,7 +3751,7 @@ function Ys(s, e) {
3751
3751
  }
3752
3752
  return !1;
3753
3753
  }
3754
- function gt(s, e, t) {
3754
+ function bt(s, e, t) {
3755
3755
  switch (s.type) {
3756
3756
  case "scalar":
3757
3757
  case "double-quoted-scalar":
@@ -3782,32 +3782,32 @@ function gt(s, e, t) {
3782
3782
  }
3783
3783
  }
3784
3784
  }
3785
- const ki = (s) => "type" in s ? Ge(s) : Ve(s);
3786
- function Ge(s) {
3785
+ const Oi = (s) => "type" in s ? He(s) : Je(s);
3786
+ function He(s) {
3787
3787
  switch (s.type) {
3788
3788
  case "block-scalar": {
3789
3789
  let e = "";
3790
3790
  for (const t of s.props)
3791
- e += Ge(t);
3791
+ e += He(t);
3792
3792
  return e + s.source;
3793
3793
  }
3794
3794
  case "block-map":
3795
3795
  case "block-seq": {
3796
3796
  let e = "";
3797
3797
  for (const t of s.items)
3798
- e += Ve(t);
3798
+ e += Je(t);
3799
3799
  return e;
3800
3800
  }
3801
3801
  case "flow-collection": {
3802
3802
  let e = s.start.source;
3803
3803
  for (const t of s.items)
3804
- e += Ve(t);
3804
+ e += Je(t);
3805
3805
  for (const t of s.end)
3806
3806
  e += t.source;
3807
3807
  return e;
3808
3808
  }
3809
3809
  case "document": {
3810
- let e = Ve(s);
3810
+ let e = Je(s);
3811
3811
  if (s.end)
3812
3812
  for (const t of s.end)
3813
3813
  e += t.source;
@@ -3822,22 +3822,22 @@ function Ge(s) {
3822
3822
  }
3823
3823
  }
3824
3824
  }
3825
- function Ve({ start: s, key: e, sep: t, value: n }) {
3825
+ function Je({ start: s, key: e, sep: t, value: n }) {
3826
3826
  let i = "";
3827
3827
  for (const r of s)
3828
3828
  i += r.source;
3829
- if (e && (i += Ge(e)), t)
3829
+ if (e && (i += He(e)), t)
3830
3830
  for (const r of t)
3831
3831
  i += r.source;
3832
- return n && (i += Ge(n)), i;
3832
+ return n && (i += He(n)), i;
3833
3833
  }
3834
- const At = Symbol("break visit"), Oi = Symbol("skip children"), Ws = Symbol("remove item");
3834
+ const Et = Symbol("break visit"), Ni = Symbol("skip children"), Qs = Symbol("remove item");
3835
3835
  function ne(s, e) {
3836
- "type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Qs(Object.freeze([]), s, e);
3836
+ "type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Gs(Object.freeze([]), s, e);
3837
3837
  }
3838
- ne.BREAK = At;
3839
- ne.SKIP = Oi;
3840
- ne.REMOVE = Ws;
3838
+ ne.BREAK = Et;
3839
+ ne.SKIP = Ni;
3840
+ ne.REMOVE = Qs;
3841
3841
  ne.itemAtPath = (s, e) => {
3842
3842
  let t = s;
3843
3843
  for (const [n, i] of e) {
@@ -3855,7 +3855,7 @@ ne.parentCollection = (s, e) => {
3855
3855
  return i;
3856
3856
  throw new Error("Parent collection not found");
3857
3857
  };
3858
- function Qs(s, e, t) {
3858
+ function Gs(s, e, t) {
3859
3859
  let n = t(e, s);
3860
3860
  if (typeof n == "symbol")
3861
3861
  return n;
@@ -3863,13 +3863,13 @@ function Qs(s, e, t) {
3863
3863
  const r = e[i];
3864
3864
  if (r && "items" in r) {
3865
3865
  for (let o = 0; o < r.items.length; ++o) {
3866
- const a = Qs(Object.freeze(s.concat([[i, o]])), r.items[o], t);
3866
+ const a = Gs(Object.freeze(s.concat([[i, o]])), r.items[o], t);
3867
3867
  if (typeof a == "number")
3868
3868
  o = a - 1;
3869
3869
  else {
3870
- if (a === At)
3871
- return At;
3872
- a === Ws && (r.items.splice(o, 1), o -= 1);
3870
+ if (a === Et)
3871
+ return Et;
3872
+ a === Qs && (r.items.splice(o, 1), o -= 1);
3873
3873
  }
3874
3874
  }
3875
3875
  typeof n == "function" && i === "key" && (n = n(e, s));
@@ -3877,30 +3877,30 @@ function Qs(s, e, t) {
3877
3877
  }
3878
3878
  return typeof n == "function" ? n(e, s) : n;
3879
3879
  }
3880
- const ot = "\uFEFF", at = "", lt = "", _e = "", Ni = (s) => !!s && "items" in s, Ti = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
3881
- function Ai(s) {
3880
+ const at = "\uFEFF", lt = "", ct = "", Me = "", Ti = (s) => !!s && "items" in s, Ai = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
3881
+ function Ei(s) {
3882
3882
  switch (s) {
3883
- case ot:
3884
- return "<BOM>";
3885
3883
  case at:
3886
- return "<DOC>";
3884
+ return "<BOM>";
3887
3885
  case lt:
3886
+ return "<DOC>";
3887
+ case ct:
3888
3888
  return "<FLOW_END>";
3889
- case _e:
3889
+ case Me:
3890
3890
  return "<SCALAR>";
3891
3891
  default:
3892
3892
  return JSON.stringify(s);
3893
3893
  }
3894
3894
  }
3895
- function Gs(s) {
3895
+ function Hs(s) {
3896
3896
  switch (s) {
3897
- case ot:
3898
- return "byte-order-mark";
3899
3897
  case at:
3900
- return "doc-mode";
3898
+ return "byte-order-mark";
3901
3899
  case lt:
3900
+ return "doc-mode";
3901
+ case ct:
3902
3902
  return "flow-error-end";
3903
- case _e:
3903
+ case Me:
3904
3904
  return "scalar";
3905
3905
  case "---":
3906
3906
  return "doc-start";
@@ -3953,20 +3953,20 @@ function Gs(s) {
3953
3953
  }
3954
3954
  return null;
3955
3955
  }
3956
- const Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3956
+ const Ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3957
3957
  __proto__: null,
3958
- BOM: ot,
3959
- DOCUMENT: at,
3960
- FLOW_END: lt,
3961
- SCALAR: _e,
3962
- createScalarToken: bi,
3963
- isCollection: Ni,
3964
- isScalar: Ti,
3965
- prettyToken: Ai,
3966
- resolveAsScalar: gi,
3967
- setScalarValue: wi,
3968
- stringify: ki,
3969
- tokenType: Gs,
3958
+ BOM: at,
3959
+ DOCUMENT: lt,
3960
+ FLOW_END: ct,
3961
+ SCALAR: Me,
3962
+ createScalarToken: wi,
3963
+ isCollection: Ti,
3964
+ isScalar: Ai,
3965
+ prettyToken: Ei,
3966
+ resolveAsScalar: bi,
3967
+ setScalarValue: Si,
3968
+ stringify: Oi,
3969
+ tokenType: Hs,
3970
3970
  visit: ne
3971
3971
  }, Symbol.toStringTag, { value: "Module" }));
3972
3972
  function V(s) {
@@ -3982,9 +3982,9 @@ function V(s) {
3982
3982
  return !1;
3983
3983
  }
3984
3984
  }
3985
- const es = new Set("0123456789ABCDEFabcdef"), Ii = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), Pe = new Set(",[]{}"), $i = new Set(` ,[]{}
3986
- \r `), bt = (s) => !s || $i.has(s);
3987
- class Hs {
3985
+ const ts = new Set("0123456789ABCDEFabcdef"), $i = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), Ke = new Set(",[]{}"), Li = new Set(` ,[]{}
3986
+ \r `), wt = (s) => !s || Li.has(s);
3987
+ class Xs {
3988
3988
  constructor() {
3989
3989
  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;
3990
3990
  }
@@ -4077,7 +4077,7 @@ class Hs {
4077
4077
  let e = this.getLine();
4078
4078
  if (e === null)
4079
4079
  return this.setNext("stream");
4080
- if (e[0] === ot && (yield* d(this.pushCount(1)), e = e.substring(1)), e[0] === "%") {
4080
+ if (e[0] === at && (yield* d(this.pushCount(1)), e = e.substring(1)), e[0] === "%") {
4081
4081
  let t = e.length, n = e.indexOf("#");
4082
4082
  for (; n !== -1; ) {
4083
4083
  const r = e[n - 1];
@@ -4101,7 +4101,7 @@ class Hs {
4101
4101
  const t = yield* d(this.pushSpaces(!0));
4102
4102
  return yield* d(this.pushCount(e.length - t)), yield* d(this.pushNewline()), "stream";
4103
4103
  }
4104
- return yield at, yield* d(this.parseLineStart());
4104
+ return yield lt, yield* d(this.parseLineStart());
4105
4105
  }
4106
4106
  *parseLineStart() {
4107
4107
  const e = this.charAt(0);
@@ -4144,7 +4144,7 @@ class Hs {
4144
4144
  case "]":
4145
4145
  return yield* d(this.pushCount(1)), "doc";
4146
4146
  case "*":
4147
- return yield* d(this.pushUntil(bt)), "doc";
4147
+ return yield* d(this.pushUntil(wt)), "doc";
4148
4148
  case '"':
4149
4149
  case "'":
4150
4150
  return yield* d(this.parseQuotedScalar());
@@ -4164,7 +4164,7 @@ class Hs {
4164
4164
  if (i === null)
4165
4165
  return this.setNext("flow");
4166
4166
  if ((n !== -1 && n < this.indentNext && i[0] !== "#" || n === 0 && (i.startsWith("---") || i.startsWith("...")) && V(i[3])) && !(n === this.indentNext - 1 && this.flowLevel === 1 && (i[0] === "]" || i[0] === "}")))
4167
- return this.flowLevel = 0, yield lt, yield* d(this.parseLineStart());
4167
+ return this.flowLevel = 0, yield ct, yield* d(this.parseLineStart());
4168
4168
  let r = 0;
4169
4169
  for (; i[r] === ","; )
4170
4170
  r += yield* d(this.pushCount(1)), r += yield* d(this.pushSpaces(!0)), this.flowKey = !1;
@@ -4180,7 +4180,7 @@ class Hs {
4180
4180
  case "]":
4181
4181
  return yield* d(this.pushCount(1)), this.flowKey = !0, this.flowLevel -= 1, this.flowLevel ? "flow" : "doc";
4182
4182
  case "*":
4183
- return yield* d(this.pushUntil(bt)), "flow";
4183
+ return yield* d(this.pushUntil(wt)), "flow";
4184
4184
  case '"':
4185
4185
  case "'":
4186
4186
  return this.flowKey = !0, yield* d(this.parseQuotedScalar());
@@ -4303,7 +4303,7 @@ class Hs {
4303
4303
  else
4304
4304
  break;
4305
4305
  } while (!0);
4306
- return yield _e, yield* d(this.pushToIndex(e + 1, !0)), yield* d(this.parseLineStart());
4306
+ return yield Me, yield* d(this.pushToIndex(e + 1, !0)), yield* d(this.parseLineStart());
4307
4307
  }
4308
4308
  *parsePlainScalar() {
4309
4309
  const e = this.flowLevel > 0;
@@ -4311,14 +4311,14 @@ class Hs {
4311
4311
  for (; i = this.buffer[++n]; )
4312
4312
  if (i === ":") {
4313
4313
  const r = this.buffer[n + 1];
4314
- if (V(r) || e && Pe.has(r))
4314
+ if (V(r) || e && Ke.has(r))
4315
4315
  break;
4316
4316
  t = n;
4317
4317
  } else if (V(i)) {
4318
4318
  let r = this.buffer[n + 1];
4319
4319
  if (i === "\r" && (r === `
4320
4320
  ` ? (n += 1, i = `
4321
- `, r = this.buffer[n + 1]) : t = n), r === "#" || e && Pe.has(r))
4321
+ `, r = this.buffer[n + 1]) : t = n), r === "#" || e && Ke.has(r))
4322
4322
  break;
4323
4323
  if (i === `
4324
4324
  `) {
@@ -4328,11 +4328,11 @@ class Hs {
4328
4328
  n = Math.max(n, o - 2);
4329
4329
  }
4330
4330
  } else {
4331
- if (e && Pe.has(i))
4331
+ if (e && Ke.has(i))
4332
4332
  break;
4333
4333
  t = n;
4334
4334
  }
4335
- return !i && !this.atEnd ? this.setNext("plain-scalar") : (yield _e, yield* d(this.pushToIndex(t + 1, !0)), e ? "flow" : "doc");
4335
+ return !i && !this.atEnd ? this.setNext("plain-scalar") : (yield Me, yield* d(this.pushToIndex(t + 1, !0)), e ? "flow" : "doc");
4336
4336
  }
4337
4337
  *pushCount(e) {
4338
4338
  return e > 0 ? (yield this.buffer.substr(this.pos, e), this.pos += e, e) : 0;
@@ -4346,12 +4346,12 @@ class Hs {
4346
4346
  case "!":
4347
4347
  return (yield* d(this.pushTag())) + (yield* d(this.pushSpaces(!0))) + (yield* d(this.pushIndicators()));
4348
4348
  case "&":
4349
- return (yield* d(this.pushUntil(bt))) + (yield* d(this.pushSpaces(!0))) + (yield* d(this.pushIndicators()));
4349
+ return (yield* d(this.pushUntil(wt))) + (yield* d(this.pushSpaces(!0))) + (yield* d(this.pushIndicators()));
4350
4350
  case "-":
4351
4351
  case "?":
4352
4352
  case ":": {
4353
4353
  const e = this.flowLevel > 0, t = this.charAt(1);
4354
- if (V(t) || e && Pe.has(t))
4354
+ if (V(t) || e && Ke.has(t))
4355
4355
  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()));
4356
4356
  }
4357
4357
  }
@@ -4366,9 +4366,9 @@ class Hs {
4366
4366
  } else {
4367
4367
  let e = this.pos + 1, t = this.buffer[e];
4368
4368
  for (; t; )
4369
- if (Ii.has(t))
4369
+ if ($i.has(t))
4370
4370
  t = this.buffer[++e];
4371
- else if (t === "%" && es.has(this.buffer[e + 1]) && es.has(this.buffer[e + 2]))
4371
+ else if (t === "%" && ts.has(this.buffer[e + 1]) && ts.has(this.buffer[e + 2]))
4372
4372
  t = this.buffer[e += 3];
4373
4373
  else
4374
4374
  break;
@@ -4419,7 +4419,7 @@ function Z(s, e) {
4419
4419
  return !0;
4420
4420
  return !1;
4421
4421
  }
4422
- function ts(s) {
4422
+ function ss(s) {
4423
4423
  for (let e = 0; e < s.length; ++e)
4424
4424
  switch (s[e].type) {
4425
4425
  case "space":
@@ -4431,7 +4431,7 @@ function ts(s) {
4431
4431
  }
4432
4432
  return -1;
4433
4433
  }
4434
- function Xs(s) {
4434
+ function xs(s) {
4435
4435
  switch (s == null ? void 0 : s.type) {
4436
4436
  case "alias":
4437
4437
  case "scalar":
@@ -4443,7 +4443,7 @@ function Xs(s) {
4443
4443
  return !1;
4444
4444
  }
4445
4445
  }
4446
- function Ke(s) {
4446
+ function Fe(s) {
4447
4447
  var e;
4448
4448
  switch (s.type) {
4449
4449
  case "document":
@@ -4477,18 +4477,18 @@ function ae(s) {
4477
4477
  ;
4478
4478
  return s.splice(e, s.length);
4479
4479
  }
4480
- function ss(s) {
4480
+ function ns(s) {
4481
4481
  if (s.start.type === "flow-seq-start")
4482
4482
  for (const e of s.items)
4483
- e.sep && !e.value && !Z(e.start, "explicit-key-ind") && !Z(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, Xs(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);
4483
+ e.sep && !e.value && !Z(e.start, "explicit-key-ind") && !Z(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, xs(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);
4484
4484
  }
4485
- class Ft {
4485
+ class Rt {
4486
4486
  /**
4487
4487
  * @param onNewLine - If defined, called separately with the start position of
4488
4488
  * each new line (in `parse()`, including the start of input).
4489
4489
  */
4490
4490
  constructor(e) {
4491
- this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Hs(), this.onNewLine = e;
4491
+ this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Xs(), this.onNewLine = e;
4492
4492
  }
4493
4493
  /**
4494
4494
  * Parse `source` as a YAML stream.
@@ -4512,7 +4512,7 @@ class Ft {
4512
4512
  this.atScalar = !1, yield* d(this.step()), this.offset += e.length;
4513
4513
  return;
4514
4514
  }
4515
- const t = Gs(e);
4515
+ const t = Hs(e);
4516
4516
  if (t)
4517
4517
  if (t === "scalar")
4518
4518
  this.atNewLine = !1, this.atScalar = !0, this.type = "scalar";
@@ -4601,7 +4601,7 @@ class Ft {
4601
4601
  yield t;
4602
4602
  else {
4603
4603
  const n = this.peek(1);
4604
- switch (t.type === "block-scalar" ? t.indent = "indent" in n ? n.indent : 0 : t.type === "flow-collection" && n.type === "document" && (t.indent = 0), t.type === "flow-collection" && ss(t), n.type) {
4604
+ switch (t.type === "block-scalar" ? t.indent = "indent" in n ? n.indent : 0 : t.type === "flow-collection" && n.type === "document" && (t.indent = 0), t.type === "flow-collection" && ns(t), n.type) {
4605
4605
  case "document":
4606
4606
  n.value = t;
4607
4607
  break;
@@ -4636,7 +4636,7 @@ class Ft {
4636
4636
  }
4637
4637
  if ((n.type === "document" || n.type === "block-map" || n.type === "block-seq") && (t.type === "block-map" || t.type === "block-seq")) {
4638
4638
  const i = t.items[t.items.length - 1];
4639
- i && !i.sep && !i.value && i.start.length > 0 && ts(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));
4639
+ i && !i.sep && !i.value && i.start.length > 0 && ss(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));
4640
4640
  }
4641
4641
  }
4642
4642
  }
@@ -4674,7 +4674,7 @@ class Ft {
4674
4674
  return yield* d(this.lineEnd(e));
4675
4675
  switch (this.type) {
4676
4676
  case "doc-start": {
4677
- ts(e.start) !== -1 ? (yield* d(this.pop()), yield* d(this.step())) : e.start.push(this.sourceToken);
4677
+ ss(e.start) !== -1 ? (yield* d(this.pop()), yield* d(this.step())) : e.start.push(this.sourceToken);
4678
4678
  return;
4679
4679
  }
4680
4680
  case "anchor":
@@ -4695,7 +4695,7 @@ class Ft {
4695
4695
  }
4696
4696
  *scalar(e) {
4697
4697
  if (this.type === "map-value-ind") {
4698
- const t = Ke(this.peek(2)), n = ae(t);
4698
+ const t = Fe(this.peek(2)), n = ae(t);
4699
4699
  let i;
4700
4700
  e.end ? (i = e.end, i.push(this.sourceToken), delete e.end) : i = [this.sourceToken];
4701
4701
  const r = {
@@ -4805,7 +4805,7 @@ class Ft {
4805
4805
  indent: this.indent,
4806
4806
  items: [{ start: o, key: null, sep: [this.sourceToken] }]
4807
4807
  });
4808
- else if (Xs(t.key) && !Z(t.sep, "newline")) {
4808
+ else if (xs(t.key) && !Z(t.sep, "newline")) {
4809
4809
  const a = ae(t.start), l = t.key, c = t.sep;
4810
4810
  c.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
4811
4811
  type: "block-map",
@@ -4944,8 +4944,8 @@ class Ft {
4944
4944
  if (n.type === "block-map" && (this.type === "map-value-ind" && n.indent === e.indent || this.type === "newline" && !n.items[n.items.length - 1].sep))
4945
4945
  yield* d(this.pop()), yield* d(this.step());
4946
4946
  else if (this.type === "map-value-ind" && n.type !== "flow-collection") {
4947
- const i = Ke(n), r = ae(i);
4948
- ss(e);
4947
+ const i = Fe(n), r = ae(i);
4948
+ ns(e);
4949
4949
  const o = e.end.splice(1, e.end.length);
4950
4950
  o.push(this.sourceToken);
4951
4951
  const a = {
@@ -5008,7 +5008,7 @@ class Ft {
5008
5008
  };
5009
5009
  case "explicit-key-ind": {
5010
5010
  this.onKeyLine = !0;
5011
- const t = Ke(e), n = ae(t);
5011
+ const t = Fe(e), n = ae(t);
5012
5012
  return n.push(this.sourceToken), {
5013
5013
  type: "block-map",
5014
5014
  offset: this.offset,
@@ -5018,7 +5018,7 @@ class Ft {
5018
5018
  }
5019
5019
  case "map-value-ind": {
5020
5020
  this.onKeyLine = !0;
5021
- const t = Ke(e), n = ae(t);
5021
+ const t = Fe(e), n = ae(t);
5022
5022
  return {
5023
5023
  type: "block-map",
5024
5024
  offset: this.offset,
@@ -5054,19 +5054,19 @@ class Ft {
5054
5054
  }
5055
5055
  }
5056
5056
  }
5057
- function xs(s) {
5057
+ function Zs(s) {
5058
5058
  const e = s.prettyErrors !== !1;
5059
5059
  return { lineCounter: s.lineCounter || e && new zs() || null, prettyErrors: e };
5060
5060
  }
5061
- function Li(s, e = {}) {
5062
- const { lineCounter: t, prettyErrors: n } = xs(e), i = new Ft(t == null ? void 0 : t.addNewLine), r = new Kt(e), o = Array.from(r.compose(i.parse(s)));
5061
+ function Ci(s, e = {}) {
5062
+ const { lineCounter: t, prettyErrors: n } = Zs(e), i = new Rt(t == null ? void 0 : t.addNewLine), r = new Ft(e), o = Array.from(r.compose(i.parse(s)));
5063
5063
  if (n && t)
5064
5064
  for (const a of o)
5065
- a.errors.forEach(Qe(s, t)), a.warnings.forEach(Qe(s, t));
5065
+ a.errors.forEach(Ge(s, t)), a.warnings.forEach(Ge(s, t));
5066
5066
  return o.length > 0 ? o : Object.assign([], { empty: !0 }, r.streamInfo());
5067
5067
  }
5068
- function Zs(s, e = {}) {
5069
- const { lineCounter: t, prettyErrors: n } = xs(e), i = new Ft(t == null ? void 0 : t.addNewLine), r = new Kt(e);
5068
+ function en(s, e = {}) {
5069
+ const { lineCounter: t, prettyErrors: n } = Zs(e), i = new Rt(t == null ? void 0 : t.addNewLine), r = new Ft(e);
5070
5070
  let o = null;
5071
5071
  for (const a of r.compose(i.parse(s), !0, s.length))
5072
5072
  if (!o)
@@ -5075,22 +5075,22 @@ function Zs(s, e = {}) {
5075
5075
  o.errors.push(new se(a.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
5076
5076
  break;
5077
5077
  }
5078
- return n && t && (o.errors.forEach(Qe(s, t)), o.warnings.forEach(Qe(s, t))), o;
5078
+ return n && t && (o.errors.forEach(Ge(s, t)), o.warnings.forEach(Ge(s, t))), o;
5079
5079
  }
5080
- function Ci(s, e, t) {
5080
+ function _i(s, e, t) {
5081
5081
  let n;
5082
5082
  typeof e == "function" ? n = e : t === void 0 && e && typeof e == "object" && (t = e);
5083
- const i = Zs(s, t);
5083
+ const i = en(s, t);
5084
5084
  if (!i)
5085
5085
  return null;
5086
- if (i.warnings.forEach((r) => Ss(i.options.logLevel, r)), i.errors.length > 0) {
5086
+ if (i.warnings.forEach((r) => ks(i.options.logLevel, r)), i.errors.length > 0) {
5087
5087
  if (i.options.logLevel !== "silent")
5088
5088
  throw i.errors[0];
5089
5089
  i.errors = [];
5090
5090
  }
5091
5091
  return i.toJS(Object.assign({ reviver: n }, t));
5092
5092
  }
5093
- function _i(s, e, t) {
5093
+ function Mi(s, e, t) {
5094
5094
  var i;
5095
5095
  let n = null;
5096
5096
  if (typeof e == "function" || Array.isArray(e) ? n = e : t === void 0 && e && (t = e), typeof t == "string" && (t = t.length), typeof t == "number") {
@@ -5104,23 +5104,23 @@ function _i(s, e, t) {
5104
5104
  }
5105
5105
  return new Oe(s, n, t).toString(t);
5106
5106
  }
5107
- const ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5107
+ const is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5108
5108
  __proto__: null,
5109
5109
  Alias: ze,
5110
- CST: Ei,
5111
- Composer: Kt,
5110
+ CST: Ii,
5111
+ Composer: Ft,
5112
5112
  Document: Oe,
5113
- Lexer: Hs,
5113
+ Lexer: Xs,
5114
5114
  LineCounter: zs,
5115
5115
  Pair: q,
5116
- Parser: Ft,
5116
+ Parser: Rt,
5117
5117
  Scalar: O,
5118
- Schema: rt,
5119
- YAMLError: Dt,
5118
+ Schema: ot,
5119
+ YAMLError: Pt,
5120
5120
  YAMLMap: F,
5121
5121
  YAMLParseError: se,
5122
- YAMLSeq: X,
5123
- YAMLWarning: Ps,
5122
+ YAMLSeq: z,
5123
+ YAMLWarning: Ks,
5124
5124
  isAlias: ie,
5125
5125
  isCollection: L,
5126
5126
  isDocument: ge,
@@ -5129,13 +5129,13 @@ const ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5129
5129
  isPair: I,
5130
5130
  isScalar: E,
5131
5131
  isSeq: we,
5132
- parse: Ci,
5133
- parseAllDocuments: Li,
5134
- parseDocument: Zs,
5135
- stringify: _i,
5136
- visit: z,
5137
- visitAsync: He
5138
- }, Symbol.toStringTag, { value: "Module" })), Mi = `# This is your query - you can modify it directly and click Run to see new results.
5132
+ parse: _i,
5133
+ parseAllDocuments: Ci,
5134
+ parseDocument: en,
5135
+ stringify: Mi,
5136
+ visit: X,
5137
+ visitAsync: Xe
5138
+ }, Symbol.toStringTag, { value: "Module" })), vi = `# This is your query - you can modify it directly and click Run to see new results.
5139
5139
  # Try uncommenting the elements below
5140
5140
  # To learn more about the query syntax, visit [Doc URL]
5141
5141
  ---
@@ -5177,7 +5177,7 @@ model: {{dataSourceTitle}}
5177
5177
  # - name: Dimension2
5178
5178
  # - name: Measure1
5179
5179
  # - name: Measure2`;
5180
- class Di {
5180
+ class Pi {
5181
5181
  /**
5182
5182
  * Constructor for QueryTranslator.
5183
5183
  *
@@ -5193,7 +5193,7 @@ class Di {
5193
5193
  return e.reduce((t, n) => {
5194
5194
  const i = n.id;
5195
5195
  t[i] = n;
5196
- const r = dn(i);
5196
+ const r = pn(i);
5197
5197
  return i !== r && (t[r] = G(P({}, n), { id: r })), t;
5198
5198
  }, {});
5199
5199
  }
@@ -5201,7 +5201,7 @@ class Di {
5201
5201
  * Concatenates Aggregation Types.
5202
5202
  */
5203
5203
  concatAggTypes() {
5204
- return Object.values(fn).map((t) => rs.aggregationToJAQL(t)).join("|");
5204
+ return Object.values(un).map((t) => os.aggregationToJAQL(t)).join("|");
5205
5205
  }
5206
5206
  /**
5207
5207
  * Simplifies Aggregation Formula defined in MetadataItemJaql returned from chat response.
@@ -5321,7 +5321,7 @@ class Di {
5321
5321
  */
5322
5322
  translateToSimple(e) {
5323
5323
  try {
5324
- const { jaql: t, chartRecommendations: n, queryTitle: i } = Je(e);
5324
+ const { jaql: t, chartRecommendations: n, queryTitle: i } = We(e);
5325
5325
  return {
5326
5326
  model: t.datasource.title,
5327
5327
  metadata: t.metadata.map((r) => this.simplifyMetadataItem(r)),
@@ -5329,7 +5329,7 @@ class Di {
5329
5329
  queryTitle: this.getQueryTitleWithChartType(i, n)
5330
5330
  };
5331
5331
  } catch (t) {
5332
- return console.error("Error running toSimpleQuery", t), Jt;
5332
+ return console.error("Error running toSimpleQuery", t), Wt;
5333
5333
  }
5334
5334
  }
5335
5335
  /**
@@ -5339,14 +5339,14 @@ class Di {
5339
5339
  * @returns The YAML string representing the simple query model
5340
5340
  */
5341
5341
  stringifySimple(e) {
5342
- const r = e, { queryTitle: t } = r, n = Vt(r, ["queryTitle"]), i = new ns.Document(n);
5343
- return i.commentBefore = ` ${hn(t)}`, i.directives && (i.directives.docStart = !0), String(i);
5342
+ const r = e, { queryTitle: t } = r, n = Jt(r, ["queryTitle"]), i = new is.Document(n);
5343
+ return i.commentBefore = ` ${dn(t)}`, i.directives && (i.directives.docStart = !0), String(i);
5344
5344
  }
5345
5345
  /**
5346
5346
  * Returns the query template.
5347
5347
  */
5348
5348
  getQueryTemplate() {
5349
- return as(Mi, { dataSourceTitle: this.contextTitle });
5349
+ return ls(vi, { dataSourceTitle: this.contextTitle });
5350
5350
  }
5351
5351
  /**
5352
5352
  * Parses a YAML string to Simple Query Model.
@@ -5356,12 +5356,12 @@ class Di {
5356
5356
  */
5357
5357
  parseSimple(e) {
5358
5358
  try {
5359
- const t = ns.parseDocument(e), { commentBefore: n } = t, i = pn(t.toJS());
5359
+ const t = is.parseDocument(e), { commentBefore: n } = t, i = mn(t.toJS());
5360
5360
  return i.queryTitle = (n == null ? void 0 : n.trim()) || "", i;
5361
5361
  } catch (t) {
5362
5362
  console.error("Error parsing the YAML string", t);
5363
5363
  }
5364
- return Jt;
5364
+ return Wt;
5365
5365
  }
5366
5366
  /**
5367
5367
  * Expands Chart Recommendations.
@@ -5373,7 +5373,7 @@ class Di {
5373
5373
  if (!e || !("dataOptions" in e))
5374
5374
  return {};
5375
5375
  const { chartType: t, dataOptions: n } = e;
5376
- return { chartFamily: cn(t), chartType: t, axesMapping: n };
5376
+ return { chartFamily: fn(t), chartType: t, axesMapping: n };
5377
5377
  }
5378
5378
  /**
5379
5379
  * Expands MetadataItemJaql by adding table, column, datatype, and title
@@ -5420,7 +5420,7 @@ class Di {
5420
5420
  * @returns The Expanded Query Model
5421
5421
  */
5422
5422
  translateToExpanded(e) {
5423
- const { model: t, metadata: n, chart: i, queryTitle: r } = Je(e), o = {
5423
+ const { model: t, metadata: n, chart: i, queryTitle: r } = We(e), o = {
5424
5424
  datasource: { title: t },
5425
5425
  metadata: n.map((l) => this.expandMetadataItem(l))
5426
5426
  }, a = this.expandChartRecommendations(i);
@@ -5428,8 +5428,8 @@ class Di {
5428
5428
  }
5429
5429
  }
5430
5430
  export {
5431
- qi as EMPTY_EXPANDED_QUERY_MODEL,
5432
- Jt as EMPTY_SIMPLE_QUERY_MODEL,
5433
- Bi as ModelTranslator,
5434
- Di as QueryTranslator
5431
+ Bi as EMPTY_EXPANDED_QUERY_MODEL,
5432
+ Wt as EMPTY_SIMPLE_QUERY_MODEL,
5433
+ Di as ModelTranslator,
5434
+ Pi as QueryTranslator
5435
5435
  };