@sisense/sdk-ui 1.25.0 → 1.26.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 (27) hide show
  1. package/dist/ai.cjs +53 -52
  2. package/dist/ai.js +934 -787
  3. package/dist/analytics-composer.cjs +38 -38
  4. package/dist/analytics-composer.js +475 -464
  5. package/dist/{derive-chart-family-C_c2ZQQd.cjs → derive-chart-family-DOmv279l.cjs} +19 -19
  6. package/dist/{derive-chart-family-BlFbAr2V.js → derive-chart-family-ZvvF5lty.js} +255 -246
  7. package/dist/index.cjs +42 -42
  8. package/dist/index.js +1817 -1767
  9. package/dist/packages/sdk-ui/src/ai/api/types.d.ts +6 -1
  10. package/dist/packages/sdk-ui/src/ai/icons/close-dialog-icon.d.ts +3 -1
  11. package/dist/packages/sdk-ui/src/ai/icons/sisense-logo.d.ts +2 -4
  12. package/dist/packages/sdk-ui/src/ai/use-chat-session.d.ts +2 -1
  13. package/dist/packages/sdk-ui/src/analytics-composer/common/utils.d.ts +1 -1
  14. package/dist/packages/sdk-ui/src/analytics-composer/execute-query/execute-query-composer.d.ts +8 -1
  15. package/dist/packages/sdk-ui/src/analytics-composer/execute-query/to-execute-query-code.d.ts +2 -1
  16. package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +8 -2
  17. package/dist/packages/sdk-ui/src/api/rest-api.d.ts +13 -1
  18. package/dist/packages/sdk-ui/src/chart/helpers/use-synced-data.d.ts +14 -1
  19. package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +9 -1
  20. package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +14 -2
  21. package/dist/useQuery-9lk4MNnb.cjs +889 -0
  22. package/dist/{useQuery-P9b5LtGq.js → useQuery-BtpTzoxI.js} +21289 -20599
  23. package/dist/widget-composer-DbpSzSub.cjs +298 -0
  24. package/dist/{widget-composer-DXM5t9rq.js → widget-composer-ygehKLLR.js} +229 -150
  25. package/package.json +7 -7
  26. package/dist/useQuery-BYxzPyc5.cjs +0 -870
  27. package/dist/widget-composer-DPsDPrFM.cjs +0 -237
@@ -1,20 +1,20 @@
1
- var Qs = Object.defineProperty, Ys = Object.defineProperties;
2
- var Gs = Object.getOwnPropertyDescriptors;
1
+ var Hs = Object.defineProperty, zs = Object.defineProperties;
2
+ var Xs = Object.getOwnPropertyDescriptors;
3
3
  var _e = Object.getOwnPropertySymbols;
4
- var Pt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable;
4
+ var Dt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable;
5
5
  var it = (s, e) => (e = Symbol[s]) ? e : Symbol.for("Symbol." + s);
