@kong-ui-public/entities-shared 3.1.2-pr.1382.ed8f0b6a.0 → 3.1.3

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.
@@ -1,4 +1,4 @@
1
- import { inject as Fn, ref as B, unref as E, computed as w, watch as Ae, defineComponent as H, openBlock as g, createBlock as M, resolveDynamicComponent as pe, normalizeClass as de, withCtx as b, createElementBlock as I, createElementVNode as L, toDisplayString as $, createCommentVNode as U, Fragment as se, renderList as ae, resolveComponent as K, createVNode as R, createTextVNode as Y, useCssVars as $t, useSlots as et, renderSlot as z, createSlots as ke, normalizeProps as On, guardReactiveProps as $n, mergeProps as Ln, normalizeStyle as $e, pushScopeId as Le, popScopeId as Ne, onBeforeMount as Lt, withModifiers as We, onMounted as Nn, onUnmounted as Rn, withDirectives as he, vShow as me, withKeys as Bn, Teleport as Kn } from "vue";
1
+ import { inject as Fn, ref as K, unref as E, computed as A, watch as Ae, defineComponent as H, openBlock as m, createBlock as M, resolveDynamicComponent as pe, normalizeClass as de, withCtx as x, createElementBlock as I, createElementVNode as L, toDisplayString as O, createCommentVNode as D, Fragment as se, renderList as ae, resolveComponent as B, createVNode as R, createTextVNode as V, useCssVars as $t, useSlots as Xe, renderSlot as Y, createSlots as ke, normalizeProps as On, guardReactiveProps as $n, mergeProps as Ln, normalizeStyle as Oe, pushScopeId as $e, popScopeId as Le, onBeforeMount as Lt, withModifiers as ze, onMounted as Nn, onUnmounted as Rn, withDirectives as me, vShow as ge, withKeys as Bn, Teleport as Kn } from "vue";
2
2
  import st from "axios";
3
3
  import { createI18n as Mn, i18nTComponent as Dn } from "@kong-ui-public/i18n";
4
4
  import { BadgeMethodAppearances as Un } from "@kong/kongponents";
@@ -40,7 +40,7 @@ function Vn() {
40
40
  }
41
41
  };
42
42
  }
43
- const He = "khcp-user-table-preferences", Yn = {
43
+ const Pe = "khcp-user-table-preferences", Yn = {
44
44
  pageSize: 30,
45
45
  sortColumnKey: void 0,
46
46
  sortColumnOrder: void 0
@@ -55,14 +55,14 @@ function zn() {
55
55
  return;
56
56
  }
57
57
  }, t = () => {
58
- const n = e(localStorage.getItem(He));
58
+ const n = e(localStorage.getItem(Pe));
59
59
  return !n || !Object.keys(n).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(n));
60
60
  };
61
61
  return {
62
62
  setTablePreferences: (n, r) => {
63
63
  try {
64
64
  const i = t();
65
- i.set(n, r), localStorage.setItem(He, JSON.stringify(Object.fromEntries(i.entries())));
65
+ i.set(n, r), localStorage.setItem(Pe, JSON.stringify(Object.fromEntries(i.entries())));
66
66
  } catch (i) {
67
67
  console.error("useTablePreferences(setTablePreferences)", i);
68
68
  }
@@ -72,11 +72,11 @@ function zn() {
72
72
  return (r == null ? void 0 : r.get(n)) || void 0 || Yn;
73
73
  },
74
74
  deleteAllTablePreferences: () => {
75
- localStorage.removeItem(He);
75
+ localStorage.removeItem(Pe);
76
76
  }
77
77
  };
78
78
  }