6
- var rt = (s, e, t) => e in s ? Qs(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, R = (s, e) => {
6
+ var rt = (s, e, t) => e in s ? Hs(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, R = (s, e) => {
7
7
  for (var t in e || (e = {}))
8
- Pt.call(e, t) && rt(s, t, e[t]);
8
+ Dt.call(e, t) && rt(s, t, e[t]);
9
9
  if (_e)
10
10
  for (var t of _e(e))
11
11
  qt.call(e, t) && rt(s, t, e[t]);
12
12
  return s;
13
- }, G = (s, e) => Ys(s, Gs(e));
14
- var Dt = (s, e) => {
13
+ }, G = (s, e) => zs(s, Xs(e));
14
+ var Kt = (s, e) => {
15
15
  var t = {};
16
16
  for (var n in s)
17
- Pt.call(s, n) && e.indexOf(n) < 0 && (t[n] = s[n]);
17
+ Dt.call(s, n) && e.indexOf(n) < 0 && (t[n] = s[n]);
18
18
  if (s != null && _e)
19
19
  for (var n of _e(s))
20
20
  e.indexOf(n) < 0 && qt.call(s, n) && (t[n] = s[n]);
@@ -36,7 +36,7 @@ var lt = (s, e, t) => new Promise((n, i) => {
36
36
  }
37
37
  }, l = (a) => a.done ? n(a.value) : Promise.resolve(a.value).then(r, o);
38
38
  l((t = t.apply(s, e)).next());
39
- }), Ws = function(s, e) {
39
+ }), xs = function(s, e) {
40
40
  this[0] = s, this[1] = e;
41
41
  };
42
42
  var d = (s) => {
@@ -49,7 +49,7 @@ var d = (s) => {
49
49
  }
50
50
  return t = !0, {
51
51
  done: !1,
52
- value: new Ws(new Promise((l) => {
52
+ value: new xs(new Promise((l) => {
53
53
  var a = e[r](o);
54
54
  if (!(a instanceof Object))
55
55
  throw TypeError("Object expected");
@@ -60,10 +60,10 @@ var d = (s) => {
60
60
  throw r;
61
61
  }, "return" in e && n("return"), i;
62
62
  };
63
- import { s as Hs, E as Kt, c as zs, p as Xs, v as xs, a as Zs, b as en, d as tn, g as sn } from "./widget-composer-DXM5t9rq.js";
64
- import { e as $i, f as Ci, i as _i, w as Mi } from "./widget-composer-DXM5t9rq.js";
65
- import { a7 as nn, aR as Ft, cg as rn, cW as on } from "./derive-chart-family-BlFbAr2V.js";
66
- const kt = Symbol.for("yaml.alias"), mt = Symbol.for("yaml.document"), W = Symbol.for("yaml.map"), Zt = Symbol.for("yaml.pair"), Y = Symbol.for("yaml.scalar"), me = Symbol.for("yaml.seq"), F = Symbol.for("yaml.node.type"), ne = (s) => !!s && typeof s == "object" && s[F] === kt, ye = (s) => !!s && typeof s == "object" && s[F] === mt, ge = (s) => !!s && typeof s == "object" && s[F] === W, E = (s) => !!s && typeof s == "object" && s[F] === Zt, A = (s) => !!s && typeof s == "object" && s[F] === Y, be = (s) => !!s && typeof s == "object" && s[F] === me;
63
+ import { s as Zs, E as Ft, c as en, p as tn, v as sn, a as es, b as at, d as nn, e as ts, g as ss } from "./widget-composer-ygehKLLR.js";
64
+ import { f as Bi, h as Pi, i as ji, w as Di } from "./widget-composer-ygehKLLR.js";
65
+ import { a9 as rn, aT as Rt, ci as on, cY as ln } from "./derive-chart-family-ZvvF5lty.js";
66
+ const Nt = Symbol.for("yaml.alias"), yt = Symbol.for("yaml.document"), W = Symbol.for("yaml.map"), ns = Symbol.for("yaml.pair"), Y = Symbol.for("yaml.scalar"), me = Symbol.for("yaml.seq"), F = Symbol.for("yaml.node.type"), ne = (s) => !!s && typeof s == "object" && s[F] === Nt, ye = (s) => !!s && typeof s == "object" && s[F] === yt, ge = (s) => !!s && typeof s == "object" && s[F] === W, E = (s) => !!s && typeof s == "object" && s[F] === ns, A = (s) => !!s && typeof s == "object" && s[F] === Y, be = (s) => !!s && typeof s == "object" && s[F] === me;
67
67
  function $(s) {
68
68
  if (s && typeof s == "object")
69
69
  switch (s[F]) {
@@ -76,7 +76,7 @@ function $(s) {
76
76
  function M(s) {
77
77
  if (s && typeof s == "object")
78
78
  switch (s[F]) {
79
- case kt:
79
+ case Nt:
80
80
  case W:
81
81
  case Y:
82
82
  case me:
@@ -84,18 +84,18 @@ function M(s) {
84
84
  }
85
85
  return !1;
86
86
  }
87
- const ln = (s) => (A(s) || $(s)) && !!s.anchor, q = Symbol("break visit"), es = Symbol("skip children"), J = Symbol("remove node");
87
+ const an = (s) => (A(s) || $(s)) && !!s.anchor, D = Symbol("break visit"), is = Symbol("skip children"), J = Symbol("remove node");
88
88
  function H(s, e) {
89
- const t = ts(e);
89
+ const t = rs(e);
90
90
  ye(s) ? le(null, s.contents, t, Object.freeze([s])) === J && (s.contents = null) : le(null, s, t, Object.freeze([]));
91
91
  }
92
- H.BREAK = q;
93
- H.SKIP = es;
92
+ H.BREAK = D;
93
+ H.SKIP = is;
94
94
  H.REMOVE = J;
95
95
  function le(s, e, t, n) {
96
- const i = ss(s, e, t, n);
96
+ const i = os(s, e, t, n);
97
97
  if (M(i) || E(i))
98
- return ns(s, n, i), le(s, i, t, n);
98
+ return ls(s, n, i), le(s, i, t, n);
99
99
  if (typeof i != "symbol") {
100
100
  if ($(e)) {
101
101
  n = Object.freeze(n.concat(e));
@@ -104,20 +104,20 @@ function le(s, e, t, n) {
104
104
  if (typeof o == "number")
105
105
  r = o - 1;
106
106
  else {
107
- if (o === q)
108
- return q;
107
+ if (o === D)
108
+ return D;
109
109
  o === J && (e.items.splice(r, 1), r -= 1);
110
110
  }
111
111
  }
112
112
  } else if (E(e)) {
113
113
  n = Object.freeze(n.concat(e));
114
114
  const r = le("key", e.key, t, n);
115
- if (r === q)
116
- return q;
115
+ if (r === D)
116
+ return D;
117
117
  r === J && (e.key = null);
118
118
  const o = le("value", e.value, t, n);
119
- if (o === q)
120
- return q;
119
+ if (o === D)
120
+ return D;
121
121
  o === J && (e.value = null);
122
122
  }
123
123
  }
@@ -125,18 +125,18 @@ function le(s, e, t, n) {
125
125
  }
126
126
  function Je(s, e) {
127
127
  return lt(this, null, function* () {
128
- const t = ts(e);
128
+ const t = rs(e);
129
129
  ye(s) ? (yield ae(null, s.contents, t, Object.freeze([s]))) === J && (s.contents = null) : yield ae(null, s, t, Object.freeze([]));
130
130
  });
131
131
  }
132
- Je.BREAK = q;
133
- Je.SKIP = es;
132
+ Je.BREAK = D;
133
+ Je.SKIP = is;
134
134
  Je.REMOVE = J;
135
135
  function ae(s, e, t, n) {
136
136
  return lt(this, null, function* () {
137
- const i = yield ss(s, e, t, n);
137
+ const i = yield os(s, e, t, n);
138
138
  if (M(i) || E(i))
139
- return ns(s, n, i), ae(s, i, t, n);
139
+ return ls(s, n, i), ae(s, i, t, n);
140
140
  if (typeof i != "symbol") {
141
141
  if ($(e)) {
142
142
  n = Object.freeze(n.concat(e));
@@ -145,27 +145,27 @@ function ae(s, e, t, n) {
145
145
  if (typeof o == "number")
146
146
  r = o - 1;
147
147
  else {
148
- if (o === q)
149
- return q;
148
+ if (o === D)
149
+ return D;
150
150
  o === J && (e.items.splice(r, 1), r -= 1);
151
151
  }
152
152
  }
153
153
  } else if (E(e)) {
154
154
  n = Object.freeze(n.concat(e));
155
155
  const r = yield ae("key", e.key, t, n);
156
- if (r === q)
157
- return q;
156
+ if (r === D)
157
+ return D;
158
158
  r === J && (e.key = null);
159
159
  const o = yield ae("value", e.value, t, n);
160
- if (o === q)
161
- return q;
160
+ if (o === D)
161
+ return D;
162
162
  o === J && (e.value = null);
163
163
  }
164
164
  }
165
165
  return i;
166
166
  });
167
167
  }
168
- function ts(s) {
168
+ function rs(s) {
169
169
  return typeof s == "object" && (s.Collection || s.Node || s.Value) ? Object.assign({
170
170
  Alias: s.Node,
171
171
  Map: s.Node,
@@ -180,7 +180,7 @@ function ts(s) {
180
180
  Seq: s.Collection
181
181
  }, s) : s;
182
182
  }
183
- function ss(s, e, t, n) {
183
+ function os(s, e, t, n) {
184
184
  var i, r, o, l, a;
185
185
  if (typeof t == "function")
186
186
  return t(s, e, n);
@@ -195,7 +195,7 @@ function ss(s, e, t, n) {
195
195
  if (ne(e))
196
196
  return (a = t.Alias) == null ? void 0 : a.call(t, s, e, n);
197
197
  }
198
- function ns(s, e, t) {
198
+ function ls(s, e, t) {
199
199
  const n = e[e.length - 1];
200
200
  if ($(n))
201
201
  n.items[s] = t;
@@ -208,20 +208,20 @@ function ns(s, e, t) {
208
208
  throw new Error(`Cannot replace node with ${i} parent`);
209
209
  }
210
210
  }
211
- const an = {
211
+ const cn = {
212
212
  "!": "%21",
213
213
  ",": "%2C",
214
214
  "[": "%5B",
215
215
  "]": "%5D",
216
216
  "{": "%7B",
217
217
  "}": "%7D"
218
- }, cn = (s) => s.replace(/[!,[\]{}]/g, (e) => an[e]);
219
- class P {
218
+ }, fn = (s) => s.replace(/[!,[\]{}]/g, (e) => cn[e]);
219
+ class j {
220
220
  constructor(e, t) {
221
- this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, P.defaultYaml, e), this.tags = Object.assign({}, P.defaultTags, t);
221
+ this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, j.defaultYaml, e), this.tags = Object.assign({}, j.defaultTags, t);
222
222
  }
223
223
  clone() {
224
- const e = new P(this.yaml, this.tags);
224
+ const e = new j(this.yaml, this.tags);
225
225
  return e.docStart = this.docStart, e;
226
226
  }
227
227
  /**
@@ -229,16 +229,16 @@ class P {
229
229
  * update the stream state according to the current version's spec.
230
230
  */
231
231
  atDocument() {
232
- const e = new P(this.yaml, this.tags);
232
+ const e = new j(this.yaml, this.tags);
233
233
  switch (this.yaml.version) {
234
234
  case "1.1":
235
235
  this.atNextDocument = !0;
236
236
  break;
237
237
  case "1.2":
238
238
  this.atNextDocument = !1, this.yaml = {
239
- explicit: P.defaultYaml.explicit,
239
+ explicit: j.defaultYaml.explicit,
240
240
  version: "1.2"
241
- }, this.tags = Object.assign({}, P.defaultTags);
241
+ }, this.tags = Object.assign({}, j.defaultTags);
242
242
  break;
243
243
  }
244
244
  return e;
@@ -248,7 +248,7 @@ class P {
248
248
  * @returns `true` on success
249
249
  */
250
250
  add(e, t) {
251
- this.atNextDocument && (this.yaml = { explicit: P.defaultYaml.explicit, version: "1.1" }, this.tags = Object.assign({}, P.defaultTags), this.atNextDocument = !1);
251
+ this.atNextDocument && (this.yaml = { explicit: j.defaultYaml.explicit, version: "1.1" }, this.tags = Object.assign({}, j.defaultTags), this.atNextDocument = !1);
252
252
  const n = e.trim().split(/[ \t]+/), i = n.shift();
253
253
  switch (i) {
254
254
  case "%TAG": {
@@ -305,7 +305,7 @@ class P {
305
305
  tagString(e) {
306
306
  for (const [t, n] of Object.entries(this.tags))
307
307
  if (e.startsWith(n))
308
- return t + cn(e.substring(n.length));
308
+ return t + fn(e.substring(n.length));
309
309
  return e[0] === "!" ? e : `!<${e}>`;
310
310
  }
311
311
  toString(e) {
@@ -324,16 +324,16 @@ class P {
324
324
  `);
325
325
  }
326
326
  }
327
- P.defaultYaml = { explicit: !1, version: "1.2" };
328
- P.defaultTags = { "!!": "tag:yaml.org,2002:" };
329
- function is(s) {
327
+ j.defaultYaml = { explicit: !1, version: "1.2" };
328
+ j.defaultTags = { "!!": "tag:yaml.org,2002:" };
329
+ function as(s) {
330
330
  if (/[\x00-\x19\s,[\]{}]/.test(s)) {
331
331
  const t = `Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;
332
332
  throw new Error(t);
333
333
  }
334
334
  return !0;
335
335
  }
336
- function rs(s) {
336
+ function cs(s) {
337
337
  const e = /* @__PURE__ */ new Set();
338
338
  return H(s, {
339
339
  Value(t, n) {
@@ -341,20 +341,20 @@ function rs(s) {
341
341
  }
342
342
  }), e;
343
343
  }
344
- function os(s, e) {
344
+ function fs(s, e) {
345
345
  for (let t = 1; ; ++t) {
346
346
  const n = `${s}${t}`;
347
347
  if (!e.has(n))
348
348
  return n;
349
349
  }
350
350
  }
351
- function fn(s, e) {
351
+ function un(s, e) {
352
352
  const t = [], n = /* @__PURE__ */ new Map();
353
353
  let i = null;
354
354
  return {
355
355
  onAnchor: (r) => {
356
- t.push(r), i || (i = rs(s));
357
- const o = os(e, i);
356
+ t.push(r), i || (i = cs(s));
357
+ const o = fs(e, i);
358
358
  return i.add(o), o;
359
359
  },
360
360
  /**
@@ -404,7 +404,7 @@ function K(s, e, t) {
404
404
  if (Array.isArray(s))
405
405
  return s.map((n, i) => K(n, String(i), t));
406
406
  if (s && typeof s.toJSON == "function") {
407
- if (!t || !ln(s))
407
+ if (!t || !an(s))
408
408
  return s.toJSON(e, t);
409
409
  const n = { aliasCount: 0, count: 1, res: void 0 };
410
410
  t.anchors.set(s, n), t.onCreate = (r) => {
@@ -415,7 +415,7 @@ function K(s, e, t) {
415
415
  }
416
416
  return typeof s == "bigint" && !(t != null && t.keep) ? Number(s) : s;
417
417
  }
418
- class Nt {
418
+ class Ot {
419
419
  constructor(e) {
420
420
  Object.defineProperty(this, F, { value: e });
421
421
  }
@@ -442,9 +442,9 @@ class Nt {
442
442
  return typeof r == "function" ? ce(r, { "": l }, "", l) : l;
443
443
  }
444
444
  }
445
- class Qe extends Nt {
445
+ class Qe extends Ot {
446
446
  constructor(e) {
447
- super(kt), this.source = e, Object.defineProperty(this, "tag", {
447
+ super(Nt), this.source = e, Object.defineProperty(this, "tag", {
448
448
  set() {
449
449
  throw new Error("Alias nodes cannot have tags");
450
450
  }
@@ -477,7 +477,7 @@ class Qe extends Nt {
477
477
  const a = "This should not happen: Alias anchor was not resolved?";
478
478
  throw new ReferenceError(a);
479
479
  }
480
- if (r >= 0 && (l.count += 1, l.aliasCount === 0 && (l.aliasCount = Pe(i, o, n)), l.count * l.aliasCount > r)) {
480
+ if (r >= 0 && (l.count += 1, l.aliasCount === 0 && (l.aliasCount = je(i, o, n)), l.count * l.aliasCount > r)) {
481
481
  const a = "Excessive alias count indicates a resource exhaustion attack";
482
482
  throw new ReferenceError(a);
483
483
  }
@@ -486,7 +486,7 @@ class Qe extends Nt {
486
486
  toString(e, t, n) {
487
487
  const i = `*${this.source}`;
488
488
  if (e) {
489
- if (is(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
489
+ if (as(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
490
490
  const r = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
491
491
  throw new Error(r);
492
492
  }
@@ -496,25 +496,25 @@ class Qe extends Nt {
496
496
  return i;
497
497
  }
498
498
  }
499
- function Pe(s, e, t) {
499
+ function je(s, e, t) {
500
500
  if (ne(e)) {
501
501
  const n = e.resolve(s), i = t && n && t.get(n);
502
502
  return i ? i.count * i.aliasCount : 0;
503
503
  } else if ($(e)) {
504
504
  let n = 0;
505
505
  for (const i of e.items) {
506
- const r = Pe(s, i, t);
506
+ const r = je(s, i, t);
507
507
  r > n && (n = r);
508
508
  }
509
509
  return n;
510
510
  } else if (E(e)) {
511
- const n = Pe(s, e.key, t), i = Pe(s, e.value, t);
511
+ const n = je(s, e.key, t), i = je(s, e.value, t);
512
512
  return Math.max(n, i);
513
513
  }
514
514
  return 1;
515
515
  }
516
- const ls = (s) => !s || typeof s != "function" && typeof s != "object";
517
- class N extends Nt {
516
+ const us = (s) => !s || typeof s != "function" && typeof s != "object";
517
+ class N extends Ot {
518
518
  constructor(e) {
519
519
  super(Y), this.value = e;
520
520
  }
@@ -530,8 +530,8 @@ N.BLOCK_LITERAL = "BLOCK_LITERAL";
530
530
  N.PLAIN = "PLAIN";
531
531
  N.QUOTE_DOUBLE = "QUOTE_DOUBLE";
532
532
  N.QUOTE_SINGLE = "QUOTE_SINGLE";
533
- const un = "tag:yaml.org,2002:";
534
- function hn(s, e, t) {
533
+ const hn = "tag:yaml.org,2002:";
534
+ function dn(s, e, t) {
535
535
  var n;
536
536
  if (e) {
537
537
  const i = t.filter((o) => o.tag === e), r = (n = i.find((o) => !o.format)) != null ? n : i[0];
@@ -560,8 +560,8 @@ function Ie(s, e, t) {
560
560
  return a.anchor || (a.anchor = i(s)), new Qe(a.anchor);
561
561
  a = { anchor: null, node: null }, l.set(s, a);
562
562
  }
563
- e != null && e.startsWith("!!") && (e = un + e.slice(2));
564
- let c = hn(s, e, o.tags);
563
+ e != null && e.startsWith("!!") && (e = hn + e.slice(2));
564
+ let c = dn(s, e, o.tags);
565
565
  if (!c) {
566
566
  if (s && typeof s.toJSON == "function" && (s = s.toJSON()), !s || typeof s != "object") {
567
567
  const y = new N(s);
@@ -594,7 +594,7 @@ function Fe(s, e, t) {
594
594
  });
595
595
  }
596
596
  const Oe = (s) => s == null || typeof s == "object" && !!s[Symbol.iterator]().next().done;
597
- class as extends Nt {
597
+ class hs extends Ot {
598
598
  constructor(e, t) {
599
599
  super(e), Object.defineProperty(this, "schema", {
600
600
  value: t,
@@ -689,14 +689,14 @@ class as extends Nt {
689
689
  }
690
690
  }
691
691
  }
692
- const dn = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
692
+ const pn = (s) => s.replace(/^(?!$)(?: $)?/gm, "#");
693
693
  function Q(s, e) {
694
694
  return /^\n+$/.test(s) ? s.substring(1) : e ? s.replace(/^(?! *$)/gm, e) : s;
695
695
  }
696
696
  const Z = (s, e, t) => s.endsWith(`
697
697
  `) ? Q(t, e) : t.includes(`
698
698
  `) ? `
699
- ` + Q(t, e) : (s.endsWith(" ") ? "" : " ") + t, cs = "flow", yt = "block", qe = "quoted";
699
+ ` + Q(t, e) : (s.endsWith(" ") ? "" : " ") + t, ds = "flow", gt = "block", De = "quoted";
700
700
  function Ye(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentWidth: r = 20, onFold: o, onOverflow: l } = {}) {
701
701
  if (!i || i < 0)
702
702
  return s;
@@ -708,9 +708,9 @@ function Ye(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
708
708
  let f = i - e.length;
709
709
  typeof n == "number" && (n > i - Math.max(2, r) ? c.push(0) : f = i - n);
710
710
  let p, m, y = !1, u = -1, g = -1, b = -1;
711
- t === yt && (u = Rt(s, u, e.length), u !== -1 && (f = u + a));
711
+ t === gt && (u = Ut(s, u, e.length), u !== -1 && (f = u + a));
712
712
  for (let I; I = s[u += 1]; ) {
713
- if (t === qe && I === "\\") {
713
+ if (t === De && I === "\\") {
714
714
  switch (g = u, s[u + 1]) {
715
715
  case "x":
716
716
  u += 3;
@@ -728,7 +728,7 @@ function Ye(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
728
728
  }
729
729
  if (I === `
730
730
  `)
731
- t === yt && (u = Rt(s, u, e.length)), f = u + e.length + a, p = void 0;
731
+ t === gt && (u = Ut(s, u, e.length)), f = u + e.length + a, p = void 0;
732
732
  else {
733
733
  if (I === " " && m && m !== " " && m !== `
734
734
  ` && m !== " ") {
@@ -739,7 +739,7 @@ function Ye(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
739
739
  if (u >= f)
740
740
  if (p)
741
741
  c.push(p), f = p + a, p = void 0;
742
- else if (t === qe) {
742
+ else if (t === De) {
743
743
  for (; m === " " || m === " "; )
744
744
  m = I, I = s[u += 1], y = !0;
745
745
  const k = u > b + 1 ? u - 2 : g - 1;
@@ -758,12 +758,12 @@ function Ye(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
758
758
  for (let I = 0; I < c.length; ++I) {
759
759
  const k = c[I], O = c[I + 1] || s.length;
760
760
  k === 0 ? S = `
761
- ${e}${s.slice(0, O)}` : (t === qe && h[k] && (S += `${s[k]}\\`), S += `
761
+ ${e}${s.slice(0, O)}` : (t === De && h[k] && (S += `${s[k]}\\`), S += `
762
762
  ${e}${s.slice(k + 1, O)}`);
763
763
  }
764
764
  return S;
765
765
  }
766
- function Rt(s, e, t) {
766
+ function Ut(s, e, t) {
767
767
  let n = e, i = e + 1, r = s[i];
768
768
  for (; r === " " || r === " "; )
769
769
  if (e < i + t)
@@ -782,7 +782,7 @@ const Ge = (s, e) => ({
782
782
  lineWidth: s.options.lineWidth,
783
783
  minContentWidth: s.options.minContentWidth
784
784
  }), We = (s) => /^(%|---|\.\.\.)/m.test(s);
785
- function pn(s, e, t) {
785
+ function mn(s, e, t) {
786
786
  if (!e || e < 0)
787
787
  return !1;
788
788
  const n = e - t, i = s.length;
@@ -857,15 +857,15 @@ function Te(s, e) {
857
857
  default:
858
858
  a += 1;
859
859
  }
860
- return o = l ? o + t.slice(l) : t, n ? o : Ye(o, r, qe, Ge(e, !1));
860
+ return o = l ? o + t.slice(l) : t, n ? o : Ye(o, r, De, Ge(e, !1));
861
861
  }
862
- function gt(s, e) {
862
+ function bt(s, e) {
863
863
  if (e.options.singleQuote === !1 || e.implicitKey && s.includes(`
864
864
  `) || /[ \t]\n|\n[ \t]/.test(s))
865
865
  return Te(s, e);
866
866
  const t = e.indent || (We(s) ? " " : ""), n = "'" + s.replace(/'/g, "''").replace(/\n+/g, `$&
867
867
  ${t}`) + "'";
868
- return e.implicitKey ? n : Ye(n, t, cs, Ge(e, !1));
868
+ return e.implicitKey ? n : Ye(n, t, ds, Ge(e, !1));
869
869
  }
870
870
  function fe(s, e) {
871
871
  const { singleQuote: t } = e.options;
@@ -874,24 +874,24 @@ function fe(s, e) {
874
874
  n = Te;
875
875
  else {
876
876
  const i = s.includes('"'), r = s.includes("'");
877
- i && !r ? n = gt : r && !i ? n = Te : n = t ? gt : Te;
877
+ i && !r ? n = bt : r && !i ? n = Te : n = t ? bt : Te;
878
878
  }
879
879
  return n(s, e);
880
880
  }
881
- let bt;
881
+ let wt;
882
882
  try {
883
- bt = new RegExp(`(^|(?<!
883
+ wt = new RegExp(`(^|(?<!
884
884
  ))
885
885
  +(?!
886
886
  |$)`, "g");
887
887
  } catch (s) {
888
- bt = /\n+(?!\n|$)/g;
888
+ wt = /\n+(?!\n|$)/g;
889
889
  }
890
- function De({ comment: s, type: e, value: t }, n, i, r) {
890
+ function qe({ comment: s, type: e, value: t }, n, i, r) {
891
891
  const { blockQuote: o, commentString: l, lineWidth: a } = n.options;
892
892
  if (!o || /\n[\t ]+$/.test(t) || /^\s*$/.test(t))
893
893
  return fe(t, n);
894
- const c = n.indent || (n.forceBlockIndent || We(t) ? " " : ""), h = o === "literal" ? !0 : o === "folded" || e === N.BLOCK_FOLDED ? !1 : e === N.BLOCK_LITERAL ? !0 : !pn(t, a, c.length);
894
+ const c = n.indent || (n.forceBlockIndent || We(t) ? " " : ""), h = o === "literal" ? !0 : o === "folded" || e === N.BLOCK_FOLDED ? !1 : e === N.BLOCK_LITERAL ? !0 : !mn(t, a, c.length);
895
895
  if (!t)
896
896
  return h ? `|
897
897
  ` : `>
@@ -907,7 +907,7 @@ function De({ comment: s, type: e, value: t }, n, i, r) {
907
907
  const y = m.indexOf(`
908
908
  `);
909
909
  y === -1 ? f = "-" : t === m || y !== m.length - 1 ? (f = "+", r && r()) : f = "", m && (t = t.slice(0, -m.length), m[m.length - 1] === `
910
- ` && (m = m.slice(0, -1)), m = m.replace(bt, `$&${c}`));
910
+ ` && (m = m.slice(0, -1)), m = m.replace(wt, `$&${c}`));
911
911
  let u = !1, g, b = -1;
912
912
  for (g = 0; g < t.length; ++g) {
913
913
  const T = t[g];
@@ -927,24 +927,24 @@ function De({ comment: s, type: e, value: t }, n, i, r) {
927
927
  ${c}${S}${t}${m}`;
928
928
  t = t.replace(/\n+/g, `
929
929
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
930
- const O = Ye(`${S}${t}${m}`, c, yt, Ge(n, !0));
930
+ const O = Ye(`${S}${t}${m}`, c, gt, Ge(n, !0));
931
931
  return `${k}
932
932
  ${c}${O}`;
933
933
  }
934
- function mn(s, e, t, n) {
934
+ function yn(s, e, t, n) {
935
935
  const { type: i, value: r } = s, { actualString: o, implicitKey: l, indent: a, indentStep: c, inFlow: h } = e;
936
936
  if (l && r.includes(`
937
937
  `) || h && /[[\]{},]/.test(r))
938
938
  return fe(r, e);
939
939
  if (!r || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))
940
940
  return l || h || !r.includes(`
941
- `) ? fe(r, e) : De(s, e, t, n);
941
+ `) ? fe(r, e) : qe(s, e, t, n);
942
942
  if (!l && !h && i !== N.PLAIN && r.includes(`
943
943
  `))
944
- return De(s, e, t, n);
944
+ return qe(s, e, t, n);
945
945
  if (We(r)) {
946
946
  if (a === "")
947
- return e.forceBlockIndent = !0, De(s, e, t, n);
947
+ return e.forceBlockIndent = !0, qe(s, e, t, n);
948
948
  if (l && a === c)
949
949
  return fe(r, e);
950
950
  }
@@ -958,7 +958,7 @@ ${a}`);
958
958
  if (y.some(p) || m != null && m.some(p))
959
959
  return fe(r, e);
960
960
  }
961
- return l ? f : Ye(f, a, cs, Ge(e, !1));
961
+ return l ? f : Ye(f, a, ds, Ge(e, !1));
962
962
  }
963
963
  function Le(s, e, t, n) {
964
964
  const { implicitKey: i, inFlow: r } = e, o = typeof s.value == "string" ? s : Object.assign({}, s, { value: String(s.value) });
@@ -968,13 +968,13 @@ function Le(s, e, t, n) {
968
968
  switch (h) {
969
969
  case N.BLOCK_FOLDED:
970
970
  case N.BLOCK_LITERAL:
971
- return i || r ? fe(o.value, e) : De(o, e, t, n);
971
+ return i || r ? fe(o.value, e) : qe(o, e, t, n);
972
972
  case N.QUOTE_DOUBLE:
973
973
  return Te(o.value, e);
974
974
  case N.QUOTE_SINGLE:
975
- return gt(o.value, e);
975
+ return bt(o.value, e);
976
976
  case N.PLAIN:
977
- return mn(o, e, t, n);
977
+ return yn(o, e, t, n);
978
978
  default:
979
979
  return null;
980
980
  }
@@ -987,10 +987,10 @@ function Le(s, e, t, n) {
987
987
  }
988
988
  return c;
989
989
  }
990
- function fs(s, e) {
990
+ function ps(s, e) {
991
991
  const t = Object.assign({
992
992
  blockQuote: !0,
993
- commentString: dn,
993
+ commentString: pn,
994
994
  defaultKeyType: null,
995
995
  defaultStringType: "PLAIN",
996
996
  directives: null,
@@ -1028,7 +1028,7 @@ function fs(s, e) {
1028
1028
  options: t
1029
1029
  };
1030
1030
  }
1031
- function yn(s, e) {
1031
+ function gn(s, e) {
1032
1032
  var i, r, o, l;
1033
1033
  if (e.tag) {
1034
1034
  const a = s.filter((c) => c.tag === e.tag);
@@ -1051,11 +1051,11 @@ function yn(s, e) {
1051
1051
  }
1052
1052
  return t;
1053
1053
  }
1054
- function gn(s, e, { anchors: t, doc: n }) {
1054
+ function bn(s, e, { anchors: t, doc: n }) {
1055
1055
  if (!n.directives)
1056
1056
  return "";
1057
1057
  const i = [], r = (A(s) || $(s)) && s.anchor;
1058
- r && is(r) && (t.add(r), i.push(`&${r}`));
1058
+ r && as(r) && (t.add(r), i.push(`&${r}`));
1059
1059
  const o = s.tag ? s.tag : e.default ? null : e.tag;
1060
1060
  return o && i.push(n.directives.tagString(o)), i.join(" ");
1061
1061
  }
@@ -1072,14 +1072,14 @@ function de(s, e, t, n) {
1072
1072
  }
1073
1073
  let i;
1074
1074
  const r = M(s) ? s : e.doc.createNode(s, { onTagObj: (h) => i = h });
1075
- i || (i = yn(e.doc.schema.tags, r));
1076
- const o = gn(r, i, e);
1075
+ i || (i = gn(e.doc.schema.tags, r));
1076
+ const o = bn(r, i, e);
1077
1077
  o.length > 0 && (e.indentAtStart = ((c = e.indentAtStart) != null ? c : 0) + o.length + 1);
1078
1078
  const l = typeof i.stringify == "function" ? i.stringify(r, e, t, n) : A(r) ? Le(r, e, t, n) : r.toString(e, t, n);
1079
1079
  return o ? A(r) || l[0] === "{" || l[0] === "[" ? `${o} ${l}` : `${o}
1080
1080
  ${e.indent}${l}` : l;
1081
1081
  }
1082
- function bn({ key: s, value: e }, t, n, i) {
1082
+ function wn({ key: s, value: e }, t, n, i) {
1083
1083
  var C, w;
1084
1084
  const { allNullValues: r, doc: o, indent: l, indentStep: a, options: { commentString: c, indentSeq: h, simpleKeys: f } } = t;
1085
1085
  let p = M(s) && s.comment || null;
@@ -1144,20 +1144,20 @@ ${t.indent}`);
1144
1144
  `) && (T = "");
1145
1145
  return g += T + O, t.inFlow ? k && n && n() : I && !k ? g += Z(g, t.indent, c(I)) : u && i && i(), g;
1146
1146
  }
1147
- function us(s, e) {
1147
+ function ms(s, e) {
1148
1148
  (s === "debug" || s === "warn") && (typeof process != "undefined" && process.emitWarning ? process.emitWarning(e) : console.warn(e));
1149
1149
  }
1150
- const Ut = "<<";
1151
- function hs(s, e, { key: t, value: n }) {
1152
- if (s != null && s.doc.schema.merge && wn(t))
1150
+ const Vt = "<<";
1151
+ function ys(s, e, { key: t, value: n }) {
1152
+ if (s != null && s.doc.schema.merge && Sn(t))
1153
1153
  if (n = ne(n) ? n.resolve(s.doc) : n, be(n))
1154
1154
  for (const i of n.items)
1155
- at(s, e, i);
1155
+ ct(s, e, i);
1156
1156
  else if (Array.isArray(n))
1157
1157
  for (const i of n)
1158
- at(s, e, i);
1158
+ ct(s, e, i);
1159
1159
  else
1160
- at(s, e, n);
1160
+ ct(s, e, n);
1161
1161
  else {
1162
1162
  const i = K(t, "", s);
1163
1163
  if (e instanceof Map)
@@ -1165,7 +1165,7 @@ function hs(s, e, { key: t, value: n }) {
1165
1165
  else if (e instanceof Set)
1166
1166
  e.add(i);
1167
1167
  else {
1168
- const r = Sn(t, i, s), o = K(n, r, s);
1168
+ const r = kn(t, i, s), o = K(n, r, s);
1169
1169
  r in e ? Object.defineProperty(e, r, {
1170
1170
  value: o,
1171
1171
  writable: !0,
@@ -1176,8 +1176,8 @@ function hs(s, e, { key: t, value: n }) {
1176
1176
  }
1177
1177
  return e;
1178
1178
  }
1179
- const wn = (s) => s === Ut || A(s) && s.value === Ut && (!s.type || s.type === N.PLAIN);
1180
- function at(s, e, t) {
1179
+ const Sn = (s) => s === Vt || A(s) && s.value === Vt && (!s.type || s.type === N.PLAIN);
1180
+ function ct(s, e, t) {
1181
1181
  const n = s && ne(t) ? t.resolve(s.doc) : t;
1182
1182
  if (!ge(n))
1183
1183
  throw new Error("Merge sources must be maps or map aliases");
@@ -1191,13 +1191,13 @@ function at(s, e, t) {
1191
1191
  });
1192
1192
  return e;
1193
1193
  }
1194
- function Sn(s, e, t) {
1194
+ function kn(s, e, t) {
1195
1195
  if (e === null)
1196
1196
  return "";
1197
1197
  if (typeof e != "object")
1198
1198
  return String(e);
1199
1199
  if (M(s) && (t != null && t.doc)) {
1200
- const n = fs(t.doc, {});
1200
+ const n = ps(t.doc, {});
1201
1201
  n.anchors = /* @__PURE__ */ new Set();
1202
1202
  for (const r of t.anchors.keys())
1203
1203
  n.anchors.add(r.anchor);
@@ -1205,37 +1205,37 @@ function Sn(s, e, t) {
1205
1205
  const i = s.toString(n);
1206
1206
  if (!t.mapKeyWarned) {
1207
1207
  let r = JSON.stringify(i);
1208
- r.length > 40 && (r = r.substring(0, 36) + '..."'), us(t.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`), t.mapKeyWarned = !0;
1208
+ r.length > 40 && (r = r.substring(0, 36) + '..."'), ms(t.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`), t.mapKeyWarned = !0;
1209
1209
  }
1210
1210
  return i;
1211
1211
  }
1212
1212
  return JSON.stringify(e);
1213
1213
  }
1214
- function Ot(s, e, t) {
1214
+ function Tt(s, e, t) {
1215
1215
  const n = Ie(s, void 0, t), i = Ie(e, void 0, t);
1216
- return new j(n, i);
1216
+ return new P(n, i);
1217
1217
  }
1218
- class j {
1218
+ class P {
1219
1219
  constructor(e, t = null) {
1220
- Object.defineProperty(this, F, { value: Zt }), this.key = e, this.value = t;
1220
+ Object.defineProperty(this, F, { value: ns }), this.key = e, this.value = t;
1221
1221
  }
1222
1222
  clone(e) {
1223
1223
  let { key: t, value: n } = this;
1224
- return M(t) && (t = t.clone(e)), M(n) && (n = n.clone(e)), new j(t, n);
1224
+ return M(t) && (t = t.clone(e)), M(n) && (n = n.clone(e)), new P(t, n);
1225
1225
  }
1226
1226
  toJSON(e, t) {
1227
1227
  const n = t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {};
1228
- return hs(t, n, this);
1228
+ return ys(t, n, this);
1229
1229
  }
1230
1230
  toString(e, t, n) {
1231
- return e != null && e.doc ? bn(this, e, t, n) : JSON.stringify(this);
1231
+ return e != null && e.doc ? wn(this, e, t, n) : JSON.stringify(this);
1232
1232
  }
1233
1233
  }
1234
- function ds(s, e, t) {
1234
+ function gs(s, e, t) {
1235
1235
  var r;
1236
- return (((r = e.inFlow) != null ? r : s.flow) ? Nn : kn)(s, e, t);
1236
+ return (((r = e.inFlow) != null ? r : s.flow) ? On : Nn)(s, e, t);
1237
1237
  }
1238
- function kn({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: l }) {
1238
+ function Nn({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: l }) {
1239
1239
  const { indent: a, options: { commentString: c } } = t, h = Object.assign({}, t, { indent: r, type: null });
1240
1240
  let f = !1;
1241
1241
  const p = [];
@@ -1267,7 +1267,7 @@ ${a}${u}` : `
1267
1267
  return s ? (m += `
1268
1268
  ` + Q(c(s), a), l && l()) : f && o && o(), m;
1269
1269
  }
1270
- function Nn({ items: s }, e, { flowChars: t, itemIndent: n }) {
1270
+ function On({ items: s }, e, { flowChars: t, itemIndent: n }) {
1271
1271
  const { indent: i, indentStep: r, flowCollectionPadding: o, options: { commentString: l } } = e;
1272
1272
  n += r;
1273
1273
  const a = Object.assign({}, e, {
@@ -1323,7 +1323,7 @@ function ee(s, e) {
1323
1323
  if (E(n) && (n.key === e || n.key === t || A(n.key) && n.key.value === t))
1324
1324
  return n;
1325
1325
  }
1326
- class D extends as {
1326
+ class q extends hs {
1327
1327
  static get tagName() {
1328
1328
  return "tag:yaml.org,2002:map";
1329
1329
  }
@@ -1340,7 +1340,7 @@ class D extends as {
1340
1340
  c = r.call(t, a, c);
1341
1341
  else if (Array.isArray(r) && !r.includes(a))
1342
1342
  return;
1343
- (c !== void 0 || i) && o.items.push(Ot(a, c, n));
1343
+ (c !== void 0 || i) && o.items.push(Tt(a, c, n));
1344
1344
  };
1345
1345
  if (t instanceof Map)
1346
1346
  for (const [a, c] of t)
@@ -1359,12 +1359,12 @@ class D extends as {
1359
1359
  add(e, t) {
1360
1360
  var o;
1361
1361
  let n;
1362
- E(e) ? n = e : !e || typeof e != "object" || !("key" in e) ? n = new j(e, e == null ? void 0 : e.value) : n = new j(e.key, e.value);
1362
+ E(e) ? n = e : !e || typeof e != "object" || !("key" in e) ? n = new P(e, e == null ? void 0 : e.value) : n = new P(e.key, e.value);
1363
1363
  const i = ee(this.items, n.key), r = (o = this.schema) == null ? void 0 : o.sortMapEntries;
1364
1364
  if (i) {
1365
1365
  if (!t)
1366
1366
  throw new Error(`Key ${n.key} already set`);
1367
- A(i.value) && ls(n.value) ? i.value.value = n.value : i.value = n.value;
1367
+ A(i.value) && us(n.value) ? i.value.value = n.value : i.value = n.value;
1368
1368
  } else if (r) {
1369
1369
  const l = this.items.findIndex((a) => r(n, a) < 0);
1370
1370
  l === -1 ? this.items.push(n) : this.items.splice(l, 0, n);
@@ -1384,7 +1384,7 @@ class D extends as {
1384
1384
  return !!ee(this.items, e);
1385
1385
  }
1386
1386
  set(e, t) {
1387
- this.add(new j(e, t), !0);
1387
+ this.add(new P(e, t), !0);
1388
1388
  }
1389
1389
  /**
1390
1390
  * @param ctx - Conversion context, originally set in Document#toJS()
@@ -1395,7 +1395,7 @@ class D extends as {
1395
1395
  const i = n ? new n() : t != null && t.mapAsMap ? /* @__PURE__ */ new Map() : {};
1396
1396
  t != null && t.onCreate && t.onCreate(i);
1397
1397
  for (const r of this.items)
1398
- hs(t, i, r);
1398
+ ys(t, i, r);
1399
1399
  return i;
1400
1400
  }
1401
1401
  toString(e, t, n) {
@@ -1404,7 +1404,7 @@ class D extends as {
1404
1404
  for (const i of this.items)
1405
1405
  if (!E(i))
1406
1406
  throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);
1407
- return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), ds(this, e, {
1407
+ return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), gs(this, e, {
1408
1408
  blockItemPrefix: "",
1409
1409
  flowChars: { start: "{", end: "}" },
1410
1410
  itemIndent: e.indent || "",
@@ -1416,14 +1416,14 @@ class D extends as {
1416
1416
  const we = {
1417
1417
  collection: "map",
1418
1418
  default: !0,
1419
- nodeClass: D,
1419
+ nodeClass: q,
1420
1420
  tag: "tag:yaml.org,2002:map",
1421
1421
  resolve(s, e) {
1422
1422
  return ge(s) || e("Expected a mapping for this tag"), s;
1423
1423
  },
1424
- createNode: (s, e, t) => D.from(s, e, t)
1424
+ createNode: (s, e, t) => q.from(s, e, t)
1425
1425
  };
1426
- class z extends as {
1426
+ class z extends hs {
1427
1427
  static get tagName() {
1428
1428
  return "tag:yaml.org,2002:seq";
1429
1429
  }
@@ -1474,7 +1474,7 @@ class z extends as {
1474
1474
  if (typeof n != "number")
1475
1475
  throw new Error(`Expected a valid index, not ${e}.`);
1476
1476
  const i = this.items[n];
1477
- A(i) && ls(t) ? i.value = t : this.items[n] = t;
1477
+ A(i) && us(t) ? i.value = t : this.items[n] = t;
1478
1478
  }
1479
1479
  toJSON(e, t) {
1480
1480
  const n = [];
@@ -1485,7 +1485,7 @@ class z extends as {
1485
1485
  return n;
1486
1486
  }
1487
1487
  toString(e, t, n) {
1488
- return e ? ds(this, e, {
1488
+ return e ? gs(this, e, {
1489
1489
  blockItemPrefix: "- ",
1490
1490
  flowChars: { start: "[", end: "]" },
1491
1491
  itemIndent: (e.indent || "") + " ",
@@ -1537,14 +1537,14 @@ const Se = {
1537
1537
  test: /^(?:~|[Nn]ull|NULL)?$/,
1538
1538
  resolve: () => new N(null),
1539
1539
  stringify: ({ source: s }, e) => typeof s == "string" && ze.test.test(s) ? s : e.options.nullStr
1540
- }, Tt = {
1540
+ }, It = {
1541
1541
  identify: (s) => typeof s == "boolean",
1542
1542
  default: !0,
1543
1543
  tag: "tag:yaml.org,2002:bool",
1544
1544
  test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
1545
1545
  resolve: (s) => new N(s[0] === "t" || s[0] === "T"),
1546
1546
  stringify({ source: s, value: e }, t) {
1547
- if (s && Tt.test.test(s)) {
1547
+ if (s && It.test.test(s)) {
1548
1548
  const n = s[0] === "t" || s[0] === "T";
1549
1549
  if (e === n)
1550
1550
  return s;
@@ -1568,14 +1568,14 @@ function V({ format: s, minFractionDigits: e, tag: t, value: n }) {
1568
1568
  }
1569
1569
  return r;
1570
1570
  }
1571
- const ps = {
1571
+ const bs = {
1572
1572
  identify: (s) => typeof s == "number",
1573
1573
  default: !0,
1574
1574
  tag: "tag:yaml.org,2002:float",
1575
1575
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
1576
1576
  resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
1577
1577
  stringify: V
1578
- }, ms = {
1578
+ }, ws = {
1579
1579
  identify: (s) => typeof s == "number",
1580
1580
  default: !0,
1581
1581
  tag: "tag:yaml.org,2002:float",
@@ -1586,7 +1586,7 @@ const ps = {
1586
1586
  const e = Number(s.value);
1587
1587
  return isFinite(e) ? e.toExponential() : V(s);
1588
1588
  }
1589
- }, ys = {
1589
+ }, Ss = {
1590
1590
  identify: (s) => typeof s == "number",
1591
1591
  default: !0,
1592
1592
  tag: "tag:yaml.org,2002:float",
@@ -1596,51 +1596,51 @@ const ps = {
1596
1596
  return t !== -1 && s[s.length - 1] === "0" && (e.minFractionDigits = s.length - t - 1), e;
1597
1597
  },
1598
1598
  stringify: V
1599
- }, Xe = (s) => typeof s == "bigint" || Number.isInteger(s), It = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
1600
- function gs(s, e, t) {
1599
+ }, Xe = (s) => typeof s == "bigint" || Number.isInteger(s), At = (s, e, t, { intAsBigInt: n }) => n ? BigInt(s) : parseInt(s.substring(e), t);
1600
+ function ks(s, e, t) {
1601
1601
  const { value: n } = s;
1602
1602
  return Xe(n) && n >= 0 ? t + n.toString(e) : V(s);
1603
1603
  }
1604
- const bs = {
1604
+ const Ns = {
1605
1605
  identify: (s) => Xe(s) && s >= 0,
1606
1606
  default: !0,
1607
1607
  tag: "tag:yaml.org,2002:int",
1608
1608
  format: "OCT",
1609
1609
  test: /^0o[0-7]+$/,
1610
- resolve: (s, e, t) => It(s, 2, 8, t),
1611
- stringify: (s) => gs(s, 8, "0o")
1612
- }, ws = {
1610
+ resolve: (s, e, t) => At(s, 2, 8, t),
1611
+ stringify: (s) => ks(s, 8, "0o")
1612
+ }, Os = {
1613
1613
  identify: Xe,
1614
1614
  default: !0,
1615
1615
  tag: "tag:yaml.org,2002:int",
1616
1616
  test: /^[-+]?[0-9]+$/,
1617
- resolve: (s, e, t) => It(s, 0, 10, t),
1617
+ resolve: (s, e, t) => At(s, 0, 10, t),
1618
1618
  stringify: V
1619
- }, Ss = {
1619
+ }, Ts = {
1620
1620
  identify: (s) => Xe(s) && s >= 0,
1621
1621
  default: !0,
1622
1622
  tag: "tag:yaml.org,2002:int",
1623
1623
  format: "HEX",
1624
1624
  test: /^0x[0-9a-fA-F]+$/,
1625
- resolve: (s, e, t) => It(s, 2, 16, t),
1626
- stringify: (s) => gs(s, 16, "0x")
1627
- }, On = [
1625
+ resolve: (s, e, t) => At(s, 2, 16, t),
1626
+ stringify: (s) => ks(s, 16, "0x")
1627
+ }, Tn = [
1628
1628
  we,
1629
1629
  Se,
1630
1630
  He,
1631
1631
  ze,
1632
- Tt,
1632
+ It,
1633
+ Ns,
1634
+ Os,
1635
+ Ts,
1633
1636
  bs,
1634
1637
  ws,
1635
- Ss,
1636
- ps,
1637
- ms,
1638
- ys
1638
+ Ss
1639
1639
  ];
1640
- function Vt(s) {
1640
+ function Jt(s) {
1641
1641
  return typeof s == "bigint" || Number.isInteger(s);
1642
1642
  }
1643
- const ve = ({ value: s }) => JSON.stringify(s), Tn = [
1643
+ const ve = ({ value: s }) => JSON.stringify(s), In = [
1644
1644
  {
1645
1645
  identify: (s) => typeof s == "string",
1646
1646
  default: !0,
@@ -1666,12 +1666,12 @@ const ve = ({ value: s }) => JSON.stringify(s), Tn = [
1666
1666
  stringify: ve
1667
1667
  },
1668
1668
  {
1669
- identify: Vt,
1669
+ identify: Jt,
1670
1670
  default: !0,
1671
1671
  tag: "tag:yaml.org,2002:int",
1672
1672
  test: /^-?(?:0|[1-9][0-9]*)$/,
1673
1673
  resolve: (s, e, { intAsBigInt: t }) => t ? BigInt(s) : parseInt(s, 10),
1674
- stringify: ({ value: s }) => Vt(s) ? s.toString() : JSON.stringify(s)
1674
+ stringify: ({ value: s }) => Jt(s) ? s.toString() : JSON.stringify(s)
1675
1675
  },
1676
1676
  {
1677
1677
  identify: (s) => typeof s == "number",
@@ -1681,14 +1681,14 @@ const ve = ({ value: s }) => JSON.stringify(s), Tn = [
1681
1681
  resolve: (s) => parseFloat(s),
1682
1682
  stringify: ve
1683
1683
  }
1684
- ], In = {
1684
+ ], An = {
1685
1685
  default: !0,
1686
1686
  tag: "",
1687
1687
  test: /^/,
1688
1688
  resolve(s, e) {
1689
1689
  return e(`Unresolved plain scalar ${JSON.stringify(s)}`), s;
1690
1690
  }
1691
- }, An = [we, Se].concat(Tn, In), At = {
1691
+ }, En = [we, Se].concat(In, An), Et = {
1692
1692
  identify: (s) => s instanceof Uint8Array,
1693
1693
  // Buffer inherits from Uint8Array
1694
1694
  default: !1,
@@ -1734,7 +1734,7 @@ const ve = ({ value: s }) => JSON.stringify(s), Tn = [
1734
1734
  return Le({ comment: s, type: e, value: l }, n, i, r);
1735
1735
  }
1736
1736
  };
1737
- function ks(s, e) {
1737
+ function Is(s, e) {
1738
1738
  var t;
1739
1739
  if (be(s))
1740
1740
  for (let n = 0; n < s.items.length; ++n) {
@@ -1742,7 +1742,7 @@ function ks(s, e) {
1742
1742
  if (!E(i)) {
1743
1743
  if (ge(i)) {
1744
1744
  i.items.length > 1 && e("Each pair must have its own sequence indicator");
1745
- const r = i.items[0] || new j(new N(null));
1745
+ const r = i.items[0] || new P(new N(null));
1746
1746
  if (i.commentBefore && (r.key.commentBefore = r.key.commentBefore ? `${i.commentBefore}
1747
1747
  ${r.key.commentBefore}` : i.commentBefore), i.comment) {
1748
1748
  const o = (t = r.value) != null ? t : r.key;
@@ -1751,14 +1751,14 @@ ${o.comment}` : i.comment;
1751
1751
  }
1752
1752
  i = r;
1753
1753
  }
1754
- s.items[n] = E(i) ? i : new j(i);
1754
+ s.items[n] = E(i) ? i : new P(i);
1755
1755
  }
1756
1756
  }
1757
1757
  else
1758
1758
  e("Expected a sequence for this tag");
1759
1759
  return s;
1760
1760
  }
1761
- function Ns(s, e, t) {
1761
+ function As(s, e, t) {
1762
1762
  const { replacer: n } = t, i = new z(s);
1763
1763
  i.tag = "tag:yaml.org,2002:pairs";
1764
1764
  let r = 0;
@@ -1779,20 +1779,20 @@ function Ns(s, e, t) {
1779
1779
  throw new TypeError(`Expected tuple with one key, not ${c.length} keys`);
1780
1780
  } else
1781
1781
  l = o;
1782
- i.items.push(Ot(l, a, t));
1782
+ i.items.push(Tt(l, a, t));
1783
1783
  }
1784
1784
  return i;
1785
1785
  }
1786
- const Et = {
1786
+ const Lt = {
1787
1787
  collection: "seq",
1788
1788
  default: !1,
1789
1789
  tag: "tag:yaml.org,2002:pairs",
1790
- resolve: ks,
1791
- createNode: Ns
1790
+ resolve: Is,
1791
+ createNode: As
1792
1792
  };
1793
1793
  class ue extends z {
1794
1794
  constructor() {
1795
- super(), this.add = D.prototype.add.bind(this), this.delete = D.prototype.delete.bind(this), this.get = D.prototype.get.bind(this), this.has = D.prototype.has.bind(this), this.set = D.prototype.set.bind(this), this.tag = ue.tag;
1795
+ super(), this.add = q.prototype.add.bind(this), this.delete = q.prototype.delete.bind(this), this.get = q.prototype.get.bind(this), this.has = q.prototype.has.bind(this), this.set = q.prototype.set.bind(this), this.tag = ue.tag;
1796
1796
  }
1797
1797
  /**
1798
1798
  * If `ctx` is given, the return type is actually `Map<unknown, unknown>`,
@@ -1812,50 +1812,50 @@ class ue extends z {
1812
1812
  return n;
1813
1813
  }
1814
1814
  static from(e, t, n) {
1815
- const i = Ns(e, t, n), r = new this();
1815
+ const i = As(e, t, n), r = new this();
1816
1816
  return r.items = i.items, r;
1817
1817
  }
1818
1818
  }
1819
1819
  ue.tag = "tag:yaml.org,2002:omap";
1820
- const Lt = {
1820
+ const $t = {
1821
1821
  collection: "seq",
1822
1822
  identify: (s) => s instanceof Map,
1823
1823
  nodeClass: ue,
1824
1824
  default: !1,
1825
1825
  tag: "tag:yaml.org,2002:omap",
1826
1826
  resolve(s, e) {
1827
- const t = ks(s, e), n = [];
1827
+ const t = Is(s, e), n = [];
1828
1828
  for (const { key: i } of t.items)
1829
1829
  A(i) && (n.includes(i.value) ? e(`Ordered maps must not include duplicate keys: ${i.value}`) : n.push(i.value));
1830
1830
  return Object.assign(new ue(), t);
1831
1831
  },
1832
1832
  createNode: (s, e, t) => ue.from(s, e, t)
1833
1833
  };
1834
- function Os({ value: s, source: e }, t) {
1835
- return e && (s ? Ts : Is).test.test(e) ? e : s ? t.options.trueStr : t.options.falseStr;
1834
+ function Es({ value: s, source: e }, t) {
1835
+ return e && (s ? Ls : $s).test.test(e) ? e : s ? t.options.trueStr : t.options.falseStr;
1836
1836
  }
1837
- const Ts = {
1837
+ const Ls = {
1838
1838
  identify: (s) => s === !0,
1839
1839
  default: !0,
1840
1840
  tag: "tag:yaml.org,2002:bool",
1841
1841
  test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
1842
1842
  resolve: () => new N(!0),
1843
- stringify: Os
1844
- }, Is = {
1843
+ stringify: Es
1844
+ }, $s = {
1845
1845
  identify: (s) => s === !1,
1846
1846
  default: !0,
1847
1847
  tag: "tag:yaml.org,2002:bool",
1848
1848
  test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
1849
1849
  resolve: () => new N(!1),
1850
- stringify: Os
1851
- }, En = {
1850
+ stringify: Es
1851
+ }, Ln = {
1852
1852
  identify: (s) => typeof s == "number",
1853
1853
  default: !0,
1854
1854
  tag: "tag:yaml.org,2002:float",
1855
1855
  test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
1856
1856
  resolve: (s) => s.slice(-3).toLowerCase() === "nan" ? NaN : s[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
1857
1857
  stringify: V
1858
- }, Ln = {
1858
+ }, $n = {
1859
1859
  identify: (s) => typeof s == "number",
1860
1860
  default: !0,
1861
1861
  tag: "tag:yaml.org,2002:float",
@@ -1866,7 +1866,7 @@ const Ts = {
1866
1866
  const e = Number(s.value);
1867
1867
  return isFinite(e) ? e.toExponential() : V(s);
1868
1868
  }
1869
- }, $n = {
1869
+ }, Cn = {
1870
1870
  identify: (s) => typeof s == "number",
1871
1871
  default: !0,
1872
1872
  tag: "tag:yaml.org,2002:float",
@@ -1901,7 +1901,7 @@ function xe(s, e, t, { intAsBigInt: n }) {
1901
1901
  const r = parseInt(s, t);
1902
1902
  return i === "-" ? -1 * r : r;
1903
1903
  }
1904
- function $t(s, e, t) {
1904
+ function Ct(s, e, t) {
1905
1905
  const { value: n } = s;
1906
1906
  if ($e(n)) {
1907
1907
  const i = n.toString(e);
@@ -1909,45 +1909,45 @@ function $t(s, e, t) {
1909
1909
  }
1910
1910
  return V(s);
1911
1911
  }
1912
- const Cn = {
1912
+ const _n = {
1913
1913
  identify: $e,
1914
1914
  default: !0,
1915
1915
  tag: "tag:yaml.org,2002:int",
1916
1916
  format: "BIN",
1917
1917
  test: /^[-+]?0b[0-1_]+$/,
1918
1918
  resolve: (s, e, t) => xe(s, 2, 2, t),
1919
- stringify: (s) => $t(s, 2, "0b")
1920
- }, _n = {
1919
+ stringify: (s) => Ct(s, 2, "0b")
1920
+ }, Mn = {
1921
1921
  identify: $e,
1922
1922
  default: !0,
1923
1923
  tag: "tag:yaml.org,2002:int",
1924
1924
  format: "OCT",
1925
1925
  test: /^[-+]?0[0-7_]+$/,
1926
1926
  resolve: (s, e, t) => xe(s, 1, 8, t),
1927
- stringify: (s) => $t(s, 8, "0")
1928
- }, Mn = {
1927
+ stringify: (s) => Ct(s, 8, "0")
1928
+ }, vn = {
1929
1929
  identify: $e,
1930
1930
  default: !0,
1931
1931
  tag: "tag:yaml.org,2002:int",
1932
1932
  test: /^[-+]?[0-9][0-9_]*$/,
1933
1933
  resolve: (s, e, t) => xe(s, 0, 10, t),
1934
1934
  stringify: V
1935
- }, vn = {
1935
+ }, Bn = {
1936
1936
  identify: $e,
1937
1937
  default: !0,
1938
1938
  tag: "tag:yaml.org,2002:int",
1939
1939
  format: "HEX",
1940
1940
  test: /^[-+]?0x[0-9a-fA-F_]+$/,
1941
1941
  resolve: (s, e, t) => xe(s, 2, 16, t),
1942
- stringify: (s) => $t(s, 16, "0x")
1942
+ stringify: (s) => Ct(s, 16, "0x")
1943
1943
  };
1944
- class he extends D {
1944
+ class he extends q {
1945
1945
  constructor(e) {
1946
1946
  super(e), this.tag = he.tag;
1947
1947
  }
1948
1948
  add(e) {
1949
1949
  let t;
1950
- E(e) ? t = e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? t = new j(e.key, null) : t = new j(e, null), ee(this.items, t.key) || this.items.push(t);
1950
+ E(e) ? t = e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? t = new P(e.key, null) : t = new P(e, null), ee(this.items, t.key) || this.items.push(t);
1951
1951
  }
1952
1952
  /**
1953
1953
  * If `keepPair` is `true`, returns the Pair matching `key`.
@@ -1961,7 +1961,7 @@ class he extends D {
1961
1961
  if (typeof t != "boolean")
1962
1962
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);
1963
1963
  const n = ee(this.items, e);
1964
- n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new j(e));
1964
+ n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new P(e));
1965
1965
  }
1966
1966
  toJSON(e, t) {
1967
1967
  return super.toJSON(e, t, Set);
@@ -1977,12 +1977,12 @@ class he extends D {
1977
1977
  const { replacer: i } = n, r = new this(e);
1978
1978
  if (t && Symbol.iterator in Object(t))
1979
1979
  for (let o of t)
1980
- typeof i == "function" && (o = i.call(t, o, o)), r.items.push(Ot(o, null, n));
1980
+ typeof i == "function" && (o = i.call(t, o, o)), r.items.push(Tt(o, null, n));
1981
1981
  return r;
1982
1982
  }
1983
1983
  }
1984
1984
  he.tag = "tag:yaml.org,2002:set";
1985
- const Ct = {
1985
+ const _t = {
1986
1986
  collection: "map",
1987
1987
  identify: (s) => s instanceof Set,
1988
1988
  nodeClass: he,
@@ -1999,11 +1999,11 @@ const Ct = {
1999
1999
  return s;
2000
2000
  }
2001
2001
  };
2002
- function _t(s, e) {
2002
+ function Mt(s, e) {
2003
2003
  const t = s[0], n = t === "-" || t === "+" ? s.substring(1) : s, i = (o) => e ? BigInt(o) : Number(o), r = n.replace(/_/g, "").split(":").reduce((o, l) => o * i(60) + i(l), i(0));
2004
2004
  return t === "-" ? i(-1) * r : r;
2005
2005
  }
2006
- function As(s) {
2006
+ function Cs(s) {
2007
2007
  let { value: e } = s, t = (o) => o;
2008
2008
  if (typeof e == "bigint")
2009
2009
  t = (o) => BigInt(o);
@@ -2014,22 +2014,22 @@ function As(s) {
2014
2014
  const i = t(60), r = [e % i];
2015
2015
  return e < 60 ? r.unshift(0) : (e = (e - r[0]) / i, r.unshift(e % i), e >= 60 && (e = (e - r[0]) / i, r.unshift(e))), n + r.map((o) => String(o).padStart(2, "0")).join(":").replace(/000000\d*$/, "");
2016
2016
  }
2017
- const Es = {
2017
+ const _s = {
2018
2018
  identify: (s) => typeof s == "bigint" || Number.isInteger(s),
2019
2019
  default: !0,
2020
2020
  tag: "tag:yaml.org,2002:int",
2021
2021
  format: "TIME",
2022
2022
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,
2023
- resolve: (s, e, { intAsBigInt: t }) => _t(s, t),
2024
- stringify: As
2025
- }, Ls = {
2023
+ resolve: (s, e, { intAsBigInt: t }) => Mt(s, t),
2024
+ stringify: Cs
2025
+ }, Ms = {
2026
2026
  identify: (s) => typeof s == "number",
2027
2027
  default: !0,
2028
2028
  tag: "tag:yaml.org,2002:float",
2029
2029
  format: "TIME",
2030
2030
  test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
2031
- resolve: (s) => _t(s, !1),
2032
- stringify: As
2031
+ resolve: (s) => Mt(s, !1),
2032
+ stringify: Cs
2033
2033
  }, Ze = {
2034
2034
  identify: (s) => s instanceof Date,
2035
2035
  default: !0,
@@ -2046,71 +2046,71 @@ const Es = {
2046
2046
  let c = Date.UTC(t, n - 1, i, r || 0, o || 0, l || 0, a);
2047
2047
  const h = e[8];
2048
2048
  if (h && h !== "Z") {
2049
- let f = _t(h, !1);
2049
+ let f = Mt(h, !1);
2050
2050
  Math.abs(f) < 30 && (f *= 60), c -= 6e4 * f;
2051
2051
  }
2052
2052
  return new Date(c);
2053
2053
  },
2054
2054
  stringify: ({ value: s }) => s.toISOString().replace(/((T00:00)?:00)?\.000Z$/, "")
2055
- }, Jt = [
2055
+ }, Qt = [
2056
2056
  we,
2057
2057
  Se,
2058
2058
  He,
2059
2059
  ze,
2060
- Ts,
2061
- Is,
2062
- Cn,
2060
+ Ls,
2061
+ $s,
2063
2062
  _n,
2064
2063
  Mn,
2065
2064
  vn,
2066
- En,
2065
+ Bn,
2067
2066
  Ln,
2068
2067
  $n,
2069
- At,
2070
- Lt,
2068
+ Cn,
2071
2069
  Et,
2072
- Ct,
2073
- Es,
2074
- Ls,
2070
+ $t,
2071
+ Lt,
2072
+ _t,
2073
+ _s,
2074
+ Ms,
2075
2075
  Ze
2076
- ], Qt = /* @__PURE__ */ new Map([
2077
- ["core", On],
2076
+ ], Yt = /* @__PURE__ */ new Map([
2077
+ ["core", Tn],
2078
2078
  ["failsafe", [we, Se, He]],
2079
- ["json", An],
2080
- ["yaml11", Jt],
2081
- ["yaml-1.1", Jt]
2082
- ]), Yt = {
2083
- binary: At,
2084
- bool: Tt,
2085
- float: ys,
2086
- floatExp: ms,
2087
- floatNaN: ps,
2088
- floatTime: Ls,
2089
- int: ws,
2090
- intHex: Ss,
2091
- intOct: bs,
2092
- intTime: Es,
2079
+ ["json", En],
2080
+ ["yaml11", Qt],
2081
+ ["yaml-1.1", Qt]
2082
+ ]), Gt = {
2083
+ binary: Et,
2084
+ bool: It,
2085
+ float: Ss,
2086
+ floatExp: ws,
2087
+ floatNaN: bs,
2088
+ floatTime: Ms,
2089
+ int: Os,
2090
+ intHex: Ts,
2091
+ intOct: Ns,
2092
+ intTime: _s,
2093
2093
  map: we,
2094
2094
  null: ze,
2095
- omap: Lt,
2096
- pairs: Et,
2095
+ omap: $t,
2096
+ pairs: Lt,
2097
2097
  seq: Se,
2098
- set: Ct,
2098
+ set: _t,
2099
2099
  timestamp: Ze
2100
- }, Bn = {
2101
- "tag:yaml.org,2002:binary": At,
2102
- "tag:yaml.org,2002:omap": Lt,
2103
- "tag:yaml.org,2002:pairs": Et,
2104
- "tag:yaml.org,2002:set": Ct,
2100
+ }, Pn = {
2101
+ "tag:yaml.org,2002:binary": Et,
2102
+ "tag:yaml.org,2002:omap": $t,
2103
+ "tag:yaml.org,2002:pairs": Lt,
2104
+ "tag:yaml.org,2002:set": _t,
2105
2105
  "tag:yaml.org,2002:timestamp": Ze
2106
2106
  };
2107
- function ct(s, e) {
2108
- let t = Qt.get(e);
2107
+ function ft(s, e) {
2108
+ let t = Yt.get(e);
2109
2109
  if (!t)
2110
2110
  if (Array.isArray(s))
2111
2111
  t = [];
2112
2112
  else {
2113
- const n = Array.from(Qt.keys()).filter((i) => i !== "yaml11").map((i) => JSON.stringify(i)).join(", ");
2113
+ const n = Array.from(Yt.keys()).filter((i) => i !== "yaml11").map((i) => JSON.stringify(i)).join(", ");
2114
2114
  throw new Error(`Unknown schema "${e}"; use one of ${n} or define customTags array`);
2115
2115
  }
2116
2116
  if (Array.isArray(s))
@@ -2121,24 +2121,24 @@ function ct(s, e) {
2121
2121
  return t.map((n) => {
2122
2122
  if (typeof n != "string")
2123
2123
  return n;
2124
- const i = Yt[n];
2124
+ const i = Gt[n];
2125
2125
  if (i)
2126
2126
  return i;
2127
- const r = Object.keys(Yt).map((o) => JSON.stringify(o)).join(", ");
2127
+ const r = Object.keys(Gt).map((o) => JSON.stringify(o)).join(", ");
2128
2128
  throw new Error(`Unknown custom tag "${n}"; use one of ${r}`);
2129
2129
  });
2130
2130
  }
2131
2131
  const jn = (s, e) => s.key < e.key ? -1 : s.key > e.key ? 1 : 0;
2132
2132
  class et {
2133
2133
  constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: i, schema: r, sortMapEntries: o, toStringDefaults: l }) {
2134
- this.compat = Array.isArray(e) ? ct(e, "compat") : e ? ct(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ? Bn : {}, this.tags = ct(t, this.name), this.toStringOptions = l != null ? l : null, Object.defineProperty(this, W, { value: we }), Object.defineProperty(this, Y, { value: He }), Object.defineProperty(this, me, { value: Se }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? jn : null;
2134
+ this.compat = Array.isArray(e) ? ft(e, "compat") : e ? ft(null, e) : null, this.merge = !!n, this.name = typeof r == "string" && r || "core", this.knownTags = i ? Pn : {}, this.tags = ft(t, this.name), this.toStringOptions = l != null ? l : null, Object.defineProperty(this, W, { value: we }), Object.defineProperty(this, Y, { value: He }), Object.defineProperty(this, me, { value: Se }), this.sortMapEntries = typeof o == "function" ? o : o === !0 ? jn : null;
2135
2135
  }
2136
2136
  clone() {
2137
2137
  const e = Object.create(et.prototype, Object.getOwnPropertyDescriptors(this));
2138
2138
  return e.tags = this.tags.slice(), e;
2139
2139
  }
2140
2140
  }
2141
- function Pn(s, e) {
2141
+ function Dn(s, e) {
2142
2142
  var a;
2143
2143
  const t = [];
2144
2144
  let n = e.directives === !0;
@@ -2147,7 +2147,7 @@ function Pn(s, e) {
2147
2147
  c ? (t.push(c), n = !0) : s.directives.docStart && (n = !0);
2148
2148
  }
2149
2149
  n && t.push("---");
2150
- const i = fs(s, e), { commentString: r } = i.options;
2150
+ const i = ps(s, e), { commentString: r } = i.options;
2151
2151
  if (s.commentBefore) {
2152
2152
  t.length !== 1 && t.unshift("");
2153
2153
  const c = r(s.commentBefore);
@@ -2184,7 +2184,7 @@ function Pn(s, e) {
2184
2184
  }
2185
2185
  class ke {
2186
2186
  constructor(e, t, n) {
2187
- this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, F, { value: mt });
2187
+ this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, F, { value: yt });
2188
2188
  let i = null;
2189
2189
  typeof t == "function" || Array.isArray(t) ? i = t : n === void 0 && t && (n = t, t = void 0);
2190
2190
  const r = Object.assign({
@@ -2198,7 +2198,7 @@ class ke {
2198
2198
  }, n);
2199
2199
  this.options = r;
2200
2200
  let { version: o } = r;
2201
- n != null && n._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (o = this.directives.yaml.version)) : this.directives = new P({ version: o }), this.setSchema(o, n), this.contents = e === void 0 ? null : this.createNode(e, i, n);
2201
+ n != null && n._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (o = this.directives.yaml.version)) : this.directives = new j({ version: o }), this.setSchema(o, n), this.contents = e === void 0 ? null : this.createNode(e, i, n);
2202
2202
  }
2203
2203
  /**
2204
2204
  * Create a deep copy of this Document and its contents.
@@ -2207,7 +2207,7 @@ class ke {
2207
2207
  */
2208
2208
  clone() {
2209
2209
  const e = Object.create(ke.prototype, {
2210
- [F]: { value: mt }
2210
+ [F]: { value: yt }
2211
2211
  });
2212
2212
  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;
2213
2213
  }
@@ -2230,9 +2230,9 @@ class ke {
2230
2230
  */
2231
2231
  createAlias(e, t) {
2232
2232
  if (!e.anchor) {
2233
- const n = rs(this);
2233
+ const n = cs(this);
2234
2234
  e.anchor = // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2235
- !t || n.has(t) ? os(t || "a", n) : t;
2235
+ !t || n.has(t) ? fs(t || "a", n) : t;
2236
2236
  }
2237
2237
  return new Qe(e.anchor);
2238
2238
  }
@@ -2245,7 +2245,7 @@ class ke {
2245
2245
  b.length > 0 && (t = t.concat(b)), i = t;
2246
2246
  } else
2247
2247
  n === void 0 && t && (n = t, t = void 0);
2248
- const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: h } = n != null ? n : {}, { onAnchor: f, setAnchors: p, sourceObjects: m } = fn(
2248
+ const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: h } = n != null ? n : {}, { onAnchor: f, setAnchors: p, sourceObjects: m } = un(
2249
2249
  this,
2250
2250
  // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
2251
2251
  o || "a"
@@ -2266,7 +2266,7 @@ class ke {
2266
2266
  */
2267
2267
  createPair(e, t, n = {}) {
2268
2268
  const i = this.createNode(e, null, n), r = this.createNode(t, null, n);
2269
- return new j(i, r);
2269
+ return new P(i, r);
2270
2270
  }
2271
2271
  /**
2272
2272
  * Removes a value from the document.
@@ -2336,11 +2336,11 @@ class ke {
2336
2336
  let n;
2337
2337
  switch (e) {
2338
2338
  case "1.1":
2339
- this.directives ? this.directives.yaml.version = "1.1" : this.directives = new P({ version: "1.1" }), n = { merge: !0, resolveKnownTags: !1, schema: "yaml-1.1" };
2339
+ this.directives ? this.directives.yaml.version = "1.1" : this.directives = new j({ version: "1.1" }), n = { merge: !0, resolveKnownTags: !1, schema: "yaml-1.1" };
2340
2340
  break;
2341
2341
  case "1.2":
2342
2342
  case "next":
2343
- this.directives ? this.directives.yaml.version = e : this.directives = new P({ version: e }), n = { merge: !1, resolveKnownTags: !0, schema: "core" };
2343
+ this.directives ? this.directives.yaml.version = e : this.directives = new j({ version: e }), n = { merge: !1, resolveKnownTags: !0, schema: "core" };
2344
2344
  break;
2345
2345
  case null:
2346
2346
  this.directives && delete this.directives, n = null;
@@ -2389,7 +2389,7 @@ class ke {
2389
2389
  const t = JSON.stringify(e.indent);
2390
2390
  throw new Error(`"indent" option must be a positive integer, not ${t}`);
2391
2391
  }
2392
- return Pn(this, e);
2392
+ return Dn(this, e);
2393
2393
  }
2394
2394
  }
2395
2395
  function re(s) {
@@ -2397,17 +2397,17 @@ function re(s) {
2397
2397
  return !0;
2398
2398
  throw new Error("Expected a YAML collection as document contents");
2399
2399
  }
2400
- class Mt extends Error {
2400
+ class vt extends Error {
2401
2401
  constructor(e, t, n, i) {
2402
2402
  super(), this.name = e, this.code = n, this.message = i, this.pos = t;
2403
2403
  }
2404
2404
  }
2405
- class te extends Mt {
2405
+ class te extends vt {
2406
2406
  constructor(e, t, n) {
2407
2407
  super("YAMLParseError", e, t, n);
2408
2408
  }
2409
2409
  }
2410
- class $s extends Mt {
2410
+ class vs extends vt {
2411
2411
  constructor(e, t, n) {
2412
2412
  super("YAMLWarning", e, t, n);
2413
2413
  }
@@ -2523,23 +2523,23 @@ function Ae(s) {
2523
2523
  return !0;
2524
2524
  }
2525
2525
  }
2526
- function wt(s, e, t) {
2526
+ function St(s, e, t) {
2527
2527
  if ((e == null ? void 0 : e.type) === "flow-collection") {
2528
2528
  const n = e.end[0];
2529
2529
  n.indent === s && (n.source === "]" || n.source === "}") && Ae(e) && t(n, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
2530
2530
  }
2531
2531
  }
2532
- function Cs(s, e, t) {
2532
+ function Bs(s, e, t) {
2533
2533
  const { uniqueKeys: n } = s.options;
2534
2534
  if (n === !1)
2535
2535
  return !1;
2536
2536
  const i = typeof n == "function" ? n : (r, o) => r === o || A(r) && A(o) && r.value === o.value && !(r.value === "<<" && s.schema.merge);
2537
2537
  return e.some((r) => i(r.key, t));
2538
2538
  }
2539
- const Gt = "All mapping items must start at the same column";
2539
+ const Wt = "All mapping items must start at the same column";
2540
2540
  function qn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2541
2541
  var h, f;
2542
- const o = (h = r == null ? void 0 : r.nodeClass) != null ? h : D, l = new o(t.schema);
2542
+ const o = (h = r == null ? void 0 : r.nodeClass) != null ? h : q, l = new o(t.schema);
2543
2543
  t.atRoot && (t.atRoot = !1);
2544
2544
  let a = n.offset, c = null;
2545
2545
  for (const p of n.items) {
@@ -2552,16 +2552,16 @@ function qn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2552
2552
  startOnNewline: !0
2553
2553
  }), S = !b.found;
2554
2554
  if (S) {
2555
- if (y && (y.type === "block-seq" ? i(a, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in y && y.indent !== n.indent && i(a, "BAD_INDENT", Gt)), !b.anchor && !b.tag && !u) {
2555
+ if (y && (y.type === "block-seq" ? i(a, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in y && y.indent !== n.indent && i(a, "BAD_INDENT", Wt)), !b.anchor && !b.tag && !u) {
2556
2556
  c = b.end, b.comment && (l.comment ? l.comment += `
2557
2557
  ` + b.comment : l.comment = b.comment);
2558
2558
  continue;
2559
2559
  }
2560
2560
  (b.newlineAfterProp || Ae(y)) && i(y != null ? y : m[m.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
2561
2561
  } else
2562
- ((f = b.found) == null ? void 0 : f.indent) !== n.indent && i(a, "BAD_INDENT", Gt);
2562
+ ((f = b.found) == null ? void 0 : f.indent) !== n.indent && i(a, "BAD_INDENT", Wt);
2563
2563
  const I = b.end, k = y ? s(t, y, b, i) : e(t, I, m, null, b, i);
2564
- t.schema.compat && wt(n.indent, y, i), Cs(t, l.items, k) && i(I, "DUPLICATE_KEY", "Map keys must be unique");
2564
+ t.schema.compat && St(n.indent, y, i), Bs(t, l.items, k) && i(I, "DUPLICATE_KEY", "Map keys must be unique");
2565
2565
  const O = pe(u != null ? u : [], {
2566
2566
  indicator: "map-value-ind",
2567
2567
  next: g,
@@ -2573,19 +2573,19 @@ function qn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2573
2573
  if (a = O.end, O.found) {
2574
2574
  S && ((g == null ? void 0 : g.type) === "block-map" && !O.hasNewline && i(a, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && b.start < O.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"));
2575
2575
  const T = g ? s(t, g, O, i) : e(t, a, u, null, O, i);
2576
- t.schema.compat && wt(n.indent, g, i), a = T.range[2];
2577
- const C = new j(k, T);
2576
+ t.schema.compat && St(n.indent, g, i), a = T.range[2];
2577
+ const C = new P(k, T);
2578
2578
  t.options.keepSourceTokens && (C.srcToken = p), l.items.push(C);
2579
2579
  } else {
2580
2580
  S && i(k.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), O.comment && (k.comment ? k.comment += `
2581
2581
  ` + O.comment : k.comment = O.comment);
2582
- const T = new j(k);
2582
+ const T = new P(k);
2583
2583
  t.options.keepSourceTokens && (T.srcToken = p), l.items.push(T);
2584
2584
  }
2585
2585
  }
2586
2586
  return c && c < a && i(c, "IMPOSSIBLE", "Map comment with trailing content"), l.range = [n.offset, a, c != null ? c : a], l;
2587
2587
  }
2588
- function Dn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2588
+ function Kn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2589
2589
  var h;
2590
2590
  const o = (h = r == null ? void 0 : r.nodeClass) != null ? h : z, l = new o(t.schema);
2591
2591
  t.atRoot && (t.atRoot = !1);
@@ -2607,7 +2607,7 @@ function Dn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2607
2607
  continue;
2608
2608
  }
2609
2609
  const y = p ? s(t, p, m, i) : e(t, m.end, f, null, m, i);
2610
- t.schema.compat && wt(n.indent, p, i), a = y.range[2], l.items.push(y);
2610
+ t.schema.compat && St(n.indent, p, i), a = y.range[2], l.items.push(y);
2611
2611
  }
2612
2612
  return l.range = [n.offset, a, c != null ? c : a], l;
2613
2613
  }
@@ -2638,10 +2638,10 @@ function Ce(s, e, t, n) {
2638
2638
  }
2639
2639
  return { comment: i, offset: e };
2640
2640
  }
2641
- const ft = "Block collections are not allowed within flow collections", ut = (s) => s && (s.type === "block-map" || s.type === "block-seq");
2642
- function Kn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2641
+ const ut = "Block collections are not allowed within flow collections", ht = (s) => s && (s.type === "block-map" || s.type === "block-seq");
2642
+ function Fn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2643
2643
  var g, b;
2644
- const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a = (g = r == null ? void 0 : r.nodeClass) != null ? g : o ? D : z, c = new a(t.schema);
2644
+ const o = n.start.source === "{", l = o ? "flow map" : "flow sequence", a = (g = r == null ? void 0 : r.nodeClass) != null ? g : o ? q : z, c = new a(t.schema);
2645
2645
  c.flow = !0;
2646
2646
  const h = t.atRoot;
2647
2647
  h && (t.atRoot = !1);
@@ -2693,10 +2693,10 @@ function Kn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2693
2693
  }
2694
2694
  if (!o && !T && !w.found) {
2695
2695
  const L = C ? s(t, C, w, i) : e(t, w.end, T, null, w, i);
2696
- c.items.push(L), f = L.range[2], ut(C) && i(L.range, "BLOCK_IN_FLOW", ft);
2696
+ c.items.push(L), f = L.range[2], ht(C) && i(L.range, "BLOCK_IN_FLOW", ut);
2697
2697
  } else {
2698
2698
  const L = w.end, _ = O ? s(t, O, w, i) : e(t, L, k, null, w, i);
2699
- ut(O) && i(_.range, "BLOCK_IN_FLOW", ft);
2699
+ ht(O) && i(_.range, "BLOCK_IN_FLOW", ut);
2700
2700
  const B = pe(T != null ? T : [], {
2701
2701
  flow: l,
2702
2702
  indicator: "map-value-ind",
@@ -2722,14 +2722,14 @@ function Kn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2722
2722
  } else
2723
2723
  C && ("source" in C && C.source && C.source[0] === ":" ? i(C, "MISSING_CHAR", `Missing space after : in ${l}`) : i(B.start, "MISSING_CHAR", `Missing , or : between ${l} items`));
2724
2724
  const X = C ? s(t, C, B, i) : B.found ? e(t, B.end, T, null, B, i) : null;
2725
- X ? ut(C) && i(X.range, "BLOCK_IN_FLOW", ft) : B.comment && (_.comment ? _.comment += `
2725
+ X ? ht(C) && i(X.range, "BLOCK_IN_FLOW", ut) : B.comment && (_.comment ? _.comment += `
2726
2726
  ` + B.comment : _.comment = B.comment);
2727
- const ie = new j(_, X);
2727
+ const ie = new P(_, X);
2728
2728
  if (t.options.keepSourceTokens && (ie.srcToken = I), o) {
2729
2729
  const v = c;
2730
- Cs(t, v.items, _) && i(L, "DUPLICATE_KEY", "Map keys must be unique"), v.items.push(ie);
2730
+ Bs(t, v.items, _) && i(L, "DUPLICATE_KEY", "Map keys must be unique"), v.items.push(ie);
2731
2731
  } else {
2732
- const v = new D(t.schema);
2732
+ const v = new q(t.schema);
2733
2733
  v.flow = !0, v.items.push(ie), c.items.push(v);
2734
2734
  }
2735
2735
  f = X ? X.range[2] : B.end;
@@ -2751,11 +2751,11 @@ function Kn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
2751
2751
  c.range = [n.offset, u, u];
2752
2752
  return c;
2753
2753
  }
2754
- function ht(s, e, t, n, i, r) {
2755
- const o = t.type === "block-map" ? qn(s, e, t, n, r) : t.type === "block-seq" ? Dn(s, e, t, n, r) : Kn(s, e, t, n, r), l = o.constructor;
2754
+ function dt(s, e, t, n, i, r) {
2755
+ const o = t.type === "block-map" ? qn(s, e, t, n, r) : t.type === "block-seq" ? Kn(s, e, t, n, r) : Fn(s, e, t, n, r), l = o.constructor;
2756
2756
  return i === "!" || i === l.tagName ? (o.tag = l.tagName, o) : (i && (o.tag = i), o);
2757
2757
  }
2758
- function Fn(s, e, t, n, i) {
2758
+ function Rn(s, e, t, n, i) {
2759
2759
  var p, m;
2760
2760
  const r = n.tag, o = r ? e.directives.tagName(r.source, (y) => i(r, "TAG_RESOLVE_FAILED", y)) : null;
2761
2761
  if (t.type === "block-seq") {
@@ -2763,24 +2763,24 @@ function Fn(s, e, t, n, i) {
2763
2763
  g && (!u || u.offset < g.offset) && i(g, "MISSING_CHAR", "Missing newline after block sequence props");
2764
2764
  }
2765
2765
  const l = t.type === "block-map" ? "map" : t.type === "block-seq" ? "seq" : t.start.source === "{" ? "map" : "seq";
2766
- if (!r || !o || o === "!" || o === D.tagName && l === "map" || o === z.tagName && l === "seq")
2767
- return ht(s, e, t, i, o);
2766
+ if (!r || !o || o === "!" || o === q.tagName && l === "map" || o === z.tagName && l === "seq")
2767
+ return dt(s, e, t, i, o);
2768
2768
  let a = e.schema.tags.find((y) => y.tag === o && y.collection === l);
2769
2769
  if (!a) {
2770
2770
  const y = e.schema.knownTags[o];
2771
2771
  if (y && y.collection === l)
2772
2772
  e.schema.tags.push(Object.assign({}, y, { default: !1 })), a = y;
2773
2773
  else
2774
- return y != null && y.collection ? i(r, "BAD_COLLECTION_TYPE", `${y.tag} used for ${l} collection, but expects ${y.collection}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), ht(s, e, t, i, o);
2774
+ return y != null && y.collection ? i(r, "BAD_COLLECTION_TYPE", `${y.tag} used for ${l} collection, but expects ${y.collection}`, !0) : i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), dt(s, e, t, i, o);
2775
2775
  }
2776
- const c = ht(s, e, t, i, o, a), h = (m = (p = a.resolve) == null ? void 0 : p.call(a, c, (y) => i(r, "TAG_RESOLVE_FAILED", y), e.options)) != null ? m : c, f = M(h) ? h : new N(h);
2776
+ const c = dt(s, e, t, i, o, a), h = (m = (p = a.resolve) == null ? void 0 : p.call(a, c, (y) => i(r, "TAG_RESOLVE_FAILED", y), e.options)) != null ? m : c, f = M(h) ? h : new N(h);
2777
2777
  return f.range = c.range, f.tag = o, a != null && a.format && (f.format = a.format), f;
2778
2778
  }
2779
- function _s(s, e, t) {
2780
- const n = e.offset, i = Rn(e, s.options.strict, t);
2779
+ function Ps(s, e, t) {
2780
+ const n = e.offset, i = Un(e, s.options.strict, t);
2781
2781
  if (!i)
2782
2782
  return { value: "", type: null, comment: "", range: [n, n, n] };
2783
- const r = i.mode === ">" ? N.BLOCK_FOLDED : N.BLOCK_LITERAL, o = e.source ? Un(e.source) : [];
2783
+ const r = i.mode === ">" ? N.BLOCK_FOLDED : N.BLOCK_LITERAL, o = e.source ? Vn(e.source) : [];
2784
2784
  let l = o.length;
2785
2785
  for (let u = o.length - 1; u >= 0; --u) {
2786
2786
  const g = o[u][1];
@@ -2849,7 +2849,7 @@ function _s(s, e, t) {
2849
2849
  const y = n + i.length + e.source.length;
2850
2850
  return { value: f, type: r, comment: i.comment, range: [n, y, y] };
2851
2851
  }
2852
- function Rn({ offset: s, props: e }, t, n) {
2852
+ function Un({ offset: s, props: e }, t, n) {
2853
2853
  if (e[0].type !== "block-scalar-header")
2854
2854
  return n(e[0], "IMPOSSIBLE", "Block scalar header not found"), null;
2855
2855
  const { source: i } = e[0], r = i[0];
@@ -2889,25 +2889,25 @@ function Rn({ offset: s, props: e }, t, n) {
2889
2889
  }
2890
2890
  return { mode: r, indent: o, chomp: l, comment: h, length: f };
2891
2891
  }
2892
- function Un(s) {
2892
+ function Vn(s) {
2893
2893
  const e = s.split(/\n( *)/), t = e[0], n = t.match(/^( *)/), r = [n != null && n[1] ? [n[1], t.slice(n[1].length)] : ["", t]];
2894
2894
  for (let o = 1; o < e.length; o += 2)
2895
2895
  r.push([e[o], e[o + 1]]);
2896
2896
  return r;
2897
2897
  }
2898
- function Ms(s, e, t) {
2898
+ function js(s, e, t) {
2899
2899
  const { offset: n, type: i, source: r, end: o } = s;
2900
2900
  let l, a;
2901
2901
  const c = (p, m, y) => t(n + p, m, y);
2902
2902
  switch (i) {
2903
2903
  case "scalar":
2904
- l = N.PLAIN, a = Vn(r, c);
2904
+ l = N.PLAIN, a = Jn(r, c);
2905
2905
  break;
2906
2906
  case "single-quoted-scalar":
2907
- l = N.QUOTE_SINGLE, a = Jn(r, c);
2907
+ l = N.QUOTE_SINGLE, a = Qn(r, c);
2908
2908
  break;
2909
2909
  case "double-quoted-scalar":
2910
- l = N.QUOTE_DOUBLE, a = Qn(r, c);
2910
+ l = N.QUOTE_DOUBLE, a = Yn(r, c);
2911
2911
  break;
2912
2912
  default:
2913
2913
  return t(s, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
@@ -2925,7 +2925,7 @@ function Ms(s, e, t) {
2925
2925
  range: [n, h, f.offset]
2926
2926
  };
2927
2927
  }
2928
- function Vn(s, e) {
2928
+ function Jn(s, e) {
2929
2929
  let t = "";
2930
2930
  switch (s[0]) {
2931
2931
  case " ":
@@ -2948,12 +2948,12 @@ function Vn(s, e) {
2948
2948
  break;
2949
2949
  }
2950
2950
  }
2951
- return t && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${t}`), vs(s);
2951
+ return t && e(0, "BAD_SCALAR_START", `Plain value cannot start with ${t}`), Ds(s);
2952
2952
  }
2953
- function Jn(s, e) {
2954
- return (s[s.length - 1] !== "'" || s.length === 1) && e(s.length, "MISSING_CHAR", "Missing closing 'quote"), vs(s.slice(1, -1)).replace(/''/g, "'");
2953
+ function Qn(s, e) {
2954
+ return (s[s.length - 1] !== "'" || s.length === 1) && e(s.length, "MISSING_CHAR", "Missing closing 'quote"), Ds(s.slice(1, -1)).replace(/''/g, "'");
2955
2955
  }
2956
- function vs(s) {
2956
+ function Ds(s) {
2957
2957
  var a;
2958
2958
  let e, t;
2959
2959
  try {
@@ -2974,7 +2974,7 @@ function vs(s) {
2974
2974
  const l = new RegExp("[ \\t]*(.*)", "sy");
2975
2975
  return l.lastIndex = o, n = l.exec(s), i + r + ((a = n == null ? void 0 : n[1]) != null ? a : "");
2976
2976
  }
2977
- function Qn(s, e) {
2977
+ function Yn(s, e) {
2978
2978
  let t = "";
2979
2979
  for (let n = 1; n < s.length - 1; ++n) {
2980
2980
  const i = s[n];
@@ -2982,11 +2982,11 @@ function Qn(s, e) {
2982
2982
  `))
2983
2983
  if (i === `
2984
2984
  `) {
2985
- const { fold: r, offset: o } = Yn(s, n);
2985
+ const { fold: r, offset: o } = Gn(s, n);
2986
2986
  t += r, n = o;
2987
2987
  } else if (i === "\\") {
2988
2988
  let r = s[++n];
2989
- const o = Gn[r];
2989
+ const o = Wn[r];
2990
2990
  if (o)
2991
2991
  t += o;
2992
2992
  else if (r === `
@@ -2999,7 +2999,7 @@ function Qn(s, e) {
2999
2999
  r = s[++n + 1];
3000
3000
  else if (r === "x" || r === "u" || r === "U") {
3001
3001
  const l = { x: 2, u: 4, U: 8 }[r];
3002
- t += Wn(s, n + 1, l, e), n += l;
3002
+ t += Hn(s, n + 1, l, e), n += l;
3003
3003
  } else {
3004
3004
  const l = s.substr(n - 1, 2);
3005
3005
  e(n - 1, "BAD_DQ_ESCAPE", `Invalid escape sequence ${l}`), t += l;
@@ -3017,7 +3017,7 @@ function Qn(s, e) {
3017
3017
  }
3018
3018
  return (s[s.length - 1] !== '"' || s.length === 1) && e(s.length, "MISSING_CHAR", 'Missing closing "quote'), t;
3019
3019
  }
3020
- function Yn(s, e) {
3020
+ function Gn(s, e) {
3021
3021
  let t = "", n = s[e + 1];
3022
3022
  for (; (n === " " || n === " " || n === `
3023
3023
  ` || n === "\r") && !(n === "\r" && s[e + 2] !== `
@@ -3027,7 +3027,7 @@ function Yn(s, e) {
3027
3027
  `), e += 1, n = s[e + 1];
3028
3028
  return t || (t = " "), { fold: t, offset: e };
3029
3029
  }
3030
- const Gn = {
3030
+ const Wn = {
3031
3031
  0: "\0",
3032
3032
  // null character
3033
3033
  a: "\x07",
@@ -3061,7 +3061,7 @@ const Gn = {
3061
3061
  "\\": "\\",
3062
3062
  " ": " "
3063
3063
  };
3064
- function Wn(s, e, t, n) {
3064
+ function Hn(s, e, t, n) {
3065
3065
  const i = s.substr(e, t), o = i.length === t && /^[0-9a-fA-F]+$/.test(i) ? parseInt(i, 16) : NaN;
3066
3066
  if (isNaN(o)) {
3067
3067
  const l = s.substr(e - 2, t + 2);
@@ -3069,8 +3069,8 @@ function Wn(s, e, t, n) {
3069
3069
  }
3070
3070
  return String.fromCodePoint(o);
3071
3071
  }
3072
- function Bs(s, e, t, n) {
3073
- const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? _s(s, e, n) : Ms(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null, c = t && a ? Hn(s.schema, i, a, t, n) : e.type === "scalar" ? zn(s, i, e, n) : s.schema[Y];
3072
+ function qs(s, e, t, n) {
3073
+ const { value: i, type: r, comment: o, range: l } = e.type === "block-scalar" ? Ps(s, e, n) : js(e, s.options.strict, n), a = t ? s.directives.tagName(t.source, (f) => n(t, "TAG_RESOLVE_FAILED", f)) : null, c = t && a ? zn(s.schema, i, a, t, n) : e.type === "scalar" ? Xn(s, i, e, n) : s.schema[Y];
3074
3074
  let h;
3075
3075
  try {
3076
3076
  const f = c.resolve(i, (p) => n(t != null ? t : e, "TAG_RESOLVE_FAILED", p), s.options);
@@ -3081,7 +3081,7 @@ function Bs(s, e, t, n) {
3081
3081
  }
3082
3082
  return h.range = l, h.source = i, r && (h.type = r), a && (h.tag = a), c.format && (h.format = c.format), o && (h.comment = o), h;
3083
3083
  }
3084
- function Hn(s, e, t, n, i) {
3084
+ function zn(s, e, t, n, i) {
3085
3085
  var l;
3086
3086
  if (t === "!")
3087
3087
  return s[Y];
@@ -3098,7 +3098,7 @@ function Hn(s, e, t, n, i) {
3098
3098
  const o = s.knownTags[t];
3099
3099
  return o && !o.collection ? (s.tags.push(Object.assign({}, o, { default: !1, test: void 0 })), o) : (i(n, "TAG_RESOLVE_FAILED", `Unresolved tag: ${t}`, t !== "tag:yaml.org,2002:str"), s[Y]);
3100
3100
  }
3101
- function zn({ directives: s, schema: e }, t, n, i) {
3101
+ function Xn({ directives: s, schema: e }, t, n, i) {
3102
3102
  var o;
3103
3103
  const r = e.tags.find((l) => {
3104
3104
  var a;
@@ -3116,7 +3116,7 @@ function zn({ directives: s, schema: e }, t, n, i) {
3116
3116
  }
3117
3117
  return r;
3118
3118
  }
3119
- function Xn(s, e, t) {
3119
+ function xn(s, e, t) {
3120
3120
  if (e) {
3121
3121
  t === null && (t = e.length);
3122
3122
  for (let n = t - 1; n >= 0; --n) {
@@ -3135,48 +3135,48 @@ function Xn(s, e, t) {
3135
3135
  }
3136
3136
  return s;
3137
3137
  }
3138
- const xn = { composeNode: js, composeEmptyNode: vt };
3139
- function js(s, e, t, n) {
3138
+ const Zn = { composeNode: Ks, composeEmptyNode: Bt };
3139
+ function Ks(s, e, t, n) {
3140
3140
  const { spaceBefore: i, comment: r, anchor: o, tag: l } = t;
3141
3141
  let a, c = !0;
3142
3142
  switch (e.type) {
3143
3143
  case "alias":
3144
- a = Zn(s, e, n), (o || l) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3144
+ a = ei(s, e, n), (o || l) && n(e, "ALIAS_PROPS", "An alias node must not specify any properties");
3145
3145
  break;
3146
3146
  case "scalar":
3147
3147
  case "single-quoted-scalar":
3148
3148
  case "double-quoted-scalar":
3149
3149
  case "block-scalar":
3150
- a = Bs(s, e, l, n), o && (a.anchor = o.source.substring(1));
3150
+ a = qs(s, e, l, n), o && (a.anchor = o.source.substring(1));
3151
3151
  break;
3152
3152
  case "block-map":
3153
3153
  case "block-seq":
3154
3154
  case "flow-collection":
3155
- a = Fn(xn, s, e, t, n), o && (a.anchor = o.source.substring(1));
3155
+ a = Rn(Zn, s, e, t, n), o && (a.anchor = o.source.substring(1));
3156
3156
  break;
3157
3157
  default: {
3158
3158
  const h = e.type === "error" ? e.message : `Unsupported token (type: ${e.type})`;
3159
- n(e, "UNEXPECTED_TOKEN", h), a = vt(s, e.offset, void 0, null, t, n), c = !1;
3159
+ n(e, "UNEXPECTED_TOKEN", h), a = Bt(s, e.offset, void 0, null, t, n), c = !1;
3160
3160
  }
3161
3161
  }
3162
3162
  return o && a.anchor === "" && n(o, "BAD_ALIAS", "Anchor cannot be an empty string"), i && (a.spaceBefore = !0), r && (e.type === "scalar" && e.source === "" ? a.comment = r : a.commentBefore = r), s.options.keepSourceTokens && c && (a.srcToken = e), a;
3163
3163
  }
3164
- function vt(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a }, c) {
3164
+ function Bt(s, e, t, n, { spaceBefore: i, comment: r, anchor: o, tag: l, end: a }, c) {
3165
3165
  const h = {
3166
3166
  type: "scalar",
3167
- offset: Xn(e, t, n),
3167
+ offset: xn(e, t, n),
3168
3168
  indent: -1,
3169
3169
  source: ""
3170
- }, f = Bs(s, h, l, c);
3170
+ }, f = qs(s, h, l, c);
3171
3171
  return o && (f.anchor = o.source.substring(1), f.anchor === "" && c(o, "BAD_ALIAS", "Anchor cannot be an empty string")), i && (f.spaceBefore = !0), r && (f.comment = r, f.range[2] = a), f;
3172
3172
  }
3173
- function Zn({ options: s }, { offset: e, source: t, end: n }, i) {
3173
+ function ei({ options: s }, { offset: e, source: t, end: n }, i) {
3174
3174
  const r = new Qe(t.substring(1));
3175
3175
  r.source === "" && i(e, "BAD_ALIAS", "Alias cannot be an empty string"), r.source.endsWith(":") && i(e + t.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", !0);
3176
3176
  const o = e + t.length, l = Ce(n, o, s.strict, i);
3177
3177
  return r.range = [e, o, l.offset], l.comment && (r.comment = l.comment), r;
3178
3178
  }
3179
- function ei(s, e, { offset: t, start: n, value: i, end: r }, o) {
3179
+ function ti(s, e, { offset: t, start: n, value: i, end: r }, o) {
3180
3180
  const l = Object.assign({ _directives: e }, s), a = new ke(void 0, l), c = {
3181
3181
  atRoot: !0,
3182
3182
  directives: a.directives,
@@ -3190,7 +3190,7 @@ function ei(s, e, { offset: t, start: n, value: i, end: r }, o) {
3190
3190
  parentIndent: 0,
3191
3191
  startOnNewline: !0
3192
3192
  });
3193
- h.found && (a.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !h.hasNewline && o(h.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), a.contents = i ? js(c, i, h, o) : vt(c, h.end, n, null, h, o);
3193
+ h.found && (a.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !h.hasNewline && o(h.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), a.contents = i ? Ks(c, i, h, o) : Bt(c, h.end, n, null, h, o);
3194
3194
  const f = a.contents.range[2], p = Ce(r, f, !1, o);
3195
3195
  return p.comment && (a.comment = p.comment), a.range = [t, f, p.offset], a;
3196
3196
  }
@@ -3202,7 +3202,7 @@ function Ne(s) {
3202
3202
  const { offset: e, source: t } = s;
3203
3203
  return [e, e + (typeof t == "string" ? t.length : 1)];
3204
3204
  }
3205
- function Wt(s) {
3205
+ function Ht(s) {
3206
3206
  var i;
3207
3207
  let e = "", t = !1, n = !1;
3208
3208
  for (let r = 0; r < s.length; ++r) {
@@ -3223,15 +3223,15 @@ function Wt(s) {
3223
3223
  }
3224
3224
  return { comment: e, afterEmptyLine: n };
3225
3225
  }
3226
- class Bt {
3226
+ class Pt {
3227
3227
  constructor(e = {}) {
3228
3228
  this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (t, n, i, r) => {
3229
3229
  const o = Ne(t);
3230
- r ? this.warnings.push(new $s(o, n, i)) : this.errors.push(new te(o, n, i));
3231
- }, this.directives = new P({ version: e.version || "1.2" }), this.options = e;
3230
+ r ? this.warnings.push(new vs(o, n, i)) : this.errors.push(new te(o, n, i));
3231
+ }, this.directives = new j({ version: e.version || "1.2" }), this.options = e;
3232
3232
  }
3233
3233
  decorate(e, t) {
3234
- const { comment: n, afterEmptyLine: i } = Wt(this.prelude);
3234
+ const { comment: n, afterEmptyLine: i } = Ht(this.prelude);
3235
3235
  if (n) {
3236
3236
  const r = e.contents;
3237
3237
  if (t)
@@ -3260,7 +3260,7 @@ ${o}` : n;
3260
3260
  */
3261
3261
  streamInfo() {
3262
3262
  return {
3263
- comment: Wt(this.prelude).comment,
3263
+ comment: Ht(this.prelude).comment,
3264
3264
  directives: this.directives,
3265
3265
  errors: this.errors,
3266
3266
  warnings: this.warnings
@@ -3287,7 +3287,7 @@ ${o}` : n;
3287
3287
  }), this.prelude.push(e.source), this.atDirectives = !0;
3288
3288
  break;
3289
3289
  case "document": {
3290
- const t = ei(this.options, this.directives, e, this.onError);
3290
+ const t = ti(this.options, this.directives, e, this.onError);
3291
3291
  this.atDirectives && !t.directives.docStart && this.onError(e, "MISSING_CHAR", "Missing directives-end/doc-start indicator line"), this.decorate(t, !1), this.doc && (yield this.doc), this.doc = t, this.atDirectives = !1;
3292
3292
  break;
3293
3293
  }
@@ -3338,7 +3338,7 @@ ${t.comment}` : t.comment;
3338
3338
  }
3339
3339
  }
3340
3340
  }
3341
- function ti(s, e = !0, t) {
3341
+ function si(s, e = !0, t) {
3342
3342
  if (s) {
3343
3343
  const n = (i, r, o) => {
3344
3344
  const l = typeof i == "number" ? i : Array.isArray(i) ? i[0] : i.offset;
@@ -3351,14 +3351,14 @@ function ti(s, e = !0, t) {
3351
3351
  case "scalar":
3352
3352
  case "single-quoted-scalar":
3353
3353
  case "double-quoted-scalar":
3354
- return Ms(s, e, n);
3354
+ return js(s, e, n);
3355
3355
  case "block-scalar":
3356
- return _s({ options: { strict: e } }, s, n);
3356
+ return Ps({ options: { strict: e } }, s, n);
3357
3357
  }
3358
3358
  }
3359
3359
  return null;
3360
3360
  }
3361
- function si(s, e) {
3361
+ function ni(s, e) {
3362
3362
  var c;
3363
3363
  const { implicitKey: t = !1, indent: n, inFlow: i = !1, offset: r = -1, type: o = "PLAIN" } = e, l = Le({ type: o, value: s }, {
3364
3364
  implicitKey: t,
@@ -3377,7 +3377,7 @@ function si(s, e) {
3377
3377
  `, m = [
3378
3378
  { type: "block-scalar-header", offset: r, indent: n, source: f }
3379
3379
  ];
3380
- return Ps(m, a) || m.push({ type: "newline", offset: -1, indent: n, source: `
3380
+ return Fs(m, a) || m.push({ type: "newline", offset: -1, indent: n, source: `
3381
3381
  ` }), { type: "block-scalar", offset: r, indent: n, props: m, source: p };
3382
3382
  }
3383
3383
  case '"':
@@ -3388,7 +3388,7 @@ function si(s, e) {
3388
3388
  return { type: "scalar", offset: r, indent: n, source: l, end: a };
3389
3389
  }
3390
3390
  }
3391
- function ni(s, e, t = {}) {
3391
+ function ii(s, e, t = {}) {
3392
3392
  let { afterKey: n = !1, implicitKey: i = !1, inFlow: r = !1, type: o } = t, l = "indent" in s ? s.indent : null;
3393
3393
  if (n && typeof l == "number" && (l += 2), !o)
3394
3394
  switch (s.type) {
@@ -3417,19 +3417,19 @@ function ni(s, e, t = {}) {
3417
3417
  switch (a[0]) {
3418
3418
  case "|":
3419
3419
  case ">":
3420
- ii(s, a);
3420
+ ri(s, a);
3421
3421
  break;
3422
3422
  case '"':
3423
- dt(s, a, "double-quoted-scalar");
3423
+ pt(s, a, "double-quoted-scalar");
3424
3424
  break;
3425
3425
  case "'":
3426
- dt(s, a, "single-quoted-scalar");
3426
+ pt(s, a, "single-quoted-scalar");
3427
3427
  break;
3428
3428
  default:
3429
- dt(s, a, "scalar");
3429
+ pt(s, a, "scalar");
3430
3430
  }
3431
3431
  }
3432
- function ii(s, e) {
3432
+ function ri(s, e) {
3433
3433
  const t = e.indexOf(`
3434
3434
  `), n = e.substring(0, t), i = e.substring(t + 1) + `
3435
3435
  `;
@@ -3442,14 +3442,14 @@ function ii(s, e) {
3442
3442
  const { offset: r } = s, o = "indent" in s ? s.indent : -1, l = [
3443
3443
  { type: "block-scalar-header", offset: r, indent: o, source: n }
3444
3444
  ];
3445
- Ps(l, "end" in s ? s.end : void 0) || l.push({ type: "newline", offset: -1, indent: o, source: `
3445
+ Fs(l, "end" in s ? s.end : void 0) || l.push({ type: "newline", offset: -1, indent: o, source: `
3446
3446
  ` });
3447
3447
  for (const a of Object.keys(s))
3448
3448
  a !== "type" && a !== "offset" && delete s[a];
3449
3449
  Object.assign(s, { type: "block-scalar", indent: o, props: l, source: i });
3450
3450
  }
3451
3451
  }
3452
- function Ps(s, e) {
3452
+ function Fs(s, e) {
3453
3453
  if (e)
3454
3454
  for (const t of e)
3455
3455
  switch (t.type) {
@@ -3462,7 +3462,7 @@ function Ps(s, e) {
3462
3462
  }
3463
3463
  return !1;
3464
3464
  }
3465
- function dt(s, e, t) {
3465
+ function pt(s, e, t) {
3466
3466
  switch (s.type) {
3467
3467
  case "scalar":
3468
3468
  case "double-quoted-scalar":
@@ -3493,7 +3493,7 @@ function dt(s, e, t) {
3493
3493
  }
3494
3494
  }
3495
3495
  }
3496
- const ri = (s) => "type" in s ? Ve(s) : Ke(s);
3496
+ const oi = (s) => "type" in s ? Ve(s) : Ke(s);
3497
3497
  function Ve(s) {
3498
3498
  switch (s.type) {
3499
3499
  case "block-scalar": {
@@ -3542,13 +3542,13 @@ function Ke({ start: s, key: e, sep: t, value: n }) {
3542
3542
  i += r.source;
3543
3543
  return n && (i += Ve(n)), i;
3544
3544
  }
3545
- const St = Symbol("break visit"), oi = Symbol("skip children"), qs = Symbol("remove item");
3545
+ const kt = Symbol("break visit"), li = Symbol("skip children"), Rs = Symbol("remove item");
3546
3546
  function se(s, e) {
3547
- "type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Ds(Object.freeze([]), s, e);
3547
+ "type" in s && s.type === "document" && (s = { start: s.start, value: s.value }), Us(Object.freeze([]), s, e);
3548
3548
  }
3549
- se.BREAK = St;
3550
- se.SKIP = oi;
3551
- se.REMOVE = qs;
3549
+ se.BREAK = kt;
3550
+ se.SKIP = li;
3551
+ se.REMOVE = Rs;
3552
3552
  se.itemAtPath = (s, e) => {
3553
3553
  let t = s;
3554
3554
  for (const [n, i] of e) {
@@ -3566,7 +3566,7 @@ se.parentCollection = (s, e) => {
3566
3566
  return i;
3567
3567
  throw new Error("Parent collection not found");
3568
3568
  };
3569
- function Ds(s, e, t) {
3569
+ function Us(s, e, t) {
3570
3570
  let n = t(e, s);
3571
3571
  if (typeof n == "symbol")
3572
3572
  return n;
@@ -3574,13 +3574,13 @@ function Ds(s, e, t) {
3574
3574
  const r = e[i];
3575
3575
  if (r && "items" in r) {
3576
3576
  for (let o = 0; o < r.items.length; ++o) {
3577
- const l = Ds(Object.freeze(s.concat([[i, o]])), r.items[o], t);
3577
+ const l = Us(Object.freeze(s.concat([[i, o]])), r.items[o], t);
3578
3578
  if (typeof l == "number")
3579
3579
  o = l - 1;
3580
3580
  else {
3581
- if (l === St)
3582
- return St;
3583
- l === qs && (r.items.splice(o, 1), o -= 1);
3581
+ if (l === kt)
3582
+ return kt;
3583
+ l === Rs && (r.items.splice(o, 1), o -= 1);
3584
3584
  }
3585
3585
  }
3586
3586
  typeof n == "function" && i === "key" && (n = n(e, s));
@@ -3588,8 +3588,8 @@ function Ds(s, e, t) {
3588
3588
  }
3589
3589
  return typeof n == "function" ? n(e, s) : n;
3590
3590
  }
3591
- const tt = "\uFEFF", st = "", nt = "", Ee = "", li = (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");
3592
- function ci(s) {
3591
+ const tt = "\uFEFF", st = "", nt = "", Ee = "", ai = (s) => !!s && "items" in s, ci = (s) => !!s && (s.type === "scalar" || s.type === "single-quoted-scalar" || s.type === "double-quoted-scalar" || s.type === "block-scalar");
3592
+ function fi(s) {
3593
3593
  switch (s) {
3594
3594
  case tt:
3595
3595
  return "<BOM>";
@@ -3603,7 +3603,7 @@ function ci(s) {
3603
3603
  return JSON.stringify(s);
3604
3604
  }
3605
3605
  }
3606
- function Ks(s) {
3606
+ function Vs(s) {
3607
3607
  switch (s) {
3608
3608
  case tt:
3609
3609
  return "byte-order-mark";
@@ -3664,20 +3664,20 @@ function Ks(s) {
3664
3664
  }
3665
3665
  return null;
3666
3666
  }
3667
- const fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3667
+ const ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3668
3668
  __proto__: null,
3669
3669
  BOM: tt,
3670
3670
  DOCUMENT: st,
3671
3671
  FLOW_END: nt,
3672
3672
  SCALAR: Ee,
3673
- createScalarToken: si,
3674
- isCollection: li,
3675
- isScalar: ai,
3676
- prettyToken: ci,
3677
- resolveAsScalar: ti,
3678
- setScalarValue: ni,
3679
- stringify: ri,
3680
- tokenType: Ks,
3673
+ createScalarToken: ni,
3674
+ isCollection: ai,
3675
+ isScalar: ci,
3676
+ prettyToken: fi,
3677
+ resolveAsScalar: si,
3678
+ setScalarValue: ii,
3679
+ stringify: oi,
3680
+ tokenType: Vs,
3681
3681
  visit: se
3682
3682
  }, Symbol.toStringTag, { value: "Module" }));
3683
3683
  function U(s) {
@@ -3693,9 +3693,9 @@ function U(s) {
3693
3693
  return !1;
3694
3694
  }
3695
3695
  }
3696
- const Ht = new Set("0123456789ABCDEFabcdef"), ui = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), Be = new Set(",[]{}"), hi = new Set(` ,[]{}
3697
- \r `), pt = (s) => !s || hi.has(s);
3698
- class Fs {
3696
+ const zt = new Set("0123456789ABCDEFabcdef"), hi = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), Be = new Set(",[]{}"), di = new Set(` ,[]{}
3697
+ \r `), mt = (s) => !s || di.has(s);
3698
+ class Js {
3699
3699
  constructor() {
3700
3700
  this.atEnd = !1, this.blockScalarIndent = -1, this.blockScalarKeep = !1, this.buffer = "", this.flowKey = !1, this.flowLevel = 0, this.indentNext = 0, this.indentValue = 0, this.lineEndPos = null, this.next = null, this.pos = 0;
3701
3701
  }
@@ -3855,7 +3855,7 @@ class Fs {
3855
3855
  case "]":
3856
3856
  return yield* d(this.pushCount(1)), "doc";
3857
3857
  case "*":
3858
- return yield* d(this.pushUntil(pt)), "doc";
3858
+ return yield* d(this.pushUntil(mt)), "doc";
3859
3859
  case '"':
3860
3860
  case "'":
3861
3861
  return yield* d(this.parseQuotedScalar());
@@ -3891,7 +3891,7 @@ class Fs {
3891
3891
  case "]":
3892
3892
  return yield* d(this.pushCount(1)), this.flowKey = !0, this.flowLevel -= 1, this.flowLevel ? "flow" : "doc";
3893
3893
  case "*":
3894
- return yield* d(this.pushUntil(pt)), "flow";
3894
+ return yield* d(this.pushUntil(mt)), "flow";
3895
3895
  case '"':
3896
3896
  case "'":
3897
3897
  return this.flowKey = !0, yield* d(this.parseQuotedScalar());
@@ -4057,7 +4057,7 @@ class Fs {
4057
4057
  case "!":
4058
4058
  return (yield* d(this.pushTag())) + (yield* d(this.pushSpaces(!0))) + (yield* d(this.pushIndicators()));
4059
4059
  case "&":
4060
- return (yield* d(this.pushUntil(pt))) + (yield* d(this.pushSpaces(!0))) + (yield* d(this.pushIndicators()));
4060
+ return (yield* d(this.pushUntil(mt))) + (yield* d(this.pushSpaces(!0))) + (yield* d(this.pushIndicators()));
4061
4061
  case "-":
4062
4062
  case "?":
4063
4063
  case ":": {
@@ -4077,9 +4077,9 @@ class Fs {
4077
4077
  } else {
4078
4078
  let e = this.pos + 1, t = this.buffer[e];
4079
4079
  for (; t; )
4080
- if (ui.has(t))
4080
+ if (hi.has(t))
4081
4081
  t = this.buffer[++e];
4082
- else if (t === "%" && Ht.has(this.buffer[e + 1]) && Ht.has(this.buffer[e + 2]))
4082
+ else if (t === "%" && zt.has(this.buffer[e + 1]) && zt.has(this.buffer[e + 2]))
4083
4083
  t = this.buffer[e += 3];
4084
4084
  else
4085
4085
  break;
@@ -4107,7 +4107,7 @@ class Fs {
4107
4107
  return yield* d(this.pushToIndex(t, !1));
4108
4108
  }
4109
4109
  }
4110
- class Rs {
4110
+ class Qs {
4111
4111
  constructor() {
4112
4112
  this.lineStarts = [], this.addNewLine = (e) => this.lineStarts.push(e), this.linePos = (e) => {
4113
4113
  let t = 0, n = this.lineStarts.length;
@@ -4130,7 +4130,7 @@ function x(s, e) {
4130
4130
  return !0;
4131
4131
  return !1;
4132
4132
  }
4133
- function zt(s) {
4133
+ function Xt(s) {
4134
4134
  for (let e = 0; e < s.length; ++e)
4135
4135
  switch (s[e].type) {
4136
4136
  case "space":
@@ -4142,7 +4142,7 @@ function zt(s) {
4142
4142
  }
4143
4143
  return -1;
4144
4144
  }
4145
- function Us(s) {
4145
+ function Ys(s) {
4146
4146
  switch (s == null ? void 0 : s.type) {
4147
4147
  case "alias":
4148
4148
  case "scalar":
@@ -4154,7 +4154,7 @@ function Us(s) {
4154
4154
  return !1;
4155
4155
  }
4156
4156
  }
4157
- function je(s) {
4157
+ function Pe(s) {
4158
4158
  var e;
4159
4159
  switch (s.type) {
4160
4160
  case "document":
@@ -4188,10 +4188,10 @@ function oe(s) {
4188
4188
  ;
4189
4189
  return s.splice(e, s.length);
4190
4190
  }
4191
- function Xt(s) {
4191
+ function xt(s) {
4192
4192
  if (s.start.type === "flow-seq-start")
4193
4193
  for (const e of s.items)
4194
- e.sep && !e.value && !x(e.start, "explicit-key-ind") && !x(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, Us(e.value) ? e.value.end ? Array.prototype.push.apply(e.value.end, e.sep) : e.value.end = e.sep : Array.prototype.push.apply(e.start, e.sep), delete e.sep);
4194
+ e.sep && !e.value && !x(e.start, "explicit-key-ind") && !x(e.sep, "map-value-ind") && (e.key && (e.value = e.key), delete e.key, Ys(e.value) ? e.value.end ? Array.prototype.push.apply(e.value.end, e.sep) : e.value.end = e.sep : Array.prototype.push.apply(e.start, e.sep), delete e.sep);
4195
4195
  }
4196
4196
  class jt {
4197
4197
  /**
@@ -4199,7 +4199,7 @@ class jt {
4199
4199
  * each new line (in `parse()`, including the start of input).
4200
4200
  */
4201
4201
  constructor(e) {
4202
- this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Fs(), this.onNewLine = e;
4202
+ this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Js(), this.onNewLine = e;
4203
4203
  }
4204
4204
  /**
4205
4205
  * Parse `source` as a YAML stream.
@@ -4223,7 +4223,7 @@ class jt {
4223
4223
  this.atScalar = !1, yield* d(this.step()), this.offset += e.length;
4224
4224
  return;
4225
4225
  }
4226
- const t = Ks(e);
4226
+ const t = Vs(e);
4227
4227
  if (t)
4228
4228
  if (t === "scalar")
4229
4229
  this.atNewLine = !1, this.atScalar = !0, this.type = "scalar";
@@ -4312,7 +4312,7 @@ class jt {
4312
4312
  yield t;
4313
4313
  else {
4314
4314
  const n = this.peek(1);
4315
- 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" && Xt(t), n.type) {
4315
+ 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" && xt(t), n.type) {
4316
4316
  case "document":
4317
4317
  n.value = t;
4318
4318
  break;
@@ -4347,7 +4347,7 @@ class jt {
4347
4347
  }
4348
4348
  if ((n.type === "document" || n.type === "block-map" || n.type === "block-seq") && (t.type === "block-map" || t.type === "block-seq")) {
4349
4349
  const i = t.items[t.items.length - 1];
4350
- i && !i.sep && !i.value && i.start.length > 0 && zt(i.start) === -1 && (t.indent === 0 || i.start.every((r) => r.type !== "comment" || r.indent < t.indent)) && (n.type === "document" ? n.end = i.start : n.items.push({ start: i.start }), t.items.splice(-1, 1));
4350
+ i && !i.sep && !i.value && i.start.length > 0 && Xt(i.start) === -1 && (t.indent === 0 || i.start.every((r) => r.type !== "comment" || r.indent < t.indent)) && (n.type === "document" ? n.end = i.start : n.items.push({ start: i.start }), t.items.splice(-1, 1));
4351
4351
  }
4352
4352
  }
4353
4353
  }
@@ -4385,7 +4385,7 @@ class jt {
4385
4385
  return yield* d(this.lineEnd(e));
4386
4386
  switch (this.type) {
4387
4387
  case "doc-start": {
4388
- zt(e.start) !== -1 ? (yield* d(this.pop()), yield* d(this.step())) : e.start.push(this.sourceToken);
4388
+ Xt(e.start) !== -1 ? (yield* d(this.pop()), yield* d(this.step())) : e.start.push(this.sourceToken);
4389
4389
  return;
4390
4390
  }
4391
4391
  case "anchor":
@@ -4406,7 +4406,7 @@ class jt {
4406
4406
  }
4407
4407
  *scalar(e) {
4408
4408
  if (this.type === "map-value-ind") {
4409
- const t = je(this.peek(2)), n = oe(t);
4409
+ const t = Pe(this.peek(2)), n = oe(t);
4410
4410
  let i;
4411
4411
  e.end ? (i = e.end, i.push(this.sourceToken), delete e.end) : i = [this.sourceToken];
4412
4412
  const r = {
@@ -4516,7 +4516,7 @@ class jt {
4516
4516
  indent: this.indent,
4517
4517
  items: [{ start: o, key: null, sep: [this.sourceToken] }]
4518
4518
  });
4519
- else if (Us(t.key) && !x(t.sep, "newline")) {
4519
+ else if (Ys(t.key) && !x(t.sep, "newline")) {
4520
4520
  const l = oe(t.start), a = t.key, c = t.sep;
4521
4521
  c.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
4522
4522
  type: "block-map",
@@ -4655,8 +4655,8 @@ class jt {
4655
4655
  if (n.type === "block-map" && (this.type === "map-value-ind" && n.indent === e.indent || this.type === "newline" && !n.items[n.items.length - 1].sep))
4656
4656
  yield* d(this.pop()), yield* d(this.step());
4657
4657
  else if (this.type === "map-value-ind" && n.type !== "flow-collection") {
4658
- const i = je(n), r = oe(i);
4659
- Xt(e);
4658
+ const i = Pe(n), r = oe(i);
4659
+ xt(e);
4660
4660
  const o = e.end.splice(1, e.end.length);
4661
4661
  o.push(this.sourceToken);
4662
4662
  const l = {
@@ -4719,7 +4719,7 @@ class jt {
4719
4719
  };
4720
4720
  case "explicit-key-ind": {
4721
4721
  this.onKeyLine = !0;
4722
- const t = je(e), n = oe(t);
4722
+ const t = Pe(e), n = oe(t);
4723
4723
  return n.push(this.sourceToken), {
4724
4724
  type: "block-map",
4725
4725
  offset: this.offset,
@@ -4729,7 +4729,7 @@ class jt {
4729
4729
  }
4730
4730
  case "map-value-ind": {
4731
4731
  this.onKeyLine = !0;
4732
- const t = je(e), n = oe(t);
4732
+ const t = Pe(e), n = oe(t);
4733
4733
  return {
4734
4734
  type: "block-map",
4735
4735
  offset: this.offset,
@@ -4765,19 +4765,19 @@ class jt {
4765
4765
  }
4766
4766
  }
4767
4767
  }
4768
- function Vs(s) {
4768
+ function Gs(s) {
4769
4769
  const e = s.prettyErrors !== !1;
4770
- return { lineCounter: s.lineCounter || e && new Rs() || null, prettyErrors: e };
4770
+ return { lineCounter: s.lineCounter || e && new Qs() || null, prettyErrors: e };
4771
4771
  }
4772
- function di(s, e = {}) {
4773
- const { lineCounter: t, prettyErrors: n } = Vs(e), i = new jt(t == null ? void 0 : t.addNewLine), r = new Bt(e), o = Array.from(r.compose(i.parse(s)));
4772
+ function pi(s, e = {}) {
4773
+ const { lineCounter: t, prettyErrors: n } = Gs(e), i = new jt(t == null ? void 0 : t.addNewLine), r = new Pt(e), o = Array.from(r.compose(i.parse(s)));
4774
4774
  if (n && t)
4775
4775
  for (const l of o)
4776
4776
  l.errors.forEach(Ue(s, t)), l.warnings.forEach(Ue(s, t));
4777
4777
  return o.length > 0 ? o : Object.assign([], { empty: !0 }, r.streamInfo());
4778
4778
  }
4779
- function Js(s, e = {}) {
4780
- const { lineCounter: t, prettyErrors: n } = Vs(e), i = new jt(t == null ? void 0 : t.addNewLine), r = new Bt(e);
4779
+ function Ws(s, e = {}) {
4780
+ const { lineCounter: t, prettyErrors: n } = Gs(e), i = new jt(t == null ? void 0 : t.addNewLine), r = new Pt(e);
4781
4781
  let o = null;
4782
4782
  for (const l of r.compose(i.parse(s), !0, s.length))
4783
4783
  if (!o)
@@ -4788,20 +4788,20 @@ function Js(s, e = {}) {
4788
4788
  }
4789
4789
  return n && t && (o.errors.forEach(Ue(s, t)), o.warnings.forEach(Ue(s, t))), o;
4790
4790
  }
4791
- function pi(s, e, t) {
4791
+ function mi(s, e, t) {
4792
4792
  let n;
4793
4793
  typeof e == "function" ? n = e : t === void 0 && e && typeof e == "object" && (t = e);
4794
- const i = Js(s, t);
4794
+ const i = Ws(s, t);
4795
4795
  if (!i)
4796
4796
  return null;
4797
- if (i.warnings.forEach((r) => us(i.options.logLevel, r)), i.errors.length > 0) {
4797
+ if (i.warnings.forEach((r) => ms(i.options.logLevel, r)), i.errors.length > 0) {
4798
4798
  if (i.options.logLevel !== "silent")
4799
4799
  throw i.errors[0];
4800
4800
  i.errors = [];
4801
4801
  }
4802
4802
  return i.toJS(Object.assign({ reviver: n }, t));
4803
4803
  }
4804
- function mi(s, e, t) {
4804
+ function yi(s, e, t) {
4805
4805
  var i;
4806
4806
  let n = null;
4807
4807
  if (typeof e == "function" || Array.isArray(e) ? n = e : t === void 0 && e && (t = e), typeof t == "string" && (t = t.length), typeof t == "number") {
@@ -4815,23 +4815,23 @@ function mi(s, e, t) {
4815
4815
  }
4816
4816
  return new ke(s, n, t).toString(t);
4817
4817
  }
4818
- const xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4818
+ const Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4819
4819
  __proto__: null,
4820
4820
  Alias: Qe,
4821
- CST: fi,
4822
- Composer: Bt,
4821
+ CST: ui,
4822
+ Composer: Pt,
4823
4823
  Document: ke,
4824
- Lexer: Fs,
4825
- LineCounter: Rs,
4826
- Pair: j,
4824
+ Lexer: Js,
4825
+ LineCounter: Qs,
4826
+ Pair: P,
4827
4827
  Parser: jt,
4828
4828
  Scalar: N,
4829
4829
  Schema: et,
4830
- YAMLError: Mt,
4831
- YAMLMap: D,
4830
+ YAMLError: vt,
4831
+ YAMLMap: q,
4832
4832
  YAMLParseError: te,
4833
4833
  YAMLSeq: z,
4834
- YAMLWarning: $s,
4834
+ YAMLWarning: vs,
4835
4835
  isAlias: ne,
4836
4836
  isCollection: $,
4837
4837
  isDocument: ye,
@@ -4840,13 +4840,13 @@ const xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4840
4840
  isPair: E,
4841
4841
  isScalar: A,
4842
4842
  isSeq: be,
4843
- parse: pi,
4844
- parseAllDocuments: di,
4845
- parseDocument: Js,
4846
- stringify: mi,
4843
+ parse: mi,
4844
+ parseAllDocuments: pi,
4845
+ parseDocument: Ws,
4846
+ stringify: yi,
4847
4847
  visit: H,
4848
4848
  visitAsync: Je
4849
- }, Symbol.toStringTag, { value: "Module" })), yi = `# This is your query - you can modify it directly and click Run to see new results.
4849
+ }, Symbol.toStringTag, { value: "Module" })), gi = `# This is your query - you can modify it directly and click Run to see new results.
4850
4850
  # Try uncommenting the elements below
4851
4851
  # To learn more about the query syntax, visit [Doc URL]
4852
4852
  ---
@@ -4888,7 +4888,7 @@ model: {{dataSourceTitle}}
4888
4888
  # - name: Dimension2
4889
4889
  # - name: Measure1
4890
4890
  # - name: Measure2`;
4891
- class Ti {
4891
+ class $i {
4892
4892
  /**
4893
4893
  * Constructor for QueryTranslator.
4894
4894
  *
@@ -4904,7 +4904,7 @@ class Ti {
4904
4904
  return e.reduce((t, n) => {
4905
4905
  const i = n.id;
4906
4906
  t[i] = n;
4907
- const r = Hs(i);
4907
+ const r = Zs(i);
4908
4908
  return i !== r && (t[r] = G(R({}, n), { id: r })), t;
4909
4909
  }, {});
4910
4910
  }
@@ -4912,7 +4912,7 @@ class Ti {
4912
4912
  * Concatenates Aggregation Types.
4913
4913
  */
4914
4914
  concatAggTypes() {
4915
- return Object.values(on).map((t) => nn.aggregationToJAQL(t)).join("|");
4915
+ return Object.values(ln).map((t) => rn.aggregationToJAQL(t)).join("|");
4916
4916
  }
4917
4917
  /**
4918
4918
  * Simplifies Aggregation Formula defined in MetadataItemJaql returned from chat response.
@@ -5032,7 +5032,7 @@ class Ti {
5032
5032
  */
5033
5033
  translateToSimple(e) {
5034
5034
  try {
5035
- const { jaql: t, chartRecommendations: n, queryTitle: i } = Ft(e);
5035
+ const { jaql: t, chartRecommendations: n, queryTitle: i } = Rt(e);
5036
5036
  return {
5037
5037
  model: t.datasource.title,
5038
5038
  metadata: t.metadata.map((r) => this.simplifyMetadataItem(r)),
@@ -5040,7 +5040,7 @@ class Ti {
5040
5040
  queryTitle: this.getQueryTitleWithChartType(i, n)
5041
5041
  };
5042
5042
  } catch (t) {
5043
- return console.error("Error running toSimpleQuery", t), Kt;
5043
+ return console.error("Error running toSimpleQuery", t), Ft;
5044
5044
  }
5045
5045
  }
5046
5046
  /**
@@ -5050,14 +5050,14 @@ class Ti {
5050
5050
  * @returns The YAML string representing the simple query model
5051
5051
  */
5052
5052
  stringifySimple(e) {
5053
- const r = e, { queryTitle: t } = r, n = Dt(r, ["queryTitle"]), i = new xt.Document(n);
5054
- return i.commentBefore = ` ${zs(t)}`, i.directives && (i.directives.docStart = !0), String(i);
5053
+ const r = e, { queryTitle: t } = r, n = Kt(r, ["queryTitle"]), i = new Zt.Document(n);
5054
+ return i.commentBefore = ` ${en(t)}`, i.directives && (i.directives.docStart = !0), String(i);
5055
5055
  }
5056
5056
  /**
5057
5057
  * Returns the query template.
5058
5058
  */
5059
5059
  getQueryTemplate() {
5060
- return Xs(yi, { dataSourceTitle: this.contextTitle });
5060
+ return tn(gi, { dataSourceTitle: this.contextTitle });
5061
5061
  }
5062
5062
  /**
5063
5063
  * Parses a YAML string to Simple Query Model.
@@ -5067,12 +5067,12 @@ class Ti {
5067
5067
  */
5068
5068
  parseSimple(e) {
5069
5069
  try {
5070
- const t = xt.parseDocument(e), { commentBefore: n } = t, i = xs(t.toJS());
5070
+ const t = Zt.parseDocument(e), { commentBefore: n } = t, i = sn(t.toJS());
5071
5071
  return i.queryTitle = (n == null ? void 0 : n.trim()) || "", i;
5072
5072
  } catch (t) {
5073
5073
  console.error("Error parsing the YAML string", t);
5074
5074
  }
5075
- return Kt;
5075
+ return Ft;
5076
5076
  }
5077
5077
  /**
5078
5078
  * Expands Chart Recommendations.
@@ -5084,7 +5084,7 @@ class Ti {
5084
5084
  if (!e || !("dataOptions" in e))
5085
5085
  return {};
5086
5086
  const { chartType: t, dataOptions: n } = e;
5087
- return { chartFamily: rn(t), chartType: t, axesMapping: n };
5087
+ return { chartFamily: on(t), chartType: t, axesMapping: n };
5088
5088
  }
5089
5089
  /**
5090
5090
  * Expands MetadataItemJaql by adding table, column, datatype, and title
@@ -5131,42 +5131,53 @@ class Ti {
5131
5131
  * @returns The Expanded Query Model
5132
5132
  */
5133
5133
  translateToExpanded(e) {
5134
- const { model: t, metadata: n, chart: i, queryTitle: r } = Ft(e), o = {
5134
+ const { model: t, metadata: n, chart: i, queryTitle: r } = Rt(e), o = {
5135
5135
  datasource: { title: t },
5136
5136
  metadata: n.map((a) => this.expandMetadataItem(a))
5137
5137
  }, l = this.expandChartRecommendations(i);
5138
5138
  return { jaql: o, chartRecommendations: l, queryTitle: r };
5139
5139
  }
5140
5140
  }
5141
- const Ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5141
+ const Ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5142
5142
  __proto__: null
5143
- }, Symbol.toStringTag, { value: "Module" })), gi = "executeQueryTmpl", bi = (s, e, t) => {
5143
+ }, Symbol.toStringTag, { value: "Module" })), bi = "executeQueryTmpl", wi = "executePivotQueryTmpl", Si = (s, e, t) => {
5144
5144
  const n = {
5145
- dataSourceString: Zs(s.dataSource),
5146
- dimensionsString: "[]",
5147
- // TODO
5148
- measuresString: "[]",
5145
+ dataSourceString: es(s.dataSource),
5146
+ dimensionsString: at(s.dimensions || []),
5147
+ measuresString: at(s.measures || []),
5148
+ filtersString: nn(s.filters),
5149
+ highlightsString: at(s.highlights || []),
5150
+ extraImportsString: ts(s.filters || [])
5151
+ };
5152
+ return ss(t, n, e);
5153
+ }, ki = (s, e, t) => {
5154
+ const n = {
5155
+ dataSourceString: es(s.dataSource),
5156
+ rowsString: "[]",
5149
5157
  // TODO
5150
- filtersString: en(s.filters),
5151
- highlightsString: "[]",
5158
+ valuesString: "[]",
5152
5159
  // TODO
5153
- extraImportsString: tn(s.filters || [])
5160
+ extraImportsString: ts(s.filters || [])
5154
5161
  };
5155
- return sn(t, n, e);
5156
- }, wi = ({
5162
+ return ss(t, n, e);
5163
+ }, Ni = ({
5157
5164
  queryParams: s,
5158
5165
  uiFramework: e = "react"
5159
- }) => bi(s, e, gi), Si = (s) => wi(s), Ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5166
+ }) => Si(s, e, bi), Oi = ({
5167
+ pivotQueryParams: s,
5168
+ uiFramework: e = "react"
5169
+ }) => ki(s, e, wi), Ti = (s) => Ni(s), Ii = (s) => Oi(s), _i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5160
5170
  __proto__: null,
5161
- toExecuteQueryCode: Si
5171
+ toExecutePivotQueryCode: Ii,
5172
+ toExecuteQueryCode: Ti
5162
5173
  }, Symbol.toStringTag, { value: "Module" }));
5163
5174
  export {
5164
- $i as EMPTY_EXPANDED_QUERY_MODEL,
5165
- Kt as EMPTY_SIMPLE_QUERY_MODEL,
5166
- Ti as QueryTranslator,
5167
- Ii as dashboardComposer,
5168
- Ai as executeQueryComposer,
5169
- Ci as isByIdWidgetCodeParams,
5170
- _i as isClientSideWidgetCodeParams,
5171
- Mi as widgetComposer
5175
+ Bi as EMPTY_EXPANDED_QUERY_MODEL,
5176
+ Ft as EMPTY_SIMPLE_QUERY_MODEL,
5177
+ $i as QueryTranslator,
5178
+ Ci as dashboardComposer,
5179
+ _i as executeQueryComposer,
5180
+ Pi as isByIdWidgetCodeParams,
5181
+ ji as isClientSideWidgetCodeParams,
5182
+ Di as widgetComposer
5172
5183
  };