79
- function tt(e = {}) {
79
+ function et(e = {}) {
80
80
  const { getAxiosInstance: t } = Hn();
81
81
  return {
82
82
  axiosInstance: t(e)
@@ -190,7 +190,7 @@ const Wn = {
190
190
  validationErrors: nr,
191
191
  toggleModal: rr
192
192
  };
193
- function qe() {
193
+ function je() {
194
194
  const e = Mn("en-us", ir);
195
195
  return {
196
196
  i18n: e,
@@ -247,85 +247,85 @@ function ar(e, t, n, r = {
247
247
  searchKeys: ["id"]
248
248
  }) {
249
249
  n || (n = "1000");
250
- const { axiosInstance: i } = tt(e.axiosRequestConfig), { i18n: { t: a } } = qe(), { debounce: o } = Vn(), l = o(async (h) => {
251
- await Z(h);
252
- }, 200), s = B(!1), u = B(""), d = B(""), c = B([]), m = B([]), p = B(void 0), y = E(t);
253
- let v = `${e.apiBaseUrl}${y}`;
254
- e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
250
+ const { axiosInstance: i } = et(e.axiosRequestConfig), { i18n: { t: a } } = je(), { debounce: o } = Vn(), l = o(async (p) => {
251
+ await Z(p);
252
+ }, 200), s = K(!1), u = K(""), d = K(""), c = K([]), h = K([]), f = K(void 0), v = E(t);
253
+ let b = `${e.apiBaseUrl}${v}`;
254
+ e.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
255
255
  const { isValidUuid: _ } = Nt(), N = async () => {
256
256
  try {
257
257
  s.value = !0;
258
- const { data: h } = await i.get(`${v}?size=${n}`);
259
- h != null && h.next || (p.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : []), m.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : [], c.value = m.value;
258
+ const { data: p } = await i.get(`${b}?size=${n}`);
259
+ p != null && p.next || (f.value = r.fetchedItemsKey in p ? p[r.fetchedItemsKey] : []), h.value = r.fetchedItemsKey in p ? p[r.fetchedItemsKey] : [], c.value = h.value;
260
260
  } catch {
261
261
  c.value = [], u.value = a("debouncedFilter.errors.fetch");
262
262
  } finally {
263
263
  s.value = !1;
264
264
  }
265
- }, k = B(""), Z = async (h) => {
266
- var A, f, S;
267
- if (k.value !== h)
268
- if (k.value = h || "", p.value === void 0)
265
+ }, k = K(""), Z = async (p) => {
266
+ var y, g, $;
267
+ if (k.value !== p)
268
+ if (k.value = p || "", f.value === void 0)
269
269
  try {
270
270
  if (s.value = !0, u.value = "", d.value = "", e.app === "konnect") {
271
- let O = v + "";
272
- h && (O += `/${h}`);
273
- const { data: x } = await i.get(`${O}?size=${n}`);
274
- r.fetchedItemsKey in x ? c.value = x[r.fetchedItemsKey] : x != null && x.id ? c.value = [x] : c.value = [];
275
- } else if (h) {
276
- const O = [];
277
- _(h) && r.searchKeys.includes("id") ? O.push((async () => {
278
- const { data: T } = await i.get(`${v}/${h}`);
271
+ let F = b + "";
272
+ p && (F += `/${p}`);
273
+ const { data: w } = await i.get(`${F}?size=${n}`);
274
+ r.fetchedItemsKey in w ? c.value = w[r.fetchedItemsKey] : w != null && w.id ? c.value = [w] : c.value = [];
275
+ } else if (p) {
276
+ const F = [];
277
+ _(p) && r.searchKeys.includes("id") ? F.push((async () => {
278
+ const { data: T } = await i.get(`${b}/${p}`);
279
279
  return [T[r.fetchedItemsKey] ?? T];
280
- })()) : O.push(
280
+ })()) : F.push(
281
281
  ...r.searchKeys.filter((T) => T !== "id").map(async (T) => {
282
- const { data: F } = await i.get(`${v}?${T}=${h}`);
283
- return F[r.fetchedItemsKey];
282
+ const { data: S } = await i.get(`${b}?${T}=${p}`);
283
+ return S[r.fetchedItemsKey];
284
284
  })
285
285
  );
286
- const x = await Promise.all(O), j = /* @__PURE__ */ new Set();
287
- c.value = [], (A = x == null ? void 0 : x.forEach) == null || A.call(x, (T) => {
288
- var F;
289
- (F = T == null ? void 0 : T.forEach) == null || F.call(T, (D) => {
290
- j.has(D.id) || (j.add(D.id), c.value.push(D));
286
+ const w = await Promise.all(F), U = /* @__PURE__ */ new Set();
287
+ c.value = [], (y = w == null ? void 0 : w.forEach) == null || y.call(w, (T) => {
288
+ var S;
289
+ (S = T == null ? void 0 : T.forEach) == null || S.call(T, (j) => {
290
+ U.has(j.id) || (U.add(j.id), c.value.push(j));
291
291
  });
292
292
  });
293
293
  } else
294
- c.value = m.value;
295
- } catch (O) {
296
- ((f = O == null ? void 0 : O.response) == null ? void 0 : f.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (c.value = [], u.value = a("debouncedFilter.errors.fetch"));
294
+ c.value = h.value;
295
+ } catch (F) {
296
+ ((g = F == null ? void 0 : F.response) == null ? void 0 : g.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (c.value = [], u.value = a("debouncedFilter.errors.fetch"));
297
297
  } finally {
298
298
  s.value = !1;
299
299
  }
300
300
  else
301
- s.value = !0, d.value = "", h ? (c.value = (S = p.value) == null ? void 0 : S.filter((O) => {
302
- var j;
303
- let x = !1;
301
+ s.value = !0, d.value = "", p ? (c.value = ($ = f.value) == null ? void 0 : $.filter((F) => {
302
+ var U;
303
+ let w = !1;
304
304
  for (const T of r.searchKeys) {
305
- const F = typeof O[T] == "string" ? (j = O[T]) == null ? void 0 : j.toLowerCase() : O[T];
306
- F != null && F.includes(h.toLowerCase()) && (x = !0);
305
+ const S = typeof F[T] == "string" ? (U = F[T]) == null ? void 0 : U.toLowerCase() : F[T];
306
+ S != null && S.includes(p.toLowerCase()) && (w = !0);
307
307
  }
308
- return x;
309
- }), (!c.value || !c.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : c.value = p.value, s.value = !1;
308
+ return w;
309
+ }), (!c.value || !c.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : c.value = f.value, s.value = !1;
310
310
  };
311
311
  return {
312
312
  loading: s,
313
313
  error: u,
314
314
  validationError: d,
315
315
  results: c,
316
- allRecords: p,
316
+ allRecords: f,
317
317
  loadItems: N,
318
318
  debouncedQueryChange: l
319
319
  };
320
320
  }
321
321
  function or(e, t) {
322
- const n = E(t), r = w(
322
+ const n = E(t), r = A(
323
323
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
324
324
  );
325
325
  return r.value.search = "", (i) => `${r.value.href}/${i}`;
326
326
  }
327
327
  function lr() {
328
- const { i18n: { t: e } } = qe();
328
+ const { i18n: { t: e } } = je();
329
329
  return {
330
330
  getMessageFromError: (n) => {
331
331
  var r, i, a, o;
@@ -366,25 +366,25 @@ function sr(e) {
366
366
  }
367
367
  }
368
368
  function Rt(e, t) {
369
- const n = B(E(e)), r = B(E(t)), i = w(
369
+ const n = K(E(e)), r = K(E(t)), i = A(
370
370
  () => !!(n.value.app === "konnect" || n.value.isExactMatch)
371
- ), a = w(
371
+ ), a = A(
372
372
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
373
373
  );
374
374
  return (o) => {
375
- const { page: l, pageSize: s, offset: u, sortColumnKey: d, sortColumnOrder: c, query: m } = o;
375
+ const { page: l, pageSize: s, offset: u, sortColumnKey: d, sortColumnOrder: c, query: h } = o;
376
376
  try {
377
- let p = new URL(a.value.href);
378
- return i.value && m ? (p.search = "", p = n.value.isExactMatch ? new URL(`${p.href}/${m}/`) : new URL(`${p.href}?filter[name][contains]=${m}`)) : (i.value || new URLSearchParams(m).forEach((y, v) => {
379
- p.searchParams.append(v, y);
380
- }), d && p.searchParams.append("sort_by", d), c === "desc" && p.searchParams.append("sort_desc", "1"), p.searchParams.append("size", String(s))), u && l !== 1 && p.searchParams.append("offset", String(u)), p.href;
381
- } catch (p) {
382
- return console.error("RouteList(fetcher)", p), r.value;
377
+ let f = new URL(a.value.href);
378
+ return i.value && h ? (f.search = "", f = n.value.isExactMatch ? new URL(`${f.href}/${h}/`) : new URL(`${f.href}?filter[name][contains]=${h}`)) : (i.value || new URLSearchParams(h).forEach((v, b) => {
379
+ f.searchParams.append(b, v);
380
+ }), d && f.searchParams.append("sort_by", d), c === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(s))), u && l !== 1 && f.searchParams.append("offset", String(u)), f.href;
381
+ } catch (f) {
382
+ return console.error("RouteList(fetcher)", f), r.value;
383
383
  }
384
384
  };
385
385
  }
386
386
  function cr(e, t, n = "data") {
387
- const r = E(t), { axiosInstance: i } = tt(e.axiosRequestConfig), a = Rt(e, r), o = B({
387
+ const r = E(t), { axiosInstance: i } = et(e.axiosRequestConfig), a = Rt(e, r), o = K({
388
388
  status: be.Idle
389
389
  });
390
390
  return { fetcher: async (s) => {
@@ -396,22 +396,22 @@ function cr(e, t, n = "data") {
396
396
  const c = await i.get(d);
397
397
  if (c.status >= 400)
398
398
  throw c;
399
- const m = c.data, p = n && n.replace(/[^\w-_]/gi, "");
400
- let y;
401
- m[p] && Array.isArray(m[p]) ? y = m[p] : Array.isArray(m) ? y = m : y = Object.keys(m).length ? [m] : [];
402
- const v = {
403
- data: y,
404
- total: y.length,
405
- ...m.offset ? {
399
+ const h = c.data, f = n && n.replace(/[^\w-_]/gi, "");
400
+ let v;
401
+ h[f] && Array.isArray(h[f]) ? v = h[f] : Array.isArray(h) ? v = h : v = Object.keys(h).length ? [h] : [];
402
+ const b = {
403
+ data: v,
404
+ total: v.length,
405
+ ...h.offset ? {
406
406
  pagination: {
407
- offset: m.offset
407
+ offset: h.offset
408
408
  }
409
409
  } : null
410
410
  };
411
411
  return o.value = {
412
412
  status: be.Idle,
413
- response: v
414
- }, v;
413
+ response: b
414
+ }, b;
415
415
  } catch (d) {
416
416
  const c = {
417
417
  data: [],
@@ -492,21 +492,21 @@ function gr(e) {
492
492
  return !(o && pt(i, o, "<") || l && pt(i, l, ">"));
493
493
  }
494
494
  function yr(e) {
495
- const t = B(0), n = B(0), r = B(!1);
495
+ const t = K(0), n = K(0), r = K(!1);
496
496
  return Ae(e, (a) => {
497
497
  a && !r.value && (t.value = a.offsetWidth, n.value = a.scrollWidth, r.value = !0);
498
498
  }), {
499
- isTruncated: w(() => t.value < n.value)
499
+ isTruncated: A(() => t.value < n.value)
500
500
  };
501
501
  }
502
502
  function vr() {
503
- const { i18n: { t: e } } = qe();
503
+ const { i18n: { t: e } } = je();
504
504
  return {
505
505
  utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
506
506
  };
507
507
  }
508
- const W = {
509
- useAxios: tt,
508
+ const z = {
509
+ useAxios: et,
510
510
  useDebouncedFilter: ar,
511
511
  useDeleteUrlBuilder: or,
512
512
  useErrors: lr,
@@ -515,7 +515,7 @@ const W = {
515
515
  useFetchUrlBuilder: Rt,
516
516
  useHelpers: Nt,
517
517
  useStringHelpers: ur,
518
- useI18n: qe,
518
+ useI18n: je,
519
519
  useGatewayFeatureSupported: gr,
520
520
  useTruncationDetector: yr,
521
521
  useValidators: vr
@@ -539,21 +539,21 @@ const W = {
539
539
  }
540
540
  },
541
541
  setup(e) {
542
- const t = e, { i18n: { t: n } } = W.useI18n(), { convertKeyToTitle: r } = W.useStringHelpers(), i = w(() => t.item.key ?? "json-array-item"), a = w(() => t.item.value ?? t.item), o = w(() => {
542
+ const t = e, { i18n: { t: n } } = z.useI18n(), { convertKeyToTitle: r } = z.useStringHelpers(), i = A(() => t.item.key ?? "json-array-item"), a = A(() => t.item.value ?? t.item), o = A(() => {
543
543
  const s = JSON.parse(JSON.stringify(a.value));
544
544
  return t.isArrayItem && delete s.name, s;
545
- }), l = w(() => {
545
+ }), l = A(() => {
546
546
  var s;
547
547
  return t.isArrayItem ? (s = a.value) != null && s.name ? r(a.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
548
548
  });
549
- return (s, u) => (g(), M(pe(e.isArrayItem ? "fieldset" : "div"), {
549
+ return (s, u) => (m(), M(pe(e.isArrayItem ? "fieldset" : "div"), {
550
550
  class: de(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
551
551
  }, {
552
- default: b(() => [
553
- e.isArrayItem ? (g(), I("legend", br, [
554
- L("b", null, $(l.value), 1)
555
- ])) : U("", !0),
556
- (g(!0), I(se, null, ae(Object.keys(o.value), (d, c) => (g(), M(Dt, {
552
+ default: x(() => [
553
+ e.isArrayItem ? (m(), I("legend", br, [
554
+ L("b", null, O(l.value), 1)
555
+ ])) : D("", !0),
556
+ (m(!0), I(se, null, ae(Object.keys(o.value), (d, c) => (m(), M(Dt, {
557
557
  key: `${i.value}-property-${c}`,
558
558
  item: {
559
559
  key: d,
@@ -580,17 +580,17 @@ const W = {
580
580
  },
581
581
  emits: ["navigation-click"],
582
582
  setup(e) {
583
- const { i18n: { t } } = W.useI18n();
583
+ const { i18n: { t } } = z.useI18n();
584
584
  return (n, r) => {
585
- const i = K("KButton");
586
- return g(), I("div", null, [
585
+ const i = B("KButton");
586
+ return m(), I("div", null, [
587
587
  R(i, {
588
588
  appearance: "tertiary",
589
589
  class: "navigation-button",
590
590
  onClick: r[0] || (r[0] = (a) => n.$emit("navigation-click", e.item))
591
591
  }, {
592
- default: b(() => [
593
- Y($(e.item.value || E(t)("baseConfigCard.commonFields.link")), 1)
592
+ default: x(() => [
593
+ V(O(e.item.value || E(t)("baseConfigCard.commonFields.link")), 1)
594
594
  ]),
595
595
  _: 1
596
596
  })
@@ -606,14 +606,14 @@ const W = {
606
606
  }
607
607
  },
608
608
  setup(e) {
609
- const { i18n: { t } } = W.useI18n();
609
+ const { i18n: { t } } = z.useI18n();
610
610
  return (n, r) => {
611
- const i = K("KBadge");
612
- return g(), M(i, {
611
+ const i = B("KBadge");
612
+ return m(), M(i, {
613
613
  appearance: e.status ? "success" : "neutral"
614
614
  }, {
615
- default: b(() => [
616
- Y($(e.status ? E(t)("baseConfigCard.statusBadge.enabledLabel") : E(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
615
+ default: x(() => [
616
+ V(O(e.status ? E(t)("baseConfigCard.statusBadge.enabledLabel") : E(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
617
617
  ]),
618
618
  _: 1
619
619
  }, 8, ["appearance"]);
@@ -642,13 +642,13 @@ const W = {
642
642
  },
643
643
  emits: ["navigation-click"],
644
644
  setup(e, { emit: t }) {
645
- $t((y) => ({
645
+ $t((v) => ({
646
646
  "07753575": d.value ? "none" : `solid ${E(Tr)} ${E(Ar)}`,
647
647
  "32d44ea8": u.value && l.value ? "block" : "flex",
648
648
  "5036b738": u.value && l.value ? "100%" : n.slim ? "50%" : "25%",
649
649
  "5038fd13": u.value && l.value ? "100%" : n.slim ? "50%" : "75%"
650
650
  }));
651
- const n = e, r = t, i = et(), { i18n: { t: a, formatUnixTimeStamp: o } } = W.useI18n(), l = w(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = w(() => !!(n.item.tooltip || i["label-tooltip"])), u = w(() => n.item.type === P.Json || n.item.type === P.JsonArray), d = w(() => n.item.type === P.JsonArray), c = w(() => {
651
+ const n = e, r = t, i = Xe(), { i18n: { t: a, formatUnixTimeStamp: o } } = z.useI18n(), l = A(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = A(() => !!(n.item.tooltip || i["label-tooltip"])), u = A(() => n.item.type === P.Json || n.item.type === P.JsonArray), d = A(() => n.item.type === P.JsonArray), c = A(() => {
652
652
  switch (n.item.type) {
653
653
  case P.ID:
654
654
  return {
@@ -718,8 +718,8 @@ const W = {
718
718
  attrs: {
719
719
  "data-testid": `${n.item.key}-internal-link`,
720
720
  item: n.item,
721
- onNavigationClick: (y) => {
722
- r("navigation-click", y);
721
+ onNavigationClick: (v) => {
722
+ r("navigation-click", v);
723
723
  }
724
724
  }
725
725
  };
@@ -758,29 +758,29 @@ const W = {
758
758
  text: n.item.value
759
759
  };
760
760
  }
761
- }), m = B(), { isTruncated: p } = W.useTruncationDetector(m);
762
- return (y, v) => {
763
- const _ = K("KLabel"), N = K("KBadge"), k = K("KCopy"), Z = K("KTooltip");
764
- return g(), I("div", $r, [
761
+ }), h = K(), { isTruncated: f } = z.useTruncationDetector(h);
762
+ return (v, b) => {
763
+ const _ = B("KLabel"), N = B("KBadge"), k = B("KCopy"), Z = B("KTooltip");
764
+ return m(), I("div", $r, [
765
765
  L("div", {
766
766
  class: "config-card-details-label",
767
767
  "data-testid": `${e.item.key}-label`
768
768
  }, [
769
- z(y.$slots, "label", { item: e.item }, () => [
769
+ Y(v.$slots, "label", { item: e.item }, () => [
770
770
  R(_, { "tooltip-attributes": { maxWidth: "500px" } }, ke({
771
- default: b(() => [
772
- Y($(e.item.label) + " ", 1)
771
+ default: x(() => [
772
+ V(O(e.item.label) + " ", 1)
773
773
  ]),
774
774
  _: 2
775
775
  }, [
776
776
  s.value ? {
777
777
  name: "tooltip",
778
- fn: b(() => [
778
+ fn: x(() => [
779
779
  L("div", {
780
780
  "data-testid": `${e.item.key}-label-tooltip`
781
781
  }, [
782
- z(y.$slots, "label-tooltip", {}, () => [
783
- Y($(e.item.tooltip), 1)
782
+ Y(v.$slots, "label-tooltip", {}, () => [
783
+ V(O(e.item.tooltip), 1)
784
784
  ], !0)
785
785
  ], 8, Nr)
786
786
  ]),
@@ -793,83 +793,83 @@ const W = {
793
793
  class: "config-card-details-value",
794
794
  "data-testid": `${e.item.key}-property-value`
795
795
  }, [
796
- z(y.$slots, e.item.key, {
796
+ Y(v.$slots, e.item.key, {
797
797
  rowValue: e.item.value
798
798
  }, () => [
799
- l.value ? (g(), I("div", Kr, [
800
- (g(), M(pe(c.value.tag), On($n(c.value.attrs)), {
801
- default: b(() => [
802
- c.value.additionalComponent === "KBadge" ? (g(), I("div", {
799
+ l.value ? (m(), I("div", Kr, [
800
+ (m(), M(pe(c.value.tag), On($n(c.value.attrs)), {
801
+ default: x(() => [
802
+ c.value.additionalComponent === "KBadge" ? (m(), I("div", {
803
803
  key: 0,
804
804
  "data-testid": `${e.item.key}-badge-tags`
805
805
  }, [
806
- (g(!0), I(se, null, ae(e.item.value, (h, A) => (g(), M(N, {
807
- key: `${e.item.key}-badge-tag-${A}`,
806
+ (m(!0), I(se, null, ae(e.item.value, (p, y) => (m(), M(N, {
807
+ key: `${e.item.key}-badge-tag-${y}`,
808
808
  class: "config-badge",
809
- "data-testid": `${e.item.key}-badge-tag-${A}`,
810
- tooltip: h,
809
+ "data-testid": `${e.item.key}-badge-tag-${y}`,
810
+ tooltip: p,
811
811
  "truncation-tooltip": ""
812
812
  }, {
813
- default: b(() => [
814
- Y($(h), 1)
813
+ default: x(() => [
814
+ V(O(p), 1)
815
815
  ]),
816
816
  _: 2
817
817
  }, 1032, ["data-testid", "tooltip"]))), 128))
818
- ], 8, Mr)) : U("", !0),
819
- c.value.additionalComponent === "KCopy" ? (g(), I("div", {
818
+ ], 8, Mr)) : D("", !0),
819
+ c.value.additionalComponent === "KCopy" ? (m(), I("div", {
820
820
  key: 1,
821
821
  class: "copy-uuid-array",
822
822
  "data-testid": `${e.item.key}-copy-uuid-array`
823
823
  }, [
824
- (g(!0), I(se, null, ae(e.item.value, (h, A) => (g(), M(k, Ln(c.value.childAttrs, {
825
- key: `${e.item.key}-copy-uuid-${A}`,
826
- "data-testid": `${e.item.key}-copy-uuid-${A}`,
827
- text: h
824
+ (m(!0), I(se, null, ae(e.item.value, (p, y) => (m(), M(k, Ln({ ref_for: !0 }, c.value.childAttrs, {
825
+ key: `${e.item.key}-copy-uuid-${y}`,
826
+ "data-testid": `${e.item.key}-copy-uuid-${y}`,
827
+ text: p
828
828
  }), null, 16, ["data-testid", "text"]))), 128))
829
- ], 8, Dr)) : c.value.additionalComponent === "KMethodBadge" ? (g(), I("div", {
829
+ ], 8, Dr)) : c.value.additionalComponent === "KMethodBadge" ? (m(), I("div", {
830
830
  key: 2,
831
831
  class: "method-badge-array",
832
832
  "data-testid": `${e.item.key}-badge-methods`
833
833
  }, [
834
- (g(!0), I(se, null, ae(e.item.value, (h, A) => (g(), M(N, {
835
- key: `${e.item.key}-badge-method-${A}`,
836
- appearance: Object.values(E(Un)).includes(h.toLowerCase()) ? h.toLowerCase() : "custom",
834
+ (m(!0), I(se, null, ae(e.item.value, (p, y) => (m(), M(N, {
835
+ key: `${e.item.key}-badge-method-${y}`,
836
+ appearance: Object.values(E(Un)).includes(p.toLowerCase()) ? p.toLowerCase() : "custom",
837
837
  class: "config-badge",
838
- "data-testid": `${e.item.key}-badge-method-${A}`
838
+ "data-testid": `${e.item.key}-badge-method-${y}`
839
839
  }, {
840
- default: b(() => [
841
- Y($(h), 1)
840
+ default: x(() => [
841
+ V(O(p), 1)
842
842
  ]),
843
843
  _: 2
844
844
  }, 1032, ["appearance", "data-testid"]))), 128))
845
- ], 8, Ur)) : U("", !0),
846
- c.value.additionalComponent === "JsonCardItem" ? (g(), I("div", {
845
+ ], 8, Ur)) : D("", !0),
846
+ c.value.additionalComponent === "JsonCardItem" ? (m(), I("div", {
847
847
  key: 3,
848
848
  "data-testid": `${n.item.key}-json-array-content`
849
849
  }, [
850
- (g(!0), I(se, null, ae(e.item.value, (h, A) => (g(), M(Mt, {
851
- key: `json-array-item-${A}`,
852
- index: A,
850
+ (m(!0), I(se, null, ae(e.item.value, (p, y) => (m(), M(Mt, {
851
+ key: `json-array-item-${y}`,
852
+ index: y,
853
853
  "is-array-item": "",
854
- item: h
854
+ item: p
855
855
  }, null, 8, ["index", "item"]))), 128))
856
- ], 8, jr)) : (g(), M(Z, {
856
+ ], 8, jr)) : (m(), M(Z, {
857
857
  key: 4,
858
- text: E(p) ? e.item.value : ""
858
+ text: E(f) ? e.item.value : ""
859
859
  }, {
860
- default: b(() => [
860
+ default: x(() => [
861
861
  L("span", {
862
862
  ref_key: "textContent",
863
- ref: m,
863
+ ref: h,
864
864
  class: de(["attrs-data-text", { truncated: e.truncated }])
865
- }, $(c.value.text), 3)
865
+ }, O(c.value.text), 3)
866
866
  ]),
867
867
  _: 1
868
868
  }, 8, ["text"]))
869
869
  ]),
870
870
  _: 1
871
871
  }, 16))
872
- ])) : (g(), I("div", {
872
+ ])) : (m(), I("div", {
873
873
  key: 0,
874
874
  "data-testid": `${e.item.key}-no-value`
875
875
  }, " – ", 8, Br))
@@ -912,7 +912,7 @@ const W = {
912
912
  $t((i) => ({
913
913
  "4520e3ec": `${r.value}ch`
914
914
  }));
915
- const t = e, n = w(() => t.jsonRecord), r = w(() => {
915
+ const t = e, n = A(() => t.jsonRecord), r = A(() => {
916
916
  var o;
917
917
  if (!t.fetcherUrl)
918
918
  return 0;
@@ -920,14 +920,14 @@ const W = {
920
920
  return i.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? i[i.length - 1] : i[i.length - 2]).length;
921
921
  });
922
922
  return (i, a) => {
923
- const o = K("KBadge"), l = K("KCodeBlock");
924
- return g(), I("div", Hr, [
925
- t.fetcherUrl ? (g(), I("div", Vr, [
923
+ const o = B("KBadge"), l = B("KCodeBlock");
924
+ return m(), I("div", Hr, [
925
+ t.fetcherUrl ? (m(), I("div", Vr, [
926
926
  R(o, {
927
927
  appearance: t.requestMethod
928
928
  }, {
929
- default: b(() => [
930
- Y($(t.requestMethod), 1)
929
+ default: x(() => [
930
+ V(O(t.requestMethod), 1)
931
931
  ]),
932
932
  _: 1
933
933
  }, 8, ["appearance"]),
@@ -938,15 +938,15 @@ const W = {
938
938
  "single-line": "",
939
939
  theme: "dark"
940
940
  }, null, 8, ["code"])
941
- ])) : U("", !0),
942
- t.jsonRecord ? (g(), M(l, {
941
+ ])) : D("", !0),
942
+ t.jsonRecord ? (m(), M(l, {
943
943
  key: 1,
944
944
  id: "json-codeblock",
945
945
  class: de({ "json-content": t.fetcherUrl }),
946
946
  code: JSON.stringify(n.value, null, 2),
947
947
  language: "json",
948
948
  theme: "dark"
949
- }, null, 8, ["class", "code"])) : U("", !0)
949
+ }, null, 8, ["class", "code"])) : D("", !0)
950
950
  ]);
951
951
  };
952
952
  }
@@ -991,16 +991,16 @@ function qt(e, t) {
991
991
 
992
992
  ` + e.mark.snippet), r + " " + n) : r;
993
993
  }
994
- function Ee(e, t) {
994
+ function Ie(e, t) {
995
995
  Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = qt(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
996
996
  }
997
- Ee.prototype = Object.create(Error.prototype);
998
- Ee.prototype.constructor = Ee;
999
- Ee.prototype.toString = function(t) {
997
+ Ie.prototype = Object.create(Error.prototype);
998
+ Ie.prototype.constructor = Ie;
999
+ Ie.prototype.toString = function(t) {
1000
1000
  return this.name + ": " + qt(this, t);
1001
1001
  };
1002
- var te = Ee;
1003
- function Ve(e, t, n, r, i) {
1002
+ var te = Ie;
1003
+ function He(e, t, n, r, i) {
1004
1004
  var a = "", o = "", l = Math.floor(i / 2) - 1;
1005
1005
  return r - t > l && (a = " ... ", t = r - l + a.length), n - r > l && (o = " ...", n = r + l - o.length), {
1006
1006
  str: a + e.slice(t, n).replace(/\t/g, "→") + o,
@@ -1008,7 +1008,7 @@ function Ve(e, t, n, r, i) {
1008
1008
  // relative position
1009
1009
  };
1010
1010
  }
1011
- function Ye(e, t) {
1011
+ function Ve(e, t) {
1012
1012
  return G.repeat(" ", t - e.length) + e;
1013
1013
  }
1014
1014
  function ri(e, t) {
@@ -1020,24 +1020,24 @@ function ri(e, t) {
1020
1020
  o < 0 && (o = r.length - 1);
1021
1021
  var l = "", s, u, d = Math.min(e.line + t.linesAfter, i.length).toString().length, c = t.maxLength - (t.indent + d + 3);
1022
1022
  for (s = 1; s <= t.linesBefore && !(o - s < 0); s++)
1023
- u = Ve(
1023
+ u = He(
1024
1024
  e.buffer,
1025
1025
  r[o - s],
1026
1026
  i[o - s],
1027
1027
  e.position - (r[o] - r[o - s]),
1028
1028
  c
1029
- ), l = G.repeat(" ", t.indent) + Ye((e.line - s + 1).toString(), d) + " | " + u.str + `
1029
+ ), l = G.repeat(" ", t.indent) + Ve((e.line - s + 1).toString(), d) + " | " + u.str + `
1030
1030
  ` + l;
1031
- for (u = Ve(e.buffer, r[o], i[o], e.position, c), l += G.repeat(" ", t.indent) + Ye((e.line + 1).toString(), d) + " | " + u.str + `
1031
+ for (u = He(e.buffer, r[o], i[o], e.position, c), l += G.repeat(" ", t.indent) + Ve((e.line + 1).toString(), d) + " | " + u.str + `
1032
1032
  `, l += G.repeat("-", t.indent + d + 3 + u.pos) + `^
1033
1033
  `, s = 1; s <= t.linesAfter && !(o + s >= i.length); s++)
1034
- u = Ve(
1034
+ u = He(
1035
1035
  e.buffer,
1036
1036
  r[o + s],
1037
1037
  i[o + s],
1038
1038
  e.position - (r[o] - r[o + s]),
1039
1039
  c
1040
- ), l += G.repeat(" ", t.indent) + Ye((e.line + s + 1).toString(), d) + " | " + u.str + `
1040
+ ), l += G.repeat(" ", t.indent) + Ve((e.line + s + 1).toString(), d) + " | " + u.str + `
1041
1041
  `;
1042
1042
  return l.replace(/\n$/, "");
1043
1043
  }
@@ -1106,10 +1106,10 @@ function ci() {
1106
1106
  arguments[t].forEach(r);
1107
1107
  return e;
1108
1108
  }
1109
- function Je(e) {
1109
+ function We(e) {
1110
1110
  return this.extend(e);
1111
1111
  }
1112
- Je.prototype.extend = function(t) {
1112
+ We.prototype.extend = function(t) {
1113
1113
  var n = [], r = [];
1114
1114
  if (t instanceof X)
1115
1115
  r.push(t);
@@ -1130,10 +1130,10 @@ Je.prototype.extend = function(t) {
1130
1130
  if (!(a instanceof X))
1131
1131
  throw new te("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1132
1132
  });
1133
- var i = Object.create(Je.prototype);
1133
+ var i = Object.create(We.prototype);
1134
1134
  return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = mt(i, "implicit"), i.compiledExplicit = mt(i, "explicit"), i.compiledTypeMap = ci(i.compiledImplicit, i.compiledExplicit), i;
1135
1135
  };
1136
- var Pt = Je, Ht = new X("tag:yaml.org,2002:str", {
1136
+ var Pt = We, Ht = new X("tag:yaml.org,2002:str", {
1137
1137
  kind: "scalar",
1138
1138
  construct: function(e) {
1139
1139
  return e !== null ? e : "";
@@ -1394,7 +1394,7 @@ function Ei(e) {
1394
1394
  return e === null ? !1 : en.exec(e) !== null || tn.exec(e) !== null;
1395
1395
  }
1396
1396
  function Ti(e) {
1397
- var t, n, r, i, a, o, l, s = 0, u = null, d, c, m;
1397
+ var t, n, r, i, a, o, l, s = 0, u = null, d, c, h;
1398
1398
  if (t = en.exec(e), t === null && (t = tn.exec(e)), t === null)
1399
1399
  throw new Error("Date resolve error");
1400
1400
  if (n = +t[1], r = +t[2] - 1, i = +t[3], !t[4])
@@ -1404,7 +1404,7 @@ function Ti(e) {
1404
1404
  s += "0";
1405
1405
  s = +s;
1406
1406
  }
1407
- return t[9] && (d = +t[10], c = +(t[11] || 0), u = (d * 60 + c) * 6e4, t[9] === "-" && (u = -u)), m = new Date(Date.UTC(n, r, i, a, o, l, s)), u && m.setTime(m.getTime() - u), m;
1407
+ return t[9] && (d = +t[10], c = +(t[11] || 0), u = (d * 60 + c) * 6e4, t[9] === "-" && (u = -u)), h = new Date(Date.UTC(n, r, i, a, o, l, s)), u && h.setTime(h.getTime() - u), h;
1408
1408
  }
1409
1409
  function Fi(e) {
1410
1410
  return e.toISOString();
@@ -1422,12 +1422,12 @@ function Oi(e) {
1422
1422
  var rn = new X("tag:yaml.org,2002:merge", {
1423
1423
  kind: "scalar",
1424
1424
  resolve: Oi
1425
- }), nt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1425
+ }), tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1426
1426
  \r`;
1427
1427
  function $i(e) {
1428
1428
  if (e === null)
1429
1429
  return !1;
1430
- var t, n, r = 0, i = e.length, a = nt;
1430
+ var t, n, r = 0, i = e.length, a = tt;
1431
1431
  for (n = 0; n < i; n++)
1432
1432
  if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
1433
1433
  if (t < 0)
@@ -1437,13 +1437,13 @@ function $i(e) {
1437
1437
  return r % 8 === 0;
1438
1438
  }
1439
1439
  function Li(e) {
1440
- var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = nt, o = 0, l = [];
1440
+ var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = tt, o = 0, l = [];
1441
1441
  for (t = 0; t < i; t++)
1442
1442
  t % 4 === 0 && t && (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
1443
1443
  return n = i % 4 * 6, n === 0 ? (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)) : n === 18 ? (l.push(o >> 10 & 255), l.push(o >> 2 & 255)) : n === 12 && l.push(o >> 4 & 255), new Uint8Array(l);
1444
1444
  }
1445
1445
  function Ni(e) {
1446
- var t = "", n = 0, r, i, a = e.length, o = nt;
1446
+ var t = "", n = 0, r, i, a = e.length, o = tt;
1447
1447
  for (r = 0; r < a; r++)
1448
1448
  r % 3 === 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
1449
1449
  return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
@@ -1528,7 +1528,7 @@ var sn = new X("tag:yaml.org,2002:set", {
1528
1528
  kind: "mapping",
1529
1529
  resolve: Hi,
1530
1530
  construct: Vi
1531
- }), rt = Xt.extend({
1531
+ }), nt = Xt.extend({
1532
1532
  implicit: [
1533
1533
  nn,
1534
1534
  rn
@@ -1539,14 +1539,14 @@ var sn = new X("tag:yaml.org,2002:set", {
1539
1539
  ln,
1540
1540
  sn
1541
1541
  ]
1542
- }), fe = Object.prototype.hasOwnProperty, Ke = 1, cn = 2, un = 3, Me = 4, ze = 1, Yi = 2, gt = 3, zi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Wi = /[\x85\u2028\u2029]/, Ji = /[,\[\]\{\}]/, dn = /^(?:!|!!|![a-z\-]+!)$/i, fn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1542
+ }), fe = Object.prototype.hasOwnProperty, Be = 1, cn = 2, un = 3, Ke = 4, Ye = 1, Yi = 2, gt = 3, zi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Wi = /[\x85\u2028\u2029]/, Ji = /[,\[\]\{\}]/, dn = /^(?:!|!!|![a-z\-]+!)$/i, fn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1543
1543
  function yt(e) {
1544
1544
  return Object.prototype.toString.call(e);
1545
1545
  }
1546
1546
  function oe(e) {
1547
1547
  return e === 10 || e === 13;
1548
1548
  }
1549
- function ge(e) {
1549
+ function ye(e) {
1550
1550
  return e === 9 || e === 32;
1551
1551
  }
1552
1552
  function ne(e) {
@@ -1579,7 +1579,7 @@ var pn = new Array(256), hn = new Array(256);
1579
1579
  for (var ve = 0; ve < 256; ve++)
1580
1580
  pn[ve] = vt(ve) ? 1 : 0, hn[ve] = vt(ve);
1581
1581
  function ea(e, t) {
1582
- this.input = e, this.filename = t.filename || null, this.schema = t.schema || rt, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
1582
+ this.input = e, this.filename = t.filename || null, this.schema = t.schema || nt, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
1583
1583
  }
1584
1584
  function mn(e, t) {
1585
1585
  var n = {
@@ -1595,13 +1595,13 @@ function mn(e, t) {
1595
1595
  function C(e, t) {
1596
1596
  throw mn(e, t);
1597
1597
  }
1598
- function De(e, t) {
1598
+ function Me(e, t) {
1599
1599
  e.onWarning && e.onWarning.call(null, mn(e, t));
1600
1600
  }
1601
1601
  var bt = {
1602
1602
  YAML: function(t, n, r) {
1603
1603
  var i, a, o;
1604
- t.version !== null && C(t, "duplication of %YAML directive"), r.length !== 1 && C(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && C(t, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), o = parseInt(i[2], 10), a !== 1 && C(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 && De(t, "unsupported YAML version of the document");
1604
+ t.version !== null && C(t, "duplication of %YAML directive"), r.length !== 1 && C(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && C(t, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), o = parseInt(i[2], 10), a !== 1 && C(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Me(t, "unsupported YAML version of the document");
1605
1605
  },
1606
1606
  TAG: function(t, n, r) {
1607
1607
  var i, a;
@@ -1650,60 +1650,60 @@ function _e(e, t, n, r, i, a, o, l, s) {
1650
1650
  }) : t[i] = a, delete n[i];
1651
1651
  return t;
1652
1652
  }
1653
- function it(e) {
1653
+ function rt(e) {
1654
1654
  var t;
1655
1655
  t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : C(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1656
1656
  }
1657
- function J(e, t, n) {
1657
+ function W(e, t, n) {
1658
1658
  for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
1659
- for (; ge(i); )
1659
+ for (; ye(i); )
1660
1660
  i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
1661
1661
  if (t && i === 35)
1662
1662
  do
1663
1663
  i = e.input.charCodeAt(++e.position);
1664
1664
  while (i !== 10 && i !== 13 && i !== 0);
1665
1665
  if (oe(i))
1666
- for (it(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32; )
1666
+ for (rt(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32; )
1667
1667
  e.lineIndent++, i = e.input.charCodeAt(++e.position);
1668
1668
  else
1669
1669
  break;
1670
1670
  }
1671
- return n !== -1 && r !== 0 && e.lineIndent < n && De(e, "deficient indentation"), r;
1671
+ return n !== -1 && r !== 0 && e.lineIndent < n && Me(e, "deficient indentation"), r;
1672
1672
  }
1673
- function Pe(e) {
1673
+ function qe(e) {
1674
1674
  var t = e.position, n;
1675
1675
  return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || ne(n)));
1676
1676
  }
1677
- function at(e, t) {
1677
+ function it(e, t) {
1678
1678
  t === 1 ? e.result += " " : t > 1 && (e.result += G.repeat(`
1679
1679
  `, t - 1));
1680
1680
  }
1681
1681
  function ta(e, t, n) {
1682
- var r, i, a, o, l, s, u, d, c = e.kind, m = e.result, p;
1683
- if (p = e.input.charCodeAt(e.position), ne(p) || Ce(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), ne(i) || n && Ce(i)))
1682
+ var r, i, a, o, l, s, u, d, c = e.kind, h = e.result, f;
1683
+ if (f = e.input.charCodeAt(e.position), ne(f) || Ce(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (i = e.input.charCodeAt(e.position + 1), ne(i) || n && Ce(i)))
1684
1684
  return !1;
1685
- for (e.kind = "scalar", e.result = "", a = o = e.position, l = !1; p !== 0; ) {
1686
- if (p === 58) {
1685
+ for (e.kind = "scalar", e.result = "", a = o = e.position, l = !1; f !== 0; ) {
1686
+ if (f === 58) {
1687
1687
  if (i = e.input.charCodeAt(e.position + 1), ne(i) || n && Ce(i))
1688
1688
  break;
1689
- } else if (p === 35) {
1689
+ } else if (f === 35) {
1690
1690
  if (r = e.input.charCodeAt(e.position - 1), ne(r))
1691
1691
  break;
1692
1692
  } else {
1693
- if (e.position === e.lineStart && Pe(e) || n && Ce(p))
1693
+ if (e.position === e.lineStart && qe(e) || n && Ce(f))
1694
1694
  break;
1695
- if (oe(p))
1696
- if (s = e.line, u = e.lineStart, d = e.lineIndent, J(e, !1, -1), e.lineIndent >= t) {
1697
- l = !0, p = e.input.charCodeAt(e.position);
1695
+ if (oe(f))
1696
+ if (s = e.line, u = e.lineStart, d = e.lineIndent, W(e, !1, -1), e.lineIndent >= t) {
1697
+ l = !0, f = e.input.charCodeAt(e.position);
1698
1698
  continue;
1699
1699
  } else {
1700
1700
  e.position = o, e.line = s, e.lineStart = u, e.lineIndent = d;
1701
1701
  break;
1702
1702
  }
1703
1703
  }
1704
- l && (ue(e, a, o, !1), at(e, e.line - s), a = o = e.position, l = !1), ge(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
1704
+ l && (ue(e, a, o, !1), it(e, e.line - s), a = o = e.position, l = !1), ye(f) || (o = e.position + 1), f = e.input.charCodeAt(++e.position);
1705
1705
  }
1706
- return ue(e, a, o, !1), e.result ? !0 : (e.kind = c, e.result = m, !1);
1706
+ return ue(e, a, o, !1), e.result ? !0 : (e.kind = c, e.result = h, !1);
1707
1707
  }
1708
1708
  function na(e, t) {
1709
1709
  var n, r, i;
@@ -1716,7 +1716,7 @@ function na(e, t) {
1716
1716
  else
1717
1717
  return !0;
1718
1718
  else
1719
- oe(n) ? (ue(e, r, i, !0), at(e, J(e, !1, t)), r = i = e.position) : e.position === e.lineStart && Pe(e) ? C(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
1719
+ oe(n) ? (ue(e, r, i, !0), it(e, W(e, !1, t)), r = i = e.position) : e.position === e.lineStart && qe(e) ? C(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
1720
1720
  C(e, "unexpected end of the stream within a single quoted scalar");
1721
1721
  }
1722
1722
  function ra(e, t) {
@@ -1728,7 +1728,7 @@ function ra(e, t) {
1728
1728
  return ue(e, n, e.position, !0), e.position++, !0;
1729
1729
  if (l === 92) {
1730
1730
  if (ue(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), oe(l))
1731
- J(e, !1, t);
1731
+ W(e, !1, t);
1732
1732
  else if (l < 256 && pn[l])
1733
1733
  e.result += hn[l], e.position++;
1734
1734
  else if ((o = Zi(l)) > 0) {
@@ -1739,27 +1739,27 @@ function ra(e, t) {
1739
1739
  C(e, "unknown escape sequence");
1740
1740
  n = r = e.position;
1741
1741
  } else
1742
- oe(l) ? (ue(e, n, r, !0), at(e, J(e, !1, t)), n = r = e.position) : e.position === e.lineStart && Pe(e) ? C(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1742
+ oe(l) ? (ue(e, n, r, !0), it(e, W(e, !1, t)), n = r = e.position) : e.position === e.lineStart && qe(e) ? C(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1743
1743
  }
1744
1744
  C(e, "unexpected end of the stream within a double quoted scalar");
1745
1745
  }
1746
1746
  function ia(e, t) {
1747
- var n = !0, r, i, a, o = e.tag, l, s = e.anchor, u, d, c, m, p, y = /* @__PURE__ */ Object.create(null), v, _, N, k;
1747
+ var n = !0, r, i, a, o = e.tag, l, s = e.anchor, u, d, c, h, f, v = /* @__PURE__ */ Object.create(null), b, _, N, k;
1748
1748
  if (k = e.input.charCodeAt(e.position), k === 91)
1749
- d = 93, p = !1, l = [];
1749
+ d = 93, f = !1, l = [];
1750
1750
  else if (k === 123)
1751
- d = 125, p = !0, l = {};
1751
+ d = 125, f = !0, l = {};
1752
1752
  else
1753
1753
  return !1;
1754
1754
  for (e.anchor !== null && (e.anchorMap[e.anchor] = l), k = e.input.charCodeAt(++e.position); k !== 0; ) {
1755
- if (J(e, !0, t), k = e.input.charCodeAt(e.position), k === d)
1756
- return e.position++, e.tag = o, e.anchor = s, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
1757
- n ? k === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), _ = v = N = null, c = m = !1, k === 63 && (u = e.input.charCodeAt(e.position + 1), ne(u) && (c = m = !0, e.position++, J(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, we(e, t, Ke, !1, !0), _ = e.tag, v = e.result, J(e, !0, t), k = e.input.charCodeAt(e.position), (m || e.line === r) && k === 58 && (c = !0, k = e.input.charCodeAt(++e.position), J(e, !0, t), we(e, t, Ke, !1, !0), N = e.result), p ? _e(e, l, y, _, v, N, r, i, a) : c ? l.push(_e(e, null, y, _, v, N, r, i, a)) : l.push(v), J(e, !0, t), k = e.input.charCodeAt(e.position), k === 44 ? (n = !0, k = e.input.charCodeAt(++e.position)) : n = !1;
1755
+ if (W(e, !0, t), k = e.input.charCodeAt(e.position), k === d)
1756
+ return e.position++, e.tag = o, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
1757
+ n ? k === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), _ = b = N = null, c = h = !1, k === 63 && (u = e.input.charCodeAt(e.position + 1), ne(u) && (c = h = !0, e.position++, W(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, we(e, t, Be, !1, !0), _ = e.tag, b = e.result, W(e, !0, t), k = e.input.charCodeAt(e.position), (h || e.line === r) && k === 58 && (c = !0, k = e.input.charCodeAt(++e.position), W(e, !0, t), we(e, t, Be, !1, !0), N = e.result), f ? _e(e, l, v, _, b, N, r, i, a) : c ? l.push(_e(e, null, v, _, b, N, r, i, a)) : l.push(b), W(e, !0, t), k = e.input.charCodeAt(e.position), k === 44 ? (n = !0, k = e.input.charCodeAt(++e.position)) : n = !1;
1758
1758
  }
1759
1759
  C(e, "unexpected end of the stream within a flow collection");
1760
1760
  }
1761
1761
  function aa(e, t) {
1762
- var n, r, i = ze, a = !1, o = !1, l = t, s = 0, u = !1, d, c;
1762
+ var n, r, i = Ye, a = !1, o = !1, l = t, s = 0, u = !1, d, c;
1763
1763
  if (c = e.input.charCodeAt(e.position), c === 124)
1764
1764
  r = !1;
1765
1765
  else if (c === 62)
@@ -1768,22 +1768,22 @@ function aa(e, t) {
1768
1768
  return !1;
1769
1769
  for (e.kind = "scalar", e.result = ""; c !== 0; )
1770
1770
  if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
1771
- ze === i ? i = c === 43 ? gt : Yi : C(e, "repeat of a chomping mode identifier");
1771
+ Ye === i ? i = c === 43 ? gt : Yi : C(e, "repeat of a chomping mode identifier");
1772
1772
  else if ((d = Qi(c)) >= 0)
1773
1773
  d === 0 ? C(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? C(e, "repeat of an indentation width identifier") : (l = t + d - 1, o = !0);
1774
1774
  else
1775
1775
  break;
1776
- if (ge(c)) {
1776
+ if (ye(c)) {
1777
1777
  do
1778
1778
  c = e.input.charCodeAt(++e.position);
1779
- while (ge(c));
1779
+ while (ye(c));
1780
1780
  if (c === 35)
1781
1781
  do
1782
1782
  c = e.input.charCodeAt(++e.position);
1783
1783
  while (!oe(c) && c !== 0);
1784
1784
  }
1785
1785
  for (; c !== 0; ) {
1786
- for (it(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!o || e.lineIndent < l) && c === 32; )
1786
+ for (rt(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!o || e.lineIndent < l) && c === 32; )
1787
1787
  e.lineIndent++, c = e.input.charCodeAt(++e.position);
1788
1788
  if (!o && e.lineIndent > l && (l = e.lineIndent), oe(c)) {
1789
1789
  s++;
@@ -1791,11 +1791,11 @@ function aa(e, t) {
1791
1791
  }
1792
1792
  if (e.lineIndent < l) {
1793
1793
  i === gt ? e.result += G.repeat(`
1794
- `, a ? 1 + s : s) : i === ze && a && (e.result += `
1794
+ `, a ? 1 + s : s) : i === Ye && a && (e.result += `
1795
1795
  `);
1796
1796
  break;
1797
1797
  }
1798
- for (r ? ge(c) ? (u = !0, e.result += G.repeat(`
1798
+ for (r ? ye(c) ? (u = !0, e.result += G.repeat(`
1799
1799
  `, a ? 1 + s : s)) : u ? (u = !1, e.result += G.repeat(`
1800
1800
  `, s + 1)) : s === 0 ? a && (e.result += " ") : e.result += G.repeat(`
1801
1801
  `, s) : e.result += G.repeat(`
@@ -1810,11 +1810,11 @@ function Ct(e, t) {
1810
1810
  if (e.firstTabInLine !== -1)
1811
1811
  return !1;
1812
1812
  for (e.anchor !== null && (e.anchorMap[e.anchor] = a), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), !(s !== 45 || (o = e.input.charCodeAt(e.position + 1), !ne(o)))); ) {
1813
- if (l = !0, e.position++, J(e, !0, -1) && e.lineIndent <= t) {
1813
+ if (l = !0, e.position++, W(e, !0, -1) && e.lineIndent <= t) {
1814
1814
  a.push(null), s = e.input.charCodeAt(e.position);
1815
1815
  continue;
1816
1816
  }
1817
- if (n = e.line, we(e, t, un, !1, !0), a.push(e.result), J(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
1817
+ if (n = e.line, we(e, t, un, !1, !0), a.push(e.result), W(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
1818
1818
  C(e, "bad indentation of a sequence entry");
1819
1819
  else if (e.lineIndent < t)
1820
1820
  break;
@@ -1822,20 +1822,20 @@ function Ct(e, t) {
1822
1822
  return l ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
1823
1823
  }
1824
1824
  function oa(e, t, n) {
1825
- var r, i, a, o, l, s, u = e.tag, d = e.anchor, c = {}, m = /* @__PURE__ */ Object.create(null), p = null, y = null, v = null, _ = !1, N = !1, k;
1825
+ var r, i, a, o, l, s, u = e.tag, d = e.anchor, c = {}, h = /* @__PURE__ */ Object.create(null), f = null, v = null, b = null, _ = !1, N = !1, k;
1826
1826
  if (e.firstTabInLine !== -1)
1827
1827
  return !1;
1828
1828
  for (e.anchor !== null && (e.anchorMap[e.anchor] = c), k = e.input.charCodeAt(e.position); k !== 0; ) {
1829
1829
  if (!_ && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (k === 63 || k === 58) && ne(r))
1830
- k === 63 ? (_ && (_e(e, c, m, p, y, null, o, l, s), p = y = v = null), N = !0, _ = !0, i = !0) : _ ? (_ = !1, i = !0) : C(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, k = r;
1830
+ k === 63 ? (_ && (_e(e, c, h, f, v, null, o, l, s), f = v = b = null), N = !0, _ = !0, i = !0) : _ ? (_ = !1, i = !0) : C(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, k = r;
1831
1831
  else {
1832
1832
  if (o = e.line, l = e.lineStart, s = e.position, !we(e, n, cn, !1, !0))
1833
1833
  break;
1834
1834
  if (e.line === a) {
1835
- for (k = e.input.charCodeAt(e.position); ge(k); )
1835
+ for (k = e.input.charCodeAt(e.position); ye(k); )
1836
1836
  k = e.input.charCodeAt(++e.position);
1837
1837
  if (k === 58)
1838
- k = e.input.charCodeAt(++e.position), ne(k) || C(e, "a whitespace character is expected after the key-value separator within a block mapping"), _ && (_e(e, c, m, p, y, null, o, l, s), p = y = v = null), N = !0, _ = !1, i = !1, p = e.tag, y = e.result;
1838
+ k = e.input.charCodeAt(++e.position), ne(k) || C(e, "a whitespace character is expected after the key-value separator within a block mapping"), _ && (_e(e, c, h, f, v, null, o, l, s), f = v = b = null), N = !0, _ = !1, i = !1, f = e.tag, v = e.result;
1839
1839
  else if (N)
1840
1840
  C(e, "can not read an implicit mapping pair; a colon is missed");
1841
1841
  else
@@ -1845,12 +1845,12 @@ function oa(e, t, n) {
1845
1845
  else
1846
1846
  return e.tag = u, e.anchor = d, !0;
1847
1847
  }
1848
- if ((e.line === a || e.lineIndent > t) && (_ && (o = e.line, l = e.lineStart, s = e.position), we(e, t, Me, !0, i) && (_ ? y = e.result : v = e.result), _ || (_e(e, c, m, p, y, v, o, l, s), p = y = v = null), J(e, !0, -1), k = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && k !== 0)
1848
+ if ((e.line === a || e.lineIndent > t) && (_ && (o = e.line, l = e.lineStart, s = e.position), we(e, t, Ke, !0, i) && (_ ? v = e.result : b = e.result), _ || (_e(e, c, h, f, v, b, o, l, s), f = v = b = null), W(e, !0, -1), k = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && k !== 0)
1849
1849
  C(e, "bad indentation of a mapping entry");
1850
1850
  else if (e.lineIndent < t)
1851
1851
  break;
1852
1852
  }
1853
- return _ && _e(e, c, m, p, y, null, o, l, s), N && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), N;
1853
+ return _ && _e(e, c, h, f, v, null, o, l, s), N && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), N;
1854
1854
  }
1855
1855
  function la(e) {
1856
1856
  var t, n = !1, r = !1, i, a, o;
@@ -1888,41 +1888,41 @@ function ca(e) {
1888
1888
  return !1;
1889
1889
  for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !ne(r) && !Ce(r); )
1890
1890
  r = e.input.charCodeAt(++e.position);
1891
- return e.position === t && C(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), fe.call(e.anchorMap, n) || C(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], J(e, !0, -1), !0;
1891
+ return e.position === t && C(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), fe.call(e.anchorMap, n) || C(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], W(e, !0, -1), !0;
1892
1892
  }
1893
1893
  function we(e, t, n, r, i) {
1894
- var a, o, l, s = 1, u = !1, d = !1, c, m, p, y, v, _;
1895
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Me === n || un === n, r && J(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
1894
+ var a, o, l, s = 1, u = !1, d = !1, c, h, f, v, b, _;
1895
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Ke === n || un === n, r && W(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
1896
1896
  for (; la(e) || sa(e); )
1897
- J(e, !0, -1) ? (u = !0, l = a, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
1898
- if (l && (l = u || i), (s === 1 || Me === n) && (Ke === n || cn === n ? v = t : v = t + 1, _ = e.position - e.lineStart, s === 1 ? l && (Ct(e, _) || oa(e, _, v)) || ia(e, v) ? d = !0 : (o && aa(e, v) || na(e, v) || ra(e, v) ? d = !0 : ca(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : ta(e, v, Ke === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ct(e, _))), e.tag === null)
1897
+ W(e, !0, -1) ? (u = !0, l = a, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
1898
+ if (l && (l = u || i), (s === 1 || Ke === n) && (Be === n || cn === n ? b = t : b = t + 1, _ = e.position - e.lineStart, s === 1 ? l && (Ct(e, _) || oa(e, _, b)) || ia(e, b) ? d = !0 : (o && aa(e, b) || na(e, b) || ra(e, b) ? d = !0 : ca(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : ta(e, b, Be === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ct(e, _))), e.tag === null)
1899
1899
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1900
1900
  else if (e.tag === "?") {
1901
- for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, m = e.implicitTypes.length; c < m; c += 1)
1902
- if (y = e.implicitTypes[c], y.resolve(e.result)) {
1903
- e.result = y.construct(e.result), e.tag = y.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1901
+ for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, h = e.implicitTypes.length; c < h; c += 1)
1902
+ if (v = e.implicitTypes[c], v.resolve(e.result)) {
1903
+ e.result = v.construct(e.result), e.tag = v.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1904
1904
  break;
1905
1905
  }
1906
1906
  } else if (e.tag !== "!") {
1907
1907
  if (fe.call(e.typeMap[e.kind || "fallback"], e.tag))
1908
- y = e.typeMap[e.kind || "fallback"][e.tag];
1908
+ v = e.typeMap[e.kind || "fallback"][e.tag];
1909
1909
  else
1910
- for (y = null, p = e.typeMap.multi[e.kind || "fallback"], c = 0, m = p.length; c < m; c += 1)
1911
- if (e.tag.slice(0, p[c].tag.length) === p[c].tag) {
1912
- y = p[c];
1910
+ for (v = null, f = e.typeMap.multi[e.kind || "fallback"], c = 0, h = f.length; c < h; c += 1)
1911
+ if (e.tag.slice(0, f[c].tag.length) === f[c].tag) {
1912
+ v = f[c];
1913
1913
  break;
1914
1914
  }
1915
- y || C(e, "unknown tag !<" + e.tag + ">"), e.result !== null && y.kind !== e.kind && C(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + y.kind + '", not "' + e.kind + '"'), y.resolve(e.result, e.tag) ? (e.result = y.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : C(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
1915
+ v || C(e, "unknown tag !<" + e.tag + ">"), e.result !== null && v.kind !== e.kind && C(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + v.kind + '", not "' + e.kind + '"'), v.resolve(e.result, e.tag) ? (e.result = v.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : C(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
1916
1916
  }
1917
1917
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
1918
1918
  }
1919
1919
  function ua(e) {
1920
1920
  var t = e.position, n, r, i, a = !1, o;
1921
- for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (J(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
1921
+ for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (W(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
1922
1922
  for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !ne(o); )
1923
1923
  o = e.input.charCodeAt(++e.position);
1924
1924
  for (r = e.input.slice(n, e.position), i = [], r.length < 1 && C(e, "directive name must not be less than one character in length"); o !== 0; ) {
1925
- for (; ge(o); )
1925
+ for (; ye(o); )
1926
1926
  o = e.input.charCodeAt(++e.position);
1927
1927
  if (o === 35) {
1928
1928
  do
@@ -1936,10 +1936,10 @@ function ua(e) {
1936
1936
  o = e.input.charCodeAt(++e.position);
1937
1937
  i.push(e.input.slice(n, e.position));
1938
1938
  }
1939
- o !== 0 && it(e), fe.call(bt, r) ? bt[r](e, r, i) : De(e, 'unknown document directive "' + r + '"');
1939
+ o !== 0 && rt(e), fe.call(bt, r) ? bt[r](e, r, i) : Me(e, 'unknown document directive "' + r + '"');
1940
1940
  }
1941
- if (J(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, J(e, !0, -1)) : a && C(e, "directives end mark is expected"), we(e, e.lineIndent - 1, Me, !1, !0), J(e, !0, -1), e.checkLineBreaks && Wi.test(e.input.slice(t, e.position)) && De(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Pe(e)) {
1942
- e.input.charCodeAt(e.position) === 46 && (e.position += 3, J(e, !0, -1));
1941
+ if (W(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, W(e, !0, -1)) : a && C(e, "directives end mark is expected"), we(e, e.lineIndent - 1, Ke, !1, !0), W(e, !0, -1), e.checkLineBreaks && Wi.test(e.input.slice(t, e.position)) && Me(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && qe(e)) {
1942
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, W(e, !0, -1));
1943
1943
  return;
1944
1944
  }
1945
1945
  if (e.position < e.length - 1)
@@ -1976,7 +1976,7 @@ function fa(e, t) {
1976
1976
  var pa = da, ha = fa, yn = {
1977
1977
  loadAll: pa,
1978
1978
  load: ha
1979
- }, vn = Object.prototype.toString, bn = Object.prototype.hasOwnProperty, ot = 65279, ma = 9, Te = 10, ga = 13, ya = 32, va = 33, ba = 34, Ge = 35, xa = 37, Ca = 38, _a = 39, ka = 42, xn = 44, wa = 45, Ue = 58, Aa = 61, Sa = 62, Ia = 63, Ea = 64, Cn = 91, _n = 93, Ta = 96, kn = 123, Fa = 124, wn = 125, ee = {};
1979
+ }, vn = Object.prototype.toString, bn = Object.prototype.hasOwnProperty, at = 65279, ma = 9, Ee = 10, ga = 13, ya = 32, va = 33, ba = 34, Je = 35, xa = 37, Ca = 38, _a = 39, ka = 42, xn = 44, wa = 45, De = 58, Aa = 61, Sa = 62, Ia = 63, Ea = 64, Cn = 91, _n = 93, Ta = 96, kn = 123, Fa = 124, wn = 125, ee = {};
1980
1980
  ee[0] = "\\0";
1981
1981
  ee[7] = "\\a";
1982
1982
  ee[8] = "\\b";
@@ -2030,9 +2030,9 @@ function Na(e) {
2030
2030
  throw new te("code point within a string may not be greater than 0xFFFFFFFF");
2031
2031
  return "\\" + n + G.repeat("0", r - t.length) + t;
2032
2032
  }
2033
- var Ra = 1, Fe = 2;
2033
+ var Ra = 1, Te = 2;
2034
2034
  function Ba(e) {
2035
- this.schema = e.schema || rt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = G.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = La(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Fe : Ra, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2035
+ this.schema = e.schema || nt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = G.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = La(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Te : Ra, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2036
2036
  }
2037
2037
  function _t(e, t) {
2038
2038
  for (var n = G.repeat(" ", t), r = 0, i = -1, a = "", o, l = e.length; r < l; )
@@ -2041,7 +2041,7 @@ function _t(e, t) {
2041
2041
  ` && (a += n), a += o;
2042
2042
  return a;
2043
2043
  }
2044
- function Ze(e, t) {
2044
+ function Ge(e, t) {
2045
2045
  return `
2046
2046
  ` + G.repeat(" ", e.indent * t);
2047
2047
  }
@@ -2052,32 +2052,32 @@ function Ka(e, t) {
2052
2052
  return !0;
2053
2053
  return !1;
2054
2054
  }
2055
- function je(e) {
2055
+ function Ue(e) {
2056
2056
  return e === ya || e === ma;
2057
2057
  }
2058
- function Oe(e) {
2059
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== ot || 65536 <= e && e <= 1114111;
2058
+ function Fe(e) {
2059
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== at || 65536 <= e && e <= 1114111;
2060
2060
  }
2061
2061
  function kt(e) {
2062
- return Oe(e) && e !== ot && e !== ga && e !== Te;
2062
+ return Fe(e) && e !== at && e !== ga && e !== Ee;
2063
2063
  }
2064
2064
  function wt(e, t, n) {
2065
- var r = kt(e), i = r && !je(e);
2065
+ var r = kt(e), i = r && !Ue(e);
2066
2066
  return (
2067
2067
  // ns-plain-safe
2068
2068
  (n ? (
2069
2069
  // c = flow-in
2070
2070
  r
2071
- ) : r && e !== xn && e !== Cn && e !== _n && e !== kn && e !== wn) && e !== Ge && !(t === Ue && !i) || kt(t) && !je(t) && e === Ge || t === Ue && i
2071
+ ) : r && e !== xn && e !== Cn && e !== _n && e !== kn && e !== wn) && e !== Je && !(t === De && !i) || kt(t) && !Ue(t) && e === Je || t === De && i
2072
2072
  );
2073
2073
  }
2074
2074
  function Ma(e) {
2075
- return Oe(e) && e !== ot && !je(e) && e !== wa && e !== Ia && e !== Ue && e !== xn && e !== Cn && e !== _n && e !== kn && e !== wn && e !== Ge && e !== Ca && e !== ka && e !== va && e !== Fa && e !== Aa && e !== Sa && e !== _a && e !== ba && e !== xa && e !== Ea && e !== Ta;
2075
+ return Fe(e) && e !== at && !Ue(e) && e !== wa && e !== Ia && e !== De && e !== xn && e !== Cn && e !== _n && e !== kn && e !== wn && e !== Je && e !== Ca && e !== ka && e !== va && e !== Fa && e !== Aa && e !== Sa && e !== _a && e !== ba && e !== xa && e !== Ea && e !== Ta;
2076
2076
  }
2077
2077
  function Da(e) {
2078
- return !je(e) && e !== Ue;
2078
+ return !Ue(e) && e !== De;
2079
2079
  }
2080
- function Ie(e, t) {
2080
+ function Se(e, t) {
2081
2081
  var n = e.charCodeAt(t), r;
2082
2082
  return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
2083
2083
  }
@@ -2085,34 +2085,34 @@ function An(e) {
2085
2085
  var t = /^\n* /;
2086
2086
  return t.test(e);
2087
2087
  }
2088
- var Sn = 1, Qe = 2, In = 3, En = 4, xe = 5;
2088
+ var Sn = 1, Ze = 2, In = 3, En = 4, xe = 5;
2089
2089
  function Ua(e, t, n, r, i, a, o, l) {
2090
- var s, u = 0, d = null, c = !1, m = !1, p = r !== -1, y = -1, v = Ma(Ie(e, 0)) && Da(Ie(e, e.length - 1));
2090
+ var s, u = 0, d = null, c = !1, h = !1, f = r !== -1, v = -1, b = Ma(Se(e, 0)) && Da(Se(e, e.length - 1));
2091
2091
  if (t || o)
2092
2092
  for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2093
- if (u = Ie(e, s), !Oe(u))
2093
+ if (u = Se(e, s), !Fe(u))
2094
2094
  return xe;
2095
- v = v && wt(u, d, l), d = u;
2095
+ b = b && wt(u, d, l), d = u;
2096
2096
  }
2097
2097
  else {
2098
2098
  for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2099
- if (u = Ie(e, s), u === Te)
2100
- c = !0, p && (m = m || // Foldable line = too long, and not more-indented.
2101
- s - y - 1 > r && e[y + 1] !== " ", y = s);
2102
- else if (!Oe(u))
2099
+ if (u = Se(e, s), u === Ee)
2100
+ c = !0, f && (h = h || // Foldable line = too long, and not more-indented.
2101
+ s - v - 1 > r && e[v + 1] !== " ", v = s);
2102
+ else if (!Fe(u))
2103
2103
  return xe;
2104
- v = v && wt(u, d, l), d = u;
2104
+ b = b && wt(u, d, l), d = u;
2105
2105
  }
2106
- m = m || p && s - y - 1 > r && e[y + 1] !== " ";
2106
+ h = h || f && s - v - 1 > r && e[v + 1] !== " ";
2107
2107
  }
2108
- return !c && !m ? v && !o && !i(e) ? Sn : a === Fe ? xe : Qe : n > 9 && An(e) ? xe : o ? a === Fe ? xe : Qe : m ? En : In;
2108
+ return !c && !h ? b && !o && !i(e) ? Sn : a === Te ? xe : Ze : n > 9 && An(e) ? xe : o ? a === Te ? xe : Ze : h ? En : In;
2109
2109
  }
2110
2110
  function ja(e, t, n, r, i) {
2111
2111
  e.dump = function() {
2112
2112
  if (t.length === 0)
2113
- return e.quotingType === Fe ? '""' : "''";
2113
+ return e.quotingType === Te ? '""' : "''";
2114
2114
  if (!e.noCompatMode && (Oa.indexOf(t) !== -1 || $a.test(t)))
2115
- return e.quotingType === Fe ? '"' + t + '"' : "'" + t + "'";
2115
+ return e.quotingType === Te ? '"' + t + '"' : "'" + t + "'";
2116
2116
  var a = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), l = r || e.flowLevel > -1 && n >= e.flowLevel;
2117
2117
  function s(u) {
2118
2118
  return Ka(e, u);
@@ -2129,7 +2129,7 @@ function ja(e, t, n, r, i) {
2129
2129
  )) {
2130
2130
  case Sn:
2131
2131
  return t;
2132
- case Qe:
2132
+ case Ze:
2133
2133
  return "'" + t.replace(/'/g, "''") + "'";
2134
2134
  case In:
2135
2135
  return "|" + At(t, e.indent) + St(_t(t, a));
@@ -2179,7 +2179,7 @@ function It(e, t) {
2179
2179
  }
2180
2180
  function Pa(e) {
2181
2181
  for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++)
2182
- n = Ie(e, i), r = ee[n], !r && Oe(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Na(n);
2182
+ n = Se(e, i), r = ee[n], !r && Fe(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Na(n);
2183
2183
  return t;
2184
2184
  }
2185
2185
  function Ha(e, t, n) {
@@ -2191,7 +2191,7 @@ function Ha(e, t, n) {
2191
2191
  function Et(e, t, n, r) {
2192
2192
  var i = "", a = e.tag, o, l, s;
2193
2193
  for (o = 0, l = n.length; o < l; o += 1)
2194
- s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (ce(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ce(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Ze(e, t)), e.dump && Te === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
2194
+ s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (ce(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ce(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Ge(e, t)), e.dump && Ee === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
2195
2195
  e.tag = a, e.dump = i || "[]";
2196
2196
  }
2197
2197
  function Va(e, t, n) {
@@ -2201,7 +2201,7 @@ function Va(e, t, n) {
2201
2201
  e.tag = i, e.dump = "{" + r + "}";
2202
2202
  }
2203
2203
  function Ya(e, t, n, r) {
2204
- var i = "", a = e.tag, o = Object.keys(n), l, s, u, d, c, m;
2204
+ var i = "", a = e.tag, o = Object.keys(n), l, s, u, d, c, h;
2205
2205
  if (e.sortKeys === !0)
2206
2206
  o.sort();
2207
2207
  else if (typeof e.sortKeys == "function")
@@ -2209,7 +2209,7 @@ function Ya(e, t, n, r) {
2209
2209
  else if (e.sortKeys)
2210
2210
  throw new te("sortKeys must be a boolean or a function");
2211
2211
  for (l = 0, s = o.length; l < s; l += 1)
2212
- m = "", (!r || i !== "") && (m += Ze(e, t)), u = o[l], d = n[u], e.replacer && (d = e.replacer.call(n, u, d)), ce(e, t + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Te === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, c && (m += Ze(e, t)), ce(e, t + 1, d, !0, c) && (e.dump && Te === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, i += m));
2212
+ h = "", (!r || i !== "") && (h += Ge(e, t)), u = o[l], d = n[u], e.replacer && (d = e.replacer.call(n, u, d)), ce(e, t + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Ee === e.dump.charCodeAt(0) ? h += "?" : h += "? "), h += e.dump, c && (h += Ge(e, t)), ce(e, t + 1, d, !0, c) && (e.dump && Ee === e.dump.charCodeAt(0) ? h += ":" : h += ": ", h += e.dump, i += h));
2213
2213
  e.tag = a, e.dump = i || "{}";
2214
2214
  }
2215
2215
  function Tt(e, t, n) {
@@ -2233,14 +2233,14 @@ function ce(e, t, n, r, i, a, o) {
2233
2233
  e.tag = null, e.dump = n, Tt(e, n, !1) || Tt(e, n, !0);
2234
2234
  var l = vn.call(e.dump), s = r, u;
2235
2235
  r && (r = e.flowLevel < 0 || e.flowLevel > t);
2236
- var d = l === "[object Object]" || l === "[object Array]", c, m;
2237
- if (d && (c = e.duplicates.indexOf(n), m = c !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && t > 0) && (i = !1), m && e.usedDuplicates[c])
2236
+ var d = l === "[object Object]" || l === "[object Array]", c, h;
2237
+ if (d && (c = e.duplicates.indexOf(n), h = c !== -1), (e.tag !== null && e.tag !== "?" || h || e.indent !== 2 && t > 0) && (i = !1), h && e.usedDuplicates[c])
2238
2238
  e.dump = "*ref_" + c;
2239
2239
  else {
2240
- if (d && m && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
2241
- r && Object.keys(e.dump).length !== 0 ? (Ya(e, t, e.dump, i), m && (e.dump = "&ref_" + c + e.dump)) : (Va(e, t, e.dump), m && (e.dump = "&ref_" + c + " " + e.dump));
2240
+ if (d && h && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
2241
+ r && Object.keys(e.dump).length !== 0 ? (Ya(e, t, e.dump, i), h && (e.dump = "&ref_" + c + e.dump)) : (Va(e, t, e.dump), h && (e.dump = "&ref_" + c + " " + e.dump));
2242
2242
  else if (l === "[object Array]")
2243
- r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Et(e, t - 1, e.dump, i) : Et(e, t, e.dump, i), m && (e.dump = "&ref_" + c + e.dump)) : (Ha(e, t, e.dump), m && (e.dump = "&ref_" + c + " " + e.dump));
2243
+ r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Et(e, t - 1, e.dump, i) : Et(e, t, e.dump, i), h && (e.dump = "&ref_" + c + e.dump)) : (Ha(e, t, e.dump), h && (e.dump = "&ref_" + c + " " + e.dump));
2244
2244
  else if (l === "[object String]")
2245
2245
  e.tag !== "?" && ja(e, e.dump, t, a, s);
2246
2246
  else {
@@ -2258,21 +2258,21 @@ function ce(e, t, n, r, i, a, o) {
2258
2258
  }
2259
2259
  function za(e, t) {
2260
2260
  var n = [], r = [], i, a;
2261
- for (Xe(e, n, r), i = 0, a = r.length; i < a; i += 1)
2261
+ for (Qe(e, n, r), i = 0, a = r.length; i < a; i += 1)
2262
2262
  t.duplicates.push(n[r[i]]);
2263
2263
  t.usedDuplicates = new Array(a);
2264
2264
  }
2265
- function Xe(e, t, n) {
2265
+ function Qe(e, t, n) {
2266
2266
  var r, i, a;
2267
2267
  if (e !== null && typeof e == "object")
2268
2268
  if (i = t.indexOf(e), i !== -1)
2269
2269
  n.indexOf(i) === -1 && n.push(i);
2270
2270
  else if (t.push(e), Array.isArray(e))
2271
2271
  for (i = 0, a = e.length; i < a; i += 1)
2272
- Xe(e[i], t, n);
2272
+ Qe(e[i], t, n);
2273
2273
  else
2274
2274
  for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1)
2275
- Xe(e[r[i]], t, n);
2275
+ Qe(e[r[i]], t, n);
2276
2276
  }
2277
2277
  function Wa(e, t) {
2278
2278
  t = t || {};
@@ -2285,12 +2285,12 @@ function Wa(e, t) {
2285
2285
  var Ja = Wa, Ga = {
2286
2286
  dump: Ja
2287
2287
  };
2288
- function lt(e, t) {
2288
+ function ot(e, t) {
2289
2289
  return function() {
2290
2290
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2291
2291
  };
2292
2292
  }
2293
- var Za = X, Qa = Pt, Xa = zt, eo = Qt, to = Xt, no = rt, ro = yn.load, io = yn.loadAll, ao = Ga.dump, oo = te, lo = {
2293
+ var Za = X, Qa = Pt, Xa = zt, eo = Qt, to = Xt, no = nt, ro = yn.load, io = yn.loadAll, ao = Ga.dump, oo = te, lo = {
2294
2294
  binary: an,
2295
2295
  float: Zt,
2296
2296
  map: Yt,
@@ -2304,7 +2304,7 @@ var Za = X, Qa = Pt, Xa = zt, eo = Qt, to = Xt, no = rt, ro = yn.load, io = yn.l
2304
2304
  omap: on,
2305
2305
  seq: Vt,
2306
2306
  str: Ht
2307
- }, so = lt("safeLoad", "load"), co = lt("safeLoadAll", "loadAll"), uo = lt("safeDump", "dump"), fo = {
2307
+ }, so = ot("safeLoad", "load"), co = ot("safeLoadAll", "loadAll"), uo = ot("safeDump", "dump"), fo = {
2308
2308
  Type: Za,
2309
2309
  Schema: Qa,
2310
2310
  FAILSAFE_SCHEMA: Xa,
@@ -2330,20 +2330,20 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2330
2330
  }
2331
2331
  },
2332
2332
  setup(e) {
2333
- const t = e, n = w(() => {
2333
+ const t = e, n = A(() => {
2334
2334
  const r = Object.fromEntries(Object.entries(t.yamlRecord).filter(([, i]) => i !== null && i !== "" && (Array.isArray(i) ? i.length !== 0 : !0)));
2335
2335
  return Object.keys(r).length === 0 && r.constructor === Object ? "" : fo.dump(r).trim();
2336
2336
  });
2337
2337
  return (r, i) => {
2338
- const a = K("KCodeBlock");
2339
- return g(), I("div", po, [
2340
- t.yamlRecord ? (g(), M(a, {
2338
+ const a = B("KCodeBlock");
2339
+ return m(), I("div", po, [
2340
+ t.yamlRecord ? (m(), M(a, {
2341
2341
  key: 0,
2342
2342
  id: "yaml-codeblock",
2343
2343
  code: n.value,
2344
2344
  language: "yaml",
2345
2345
  theme: "dark"
2346
- }, null, 8, ["code"])) : U("", !0)
2346
+ }, null, 8, ["code"])) : D("", !0)
2347
2347
  ]);
2348
2348
  };
2349
2349
  }
@@ -2392,29 +2392,29 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2392
2392
  }
2393
2393
  },
2394
2394
  setup(e) {
2395
- const t = e, n = et(), { i18n: { t: r } } = W.useI18n(), i = (o) => !!(o.tooltip || n[`${o.key}-label-tooltip`]), a = w(() => {
2395
+ const t = e, n = Xe(), { i18n: { t: r } } = z.useI18n(), i = (o) => !!(o.tooltip || n[`${o.key}-label-tooltip`]), a = A(() => {
2396
2396
  if (!t.record)
2397
2397
  return t.record;
2398
2398
  const o = JSON.parse(JSON.stringify(t.record));
2399
2399
  return delete o.created_at, delete o.updated_at, o;
2400
2400
  });
2401
- return (o, l) => (g(), I(se, null, [
2402
- e.format === "structured" ? (g(), I("div", ho, [
2403
- (g(!0), I(se, null, ae(e.propListTypes, (s) => (g(), I("div", {
2401
+ return (o, l) => (m(), I(se, null, [
2402
+ e.format === "structured" ? (m(), I("div", ho, [
2403
+ (m(!0), I(se, null, ae(e.propListTypes, (s) => (m(), I("div", {
2404
2404
  key: `config-card-details-${s}-props`,
2405
2405
  class: de(`config-card-details-${s}-props`),
2406
2406
  "data-testid": `config-card-details-${s}-props`
2407
2407
  }, [
2408
- s !== "basic" ? (g(), I("div", go, $(s === "advanced" ? E(r)("baseConfigCard.sections.advanced") : E(r)("baseConfigCard.sections.plugin")), 1)) : U("", !0),
2409
- (g(!0), I(se, null, ae(e.propertyCollections[s], (u) => (g(), M(Dt, {
2408
+ s !== "basic" ? (m(), I("div", go, O(s === "advanced" ? E(r)("baseConfigCard.sections.advanced") : E(r)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
2409
+ (m(!0), I(se, null, ae(e.propertyCollections[s], (u) => (m(), M(Dt, {
2410
2410
  key: u.key,
2411
2411
  item: u
2412
2412
  }, ke({
2413
- label: b(() => [
2414
- z(o.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2413
+ label: x(() => [
2414
+ Y(o.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2415
2415
  ]),
2416
- [u.key]: b(({ rowValue: d }) => [
2417
- z(o.$slots, u.key, {
2416
+ [u.key]: x(({ rowValue: d }) => [
2417
+ Y(o.$slots, u.key, {
2418
2418
  row: u,
2419
2419
  rowValue: d
2420
2420
  }, void 0, !0)
@@ -2423,33 +2423,33 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2423
2423
  }, [
2424
2424
  i(u) ? {
2425
2425
  name: "label-tooltip",
2426
- fn: b(() => [
2427
- z(o.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2426
+ fn: x(() => [
2427
+ Y(o.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2428
2428
  ]),
2429
2429
  key: "0"
2430
2430
  } : void 0
2431
2431
  ]), 1032, ["item"]))), 128))
2432
2432
  ], 10, mo))), 128))
2433
- ])) : U("", !0),
2434
- e.format === "json" && t.record ? (g(), M(Ut, {
2433
+ ])) : D("", !0),
2434
+ e.format === "json" && t.record ? (m(), M(Ut, {
2435
2435
  key: 1,
2436
2436
  config: t.config,
2437
2437
  "fetcher-url": t.fetcherUrl,
2438
2438
  "json-record": a.value,
2439
2439
  "request-method": "get"
2440
- }, null, 8, ["config", "fetcher-url", "json-record"])) : U("", !0),
2441
- e.format === "yaml" && t.record ? (g(), M(Tn, {
2440
+ }, null, 8, ["config", "fetcher-url", "json-record"])) : D("", !0),
2441
+ e.format === "yaml" && t.record ? (m(), M(Tn, {
2442
2442
  key: 2,
2443
2443
  "yaml-record": a.value
2444
- }, null, 8, ["yaml-record"])) : U("", !0)
2444
+ }, null, 8, ["yaml-record"])) : D("", !0)
2445
2445
  ], 64));
2446
2446
  }
2447
- }), vo = /* @__PURE__ */ ie(yo, [["__scopeId", "data-v-147a2f70"]]), le = "24px", Re = (e, t) => {
2447
+ }), vo = /* @__PURE__ */ ie(yo, [["__scopeId", "data-v-147a2f70"]]), le = "24px", Ne = (e, t) => {
2448
2448
  const n = e.__vccOpts || e;
2449
2449
  for (const [r, i] of t)
2450
2450
  n[r] = i;
2451
2451
  return n;
2452
- }, bo = (e) => (Le("data-v-1d2a8d30"), e = e(), Ne(), e), xo = ["aria-hidden"], Co = {
2452
+ }, bo = (e) => ($e("data-v-1d2a8d30"), e = e(), Le(), e), xo = ["aria-hidden"], Co = {
2453
2453
  key: 0,
2454
2454
  "data-testid": "kui-icon-svg-title"
2455
2455
  }, _o = /* @__PURE__ */ bo(() => /* @__PURE__ */ L("path", {
@@ -2507,7 +2507,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2507
2507
  }
2508
2508
  },
2509
2509
  setup(e) {
2510
- const t = e, n = w(() => {
2510
+ const t = e, n = A(() => {
2511
2511
  if (typeof t.size == "number" && t.size > 0)
2512
2512
  return `${t.size}px`;
2513
2513
  if (typeof t.size == "string") {
@@ -2516,7 +2516,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2516
2516
  return `${a}px`;
2517
2517
  }
2518
2518
  return le;
2519
- }), r = w(() => ({
2519
+ }), r = A(() => ({
2520
2520
  boxSizing: "border-box",
2521
2521
  color: t.color,
2522
2522
  display: t.display,
@@ -2524,14 +2524,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2524
2524
  lineHeight: "0",
2525
2525
  width: n.value
2526
2526
  }));
2527
- return (i, a) => (g(), M(pe(e.as), {
2527
+ return (i, a) => (m(), M(pe(e.as), {
2528
2528
  "aria-hidden": e.decorative ? "true" : void 0,
2529
2529
  class: "kui-icon add-icon",
2530
2530
  "data-testid": "kui-icon-wrapper-add-icon",
2531
- style: $e(r.value)
2531
+ style: Oe(r.value)
2532
2532
  }, {
2533
- default: b(() => [
2534
- (g(), I("svg", {
2533
+ default: x(() => [
2534
+ (m(), I("svg", {
2535
2535
  "aria-hidden": e.decorative ? "true" : void 0,
2536
2536
  "data-testid": "kui-icon-svg-add-icon",
2537
2537
  fill: "none",
@@ -2541,14 +2541,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2541
2541
  width: "100%",
2542
2542
  xmlns: "http://www.w3.org/2000/svg"
2543
2543
  }, [
2544
- e.title ? (g(), I("title", Co, $(e.title), 1)) : U("", !0),
2544
+ e.title ? (m(), I("title", Co, O(e.title), 1)) : D("", !0),
2545
2545
  _o
2546
2546
  ], 8, xo))
2547
2547
  ]),
2548
2548
  _: 1
2549
2549
  }, 8, ["aria-hidden", "style"]));
2550
2550
  }
2551
- }), wo = /* @__PURE__ */ Re(ko, [["__scopeId", "data-v-1d2a8d30"]]), Ao = (e) => (Le("data-v-929b4762"), e = e(), Ne(), e), So = ["aria-hidden"], Io = {
2551
+ }), wo = /* @__PURE__ */ Ne(ko, [["__scopeId", "data-v-1d2a8d30"]]), Ao = (e) => ($e("data-v-929b4762"), e = e(), Le(), e), So = ["aria-hidden"], Io = {
2552
2552
  key: 0,
2553
2553
  "data-testid": "kui-icon-svg-title"
2554
2554
  }, Eo = /* @__PURE__ */ Ao(() => /* @__PURE__ */ L("path", {
@@ -2606,7 +2606,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2606
2606
  }
2607
2607
  },
2608
2608
  setup(e) {
2609
- const t = e, n = w(() => {
2609
+ const t = e, n = A(() => {
2610
2610
  if (typeof t.size == "number" && t.size > 0)
2611
2611
  return `${t.size}px`;
2612
2612
  if (typeof t.size == "string") {
@@ -2615,7 +2615,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2615
2615
  return `${a}px`;
2616
2616
  }
2617
2617
  return le;
2618
- }), r = w(() => ({
2618
+ }), r = A(() => ({
2619
2619
  boxSizing: "border-box",
2620
2620
  color: t.color,
2621
2621
  display: t.display,
@@ -2623,14 +2623,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2623
2623
  lineHeight: "0",
2624
2624
  width: n.value
2625
2625
  }));
2626
- return (i, a) => (g(), M(pe(e.as), {
2626
+ return (i, a) => (m(), M(pe(e.as), {
2627
2627
  "aria-hidden": e.decorative ? "true" : void 0,
2628
2628
  class: "kui-icon book-icon",
2629
2629
  "data-testid": "kui-icon-wrapper-book-icon",
2630
- style: $e(r.value)
2630
+ style: Oe(r.value)
2631
2631
  }, {
2632
- default: b(() => [
2633
- (g(), I("svg", {
2632
+ default: x(() => [
2633
+ (m(), I("svg", {
2634
2634
  "aria-hidden": e.decorative ? "true" : void 0,
2635
2635
  "data-testid": "kui-icon-svg-book-icon",
2636
2636
  fill: "none",
@@ -2640,14 +2640,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2640
2640
  width: "100%",
2641
2641
  xmlns: "http://www.w3.org/2000/svg"
2642
2642
  }, [
2643
- e.title ? (g(), I("title", Io, $(e.title), 1)) : U("", !0),
2643
+ e.title ? (m(), I("title", Io, O(e.title), 1)) : D("", !0),
2644
2644
  Eo
2645
2645
  ], 8, So))
2646
2646
  ]),
2647
2647
  _: 1
2648
2648
  }, 8, ["aria-hidden", "style"]));
2649
2649
  }
2650
- }), Fo = /* @__PURE__ */ Re(To, [["__scopeId", "data-v-929b4762"]]), Oo = (e) => (Le("data-v-219f8484"), e = e(), Ne(), e), $o = ["aria-hidden"], Lo = {
2650
+ }), Fo = /* @__PURE__ */ Ne(To, [["__scopeId", "data-v-929b4762"]]), Oo = (e) => ($e("data-v-219f8484"), e = e(), Le(), e), $o = ["aria-hidden"], Lo = {
2651
2651
  key: 0,
2652
2652
  "data-testid": "kui-icon-svg-title"
2653
2653
  }, No = /* @__PURE__ */ Oo(() => /* @__PURE__ */ L("path", {
@@ -2705,7 +2705,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2705
2705
  }
2706
2706
  },
2707
2707
  setup(e) {
2708
- const t = e, n = w(() => {
2708
+ const t = e, n = A(() => {
2709
2709
  if (typeof t.size == "number" && t.size > 0)
2710
2710
  return `${t.size}px`;
2711
2711
  if (typeof t.size == "string") {
@@ -2714,7 +2714,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2714
2714
  return `${a}px`;
2715
2715
  }
2716
2716
  return le;
2717
- }), r = w(() => ({
2717
+ }), r = A(() => ({
2718
2718
  boxSizing: "border-box",
2719
2719
  color: t.color,
2720
2720
  display: t.display,
@@ -2722,14 +2722,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2722
2722
  lineHeight: "0",
2723
2723
  width: n.value
2724
2724
  }));
2725
- return (i, a) => (g(), M(pe(e.as), {
2725
+ return (i, a) => (m(), M(pe(e.as), {
2726
2726
  "aria-hidden": e.decorative ? "true" : void 0,
2727
2727
  class: "kui-icon chevron-down-icon",
2728
2728
  "data-testid": "kui-icon-wrapper-chevron-down-icon",
2729
- style: $e(r.value)
2729
+ style: Oe(r.value)
2730
2730
  }, {
2731
- default: b(() => [
2732
- (g(), I("svg", {
2731
+ default: x(() => [
2732
+ (m(), I("svg", {
2733
2733
  "aria-hidden": e.decorative ? "true" : void 0,
2734
2734
  "data-testid": "kui-icon-svg-chevron-down-icon",
2735
2735
  fill: "none",
@@ -2739,14 +2739,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2739
2739
  width: "100%",
2740
2740
  xmlns: "http://www.w3.org/2000/svg"
2741
2741
  }, [
2742
- e.title ? (g(), I("title", Lo, $(e.title), 1)) : U("", !0),
2742
+ e.title ? (m(), I("title", Lo, O(e.title), 1)) : D("", !0),
2743
2743
  No
2744
2744
  ], 8, $o))
2745
2745
  ]),
2746
2746
  _: 1
2747
2747
  }, 8, ["aria-hidden", "style"]));
2748
2748
  }
2749
- }), Bo = /* @__PURE__ */ Re(Ro, [["__scopeId", "data-v-219f8484"]]), Ko = (e) => (Le("data-v-ed11facd"), e = e(), Ne(), e), Mo = ["aria-hidden"], Do = {
2749
+ }), Bo = /* @__PURE__ */ Ne(Ro, [["__scopeId", "data-v-219f8484"]]), Ko = (e) => ($e("data-v-ed11facd"), e = e(), Le(), e), Mo = ["aria-hidden"], Do = {
2750
2750
  key: 0,
2751
2751
  "data-testid": "kui-icon-svg-title"
2752
2752
  }, Uo = /* @__PURE__ */ Ko(() => /* @__PURE__ */ L("path", {
@@ -2804,7 +2804,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2804
2804
  }
2805
2805
  },
2806
2806
  setup(e) {
2807
- const t = e, n = w(() => {
2807
+ const t = e, n = A(() => {
2808
2808
  if (typeof t.size == "number" && t.size > 0)
2809
2809
  return `${t.size}px`;
2810
2810
  if (typeof t.size == "string") {
@@ -2813,7 +2813,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2813
2813
  return `${a}px`;
2814
2814
  }
2815
2815
  return le;
2816
- }), r = w(() => ({
2816
+ }), r = A(() => ({
2817
2817
  boxSizing: "border-box",
2818
2818
  color: t.color,
2819
2819
  display: t.display,
@@ -2821,14 +2821,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2821
2821
  lineHeight: "0",
2822
2822
  width: n.value
2823
2823
  }));
2824
- return (i, a) => (g(), M(pe(e.as), {
2824
+ return (i, a) => (m(), M(pe(e.as), {
2825
2825
  "aria-hidden": e.decorative ? "true" : void 0,
2826
2826
  class: "kui-icon close-icon",
2827
2827
  "data-testid": "kui-icon-wrapper-close-icon",
2828
- style: $e(r.value)
2828
+ style: Oe(r.value)
2829
2829
  }, {
2830
- default: b(() => [
2831
- (g(), I("svg", {
2830
+ default: x(() => [
2831
+ (m(), I("svg", {
2832
2832
  "aria-hidden": e.decorative ? "true" : void 0,
2833
2833
  "data-testid": "kui-icon-svg-close-icon",
2834
2834
  fill: "none",
@@ -2838,14 +2838,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2838
2838
  width: "100%",
2839
2839
  xmlns: "http://www.w3.org/2000/svg"
2840
2840
  }, [
2841
- e.title ? (g(), I("title", Do, $(e.title), 1)) : U("", !0),
2841
+ e.title ? (m(), I("title", Do, O(e.title), 1)) : D("", !0),
2842
2842
  Uo
2843
2843
  ], 8, Mo))
2844
2844
  ]),
2845
2845
  _: 1
2846
2846
  }, 8, ["aria-hidden", "style"]));
2847
2847
  }
2848
- }), qo = /* @__PURE__ */ Re(jo, [["__scopeId", "data-v-ed11facd"]]), Po = (e) => (Le("data-v-4399d24a"), e = e(), Ne(), e), Ho = ["aria-hidden"], Vo = {
2848
+ }), qo = /* @__PURE__ */ Ne(jo, [["__scopeId", "data-v-ed11facd"]]), Po = (e) => ($e("data-v-4399d24a"), e = e(), Le(), e), Ho = ["aria-hidden"], Vo = {
2849
2849
  key: 0,
2850
2850
  "data-testid": "kui-icon-svg-title"
2851
2851
  }, Yo = /* @__PURE__ */ Po(() => /* @__PURE__ */ L("path", {
@@ -2903,7 +2903,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2903
2903
  }
2904
2904
  },
2905
2905
  setup(e) {
2906
- const t = e, n = w(() => {
2906
+ const t = e, n = A(() => {
2907
2907
  if (typeof t.size == "number" && t.size > 0)
2908
2908
  return `${t.size}px`;
2909
2909
  if (typeof t.size == "string") {
@@ -2912,7 +2912,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2912
2912
  return `${a}px`;
2913
2913
  }
2914
2914
  return le;
2915
- }), r = w(() => ({
2915
+ }), r = A(() => ({
2916
2916
  boxSizing: "border-box",
2917
2917
  color: t.color,
2918
2918
  display: t.display,
@@ -2920,14 +2920,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2920
2920
  lineHeight: "0",
2921
2921
  width: n.value
2922
2922
  }));
2923
- return (i, a) => (g(), M(pe(e.as), {
2923
+ return (i, a) => (m(), M(pe(e.as), {
2924
2924
  "aria-hidden": e.decorative ? "true" : void 0,
2925
2925
  class: "kui-icon copy-icon",
2926
2926
  "data-testid": "kui-icon-wrapper-copy-icon",
2927
- style: $e(r.value)
2927
+ style: Oe(r.value)
2928
2928
  }, {
2929
- default: b(() => [
2930
- (g(), I("svg", {
2929
+ default: x(() => [
2930
+ (m(), I("svg", {
2931
2931
  "aria-hidden": e.decorative ? "true" : void 0,
2932
2932
  "data-testid": "kui-icon-svg-copy-icon",
2933
2933
  fill: "none",
@@ -2937,14 +2937,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2937
2937
  width: "100%",
2938
2938
  xmlns: "http://www.w3.org/2000/svg"
2939
2939
  }, [
2940
- e.title ? (g(), I("title", Vo, $(e.title), 1)) : U("", !0),
2940
+ e.title ? (m(), I("title", Vo, O(e.title), 1)) : D("", !0),
2941
2941
  Yo
2942
2942
  ], 8, Ho))
2943
2943
  ]),
2944
2944
  _: 1
2945
2945
  }, 8, ["aria-hidden", "style"]));
2946
2946
  }
2947
- }), Wo = /* @__PURE__ */ Re(zo, [["__scopeId", "data-v-4399d24a"]]), Jo = {
2947
+ }), Wo = /* @__PURE__ */ Ne(zo, [["__scopeId", "data-v-4399d24a"]]), Jo = {
2948
2948
  class: "config-card-title",
2949
2949
  "data-testid": "config-card-title"
2950
2950
  }, Go = { class: "config-card-actions" }, Zo = ["href"], Qo = { class: "config-card-details-section" }, Xo = /* @__PURE__ */ H({
@@ -3025,8 +3025,8 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3025
3025
  },
3026
3026
  emits: ["loading", "fetch:success", "fetch:error"],
3027
3027
  setup(e, { emit: t }) {
3028
- var A;
3029
- const n = t, r = e, { i18n: { t: i } } = W.useI18n(), { getMessageFromError: a } = W.useErrors(), { convertKeyToTitle: o } = W.useStringHelpers(), { axiosInstance: l } = W.useAxios((A = r.config) == null ? void 0 : A.axiosRequestConfig), s = [
3028
+ var y;
3029
+ const n = t, r = e, { i18n: { t: i } } = z.useI18n(), { getMessageFromError: a } = z.useErrors(), { convertKeyToTitle: o } = z.useStringHelpers(), { axiosInstance: l } = z.useAxios((y = r.config) == null ? void 0 : y.axiosRequestConfig), s = [
3030
3030
  {
3031
3031
  label: i("baseConfigCard.general.structuredFormat"),
3032
3032
  value: "structured",
@@ -3040,8 +3040,8 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3040
3040
  label: "YAML",
3041
3041
  value: "yaml"
3042
3042
  }
3043
- ], u = B("structured"), d = (f) => {
3044
- u.value = f == null ? void 0 : f.value;
3043
+ ], u = K("structured"), d = (g) => {
3044
+ u.value = g == null ? void 0 : g.value;
3045
3045
  }, c = {
3046
3046
  id: {
3047
3047
  type: P.ID,
@@ -3076,123 +3076,123 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3076
3076
  // the last property displayed
3077
3077
  section: re.Basic
3078
3078
  }
3079
- }, m = B(!1), p = B(!1), y = B(""), v = B({}), _ = w(() => {
3080
- var O, x, j;
3081
- if (!v.value)
3079
+ }, h = K(!1), f = K(!1), v = K(""), b = K({}), _ = A(() => {
3080
+ var F, w, U;
3081
+ if (!b.value)
3082
3082
  return [];
3083
- const f = [], S = Object.keys(v.value).length;
3084
- for (const T in v.value) {
3085
- const F = (x = (O = r.configSchema) == null ? void 0 : O[T]) == null ? void 0 : x.order, D = (j = c[T]) == null ? void 0 : j.order;
3086
- let q = S;
3087
- (D || D === 0) && (q = D === -1 ? S + 1 : D), F && (q = F === -1 ? S + 1 : F), f.push([T, q]);
3083
+ const g = [], $ = Object.keys(b.value).length;
3084
+ for (const T in b.value) {
3085
+ const S = (w = (F = r.configSchema) == null ? void 0 : F[T]) == null ? void 0 : w.order, j = (U = c[T]) == null ? void 0 : U.order;
3086
+ let q = $;
3087
+ (j || j === 0) && (q = j === -1 ? $ + 1 : j), S && (q = S === -1 ? $ + 1 : S), g.push([T, q]);
3088
3088
  }
3089
- return f.sort(function(T, F) {
3090
- return T[1] - F[1];
3091
- }), f.map((T) => {
3092
- var ye, Se;
3093
- const F = T[0], D = (ye = v.value) == null ? void 0 : ye[F], q = ((Se = r.configSchema) == null ? void 0 : Se[F]) || {}, V = c[F];
3089
+ return g.sort(function(T, S) {
3090
+ return T[1] - S[1];
3091
+ }), g.map((T) => {
3092
+ var he, lt;
3093
+ const S = T[0], j = (he = b.value) == null ? void 0 : he[S], q = ((lt = r.configSchema) == null ? void 0 : lt[S]) || {}, J = c[S];
3094
3094
  return {
3095
- key: F,
3096
- value: D,
3095
+ key: S,
3096
+ value: j,
3097
3097
  hidden: q.hidden || !1,
3098
- type: q.type ?? ((V == null ? void 0 : V.type) || P.Text),
3099
- label: q.label ?? ((V == null ? void 0 : V.label) || o(F)),
3100
- tooltip: q.tooltip ?? ((V == null ? void 0 : V.tooltip) || void 0),
3101
- section: q.section ?? ((V == null ? void 0 : V.section) || re.Advanced)
3098
+ type: q.type ?? ((J == null ? void 0 : J.type) || P.Text),
3099
+ label: q.label ?? ((J == null ? void 0 : J.label) || o(S)),
3100
+ tooltip: q.tooltip ?? ((J == null ? void 0 : J.tooltip) || void 0),
3101
+ section: q.section ?? ((J == null ? void 0 : J.section) || re.Advanced)
3102
3102
  };
3103
3103
  }).filter((T) => !T.hidden && T.key !== r.pluginConfigKey);
3104
- }), N = w(() => {
3105
- var x, j;
3106
- if (!v.value || !r.pluginConfigKey)
3104
+ }), N = A(() => {
3105
+ var w, U;
3106
+ if (!b.value || !r.pluginConfigKey)
3107
3107
  return [];
3108
- const f = v.value[r.pluginConfigKey] || {}, S = Object.keys(f).length, O = [];
3109
- for (const T in f) {
3110
- const F = (j = (x = r.pluginConfigSchema) == null ? void 0 : x[T]) == null ? void 0 : j.order, D = f[T];
3111
- let q = D != null && D !== "" ? S - 1 : S;
3112
- F && (q = F === -1 ? S + 1 : F), O.push([T, q]);
3108
+ const g = b.value[r.pluginConfigKey] || {}, $ = Object.keys(g).length, F = [];
3109
+ for (const T in g) {
3110
+ const S = (U = (w = r.pluginConfigSchema) == null ? void 0 : w[T]) == null ? void 0 : U.order, j = g[T];
3111
+ let q = j != null && j !== "" ? $ - 1 : $;
3112
+ S && (q = S === -1 ? $ + 1 : S), F.push([T, q]);
3113
3113
  }
3114
- return O.sort(function(T, F) {
3115
- return T[1] - F[1];
3116
- }), O.map((T) => {
3117
- var V;
3118
- const F = T[0], D = f[F], q = ((V = r.pluginConfigSchema) == null ? void 0 : V[F]) || {};
3114
+ return F.sort(function(T, S) {
3115
+ return T[1] - S[1];
3116
+ }), F.map((T) => {
3117
+ var J;
3118
+ const S = T[0], j = g[S], q = ((J = r.pluginConfigSchema) == null ? void 0 : J[S]) || {};
3119
3119
  return {
3120
- key: F,
3121
- value: D,
3120
+ key: S,
3121
+ value: j,
3122
3122
  hidden: q.hidden || !1,
3123
3123
  type: q.type ?? P.Text,
3124
- label: q.label ?? o(F),
3124
+ label: q.label ?? o(S),
3125
3125
  tooltip: q.tooltip ?? void 0,
3126
3126
  section: re.Plugin
3127
3127
  };
3128
3128
  }).filter((T) => !T.hidden);
3129
- }), k = w(() => {
3130
- var f, S, O, x;
3129
+ }), k = A(() => {
3130
+ var g, $, F, w;
3131
3131
  return {
3132
- basic: (f = _.value) == null ? void 0 : f.filter((j) => j.section === re.Basic),
3133
- advanced: (S = _.value) == null ? void 0 : S.filter((j) => j.section === re.Advanced),
3134
- plugin: (x = N.value) == null ? void 0 : x.concat((O = _.value) == null ? void 0 : O.filter((j) => j.section === re.Plugin))
3132
+ basic: (g = _.value) == null ? void 0 : g.filter((U) => U.section === re.Basic),
3133
+ advanced: ($ = _.value) == null ? void 0 : $.filter((U) => U.section === re.Advanced),
3134
+ plugin: (w = N.value) == null ? void 0 : w.concat((F = _.value) == null ? void 0 : F.filter((U) => U.section === re.Plugin))
3135
3135
  };
3136
- }), Z = w(() => {
3137
- const f = [];
3138
- return k.value.basic.length && f.push("basic"), k.value.advanced.length && f.push("advanced"), k.value.plugin.length && f.push("plugin"), f;
3139
- }), h = w(() => {
3140
- var S, O;
3141
- let f = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3142
- return r.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((S = r.config) == null ? void 0 : S.controlPlaneId) || "") : r.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), f = f.replace(/{id}/gi, r.config.entityId), f;
3136
+ }), Z = A(() => {
3137
+ const g = [];
3138
+ return k.value.basic.length && g.push("basic"), k.value.advanced.length && g.push("advanced"), k.value.plugin.length && g.push("plugin"), g;
3139
+ }), p = A(() => {
3140
+ var $, F;
3141
+ let g = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3142
+ return r.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, (($ = r.config) == null ? void 0 : $.controlPlaneId) || "") : r.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), g = g.replace(/{id}/gi, r.config.entityId), g;
3143
3143
  });
3144
- return Ae(m, (f) => {
3145
- n("loading", f);
3144
+ return Ae(h, (g) => {
3145
+ n("loading", g);
3146
3146
  }, { immediate: !0 }), Lt(async () => {
3147
- p.value = !1, m.value = !0;
3147
+ f.value = !1, h.value = !0;
3148
3148
  try {
3149
- const { data: f } = await l.get(h.value);
3149
+ const { data: g } = await l.get(p.value);
3150
3150
  if (r.dataKey)
3151
- if (typeof f[r.dataKey] < "u")
3152
- v.value = { ...f[r.dataKey] };
3151
+ if (typeof g[r.dataKey] < "u")
3152
+ b.value = { ...g[r.dataKey] };
3153
3153
  else
3154
3154
  throw new Error(i("errors.dataKeyUndefined", { dataKey: r.dataKey }));
3155
3155
  else
3156
- v.value = { ...f };
3157
- Object.keys(r.configSchema).filter((O) => r.configSchema[O].forceShow).forEach((O) => {
3158
- v.value && typeof v.value[O] > "u" && (v.value[O] = null);
3159
- }), n("fetch:success", f);
3160
- } catch (f) {
3161
- const S = a(f);
3162
- y.value = S.startsWith("code") ? i("baseConfigCard.errors.load") : S, p.value = !0, n("fetch:error", f);
3156
+ b.value = { ...g };
3157
+ Object.keys(r.configSchema).filter((F) => r.configSchema[F].forceShow).forEach((F) => {
3158
+ b.value && typeof b.value[F] > "u" && (b.value[F] = null);
3159
+ }), n("fetch:success", g);
3160
+ } catch (g) {
3161
+ const $ = a(g);
3162
+ v.value = $.startsWith("code") ? i("baseConfigCard.errors.load") : $, f.value = !0, n("fetch:error", g);
3163
3163
  } finally {
3164
- m.value = !1;
3164
+ h.value = !1;
3165
3165
  }
3166
- }), (f, S) => {
3167
- const O = K("KLabel"), x = K("KSelect"), j = K("KButton"), T = K("KSkeleton"), F = K("KEmptyState"), D = K("KCard");
3168
- return g(), M(D, {
3166
+ }), (g, $) => {
3167
+ const F = B("KLabel"), w = B("KSelect"), U = B("KButton"), T = B("KSkeleton"), S = B("KEmptyState"), j = B("KCard");
3168
+ return m(), M(j, {
3169
3169
  class: "kong-ui-entity-base-config-card",
3170
3170
  "title-tag": e.titleTag
3171
3171
  }, ke({
3172
- actions: b(() => [
3172
+ actions: x(() => [
3173
3173
  L("div", Go, [
3174
- z(f.$slots, "actions", {}, void 0, !0),
3175
- R(O, {
3174
+ Y(g.$slots, "actions", {}, void 0, !0),
3175
+ R(F, {
3176
3176
  class: "config-format-select-label",
3177
3177
  "data-testid": "config-format-select-label"
3178
3178
  }, {
3179
- default: b(() => [
3180
- Y($(e.label), 1)
3179
+ default: x(() => [
3180
+ V(O(e.label), 1)
3181
3181
  ]),
3182
3182
  _: 1
3183
3183
  }),
3184
- R(x, {
3184
+ R(w, {
3185
3185
  "data-testid": "select-config-format",
3186
3186
  items: s,
3187
3187
  onChange: d
3188
3188
  }),
3189
- e.configCardDoc ? (g(), M(j, {
3189
+ e.configCardDoc ? (m(), M(U, {
3190
3190
  key: 0,
3191
3191
  appearance: "tertiary",
3192
3192
  class: "book-icon",
3193
3193
  "data-testid": "book-icon"
3194
3194
  }, {
3195
- default: b(() => [
3195
+ default: x(() => [
3196
3196
  L("a", {
3197
3197
  href: e.configCardDoc,
3198
3198
  rel: "noopener",
@@ -3202,40 +3202,40 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3202
3202
  ], 8, Zo)
3203
3203
  ]),
3204
3204
  _: 1
3205
- })) : U("", !0)
3205
+ })) : D("", !0)
3206
3206
  ])
3207
3207
  ]),
3208
- default: b(() => [
3209
- m.value ? (g(), M(T, {
3208
+ default: x(() => [
3209
+ h.value ? (m(), M(T, {
3210
3210
  key: 0,
3211
3211
  "data-testid": "config-card-loader",
3212
3212
  "table-columns": 2,
3213
3213
  type: "table"
3214
- })) : p.value ? (g(), M(F, {
3214
+ })) : f.value ? (m(), M(S, {
3215
3215
  key: 1,
3216
3216
  "data-testid": "config-card-fetch-error",
3217
3217
  "icon-variant": "error"
3218
3218
  }, {
3219
- default: b(() => [
3220
- L("h3", null, $(y.value), 1)
3219
+ default: x(() => [
3220
+ L("h3", null, O(v.value), 1)
3221
3221
  ]),
3222
3222
  _: 1
3223
- })) : U("", !0),
3223
+ })) : D("", !0),
3224
3224
  L("div", Qo, [
3225
3225
  R(vo, {
3226
3226
  config: e.config,
3227
- "fetcher-url": h.value,
3227
+ "fetcher-url": p.value,
3228
3228
  format: u.value,
3229
3229
  "prop-list-types": Z.value,
3230
3230
  "property-collections": k.value,
3231
- record: v.value
3231
+ record: b.value
3232
3232
  }, ke({ _: 2 }, [
3233
- ae(Object.keys(f.$slots), (q) => ({
3233
+ ae(Object.keys(g.$slots), (q) => ({
3234
3234
  name: q,
3235
- fn: b(({ row: V, rowValue: ye }) => [
3236
- z(f.$slots, q, {
3237
- row: V,
3238
- rowValue: ye
3235
+ fn: x(({ row: J, rowValue: he }) => [
3236
+ Y(g.$slots, q, {
3237
+ row: J,
3238
+ rowValue: he
3239
3239
  }, void 0, !0)
3240
3240
  ])
3241
3241
  }))
@@ -3246,10 +3246,10 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3246
3246
  }, [
3247
3247
  e.hideTitle ? void 0 : {
3248
3248
  name: "title",
3249
- fn: b(() => [
3249
+ fn: x(() => [
3250
3250
  L("span", Jo, [
3251
- z(f.$slots, "title", {}, () => [
3252
- Y($(E(i)("baseConfigCard.title")), 1)
3251
+ Y(g.$slots, "title", {}, () => [
3252
+ V(O(E(i)("baseConfigCard.title")), 1)
3253
3253
  ], !0)
3254
3254
  ])
3255
3255
  ]),
@@ -3323,19 +3323,19 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3323
3323
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
3324
3324
  setup(e, { emit: t }) {
3325
3325
  var Z;
3326
- const n = t, r = e, i = jn(), { i18n: { t: a } } = W.useI18n(), { getMessageFromError: o } = W.useErrors(), { axiosInstance: l } = W.useAxios((Z = r.config) == null ? void 0 : Z.axiosRequestConfig), s = B(!1), u = B(!1), d = B(""), c = w(() => r.canSubmit === !1 || r.isReadonly), m = B(!1), p = w(() => {
3327
- var A, f;
3328
- let h = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3329
- return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((A = r.config) == null ? void 0 : A.controlPlaneId) || "") : r.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (f = r.config) != null && f.workspace ? `/${r.config.workspace}` : "")), r.editId ? (h = h.replace(/{id}/gi, r.editId), h) : (h = h.replace(/\/{id}/gi, ""), h);
3330
- }), y = () => {
3331
- m.value = !m.value;
3332
- }, v = () => {
3326
+ const n = t, r = e, i = jn(), { i18n: { t: a } } = z.useI18n(), { getMessageFromError: o } = z.useErrors(), { axiosInstance: l } = z.useAxios((Z = r.config) == null ? void 0 : Z.axiosRequestConfig), s = K(!1), u = K(!1), d = K(""), c = A(() => r.canSubmit === !1 || r.isReadonly), h = K(!1), f = A(() => {
3327
+ var y, g;
3328
+ let p = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3329
+ return r.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((y = r.config) == null ? void 0 : y.controlPlaneId) || "") : r.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (g = r.config) != null && g.workspace ? `/${r.config.workspace}` : "")), r.editId ? (p = p.replace(/{id}/gi, r.editId), p) : (p = p.replace(/\/{id}/gi, ""), p);
3330
+ }), v = () => {
3331
+ h.value = !h.value;
3332
+ }, b = () => {
3333
3333
  r.config.cancelRoute ? i.push(r.config.cancelRoute) : _();
3334
3334
  }, _ = () => {
3335
3335
  n("cancel");
3336
3336
  }, N = () => {
3337
3337
  c.value || n("submit");
3338
- }, k = B([
3338
+ }, k = K([
3339
3339
  {
3340
3340
  title: a("baseForm.configuration.yaml"),
3341
3341
  hash: "#yaml"
@@ -3345,83 +3345,83 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3345
3345
  hash: "#json"
3346
3346
  }
3347
3347
  ]);
3348
- return Ae(() => s.value, (h) => {
3349
- n("loading", h);
3348
+ return Ae(() => s.value, (p) => {
3349
+ n("loading", p);
3350
3350
  }, { immediate: !0 }), Lt(async () => {
3351
3351
  if (r.editId)
3352
3352
  try {
3353
3353
  u.value = !1, s.value = !0;
3354
- const { data: h } = await l.get(p.value);
3355
- n("fetch:success", h);
3356
- } catch (h) {
3357
- const A = o(h);
3358
- d.value = A.startsWith("code") ? a("baseForm.errors.edit") : A, u.value = !0, n("fetch:error", h);
3354
+ const { data: p } = await l.get(f.value);
3355
+ n("fetch:success", p);
3356
+ } catch (p) {
3357
+ const y = o(p);
3358
+ d.value = y.startsWith("code") ? a("baseForm.errors.edit") : y, u.value = !0, n("fetch:error", p);
3359
3359
  } finally {
3360
3360
  s.value = !1;
3361
3361
  }
3362
- }), (h, A) => {
3363
- const f = K("KSkeleton"), S = K("KEmptyState"), O = K("KAlert"), x = K("KButton"), j = K("KTabs"), T = K("KSlideout"), F = K("KCard");
3364
- return g(), M(F, { class: "kong-ui-entity-base-form" }, {
3365
- default: b(() => [
3366
- s.value ? (g(), M(f, {
3362
+ }), (p, y) => {
3363
+ const g = B("KSkeleton"), $ = B("KEmptyState"), F = B("KAlert"), w = B("KButton"), U = B("KTabs"), T = B("KSlideout"), S = B("KCard");
3364
+ return m(), M(S, { class: "kong-ui-entity-base-form" }, {
3365
+ default: x(() => [
3366
+ s.value ? (m(), M(g, {
3367
3367
  key: 0,
3368
3368
  type: "form"
3369
- })) : u.value ? (g(), M(S, {
3369
+ })) : u.value ? (m(), M($, {
3370
3370
  key: 1,
3371
3371
  "action-button-text": E(a)("baseForm.actions.back"),
3372
3372
  "data-testid": "form-fetch-error",
3373
3373
  "icon-variant": "error",
3374
- onClickAction: v
3374
+ onClickAction: b
3375
3375
  }, {
3376
- default: b(() => [
3377
- L("h3", null, $(d.value), 1)
3376
+ default: x(() => [
3377
+ L("h3", null, O(d.value), 1)
3378
3378
  ]),
3379
3379
  _: 1
3380
- }, 8, ["action-button-text"])) : (g(), I("form", {
3380
+ }, 8, ["action-button-text"])) : (m(), I("form", {
3381
3381
  key: 2,
3382
3382
  "data-testid": "form-content",
3383
3383
  novalidate: r.noValidate,
3384
- onReset: We(_, ["prevent"]),
3385
- onSubmit: We(N, ["prevent"])
3384
+ onReset: ze(_, ["prevent"]),
3385
+ onSubmit: ze(N, ["prevent"])
3386
3386
  }, [
3387
- z(h.$slots, "default", {}, void 0, !0),
3388
- e.errorMessage ? (g(), M(O, {
3387
+ Y(p.$slots, "default", {}, void 0, !0),
3388
+ e.errorMessage ? (m(), M(F, {
3389
3389
  key: 0,
3390
3390
  appearance: "danger",
3391
3391
  "data-testid": "form-error",
3392
3392
  message: e.errorMessage
3393
- }, null, 8, ["message"])) : U("", !0),
3393
+ }, null, 8, ["message"])) : D("", !0),
3394
3394
  L("div", tl, [
3395
- z(h.$slots, "form-actions", {}, () => [
3396
- R(x, {
3395
+ Y(p.$slots, "form-actions", {}, () => [
3396
+ R(w, {
3397
3397
  appearance: "tertiary",
3398
3398
  "data-testid": "form-view-configuration",
3399
- onClick: A[0] || (A[0] = (D) => y())
3399
+ onClick: y[0] || (y[0] = (j) => v())
3400
3400
  }, {
3401
- default: b(() => [
3402
- Y($(E(a)("baseForm.actions.viewConfiguration")), 1)
3401
+ default: x(() => [
3402
+ V(O(E(a)("baseForm.actions.viewConfiguration")), 1)
3403
3403
  ]),
3404
3404
  _: 1
3405
3405
  }),
3406
- R(x, {
3406
+ R(w, {
3407
3407
  appearance: "secondary",
3408
3408
  "data-testid": "form-cancel",
3409
3409
  disabled: e.isReadonly,
3410
3410
  type: "reset"
3411
3411
  }, {
3412
- default: b(() => [
3413
- Y($(E(a)("baseForm.actions.cancel")), 1)
3412
+ default: x(() => [
3413
+ V(O(E(a)("baseForm.actions.cancel")), 1)
3414
3414
  ]),
3415
3415
  _: 1
3416
3416
  }, 8, ["disabled"]),
3417
- R(x, {
3417
+ R(w, {
3418
3418
  appearance: "primary",
3419
3419
  "data-testid": "form-submit",
3420
3420
  disabled: c.value,
3421
3421
  type: "submit"
3422
3422
  }, {
3423
- default: b(() => [
3424
- Y($(E(a)("baseForm.actions.save")), 1)
3423
+ default: x(() => [
3424
+ V(O(E(a)("baseForm.actions.save")), 1)
3425
3425
  ]),
3426
3426
  _: 1
3427
3427
  }, 8, ["disabled"])
@@ -3434,24 +3434,24 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3434
3434
  "has-overlay": !1,
3435
3435
  "offset-top": 60,
3436
3436
  title: E(a)("baseForm.configuration.title"),
3437
- visible: m.value,
3438
- onClose: A[1] || (A[1] = (D) => y())
3437
+ visible: h.value,
3438
+ onClose: y[1] || (y[1] = (j) => v())
3439
3439
  }, {
3440
- default: b(() => [
3441
- L("div", null, $(E(a)("baseForm.configuration.message")), 1),
3442
- R(j, {
3440
+ default: x(() => [
3441
+ L("div", null, O(E(a)("baseForm.configuration.message")), 1),
3442
+ R(U, {
3443
3443
  "data-testid": "form-view-configuration-slideout-tabs",
3444
3444
  tabs: k.value
3445
3445
  }, {
3446
- json: b(() => [
3446
+ json: x(() => [
3447
3447
  R(Ut, {
3448
3448
  config: e.config,
3449
- "fetcher-url": p.value,
3449
+ "fetcher-url": f.value,
3450
3450
  "json-record": r.formFields,
3451
3451
  "request-method": r.editId ? "put" : "post"
3452
3452
  }, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
3453
3453
  ]),
3454
- yaml: b(() => [
3454
+ yaml: x(() => [
3455
3455
  R(Tn, {
3456
3456
  "yaml-record": r.formFields
3457
3457
  }, null, 8, ["yaml-record"])
@@ -3483,17 +3483,17 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3483
3483
  }
3484
3484
  },
3485
3485
  setup(e) {
3486
- const t = e, n = w(() => {
3486
+ const t = e, n = A(() => {
3487
3487
  var _;
3488
3488
  return ((_ = t.rowEl) == null ? void 0 : _.querySelector(`[data-testid="${t.keyName}"]`)) || null;
3489
- }), r = w(() => {
3489
+ }), r = A(() => {
3490
3490
  var _;
3491
3491
  return ((_ = n.value) == null ? void 0 : _.querySelector('[data-truncate="true"]')) || null;
3492
- }), i = w(() => {
3492
+ }), i = A(() => {
3493
3493
  var N, k;
3494
3494
  const _ = (N = t.rowEl) == null ? void 0 : N.querySelectorAll("td");
3495
3495
  return _ ? ((k = _[0]) == null ? void 0 : k.getAttribute("data-testid")) === t.keyName : !1;
3496
- }), a = w(() => i.value || t.tooltip);
3496
+ }), a = A(() => i.value || t.tooltip);
3497
3497
  let o;
3498
3498
  const l = () => {
3499
3499
  o && (o.disconnect(), o = void 0);
@@ -3501,12 +3501,12 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3501
3501
  var N, k, Z;
3502
3502
  let _ = ((N = n.value) == null ? void 0 : N.clientWidth) || 0;
3503
3503
  if (n.value && "getComputedStyle" in window) {
3504
- const h = window.getComputedStyle(n.value);
3505
- _ -= (parseFloat(h.paddingLeft) || 0) + (parseFloat(h.paddingRight) || 0);
3504
+ const p = window.getComputedStyle(n.value);
3505
+ _ -= (parseFloat(p.paddingLeft) || 0) + (parseFloat(p.paddingRight) || 0);
3506
3506
  }
3507
- d.value = ((k = r.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, c.value = _, m.value = ((Z = u.value) == null ? void 0 : Z.innerText) || "";
3508
- }, u = B({}), d = B(0), c = B(0), m = B(""), p = w(() => [r.value, n.value]), y = Ae(
3509
- p,
3507
+ d.value = ((k = r.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, c.value = _, h.value = ((Z = u.value) == null ? void 0 : Z.innerText) || "";
3508
+ }, u = K({}), d = K(0), c = K(0), h = K(""), f = A(() => [r.value, n.value]), v = Ae(
3509
+ f,
3510
3510
  (_) => {
3511
3511
  if (a.value && (l(), "ResizeObserver" in window && window)) {
3512
3512
  o = new ResizeObserver((N) => {
@@ -3519,33 +3519,33 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3519
3519
  }
3520
3520
  },
3521
3521
  { immediate: !0, flush: "post", deep: !0 }
3522
- ), v = w(() => a.value ? d.value > c.value : !1);
3522
+ ), b = A(() => a.value ? d.value > c.value : !1);
3523
3523
  return Nn(() => {
3524
3524
  s();
3525
3525
  }), Rn(() => {
3526
- y();
3526
+ v();
3527
3527
  }), (_, N) => {
3528
- const k = K("KTooltip");
3529
- return g(), I("span", {
3528
+ const k = B("KTooltip");
3529
+ return m(), I("span", {
3530
3530
  ref_key: "contentRef",
3531
3531
  ref: u,
3532
3532
  class: "content-wrapper"
3533
3533
  }, [
3534
- a.value ? (g(), I("span", {
3534
+ a.value ? (m(), I("span", {
3535
3535
  key: 0,
3536
3536
  "data-truncate": a.value || void 0
3537
3537
  }, [
3538
3538
  R(k, {
3539
3539
  "max-width": "300",
3540
3540
  placement: "bottomStart",
3541
- text: v.value ? m.value : ""
3541
+ text: b.value ? h.value : ""
3542
3542
  }, {
3543
- default: b(() => [
3544
- z(_.$slots, "default", {}, void 0, !0)
3543
+ default: x(() => [
3544
+ Y(_.$slots, "default", {}, void 0, !0)
3545
3545
  ]),
3546
3546
  _: 3
3547
3547
  }, 8, ["text"])
3548
- ], 8, rl)) : z(_.$slots, "default", { key: 1 }, void 0, !0)
3548
+ ], 8, rl)) : Y(_.$slots, "default", { key: 1 }, void 0, !0)
3549
3549
  ], 512);
3550
3550
  };
3551
3551
  }
@@ -3666,78 +3666,77 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3666
3666
  },
3667
3667
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3668
3668
  setup(e, { emit: t }) {
3669
- const n = e, r = t, { i18n: { t: i } } = W.useI18n(), a = w(() => {
3670
- var f, S;
3669
+ const n = e, r = t, { i18n: { t: i } } = z.useI18n(), a = A(() => {
3670
+ var y, g;
3671
3671
  return typeof n.errorMessage == "string" ? {
3672
3672
  hasError: !!n.errorMessage,
3673
3673
  title: n.errorMessage,
3674
3674
  message: void 0
3675
3675
  } : {
3676
3676
  hasError: !!n.errorMessage,
3677
- title: (f = n.errorMessage) == null ? void 0 : f.title,
3678
- message: (S = n.errorMessage) == null ? void 0 : S.message
3677
+ title: (y = n.errorMessage) == null ? void 0 : y.title,
3678
+ message: (g = n.errorMessage) == null ? void 0 : g.message
3679
3679
  };
3680
- }), o = w(() => n.cacheIdentifier || n.preferencesStorageKey), l = (f) => f.hasData || !!n.query, s = w(() => {
3681
- const f = [];
3682
- return Object.keys(n.tableHeaders).forEach((O) => {
3683
- const x = n.tableHeaders[O];
3684
- f.push({
3685
- label: x.label ?? O,
3686
- key: O,
3687
- sortable: x.sortable ?? !1,
3688
- hidable: !0
3680
+ }), o = A(() => n.cacheIdentifier || n.preferencesStorageKey), l = (y) => y.hasData || !!n.query, s = A(() => {
3681
+ const y = [];
3682
+ return Object.keys(n.tableHeaders).forEach(($) => {
3683
+ const F = n.tableHeaders[$];
3684
+ y.push({
3685
+ label: F.label ?? $,
3686
+ key: $,
3687
+ sortable: F.sortable ?? !1
3689
3688
  });
3690
- }), n.enableEntityActions && f.push({
3689
+ }), n.enableEntityActions && y.push({
3691
3690
  key: "actions",
3692
3691
  hideLabel: !0
3693
- }), f;
3694
- }), u = (f) => ({
3695
- "data-rowid": f.id,
3696
- "data-testid": f.name,
3697
- ...n.rowAttributes(f)
3698
- }), d = B({}), c = (f) => {
3699
- var S;
3700
- return (S = d.value) == null ? void 0 : S.$el.querySelector(`[data-rowid="${f.id}"]`);
3701
- }, m = (f) => {
3702
- const S = {
3703
- "data-testid": f.headerKey,
3704
- ...n.cellAttributes(f)
3692
+ }), y;
3693
+ }), u = (y) => ({
3694
+ "data-rowid": y.id,
3695
+ "data-testid": y.name,
3696
+ ...n.rowAttributes(y)
3697
+ }), d = K({}), c = (y) => {
3698
+ var g;
3699
+ return (g = d.value) == null ? void 0 : g.$el.querySelector(`[data-rowid="${y.id}"]`);
3700
+ }, h = (y) => {
3701
+ const g = {
3702
+ "data-testid": y.headerKey,
3703
+ ...n.cellAttributes(y)
3705
3704
  };
3706
- return f.colIndex === 0 && (S.style = {
3705
+ return y.colIndex === 0 && (g.style = {
3707
3706
  maxWidth: "250px",
3708
3707
  overflowX: "hidden",
3709
3708
  textOverflow: "ellipsis"
3710
- }), S;
3711
- }, p = () => {
3712
- r("empty-state-cta-clicked"), y();
3713
- }, y = () => {
3709
+ }), g;
3710
+ }, f = () => {
3711
+ r("empty-state-cta-clicked"), v();
3712
+ }, v = () => {
3714
3713
  r("clear-search-input");
3715
- }, v = w(() => n.disableRowClick ? void 0 : (f, S) => {
3716
- r("click:row", S);
3717
- }), _ = (f) => {
3718
- r("sort", f);
3719
- }, { setTablePreferences: N, getTablePreferences: k } = zn(), Z = B(k(n.preferencesStorageKey)), h = w(() => {
3720
- const f = k(n.preferencesStorageKey);
3714
+ }, b = A(() => n.disableRowClick ? void 0 : (y, g) => {
3715
+ r("click:row", g);
3716
+ }), _ = (y) => {
3717
+ r("sort", y);
3718
+ }, { setTablePreferences: N, getTablePreferences: k } = zn(), Z = A(() => {
3719
+ const y = k(n.preferencesStorageKey);
3721
3720
  return {
3722
3721
  ...n.initialFetcherParams,
3723
- ...f
3722
+ ...y
3724
3723
  };
3725
- }), A = (f) => {
3726
- Z.value = f, n.preferencesStorageKey && N(n.preferencesStorageKey, f);
3724
+ }), p = (y) => {
3725
+ n.preferencesStorageKey && N(n.preferencesStorageKey, y);
3727
3726
  };
3728
- return (f, S) => {
3729
- const O = K("KIcon"), x = K("KButton"), j = K("KDropdown"), T = K("KTable"), F = K("KCard");
3730
- return g(), M(F, {
3727
+ return (y, g) => {
3728
+ const $ = B("KIcon"), F = B("KButton"), w = B("KDropdown"), U = B("KTable"), T = B("KCard");
3729
+ return m(), M(T, {
3731
3730
  class: "kong-ui-entity-base-table",
3732
3731
  title: e.title,
3733
3732
  "title-tag": e.titleTag
3734
3733
  }, {
3735
- default: b(() => [
3736
- R(T, {
3734
+ default: x(() => [
3735
+ R(U, {
3737
3736
  ref_key: "tableRefs",
3738
3737
  ref: d,
3739
3738
  "cache-identifier": o.value,
3740
- "cell-attrs": m,
3739
+ "cell-attrs": h,
3741
3740
  "disable-pagination-page-jump": e.disablePaginationPageJump,
3742
3741
  "disable-sorting": e.disableSorting,
3743
3742
  "empty-state-action-message": e.query ? E(i)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
@@ -3753,52 +3752,50 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3753
3752
  "has-error": a.value.hasError,
3754
3753
  headers: s.value,
3755
3754
  "hide-pagination-when-optional": "",
3756
- "initial-fetcher-params": h.value,
3755
+ "initial-fetcher-params": Z.value,
3757
3756
  "is-loading": e.isLoading,
3758
3757
  "pagination-type": e.paginationType,
3759
- "resize-columns": "",
3760
3758
  "row-attrs": u,
3761
3759
  "search-input": e.query,
3762
- "table-preferences": Z.value,
3763
- onKtableEmptyStateCtaClicked: p,
3764
- "onRow:click": v.value,
3765
- onSort: S[0] || (S[0] = (D) => _(D)),
3766
- "onUpdate:tablePreferences": A
3760
+ onKtableEmptyStateCtaClicked: f,
3761
+ "onRow:click": b.value,
3762
+ onSort: g[0] || (g[0] = (S) => _(S)),
3763
+ "onUpdate:tablePreferences": p
3767
3764
  }, ke({
3768
- toolbar: b(({ state: D }) => [
3769
- he(L("div", ol, [
3770
- z(f.$slots, "toolbar-filter", {}, void 0, !0),
3771
- f.$slots["toolbar-button"] ? (g(), I("div", ll, [
3772
- z(f.$slots, "toolbar-button", {}, void 0, !0)
3773
- ])) : U("", !0)
3765
+ toolbar: x(({ state: S }) => [
3766
+ me(L("div", ol, [
3767
+ Y(y.$slots, "toolbar-filter", {}, void 0, !0),
3768
+ y.$slots["toolbar-button"] ? (m(), I("div", ll, [
3769
+ Y(y.$slots, "toolbar-button", {}, void 0, !0)
3770
+ ])) : D("", !0)
3774
3771
  ], 512), [
3775
- [me, l(D)]
3772
+ [ge, l(S)]
3776
3773
  ])
3777
3774
  ]),
3778
- actions: b(({ row: D, rowKey: q, rowValue: V }) => [
3775
+ actions: x(({ row: S, rowKey: j, rowValue: q }) => [
3779
3776
  L("div", {
3780
3777
  class: "actions-container",
3781
- "data-testid": D.name
3778
+ "data-testid": S.name
3782
3779
  }, [
3783
- R(j, {
3780
+ R(w, {
3784
3781
  "kpop-attributes": { placement: "bottomEnd" },
3785
3782
  width: e.dropdownMenuWidth
3786
3783
  }, {
3787
- items: b(() => [
3788
- z(f.$slots, "actions", {
3789
- row: D,
3790
- rowKey: q,
3791
- rowValue: V
3784
+ items: x(() => [
3785
+ Y(y.$slots, "actions", {
3786
+ row: S,
3787
+ rowKey: j,
3788
+ rowValue: q
3792
3789
  }, void 0, !0)
3793
3790
  ]),
3794
- default: b(() => [
3795
- R(x, {
3791
+ default: x(() => [
3792
+ R(F, {
3796
3793
  class: "actions-trigger",
3797
3794
  "data-testid": "overflow-actions-button",
3798
3795
  size: "small"
3799
3796
  }, {
3800
- icon: b(() => [
3801
- R(O, {
3797
+ icon: x(() => [
3798
+ R($, {
3802
3799
  color: E(Sr),
3803
3800
  icon: "more",
3804
3801
  size: "16"
@@ -3813,21 +3810,21 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3813
3810
  ]),
3814
3811
  _: 2
3815
3812
  }, [
3816
- ae(e.tableHeaders, (D, q) => ({
3817
- name: q,
3818
- fn: b(({ row: V, rowKey: ye, rowValue: Se }) => [
3813
+ ae(e.tableHeaders, (S, j) => ({
3814
+ name: j,
3815
+ fn: x(({ row: q, rowKey: J, rowValue: he }) => [
3819
3816
  R(al, {
3820
- "key-name": String(q),
3821
- "row-el": c(V),
3822
- tooltip: D.tooltip
3817
+ "key-name": String(j),
3818
+ "row-el": c(q),
3819
+ tooltip: S.tooltip
3823
3820
  }, {
3824
- default: b(() => [
3825
- z(f.$slots, q, {
3826
- row: V,
3827
- rowKey: ye,
3828
- rowValue: Se
3821
+ default: x(() => [
3822
+ Y(y.$slots, j, {
3823
+ row: q,
3824
+ rowKey: J,
3825
+ rowValue: he
3829
3826
  }, () => [
3830
- Y($(Se), 1)
3827
+ V(O(he), 1)
3831
3828
  ], !0)
3832
3829
  ]),
3833
3830
  _: 2
@@ -3836,18 +3833,18 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3836
3833
  })),
3837
3834
  e.query ? void 0 : {
3838
3835
  name: "empty-state-action-icon",
3839
- fn: b(() => [
3836
+ fn: x(() => [
3840
3837
  R(E(wo))
3841
3838
  ]),
3842
3839
  key: "0"
3843
3840
  }
3844
- ]), 1032, ["cache-identifier", "disable-pagination-page-jump", "disable-sorting", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "enable-client-sort", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "has-error", "headers", "initial-fetcher-params", "is-loading", "pagination-type", "search-input", "table-preferences", "onRow:click"])
3841
+ ]), 1032, ["cache-identifier", "disable-pagination-page-jump", "disable-sorting", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "enable-client-sort", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "has-error", "headers", "initial-fetcher-params", "is-loading", "pagination-type", "search-input", "onRow:click"])
3845
3842
  ]),
3846
3843
  _: 3
3847
3844
  }, 8, ["title", "title-tag"]);
3848
3845
  };
3849
3846
  }
3850
- }), Zl = /* @__PURE__ */ ie(cl, [["__scopeId", "data-v-3d6eb88e"]]), ul = {
3847
+ }), Zl = /* @__PURE__ */ ie(cl, [["__scopeId", "data-v-adb02213"]]), ul = {
3851
3848
  key: 0,
3852
3849
  class: "kong-ui-entity-delete-error"
3853
3850
  }, dl = {
@@ -3892,14 +3889,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3892
3889
  },
3893
3890
  emits: ["cancel", "proceed"],
3894
3891
  setup(e, { emit: t }) {
3895
- const { i18nT: n } = W.useI18n(), r = e, i = t, a = w(() => r.needConfirm ? r.entityName : ""), o = () => {
3892
+ const { i18nT: n } = z.useI18n(), r = e, i = t, a = A(() => r.needConfirm ? r.entityName : ""), o = () => {
3896
3893
  i("cancel");
3897
3894
  }, l = () => {
3898
3895
  i("proceed");
3899
3896
  };
3900
3897
  return (s, u) => {
3901
- const d = K("KAlert"), c = K("KPrompt");
3902
- return g(), M(c, {
3898
+ const d = B("KAlert"), c = B("KPrompt");
3899
+ return m(), M(c, {
3903
3900
  "action-button-appearance": "danger",
3904
3901
  "action-button-disabled": e.actionPending,
3905
3902
  "action-button-text": "Yes, delete",
@@ -3910,38 +3907,38 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3910
3907
  onCancel: o,
3911
3908
  onProceed: l
3912
3909
  }, {
3913
- default: b(() => [
3914
- e.error ? (g(), I("div", ul, [
3910
+ default: x(() => [
3911
+ e.error ? (m(), I("div", ul, [
3915
3912
  R(d, { appearance: "danger" }, {
3916
- default: b(() => [
3917
- Y($(e.error), 1)
3913
+ default: x(() => [
3914
+ V(O(e.error), 1)
3918
3915
  ]),
3919
3916
  _: 1
3920
3917
  })
3921
- ])) : U("", !0),
3918
+ ])) : D("", !0),
3922
3919
  R(E(n), {
3923
3920
  class: "message",
3924
3921
  keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3925
3922
  tag: "p"
3926
3923
  }, ke({
3927
- entityType: b(() => [
3928
- Y($(r.entityType), 1)
3924
+ entityType: x(() => [
3925
+ V(O(r.entityType), 1)
3929
3926
  ]),
3930
3927
  _: 2
3931
3928
  }, [
3932
3929
  r.entityName ? {
3933
3930
  name: "entityName",
3934
- fn: b(() => [
3935
- L("strong", null, $(r.entityName), 1)
3931
+ fn: x(() => [
3932
+ L("strong", null, O(r.entityName), 1)
3936
3933
  ]),
3937
3934
  key: "0"
3938
3935
  } : void 0
3939
3936
  ]), 1032, ["keypath"]),
3940
- r.description || s.$slots.description ? (g(), I("div", dl, [
3941
- z(s.$slots, "description", {}, () => [
3942
- L("p", null, $(r.description), 1)
3937
+ r.description || s.$slots.description ? (m(), I("div", dl, [
3938
+ Y(s.$slots, "description", {}, () => [
3939
+ L("p", null, O(r.description), 1)
3943
3940
  ], !0)
3944
- ])) : U("", !0)
3941
+ ])) : D("", !0)
3945
3942
  ]),
3946
3943
  _: 3
3947
3944
  }, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
@@ -3970,7 +3967,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3970
3967
  }
3971
3968
  },
3972
3969
  setup(e) {
3973
- return (t, n) => (g(), I("svg", pl, [
3970
+ return (t, n) => (m(), I("svg", pl, [
3974
3971
  L("mask", hl, [
3975
3972
  L("rect", {
3976
3973
  fill: e.color,
@@ -4009,186 +4006,186 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
4009
4006
  },
4010
4007
  emits: ["update:modelValue"],
4011
4008
  setup(e, { emit: t }) {
4012
- const { i18n: { t: n } } = W.useI18n(), r = e, i = t, a = B(!1), o = B({}), l = B(/* @__PURE__ */ new Set()), s = w(() => {
4013
- const h = [];
4014
- return new URLSearchParams(r.modelValue).forEach((A, f) => {
4015
- A !== "" && h.push(f);
4016
- }), h;
4017
- }), u = w(() => {
4018
- const h = r.config.fields;
4019
- return Object.keys(h).filter((A) => {
4020
- var f;
4021
- return (f = h == null ? void 0 : h[A]) == null ? void 0 : f.searchable;
4022
- }).map((A) => ({
4023
- label: h[A].label || A,
4024
- value: A,
4009
+ const { i18n: { t: n } } = z.useI18n(), r = e, i = t, a = K(!1), o = K({}), l = K(/* @__PURE__ */ new Set()), s = A(() => {
4010
+ const p = [];
4011
+ return new URLSearchParams(r.modelValue).forEach((y, g) => {
4012
+ y !== "" && p.push(g);
4013
+ }), p;
4014
+ }), u = A(() => {
4015
+ const p = r.config.fields;
4016
+ return Object.keys(p).filter((y) => {
4017
+ var g;
4018
+ return (g = p == null ? void 0 : p[y]) == null ? void 0 : g.searchable;
4019
+ }).map((y) => ({
4020
+ label: p[y].label || y,
4021
+ value: y,
4025
4022
  expanded: !1
4026
4023
  }));
4027
4024
  });
4028
- Ae(() => r.modelValue, (h) => {
4029
- o.value = {}, new URLSearchParams(h).forEach((A, f) => {
4030
- o.value[f] = A;
4025
+ Ae(() => r.modelValue, (p) => {
4026
+ o.value = {}, new URLSearchParams(p).forEach((y, g) => {
4027
+ o.value[g] = y;
4031
4028
  });
4032
4029
  });
4033
4030
  const d = () => {
4034
4031
  a.value = !a.value;
4035
- }, c = (h) => {
4036
- l.value.has(h) ? l.value.delete(h) : l.value.add(h);
4037
- }, m = (h) => {
4038
- i("update:modelValue", h);
4039
- }, p = () => {
4040
- m("");
4041
- }, y = (h) => `filter-${h}`, v = (h) => {
4042
- var A, f;
4043
- return (((f = (A = r.config.schema) == null ? void 0 : A[h]) == null ? void 0 : f.values) ?? []).map((S) => ({
4044
- value: S,
4045
- label: S
4032
+ }, c = (p) => {
4033
+ l.value.has(p) ? l.value.delete(p) : l.value.add(p);
4034
+ }, h = (p) => {
4035
+ i("update:modelValue", p);
4036
+ }, f = () => {
4037
+ h("");
4038
+ }, v = (p) => `filter-${p}`, b = (p) => {
4039
+ var y, g;
4040
+ return (((g = (y = r.config.schema) == null ? void 0 : y[p]) == null ? void 0 : g.values) ?? []).map(($) => ({
4041
+ value: $,
4042
+ label: $
4046
4043
  }));
4047
- }, _ = (h) => {
4048
- var A, f;
4049
- return ((f = (A = r.config.schema) == null ? void 0 : A[h]) == null ? void 0 : f.type) ?? "text";
4050
- }, N = (h) => {
4044
+ }, _ = (p) => {
4045
+ var y, g;
4046
+ return ((g = (y = r.config.schema) == null ? void 0 : y[p]) == null ? void 0 : g.type) ?? "text";
4047
+ }, N = (p) => {
4051
4048
  o.value = {
4052
4049
  ...o.value,
4053
- [h]: ""
4050
+ [p]: ""
4054
4051
  }, Z();
4055
4052
  }, k = () => {
4056
4053
  o.value = {}, Z(!0);
4057
- }, Z = (h = !1) => {
4058
- const A = Object.keys(o.value).reduce((f, S) => (o.value[S] && (f[S] = `${o.value[S]}`), f), {});
4059
- h && (a.value = !1), i("update:modelValue", new URLSearchParams(A).toString());
4054
+ }, Z = (p = !1) => {
4055
+ const y = Object.keys(o.value).reduce((g, $) => (o.value[$] && (g[$] = `${o.value[$]}`), g), {});
4056
+ p && (a.value = !1), i("update:modelValue", new URLSearchParams(y).toString());
4060
4057
  };
4061
- return (h, A) => {
4062
- const f = K("KInput"), S = K("KButton"), O = K("KSelect");
4063
- return e.config.isExactMatch ? (g(), M(f, {
4058
+ return (p, y) => {
4059
+ const g = B("KInput"), $ = B("KButton"), F = B("KSelect");
4060
+ return e.config.isExactMatch ? (m(), M(g, {
4064
4061
  key: 0,
4065
4062
  autocomplete: "off",
4066
4063
  class: "kong-ui-entity-filter-input",
4067
4064
  "data-testid": "search-input",
4068
4065
  "model-value": e.modelValue,
4069
4066
  placeholder: e.config.placeholder,
4070
- "onUpdate:modelValue": m
4067
+ "onUpdate:modelValue": h
4071
4068
  }, {
4072
- before: b(() => [
4069
+ before: x(() => [
4073
4070
  R(Ft)
4074
4071
  ]),
4075
- after: b(() => [
4076
- he(R(E(qo), {
4072
+ after: x(() => [
4073
+ me(R(E(qo), {
4077
4074
  class: "kong-ui-entity-filter-clear",
4078
- onClick: p
4075
+ onClick: f
4079
4076
  }, null, 512), [
4080
- [me, e.modelValue !== ""]
4077
+ [ge, e.modelValue !== ""]
4081
4078
  ])
4082
4079
  ]),
4083
4080
  _: 1
4084
- }, 8, ["model-value", "placeholder"])) : (g(), I("div", vl, [
4085
- R(S, {
4081
+ }, 8, ["model-value", "placeholder"])) : (m(), I("div", vl, [
4082
+ R($, {
4086
4083
  appearance: "tertiary",
4087
4084
  "data-testid": "filter-button",
4088
4085
  onClick: d
4089
4086
  }, {
4090
- default: b(() => [
4087
+ default: x(() => [
4091
4088
  R(Ft),
4092
- Y(" " + $(E(n)("filter.filterButtonText")) + " " + $(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4089
+ V(" " + O(E(n)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4093
4090
  ]),
4094
4091
  _: 1
4095
4092
  }),
4096
- he(L("div", {
4093
+ me(L("div", {
4097
4094
  class: "kong-ui-entity-filter-backdrop",
4098
4095
  onClick: d
4099
4096
  }, null, 512), [
4100
- [me, a.value]
4097
+ [ge, a.value]
4101
4098
  ]),
4102
- he(L("div", bl, [
4103
- (g(!0), I(se, null, ae(u.value, (x) => {
4104
- var j, T;
4105
- return g(), I("div", {
4106
- key: x.value,
4099
+ me(L("div", bl, [
4100
+ (m(!0), I(se, null, ae(u.value, (w) => {
4101
+ var U, T;
4102
+ return m(), I("div", {
4103
+ key: w.value,
4107
4104
  class: "kong-ui-entity-filter-menu-item",
4108
- "data-testid": x.value
4105
+ "data-testid": w.value
4109
4106
  }, [
4110
4107
  L("span", {
4111
- class: de(["menu-item-title", { expanded: l.value.has(x.value) }]),
4108
+ class: de(["menu-item-title", { expanded: l.value.has(w.value) }]),
4112
4109
  role: "button",
4113
4110
  tabindex: "0",
4114
- onClick: (F) => c(x.value),
4115
- onKeydown: Bn((F) => c(x.value), ["enter"])
4111
+ onClick: (S) => c(w.value),
4112
+ onKeydown: Bn((S) => c(w.value), ["enter"])
4116
4113
  }, [
4117
- Y($(x.label) + " ", 1),
4118
- he(L("span", _l, null, 512), [
4119
- [me, s.value.includes(x.value)]
4114
+ V(O(w.label) + " ", 1),
4115
+ me(L("span", _l, null, 512), [
4116
+ [ge, s.value.includes(w.value)]
4120
4117
  ]),
4121
4118
  R(E(Bo), {
4122
- class: de(["menu-item-expand-icon", { expanded: l.value.has(x.value) }]),
4119
+ class: de(["menu-item-expand-icon", { expanded: l.value.has(w.value) }]),
4123
4120
  color: E(Ir)
4124
4121
  }, null, 8, ["class", "color"])
4125
4122
  ], 42, Cl),
4126
- he(L("div", kl, [
4123
+ me(L("div", kl, [
4127
4124
  L("label", {
4128
4125
  class: "menu-item-label",
4129
- for: y(x.value)
4130
- }, $(E(n)("filter.fieldLabel")), 9, wl),
4131
- ((T = (j = e.config.schema) == null ? void 0 : j[x.value]) == null ? void 0 : T.type) === "select" ? (g(), M(O, {
4126
+ for: v(w.value)
4127
+ }, O(E(n)("filter.fieldLabel")), 9, wl),
4128
+ ((T = (U = e.config.schema) == null ? void 0 : U[w.value]) == null ? void 0 : T.type) === "select" ? (m(), M(F, {
4132
4129
  key: 0,
4133
- id: y(x.value),
4134
- modelValue: o.value[x.value],
4135
- "onUpdate:modelValue": (F) => o.value[x.value] = F,
4136
- items: v(x.value),
4130
+ id: v(w.value),
4131
+ modelValue: o.value[w.value],
4132
+ "onUpdate:modelValue": (S) => o.value[w.value] = S,
4133
+ items: b(w.value),
4137
4134
  placeholder: E(n)("filter.selectPlaceholder")
4138
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (g(), M(f, {
4135
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), M(g, {
4139
4136
  key: 1,
4140
- id: y(x.value),
4141
- modelValue: o.value[x.value],
4142
- "onUpdate:modelValue": (F) => o.value[x.value] = F,
4137
+ id: v(w.value),
4138
+ modelValue: o.value[w.value],
4139
+ "onUpdate:modelValue": (S) => o.value[w.value] = S,
4143
4140
  autocomplete: "off",
4144
4141
  placeholder: E(n)("filter.inputPlaceholder"),
4145
- type: _(x.value)
4142
+ type: _(w.value)
4146
4143
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
4147
4144
  ], 512), [
4148
- [me, l.value.has(x.value)]
4145
+ [ge, l.value.has(w.value)]
4149
4146
  ]),
4150
- he(L("div", Al, [
4151
- R(S, {
4147
+ me(L("div", Al, [
4148
+ R($, {
4152
4149
  appearance: "tertiary",
4153
4150
  "data-testid": "apply-filter",
4154
4151
  size: "small",
4155
- onClick: A[0] || (A[0] = (F) => Z(!0))
4152
+ onClick: y[0] || (y[0] = (S) => Z(!0))
4156
4153
  }, {
4157
- default: b(() => [
4158
- Y($(E(n)("filter.applyButtonText")), 1)
4154
+ default: x(() => [
4155
+ V(O(E(n)("filter.applyButtonText")), 1)
4159
4156
  ]),
4160
4157
  _: 1
4161
4158
  }),
4162
- R(S, {
4159
+ R($, {
4163
4160
  appearance: "tertiary",
4164
4161
  "data-testid": "clear-filter",
4165
4162
  size: "small",
4166
- onClick: (F) => N(x.value)
4163
+ onClick: (S) => N(w.value)
4167
4164
  }, {
4168
- default: b(() => [
4169
- Y($(E(n)("filter.clearButtonText")), 1)
4165
+ default: x(() => [
4166
+ V(O(E(n)("filter.clearButtonText")), 1)
4170
4167
  ]),
4171
4168
  _: 2
4172
4169
  }, 1032, ["onClick"])
4173
4170
  ], 512), [
4174
- [me, l.value.has(x.value)]
4171
+ [ge, l.value.has(w.value)]
4175
4172
  ])
4176
4173
  ], 8, xl);
4177
4174
  }), 128)),
4178
4175
  L("div", Sl, [
4179
- R(S, {
4176
+ R($, {
4180
4177
  appearance: "tertiary",
4181
4178
  size: "small",
4182
4179
  onClick: k
4183
4180
  }, {
4184
- default: b(() => [
4185
- Y($(E(n)("filter.clearAllButtonText")), 1)
4181
+ default: x(() => [
4182
+ V(O(E(n)("filter.clearAllButtonText")), 1)
4186
4183
  ]),
4187
4184
  _: 1
4188
4185
  })
4189
4186
  ])
4190
4187
  ], 512), [
4191
- [me, a.value]
4188
+ [ge, a.value]
4192
4189
  ])
4193
4190
  ]));
4194
4191
  };
@@ -4225,9 +4222,9 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
4225
4222
  },
4226
4223
  emits: ["cancel", "proceed"],
4227
4224
  setup(e, { emit: t }) {
4228
- const { i18n: { t: n }, i18nT: r } = W.useI18n(), i = e, a = t, o = B(!1), l = w(
4225
+ const { i18n: { t: n }, i18nT: r } = z.useI18n(), i = e, a = t, o = K(!1), l = A(
4229
4226
  () => i.action === "enable" ? n("toggleModal.enable.title", { entityType: i.entityType }) : n("toggleModal.disable.title", { entityType: i.entityType })
4230
- ), s = w(
4227
+ ), s = A(
4231
4228
  () => i.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
4232
4229
  ), u = () => a("cancel"), d = async () => {
4233
4230
  if (i.onConfirm) {
@@ -4241,10 +4238,10 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
4241
4238
  }
4242
4239
  }
4243
4240
  };
4244
- return (c, m) => {
4245
- const p = K("KPrompt");
4246
- return g(), M(Kn, { to: "body" }, [
4247
- R(p, {
4241
+ return (c, h) => {
4242
+ const f = B("KPrompt");
4243
+ return m(), M(Kn, { to: "body" }, [
4244
+ R(f, {
4248
4245
  "action-button-disabled": o.value,
4249
4246
  "action-button-text": s.value,
4250
4247
  "data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
@@ -4253,16 +4250,16 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
4253
4250
  onCancel: u,
4254
4251
  onProceed: d
4255
4252
  }, {
4256
- default: b(() => [
4253
+ default: x(() => [
4257
4254
  R(E(r), {
4258
4255
  keypath: `toggleModal.${i.action}.message`,
4259
4256
  scope: "global"
4260
4257
  }, {
4261
- entityType: b(() => [
4262
- Y($(e.entityType), 1)
4258
+ entityType: x(() => [
4259
+ V(O(e.entityType), 1)
4263
4260
  ]),
4264
- entityName: b(() => [
4265
- L("strong", null, $(e.entityName), 1)
4261
+ entityName: x(() => [
4262
+ L("strong", null, O(e.entityName), 1)
4266
4263
  ]),
4267
4264
  _: 1
4268
4265
  }, 8, ["keypath"])
@@ -4294,21 +4291,21 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
4294
4291
  }
4295
4292
  },
4296
4293
  setup(e) {
4297
- const t = e, n = B(void 0), r = w(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4294
+ const t = e, n = K(void 0), r = A(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4298
4295
  return Ae(() => t.authFunction, async () => {
4299
4296
  n.value = await t.authFunction();
4300
- }, { immediate: !0 }), (i, a) => r.value ? z(i.$slots, "default", {
4297
+ }, { immediate: !0 }), (i, a) => r.value ? Y(i.$slots, "default", {
4301
4298
  key: 0,
4302
4299
  isAllowed: n.value
4303
- }) : U("", !0);
4300
+ }) : D("", !0);
4304
4301
  }
4305
4302
  });
4306
- let Be;
4303
+ let Re;
4307
4304
  const El = new Uint8Array(16);
4308
4305
  function Tl() {
4309
- if (!Be && (Be = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Be))
4306
+ if (!Re && (Re = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Re))
4310
4307
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
4311
- return Be(El);
4308
+ return Re(El);
4312
4309
  }
4313
4310
  const Q = [];
4314
4311
  for (let e = 0; e < 256; ++e)
@@ -4367,38 +4364,38 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
4367
4364
  }
4368
4365
  },
4369
4366
  setup(e) {
4370
- const t = et(), n = $l();
4371
- return (r, i) => (g(), I("div", {
4367
+ const t = Xe(), n = $l();
4368
+ return (r, i) => (m(), I("div", {
4372
4369
  "aria-labelledby": e.title ? E(n) : void 0,
4373
4370
  class: de(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
4374
4371
  role: "group"
4375
4372
  }, [
4376
4373
  L("div", Nl, [
4377
- e.hideInfoHeader ? U("", !0) : (g(), I("div", {
4374
+ e.hideInfoHeader ? D("", !0) : (m(), I("div", {
4378
4375
  key: 0,
4379
4376
  class: de(["form-section-info", { sticky: e.stickyInfoHeader }])
4380
4377
  }, [
4381
- e.title ? (g(), M(pe(e.titleTag), {
4378
+ e.title ? (m(), M(pe(e.titleTag), {
4382
4379
  key: 0,
4383
4380
  id: E(n),
4384
4381
  class: "form-section-title"
4385
4382
  }, {
4386
- default: b(() => [
4387
- Y($(e.title), 1)
4383
+ default: x(() => [
4384
+ V(O(e.title), 1)
4388
4385
  ]),
4389
4386
  _: 1
4390
- }, 8, ["id"])) : U("", !0),
4391
- e.description || E(t).description ? (g(), I("div", Rl, [
4392
- z(r.$slots, "description", {}, () => [
4393
- L("p", null, $(e.description), 1)
4387
+ }, 8, ["id"])) : D("", !0),
4388
+ e.description || E(t).description ? (m(), I("div", Rl, [
4389
+ Y(r.$slots, "description", {}, () => [
4390
+ L("p", null, O(e.description), 1)
4394
4391
  ], !0)
4395
- ])) : U("", !0),
4396
- E(t).footer ? (g(), I("div", Bl, [
4397
- z(r.$slots, "footer", {}, void 0, !0)
4398
- ])) : U("", !0)
4392
+ ])) : D("", !0),
4393
+ E(t).footer ? (m(), I("div", Bl, [
4394
+ Y(r.$slots, "footer", {}, void 0, !0)
4395
+ ])) : D("", !0)
4399
4396
  ], 2)),
4400
4397
  L("div", Kl, [
4401
- z(r.$slots, "default", {}, void 0, !0)
4398
+ Y(r.$slots, "default", {}, void 0, !0)
4402
4399
  ])
4403
4400
  ])
4404
4401
  ], 10, Ll));
@@ -4433,10 +4430,10 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
4433
4430
  }
4434
4431
  },
4435
4432
  setup(e) {
4436
- const t = e, n = B(), { isTruncated: r } = W.useTruncationDetector(n), { i18n: { t: i } } = W.useI18n(), a = i("global.actions.copyId"), o = B(a), l = w(() => t.entityLinkData.deleted ?? !1), s = w(() => {
4433
+ const t = e, n = K(), { isTruncated: r } = z.useTruncationDetector(n), { i18n: { t: i } } = z.useI18n(), a = i("global.actions.copyId"), o = K(a), l = A(() => t.entityLinkData.deleted ?? !1), s = A(() => {
4437
4434
  var c;
4438
4435
  return (c = t.entityLinkData.id) != null && c.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
4439
- }), u = w(() => {
4436
+ }), u = A(() => {
4440
4437
  var c;
4441
4438
  return `${(c = s.value) == null ? void 0 : c.toString().slice(0, 5)} (deleted)`;
4442
4439
  }), d = async (c) => {
@@ -4444,45 +4441,45 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
4444
4441
  o.value = a;
4445
4442
  }, 1800));
4446
4443
  };
4447
- return (c, m) => {
4448
- const p = K("KTooltip"), y = K("KExternalLink"), v = K("KClipboardProvider");
4449
- return g(), I("div", Dl, [
4450
- l.value ? (g(), I("div", Ul, $(u.value), 1)) : s.value ? s.value ? (g(), M(y, {
4444
+ return (c, h) => {
4445
+ const f = B("KTooltip"), v = B("KExternalLink"), b = B("KClipboardProvider");
4446
+ return m(), I("div", Dl, [
4447
+ l.value ? (m(), I("div", Ul, O(u.value), 1)) : s.value ? s.value ? (m(), M(v, {
4451
4448
  key: 2,
4452
4449
  class: "entity-link",
4453
4450
  "hide-icon": !e.newWindow,
4454
4451
  href: e.externalLink,
4455
4452
  target: e.newWindow ? "_blank" : "_self"
4456
4453
  }, {
4457
- default: b(() => [
4458
- R(p, {
4454
+ default: x(() => [
4455
+ R(f, {
4459
4456
  text: E(r) && e.entityLinkData.label || ""
4460
4457
  }, {
4461
- default: b(() => [
4458
+ default: x(() => [
4462
4459
  L("span", {
4463
4460
  ref_key: "textContent",
4464
4461
  ref: n,
4465
4462
  class: "entity-link-label"
4466
- }, $(e.entityLinkData.label), 513)
4463
+ }, O(e.entityLinkData.label), 513)
4467
4464
  ]),
4468
4465
  _: 1
4469
4466
  }, 8, ["text"])
4470
4467
  ]),
4471
4468
  _: 1
4472
- }, 8, ["hide-icon", "href", "target"])) : U("", !0) : (g(), I("div", jl, $(" – "))),
4473
- s.value && e.allowCopy ? (g(), M(p, {
4469
+ }, 8, ["hide-icon", "href", "target"])) : D("", !0) : (m(), I("div", jl, O(" – "))),
4470
+ s.value && e.allowCopy ? (m(), M(f, {
4474
4471
  key: o.value,
4475
4472
  class: "copy-uuid-tooltip",
4476
4473
  "max-width": "160",
4477
4474
  placement: "bottomEnd",
4478
4475
  text: o.value
4479
4476
  }, {
4480
- default: b(() => [
4481
- R(v, null, {
4482
- default: b(({ copyToClipboard: _ }) => [
4477
+ default: x(() => [
4478
+ R(b, null, {
4479
+ default: x(({ copyToClipboard: _ }) => [
4483
4480
  L("span", {
4484
4481
  class: "entity-link-copy-id",
4485
- onClick: We((N) => d(_), ["stop"])
4482
+ onClick: ze((N) => d(_), ["stop"])
4486
4483
  }, [
4487
4484
  R(E(Wo), {
4488
4485
  class: "copy-icon",
@@ -4496,11 +4493,11 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
4496
4493
  })
4497
4494
  ]),
4498
4495
  _: 1
4499
- }, 8, ["text"])) : U("", !0)
4496
+ }, 8, ["text"])) : D("", !0)
4500
4497
  ]);
4501
4498
  };
4502
4499
  }
4503
- }), rs = /* @__PURE__ */ ie(Pl, [["__scopeId", "data-v-be5bda4c"]]), { useAxios: is, useDeleteUrlBuilder: as, useErrors: os, useExternalLinkCreator: ls, useFetchUrlBuilder: ss, useFetcher: cs, useDebouncedFilter: us, useStringHelpers: ds, useHelpers: fs, useGatewayFeatureSupported: ps, useTruncationDetector: hs, useValidators: ms } = W;
4500
+ }), rs = /* @__PURE__ */ ie(Pl, [["__scopeId", "data-v-be5bda4c"]]), { useAxios: is, useDeleteUrlBuilder: as, useErrors: os, useExternalLinkCreator: ls, useFetchUrlBuilder: ss, useFetcher: cs, useDebouncedFilter: us, useStringHelpers: ds, useHelpers: fs, useGatewayFeatureSupported: ps, useTruncationDetector: hs, useValidators: ms } = z;
4504
4501
  export {
4505
4502
  vo as ConfigCardDisplay,
4506
4503
  Dt as ConfigCardItem,