@kong-ui-public/entities-shared 3.37.0 → 3.38.1-pr.2798.758fc7fd0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
- import { inject as Vt, ref as M, computed as S, unref as x, toValue as ye, watch as Ce, toRef as ei, provide as Yt, defineComponent as Q, createBlock as O, openBlock as g, resolveDynamicComponent as qe, normalizeClass as me, withCtx as A, createElementBlock as _, createCommentVNode as P, createElementVNode as L, toDisplayString as F, Fragment as fe, renderList as de, resolveComponent as U, createVNode as N, createTextVNode as H, useCssVars as Wt, useId as ti, useSlots as He, renderSlot as j, createSlots as xe, normalizeProps as ni, guardReactiveProps as ii, mergeProps as Jt, onMounted as at, onBeforeMount as ot, withModifiers as Ne, Teleport as Gt, onUnmounted as ri, withDirectives as Ae, vShow as we, withKeys as ai, warn as oi } from "vue";
2
- import ht from "axios";
1
+ import { inject as at, ref as M, computed as _, unref as C, toValue as ye, watch as Ce, toRef as ei, provide as Vt, defineComponent as Q, createBlock as B, openBlock as g, resolveDynamicComponent as qe, normalizeClass as pe, withCtx as x, createElementBlock as S, createCommentVNode as D, createElementVNode as L, toDisplayString as I, Fragment as fe, renderList as de, resolveComponent as U, createVNode as N, createTextVNode as q, useCssVars as Wt, useId as ti, useSlots as He, renderSlot as j, createSlots as xe, normalizeProps as ni, guardReactiveProps as ii, mergeProps as Jt, onMounted as ot, onBeforeMount as lt, withModifiers as Ne, Teleport as Gt, onUnmounted as ri, withDirectives as Ae, vShow as we, withKeys as ai, warn as oi } from "vue";
2
+ import yt from "axios";
3
3
  import { createI18n as li, i18nTComponent as si } from "@kong-ui-public/i18n";
4
- import { BadgeMethodAppearances as ci, KExternalLink as ui, KButton as yt, KTruncate as di, KBadge as fi } from "@kong/kongponents";
4
+ import { BadgeMethodAppearances as ci, KExternalLink as ui, KButton as vt, KTruncate as di, KBadge as fi } from "@kong/kongponents";
5
5
  import { createdBundledHighlighter as pi, createSingletonShorthands as mi } from "@shikijs/core";
6
6
  import { createJavaScriptRegexEngine as gi } from "@shikijs/engine-javascript";
7
- import { LanguageShellIcon as vt, LanguageBashIcon as bt, BookIcon as zt, AddIcon as Qt, CloseIcon as hi, ChevronDownIcon as yi, CopyIcon as vi } from "@kong/icons";
7
+ import { LanguageShellIcon as bt, LanguageBashIcon as kt, BookIcon as zt, AddIcon as Qt, CloseIcon as hi, ChevronDownIcon as yi, CopyIcon as vi } from "@kong/icons";
8
8
  import { useRouter as bi } from "vue-router";
9
9
  var ki = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(ki || {}), Ci = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Ci || {}), he = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(he || {}), Ee = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Partial = "partial", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.ProducePolicy = "produce_policy", e.ConsumePolicy = "consume_policy", e.ClusterPolicy = "cluster_policy", e.ListenerPolicy = "listener_policy", e.SchemaRegistry = "schema_registry", e.StaticKey = "static_key", e.AuthServer = "auth_server", e.AuthServerScopes = "auth_server_scopes", e.AuthServerClaims = "auth_server_claims", e.AuthServerClients = "auth_server_clients", e.Other = "other", e))(Ee || {});
10
- const Ve = Object.values(Ee), Zt = [
10
+ const Ye = Object.values(Ee), Zt = [
11
11
  "ca_certificate",
12
12
  "certificate",
13
13
  "consumer",
@@ -23,8 +23,8 @@ const Ve = Object.values(Ee), Zt = [
23
23
  "partial"
24
24
  /* Partial */
25
25
  ], xi = ["backend_cluster", "virtual_cluster", "listener", "produce_policy", "consume_policy", "cluster_policy", "listener_policy", "schema_registry", "static_key"], Ai = ["auth_server", "auth_server_scopes", "auth_server_claims", "auth_server_clients"];
26
- var J = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(J || {}), le = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e.Policy = "policy", e))(le || {});
27
- const kt = [
26
+ var G = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(G || {}), le = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e.Policy = "policy", e))(le || {});
27
+ const Ct = [
28
28
  "primary",
29
29
  "secondary"
30
30
  ];
@@ -32,14 +32,14 @@ function wi() {
32
32
  return {
33
33
  getAxiosInstance: (e = {}) => {
34
34
  try {
35
- const t = Vt("get-axios-instance", void 0);
36
- return typeof t == "function" ? t(e) : ht.create({
35
+ const t = at("get-axios-instance", void 0);
36
+ return typeof t == "function" ? t(e) : yt.create({
37
37
  withCredentials: !0,
38
38
  timeout: 3e4,
39
39
  ...e
40
40
  });
41
41
  } catch (t) {
42
- return console.warn("getAxiosInstance:", t.message || t), ht.create({
42
+ return console.warn("getAxiosInstance:", t.message || t), yt.create({
43
43
  withCredentials: !0,
44
44
  timeout: 3e4,
45
45
  ...e
@@ -101,7 +101,7 @@ function $i() {
101
101
  }
102
102
  };
103
103
  }
104
- function lt(e = {}) {
104
+ function st(e = {}) {
105
105
  const { getAxiosInstance: t } = wi();
106
106
  return {
107
107
  axiosInstance: t(e)
@@ -211,13 +211,13 @@ const Ti = {
211
211
  message: "Are you sure you want to disable the {entityType} {entityName}?",
212
212
  confirmText: "Yes, disable"
213
213
  }
214
- }, Di = {
214
+ }, Pi = {
215
215
  hint: {
216
216
  konnect: "The {token} environment variable must be added first. See {link} for details.",
217
217
  kongManager: "If your Admin API is secured, set up authentication following {link}."
218
218
  },
219
219
  documentation: "the documentation"
220
- }, Pi = {
220
+ }, Di = {
221
221
  global: Ti,
222
222
  deleteModal: Ei,
223
223
  baseForm: Ii,
@@ -229,10 +229,10 @@ const Ti = {
229
229
  errors: Ki,
230
230
  validationErrors: Ni,
231
231
  toggleModal: Mi,
232
- deckCodeBlock: Di
232
+ deckCodeBlock: Pi
233
233
  };
234
- function Ye() {
235
- const e = li("en-us", Pi);
234
+ function Ve() {
235
+ const e = li("en-us", Di);
236
236
  return {
237
237
  i18n: e,
238
238
  i18nT: si(e)
@@ -286,66 +286,66 @@ function ji(e, t, n, i = {
286
286
  searchKeys: ["id"]
287
287
  }) {
288
288
  n || (n = "1000");
289
- const { axiosInstance: r } = lt(e.axiosRequestConfig), { i18n: { t: o } } = Ye(), { debounce: a } = _i(), l = a(async (w) => {
289
+ const { axiosInstance: r } = st(e.axiosRequestConfig), { i18n: { t: o } } = Ve(), { debounce: a } = _i(), l = a(async (w) => {
290
290
  await k(w);
291
- }, 200), s = M(!1), d = M(""), c = M(""), u = M([]), p = M([]), f = M(void 0), h = S(() => {
292
- const w = `${e.apiBaseUrl}${x(t)}`;
291
+ }, 200), s = M(!1), d = M(""), c = M(""), u = M([]), m = M([]), f = M(void 0), h = _(() => {
292
+ const w = `${e.apiBaseUrl}${C(t)}`;
293
293
  return e.app === "konnect" ? w.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? w.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : w;
294
294
  }), { isValidUuid: b } = Xt(), y = async () => {
295
295
  try {
296
296
  s.value = !0;
297
297
  const { data: w } = await r.get(`${h.value}?size=${n}`);
298
- w != null && w.next || (f.value = i.fetchedItemsKey in w ? w[i.fetchedItemsKey] : []), p.value = i.fetchedItemsKey in w ? w[i.fetchedItemsKey] : [], u.value = p.value;
298
+ w != null && w.next || (f.value = i.fetchedItemsKey in w ? w[i.fetchedItemsKey] : []), m.value = i.fetchedItemsKey in w ? w[i.fetchedItemsKey] : [], u.value = m.value;
299
299
  } catch {
300
300
  u.value = [], d.value = o("debouncedFilter.errors.fetch");
301
301
  } finally {
302
302
  s.value = !1;
303
303
  }
304
304
  }, $ = M(""), k = async (w) => {
305
- var V, z, D;
305
+ var Y, J, R;
306
306
  if ($.value !== w) {
307
307
  if ($.value = w ?? "", !w) {
308
- u.value = p.value;
308
+ u.value = m.value;
309
309
  return;
310
310
  }
311
311
  if (f.value === void 0)
312
312
  try {
313
313
  if (s.value = !0, d.value = "", c.value = "", e.app === "konnect") {
314
- const I = `${h.value}/${w}`, { data: C } = await r.get(`${I}?size=${n}`);
315
- i.fetchedItemsKey in C ? u.value = C[i.fetchedItemsKey] : C != null && C[i.exactMatchKey ?? "id"] ? u.value = [C] : u.value = [];
314
+ const F = `${h.value}/${w}`, { data: E } = await r.get(`${F}?size=${n}`);
315
+ i.fetchedItemsKey in E ? u.value = E[i.fetchedItemsKey] : E != null && E[i.exactMatchKey ?? "id"] ? u.value = [E] : u.value = [];
316
316
  } else {
317
- const I = [];
318
- b(w) && i.searchKeys.includes("id") ? I.push((async () => {
319
- const { data: T } = await r.get(`${h.value}/${w}`);
320
- return [T[i.fetchedItemsKey] ?? T];
321
- })()) : I.push(
322
- ...i.searchKeys.filter((T) => T !== "id").map(async (T) => {
323
- const { data: m } = await r.get(`${h.value}?${T}=${w}`);
324
- return m[i.fetchedItemsKey];
317
+ const F = [];
318
+ b(w) && i.searchKeys.includes("id") ? F.push((async () => {
319
+ const { data: A } = await r.get(`${h.value}/${w}`);
320
+ return [A[i.fetchedItemsKey] ?? A];
321
+ })()) : F.push(
322
+ ...i.searchKeys.filter((A) => A !== "id").map(async (A) => {
323
+ const { data: p } = await r.get(`${h.value}?${A}=${w}`);
324
+ return p[i.fetchedItemsKey];
325
325
  })
326
326
  );
327
- const C = await Promise.all(I), v = /* @__PURE__ */ new Set();
328
- u.value = [], (V = C == null ? void 0 : C.forEach) == null || V.call(C, (T) => {
329
- var m;
330
- (m = T == null ? void 0 : T.forEach) == null || m.call(T, (R) => {
331
- v.has(R.id) || (v.add(R.id), u.value.push(R));
327
+ const E = await Promise.all(F), v = /* @__PURE__ */ new Set();
328
+ u.value = [], (Y = E == null ? void 0 : E.forEach) == null || Y.call(E, (A) => {
329
+ var p;
330
+ (p = A == null ? void 0 : A.forEach) == null || p.call(A, (K) => {
331
+ v.has(K.id) || (v.add(K.id), u.value.push(K));
332
332
  });
333
333
  });
334
334
  }
335
- } catch (I) {
336
- ((z = I == null ? void 0 : I.response) == null ? void 0 : z.status) === 404 ? c.value = o("debouncedFilter.errors.invalid") : (u.value = [], d.value = o("debouncedFilter.errors.fetch"));
335
+ } catch (F) {
336
+ ((J = F == null ? void 0 : F.response) == null ? void 0 : J.status) === 404 ? c.value = o("debouncedFilter.errors.invalid") : (u.value = [], d.value = o("debouncedFilter.errors.fetch"));
337
337
  } finally {
338
338
  s.value = !1;
339
339
  }
340
340
  else
341
- s.value = !0, c.value = "", u.value = (D = f.value) == null ? void 0 : D.filter((I) => {
341
+ s.value = !0, c.value = "", u.value = (R = f.value) == null ? void 0 : R.filter((F) => {
342
342
  var v;
343
- let C = !1;
344
- for (const T of i.searchKeys) {
345
- const m = typeof I[T] == "string" ? (v = I[T]) == null ? void 0 : v.toLowerCase() : I[T];
346
- m != null && m.includes(w.toLowerCase()) && (C = !0);
343
+ let E = !1;
344
+ for (const A of i.searchKeys) {
345
+ const p = typeof F[A] == "string" ? (v = F[A]) == null ? void 0 : v.toLowerCase() : F[A];
346
+ p != null && p.includes(w.toLowerCase()) && (E = !0);
347
347
  }
348
- return C;
348
+ return E;
349
349
  }), (!u.value || !u.value.length) && (c.value = o("debouncedFilter.errors.invalid")), s.value = !1;
350
350
  }
351
351
  };
@@ -360,13 +360,13 @@ function ji(e, t, n, i = {
360
360
  };
361
361
  }
362
362
  function Ui(e, t) {
363
- const n = x(t), i = S(
363
+ const n = C(t), i = _(
364
364
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
365
365
  );
366
366
  return i.value.search = "", (r) => `${i.value.href}/${r}`;
367
367
  }
368
368
  function qi() {
369
- const { i18n: { t: e } } = Ye();
369
+ const { i18n: { t: e } } = Ve();
370
370
  return {
371
371
  getErrorFieldsFromError: (i) => {
372
372
  var a, l, s;
@@ -449,10 +449,10 @@ function Hi(e) {
449
449
  }
450
450
  }
451
451
  function en(e, t) {
452
- const n = S(() => {
452
+ const n = _(() => {
453
453
  const r = ye(e);
454
454
  return r.app === "konnect" || !!r.isExactMatch;
455
- }), i = S(() => {
455
+ }), i = _(() => {
456
456
  const r = ye(t);
457
457
  return r.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r);
458
458
  });
@@ -460,21 +460,21 @@ function en(e, t) {
460
460
  const { page: o, pageSize: a, offset: l, sortColumnKey: s, sortColumnOrder: d, query: c } = r;
461
461
  try {
462
462
  let u = new URL(i.value.href);
463
- return n.value && c ? (u.search = "", u = ye(e).isExactMatch ? new URL(`${u.href}/${c}`) : new URL(`${u.href}?filter[name][contains]=${c}`)) : (n.value || new URLSearchParams(c).forEach((p, f) => {
464
- u.searchParams.append(f, p);
463
+ return n.value && c ? (u.search = "", u = ye(e).isExactMatch ? new URL(`${u.href}/${c}`) : new URL(`${u.href}?filter[name][contains]=${c}`)) : (n.value || new URLSearchParams(c).forEach((m, f) => {
464
+ u.searchParams.append(f, m);
465
465
  }), s && u.searchParams.append("sort_by", s), d === "desc" && u.searchParams.append("sort_desc", "1"), u.searchParams.append("size", String(a))), l && o !== 1 && u.searchParams.append("offset", String(l)), u.href;
466
466
  } catch (u) {
467
467
  return console.error("RouteList(fetcher)", u), ye(t);
468
468
  }
469
469
  };
470
470
  }
471
- const Ct = /* @__PURE__ */ new Map();
472
- function Vi(e, t, n) {
473
- const i = M(!0), r = ye(e), { axiosInstance: o } = lt(r.axiosRequestConfig), a = en(e, t), l = M({
471
+ const xt = /* @__PURE__ */ new Map();
472
+ function Yi(e, t, n) {
473
+ const i = M(!0), r = ye(e), { axiosInstance: o } = st(r.axiosRequestConfig), a = en(e, t), l = M({
474
474
  status: he.Idle
475
475
  }), s = async (u) => {
476
476
  var f;
477
- const p = ye(n) || "data";
477
+ const m = ye(n) || "data";
478
478
  try {
479
479
  l.value = i.value ? { status: he.InitialLoad } : { status: he.Loading }, i.value = !1;
480
480
  let h = a(u);
@@ -482,7 +482,7 @@ function Vi(e, t, n) {
482
482
  const b = await o.get(h);
483
483
  if (b.status >= 400)
484
484
  throw b;
485
- const y = b.data, $ = p && p.replace(/[^\w-_]/gi, "");
485
+ const y = b.data, $ = m && m.replace(/[^\w-_]/gi, "");
486
486
  let k;
487
487
  y[$] ? k = Array.isArray(y[$]) ? y[$] : [y[$]] : Array.isArray(y) ? k = y : k = Object.keys(y).length ? [y] : [];
488
488
  const w = {
@@ -521,34 +521,34 @@ function Vi(e, t, n) {
521
521
  }
522
522
  function tn(e) {
523
523
  if (e) {
524
- let t = Ct.get(e);
525
- return t || (t = M(1), Ct.set(e, t)), t;
524
+ let t = xt.get(e);
525
+ return t || (t = M(1), xt.set(e, t)), t;
526
526
  }
527
527
  return M(1);
528
528
  }
529
- function Yi() {
529
+ function Vi() {
530
530
  const e = (i, r = "_") => i ? i.split(r).map((o) => o.toLowerCase() === "id" ? o.toUpperCase() : o.charAt(0).toUpperCase() + o.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
531
531
  return {
532
532
  capitalize: (i) => i ? i.replace(t, (r) => r.toUpperCase()) : "",
533
533
  convertKeyToTitle: e
534
534
  };
535
535
  }
536
- const nn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, xt = (e) => {
536
+ const nn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, At = (e) => {
537
537
  if (typeof e != "string")
538
538
  throw new TypeError("Invalid argument expected string");
539
539
  const t = e.match(nn);
540
540
  if (!t)
541
541
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
542
542
  return t.shift(), t;
543
- }, At = (e) => e === "*" || e === "x" || e === "X", wt = (e) => {
543
+ }, wt = (e) => e === "*" || e === "x" || e === "X", _t = (e) => {
544
544
  const t = parseInt(e, 10);
545
545
  return isNaN(t) ? e : t;
546
546
  }, Wi = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Ji = (e, t) => {
547
- if (At(e) || At(t))
547
+ if (wt(e) || wt(t))
548
548
  return 0;
549
- const [n, i] = Wi(wt(e), wt(t));
549
+ const [n, i] = Wi(_t(e), _t(t));
550
550
  return n > i ? 1 : n < i ? -1 : 0;
551
- }, _t = (e, t) => {
551
+ }, St = (e, t) => {
552
552
  for (let n = 0; n < Math.max(e.length, t.length); n++) {
553
553
  const i = Ji(e[n] || "0", t[n] || "0");
554
554
  if (i !== 0)
@@ -556,9 +556,9 @@ const nn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
556
556
  }
557
557
  return 0;
558
558
  }, Gi = (e, t) => {
559
- const n = xt(e), i = xt(t), r = n.pop(), o = i.pop(), a = _t(n, i);
560
- return a !== 0 ? a : r && o ? _t(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
561
- }, St = (e, t, n) => {
559
+ const n = At(e), i = At(t), r = n.pop(), o = i.pop(), a = St(n, i);
560
+ return a !== 0 ? a : r && o ? St(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
561
+ }, $t = (e, t, n) => {
562
562
  zi(n);
563
563
  const i = Gi(e, t);
564
564
  return rn[n].includes(i);
@@ -569,11 +569,11 @@ const nn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
569
569
  "<=": [-1, 0],
570
570
  "<": [-1],
571
571
  "!=": [-1, 1]
572
- }, $t = Object.keys(rn), zi = (e) => {
572
+ }, Tt = Object.keys(rn), zi = (e) => {
573
573
  if (typeof e != "string")
574
574
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
575
- if ($t.indexOf(e) === -1)
576
- throw new Error(`Invalid operator, expected one of ${$t.join("|")}`);
575
+ if (Tt.indexOf(e) === -1)
576
+ throw new Error(`Invalid operator, expected one of ${Tt.join("|")}`);
577
577
  }, Qi = (e) => typeof e == "string" && /^[v\d]/.test(e) && nn.test(e);
578
578
  function Zi(e) {
579
579
  const { gatewayInfo: t, supportedRange: n } = e;
@@ -586,32 +586,32 @@ function Zi(e) {
586
586
  if (!o)
587
587
  return !1;
588
588
  const [a, l] = o;
589
- return !(a && St(r, a, "<") || l && St(r, l, ">"));
589
+ return !(a && $t(r, a, "<") || l && $t(r, l, ">"));
590
590
  }
591
591
  function Xi(e) {
592
592
  const t = M(0), n = M(0), i = M(!1);
593
593
  return Ce(e, (o) => {
594
594
  o && !i.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, i.value = !0);
595
595
  }), {
596
- isTruncated: S(() => t.value < n.value)
596
+ isTruncated: _(() => t.value < n.value)
597
597
  };
598
598
  }
599
599
  function er() {
600
- const { i18n: { t: e } } = Ye();
600
+ const { i18n: { t: e } } = Ve();
601
601
  return {
602
602
  utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
603
603
  };
604
604
  }
605
605
  const Xe = Symbol("schema"), tr = (e) => {
606
- Yt(Xe, e);
606
+ Vt(Xe, e);
607
607
  }, nr = (e) => {
608
608
  var r, o;
609
- const t = Vt(Xe, void 0), n = (o = (r = t == null ? void 0 : t.value) == null ? void 0 : r.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), i = ei(n == null ? void 0 : n[e]);
610
- return Yt(Xe, i), i;
609
+ const t = at(Xe, void 0), n = (o = (r = t == null ? void 0 : t.value) == null ? void 0 : r.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), i = ei(n == null ? void 0 : n[e]);
610
+ return Vt(Xe, i), i;
611
611
  };
612
612
  function ir(e) {
613
613
  let t = "";
614
- const n = M(!1), i = M(null), r = S(() => {
614
+ const n = M(!1), i = M(null), r = _(() => {
615
615
  let a;
616
616
  return n.value ? a = !0 : i.value ? a = i.value.hasData || e && ye(e) : a = !1, !a;
617
617
  });
@@ -624,18 +624,18 @@ function ir(e) {
624
624
  }
625
625
  };
626
626
  }
627
- const G = {
628
- useAxios: lt,
627
+ const z = {
628
+ useAxios: st,
629
629
  useDebouncedFilter: ji,
630
630
  useDeleteUrlBuilder: Ui,
631
631
  useErrors: qi,
632
632
  useExternalLinkCreator: Hi,
633
- useFetcher: Vi,
633
+ useFetcher: Yi,
634
634
  useFetcherCacheKey: tn,
635
635
  useFetchUrlBuilder: en,
636
636
  useHelpers: Xt,
637
- useStringHelpers: Yi,
638
- useI18n: Ye,
637
+ useStringHelpers: Vi,
638
+ useI18n: Ve,
639
639
  useGatewayFeatureSupported: Zi,
640
640
  useTruncationDetector: Xi,
641
641
  useValidators: er,
@@ -662,25 +662,25 @@ const G = {
662
662
  }
663
663
  },
664
664
  setup(e) {
665
- const t = e, { i18n: { t: n } } = G.useI18n(), { convertKeyToTitle: i } = G.useStringHelpers(), r = S(() => t.item.key ?? "json-array-item"), o = S(() => t.item.value ?? t.item), a = S(() => {
665
+ const t = e, { i18n: { t: n } } = z.useI18n(), { convertKeyToTitle: i } = z.useStringHelpers(), r = _(() => t.item.key ?? "json-array-item"), o = _(() => t.item.value ?? t.item), a = _(() => {
666
666
  const s = JSON.parse(JSON.stringify(o.value));
667
667
  return t.isArrayItem && delete s.name, s;
668
- }), l = S(() => {
668
+ }), l = _(() => {
669
669
  var s;
670
670
  return t.isArrayItem ? (s = o.value) != null && s.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
671
671
  });
672
- return (s, d) => (g(), O(qe(e.isArrayItem ? "fieldset" : "div"), {
673
- class: me(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
672
+ return (s, d) => (g(), B(qe(e.isArrayItem ? "fieldset" : "div"), {
673
+ class: pe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
674
674
  }, {
675
- default: A(() => [
676
- e.isArrayItem ? (g(), _("legend", rr, [
677
- L("b", null, F(l.value), 1)
678
- ])) : P("", !0),
679
- (g(!0), _(fe, null, de(Object.keys(a.value), (c, u) => (g(), O(on, {
675
+ default: x(() => [
676
+ e.isArrayItem ? (g(), S("legend", rr, [
677
+ L("b", null, I(l.value), 1)
678
+ ])) : D("", !0),
679
+ (g(!0), S(fe, null, de(Object.keys(a.value), (c, u) => (g(), B(on, {
680
680
  key: `${r.value}-property-${u}`,
681
681
  item: {
682
682
  key: c,
683
- label: x(i)(c),
683
+ label: C(i)(c),
684
684
  value: a.value[c]
685
685
  }
686
686
  }, null, 8, ["item"]))), 128))
@@ -703,17 +703,17 @@ const G = {
703
703
  },
704
704
  emits: ["navigation-click"],
705
705
  setup(e) {
706
- const { i18n: { t } } = G.useI18n();
706
+ const { i18n: { t } } = z.useI18n();
707
707
  return (n, i) => {
708
708
  const r = U("KButton");
709
- return g(), _("div", null, [
709
+ return g(), S("div", null, [
710
710
  N(r, {
711
711
  appearance: "tertiary",
712
712
  class: "navigation-button",
713
713
  onClick: i[0] || (i[0] = (o) => n.$emit("navigation-click", e.item))
714
714
  }, {
715
- default: A(() => [
716
- H(F(e.item.value || x(t)("baseConfigCard.commonFields.link")), 1)
715
+ default: x(() => [
716
+ q(I(e.item.value || C(t)("baseConfigCard.commonFields.link")), 1)
717
717
  ]),
718
718
  _: 1
719
719
  })
@@ -729,14 +729,14 @@ const G = {
729
729
  }
730
730
  },
731
731
  setup(e) {
732
- const { i18n: { t } } = G.useI18n();
732
+ const { i18n: { t } } = z.useI18n();
733
733
  return (n, i) => {
734
734
  const r = U("KBadge");
735
- return g(), O(r, {
735
+ return g(), B(r, {
736
736
  appearance: e.status ? "success" : "neutral"
737
737
  }, {
738
- default: A(() => [
739
- H(F(e.status ? x(t)("baseConfigCard.statusBadge.enabledLabel") : x(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
738
+ default: x(() => [
739
+ q(I(e.status ? C(t)("baseConfigCard.statusBadge.enabledLabel") : C(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
740
740
  ]),
741
741
  _: 1
742
742
  }, 8, ["appearance"]);
@@ -786,18 +786,18 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
786
786
  },
787
787
  emits: ["navigation-click"],
788
788
  setup(e, { emit: t }) {
789
- Wt((V) => ({
790
- v550201a4: p.value ? "none" : `solid ${x(pr)} ${x(ur)}`,
789
+ Wt((Y) => ({
790
+ v550201a4: m.value ? "none" : `solid ${C(pr)} ${C(ur)}`,
791
791
  v2eeb3c61: u.value && d.value ? "block" : "flex",
792
792
  v77ca94df: u.value && d.value ? "100%" : n.slim ? "50%" : "25%",
793
793
  v77ccdaba: u.value && d.value ? "100%" : n.slim ? "50%" : "75%"
794
794
  }));
795
- const n = e, i = t, r = ti(), o = He(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = G.useI18n(), d = S(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), c = S(() => !!(n.item.tooltip || o["label-tooltip"])), u = S(() => n.item.type === J.Json || n.item.type === J.JsonArray), p = S(() => n.item.type === J.JsonArray), f = G.useSubSchema(n.item.key), h = S(() => {
796
- var V;
797
- return n.item.type ? n.item.type : (V = f == null ? void 0 : f.value) != null && V.encrypted ? J.Redacted : void 0;
798
- }), b = S(() => {
795
+ const n = e, i = t, r = ti(), o = He(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = z.useI18n(), d = _(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), c = _(() => !!(n.item.tooltip || o["label-tooltip"])), u = _(() => n.item.type === G.Json || n.item.type === G.JsonArray), m = _(() => n.item.type === G.JsonArray), f = z.useSubSchema(n.item.key), h = _(() => {
796
+ var Y;
797
+ return n.item.type ? n.item.type : (Y = f == null ? void 0 : f.value) != null && Y.encrypted ? G.Redacted : void 0;
798
+ }), b = _(() => {
799
799
  switch (h.value) {
800
- case J.ID:
800
+ case G.ID:
801
801
  return {
802
802
  tag: "KCopy",
803
803
  attrs: {
@@ -806,7 +806,7 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
806
806
  text: n.item.value
807
807
  }
808
808
  };
809
- case J.IdArray:
809
+ case G.IdArray:
810
810
  return {
811
811
  tag: "div",
812
812
  additionalComponent: "KCopy",
@@ -814,7 +814,7 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
814
814
  "copy-tooltip": a("baseConfigCard.copy.tooltip", { label: n.item.label })
815
815
  }
816
816
  };
817
- case J.Redacted:
817
+ case G.Redacted:
818
818
  return {
819
819
  tag: "KCopy",
820
820
  attrs: {
@@ -824,7 +824,7 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
824
824
  text: n.item.value
825
825
  }
826
826
  };
827
- case J.RedactedArray:
827
+ case G.RedactedArray:
828
828
  return {
829
829
  tag: "div",
830
830
  additionalComponent: "KCopy",
@@ -833,7 +833,7 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
833
833
  "copy-tooltip": a("baseConfigCard.copy.tooltip", { label: n.item.label })
834
834
  }
835
835
  };
836
- case J.Date:
836
+ case G.Date:
837
837
  return {
838
838
  tag: "div",
839
839
  attrs: {
@@ -841,7 +841,7 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
841
841
  },
842
842
  text: isNaN(Number(n.item.value)) ? l(n.item.value) : s(n.item.value)
843
843
  };
844
- case J.BadgeStatus:
844
+ case G.BadgeStatus:
845
845
  return {
846
846
  tag: "StatusBadge",
847
847
  attrs: {
@@ -849,12 +849,12 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
849
849
  status: n.item.value
850
850
  }
851
851
  };
852
- case J.BadgeTag:
852
+ case G.BadgeTag:
853
853
  return {
854
854
  tag: "div",
855
855
  additionalComponent: "KBadge"
856
856
  };
857
- case J.CopyBadge:
857
+ case G.CopyBadge:
858
858
  return {
859
859
  tag: "div",
860
860
  additionalComponent: "KCopy",
@@ -865,23 +865,23 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
865
865
  text: n.item.value
866
866
  }
867
867
  };
868
- case J.BadgeMethod:
868
+ case G.BadgeMethod:
869
869
  return {
870
870
  tag: "div",
871
871
  additionalComponent: "KMethodBadge"
872
872
  };
873
- case J.LinkInternal:
873
+ case G.LinkInternal:
874
874
  return {
875
875
  tag: "InternalLinkItem",
876
876
  attrs: {
877
877
  "data-testid": `${n.item.key}-internal-link`,
878
878
  item: n.item,
879
- onNavigationClick: (V) => {
880
- i("navigation-click", V);
879
+ onNavigationClick: (Y) => {
880
+ i("navigation-click", Y);
881
881
  }
882
882
  }
883
883
  };
884
- case J.LinkExternal:
884
+ case G.LinkExternal:
885
885
  return {
886
886
  tag: "KExternalLink",
887
887
  attrs: {
@@ -890,7 +890,7 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
890
890
  },
891
891
  text: n.item.value
892
892
  };
893
- case J.Json:
893
+ case G.Json:
894
894
  return {
895
895
  tag: "JsonCardItem",
896
896
  attrs: {
@@ -898,7 +898,7 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
898
898
  item: n.item
899
899
  }
900
900
  };
901
- case J.JsonArray:
901
+ case G.JsonArray:
902
902
  return {
903
903
  tag: "div",
904
904
  additionalComponent: "JsonCardItem",
@@ -927,26 +927,26 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
927
927
  text: n.item.value
928
928
  };
929
929
  }
930
- }), y = M(), $ = M(), { isTruncated: k } = G.useTruncationDetector(y), { isTruncated: w } = G.useTruncationDetector($);
931
- return (V, z) => {
932
- const D = U("KTooltip"), I = U("KLabel"), C = U("KBadge"), v = U("KCopy");
933
- return g(), _("div", vr, [
930
+ }), y = M(), $ = M(), { isTruncated: k } = z.useTruncationDetector(y), { isTruncated: w } = z.useTruncationDetector($);
931
+ return (Y, J) => {
932
+ const R = U("KTooltip"), F = U("KLabel"), E = U("KBadge"), v = U("KCopy");
933
+ return g(), S("div", vr, [
934
934
  L("div", {
935
935
  class: "config-card-details-label",
936
936
  "data-testid": `${e.item.key}-label`
937
937
  }, [
938
- j(V.$slots, "label", { item: e.item }, () => [
939
- N(I, { "tooltip-attributes": { maxWidth: "500px" } }, xe({
940
- default: A(() => [
941
- N(D, {
942
- text: x(k) ? e.item.label : ""
938
+ j(Y.$slots, "label", { item: e.item }, () => [
939
+ N(F, { "tooltip-attributes": { maxWidth: "500px" } }, xe({
940
+ default: x(() => [
941
+ N(R, {
942
+ text: C(k) ? e.item.label : ""
943
943
  }, {
944
- default: A(() => [
944
+ default: x(() => [
945
945
  L("span", {
946
946
  ref_key: "labelContent",
947
947
  ref: y,
948
948
  class: "label-content"
949
- }, F(e.item.label), 513)
949
+ }, I(e.item.label), 513)
950
950
  ]),
951
951
  _: 1
952
952
  }, 8, ["text"])
@@ -955,12 +955,12 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
955
955
  }, [
956
956
  c.value ? {
957
957
  name: "tooltip",
958
- fn: A(() => [
958
+ fn: x(() => [
959
959
  L("div", {
960
960
  "data-testid": `${e.item.key}-label-tooltip`
961
961
  }, [
962
- j(V.$slots, "label-tooltip", {}, () => [
963
- H(F(e.item.tooltip), 1)
962
+ j(Y.$slots, "label-tooltip", {}, () => [
963
+ q(I(e.item.tooltip), 1)
964
964
  ], !0)
965
965
  ], 8, kr)
966
966
  ]),
@@ -973,81 +973,81 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
973
973
  class: "config-card-details-value",
974
974
  "data-testid": `${e.item.key}-property-value`
975
975
  }, [
976
- j(V.$slots, e.item.key, {
976
+ j(Y.$slots, e.item.key, {
977
977
  rowValue: e.item.value
978
978
  }, () => [
979
- d.value ? (g(), _("div", Ar, [
980
- (g(), O(qe(b.value.tag), ni(ii(b.value.attrs)), {
981
- default: A(() => [
982
- b.value.additionalComponent === "KBadge" ? (g(), _("div", {
979
+ d.value ? (g(), S("div", Ar, [
980
+ (g(), B(qe(b.value.tag), ni(ii(b.value.attrs)), {
981
+ default: x(() => [
982
+ b.value.additionalComponent === "KBadge" ? (g(), S("div", {
983
983
  key: 0,
984
984
  "data-testid": `${e.item.key}-badge-tags`
985
985
  }, [
986
- (g(!0), _(fe, null, de(e.item.value, (T, m) => (g(), O(C, {
987
- key: `${e.item.key}-badge-tag-${m}`,
986
+ (g(!0), S(fe, null, de(e.item.value, (A, p) => (g(), B(E, {
987
+ key: `${e.item.key}-badge-tag-${p}`,
988
988
  class: "config-badge",
989
- "data-testid": `${e.item.key}-badge-tag-${m}`,
990
- tooltip: T,
989
+ "data-testid": `${e.item.key}-badge-tag-${p}`,
990
+ tooltip: A,
991
991
  "truncation-tooltip": ""
992
992
  }, {
993
- default: A(() => [
994
- H(F(T), 1)
993
+ default: x(() => [
994
+ q(I(A), 1)
995
995
  ]),
996
996
  _: 2
997
997
  }, 1032, ["data-testid", "tooltip"]))), 128))
998
- ], 8, wr)) : b.value.additionalComponent === "KCopy" ? (g(), _("div", {
998
+ ], 8, wr)) : b.value.additionalComponent === "KCopy" ? (g(), S("div", {
999
999
  key: 1,
1000
1000
  class: "copy-uuid-array",
1001
1001
  "data-testid": `${e.item.key}-copy-uuid-array`
1002
1002
  }, [
1003
- (g(!0), _(fe, null, de(e.item.value, (T, m) => (g(), O(v, Jt({ ref_for: !0 }, b.value.childAttrs, {
1004
- key: `${e.item.key}-copy-uuid-${m}`,
1005
- "data-testid": `${e.item.key}-copy-uuid-${m}`,
1006
- text: T
1003
+ (g(!0), S(fe, null, de(e.item.value, (A, p) => (g(), B(v, Jt({ ref_for: !0 }, b.value.childAttrs, {
1004
+ key: `${e.item.key}-copy-uuid-${p}`,
1005
+ "data-testid": `${e.item.key}-copy-uuid-${p}`,
1006
+ text: A
1007
1007
  }), null, 16, ["data-testid", "text"]))), 128))
1008
- ], 8, _r)) : b.value.additionalComponent === "KMethodBadge" ? (g(), _("div", {
1008
+ ], 8, _r)) : b.value.additionalComponent === "KMethodBadge" ? (g(), S("div", {
1009
1009
  key: 2,
1010
1010
  class: "method-badge-array",
1011
1011
  "data-testid": `${e.item.key}-badge-methods`
1012
1012
  }, [
1013
- (g(!0), _(fe, null, de(e.item.value, (T, m) => (g(), O(C, {
1014
- key: `${e.item.key}-badge-method-${m}`,
1015
- appearance: Object.values(x(ci)).includes(T.toLowerCase()) ? T.toLowerCase() : "custom",
1013
+ (g(!0), S(fe, null, de(e.item.value, (A, p) => (g(), B(E, {
1014
+ key: `${e.item.key}-badge-method-${p}`,
1015
+ appearance: Object.values(C(ci)).includes(A.toLowerCase()) ? A.toLowerCase() : "custom",
1016
1016
  class: "config-badge",
1017
- "data-testid": `${e.item.key}-badge-method-${m}`
1017
+ "data-testid": `${e.item.key}-badge-method-${p}`
1018
1018
  }, {
1019
- default: A(() => [
1020
- H(F(T), 1)
1019
+ default: x(() => [
1020
+ q(I(A), 1)
1021
1021
  ]),
1022
1022
  _: 2
1023
1023
  }, 1032, ["appearance", "data-testid"]))), 128))
1024
- ], 8, Sr)) : b.value.additionalComponent === "JsonCardItem" ? (g(), _("div", {
1024
+ ], 8, Sr)) : b.value.additionalComponent === "JsonCardItem" ? (g(), S("div", {
1025
1025
  key: 3,
1026
1026
  "data-testid": `${n.item.key}-json-array-content`
1027
1027
  }, [
1028
- (g(!0), _(fe, null, de(e.item.value, (T, m) => (g(), O(an, {
1029
- key: `json-array-item-${m}`,
1030
- index: Number(m),
1028
+ (g(!0), S(fe, null, de(e.item.value, (A, p) => (g(), B(an, {
1029
+ key: `json-array-item-${p}`,
1030
+ index: Number(p),
1031
1031
  "is-array-item": "",
1032
- item: T
1032
+ item: A
1033
1033
  }, null, 8, ["index", "item"]))), 128))
1034
- ], 8, $r)) : (g(), O(D, {
1034
+ ], 8, $r)) : (g(), B(R, {
1035
1035
  key: 4,
1036
- text: x(w) ? e.item.value : ""
1036
+ text: C(w) ? e.item.value : ""
1037
1037
  }, {
1038
- default: A(() => [
1038
+ default: x(() => [
1039
1039
  L("span", {
1040
1040
  ref_key: "textContent",
1041
1041
  ref: $,
1042
- class: me(["attrs-data-text", { truncated: e.truncated }])
1043
- }, F(b.value.text), 3)
1042
+ class: pe(["attrs-data-text", { truncated: e.truncated }])
1043
+ }, I(b.value.text), 3)
1044
1044
  ]),
1045
1045
  _: 1
1046
1046
  }, 8, ["text"]))
1047
1047
  ]),
1048
1048
  _: 1
1049
1049
  }, 16))
1050
- ])) : (g(), _("div", {
1050
+ ])) : (g(), S("div", {
1051
1051
  key: 0,
1052
1052
  "data-testid": `${e.item.key}-no-value`
1053
1053
  }, " – ", 8, xr))
@@ -1090,7 +1090,7 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
1090
1090
  Wt((r) => ({
1091
1091
  v58418ff6: `${i.value}ch`
1092
1092
  }));
1093
- const t = e, n = S(() => t.entityRecord), i = S(() => {
1093
+ const t = e, n = _(() => t.entityRecord), i = _(() => {
1094
1094
  var a;
1095
1095
  if (!t.fetcherUrl)
1096
1096
  return 0;
@@ -1099,13 +1099,13 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
1099
1099
  });
1100
1100
  return (r, o) => {
1101
1101
  const a = U("KBadge"), l = U("KCodeBlock");
1102
- return g(), _("div", Ir, [
1103
- t.fetcherUrl ? (g(), _("div", Fr, [
1102
+ return g(), S("div", Ir, [
1103
+ t.fetcherUrl ? (g(), S("div", Fr, [
1104
1104
  N(a, {
1105
1105
  appearance: t.requestMethod
1106
1106
  }, {
1107
- default: A(() => [
1108
- H(F(t.requestMethod), 1)
1107
+ default: x(() => [
1108
+ q(I(t.requestMethod), 1)
1109
1109
  ]),
1110
1110
  _: 1
1111
1111
  }, 8, ["appearance"]),
@@ -1116,16 +1116,16 @@ const vr = { class: "config-card-details-row" }, br = ["data-testid"], kr = ["da
1116
1116
  "single-line": "",
1117
1117
  theme: "dark"
1118
1118
  }, null, 8, ["code"])
1119
- ])) : P("", !0),
1120
- t.entityRecord ? (g(), O(l, {
1119
+ ])) : D("", !0),
1120
+ t.entityRecord ? (g(), B(l, {
1121
1121
  key: 1,
1122
1122
  id: "json-codeblock",
1123
- class: me({ "json-content": t.fetcherUrl }),
1123
+ class: pe({ "json-content": t.fetcherUrl }),
1124
1124
  code: JSON.stringify(n.value, null, 2),
1125
1125
  language: "json",
1126
1126
  theme: "dark",
1127
- onCodeBlockRender: x(Ie)
1128
- }, null, 8, ["class", "code", "onCodeBlockRender"])) : P("", !0)
1127
+ onCodeBlockRender: C(Ie)
1128
+ }, null, 8, ["class", "code", "onCodeBlockRender"])) : D("", !0)
1129
1129
  ]);
1130
1130
  };
1131
1131
  }
@@ -1156,11 +1156,11 @@ function Rr(e, t) {
1156
1156
  function Kr(e) {
1157
1157
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1158
1158
  }
1159
- var Nr = sn, Mr = Or, Dr = Br, Pr = Rr, jr = Kr, Ur = Lr, te = {
1159
+ var Nr = sn, Mr = Or, Pr = Br, Dr = Rr, jr = Kr, Ur = Lr, te = {
1160
1160
  isNothing: Nr,
1161
1161
  isObject: Mr,
1162
- toArray: Dr,
1163
- repeat: Pr,
1162
+ toArray: Pr,
1163
+ repeat: Dr,
1164
1164
  isNegativeZero: jr,
1165
1165
  extend: Ur
1166
1166
  };
@@ -1219,7 +1219,7 @@ function qr(e, t) {
1219
1219
  `;
1220
1220
  return l.replace(/\n$/, "");
1221
1221
  }
1222
- var Hr = qr, Vr = [
1222
+ var Hr = qr, Yr = [
1223
1223
  "kind",
1224
1224
  "multi",
1225
1225
  "resolve",
@@ -1230,7 +1230,7 @@ var Hr = qr, Vr = [
1230
1230
  "representName",
1231
1231
  "defaultStyle",
1232
1232
  "styleAliases"
1233
- ], Yr = [
1233
+ ], Vr = [
1234
1234
  "scalar",
1235
1235
  "sequence",
1236
1236
  "mapping"
@@ -1245,17 +1245,17 @@ function Wr(e) {
1245
1245
  }
1246
1246
  function Jr(e, t) {
1247
1247
  if (t = t || {}, Object.keys(t).forEach(function(n) {
1248
- if (Vr.indexOf(n) === -1)
1248
+ if (Yr.indexOf(n) === -1)
1249
1249
  throw new se('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
1250
1250
  }), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
1251
1251
  return !0;
1252
1252
  }, this.construct = t.construct || function(n) {
1253
1253
  return n;
1254
- }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Wr(t.styleAliases || null), Yr.indexOf(this.kind) === -1)
1254
+ }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Wr(t.styleAliases || null), Vr.indexOf(this.kind) === -1)
1255
1255
  throw new se('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1256
1256
  }
1257
1257
  var ae = Jr;
1258
- function Tt(e, t) {
1258
+ function Et(e, t) {
1259
1259
  var n = [];
1260
1260
  return e[t].forEach(function(i) {
1261
1261
  var r = n.length;
@@ -1309,7 +1309,7 @@ et.prototype.extend = function(t) {
1309
1309
  throw new se("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1310
1310
  });
1311
1311
  var r = Object.create(et.prototype);
1312
- return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = Tt(r, "implicit"), r.compiledExplicit = Tt(r, "explicit"), r.compiledTypeMap = Gr(r.compiledImplicit, r.compiledExplicit), r;
1312
+ return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = Et(r, "implicit"), r.compiledExplicit = Et(r, "explicit"), r.compiledTypeMap = Gr(r.compiledImplicit, r.compiledExplicit), r;
1313
1313
  };
1314
1314
  var un = et, dn = new ae("tag:yaml.org,2002:str", {
1315
1315
  kind: "scalar",
@@ -1559,7 +1559,7 @@ function ma(e) {
1559
1559
  return e === null ? !1 : Cn.exec(e) !== null || xn.exec(e) !== null;
1560
1560
  }
1561
1561
  function ga(e) {
1562
- var t, n, i, r, o, a, l, s = 0, d = null, c, u, p;
1562
+ var t, n, i, r, o, a, l, s = 0, d = null, c, u, m;
1563
1563
  if (t = Cn.exec(e), t === null && (t = xn.exec(e)), t === null) throw new Error("Date resolve error");
1564
1564
  if (n = +t[1], i = +t[2] - 1, r = +t[3], !t[4])
1565
1565
  return new Date(Date.UTC(n, i, r));
@@ -1568,7 +1568,7 @@ function ga(e) {
1568
1568
  s += "0";
1569
1569
  s = +s;
1570
1570
  }
1571
- return t[9] && (c = +t[10], u = +(t[11] || 0), d = (c * 60 + u) * 6e4, t[9] === "-" && (d = -d)), p = new Date(Date.UTC(n, i, r, o, a, l, s)), d && p.setTime(p.getTime() - d), p;
1571
+ return t[9] && (c = +t[10], u = +(t[11] || 0), d = (c * 60 + u) * 6e4, t[9] === "-" && (d = -d)), m = new Date(Date.UTC(n, i, r, o, a, l, s)), d && m.setTime(m.getTime() - d), m;
1572
1572
  }
1573
1573
  function ha(e) {
1574
1574
  return e.toISOString();
@@ -1586,11 +1586,11 @@ function ya(e) {
1586
1586
  var wn = new ae("tag:yaml.org,2002:merge", {
1587
1587
  kind: "scalar",
1588
1588
  resolve: ya
1589
- }), st = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1589
+ }), ct = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1590
1590
  \r`;
1591
1591
  function va(e) {
1592
1592
  if (e === null) return !1;
1593
- var t, n, i = 0, r = e.length, o = st;
1593
+ var t, n, i = 0, r = e.length, o = ct;
1594
1594
  for (n = 0; n < r; n++)
1595
1595
  if (t = o.indexOf(e.charAt(n)), !(t > 64)) {
1596
1596
  if (t < 0) return !1;
@@ -1599,13 +1599,13 @@ function va(e) {
1599
1599
  return i % 8 === 0;
1600
1600
  }
1601
1601
  function ba(e) {
1602
- var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o = st, a = 0, l = [];
1602
+ var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o = ct, a = 0, l = [];
1603
1603
  for (t = 0; t < r; t++)
1604
1604
  t % 4 === 0 && t && (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t));
1605
1605
  return n = r % 4 * 6, n === 0 ? (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)) : n === 18 ? (l.push(a >> 10 & 255), l.push(a >> 2 & 255)) : n === 12 && l.push(a >> 4 & 255), new Uint8Array(l);
1606
1606
  }
1607
1607
  function ka(e) {
1608
- var t = "", n = 0, i, r, o = e.length, a = st;
1608
+ var t = "", n = 0, i, r, o = e.length, a = ct;
1609
1609
  for (i = 0; i < o; i++)
1610
1610
  i % 3 === 0 && i && (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]), n = (n << 8) + e[i];
1611
1611
  return r = o % 3, r === 0 ? (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]) : r === 2 ? (t += a[n >> 10 & 63], t += a[n >> 4 & 63], t += a[n << 2 & 63], t += a[64]) : r === 1 && (t += a[n >> 2 & 63], t += a[n << 4 & 63], t += a[64], t += a[64]), t;
@@ -1679,7 +1679,7 @@ var Tn = new ae("tag:yaml.org,2002:set", {
1679
1679
  kind: "mapping",
1680
1680
  resolve: Ia,
1681
1681
  construct: Fa
1682
- }), ct = kn.extend({
1682
+ }), ut = kn.extend({
1683
1683
  implicit: [
1684
1684
  An,
1685
1685
  wn
@@ -1690,11 +1690,11 @@ var Tn = new ae("tag:yaml.org,2002:set", {
1690
1690
  $n,
1691
1691
  Tn
1692
1692
  ]
1693
- }), be = Object.prototype.hasOwnProperty, Me = 1, En = 2, In = 3, De = 4, Qe = 1, Oa = 2, Et = 3, Ba = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, La = /[\x85\u2028\u2029]/, Ra = /[,\[\]\{\}]/, Fn = /^(?:!|!!|![a-z\-]+!)$/i, On = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1694
- function It(e) {
1693
+ }), be = Object.prototype.hasOwnProperty, Me = 1, En = 2, In = 3, Pe = 4, Qe = 1, Oa = 2, It = 3, Ba = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, La = /[\x85\u2028\u2029]/, Ra = /[,\[\]\{\}]/, Fn = /^(?:!|!!|![a-z\-]+!)$/i, On = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1694
+ function Ft(e) {
1695
1695
  return Object.prototype.toString.call(e);
1696
1696
  }
1697
- function pe(e) {
1697
+ function me(e) {
1698
1698
  return e === 10 || e === 13;
1699
1699
  }
1700
1700
  function ke(e) {
@@ -1716,11 +1716,11 @@ function Na(e) {
1716
1716
  function Ma(e) {
1717
1717
  return 48 <= e && e <= 57 ? e - 48 : -1;
1718
1718
  }
1719
- function Ft(e) {
1719
+ function Ot(e) {
1720
1720
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1721
1721
  ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
1722
1722
  }
1723
- function Da(e) {
1723
+ function Pa(e) {
1724
1724
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
1725
1725
  (e - 65536 >> 10) + 55296,
1726
1726
  (e - 65536 & 1023) + 56320
@@ -1736,9 +1736,9 @@ function Bn(e, t, n) {
1736
1736
  }
1737
1737
  var Ln = new Array(256), Rn = new Array(256);
1738
1738
  for (var _e = 0; _e < 256; _e++)
1739
- Ln[_e] = Ft(_e) ? 1 : 0, Rn[_e] = Ft(_e);
1740
- function Pa(e, t) {
1741
- this.input = e, this.filename = t.filename || null, this.schema = t.schema || ct, 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 = [];
1739
+ Ln[_e] = Ot(_e) ? 1 : 0, Rn[_e] = Ot(_e);
1740
+ function Da(e, t) {
1741
+ this.input = e, this.filename = t.filename || null, this.schema = t.schema || ut, 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 = [];
1742
1742
  }
1743
1743
  function Kn(e, t) {
1744
1744
  var n = {
@@ -1751,24 +1751,24 @@ function Kn(e, t) {
1751
1751
  };
1752
1752
  return n.snippet = Hr(n), new se(t, n);
1753
1753
  }
1754
- function E(e, t) {
1754
+ function T(e, t) {
1755
1755
  throw Kn(e, t);
1756
1756
  }
1757
- function Pe(e, t) {
1757
+ function De(e, t) {
1758
1758
  e.onWarning && e.onWarning.call(null, Kn(e, t));
1759
1759
  }
1760
- var Ot = {
1760
+ var Bt = {
1761
1761
  YAML: function(t, n, i) {
1762
1762
  var r, o, a;
1763
- t.version !== null && E(t, "duplication of %YAML directive"), i.length !== 1 && E(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && E(t, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && E(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Pe(t, "unsupported YAML version of the document");
1763
+ t.version !== null && T(t, "duplication of %YAML directive"), i.length !== 1 && T(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && T(t, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && T(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && De(t, "unsupported YAML version of the document");
1764
1764
  },
1765
1765
  TAG: function(t, n, i) {
1766
1766
  var r, o;
1767
- i.length !== 2 && E(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], Fn.test(r) || E(t, "ill-formed tag handle (first argument) of the TAG directive"), be.call(t.tagMap, r) && E(t, 'there is a previously declared suffix for "' + r + '" tag handle'), On.test(o) || E(t, "ill-formed tag prefix (second argument) of the TAG directive");
1767
+ i.length !== 2 && T(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], Fn.test(r) || T(t, "ill-formed tag handle (first argument) of the TAG directive"), be.call(t.tagMap, r) && T(t, 'there is a previously declared suffix for "' + r + '" tag handle'), On.test(o) || T(t, "ill-formed tag prefix (second argument) of the TAG directive");
1768
1768
  try {
1769
1769
  o = decodeURIComponent(o);
1770
1770
  } catch {
1771
- E(t, "tag prefix is malformed: " + o);
1771
+ T(t, "tag prefix is malformed: " + o);
1772
1772
  }
1773
1773
  t.tagMap[r] = o;
1774
1774
  }
@@ -1778,34 +1778,34 @@ function ve(e, t, n, i) {
1778
1778
  if (t < n) {
1779
1779
  if (l = e.input.slice(t, n), i)
1780
1780
  for (r = 0, o = l.length; r < o; r += 1)
1781
- a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || E(e, "expected valid JSON character");
1782
- else Ba.test(l) && E(e, "the stream contains non-printable characters");
1781
+ a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || T(e, "expected valid JSON character");
1782
+ else Ba.test(l) && T(e, "the stream contains non-printable characters");
1783
1783
  e.result += l;
1784
1784
  }
1785
1785
  }
1786
- function Bt(e, t, n, i) {
1786
+ function Lt(e, t, n, i) {
1787
1787
  var r, o, a, l;
1788
- for (te.isObject(n) || E(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
1788
+ for (te.isObject(n) || T(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
1789
1789
  o = r[a], be.call(t, o) || (Bn(t, o, n[o]), i[o] = !0);
1790
1790
  }
1791
1791
  function Te(e, t, n, i, r, o, a, l, s) {
1792
1792
  var d, c;
1793
1793
  if (Array.isArray(r))
1794
1794
  for (r = Array.prototype.slice.call(r), d = 0, c = r.length; d < c; d += 1)
1795
- Array.isArray(r[d]) && E(e, "nested arrays are not supported inside keys"), typeof r == "object" && It(r[d]) === "[object Object]" && (r[d] = "[object Object]");
1796
- if (typeof r == "object" && It(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
1795
+ Array.isArray(r[d]) && T(e, "nested arrays are not supported inside keys"), typeof r == "object" && Ft(r[d]) === "[object Object]" && (r[d] = "[object Object]");
1796
+ if (typeof r == "object" && Ft(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
1797
1797
  if (Array.isArray(o))
1798
1798
  for (d = 0, c = o.length; d < c; d += 1)
1799
- Bt(e, t, o[d], n);
1799
+ Lt(e, t, o[d], n);
1800
1800
  else
1801
- Bt(e, t, o, n);
1801
+ Lt(e, t, o, n);
1802
1802
  else
1803
- !e.json && !be.call(n, r) && be.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, E(e, "duplicated mapping key")), Bn(t, r, o), delete n[r];
1803
+ !e.json && !be.call(n, r) && be.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, T(e, "duplicated mapping key")), Bn(t, r, o), delete n[r];
1804
1804
  return t;
1805
1805
  }
1806
- function ut(e) {
1806
+ function dt(e) {
1807
1807
  var t;
1808
- t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : E(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1808
+ t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : T(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1809
1809
  }
1810
1810
  function ee(e, t, n) {
1811
1811
  for (var i = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
@@ -1815,24 +1815,24 @@ function ee(e, t, n) {
1815
1815
  do
1816
1816
  r = e.input.charCodeAt(++e.position);
1817
1817
  while (r !== 10 && r !== 13 && r !== 0);
1818
- if (pe(r))
1819
- for (ut(e), r = e.input.charCodeAt(e.position), i++, e.lineIndent = 0; r === 32; )
1818
+ if (me(r))
1819
+ for (dt(e), r = e.input.charCodeAt(e.position), i++, e.lineIndent = 0; r === 32; )
1820
1820
  e.lineIndent++, r = e.input.charCodeAt(++e.position);
1821
1821
  else
1822
1822
  break;
1823
1823
  }
1824
- return n !== -1 && i !== 0 && e.lineIndent < n && Pe(e, "deficient indentation"), i;
1824
+ return n !== -1 && i !== 0 && e.lineIndent < n && De(e, "deficient indentation"), i;
1825
1825
  }
1826
1826
  function We(e) {
1827
1827
  var t = e.position, n;
1828
1828
  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 || ue(n)));
1829
1829
  }
1830
- function dt(e, t) {
1830
+ function ft(e, t) {
1831
1831
  t === 1 ? e.result += " " : t > 1 && (e.result += te.repeat(`
1832
1832
  `, t - 1));
1833
1833
  }
1834
1834
  function ja(e, t, n) {
1835
- var i, r, o, a, l, s, d, c, u = e.kind, p = e.result, f;
1835
+ var i, r, o, a, l, s, d, c, u = e.kind, m = e.result, f;
1836
1836
  if (f = e.input.charCodeAt(e.position), ue(f) || $e(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) && (r = e.input.charCodeAt(e.position + 1), ue(r) || n && $e(r)))
1837
1837
  return !1;
1838
1838
  for (e.kind = "scalar", e.result = "", o = a = e.position, l = !1; f !== 0; ) {
@@ -1845,7 +1845,7 @@ function ja(e, t, n) {
1845
1845
  } else {
1846
1846
  if (e.position === e.lineStart && We(e) || n && $e(f))
1847
1847
  break;
1848
- if (pe(f))
1848
+ if (me(f))
1849
1849
  if (s = e.line, d = e.lineStart, c = e.lineIndent, ee(e, !1, -1), e.lineIndent >= t) {
1850
1850
  l = !0, f = e.input.charCodeAt(e.position);
1851
1851
  continue;
@@ -1854,9 +1854,9 @@ function ja(e, t, n) {
1854
1854
  break;
1855
1855
  }
1856
1856
  }
1857
- l && (ve(e, o, a, !1), dt(e, e.line - s), o = a = e.position, l = !1), ke(f) || (a = e.position + 1), f = e.input.charCodeAt(++e.position);
1857
+ l && (ve(e, o, a, !1), ft(e, e.line - s), o = a = e.position, l = !1), ke(f) || (a = e.position + 1), f = e.input.charCodeAt(++e.position);
1858
1858
  }
1859
- return ve(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = p, !1);
1859
+ return ve(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
1860
1860
  }
1861
1861
  function Ua(e, t) {
1862
1862
  var n, i, r;
@@ -1868,8 +1868,8 @@ function Ua(e, t) {
1868
1868
  i = e.position, e.position++, r = e.position;
1869
1869
  else
1870
1870
  return !0;
1871
- else pe(n) ? (ve(e, i, r, !0), dt(e, ee(e, !1, t)), i = r = e.position) : e.position === e.lineStart && We(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
1872
- E(e, "unexpected end of the stream within a single quoted scalar");
1871
+ else me(n) ? (ve(e, i, r, !0), ft(e, ee(e, !1, t)), i = r = e.position) : e.position === e.lineStart && We(e) ? T(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
1872
+ T(e, "unexpected end of the stream within a single quoted scalar");
1873
1873
  }
1874
1874
  function qa(e, t) {
1875
1875
  var n, i, r, o, a, l;
@@ -1879,23 +1879,23 @@ function qa(e, t) {
1879
1879
  if (l === 34)
1880
1880
  return ve(e, n, e.position, !0), e.position++, !0;
1881
1881
  if (l === 92) {
1882
- if (ve(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), pe(l))
1882
+ if (ve(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), me(l))
1883
1883
  ee(e, !1, t);
1884
1884
  else if (l < 256 && Ln[l])
1885
1885
  e.result += Rn[l], e.position++;
1886
1886
  else if ((a = Na(l)) > 0) {
1887
1887
  for (r = a, o = 0; r > 0; r--)
1888
- l = e.input.charCodeAt(++e.position), (a = Ka(l)) >= 0 ? o = (o << 4) + a : E(e, "expected hexadecimal character");
1889
- e.result += Da(o), e.position++;
1888
+ l = e.input.charCodeAt(++e.position), (a = Ka(l)) >= 0 ? o = (o << 4) + a : T(e, "expected hexadecimal character");
1889
+ e.result += Pa(o), e.position++;
1890
1890
  } else
1891
- E(e, "unknown escape sequence");
1891
+ T(e, "unknown escape sequence");
1892
1892
  n = i = e.position;
1893
- } else pe(l) ? (ve(e, n, i, !0), dt(e, ee(e, !1, t)), n = i = e.position) : e.position === e.lineStart && We(e) ? E(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
1893
+ } else me(l) ? (ve(e, n, i, !0), ft(e, ee(e, !1, t)), n = i = e.position) : e.position === e.lineStart && We(e) ? T(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
1894
1894
  }
1895
- E(e, "unexpected end of the stream within a double quoted scalar");
1895
+ T(e, "unexpected end of the stream within a double quoted scalar");
1896
1896
  }
1897
1897
  function Ha(e, t) {
1898
- var n = !0, i, r, o, a = e.tag, l, s = e.anchor, d, c, u, p, f, h = /* @__PURE__ */ Object.create(null), b, y, $, k;
1898
+ var n = !0, i, r, o, a = e.tag, l, s = e.anchor, d, c, u, m, f, h = /* @__PURE__ */ Object.create(null), b, y, $, k;
1899
1899
  if (k = e.input.charCodeAt(e.position), k === 91)
1900
1900
  c = 93, f = !1, l = [];
1901
1901
  else if (k === 123)
@@ -1905,11 +1905,11 @@ function Ha(e, t) {
1905
1905
  for (e.anchor !== null && (e.anchorMap[e.anchor] = l), k = e.input.charCodeAt(++e.position); k !== 0; ) {
1906
1906
  if (ee(e, !0, t), k = e.input.charCodeAt(e.position), k === c)
1907
1907
  return e.position++, e.tag = a, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
1908
- n ? k === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), y = b = $ = null, u = p = !1, k === 63 && (d = e.input.charCodeAt(e.position + 1), ue(d) && (u = p = !0, e.position++, ee(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Fe(e, t, Me, !1, !0), y = e.tag, b = e.result, ee(e, !0, t), k = e.input.charCodeAt(e.position), (p || e.line === i) && k === 58 && (u = !0, k = e.input.charCodeAt(++e.position), ee(e, !0, t), Fe(e, t, Me, !1, !0), $ = e.result), f ? Te(e, l, h, y, b, $, i, r, o) : u ? l.push(Te(e, null, h, y, b, $, i, r, o)) : l.push(b), ee(e, !0, t), k = e.input.charCodeAt(e.position), k === 44 ? (n = !0, k = e.input.charCodeAt(++e.position)) : n = !1;
1908
+ n ? k === 44 && T(e, "expected the node content, but found ','") : T(e, "missed comma between flow collection entries"), y = b = $ = null, u = m = !1, k === 63 && (d = e.input.charCodeAt(e.position + 1), ue(d) && (u = m = !0, e.position++, ee(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Fe(e, t, Me, !1, !0), y = e.tag, b = e.result, ee(e, !0, t), k = e.input.charCodeAt(e.position), (m || e.line === i) && k === 58 && (u = !0, k = e.input.charCodeAt(++e.position), ee(e, !0, t), Fe(e, t, Me, !1, !0), $ = e.result), f ? Te(e, l, h, y, b, $, i, r, o) : u ? l.push(Te(e, null, h, y, b, $, i, r, o)) : l.push(b), ee(e, !0, t), k = e.input.charCodeAt(e.position), k === 44 ? (n = !0, k = e.input.charCodeAt(++e.position)) : n = !1;
1909
1909
  }
1910
- E(e, "unexpected end of the stream within a flow collection");
1910
+ T(e, "unexpected end of the stream within a flow collection");
1911
1911
  }
1912
- function Va(e, t) {
1912
+ function Ya(e, t) {
1913
1913
  var n, i, r = Qe, o = !1, a = !1, l = t, s = 0, d = !1, c, u;
1914
1914
  if (u = e.input.charCodeAt(e.position), u === 124)
1915
1915
  i = !1;
@@ -1919,9 +1919,9 @@ function Va(e, t) {
1919
1919
  return !1;
1920
1920
  for (e.kind = "scalar", e.result = ""; u !== 0; )
1921
1921
  if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
1922
- Qe === r ? r = u === 43 ? Et : Oa : E(e, "repeat of a chomping mode identifier");
1922
+ Qe === r ? r = u === 43 ? It : Oa : T(e, "repeat of a chomping mode identifier");
1923
1923
  else if ((c = Ma(u)) >= 0)
1924
- c === 0 ? E(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? E(e, "repeat of an indentation width identifier") : (l = t + c - 1, a = !0);
1924
+ c === 0 ? T(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? T(e, "repeat of an indentation width identifier") : (l = t + c - 1, a = !0);
1925
1925
  else
1926
1926
  break;
1927
1927
  if (ke(u)) {
@@ -1931,17 +1931,17 @@ function Va(e, t) {
1931
1931
  if (u === 35)
1932
1932
  do
1933
1933
  u = e.input.charCodeAt(++e.position);
1934
- while (!pe(u) && u !== 0);
1934
+ while (!me(u) && u !== 0);
1935
1935
  }
1936
1936
  for (; u !== 0; ) {
1937
- for (ut(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!a || e.lineIndent < l) && u === 32; )
1937
+ for (dt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!a || e.lineIndent < l) && u === 32; )
1938
1938
  e.lineIndent++, u = e.input.charCodeAt(++e.position);
1939
- if (!a && e.lineIndent > l && (l = e.lineIndent), pe(u)) {
1939
+ if (!a && e.lineIndent > l && (l = e.lineIndent), me(u)) {
1940
1940
  s++;
1941
1941
  continue;
1942
1942
  }
1943
1943
  if (e.lineIndent < l) {
1944
- r === Et ? e.result += te.repeat(`
1944
+ r === It ? e.result += te.repeat(`
1945
1945
  `, o ? 1 + s : s) : r === Qe && o && (e.result += `
1946
1946
  `);
1947
1947
  break;
@@ -1950,33 +1950,33 @@ function Va(e, t) {
1950
1950
  `, o ? 1 + s : s)) : d ? (d = !1, e.result += te.repeat(`
1951
1951
  `, s + 1)) : s === 0 ? o && (e.result += " ") : e.result += te.repeat(`
1952
1952
  `, s) : e.result += te.repeat(`
1953
- `, o ? 1 + s : s), o = !0, a = !0, s = 0, n = e.position; !pe(u) && u !== 0; )
1953
+ `, o ? 1 + s : s), o = !0, a = !0, s = 0, n = e.position; !me(u) && u !== 0; )
1954
1954
  u = e.input.charCodeAt(++e.position);
1955
1955
  ve(e, n, e.position, !1);
1956
1956
  }
1957
1957
  return !0;
1958
1958
  }
1959
- function Lt(e, t) {
1959
+ function Rt(e, t) {
1960
1960
  var n, i = e.tag, r = e.anchor, o = [], a, l = !1, s;
1961
1961
  if (e.firstTabInLine !== -1) return !1;
1962
- for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !ue(a)))); ) {
1962
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !ue(a)))); ) {
1963
1963
  if (l = !0, e.position++, ee(e, !0, -1) && e.lineIndent <= t) {
1964
1964
  o.push(null), s = e.input.charCodeAt(e.position);
1965
1965
  continue;
1966
1966
  }
1967
1967
  if (n = e.line, Fe(e, t, In, !1, !0), o.push(e.result), ee(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
1968
- E(e, "bad indentation of a sequence entry");
1968
+ T(e, "bad indentation of a sequence entry");
1969
1969
  else if (e.lineIndent < t)
1970
1970
  break;
1971
1971
  }
1972
1972
  return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
1973
1973
  }
1974
- function Ya(e, t, n) {
1975
- var i, r, o, a, l, s, d = e.tag, c = e.anchor, u = {}, p = /* @__PURE__ */ Object.create(null), f = null, h = null, b = null, y = !1, $ = !1, k;
1974
+ function Va(e, t, n) {
1975
+ var i, r, o, a, l, s, d = e.tag, c = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, h = null, b = null, y = !1, $ = !1, k;
1976
1976
  if (e.firstTabInLine !== -1) return !1;
1977
1977
  for (e.anchor !== null && (e.anchorMap[e.anchor] = u), k = e.input.charCodeAt(e.position); k !== 0; ) {
1978
- if (!y && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (k === 63 || k === 58) && ue(i))
1979
- k === 63 ? (y && (Te(e, u, p, f, h, null, a, l, s), f = h = b = null), $ = !0, y = !0, r = !0) : y ? (y = !1, r = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, k = i;
1978
+ if (!y && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (k === 63 || k === 58) && ue(i))
1979
+ k === 63 ? (y && (Te(e, u, m, f, h, null, a, l, s), f = h = b = null), $ = !0, y = !0, r = !0) : y ? (y = !1, r = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, k = i;
1980
1980
  else {
1981
1981
  if (a = e.line, l = e.lineStart, s = e.position, !Fe(e, n, En, !1, !0))
1982
1982
  break;
@@ -1984,67 +1984,67 @@ function Ya(e, t, n) {
1984
1984
  for (k = e.input.charCodeAt(e.position); ke(k); )
1985
1985
  k = e.input.charCodeAt(++e.position);
1986
1986
  if (k === 58)
1987
- k = e.input.charCodeAt(++e.position), ue(k) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), y && (Te(e, u, p, f, h, null, a, l, s), f = h = b = null), $ = !0, y = !1, r = !1, f = e.tag, h = e.result;
1987
+ k = e.input.charCodeAt(++e.position), ue(k) || T(e, "a whitespace character is expected after the key-value separator within a block mapping"), y && (Te(e, u, m, f, h, null, a, l, s), f = h = b = null), $ = !0, y = !1, r = !1, f = e.tag, h = e.result;
1988
1988
  else if ($)
1989
- E(e, "can not read an implicit mapping pair; a colon is missed");
1989
+ T(e, "can not read an implicit mapping pair; a colon is missed");
1990
1990
  else
1991
1991
  return e.tag = d, e.anchor = c, !0;
1992
1992
  } else if ($)
1993
- E(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1993
+ T(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1994
1994
  else
1995
1995
  return e.tag = d, e.anchor = c, !0;
1996
1996
  }
1997
- if ((e.line === o || e.lineIndent > t) && (y && (a = e.line, l = e.lineStart, s = e.position), Fe(e, t, De, !0, r) && (y ? h = e.result : b = e.result), y || (Te(e, u, p, f, h, b, a, l, s), f = h = b = null), ee(e, !0, -1), k = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && k !== 0)
1998
- E(e, "bad indentation of a mapping entry");
1997
+ if ((e.line === o || e.lineIndent > t) && (y && (a = e.line, l = e.lineStart, s = e.position), Fe(e, t, Pe, !0, r) && (y ? h = e.result : b = e.result), y || (Te(e, u, m, f, h, b, a, l, s), f = h = b = null), ee(e, !0, -1), k = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && k !== 0)
1998
+ T(e, "bad indentation of a mapping entry");
1999
1999
  else if (e.lineIndent < t)
2000
2000
  break;
2001
2001
  }
2002
- return y && Te(e, u, p, f, h, null, a, l, s), $ && (e.tag = d, e.anchor = c, e.kind = "mapping", e.result = u), $;
2002
+ return y && Te(e, u, m, f, h, null, a, l, s), $ && (e.tag = d, e.anchor = c, e.kind = "mapping", e.result = u), $;
2003
2003
  }
2004
2004
  function Wa(e) {
2005
2005
  var t, n = !1, i = !1, r, o, a;
2006
2006
  if (a = e.input.charCodeAt(e.position), a !== 33) return !1;
2007
- if (e.tag !== null && E(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, n) {
2007
+ if (e.tag !== null && T(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, n) {
2008
2008
  do
2009
2009
  a = e.input.charCodeAt(++e.position);
2010
2010
  while (a !== 0 && a !== 62);
2011
- e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : E(e, "unexpected end of the stream within a verbatim tag");
2011
+ e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : T(e, "unexpected end of the stream within a verbatim tag");
2012
2012
  } else {
2013
2013
  for (; a !== 0 && !ue(a); )
2014
- a === 33 && (i ? E(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), Fn.test(r) || E(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
2015
- o = e.input.slice(t, e.position), Ra.test(o) && E(e, "tag suffix cannot contain flow indicator characters");
2014
+ a === 33 && (i ? T(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), Fn.test(r) || T(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
2015
+ o = e.input.slice(t, e.position), Ra.test(o) && T(e, "tag suffix cannot contain flow indicator characters");
2016
2016
  }
2017
- o && !On.test(o) && E(e, "tag name cannot contain such characters: " + o);
2017
+ o && !On.test(o) && T(e, "tag name cannot contain such characters: " + o);
2018
2018
  try {
2019
2019
  o = decodeURIComponent(o);
2020
2020
  } catch {
2021
- E(e, "tag name is malformed: " + o);
2021
+ T(e, "tag name is malformed: " + o);
2022
2022
  }
2023
- return n ? e.tag = o : be.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : E(e, 'undeclared tag handle "' + r + '"'), !0;
2023
+ return n ? e.tag = o : be.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : T(e, 'undeclared tag handle "' + r + '"'), !0;
2024
2024
  }
2025
2025
  function Ja(e) {
2026
2026
  var t, n;
2027
2027
  if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
2028
- for (e.anchor !== null && E(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ue(n) && !$e(n); )
2028
+ for (e.anchor !== null && T(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ue(n) && !$e(n); )
2029
2029
  n = e.input.charCodeAt(++e.position);
2030
- return e.position === t && E(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
2030
+ return e.position === t && T(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
2031
2031
  }
2032
2032
  function Ga(e) {
2033
2033
  var t, n, i;
2034
2034
  if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
2035
2035
  for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !ue(i) && !$e(i); )
2036
2036
  i = e.input.charCodeAt(++e.position);
2037
- return e.position === t && E(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), be.call(e.anchorMap, n) || E(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], ee(e, !0, -1), !0;
2037
+ return e.position === t && T(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), be.call(e.anchorMap, n) || T(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], ee(e, !0, -1), !0;
2038
2038
  }
2039
2039
  function Fe(e, t, n, i, r) {
2040
- var o, a, l, s = 1, d = !1, c = !1, u, p, f, h, b, y;
2041
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = De === n || In === n, i && ee(e, !0, -1) && (d = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
2040
+ var o, a, l, s = 1, d = !1, c = !1, u, m, f, h, b, y;
2041
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Pe === n || In === n, i && ee(e, !0, -1) && (d = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
2042
2042
  for (; Wa(e) || Ja(e); )
2043
2043
  ee(e, !0, -1) ? (d = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
2044
- if (l && (l = d || r), (s === 1 || De === n) && (Me === n || En === n ? b = t : b = t + 1, y = e.position - e.lineStart, s === 1 ? l && (Lt(e, y) || Ya(e, y, b)) || Ha(e, b) ? c = !0 : (a && Va(e, b) || Ua(e, b) || qa(e, b) ? c = !0 : Ga(e) ? (c = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : ja(e, b, Me === n) && (c = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (c = l && Lt(e, y))), e.tag === null)
2044
+ if (l && (l = d || r), (s === 1 || Pe === n) && (Me === n || En === n ? b = t : b = t + 1, y = e.position - e.lineStart, s === 1 ? l && (Rt(e, y) || Va(e, y, b)) || Ha(e, b) ? c = !0 : (a && Ya(e, b) || Ua(e, b) || qa(e, b) ? c = !0 : Ga(e) ? (c = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : ja(e, b, Me === n) && (c = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (c = l && Rt(e, y))), e.tag === null)
2045
2045
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2046
2046
  else if (e.tag === "?") {
2047
- for (e.result !== null && e.kind !== "scalar" && E(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, p = e.implicitTypes.length; u < p; u += 1)
2047
+ for (e.result !== null && e.kind !== "scalar" && T(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
2048
2048
  if (h = e.implicitTypes[u], h.resolve(e.result)) {
2049
2049
  e.result = h.construct(e.result), e.tag = h.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2050
2050
  break;
@@ -2053,12 +2053,12 @@ function Fe(e, t, n, i, r) {
2053
2053
  if (be.call(e.typeMap[e.kind || "fallback"], e.tag))
2054
2054
  h = e.typeMap[e.kind || "fallback"][e.tag];
2055
2055
  else
2056
- for (h = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, p = f.length; u < p; u += 1)
2056
+ for (h = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, m = f.length; u < m; u += 1)
2057
2057
  if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
2058
2058
  h = f[u];
2059
2059
  break;
2060
2060
  }
2061
- h || E(e, "unknown tag !<" + e.tag + ">"), e.result !== null && h.kind !== e.kind && E(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + h.kind + '", not "' + e.kind + '"'), h.resolve(e.result, e.tag) ? (e.result = h.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : E(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2061
+ h || T(e, "unknown tag !<" + e.tag + ">"), e.result !== null && h.kind !== e.kind && T(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + h.kind + '", not "' + e.kind + '"'), h.resolve(e.result, e.tag) ? (e.result = h.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : T(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2062
2062
  }
2063
2063
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || c;
2064
2064
  }
@@ -2067,36 +2067,36 @@ function za(e) {
2067
2067
  for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (ee(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
2068
2068
  for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !ue(a); )
2069
2069
  a = e.input.charCodeAt(++e.position);
2070
- for (i = e.input.slice(n, e.position), r = [], i.length < 1 && E(e, "directive name must not be less than one character in length"); a !== 0; ) {
2070
+ for (i = e.input.slice(n, e.position), r = [], i.length < 1 && T(e, "directive name must not be less than one character in length"); a !== 0; ) {
2071
2071
  for (; ke(a); )
2072
2072
  a = e.input.charCodeAt(++e.position);
2073
2073
  if (a === 35) {
2074
2074
  do
2075
2075
  a = e.input.charCodeAt(++e.position);
2076
- while (a !== 0 && !pe(a));
2076
+ while (a !== 0 && !me(a));
2077
2077
  break;
2078
2078
  }
2079
- if (pe(a)) break;
2079
+ if (me(a)) break;
2080
2080
  for (n = e.position; a !== 0 && !ue(a); )
2081
2081
  a = e.input.charCodeAt(++e.position);
2082
2082
  r.push(e.input.slice(n, e.position));
2083
2083
  }
2084
- a !== 0 && ut(e), be.call(Ot, i) ? Ot[i](e, i, r) : Pe(e, 'unknown document directive "' + i + '"');
2084
+ a !== 0 && dt(e), be.call(Bt, i) ? Bt[i](e, i, r) : De(e, 'unknown document directive "' + i + '"');
2085
2085
  }
2086
- if (ee(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, ee(e, !0, -1)) : o && E(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, De, !1, !0), ee(e, !0, -1), e.checkLineBreaks && La.test(e.input.slice(t, e.position)) && Pe(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && We(e)) {
2086
+ if (ee(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, ee(e, !0, -1)) : o && T(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, Pe, !1, !0), ee(e, !0, -1), e.checkLineBreaks && La.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 && We(e)) {
2087
2087
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, ee(e, !0, -1));
2088
2088
  return;
2089
2089
  }
2090
2090
  if (e.position < e.length - 1)
2091
- E(e, "end of the stream or a document separator is expected");
2091
+ T(e, "end of the stream or a document separator is expected");
2092
2092
  else
2093
2093
  return;
2094
2094
  }
2095
2095
  function Nn(e, t) {
2096
2096
  e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2097
2097
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2098
- var n = new Pa(e, t), i = e.indexOf("\0");
2099
- for (i !== -1 && (n.position = i, E(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
2098
+ var n = new Da(e, t), i = e.indexOf("\0");
2099
+ for (i !== -1 && (n.position = i, T(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
2100
2100
  n.lineIndent += 1, n.position += 1;
2101
2101
  for (; n.position < n.length - 1; )
2102
2102
  za(n);
@@ -2121,7 +2121,7 @@ function Za(e, t) {
2121
2121
  var Xa = Qa, eo = Za, Mn = {
2122
2122
  loadAll: Xa,
2123
2123
  load: eo
2124
- }, Dn = Object.prototype.toString, Pn = Object.prototype.hasOwnProperty, ft = 65279, to = 9, Le = 10, no = 13, io = 32, ro = 33, ao = 34, tt = 35, oo = 37, lo = 38, so = 39, co = 42, jn = 44, uo = 45, je = 58, fo = 61, po = 62, mo = 63, go = 64, Un = 91, qn = 93, ho = 96, Hn = 123, yo = 124, Vn = 125, oe = {};
2124
+ }, Pn = Object.prototype.toString, Dn = Object.prototype.hasOwnProperty, pt = 65279, to = 9, Le = 10, no = 13, io = 32, ro = 33, ao = 34, tt = 35, oo = 37, lo = 38, so = 39, co = 42, jn = 44, uo = 45, je = 58, fo = 61, po = 62, mo = 63, go = 64, Un = 91, qn = 93, ho = 96, Hn = 123, yo = 124, Yn = 125, oe = {};
2125
2125
  oe[0] = "\\0";
2126
2126
  oe[7] = "\\a";
2127
2127
  oe[8] = "\\b";
@@ -2159,7 +2159,7 @@ function ko(e, t) {
2159
2159
  var n, i, r, o, a, l, s;
2160
2160
  if (t === null) return {};
2161
2161
  for (n = {}, i = Object.keys(t), r = 0, o = i.length; r < o; r += 1)
2162
- a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s && Pn.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[a] = l;
2162
+ a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s && Dn.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[a] = l;
2163
2163
  return n;
2164
2164
  }
2165
2165
  function Co(e) {
@@ -2176,9 +2176,9 @@ function Co(e) {
2176
2176
  }
2177
2177
  var xo = 1, Re = 2;
2178
2178
  function Ao(e) {
2179
- this.schema = e.schema || ct, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = te.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = ko(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 === '"' ? Re : xo, 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;
2179
+ this.schema = e.schema || ut, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = te.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = ko(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 === '"' ? Re : xo, 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;
2180
2180
  }
2181
- function Rt(e, t) {
2181
+ function Kt(e, t) {
2182
2182
  for (var n = te.repeat(" ", t), i = 0, r = -1, o = "", a, l = e.length; i < l; )
2183
2183
  r = e.indexOf(`
2184
2184
  `, i), r === -1 ? (a = e.slice(i), i = l) : (a = e.slice(i, r + 1), i = r + 1), a.length && a !== `
@@ -2200,23 +2200,23 @@ function Ue(e) {
2200
2200
  return e === io || e === to;
2201
2201
  }
2202
2202
  function Ke(e) {
2203
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== ft || 65536 <= e && e <= 1114111;
2203
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== pt || 65536 <= e && e <= 1114111;
2204
2204
  }
2205
- function Kt(e) {
2206
- return Ke(e) && e !== ft && e !== no && e !== Le;
2205
+ function Nt(e) {
2206
+ return Ke(e) && e !== pt && e !== no && e !== Le;
2207
2207
  }
2208
- function Nt(e, t, n) {
2209
- var i = Kt(e), r = i && !Ue(e);
2208
+ function Mt(e, t, n) {
2209
+ var i = Nt(e), r = i && !Ue(e);
2210
2210
  return (
2211
2211
  // ns-plain-safe
2212
2212
  (n ? (
2213
2213
  // c = flow-in
2214
2214
  i
2215
- ) : i && e !== jn && e !== Un && e !== qn && e !== Hn && e !== Vn) && e !== tt && !(t === je && !r) || Kt(t) && !Ue(t) && e === tt || t === je && r
2215
+ ) : i && e !== jn && e !== Un && e !== qn && e !== Hn && e !== Yn) && e !== tt && !(t === je && !r) || Nt(t) && !Ue(t) && e === tt || t === je && r
2216
2216
  );
2217
2217
  }
2218
2218
  function _o(e) {
2219
- return Ke(e) && e !== ft && !Ue(e) && e !== uo && e !== mo && e !== je && e !== jn && e !== Un && e !== qn && e !== Hn && e !== Vn && e !== tt && e !== lo && e !== co && e !== ro && e !== yo && e !== fo && e !== po && e !== so && e !== ao && e !== oo && e !== go && e !== ho;
2219
+ return Ke(e) && e !== pt && !Ue(e) && e !== uo && e !== mo && e !== je && e !== jn && e !== Un && e !== qn && e !== Hn && e !== Yn && e !== tt && e !== lo && e !== co && e !== ro && e !== yo && e !== fo && e !== po && e !== so && e !== ao && e !== oo && e !== go && e !== ho;
2220
2220
  }
2221
2221
  function So(e) {
2222
2222
  return !Ue(e) && e !== je;
@@ -2225,31 +2225,31 @@ function Oe(e, t) {
2225
2225
  var n = e.charCodeAt(t), i;
2226
2226
  return n >= 55296 && n <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (n - 55296) * 1024 + i - 56320 + 65536 : n;
2227
2227
  }
2228
- function Yn(e) {
2228
+ function Vn(e) {
2229
2229
  var t = /^\n* /;
2230
2230
  return t.test(e);
2231
2231
  }
2232
2232
  var Wn = 1, it = 2, Jn = 3, Gn = 4, Se = 5;
2233
2233
  function $o(e, t, n, i, r, o, a, l) {
2234
- var s, d = 0, c = null, u = !1, p = !1, f = i !== -1, h = -1, b = _o(Oe(e, 0)) && So(Oe(e, e.length - 1));
2234
+ var s, d = 0, c = null, u = !1, m = !1, f = i !== -1, h = -1, b = _o(Oe(e, 0)) && So(Oe(e, e.length - 1));
2235
2235
  if (t || a)
2236
2236
  for (s = 0; s < e.length; d >= 65536 ? s += 2 : s++) {
2237
2237
  if (d = Oe(e, s), !Ke(d))
2238
2238
  return Se;
2239
- b = b && Nt(d, c, l), c = d;
2239
+ b = b && Mt(d, c, l), c = d;
2240
2240
  }
2241
2241
  else {
2242
2242
  for (s = 0; s < e.length; d >= 65536 ? s += 2 : s++) {
2243
2243
  if (d = Oe(e, s), d === Le)
2244
- u = !0, f && (p = p || // Foldable line = too long, and not more-indented.
2244
+ u = !0, f && (m = m || // Foldable line = too long, and not more-indented.
2245
2245
  s - h - 1 > i && e[h + 1] !== " ", h = s);
2246
2246
  else if (!Ke(d))
2247
2247
  return Se;
2248
- b = b && Nt(d, c, l), c = d;
2248
+ b = b && Mt(d, c, l), c = d;
2249
2249
  }
2250
- p = p || f && s - h - 1 > i && e[h + 1] !== " ";
2250
+ m = m || f && s - h - 1 > i && e[h + 1] !== " ";
2251
2251
  }
2252
- return !u && !p ? b && !a && !r(e) ? Wn : o === Re ? Se : it : n > 9 && Yn(e) ? Se : a ? o === Re ? Se : it : p ? Gn : Jn;
2252
+ return !u && !m ? b && !a && !r(e) ? Wn : o === Re ? Se : it : n > 9 && Vn(e) ? Se : a ? o === Re ? Se : it : m ? Gn : Jn;
2253
2253
  }
2254
2254
  function To(e, t, n, i, r) {
2255
2255
  e.dump = function() {
@@ -2276,9 +2276,9 @@ function To(e, t, n, i, r) {
2276
2276
  case it:
2277
2277
  return "'" + t.replace(/'/g, "''") + "'";
2278
2278
  case Jn:
2279
- return "|" + Mt(t, e.indent) + Dt(Rt(t, o));
2279
+ return "|" + Pt(t, e.indent) + Dt(Kt(t, o));
2280
2280
  case Gn:
2281
- return ">" + Mt(t, e.indent) + Dt(Rt(Eo(t, a), o));
2281
+ return ">" + Pt(t, e.indent) + Dt(Kt(Eo(t, a), o));
2282
2282
  case Se:
2283
2283
  return '"' + Io(t) + '"';
2284
2284
  default:
@@ -2286,8 +2286,8 @@ function To(e, t, n, i, r) {
2286
2286
  }
2287
2287
  }();
2288
2288
  }
2289
- function Mt(e, t) {
2290
- var n = Yn(e) ? String(t) : "", i = e[e.length - 1] === `
2289
+ function Pt(e, t) {
2290
+ var n = Vn(e) ? String(t) : "", i = e[e.length - 1] === `
2291
2291
  `, r = i && (e[e.length - 2] === `
2292
2292
  ` || e === `
2293
2293
  `), o = r ? "+" : i ? "" : "-";
@@ -2302,16 +2302,16 @@ function Eo(e, t) {
2302
2302
  for (var n = /(\n+)([^\n]*)/g, i = function() {
2303
2303
  var d = e.indexOf(`
2304
2304
  `);
2305
- return d = d !== -1 ? d : e.length, n.lastIndex = d, Pt(e.slice(0, d), t);
2305
+ return d = d !== -1 ? d : e.length, n.lastIndex = d, jt(e.slice(0, d), t);
2306
2306
  }(), r = e[0] === `
2307
2307
  ` || e[0] === " ", o, a; a = n.exec(e); ) {
2308
2308
  var l = a[1], s = a[2];
2309
2309
  o = s[0] === " ", i += l + (!r && !o && s !== "" ? `
2310
- ` : "") + Pt(s, t), r = o;
2310
+ ` : "") + jt(s, t), r = o;
2311
2311
  }
2312
2312
  return i;
2313
2313
  }
2314
- function Pt(e, t) {
2314
+ function jt(e, t) {
2315
2315
  if (e === "" || e[0] === " ") return e;
2316
2316
  for (var n = / [^ ]/g, i, r = 0, o, a = 0, l = 0, s = ""; i = n.exec(e); )
2317
2317
  l = i.index, l - r > t && (o = a > r ? a : l, s += `
@@ -2331,7 +2331,7 @@ function Fo(e, t, n) {
2331
2331
  l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (ge(e, t, l, !1, !1) || typeof l > "u" && ge(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
2332
2332
  e.tag = r, e.dump = "[" + i + "]";
2333
2333
  }
2334
- function jt(e, t, n, i) {
2334
+ function Ut(e, t, n, i) {
2335
2335
  var r = "", o = e.tag, a, l, s;
2336
2336
  for (a = 0, l = n.length; a < l; a += 1)
2337
2337
  s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (ge(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ge(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += nt(e, t)), e.dump && Le === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
@@ -2344,7 +2344,7 @@ function Oo(e, t, n) {
2344
2344
  e.tag = r, e.dump = "{" + i + "}";
2345
2345
  }
2346
2346
  function Bo(e, t, n, i) {
2347
- var r = "", o = e.tag, a = Object.keys(n), l, s, d, c, u, p;
2347
+ var r = "", o = e.tag, a = Object.keys(n), l, s, d, c, u, m;
2348
2348
  if (e.sortKeys === !0)
2349
2349
  a.sort();
2350
2350
  else if (typeof e.sortKeys == "function")
@@ -2352,17 +2352,17 @@ function Bo(e, t, n, i) {
2352
2352
  else if (e.sortKeys)
2353
2353
  throw new se("sortKeys must be a boolean or a function");
2354
2354
  for (l = 0, s = a.length; l < s; l += 1)
2355
- p = "", (!i || r !== "") && (p += nt(e, t)), d = a[l], c = n[d], e.replacer && (c = e.replacer.call(n, d, c)), ge(e, t + 1, d, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Le === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, u && (p += nt(e, t)), ge(e, t + 1, c, !0, u) && (e.dump && Le === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, r += p));
2355
+ m = "", (!i || r !== "") && (m += nt(e, t)), d = a[l], c = n[d], e.replacer && (c = e.replacer.call(n, d, c)), ge(e, t + 1, d, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Le === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += nt(e, t)), ge(e, t + 1, c, !0, u) && (e.dump && Le === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, r += m));
2356
2356
  e.tag = o, e.dump = r || "{}";
2357
2357
  }
2358
- function Ut(e, t, n) {
2358
+ function qt(e, t, n) {
2359
2359
  var i, r, o, a, l, s;
2360
2360
  for (r = n ? e.explicitTypes : e.implicitTypes, o = 0, a = r.length; o < a; o += 1)
2361
2361
  if (l = r[o], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof t == "object" && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
2362
2362
  if (n ? l.multi && l.representName ? e.tag = l.representName(t) : e.tag = l.tag : e.tag = "?", l.represent) {
2363
- if (s = e.styleMap[l.tag] || l.defaultStyle, Dn.call(l.represent) === "[object Function]")
2363
+ if (s = e.styleMap[l.tag] || l.defaultStyle, Pn.call(l.represent) === "[object Function]")
2364
2364
  i = l.represent(t, s);
2365
- else if (Pn.call(l.represent, s))
2365
+ else if (Dn.call(l.represent, s))
2366
2366
  i = l.represent[s](t, s);
2367
2367
  else
2368
2368
  throw new se("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
@@ -2373,17 +2373,17 @@ function Ut(e, t, n) {
2373
2373
  return !1;
2374
2374
  }
2375
2375
  function ge(e, t, n, i, r, o, a) {
2376
- e.tag = null, e.dump = n, Ut(e, n, !1) || Ut(e, n, !0);
2377
- var l = Dn.call(e.dump), s = i, d;
2376
+ e.tag = null, e.dump = n, qt(e, n, !1) || qt(e, n, !0);
2377
+ var l = Pn.call(e.dump), s = i, d;
2378
2378
  i && (i = e.flowLevel < 0 || e.flowLevel > t);
2379
- var c = l === "[object Object]" || l === "[object Array]", u, p;
2380
- if (c && (u = e.duplicates.indexOf(n), p = u !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && t > 0) && (r = !1), p && e.usedDuplicates[u])
2379
+ var c = l === "[object Object]" || l === "[object Array]", u, m;
2380
+ if (c && (u = e.duplicates.indexOf(n), m = u !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && t > 0) && (r = !1), m && e.usedDuplicates[u])
2381
2381
  e.dump = "*ref_" + u;
2382
2382
  else {
2383
- if (c && p && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
2384
- i && Object.keys(e.dump).length !== 0 ? (Bo(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (Oo(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
2383
+ if (c && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
2384
+ i && Object.keys(e.dump).length !== 0 ? (Bo(e, t, e.dump, r), m && (e.dump = "&ref_" + u + e.dump)) : (Oo(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2385
2385
  else if (l === "[object Array]")
2386
- i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? jt(e, t - 1, e.dump, r) : jt(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (Fo(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
2386
+ i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Ut(e, t - 1, e.dump, r) : Ut(e, t, e.dump, r), m && (e.dump = "&ref_" + u + e.dump)) : (Fo(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2387
2387
  else if (l === "[object String]")
2388
2388
  e.tag !== "?" && To(e, e.dump, t, o, s);
2389
2389
  else {
@@ -2427,12 +2427,12 @@ function Ro(e, t) {
2427
2427
  var Ko = Ro, No = {
2428
2428
  dump: Ko
2429
2429
  };
2430
- function pt(e, t) {
2430
+ function mt(e, t) {
2431
2431
  return function() {
2432
2432
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2433
2433
  };
2434
2434
  }
2435
- var Mo = ae, Do = un, Po = mn, jo = bn, Uo = kn, qo = ct, Ho = Mn.load, Vo = Mn.loadAll, Yo = No.dump, Wo = se, Jo = {
2435
+ var Mo = ae, Po = un, Do = mn, jo = bn, Uo = kn, qo = ut, Ho = Mn.load, Yo = Mn.loadAll, Vo = No.dump, Wo = se, Jo = {
2436
2436
  binary: _n,
2437
2437
  float: vn,
2438
2438
  map: pn,
@@ -2446,16 +2446,16 @@ var Mo = ae, Do = un, Po = mn, jo = bn, Uo = kn, qo = ct, Ho = Mn.load, Vo = Mn.
2446
2446
  omap: Sn,
2447
2447
  seq: fn,
2448
2448
  str: dn
2449
- }, Go = pt("safeLoad", "load"), zo = pt("safeLoadAll", "loadAll"), Qo = pt("safeDump", "dump"), zn = {
2449
+ }, Go = mt("safeLoad", "load"), zo = mt("safeLoadAll", "loadAll"), Qo = mt("safeDump", "dump"), zn = {
2450
2450
  Type: Mo,
2451
- Schema: Do,
2452
- FAILSAFE_SCHEMA: Po,
2451
+ Schema: Po,
2452
+ FAILSAFE_SCHEMA: Do,
2453
2453
  JSON_SCHEMA: jo,
2454
2454
  CORE_SCHEMA: Uo,
2455
2455
  DEFAULT_SCHEMA: qo,
2456
2456
  load: Ho,
2457
- loadAll: Vo,
2458
- dump: Yo,
2457
+ loadAll: Yo,
2458
+ dump: Vo,
2459
2459
  YAMLException: Wo,
2460
2460
  types: Jo,
2461
2461
  safeLoad: Go,
@@ -2472,21 +2472,21 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
2472
2472
  }
2473
2473
  },
2474
2474
  setup(e) {
2475
- const t = e, n = S(() => {
2475
+ const t = e, n = _(() => {
2476
2476
  const i = Object.fromEntries(Object.entries(t.entityRecord).filter(([, r]) => r !== null && r !== "" && (Array.isArray(r) ? r.length !== 0 : !0)));
2477
2477
  return Object.keys(i).length === 0 && i.constructor === Object ? "" : zn.dump(i).trim();
2478
2478
  });
2479
2479
  return (i, r) => {
2480
2480
  const o = U("KCodeBlock");
2481
- return g(), _("div", Zo, [
2482
- t.entityRecord ? (g(), O(o, {
2481
+ return g(), S("div", Zo, [
2482
+ t.entityRecord ? (g(), B(o, {
2483
2483
  key: 0,
2484
2484
  id: "yaml-codeblock",
2485
2485
  code: n.value,
2486
2486
  language: "yaml",
2487
2487
  theme: "dark",
2488
- onCodeBlockRender: x(Ie)
2489
- }, null, 8, ["code", "onCodeBlockRender"])) : P("", !0)
2488
+ onCodeBlockRender: C(Ie)
2489
+ }, null, 8, ["code", "onCodeBlockRender"])) : D("", !0)
2490
2490
  ]);
2491
2491
  };
2492
2492
  }
@@ -2501,7 +2501,7 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
2501
2501
  entityType: {
2502
2502
  type: String,
2503
2503
  required: !0,
2504
- validator: (e) => Ve.includes(e)
2504
+ validator: (e) => Ye.includes(e)
2505
2505
  },
2506
2506
  credentialType: {
2507
2507
  type: String,
@@ -2514,16 +2514,16 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
2514
2514
  }
2515
2515
  },
2516
2516
  setup(e) {
2517
- const t = e, n = S(() => xi.includes(t.entityType)), i = S(() => Ai.includes(t.entityType)), r = (c, u) => {
2518
- const p = ie;
2517
+ const t = e, n = _(() => xi.includes(t.entityType)), i = _(() => Ai.includes(t.entityType)), r = (c, u) => {
2518
+ const m = ie;
2519
2519
  let f = "";
2520
- return typeof c == "string" ? f += `${p}${u} = "${c}"
2521
- ` : f += `${p}${u} = ${String(c ?? "")}
2520
+ return typeof c == "string" ? f += `${m}${u} = "${c}"
2521
+ ` : f += `${m}${u} = ${String(c ?? "")}
2522
2522
  `, f;
2523
- }, o = (c, u, p = "") => {
2523
+ }, o = (c, u, m = "") => {
2524
2524
  if (typeof c != "object")
2525
2525
  return "Invalid object";
2526
- const f = ie + p;
2526
+ const f = ie + m;
2527
2527
  let h = "";
2528
2528
  if (u && (h += `${f}${u} = {
2529
2529
  `), c === null)
@@ -2537,10 +2537,10 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
2537
2537
  `;
2538
2538
  return u ? h += `${f}}
2539
2539
  ` : h;
2540
- }, a = (c, u, p = "") => {
2540
+ }, a = (c, u, m = "") => {
2541
2541
  if (!Array.isArray(c))
2542
2542
  return "Invalid array";
2543
- const f = ie + p;
2543
+ const f = ie + m;
2544
2544
  let h = "";
2545
2545
  u && (c.length === 0 ? h += `${f}${u} = [` : h += `${f}${u} = [
2546
2546
  `);
@@ -2555,47 +2555,47 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
2555
2555
  `), h;
2556
2556
  }, l = (c) => c.replace(/\$\{/g, () => "$${"), s = (c) => {
2557
2557
  let u = "";
2558
- for (const [p, f] of Object.entries(c))
2559
- Array.isArray(f) ? u += a(f, p) : typeof f == "object" ? u += o(f, p) : u += r(f, p);
2558
+ for (const [m, f] of Object.entries(c))
2559
+ Array.isArray(f) ? u += a(f, m) : typeof f == "object" ? u += o(f, m) : u += r(f, m);
2560
2560
  return l(u);
2561
- }, d = S(() => {
2562
- var h, b, y, $, k, w, V;
2563
- const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, z]) => z != null)), u = t.entityRecord.config ? Object.fromEntries(Object.entries((h = t.entityRecord) == null ? void 0 : h.config).filter(([, z]) => z != null)) : void 0;
2561
+ }, d = _(() => {
2562
+ var h, b, y, $, k, w, Y;
2563
+ const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, J]) => J != null)), u = t.entityRecord.config ? Object.fromEntries(Object.entries((h = t.entityRecord) == null ? void 0 : h.config).filter(([, J]) => J != null)) : void 0;
2564
2564
  if (u && (c.config = u), Object.keys(c).length === 0)
2565
2565
  return "";
2566
2566
  delete c.id;
2567
- let p = "", f = "";
2568
- if ((b = c.service) != null && b.id ? (f = "service", delete c.service) : (y = c.route) != null && y.id ? (f = "route", delete c.route) : ($ = c.consumer) != null && $.id ? (f = "consumer", delete c.consumer) : (k = c.consumer_group) != null && k.id ? (f = "consumer_group", delete c.consumer_group) : (w = c.certificate) != null && w.id ? (f = "certificate", delete c.certificate) : (V = c.set) != null && V.id && (f = "set", delete c.set), n.value) {
2569
- const z = t.subEntityType ? `${t.entityType}_${t.subEntityType}` : t.entityType;
2570
- p += `resource "konnect_event_gateway_${z}" "my_eventgateway${z.replaceAll("_", "")}" {
2571
- `, p += `${ie}provider = konnect-beta
2567
+ let m = "", f = "";
2568
+ if ((b = c.service) != null && b.id ? (f = "service", delete c.service) : (y = c.route) != null && y.id ? (f = "route", delete c.route) : ($ = c.consumer) != null && $.id ? (f = "consumer", delete c.consumer) : (k = c.consumer_group) != null && k.id ? (f = "consumer_group", delete c.consumer_group) : (w = c.certificate) != null && w.id ? (f = "certificate", delete c.certificate) : (Y = c.set) != null && Y.id && (f = "set", delete c.set), n.value) {
2569
+ const J = t.subEntityType ? `${t.entityType}_${t.subEntityType}` : t.entityType;
2570
+ m += `resource "konnect_event_gateway_${J}" "my_eventgateway${J.replaceAll("_", "")}" {
2571
+ `, m += `${ie}provider = konnect-beta
2572
2572
  `;
2573
2573
  } else if (t.entityType === "plugin") {
2574
- const z = t.credentialType.replace(/-/g, "_") || (c.name + "").replace(/-/g, "_");
2575
- delete c.name, p += `resource "konnect_gateway_plugin_${z}" "my_${z}" {
2574
+ const J = t.credentialType.replace(/-/g, "_") || (c.name + "").replace(/-/g, "_");
2575
+ delete c.name, m += `resource "konnect_gateway_plugin_${J}" "my_${J}" {
2576
2576
  `;
2577
- } else i.value ? (p += `resource "konnect_${t.entityType}" "my_${t.entityType}" {
2578
- `, p += `${ie}provider = konnect-beta
2579
- `) : p += `resource "konnect_gateway_${t.entityType}" "my_${t.entityType}" {
2577
+ } else i.value ? (m += `resource "konnect_${t.entityType}" "my_${t.entityType}" {
2578
+ `, m += `${ie}provider = konnect-beta
2579
+ `) : m += `resource "konnect_gateway_${t.entityType}" "my_${t.entityType}" {
2580
2580
  `;
2581
- return p += s(c), !n.value && !i.value ? p += `${ie}control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
2582
- ` : f && (p += `${ie}${f} = {
2583
- `, p += `${ie}${ie}id = konnect_gateway_${f}.my_${f}.id
2584
- `, p += `${ie}}
2585
- `), p += `}
2586
- `, p;
2581
+ return m += s(c), !n.value && !i.value ? m += `${ie}control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
2582
+ ` : f && (m += `${ie}${f} = {
2583
+ `, m += `${ie}${ie}id = konnect_gateway_${f}.my_${f}.id
2584
+ `, m += `${ie}}
2585
+ `), m += `}
2586
+ `, m;
2587
2587
  });
2588
2588
  return (c, u) => {
2589
- const p = U("KCodeBlock");
2590
- return g(), _("div", Xo, [
2591
- t.entityRecord ? (g(), O(p, {
2589
+ const m = U("KCodeBlock");
2590
+ return g(), S("div", Xo, [
2591
+ t.entityRecord ? (g(), B(m, {
2592
2592
  key: 0,
2593
2593
  id: "terraform-codeblock",
2594
2594
  code: d.value,
2595
2595
  language: "terraform",
2596
2596
  theme: "dark",
2597
- onCodeBlockRender: x(Ie)
2598
- }, null, 8, ["code", "onCodeBlockRender"])) : P("", !0)
2597
+ onCodeBlockRender: C(Ie)
2598
+ }, null, 8, ["code", "onCodeBlockRender"])) : D("", !0)
2599
2599
  ]);
2600
2600
  };
2601
2601
  }
@@ -2611,26 +2611,26 @@ const Zo = { class: "yaml-config config-card-code-block" }, Qn = /* @__PURE__ */
2611
2611
  workspace: {}
2612
2612
  },
2613
2613
  setup(e) {
2614
- const t = e, { i18n: n, i18nT: i } = G.useI18n(), r = [
2614
+ const t = e, { i18n: n, i18nT: i } = z.useI18n(), r = [
2615
2615
  { value: "bash", label: "Linux / macOS Bash" },
2616
2616
  { value: "powershell", label: "Windows PowerShell" }
2617
- ], o = M(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), a = S(() => {
2617
+ ], o = M(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), a = _(() => {
2618
2618
  const c = {
2619
2619
  _format_version: "3.0"
2620
2620
  };
2621
2621
  return t.controlPlaneName ? c._konnect = {
2622
2622
  control_plane_name: t.controlPlaneName
2623
2623
  } : t.workspace && (c._workspace = t.workspace), c;
2624
- }), l = S(() => {
2624
+ }), l = _(() => {
2625
2625
  var f, h, b, y, $;
2626
2626
  const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, k]) => k !== null && k !== "" && (Array.isArray(k) ? k.length !== 0 : !0)));
2627
2627
  t.entityType === Ee.Plugin ? ((f = c.service) != null && f.id && (c.service = c.service.id), (h = c.route) != null && h.id && (c.route = c.route.id), (b = c.consumer) != null && b.id && (c.consumer = c.consumer.id), (y = c.consumer_group) != null && y.id && (c.consumer_group = c.consumer_group.id)) : t.entityType === Ee.Key && ($ = c.key_set) != null && $.id && (c.key_set = c.key_set.id);
2628
- const u = t.entityType === Ee.KeySet ? "key_sets" : t.entityType + "s", p = {
2628
+ const u = t.entityType === Ee.KeySet ? "key_sets" : t.entityType + "s", m = {
2629
2629
  ...a.value,
2630
2630
  [u]: [c]
2631
2631
  };
2632
- return zn.dump(p, { quotingType: '"' }).trim();
2633
- }), s = S(() => o.value === "bash" ? "export DECK_KONNECT_TOKEN='YOUR_KONNECT_PAT'" : '$env:DECK_KONNECT_TOKEN = "YOUR_KONNECT_PAT"'), d = S(() => {
2632
+ return zn.dump(m, { quotingType: '"' }).trim();
2633
+ }), s = _(() => o.value === "bash" ? "export DECK_KONNECT_TOKEN='YOUR_KONNECT_PAT'" : '$env:DECK_KONNECT_TOKEN = "YOUR_KONNECT_PAT"'), d = _(() => {
2634
2634
  let c = "deck gateway apply -";
2635
2635
  return t.geoApiServerUrl ? c += ` --konnect-addr ${t.geoApiServerUrl}` : t.kongAdminApiUrl && (c += ` --kong-addr ${t.kongAdminApiUrl}`), o.value === "bash" ? `echo '
2636
2636
  ${l.value}
@@ -2639,34 +2639,34 @@ ${l.value}
2639
2639
  '@ | ${c}`;
2640
2640
  });
2641
2641
  return (c, u) => {
2642
- const p = U("KSelect"), f = U("KBadge"), h = U("KCodeBlock");
2643
- return g(), _("div", el, [
2644
- N(p, {
2642
+ const m = U("KSelect"), f = U("KBadge"), h = U("KCodeBlock");
2643
+ return g(), S("div", el, [
2644
+ N(m, {
2645
2645
  modelValue: o.value,
2646
2646
  "onUpdate:modelValue": u[0] || (u[0] = (b) => o.value = b),
2647
2647
  items: r
2648
2648
  }, {
2649
- "item-template": A(({ item: b }) => [
2650
- b.value === "powershell" ? (g(), O(x(vt), { key: 0 })) : (g(), O(x(bt), { key: 1 })),
2651
- H(" " + F(b.label), 1)
2649
+ "item-template": x(({ item: b }) => [
2650
+ b.value === "powershell" ? (g(), B(C(bt), { key: 0 })) : (g(), B(C(kt), { key: 1 })),
2651
+ q(" " + I(b.label), 1)
2652
2652
  ]),
2653
- "selected-item-template": A(({ item: b }) => [
2654
- b.value === "powershell" ? (g(), O(x(vt), { key: 0 })) : (g(), O(x(bt), { key: 1 })),
2655
- H(" " + F(b.label), 1)
2653
+ "selected-item-template": x(({ item: b }) => [
2654
+ b.value === "powershell" ? (g(), B(C(bt), { key: 0 })) : (g(), B(C(kt), { key: 1 })),
2655
+ q(" " + I(b.label), 1)
2656
2656
  ]),
2657
2657
  _: 1
2658
2658
  }, 8, ["modelValue"]),
2659
- N(x(i), {
2659
+ N(C(i), {
2660
2660
  "data-testid": `deck-hint-${e.app}`,
2661
2661
  keypath: `deckCodeBlock.hint.${e.app}`,
2662
2662
  tag: "p"
2663
2663
  }, xe({
2664
- link: A(() => [
2665
- N(x(ui), {
2664
+ link: x(() => [
2665
+ N(C(ui), {
2666
2666
  href: e.app === "konnect" ? "https://developer.konghq.com/deck/get-started/" : "https://developer.konghq.com/deck/gateway/configuration/"
2667
2667
  }, {
2668
- default: A(() => [
2669
- H(F(x(n).t("deckCodeBlock.documentation")), 1)
2668
+ default: x(() => [
2669
+ q(I(C(n).t("deckCodeBlock.documentation")), 1)
2670
2670
  ]),
2671
2671
  _: 1
2672
2672
  }, 8, ["href"])
@@ -2675,10 +2675,10 @@ ${l.value}
2675
2675
  }, [
2676
2676
  e.app === "konnect" ? {
2677
2677
  name: "token",
2678
- fn: A(() => [
2678
+ fn: x(() => [
2679
2679
  N(f, null, {
2680
- default: A(() => [...u[1] || (u[1] = [
2681
- H("DECK_KONNECT_TOKEN", -1)
2680
+ default: x(() => [...u[1] || (u[1] = [
2681
+ q("DECK_KONNECT_TOKEN", -1)
2682
2682
  ])]),
2683
2683
  _: 1
2684
2684
  })
@@ -2686,23 +2686,23 @@ ${l.value}
2686
2686
  key: "0"
2687
2687
  } : void 0
2688
2688
  ]), 1032, ["data-testid", "keypath"]),
2689
- e.app === "konnect" ? (g(), O(h, {
2689
+ e.app === "konnect" ? (g(), B(h, {
2690
2690
  key: 0,
2691
2691
  id: "deck-env-codeblock",
2692
2692
  code: s.value,
2693
2693
  language: o.value,
2694
2694
  "single-line": "",
2695
2695
  theme: "dark",
2696
- onCodeBlockRender: x(Ie)
2697
- }, null, 8, ["code", "language", "onCodeBlockRender"])) : P("", !0),
2698
- t.entityRecord ? (g(), O(h, {
2696
+ onCodeBlockRender: C(Ie)
2697
+ }, null, 8, ["code", "language", "onCodeBlockRender"])) : D("", !0),
2698
+ t.entityRecord ? (g(), B(h, {
2699
2699
  key: 1,
2700
2700
  id: "deck-codeblock",
2701
2701
  code: d.value,
2702
2702
  language: o.value,
2703
2703
  theme: "dark",
2704
- onCodeBlockRender: x(Ie)
2705
- }, null, 8, ["code", "language", "onCodeBlockRender"])) : P("", !0)
2704
+ onCodeBlockRender: C(Ie)
2705
+ }, null, 8, ["code", "language", "onCodeBlockRender"])) : D("", !0)
2706
2706
  ]);
2707
2707
  };
2708
2708
  }
@@ -2724,7 +2724,7 @@ ${l.value}
2724
2724
  entityType: {
2725
2725
  type: String,
2726
2726
  required: !0,
2727
- validator: (e) => Ve.includes(e)
2727
+ validator: (e) => Ye.includes(e)
2728
2728
  },
2729
2729
  subEntityType: {
2730
2730
  // only for event gateway entities
@@ -2769,31 +2769,31 @@ ${l.value}
2769
2769
  }
2770
2770
  },
2771
2771
  setup(e) {
2772
- const t = e, n = He(), { i18n: { t: i } } = G.useI18n(), r = (l) => !!(l.tooltip || n[`${l.key}-label-tooltip`]), o = S(() => {
2772
+ const t = e, n = He(), { i18n: { t: i } } = z.useI18n(), r = (l) => !!(l.tooltip || n[`${l.key}-label-tooltip`]), o = _(() => {
2773
2773
  if (!t.record)
2774
2774
  return t.record;
2775
2775
  let l = t.record;
2776
2776
  t.codeBlockRecordFormatter && (l = t.codeBlockRecordFormatter(l, t.format));
2777
2777
  const s = JSON.parse(JSON.stringify(l));
2778
2778
  return delete s.created_at, delete s.updated_at, s;
2779
- }), a = S(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
2780
- return (l, s) => (g(), _(fe, null, [
2781
- e.format === "structured" ? (g(), _("div", nl, [
2782
- (g(!0), _(fe, null, de(e.propListTypes, (d) => (g(), _("div", {
2779
+ }), a = _(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
2780
+ return (l, s) => (g(), S(fe, null, [
2781
+ e.format === "structured" ? (g(), S("div", nl, [
2782
+ (g(!0), S(fe, null, de(e.propListTypes, (d) => (g(), S("div", {
2783
2783
  key: `config-card-details-${d}-props`,
2784
- class: me(`config-card-details-${d}-props`),
2784
+ class: pe(`config-card-details-${d}-props`),
2785
2785
  "data-testid": `config-card-details-${d}-props`
2786
2786
  }, [
2787
- d !== "basic" ? (g(), _("div", rl, F(d === "advanced" ? x(i)("baseConfigCard.sections.advanced") : d === "plugin" ? x(i)("baseConfigCard.sections.plugin") : x(i)("baseConfigCard.sections.policy")), 1)) : P("", !0),
2788
- (g(!0), _(fe, null, de(e.propertyCollections[d], (c) => j(l.$slots, `config-card-item-${c.key}`, { row: c }, () => [
2789
- (g(), O(on, {
2787
+ d !== "basic" ? (g(), S("div", rl, I(d === "advanced" ? C(i)("baseConfigCard.sections.advanced") : d === "plugin" ? C(i)("baseConfigCard.sections.plugin") : C(i)("baseConfigCard.sections.policy")), 1)) : D("", !0),
2788
+ (g(!0), S(fe, null, de(e.propertyCollections[d], (c) => j(l.$slots, `config-card-item-${c.key}`, { row: c }, () => [
2789
+ (g(), B(on, {
2790
2790
  key: c.key,
2791
2791
  item: c
2792
2792
  }, xe({
2793
- label: A(() => [
2793
+ label: x(() => [
2794
2794
  j(l.$slots, `${c.key}-label`, { row: c }, void 0, !0)
2795
2795
  ]),
2796
- [c.key]: A(({ rowValue: u }) => [
2796
+ [c.key]: x(({ rowValue: u }) => [
2797
2797
  j(l.$slots, c.key, {
2798
2798
  row: c,
2799
2799
  rowValue: u
@@ -2803,7 +2803,7 @@ ${l.value}
2803
2803
  }, [
2804
2804
  r(c) ? {
2805
2805
  name: "label-tooltip",
2806
- fn: A(() => [
2806
+ fn: x(() => [
2807
2807
  j(l.$slots, `${c.key}-label-tooltip`, { row: c }, void 0, !0)
2808
2808
  ]),
2809
2809
  key: "0"
@@ -2811,25 +2811,25 @@ ${l.value}
2811
2811
  ]), 1032, ["item"]))
2812
2812
  ], !0)), 256))
2813
2813
  ], 10, il))), 128))
2814
- ])) : P("", !0),
2815
- e.format === "json" && o.value ? (g(), O(ln, {
2814
+ ])) : D("", !0),
2815
+ e.format === "json" && o.value ? (g(), B(ln, {
2816
2816
  key: 1,
2817
2817
  config: t.config,
2818
2818
  "entity-record": o.value,
2819
2819
  "fetcher-url": a.value,
2820
2820
  "request-method": "get"
2821
- }, null, 8, ["config", "entity-record", "fetcher-url"])) : P("", !0),
2822
- e.format === "yaml" && o.value ? (g(), O(Qn, {
2821
+ }, null, 8, ["config", "entity-record", "fetcher-url"])) : D("", !0),
2822
+ e.format === "yaml" && o.value ? (g(), B(Qn, {
2823
2823
  key: 2,
2824
2824
  "entity-record": o.value
2825
- }, null, 8, ["entity-record"])) : P("", !0),
2826
- e.format === "terraform" && o.value ? (g(), O(Zn, {
2825
+ }, null, 8, ["entity-record"])) : D("", !0),
2826
+ e.format === "terraform" && o.value ? (g(), B(Zn, {
2827
2827
  key: 3,
2828
2828
  "entity-record": o.value,
2829
2829
  "entity-type": t.entityType,
2830
2830
  "sub-entity-type": t.subEntityType
2831
- }, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) : P("", !0),
2832
- e.format === "deck" && o.value ? (g(), O(Xn, {
2831
+ }, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) : D("", !0),
2832
+ e.format === "deck" && o.value ? (g(), B(Xn, {
2833
2833
  key: 4,
2834
2834
  app: e.config.app,
2835
2835
  "control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
@@ -2838,7 +2838,7 @@ ${l.value}
2838
2838
  "geo-api-server-url": e.config.app === "konnect" ? e.config.geoApiServerUrl : void 0,
2839
2839
  "kong-admin-api-url": e.config.app === "kongManager" ? e.config.apiBaseUrl : void 0,
2840
2840
  workspace: e.config.app === "kongManager" ? e.config.workspace : void 0
2841
- }, null, 8, ["app", "control-plane-name", "entity-record", "entity-type", "geo-api-server-url", "kong-admin-api-url", "workspace"])) : P("", !0)
2841
+ }, null, 8, ["app", "control-plane-name", "entity-record", "entity-type", "geo-api-server-url", "kong-admin-api-url", "workspace"])) : D("", !0)
2842
2842
  ], 64));
2843
2843
  }
2844
2844
  }), ol = /* @__PURE__ */ ce(al, [["__scopeId", "data-v-50ba1af0"]]), ll = {
@@ -2868,7 +2868,7 @@ ${l.value}
2868
2868
  entityType: {
2869
2869
  type: String,
2870
2870
  required: !0,
2871
- validator: (e) => Ve.includes(e)
2871
+ validator: (e) => Ye.includes(e)
2872
2872
  },
2873
2873
  /**
2874
2874
  * Sub Entity type, required to generate terraform code for event gateway entities
@@ -2969,10 +2969,10 @@ ${l.value}
2969
2969
  },
2970
2970
  emits: ["loading", "fetch:success", "fetch:error", "configFormatChange"],
2971
2971
  setup(e, { emit: t }) {
2972
- var T;
2973
- const n = t, i = e, { i18n: { t: r } } = G.useI18n(), { getMessageFromError: o } = G.useErrors(), { convertKeyToTitle: a } = G.useStringHelpers();
2974
- G.useSubSchema(i.pluginConfigKey);
2975
- const { axiosInstance: l } = G.useAxios((T = i.config) == null ? void 0 : T.axiosRequestConfig), s = [
2972
+ var A;
2973
+ const n = t, i = e, { i18n: { t: r } } = z.useI18n(), { getMessageFromError: o } = z.useErrors(), { convertKeyToTitle: a } = z.useStringHelpers();
2974
+ z.useSubSchema(i.pluginConfigKey);
2975
+ const { axiosInstance: l } = z.useAxios((A = i.config) == null ? void 0 : A.axiosRequestConfig), s = [
2976
2976
  {
2977
2977
  label: r("baseConfigCard.general.structuredFormat"),
2978
2978
  value: "structured",
@@ -2996,22 +2996,22 @@ ${l.value}
2996
2996
  label: r("baseForm.configuration.deck"),
2997
2997
  value: "deck"
2998
2998
  });
2999
- const u = s[0].value, p = M(u), f = (m) => {
3000
- p.value = m == null ? void 0 : m.value, n("configFormatChange", p.value);
3001
- }, h = (m, R) => {
3002
- localStorage.setItem(m, R);
2999
+ const u = s[0].value, m = M(u), f = (p) => {
3000
+ m.value = p == null ? void 0 : p.value, n("configFormatChange", m.value);
3001
+ }, h = (p, K) => {
3002
+ localStorage.setItem(p, K);
3003
3003
  };
3004
- Ce(p, (m) => {
3005
- i.config.formatPreferenceKey && h(i.config.formatPreferenceKey, m);
3006
- }), at(() => {
3004
+ Ce(m, (p) => {
3005
+ i.config.formatPreferenceKey && h(i.config.formatPreferenceKey, p);
3006
+ }), ot(() => {
3007
3007
  if (i.config.formatPreferenceKey) {
3008
- const m = localStorage.getItem(i.config.formatPreferenceKey);
3009
- m && s.some((R) => R.value === m) ? p.value = m : p.value = u, h(i.config.formatPreferenceKey, p.value);
3008
+ const p = localStorage.getItem(i.config.formatPreferenceKey);
3009
+ p && s.some((K) => K.value === p) ? m.value = p : m.value = u, h(i.config.formatPreferenceKey, m.value);
3010
3010
  }
3011
3011
  });
3012
3012
  const b = {
3013
3013
  id: {
3014
- type: J.ID,
3014
+ type: G.ID,
3015
3015
  label: r("baseConfigCard.commonFields.id_label"),
3016
3016
  order: 0,
3017
3017
  section: le.Basic
@@ -3021,223 +3021,223 @@ ${l.value}
3021
3021
  section: le.Basic
3022
3022
  },
3023
3023
  enabled: {
3024
- type: J.BadgeStatus,
3024
+ type: G.BadgeStatus,
3025
3025
  order: 2,
3026
3026
  section: le.Basic
3027
3027
  },
3028
3028
  updated_at: {
3029
- type: J.Date,
3029
+ type: G.Date,
3030
3030
  label: r("baseConfigCard.commonFields.updated_at_label"),
3031
3031
  order: 3,
3032
3032
  section: le.Basic
3033
3033
  },
3034
3034
  created_at: {
3035
- type: J.Date,
3035
+ type: G.Date,
3036
3036
  label: r("baseConfigCard.commonFields.created_at_label"),
3037
3037
  order: 4,
3038
3038
  section: le.Basic
3039
3039
  },
3040
3040
  tags: {
3041
- type: J.BadgeTag,
3041
+ type: G.BadgeTag,
3042
3042
  order: -1,
3043
3043
  // the last property displayed
3044
3044
  section: le.Basic
3045
3045
  },
3046
3046
  partials: {
3047
- type: J.LinkInternal,
3047
+ type: G.LinkInternal,
3048
3048
  label: r("baseConfigCard.commonFields.partial_label"),
3049
3049
  order: -1,
3050
3050
  // the last property displayed
3051
3051
  section: le.Basic
3052
3052
  }
3053
- }, y = M(!1), $ = M(!1), k = M(""), w = M({}), V = S(() => {
3054
- var q, W, ne;
3053
+ }, y = M(!1), $ = M(!1), k = M(""), w = M({}), Y = _(() => {
3054
+ var H, V, ne;
3055
3055
  if (!w.value)
3056
3056
  return [];
3057
- const m = [], R = Object.keys(w.value).length;
3058
- for (const B in w.value) {
3059
- if (B === "__ui_data") continue;
3060
- const K = (W = (q = i.configSchema) == null ? void 0 : q[B]) == null ? void 0 : W.order, Z = (ne = b[B]) == null ? void 0 : ne.order;
3061
- let Y = R;
3062
- (Z || Z === 0) && (Y = Z === -1 ? R + 1 : Z), K && (Y = K === -1 ? R + 1 : K), m.push([B, Y]);
3057
+ const p = [], K = Object.keys(w.value).length;
3058
+ for (const P in w.value) {
3059
+ if (P === "__ui_data") continue;
3060
+ const O = (V = (H = i.configSchema) == null ? void 0 : H[P]) == null ? void 0 : V.order, Z = (ne = b[P]) == null ? void 0 : ne.order;
3061
+ let W = K;
3062
+ (Z || Z === 0) && (W = Z === -1 ? K + 1 : Z), O && (W = O === -1 ? K + 1 : O), p.push([P, W]);
3063
3063
  }
3064
- return m.sort(function(B, K) {
3065
- return B[1] - K[1];
3066
- }), m.map((B) => {
3067
- var mt, gt;
3068
- const K = B[0], Z = (mt = w.value) == null ? void 0 : mt[K], Y = ((gt = i.configSchema) == null ? void 0 : gt[K]) || {}, X = b[K];
3064
+ return p.sort(function(P, O) {
3065
+ return P[1] - O[1];
3066
+ }), p.map((P) => {
3067
+ var gt, ht;
3068
+ const O = P[0], Z = (gt = w.value) == null ? void 0 : gt[O], W = ((ht = i.configSchema) == null ? void 0 : ht[O]) || {}, X = b[O];
3069
3069
  return {
3070
- key: K,
3070
+ key: O,
3071
3071
  value: Z,
3072
- hidden: Y.hidden || !1,
3073
- type: Y.type ?? ((X == null ? void 0 : X.type) || J.Text),
3074
- label: Y.label ?? ((X == null ? void 0 : X.label) || a(K)),
3075
- tooltip: Y.tooltip ?? ((X == null ? void 0 : X.tooltip) || void 0),
3076
- section: Y.section ?? ((X == null ? void 0 : X.section) || le.Advanced)
3072
+ hidden: W.hidden || !1,
3073
+ type: W.type ?? ((X == null ? void 0 : X.type) || G.Text),
3074
+ label: W.label ?? ((X == null ? void 0 : X.label) || a(O)),
3075
+ tooltip: W.tooltip ?? ((X == null ? void 0 : X.tooltip) || void 0),
3076
+ section: W.section ?? ((X == null ? void 0 : X.section) || le.Advanced)
3077
3077
  };
3078
- }).filter((B) => !B.hidden && B.key !== i.pluginConfigKey);
3079
- }), z = S(() => {
3080
- var W, ne;
3078
+ }).filter((P) => !P.hidden && P.key !== i.pluginConfigKey);
3079
+ }), J = _(() => {
3080
+ var V, ne;
3081
3081
  if (!w.value || !i.pluginConfigKey)
3082
3082
  return [];
3083
- const m = w.value[i.pluginConfigKey] || {}, R = Object.keys(m).length, q = [];
3084
- for (const B in m) {
3085
- const K = (ne = (W = i.pluginConfigSchema) == null ? void 0 : W[B]) == null ? void 0 : ne.order, Z = m[B];
3086
- let Y = Z != null && Z !== "" ? R - 1 : R;
3087
- K && (Y = K === -1 ? R + 1 : K), q.push([B, Y]);
3083
+ const p = w.value[i.pluginConfigKey] || {}, K = Object.keys(p).length, H = [];
3084
+ for (const P in p) {
3085
+ const O = (ne = (V = i.pluginConfigSchema) == null ? void 0 : V[P]) == null ? void 0 : ne.order, Z = p[P];
3086
+ let W = Z != null && Z !== "" ? K - 1 : K;
3087
+ O && (W = O === -1 ? K + 1 : O), H.push([P, W]);
3088
3088
  }
3089
- return q.sort(function(B, K) {
3090
- return B[1] - K[1];
3091
- }), q.map((B) => {
3089
+ return H.sort(function(P, O) {
3090
+ return P[1] - O[1];
3091
+ }), H.map((P) => {
3092
3092
  var X;
3093
- const K = B[0], Z = m[K], Y = ((X = i.pluginConfigSchema) == null ? void 0 : X[K]) || {};
3093
+ const O = P[0], Z = p[O], W = ((X = i.pluginConfigSchema) == null ? void 0 : X[O]) || {};
3094
3094
  return {
3095
- key: K,
3095
+ key: O,
3096
3096
  value: Z,
3097
- hidden: Y.hidden || !1,
3098
- type: Y.type ?? J.Text,
3099
- label: Y.label ?? a(K),
3100
- tooltip: Y.tooltip ?? void 0,
3097
+ hidden: W.hidden || !1,
3098
+ type: W.type ?? G.Text,
3099
+ label: W.label ?? a(O),
3100
+ tooltip: W.tooltip ?? void 0,
3101
3101
  section: le.Plugin
3102
3102
  };
3103
- }).filter((B) => !B.hidden);
3104
- }), D = S(() => {
3105
- var W, ne;
3103
+ }).filter((P) => !P.hidden);
3104
+ }), R = _(() => {
3105
+ var V, ne;
3106
3106
  if (!w.value || !i.policyConfigKey)
3107
3107
  return [];
3108
- const m = w.value[i.policyConfigKey] || {}, R = Object.keys(m).length, q = [];
3109
- for (const B in m) {
3110
- const K = (ne = (W = i.policyConfigSchema) == null ? void 0 : W[B]) == null ? void 0 : ne.order, Z = m[B];
3111
- let Y = Z != null && Z !== "" ? R - 1 : R;
3112
- K && (Y = K === -1 ? R + 1 : K), q.push([B, Y]);
3108
+ const p = w.value[i.policyConfigKey] || {}, K = Object.keys(p).length, H = [];
3109
+ for (const P in p) {
3110
+ const O = (ne = (V = i.policyConfigSchema) == null ? void 0 : V[P]) == null ? void 0 : ne.order, Z = p[P];
3111
+ let W = Z != null && Z !== "" ? K - 1 : K;
3112
+ O && (W = O === -1 ? K + 1 : O), H.push([P, W]);
3113
3113
  }
3114
- return q.sort(function(B, K) {
3115
- return B[1] - K[1];
3116
- }), q.map((B) => {
3114
+ return H.sort(function(P, O) {
3115
+ return P[1] - O[1];
3116
+ }), H.map((P) => {
3117
3117
  var X;
3118
- const K = B[0], Z = m[K], Y = ((X = i.policyConfigSchema) == null ? void 0 : X[K]) || {};
3118
+ const O = P[0], Z = p[O], W = ((X = i.policyConfigSchema) == null ? void 0 : X[O]) || {};
3119
3119
  return {
3120
- key: K,
3120
+ key: O,
3121
3121
  value: Z,
3122
- hidden: Y.hidden || !1,
3123
- type: Y.type ?? J.Text,
3124
- label: Y.label ?? a(K),
3125
- tooltip: Y.tooltip ?? void 0,
3122
+ hidden: W.hidden || !1,
3123
+ type: W.type ?? G.Text,
3124
+ label: W.label ?? a(O),
3125
+ tooltip: W.tooltip ?? void 0,
3126
3126
  section: le.Policy
3127
3127
  };
3128
- }).filter((B) => !B.hidden);
3129
- }), I = S(() => {
3130
- var m, R, q, W, ne, B;
3128
+ }).filter((P) => !P.hidden);
3129
+ }), F = _(() => {
3130
+ var p, K, H, V, ne, P;
3131
3131
  return {
3132
- basic: (m = V.value) == null ? void 0 : m.filter((K) => K.section === le.Basic),
3133
- advanced: (R = V.value) == null ? void 0 : R.filter((K) => K.section === le.Advanced),
3134
- plugin: (W = z.value) == null ? void 0 : W.concat((q = V.value) == null ? void 0 : q.filter((K) => K.section === le.Plugin)),
3135
- policy: (B = D.value) == null ? void 0 : B.concat((ne = V.value) == null ? void 0 : ne.filter((K) => K.section === le.Policy))
3132
+ basic: (p = Y.value) == null ? void 0 : p.filter((O) => O.section === le.Basic),
3133
+ advanced: (K = Y.value) == null ? void 0 : K.filter((O) => O.section === le.Advanced),
3134
+ plugin: (V = J.value) == null ? void 0 : V.concat((H = Y.value) == null ? void 0 : H.filter((O) => O.section === le.Plugin)),
3135
+ policy: (P = R.value) == null ? void 0 : P.concat((ne = Y.value) == null ? void 0 : ne.filter((O) => O.section === le.Policy))
3136
3136
  };
3137
- }), C = S(() => {
3138
- const m = [];
3139
- return I.value.basic.length && m.push("basic"), I.value.advanced.length && m.push("advanced"), I.value.plugin.length && m.push("plugin"), I.value.policy.length && m.push("policy"), m;
3140
- }), v = S(() => {
3141
- var R, q;
3142
- let m = `${i.config.apiBaseUrl}${i.fetchUrl}`;
3143
- return i.config.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, ((R = i.config) == null ? void 0 : R.controlPlaneId) || "") : i.config.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, (q = i.config) != null && q.workspace ? `/${i.config.workspace}` : "")), m = m.replace(/{id}/gi, i.config.entityId), m;
3137
+ }), E = _(() => {
3138
+ const p = [];
3139
+ return F.value.basic.length && p.push("basic"), F.value.advanced.length && p.push("advanced"), F.value.plugin.length && p.push("plugin"), F.value.policy.length && p.push("policy"), p;
3140
+ }), v = _(() => {
3141
+ var K, H;
3142
+ let p = `${i.config.apiBaseUrl}${i.fetchUrl}`;
3143
+ return i.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((K = i.config) == null ? void 0 : K.controlPlaneId) || "") : i.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (H = i.config) != null && H.workspace ? `/${i.config.workspace}` : "")), p = p.replace(/{id}/gi, i.config.entityId), p;
3144
3144
  });
3145
- return Ce(y, (m) => {
3146
- n("loading", m);
3147
- }, { immediate: !0 }), ot(async () => {
3145
+ return Ce(y, (p) => {
3146
+ n("loading", p);
3147
+ }, { immediate: !0 }), lt(async () => {
3148
3148
  $.value = !1, y.value = !0;
3149
3149
  try {
3150
- const { data: m } = await l.get(v.value);
3150
+ const { data: p } = await l.get(v.value);
3151
3151
  if (i.dataKey)
3152
- if (typeof m[i.dataKey] < "u")
3153
- w.value = { ...m[i.dataKey] };
3152
+ if (typeof p[i.dataKey] < "u")
3153
+ w.value = { ...p[i.dataKey] };
3154
3154
  else
3155
3155
  throw new Error(r("errors.dataKeyUndefined", { dataKey: i.dataKey }));
3156
- else i.recordResolver ? w.value = { ...i.recordResolver(m) } : w.value = { ...m };
3157
- Object.keys(i.configSchema).filter((q) => i.configSchema[q].forceShow).forEach((q) => {
3158
- w.value && typeof w.value[q] > "u" && (w.value[q] = null);
3159
- }), n("fetch:success", m);
3160
- } catch (m) {
3161
- const R = o(m);
3162
- k.value = R.startsWith("code") ? r("baseConfigCard.errors.load") : R, $.value = !0, n("fetch:error", m);
3156
+ else i.recordResolver ? w.value = { ...i.recordResolver(p) } : w.value = { ...p };
3157
+ Object.keys(i.configSchema).filter((H) => i.configSchema[H].forceShow).forEach((H) => {
3158
+ w.value && typeof w.value[H] > "u" && (w.value[H] = null);
3159
+ }), n("fetch:success", p);
3160
+ } catch (p) {
3161
+ const K = o(p);
3162
+ k.value = K.startsWith("code") ? r("baseConfigCard.errors.load") : K, $.value = !0, n("fetch:error", p);
3163
3163
  } finally {
3164
3164
  y.value = !1;
3165
3165
  }
3166
- }), (m, R) => {
3167
- const q = U("KLabel"), W = U("KSelect"), ne = U("KButton"), B = U("KSkeleton"), K = U("KEmptyState"), Z = U("KCard");
3168
- return g(), O(Z, {
3166
+ }), (p, K) => {
3167
+ const H = U("KLabel"), V = U("KSelect"), ne = U("KButton"), P = U("KSkeleton"), O = U("KEmptyState"), Z = U("KCard");
3168
+ return g(), B(Z, {
3169
3169
  class: "kong-ui-entity-base-config-card",
3170
3170
  "title-tag": e.titleTag
3171
3171
  }, xe({
3172
- actions: A(() => [
3172
+ actions: x(() => [
3173
3173
  L("div", sl, [
3174
- j(m.$slots, "actions", {}, void 0, !0),
3175
- N(q, {
3174
+ j(p.$slots, "actions", {}, void 0, !0),
3175
+ N(H, {
3176
3176
  class: "config-format-select-label",
3177
3177
  "data-testid": "config-format-select-label"
3178
3178
  }, {
3179
- default: A(() => [
3180
- H(F(e.label), 1)
3179
+ default: x(() => [
3180
+ q(I(e.label), 1)
3181
3181
  ]),
3182
3182
  _: 1
3183
3183
  }),
3184
- N(W, {
3185
- modelValue: p.value,
3186
- "onUpdate:modelValue": R[0] || (R[0] = (Y) => p.value = Y),
3184
+ N(V, {
3185
+ modelValue: m.value,
3186
+ "onUpdate:modelValue": K[0] || (K[0] = (W) => m.value = W),
3187
3187
  "data-testid": "select-config-format",
3188
3188
  items: s,
3189
3189
  onChange: f
3190
3190
  }, null, 8, ["modelValue"]),
3191
- e.configCardDoc ? (g(), O(ne, {
3191
+ e.configCardDoc ? (g(), B(ne, {
3192
3192
  key: 0,
3193
3193
  appearance: "tertiary",
3194
3194
  class: "book-icon",
3195
3195
  "data-testid": "book-icon"
3196
3196
  }, {
3197
- default: A(() => [
3197
+ default: x(() => [
3198
3198
  L("a", {
3199
3199
  href: e.configCardDoc,
3200
3200
  rel: "noopener",
3201
3201
  target: "_blank"
3202
3202
  }, [
3203
- N(x(zt), { size: x(gr) }, null, 8, ["size"])
3203
+ N(C(zt), { size: C(gr) }, null, 8, ["size"])
3204
3204
  ], 8, cl)
3205
3205
  ]),
3206
3206
  _: 1
3207
- })) : P("", !0)
3207
+ })) : D("", !0)
3208
3208
  ])
3209
3209
  ]),
3210
- default: A(() => [
3211
- y.value ? (g(), O(B, {
3210
+ default: x(() => [
3211
+ y.value ? (g(), B(P, {
3212
3212
  key: 0,
3213
3213
  "data-testid": "config-card-loader",
3214
3214
  "table-columns": 2,
3215
3215
  type: "table"
3216
- })) : $.value ? (g(), O(K, {
3216
+ })) : $.value ? (g(), B(O, {
3217
3217
  key: 1,
3218
3218
  "data-testid": "config-card-fetch-error",
3219
3219
  "icon-variant": "error"
3220
3220
  }, {
3221
- default: A(() => [
3222
- L("h3", null, F(k.value), 1)
3221
+ default: x(() => [
3222
+ L("h3", null, I(k.value), 1)
3223
3223
  ]),
3224
3224
  _: 1
3225
- })) : (g(), _("div", ul, [
3225
+ })) : (g(), S("div", ul, [
3226
3226
  N(ol, {
3227
3227
  "code-block-record-formatter": e.codeBlockRecordFormatter,
3228
3228
  config: e.config,
3229
3229
  "entity-type": e.entityType,
3230
3230
  "fetcher-url": v.value,
3231
- format: p.value,
3232
- "prop-list-types": C.value,
3233
- "property-collections": I.value,
3231
+ format: m.value,
3232
+ "prop-list-types": E.value,
3233
+ "property-collections": F.value,
3234
3234
  record: w.value,
3235
3235
  "sub-entity-type": e.subEntityType
3236
3236
  }, xe({ _: 2 }, [
3237
- de(Object.keys(m.$slots), (Y) => ({
3238
- name: Y,
3239
- fn: A((X) => [
3240
- j(m.$slots, Y, Jt({ record: w.value }, X), void 0, !0)
3237
+ de(Object.keys(p.$slots), (W) => ({
3238
+ name: W,
3239
+ fn: x((X) => [
3240
+ j(p.$slots, W, Jt({ record: w.value }, X), void 0, !0)
3241
3241
  ])
3242
3242
  }))
3243
3243
  ]), 1032, ["code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "prop-list-types", "property-collections", "record", "sub-entity-type"])
@@ -3247,10 +3247,10 @@ ${l.value}
3247
3247
  }, [
3248
3248
  e.hideTitle ? void 0 : {
3249
3249
  name: "title",
3250
- fn: A(() => [
3250
+ fn: x(() => [
3251
3251
  L("span", ll, [
3252
- j(m.$slots, "title", {}, () => [
3253
- H(F(x(r)("baseConfigCard.title")), 1)
3252
+ j(p.$slots, "title", {}, () => [
3253
+ q(I(C(r)("baseConfigCard.title")), 1)
3254
3254
  ], !0)
3255
3255
  ])
3256
3256
  ]),
@@ -3259,7 +3259,10 @@ ${l.value}
3259
3259
  ]), 1032, ["title-tag"]);
3260
3260
  };
3261
3261
  }
3262
- }), Bs = /* @__PURE__ */ ce(dl, [["__scopeId", "data-v-77c89593"]]), fl = ["novalidate"], pl = /* @__PURE__ */ Q({
3262
+ }), Ls = /* @__PURE__ */ ce(dl, [["__scopeId", "data-v-77c89593"]]), fl = {
3263
+ /** Enable the new plugin form layout */
3264
+ KM_1948_PLUGIN_FORM_LAYOUT: "KM_1948_PLUGIN_FORM_LAYOUT"
3265
+ }, pl = ["novalidate"], ml = /* @__PURE__ */ Q({
3263
3266
  __name: "EntityBaseForm",
3264
3267
  props: {
3265
3268
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3280,7 +3283,7 @@ ${l.value}
3280
3283
  entityType: {
3281
3284
  type: String,
3282
3285
  required: !0,
3283
- validator: (e) => Ve.includes(e)
3286
+ validator: (e) => Ye.includes(e)
3284
3287
  },
3285
3288
  /**
3286
3289
  * Sub entity type, required for event gateway entities to generate terraform code
@@ -3382,180 +3385,184 @@ ${l.value}
3382
3385
  },
3383
3386
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
3384
3387
  setup(e, { expose: t, emit: n }) {
3385
- var I;
3386
- const i = n, r = e, o = bi(), { i18n: { t: a } } = G.useI18n(), { getMessageFromError: l } = G.useErrors(), { axiosInstance: s } = G.useAxios((I = r.config) == null ? void 0 : I.axiosRequestConfig), d = M(!1), c = S(() => !!r.editId), u = M(!1), p = M(""), f = S(() => r.canSubmit === !1 || r.isReadonly), h = M(!1), b = S(() => {
3387
- var v, T;
3388
- let C = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3389
- return r.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((v = r.config) == null ? void 0 : v.controlPlaneId) || "") : r.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (T = r.config) != null && T.workspace ? `/${r.config.workspace}` : "")), r.editId ? (C = C.replace(/{id}/gi, r.editId), C) : (C = C.replace(/\/{id}/gi, ""), C);
3390
- }), y = () => {
3391
- h.value = !h.value;
3392
- }, $ = () => {
3393
- r.config.cancelRoute ? o.push(r.config.cancelRoute) : k();
3388
+ var E;
3389
+ const i = at(fl.KM_1948_PLUGIN_FORM_LAYOUT, _(() => !1)), r = n, o = e, a = bi(), { i18n: { t: l } } = z.useI18n(), { getMessageFromError: s } = z.useErrors(), { axiosInstance: d } = z.useAxios((E = o.config) == null ? void 0 : E.axiosRequestConfig), c = M(!1), u = _(() => !!o.editId), m = M(!1), f = M(""), h = _(() => o.canSubmit === !1 || o.isReadonly), b = M(!1), y = _(() => {
3390
+ var A, p;
3391
+ let v = `${o.config.apiBaseUrl}${o.fetchUrl}`;
3392
+ return o.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((A = o.config) == null ? void 0 : A.controlPlaneId) || "") : o.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (p = o.config) != null && p.workspace ? `/${o.config.workspace}` : "")), o.editId ? (v = v.replace(/{id}/gi, o.editId), v) : (v = v.replace(/\/{id}/gi, ""), v);
3393
+ }), $ = () => {
3394
+ b.value = !b.value;
3394
3395
  }, k = () => {
3395
- i("cancel");
3396
+ o.config.cancelRoute ? a.push(o.config.cancelRoute) : w();
3396
3397
  }, w = () => {
3397
- f.value || i("submit");
3398
- }, V = M([
3398
+ r("cancel");
3399
+ }, Y = () => {
3400
+ h.value || r("submit");
3401
+ }, J = M([
3399
3402
  {
3400
- title: a("baseForm.configuration.json"),
3403
+ title: l("baseForm.configuration.json"),
3401
3404
  hash: "#json"
3402
3405
  },
3403
3406
  {
3404
- title: a("baseForm.configuration.yaml"),
3407
+ title: l("baseForm.configuration.yaml"),
3405
3408
  hash: "#yaml"
3406
3409
  }
3407
3410
  ]);
3408
- r.config.app === "konnect" && r.entityType !== Ee.Other && V.value.splice(1, 0, {
3409
- title: a("baseForm.configuration.terraform"),
3411
+ o.config.app === "konnect" && o.entityType !== Ee.Other && J.value.splice(1, 0, {
3412
+ title: l("baseForm.configuration.terraform"),
3410
3413
  hash: "#terraform"
3411
3414
  });
3412
- const z = Zt.includes(r.entityType);
3413
- return (r.config.app === "kongManager" || r.config.enableDeckTab) && z && V.value.push({
3414
- title: a("baseForm.configuration.deck"),
3415
+ const R = Zt.includes(o.entityType);
3416
+ return (o.config.app === "kongManager" || o.config.enableDeckTab) && R && J.value.push({
3417
+ title: l("baseForm.configuration.deck"),
3415
3418
  hash: "#deck"
3416
- }), Ce(() => d.value, (C) => {
3417
- i("loading", C);
3418
- }, { immediate: !0 }), ot(async () => {
3419
- if (r.editId)
3419
+ }), Ce(() => c.value, (v) => {
3420
+ r("loading", v);
3421
+ }, { immediate: !0 }), lt(async () => {
3422
+ if (o.editId)
3420
3423
  try {
3421
- u.value = !1, d.value = !0;
3422
- const { data: C } = await s.get(b.value);
3423
- i("fetch:success", C);
3424
- } catch (C) {
3425
- const v = l(C);
3426
- p.value = v.startsWith("code") ? a("baseForm.errors.edit") : v, u.value = !0, i("fetch:error", C);
3424
+ m.value = !1, c.value = !0;
3425
+ const { data: v } = await d.get(y.value);
3426
+ r("fetch:success", v);
3427
+ } catch (v) {
3428
+ const A = s(v);
3429
+ f.value = A.startsWith("code") ? l("baseForm.errors.edit") : A, m.value = !0, r("fetch:error", v);
3427
3430
  } finally {
3428
- d.value = !1;
3431
+ c.value = !1;
3429
3432
  }
3430
3433
  }), t({
3431
- viewConfig: y,
3432
- formCancel: k,
3433
- formSubmit: w
3434
- }), (C, v) => {
3435
- const T = U("KSkeleton"), m = U("KEmptyState"), R = U("KAlert"), q = U("KButton"), W = U("KTabs"), ne = U("KSlideout");
3436
- return g(), O(qe(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3437
- default: A(() => [
3438
- d.value ? (g(), O(T, {
3434
+ viewConfig: $,
3435
+ formCancel: w,
3436
+ formSubmit: Y
3437
+ }), (v, A) => {
3438
+ const p = U("KSkeleton"), K = U("KEmptyState"), H = U("KAlert"), V = U("KButton"), ne = U("KTabs"), P = U("KSlideout");
3439
+ return g(), B(qe(e.wrapperComponent), {
3440
+ class: pe(["kong-ui-entity-base-form", {
3441
+ "new-form-layout": C(i)
3442
+ }])
3443
+ }, {
3444
+ default: x(() => [
3445
+ c.value ? (g(), B(p, {
3439
3446
  key: 0,
3440
3447
  type: "form"
3441
- })) : u.value ? (g(), O(m, {
3448
+ })) : m.value ? (g(), B(K, {
3442
3449
  key: 1,
3443
- "action-button-text": x(a)("baseForm.actions.back"),
3450
+ "action-button-text": C(l)("baseForm.actions.back"),
3444
3451
  "data-testid": "form-fetch-error",
3445
3452
  "icon-variant": "error",
3446
- onClickAction: $
3453
+ onClickAction: k
3447
3454
  }, {
3448
- default: A(() => [
3449
- L("h3", null, F(p.value), 1)
3455
+ default: x(() => [
3456
+ L("h3", null, I(f.value), 1)
3450
3457
  ]),
3451
3458
  _: 1
3452
- }, 8, ["action-button-text"])) : (g(), _("form", {
3459
+ }, 8, ["action-button-text"])) : (g(), S("form", {
3453
3460
  key: 2,
3454
3461
  "data-testid": "form-content",
3455
- novalidate: r.noValidate,
3456
- onReset: Ne(k, ["prevent"]),
3457
- onSubmit: Ne(w, ["prevent"])
3462
+ novalidate: o.noValidate,
3463
+ onReset: Ne(w, ["prevent"]),
3464
+ onSubmit: Ne(Y, ["prevent"])
3458
3465
  }, [
3459
- j(C.$slots, "default", {}, void 0, !0),
3460
- e.errorMessage ? (g(), O(R, {
3466
+ j(v.$slots, "default", {}, void 0, !0),
3467
+ e.errorMessage ? (g(), B(H, {
3461
3468
  key: 0,
3462
3469
  appearance: "danger",
3463
3470
  "data-testid": "form-error",
3464
3471
  message: e.errorMessage
3465
- }, null, 8, ["message"])) : P("", !0),
3466
- e.hideActions ? P("", !0) : (g(), O(Gt, {
3472
+ }, null, 8, ["message"])) : D("", !0),
3473
+ e.hideActions ? D("", !0) : (g(), B(Gt, {
3467
3474
  key: 1,
3468
3475
  disabled: !e.actionTeleportTarget,
3469
3476
  to: e.actionTeleportTarget
3470
3477
  }, [
3471
3478
  L("div", {
3472
- class: me(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
3479
+ class: pe(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
3473
3480
  "data-testid": "form-actions"
3474
3481
  }, [
3475
- j(C.$slots, "form-actions", {}, () => [
3476
- N(q, {
3482
+ j(v.$slots, "form-actions", {}, () => [
3483
+ N(V, {
3477
3484
  appearance: "tertiary",
3478
- "data-testid": `${e.entityType}-${c.value ? "edit" : "create"}-form-view-configuration`,
3479
- onClick: v[0] || (v[0] = (B) => y())
3485
+ "data-testid": `${e.entityType}-${u.value ? "edit" : "create"}-form-view-configuration`,
3486
+ onClick: A[0] || (A[0] = (O) => $())
3480
3487
  }, {
3481
- default: A(() => [
3482
- H(F(h.value ? x(a)("baseForm.actions.hideConfiguration") : x(a)("baseForm.actions.viewConfiguration")), 1)
3488
+ default: x(() => [
3489
+ q(I(b.value ? C(l)("baseForm.actions.hideConfiguration") : C(l)("baseForm.actions.viewConfiguration")), 1)
3483
3490
  ]),
3484
3491
  _: 1
3485
3492
  }, 8, ["data-testid"]),
3486
- N(q, {
3493
+ N(V, {
3487
3494
  appearance: "secondary",
3488
- "data-testid": `${e.entityType}-${c.value ? "edit" : "create"}-form-cancel`,
3495
+ "data-testid": `${e.entityType}-${u.value ? "edit" : "create"}-form-cancel`,
3489
3496
  disabled: e.isReadonly,
3490
3497
  type: "reset",
3491
- onClick: v[1] || (v[1] = (B) => !!e.actionTeleportTarget && k())
3498
+ onClick: A[1] || (A[1] = (O) => !!e.actionTeleportTarget && w())
3492
3499
  }, {
3493
- default: A(() => [
3494
- H(F(e.cancelButtonText ?? x(a)("baseForm.actions.cancel")), 1)
3500
+ default: x(() => [
3501
+ q(I(e.cancelButtonText ?? C(l)("baseForm.actions.cancel")), 1)
3495
3502
  ]),
3496
3503
  _: 1
3497
3504
  }, 8, ["data-testid", "disabled"]),
3498
- N(q, {
3505
+ N(V, {
3499
3506
  appearance: "primary",
3500
- "data-testid": `${e.entityType}-${c.value ? "edit" : "create"}-form-submit`,
3501
- disabled: f.value,
3507
+ "data-testid": `${e.entityType}-${u.value ? "edit" : "create"}-form-submit`,
3508
+ disabled: h.value,
3502
3509
  type: "submit",
3503
- onClick: v[2] || (v[2] = (B) => !!e.actionTeleportTarget && w())
3510
+ onClick: A[2] || (A[2] = (O) => !!e.actionTeleportTarget && Y())
3504
3511
  }, {
3505
- default: A(() => [
3506
- H(F(e.saveButtonText ?? x(a)("baseForm.actions.save")), 1)
3512
+ default: x(() => [
3513
+ q(I(e.saveButtonText ?? C(l)("baseForm.actions.save")), 1)
3507
3514
  ]),
3508
3515
  _: 1
3509
3516
  }, 8, ["data-testid", "disabled"])
3510
3517
  ], !0)
3511
3518
  ], 2)
3512
3519
  ], 8, ["disabled", "to"]))
3513
- ], 40, fl)),
3514
- N(ne, {
3520
+ ], 40, pl)),
3521
+ N(P, {
3515
3522
  "close-on-blur": !1,
3516
3523
  "data-testid": "form-view-configuration-slideout",
3517
3524
  "has-overlay": !1,
3518
3525
  "offset-top": e.slidoutTopOffset,
3519
- title: x(a)("baseForm.configuration.title"),
3520
- visible: h.value,
3521
- onClose: v[4] || (v[4] = (B) => y())
3526
+ title: C(l)("baseForm.configuration.title"),
3527
+ visible: b.value,
3528
+ onClose: A[4] || (A[4] = (O) => $())
3522
3529
  }, {
3523
- default: A(() => [
3530
+ default: x(() => [
3524
3531
  L("div", null, [
3525
- j(C.$slots, "configuration-slideout-message", {}, () => [
3526
- H(F(x(a)("baseForm.configuration.message")), 1)
3532
+ j(v.$slots, "configuration-slideout-message", {}, () => [
3533
+ q(I(C(l)("baseForm.configuration.message")), 1)
3527
3534
  ], !0)
3528
3535
  ]),
3529
- N(W, {
3536
+ N(ne, {
3530
3537
  "data-testid": "form-view-configuration-slideout-tabs",
3531
- tabs: V.value,
3532
- onChange: v[3] || (v[3] = (B) => i("codeBlockTabChange", B.replace("#", "")))
3538
+ tabs: J.value,
3539
+ onChange: A[3] || (A[3] = (O) => r("codeBlockTabChange", O.replace("#", "")))
3533
3540
  }, {
3534
- json: A(() => [
3541
+ json: x(() => [
3535
3542
  N(ln, {
3536
3543
  config: e.config,
3537
- "entity-record": r.formFields,
3538
- "fetcher-url": b.value,
3539
- "request-method": r.editId ? "put" : "post"
3544
+ "entity-record": o.formFields,
3545
+ "fetcher-url": y.value,
3546
+ "request-method": o.editId ? "put" : "post"
3540
3547
  }, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
3541
3548
  ]),
3542
- yaml: A(() => [
3549
+ yaml: x(() => [
3543
3550
  N(Qn, {
3544
- "entity-record": r.formFields
3551
+ "entity-record": o.formFields
3545
3552
  }, null, 8, ["entity-record"])
3546
3553
  ]),
3547
- terraform: A(() => [
3554
+ terraform: x(() => [
3548
3555
  N(Zn, {
3549
- "entity-record": r.formFields,
3556
+ "entity-record": o.formFields,
3550
3557
  "entity-type": e.entityType,
3551
3558
  "sub-entity-type": e.subEntityType
3552
3559
  }, null, 8, ["entity-record", "entity-type", "sub-entity-type"])
3553
3560
  ]),
3554
- deck: A(() => [
3561
+ deck: x(() => [
3555
3562
  N(Xn, {
3556
3563
  app: e.config.app,
3557
3564
  "control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
3558
- "entity-record": r.formFields,
3565
+ "entity-record": o.formFields,
3559
3566
  "entity-type": e.entityType,
3560
3567
  "geo-api-server-url": e.config.app === "konnect" ? e.config.geoApiServerUrl : void 0,
3561
3568
  "kong-admin-api-url": e.config.app === "kongManager" ? e.config.apiBaseUrl : void 0,
@@ -3569,10 +3576,10 @@ ${l.value}
3569
3576
  }, 8, ["offset-top", "title", "visible"])
3570
3577
  ]),
3571
3578
  _: 3
3572
- });
3579
+ }, 8, ["class"]);
3573
3580
  };
3574
3581
  }
3575
- }), Ls = /* @__PURE__ */ ce(pl, [["__scopeId", "data-v-7cbcaad8"]]), ml = ["data-truncate"], gl = /* @__PURE__ */ Q({
3582
+ }), Rs = /* @__PURE__ */ ce(ml, [["__scopeId", "data-v-463136e3"]]), gl = ["data-truncate"], hl = /* @__PURE__ */ Q({
3576
3583
  __name: "EntityBaseTableCell",
3577
3584
  props: {
3578
3585
  keyName: {
@@ -3589,17 +3596,17 @@ ${l.value}
3589
3596
  }
3590
3597
  },
3591
3598
  setup(e) {
3592
- const t = e, n = S(() => {
3599
+ const t = e, n = _(() => {
3593
3600
  var y;
3594
3601
  return ((y = t.rowEl) == null ? void 0 : y.querySelector(`[data-testid="${t.keyName}"]`)) || null;
3595
- }), i = S(() => {
3602
+ }), i = _(() => {
3596
3603
  var y;
3597
3604
  return ((y = n.value) == null ? void 0 : y.querySelector('[data-truncate="true"]')) || null;
3598
- }), r = S(() => {
3605
+ }), r = _(() => {
3599
3606
  var $, k;
3600
3607
  const y = ($ = t.rowEl) == null ? void 0 : $.querySelectorAll("td");
3601
3608
  return y ? ((k = y[0]) == null ? void 0 : k.getAttribute("data-testid")) === t.keyName : !0;
3602
- }), o = S(() => r.value || t.tooltip);
3609
+ }), o = _(() => r.value || t.tooltip);
3603
3610
  let a;
3604
3611
  const l = () => {
3605
3612
  a && (a.disconnect(), a = void 0);
@@ -3607,11 +3614,11 @@ ${l.value}
3607
3614
  var $, k, w;
3608
3615
  let y = (($ = n.value) == null ? void 0 : $.clientWidth) || 0;
3609
3616
  if (n.value && "getComputedStyle" in window) {
3610
- const V = window.getComputedStyle(n.value);
3611
- y -= (parseFloat(V.paddingLeft) || 0) + (parseFloat(V.paddingRight) || 0);
3617
+ const Y = window.getComputedStyle(n.value);
3618
+ y -= (parseFloat(Y.paddingLeft) || 0) + (parseFloat(Y.paddingRight) || 0);
3612
3619
  }
3613
- c.value = ((k = i.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, u.value = y, p.value = ((w = d.value) == null ? void 0 : w.innerText) || "";
3614
- }, d = M({}), c = M(0), u = M(0), p = M(""), f = S(() => [i.value, n.value]), h = Ce(
3620
+ c.value = ((k = i.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, u.value = y, m.value = ((w = d.value) == null ? void 0 : w.innerText) || "";
3621
+ }, d = M({}), c = M(0), u = M(0), m = M(""), f = _(() => [i.value, n.value]), h = Ce(
3615
3622
  f,
3616
3623
  (y) => {
3617
3624
  if (o.value && (l(), "ResizeObserver" in window && window)) {
@@ -3625,43 +3632,43 @@ ${l.value}
3625
3632
  }
3626
3633
  },
3627
3634
  { immediate: !0, flush: "post", deep: !0 }
3628
- ), b = S(() => o.value ? c.value > u.value : !1);
3629
- return at(() => {
3635
+ ), b = _(() => o.value ? c.value > u.value : !1);
3636
+ return ot(() => {
3630
3637
  s();
3631
3638
  }), ri(() => {
3632
3639
  h();
3633
3640
  }), (y, $) => {
3634
3641
  const k = U("KTooltip");
3635
- return g(), _("span", {
3642
+ return g(), S("span", {
3636
3643
  ref_key: "contentRef",
3637
3644
  ref: d,
3638
3645
  class: "content-wrapper"
3639
3646
  }, [
3640
- o.value ? (g(), _("span", {
3647
+ o.value ? (g(), S("span", {
3641
3648
  key: 0,
3642
3649
  "data-truncate": o.value || void 0
3643
3650
  }, [
3644
3651
  N(k, {
3645
3652
  "max-width": "300",
3646
3653
  placement: "bottom-start",
3647
- text: b.value ? p.value : ""
3654
+ text: b.value ? m.value : ""
3648
3655
  }, {
3649
- default: A(() => [
3656
+ default: x(() => [
3650
3657
  j(y.$slots, "default", {}, void 0, !0)
3651
3658
  ]),
3652
3659
  _: 3
3653
3660
  }, 8, ["text"])
3654
- ], 8, ml)) : j(y.$slots, "default", { key: 1 }, void 0, !0)
3661
+ ], 8, gl)) : j(y.$slots, "default", { key: 1 }, void 0, !0)
3655
3662
  ], 512);
3656
3663
  };
3657
3664
  }
3658
- }), hl = /* @__PURE__ */ ce(gl, [["__scopeId", "data-v-a3a65cac"]]), yl = { class: "toolbar-container" }, vl = {
3665
+ }), yl = /* @__PURE__ */ ce(hl, [["__scopeId", "data-v-a3a65cac"]]), vl = { class: "toolbar-container" }, bl = {
3659
3666
  key: 0,
3660
3667
  class: "toolbar-button-container"
3661
- }, bl = {
3668
+ }, kl = {
3662
3669
  key: 0,
3663
3670
  class: "hidden"
3664
- }, kl = /* @__PURE__ */ Q({
3671
+ }, Cl = /* @__PURE__ */ Q({
3665
3672
  __name: "EntityBaseTable",
3666
3673
  props: {
3667
3674
  // table header configuration
@@ -3806,8 +3813,8 @@ ${l.value}
3806
3813
  },
3807
3814
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked", "state"],
3808
3815
  setup(e, { emit: t }) {
3809
- const n = e, i = t, { i18n: { t: r } } = G.useI18n(), o = S(() => {
3810
- var v, T;
3816
+ const n = e, i = t, { i18n: { t: r } } = z.useI18n(), o = _(() => {
3817
+ var v, A;
3811
3818
  return typeof n.errorMessage == "string" ? {
3812
3819
  hasError: !!n.errorMessage,
3813
3820
  title: n.errorMessage,
@@ -3815,17 +3822,17 @@ ${l.value}
3815
3822
  } : {
3816
3823
  hasError: !!n.errorMessage,
3817
3824
  title: (v = n.errorMessage) == null ? void 0 : v.title,
3818
- message: (T = n.errorMessage) == null ? void 0 : T.message
3825
+ message: (A = n.errorMessage) == null ? void 0 : A.message
3819
3826
  };
3820
- }), a = S(() => n.cacheIdentifier || n.preferencesStorageKey), l = S(() => {
3827
+ }), a = _(() => n.cacheIdentifier || n.preferencesStorageKey), l = _(() => {
3821
3828
  const v = [];
3822
- return Object.keys(n.tableHeaders).forEach((m) => {
3823
- const R = n.tableHeaders[m];
3829
+ return Object.keys(n.tableHeaders).forEach((p) => {
3830
+ const K = n.tableHeaders[p];
3824
3831
  v.push({
3825
- label: R.label ?? m,
3826
- key: m,
3827
- sortable: R.sortable ?? !1,
3828
- hidable: R.hidable ?? !0
3832
+ label: K.label ?? p,
3833
+ key: p,
3834
+ sortable: K.sortable ?? !1,
3835
+ hidable: K.hidable ?? !0
3829
3836
  });
3830
3837
  }), n.enableEntityActions && v.push({
3831
3838
  key: "actions",
@@ -3836,62 +3843,62 @@ ${l.value}
3836
3843
  "data-testid": v.name,
3837
3844
  ...n.rowAttributes(v)
3838
3845
  }), d = M({}), c = (v) => {
3839
- var T;
3840
- return (T = d.value) == null ? void 0 : T.$el.querySelector(`[data-rowid="${v.id}"]`);
3846
+ var A;
3847
+ return (A = d.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${v.id}"]`);
3841
3848
  }, u = (v) => {
3842
- const T = {
3849
+ const A = {
3843
3850
  "data-testid": v.headerKey,
3844
3851
  ...n.cellAttributes(v)
3845
3852
  };
3846
- return v.colIndex === 0 && (T.style = {
3853
+ return v.colIndex === 0 && (A.style = {
3847
3854
  maxWidth: "250px",
3848
3855
  overflowX: "hidden",
3849
3856
  textOverflow: "ellipsis"
3850
- }), T;
3851
- }, p = (v) => {
3857
+ }), A;
3858
+ }, m = (v) => {
3852
3859
  k(v), i("state", v);
3853
3860
  }, f = () => {
3854
3861
  i("empty-state-cta-clicked"), h();
3855
3862
  }, h = () => {
3856
3863
  i("clear-search-input");
3857
- }, b = S(() => n.disableRowClick ? void 0 : (v, T) => {
3858
- i("click:row", T);
3864
+ }, b = _(() => n.disableRowClick ? void 0 : (v, A) => {
3865
+ i("click:row", A);
3859
3866
  }), y = (v) => {
3860
3867
  i("sort", v);
3861
- }, { hideTableToolbar: $, handleStateChange: k } = G.useTableState(() => n.query), { setTablePreferences: w, getTablePreferences: V } = $i(), z = M(V(a.value, n.defaultTablePreferences)), D = S(() => {
3862
- const v = V(a.value);
3868
+ }, { hideTableToolbar: $, handleStateChange: k } = z.useTableState(() => n.query), { setTablePreferences: w, getTablePreferences: Y } = $i(), J = M(Y(a.value, n.defaultTablePreferences)), R = _(() => {
3869
+ const v = Y(a.value);
3863
3870
  return {
3864
3871
  ...n.initialFetcherParams,
3865
3872
  ...v
3866
3873
  };
3867
- }), I = (v) => {
3868
- z.value = v, l.value.forEach((T) => {
3869
- !("hidable" in T) || !z.value.columnVisibility || T.hidable === !1 && (z.value.columnVisibility[T.key] = !0);
3874
+ }), F = (v) => {
3875
+ J.value = v, l.value.forEach((A) => {
3876
+ !("hidable" in A) || !J.value.columnVisibility || A.hidable === !1 && (J.value.columnVisibility[A.key] = !0);
3870
3877
  }), a.value && w(a.value, v);
3871
- }, C = S(() => ({
3878
+ }, E = _(() => ({
3872
3879
  disablePageJump: n.disablePaginationPageJump,
3873
3880
  offset: n.paginationType === "offset",
3874
3881
  ...n.paginationAttributes
3875
3882
  }));
3876
- return (v, T) => {
3877
- const m = U("KTableData"), R = U("KCard");
3878
- return g(), O(R, {
3883
+ return (v, A) => {
3884
+ const p = U("KTableData"), K = U("KCard");
3885
+ return g(), B(K, {
3879
3886
  class: "kong-ui-entity-base-table",
3880
3887
  title: e.title,
3881
3888
  "title-tag": e.titleTag
3882
3889
  }, {
3883
- default: A(() => [
3884
- N(m, {
3890
+ default: x(() => [
3891
+ N(p, {
3885
3892
  ref_key: "tableRefs",
3886
3893
  ref: d,
3887
3894
  "cache-identifier": a.value,
3888
3895
  "cell-attrs": u,
3889
3896
  "client-sort": e.enableClientSort,
3890
- "empty-state-action-message": e.query ? x(r)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
3897
+ "empty-state-action-message": e.query ? C(r)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
3891
3898
  "empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
3892
3899
  "empty-state-icon-variant": e.query ? "search" : "kong",
3893
- "empty-state-message": e.query ? x(r)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3894
- "empty-state-title": e.query ? x(r)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3900
+ "empty-state-message": e.query ? C(r)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3901
+ "empty-state-title": e.query ? C(r)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3895
3902
  error: o.value.hasError,
3896
3903
  "error-state-message": o.value.message,
3897
3904
  "error-state-title": o.value.title,
@@ -3900,58 +3907,58 @@ ${l.value}
3900
3907
  headers: l.value,
3901
3908
  "hide-pagination": e.hidePagination,
3902
3909
  "hide-pagination-when-optional": e.hidePaginationWhenOptional,
3903
- "hide-toolbar": e.hideToolbar ?? x($),
3904
- "initial-fetcher-params": D.value,
3910
+ "hide-toolbar": e.hideToolbar ?? C($),
3911
+ "initial-fetcher-params": R.value,
3905
3912
  loading: e.isLoading,
3906
- "pagination-attributes": C.value,
3913
+ "pagination-attributes": E.value,
3907
3914
  "resize-columns": "",
3908
3915
  "row-attrs": s,
3909
3916
  "row-key": e.rowKey,
3910
3917
  "search-input": e.query,
3911
3918
  "sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
3912
3919
  sortable: !e.disableSorting,
3913
- "table-preferences": z.value,
3920
+ "table-preferences": J.value,
3914
3921
  onEmptyStateActionClick: f,
3915
3922
  "onRow:click": b.value,
3916
- onSort: T[0] || (T[0] = (q) => y(q)),
3917
- onState: p,
3918
- "onUpdate:tablePreferences": I
3923
+ onSort: A[0] || (A[0] = (H) => y(H)),
3924
+ onState: m,
3925
+ "onUpdate:tablePreferences": F
3919
3926
  }, xe({
3920
- toolbar: A(() => [
3921
- L("div", yl, [
3927
+ toolbar: x(() => [
3928
+ L("div", vl, [
3922
3929
  j(v.$slots, "toolbar-filter", {}, void 0, !0),
3923
- v.$slots["toolbar-button"] ? (g(), _("div", vl, [
3930
+ v.$slots["toolbar-button"] ? (g(), S("div", bl, [
3924
3931
  j(v.$slots, "toolbar-button", {}, void 0, !0)
3925
- ])) : P("", !0)
3932
+ ])) : D("", !0)
3926
3933
  ])
3927
3934
  ]),
3928
- "action-items": A(({ row: q }) => [
3929
- j(v.$slots, "actions", { row: q }, void 0, !0)
3935
+ "action-items": x(({ row: H }) => [
3936
+ j(v.$slots, "actions", { row: H }, void 0, !0)
3930
3937
  ]),
3931
3938
  _: 2
3932
3939
  }, [
3933
3940
  v.$slots["empty-state"] ? {
3934
3941
  name: "empty-state",
3935
- fn: A(() => [
3942
+ fn: x(() => [
3936
3943
  j(v.$slots, "empty-state", {}, void 0, !0)
3937
3944
  ]),
3938
3945
  key: "0"
3939
3946
  } : void 0,
3940
- de(e.tableHeaders, (q, W) => ({
3941
- name: W,
3942
- fn: A(({ row: ne, rowValue: B }) => [
3943
- N(hl, {
3944
- "key-name": String(W),
3947
+ de(e.tableHeaders, (H, V) => ({
3948
+ name: V,
3949
+ fn: x(({ row: ne, rowValue: P }) => [
3950
+ N(yl, {
3951
+ "key-name": String(V),
3945
3952
  "row-el": c(ne),
3946
- tooltip: q.tooltip
3953
+ tooltip: H.tooltip
3947
3954
  }, {
3948
- default: A(() => [
3949
- j(v.$slots, W, {
3955
+ default: x(() => [
3956
+ j(v.$slots, V, {
3950
3957
  row: ne,
3951
3958
  rowKey: e.rowKey,
3952
- rowValue: B
3959
+ rowValue: P
3953
3960
  }, () => [
3954
- H(F(B), 1)
3961
+ q(I(P), 1)
3955
3962
  ], !0)
3956
3963
  ]),
3957
3964
  _: 2
@@ -3960,27 +3967,27 @@ ${l.value}
3960
3967
  })),
3961
3968
  e.query ? void 0 : {
3962
3969
  name: "empty-state-action-icon",
3963
- fn: A(() => [
3964
- N(x(Qt))
3970
+ fn: x(() => [
3971
+ N(C(Qt))
3965
3972
  ]),
3966
3973
  key: "1"
3967
3974
  }
3968
3975
  ]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-pagination-when-optional", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
3969
- v.$slots["outside-actions"] && x($) ? (g(), _("div", bl, [
3976
+ v.$slots["outside-actions"] && C($) ? (g(), S("div", kl, [
3970
3977
  j(v.$slots, "outside-actions", {}, void 0, !0)
3971
- ])) : P("", !0)
3978
+ ])) : D("", !0)
3972
3979
  ]),
3973
3980
  _: 3
3974
3981
  }, 8, ["title", "title-tag"]);
3975
3982
  };
3976
3983
  }
3977
- }), Rs = /* @__PURE__ */ ce(kl, [["__scopeId", "data-v-09e101d4"]]), Cl = {
3984
+ }), Ks = /* @__PURE__ */ ce(Cl, [["__scopeId", "data-v-09e101d4"]]), xl = {
3978
3985
  key: 0,
3979
3986
  class: "kong-ui-entity-delete-error"
3980
- }, xl = {
3987
+ }, Al = {
3981
3988
  key: 1,
3982
3989
  class: "description"
3983
- }, Al = /* @__PURE__ */ Q({
3990
+ }, wl = /* @__PURE__ */ Q({
3984
3991
  __name: "EntityDeleteModal",
3985
3992
  props: {
3986
3993
  visible: {
@@ -4019,14 +4026,14 @@ ${l.value}
4019
4026
  },
4020
4027
  emits: ["cancel", "proceed"],
4021
4028
  setup(e, { emit: t }) {
4022
- const { i18nT: n } = G.useI18n(), i = e, r = t, o = S(() => i.needConfirm ? i.entityName : ""), a = () => {
4029
+ const { i18nT: n } = z.useI18n(), i = e, r = t, o = _(() => i.needConfirm ? i.entityName : ""), a = () => {
4023
4030
  r("cancel");
4024
4031
  }, l = () => {
4025
4032
  r("proceed");
4026
4033
  };
4027
4034
  return (s, d) => {
4028
4035
  const c = U("KAlert"), u = U("KPrompt");
4029
- return g(), O(u, {
4036
+ return g(), B(u, {
4030
4037
  "action-button-appearance": "danger",
4031
4038
  "action-button-disabled": e.actionPending,
4032
4039
  "action-button-text": "Yes, delete",
@@ -4037,50 +4044,50 @@ ${l.value}
4037
4044
  onCancel: a,
4038
4045
  onProceed: l
4039
4046
  }, {
4040
- default: A(() => [
4041
- e.error ? (g(), _("div", Cl, [
4047
+ default: x(() => [
4048
+ e.error ? (g(), S("div", xl, [
4042
4049
  N(c, { appearance: "danger" }, {
4043
- default: A(() => [
4044
- H(F(e.error), 1)
4050
+ default: x(() => [
4051
+ q(I(e.error), 1)
4045
4052
  ]),
4046
4053
  _: 1
4047
4054
  })
4048
- ])) : P("", !0),
4049
- N(x(n), {
4055
+ ])) : D("", !0),
4056
+ N(C(n), {
4050
4057
  class: "message",
4051
4058
  keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
4052
4059
  tag: "p"
4053
4060
  }, xe({
4054
- entityType: A(() => [
4055
- H(F(i.entityType), 1)
4061
+ entityType: x(() => [
4062
+ q(I(i.entityType), 1)
4056
4063
  ]),
4057
4064
  _: 2
4058
4065
  }, [
4059
4066
  i.entityName ? {
4060
4067
  name: "entityName",
4061
- fn: A(() => [
4062
- L("strong", null, F(i.entityName), 1)
4068
+ fn: x(() => [
4069
+ L("strong", null, I(i.entityName), 1)
4063
4070
  ]),
4064
4071
  key: "0"
4065
4072
  } : void 0
4066
4073
  ]), 1032, ["keypath"]),
4067
- i.description || s.$slots.description ? (g(), _("div", xl, [
4074
+ i.description || s.$slots.description ? (g(), S("div", Al, [
4068
4075
  j(s.$slots, "description", {}, () => [
4069
- L("p", null, F(i.description), 1)
4076
+ L("p", null, I(i.description), 1)
4070
4077
  ], !0)
4071
- ])) : P("", !0)
4078
+ ])) : D("", !0)
4072
4079
  ]),
4073
4080
  _: 3
4074
4081
  }, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
4075
4082
  };
4076
4083
  }
4077
- }), Ks = /* @__PURE__ */ ce(Al, [["__scopeId", "data-v-4361d622"]]), wl = {
4084
+ }), Ns = /* @__PURE__ */ ce(wl, [["__scopeId", "data-v-4361d622"]]), _l = {
4078
4085
  fill: "none",
4079
4086
  height: "20",
4080
4087
  viewBox: "0 0 20 20",
4081
4088
  width: "20",
4082
4089
  xmlns: "http://www.w3.org/2000/svg"
4083
- }, _l = {
4090
+ }, Sl = {
4084
4091
  id: "mask0_180_20349",
4085
4092
  height: "20",
4086
4093
  maskUnits: "userSpaceOnUse",
@@ -4088,7 +4095,7 @@ ${l.value}
4088
4095
  width: "20",
4089
4096
  x: "0",
4090
4097
  y: "0"
4091
- }, Sl = ["fill"], $l = { mask: "url(#mask0_180_20349)" }, Tl = ["fill"], qt = /* @__PURE__ */ Q({
4098
+ }, $l = ["fill"], Tl = { mask: "url(#mask0_180_20349)" }, El = ["fill"], Ht = /* @__PURE__ */ Q({
4092
4099
  __name: "IconFilter",
4093
4100
  props: {
4094
4101
  color: {
@@ -4097,26 +4104,26 @@ ${l.value}
4097
4104
  }
4098
4105
  },
4099
4106
  setup(e) {
4100
- return (t, n) => (g(), _("svg", wl, [
4101
- L("mask", _l, [
4107
+ return (t, n) => (g(), S("svg", _l, [
4108
+ L("mask", Sl, [
4102
4109
  L("rect", {
4103
4110
  fill: e.color,
4104
4111
  height: "20",
4105
4112
  width: "20"
4106
- }, null, 8, Sl)
4113
+ }, null, 8, $l)
4107
4114
  ]),
4108
- L("g", $l, [
4115
+ L("g", Tl, [
4109
4116
  L("path", {
4110
4117
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
4111
4118
  fill: e.color
4112
- }, null, 8, Tl)
4119
+ }, null, 8, El)
4113
4120
  ])
4114
4121
  ]));
4115
4122
  }
4116
- }), El = {
4123
+ }), Il = {
4117
4124
  key: 1,
4118
4125
  class: "kong-ui-entity-filter"
4119
- }, Il = { class: "kong-ui-entity-filter-menu" }, Fl = ["data-testid"], Ol = ["onClick", "onKeydown"], Bl = { class: "menu-item-indicator" }, Ll = { class: "menu-item-body" }, Rl = ["for"], Kl = { class: "menu-item-buttons" }, Nl = { class: "filter-clear-button-container" }, Ml = /* @__PURE__ */ Q({
4126
+ }, Fl = { class: "kong-ui-entity-filter-menu" }, Ol = ["data-testid"], Bl = ["onClick", "onKeydown"], Ll = { class: "menu-item-indicator" }, Rl = { class: "menu-item-body" }, Kl = ["for"], Nl = { class: "menu-item-buttons" }, Ml = { class: "filter-clear-button-container" }, Pl = /* @__PURE__ */ Q({
4120
4127
  __name: "EntityFilter",
4121
4128
  props: {
4122
4129
  // filter config, either exact match or fuzzy match
@@ -4136,75 +4143,75 @@ ${l.value}
4136
4143
  },
4137
4144
  emits: ["update:modelValue"],
4138
4145
  setup(e, { emit: t }) {
4139
- const { i18n: { t: n } } = G.useI18n(), i = e, r = t, o = M(!1), a = M({}), l = M(/* @__PURE__ */ new Set()), s = S(() => {
4140
- const D = [];
4141
- return new URLSearchParams(i.modelValue).forEach((I, C) => {
4142
- I !== "" && D.push(C);
4143
- }), D;
4144
- }), d = S(() => {
4145
- const D = i.config.fields;
4146
- return Object.keys(D).filter((I) => {
4147
- var C;
4148
- return (C = D == null ? void 0 : D[I]) == null ? void 0 : C.searchable;
4149
- }).map((I) => ({
4150
- label: D[I].label || I,
4151
- value: I,
4146
+ const { i18n: { t: n } } = z.useI18n(), i = e, r = t, o = M(!1), a = M({}), l = M(/* @__PURE__ */ new Set()), s = _(() => {
4147
+ const R = [];
4148
+ return new URLSearchParams(i.modelValue).forEach((F, E) => {
4149
+ F !== "" && R.push(E);
4150
+ }), R;
4151
+ }), d = _(() => {
4152
+ const R = i.config.fields;
4153
+ return Object.keys(R).filter((F) => {
4154
+ var E;
4155
+ return (E = R == null ? void 0 : R[F]) == null ? void 0 : E.searchable;
4156
+ }).map((F) => ({
4157
+ label: R[F].label || F,
4158
+ value: F,
4152
4159
  expanded: !1
4153
4160
  }));
4154
4161
  });
4155
- Ce(() => i.modelValue, (D) => {
4156
- a.value = {}, new URLSearchParams(D).forEach((I, C) => {
4157
- a.value[C] = I;
4162
+ Ce(() => i.modelValue, (R) => {
4163
+ a.value = {}, new URLSearchParams(R).forEach((F, E) => {
4164
+ a.value[E] = F;
4158
4165
  });
4159
4166
  });
4160
4167
  const c = () => {
4161
4168
  o.value = !o.value;
4162
- }, u = (D) => {
4163
- l.value.has(D) ? l.value.delete(D) : l.value.add(D);
4164
- }, p = (D) => {
4165
- r("update:modelValue", D);
4169
+ }, u = (R) => {
4170
+ l.value.has(R) ? l.value.delete(R) : l.value.add(R);
4171
+ }, m = (R) => {
4172
+ r("update:modelValue", R);
4166
4173
  }, f = () => {
4167
- p("");
4168
- }, h = (D) => `filter-${D}`, b = (D) => {
4169
- var I, C;
4170
- return (((C = (I = i.config.schema) == null ? void 0 : I[D]) == null ? void 0 : C.values) ?? []).map((v) => typeof v == "string" ? { value: v, label: v } : v);
4171
- }, y = (D) => {
4172
- var I, C;
4173
- return ((C = (I = i.config.schema) == null ? void 0 : I[D]) == null ? void 0 : C.type) ?? "text";
4174
- }, $ = (D) => {
4174
+ m("");
4175
+ }, h = (R) => `filter-${R}`, b = (R) => {
4176
+ var F, E;
4177
+ return (((E = (F = i.config.schema) == null ? void 0 : F[R]) == null ? void 0 : E.values) ?? []).map((v) => typeof v == "string" ? { value: v, label: v } : v);
4178
+ }, y = (R) => {
4179
+ var F, E;
4180
+ return ((E = (F = i.config.schema) == null ? void 0 : F[R]) == null ? void 0 : E.type) ?? "text";
4181
+ }, $ = (R) => {
4175
4182
  a.value = {
4176
4183
  ...a.value,
4177
- [D]: ""
4184
+ [R]: ""
4178
4185
  }, w();
4179
4186
  }, k = () => {
4180
4187
  a.value = {}, w(!0);
4181
- }, w = (D = !1) => {
4182
- const I = Object.keys(a.value).reduce((C, v) => (a.value[v] && (C[v] = `${a.value[v]}`), C), {});
4183
- D && (o.value = !1), r("update:modelValue", new URLSearchParams(I).toString());
4184
- }, V = (D) => {
4185
- var I, C;
4186
- return !!((C = (I = i.config.schema) == null ? void 0 : I[D]) != null && C.filterFunction);
4187
- }, z = (D, I) => {
4188
+ }, w = (R = !1) => {
4189
+ const F = Object.keys(a.value).reduce((E, v) => (a.value[v] && (E[v] = `${a.value[v]}`), E), {});
4190
+ R && (o.value = !1), r("update:modelValue", new URLSearchParams(F).toString());
4191
+ }, Y = (R) => {
4192
+ var F, E;
4193
+ return !!((E = (F = i.config.schema) == null ? void 0 : F[R]) != null && E.filterFunction);
4194
+ }, J = (R, F) => {
4188
4195
  var v;
4189
- const C = (v = i.config.schema) == null ? void 0 : v[D];
4190
- return (C == null ? void 0 : C.filterFunction) === void 0 ? !0 : C.filterFunction(I);
4196
+ const E = (v = i.config.schema) == null ? void 0 : v[R];
4197
+ return (E == null ? void 0 : E.filterFunction) === void 0 ? !0 : E.filterFunction(F);
4191
4198
  };
4192
- return (D, I) => {
4193
- const C = U("KInput"), v = U("KButton"), T = U("KSelect");
4194
- return e.config.isExactMatch ? (g(), O(C, {
4199
+ return (R, F) => {
4200
+ const E = U("KInput"), v = U("KButton"), A = U("KSelect");
4201
+ return e.config.isExactMatch ? (g(), B(E, {
4195
4202
  key: 0,
4196
4203
  autocomplete: "off",
4197
4204
  class: "kong-ui-entity-filter-input",
4198
4205
  "data-testid": "search-input",
4199
4206
  "model-value": e.modelValue,
4200
4207
  placeholder: e.config.placeholder,
4201
- "onUpdate:modelValue": p
4208
+ "onUpdate:modelValue": m
4202
4209
  }, {
4203
- before: A(() => [
4204
- N(qt)
4210
+ before: x(() => [
4211
+ N(Ht)
4205
4212
  ]),
4206
- after: A(() => [
4207
- Ae(N(x(hi), {
4213
+ after: x(() => [
4214
+ Ae(N(C(hi), {
4208
4215
  class: "kong-ui-entity-filter-clear",
4209
4216
  role: "button",
4210
4217
  tabindex: "0",
@@ -4214,15 +4221,15 @@ ${l.value}
4214
4221
  ])
4215
4222
  ]),
4216
4223
  _: 1
4217
- }, 8, ["model-value", "placeholder"])) : (g(), _("div", El, [
4224
+ }, 8, ["model-value", "placeholder"])) : (g(), S("div", Il, [
4218
4225
  N(v, {
4219
4226
  appearance: "tertiary",
4220
4227
  "data-testid": "filter-button",
4221
4228
  onClick: c
4222
4229
  }, {
4223
- default: A(() => [
4224
- N(qt),
4225
- H(" " + F(x(n)("filter.filterButtonText")) + " " + F(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4230
+ default: x(() => [
4231
+ N(Ht),
4232
+ q(" " + I(C(n)("filter.filterButtonText")) + " " + I(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4226
4233
  ]),
4227
4234
  _: 1
4228
4235
  }),
@@ -4232,65 +4239,65 @@ ${l.value}
4232
4239
  }, null, 512), [
4233
4240
  [we, o.value]
4234
4241
  ]),
4235
- Ae(L("div", Il, [
4236
- (g(!0), _(fe, null, de(d.value, (m) => {
4237
- var R, q;
4238
- return g(), _("div", {
4239
- key: m.value,
4242
+ Ae(L("div", Fl, [
4243
+ (g(!0), S(fe, null, de(d.value, (p) => {
4244
+ var K, H;
4245
+ return g(), S("div", {
4246
+ key: p.value,
4240
4247
  class: "kong-ui-entity-filter-menu-item",
4241
- "data-testid": m.value
4248
+ "data-testid": p.value
4242
4249
  }, [
4243
4250
  L("span", {
4244
- class: me(["menu-item-title", { expanded: l.value.has(m.value) }]),
4251
+ class: pe(["menu-item-title", { expanded: l.value.has(p.value) }]),
4245
4252
  role: "button",
4246
4253
  tabindex: "0",
4247
- onClick: (W) => u(m.value),
4248
- onKeydown: ai((W) => u(m.value), ["enter"])
4254
+ onClick: (V) => u(p.value),
4255
+ onKeydown: ai((V) => u(p.value), ["enter"])
4249
4256
  }, [
4250
- H(F(m.label) + " ", 1),
4251
- Ae(L("span", Bl, null, 512), [
4252
- [we, s.value.includes(m.value)]
4257
+ q(I(p.label) + " ", 1),
4258
+ Ae(L("span", Ll, null, 512), [
4259
+ [we, s.value.includes(p.value)]
4253
4260
  ]),
4254
- N(x(yi), {
4255
- class: me(["menu-item-expand-icon", { expanded: l.value.has(m.value) }]),
4256
- color: x(dr)
4261
+ N(C(yi), {
4262
+ class: pe(["menu-item-expand-icon", { expanded: l.value.has(p.value) }]),
4263
+ color: C(dr)
4257
4264
  }, null, 8, ["class", "color"])
4258
- ], 42, Ol),
4259
- Ae(L("div", Ll, [
4265
+ ], 42, Bl),
4266
+ Ae(L("div", Rl, [
4260
4267
  L("label", {
4261
4268
  class: "menu-item-label",
4262
- for: h(m.value)
4263
- }, F(x(n)("filter.fieldLabel")), 9, Rl),
4264
- ((q = (R = e.config.schema) == null ? void 0 : R[m.value]) == null ? void 0 : q.type) === "select" ? (g(), O(T, {
4269
+ for: h(p.value)
4270
+ }, I(C(n)("filter.fieldLabel")), 9, Kl),
4271
+ ((H = (K = e.config.schema) == null ? void 0 : K[p.value]) == null ? void 0 : H.type) === "select" ? (g(), B(A, {
4265
4272
  key: 0,
4266
- id: h(m.value),
4267
- modelValue: a.value[m.value],
4268
- "onUpdate:modelValue": (W) => a.value[m.value] = W,
4269
- "enable-filtering": V(m.value),
4270
- "filter-function": (W) => z(m.value, W),
4271
- items: b(m.value),
4272
- placeholder: x(n)("filter.selectPlaceholder")
4273
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (g(), O(C, {
4273
+ id: h(p.value),
4274
+ modelValue: a.value[p.value],
4275
+ "onUpdate:modelValue": (V) => a.value[p.value] = V,
4276
+ "enable-filtering": Y(p.value),
4277
+ "filter-function": (V) => J(p.value, V),
4278
+ items: b(p.value),
4279
+ placeholder: C(n)("filter.selectPlaceholder")
4280
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (g(), B(E, {
4274
4281
  key: 1,
4275
- id: h(m.value),
4276
- modelValue: a.value[m.value],
4277
- "onUpdate:modelValue": (W) => a.value[m.value] = W,
4282
+ id: h(p.value),
4283
+ modelValue: a.value[p.value],
4284
+ "onUpdate:modelValue": (V) => a.value[p.value] = V,
4278
4285
  autocomplete: "off",
4279
- placeholder: x(n)("filter.inputPlaceholder"),
4280
- type: y(m.value)
4286
+ placeholder: C(n)("filter.inputPlaceholder"),
4287
+ type: y(p.value)
4281
4288
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
4282
4289
  ], 512), [
4283
- [we, l.value.has(m.value)]
4290
+ [we, l.value.has(p.value)]
4284
4291
  ]),
4285
- Ae(L("div", Kl, [
4292
+ Ae(L("div", Nl, [
4286
4293
  N(v, {
4287
4294
  appearance: "tertiary",
4288
4295
  "data-testid": "apply-filter",
4289
4296
  size: "small",
4290
- onClick: I[0] || (I[0] = (W) => w(!0))
4297
+ onClick: F[0] || (F[0] = (V) => w(!0))
4291
4298
  }, {
4292
- default: A(() => [
4293
- H(F(x(n)("filter.applyButtonText")), 1)
4299
+ default: x(() => [
4300
+ q(I(C(n)("filter.applyButtonText")), 1)
4294
4301
  ]),
4295
4302
  _: 1
4296
4303
  }),
@@ -4298,26 +4305,26 @@ ${l.value}
4298
4305
  appearance: "tertiary",
4299
4306
  "data-testid": "clear-filter",
4300
4307
  size: "small",
4301
- onClick: (W) => $(m.value)
4308
+ onClick: (V) => $(p.value)
4302
4309
  }, {
4303
- default: A(() => [
4304
- H(F(x(n)("filter.clearButtonText")), 1)
4310
+ default: x(() => [
4311
+ q(I(C(n)("filter.clearButtonText")), 1)
4305
4312
  ]),
4306
4313
  _: 1
4307
4314
  }, 8, ["onClick"])
4308
4315
  ], 512), [
4309
- [we, l.value.has(m.value)]
4316
+ [we, l.value.has(p.value)]
4310
4317
  ])
4311
- ], 8, Fl);
4318
+ ], 8, Ol);
4312
4319
  }), 128)),
4313
- L("div", Nl, [
4320
+ L("div", Ml, [
4314
4321
  N(v, {
4315
4322
  appearance: "tertiary",
4316
4323
  size: "small",
4317
4324
  onClick: k
4318
4325
  }, {
4319
- default: A(() => [
4320
- H(F(x(n)("filter.clearAllButtonText")), 1)
4326
+ default: x(() => [
4327
+ q(I(C(n)("filter.clearAllButtonText")), 1)
4321
4328
  ]),
4322
4329
  _: 1
4323
4330
  })
@@ -4328,7 +4335,7 @@ ${l.value}
4328
4335
  ]));
4329
4336
  };
4330
4337
  }
4331
- }), Ns = /* @__PURE__ */ ce(Ml, [["__scopeId", "data-v-084f7978"]]), Ms = /* @__PURE__ */ Q({
4338
+ }), Ms = /* @__PURE__ */ ce(Pl, [["__scopeId", "data-v-084f7978"]]), Ps = /* @__PURE__ */ Q({
4332
4339
  __name: "EntityToggleModal",
4333
4340
  props: {
4334
4341
  visible: {
@@ -4360,9 +4367,9 @@ ${l.value}
4360
4367
  },
4361
4368
  emits: ["cancel", "proceed"],
4362
4369
  setup(e, { emit: t }) {
4363
- const { i18n: { t: n }, i18nT: i } = G.useI18n(), r = e, o = t, a = M(!1), l = S(
4370
+ const { i18n: { t: n }, i18nT: i } = z.useI18n(), r = e, o = t, a = M(!1), l = _(
4364
4371
  () => r.action === "enable" ? n("toggleModal.enable.title", { entityType: r.entityType }) : n("toggleModal.disable.title", { entityType: r.entityType })
4365
- ), s = S(
4372
+ ), s = _(
4366
4373
  () => r.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
4367
4374
  ), d = () => o("cancel"), c = async () => {
4368
4375
  if (r.onConfirm) {
@@ -4376,9 +4383,9 @@ ${l.value}
4376
4383
  }
4377
4384
  }
4378
4385
  };
4379
- return (u, p) => {
4386
+ return (u, m) => {
4380
4387
  const f = U("KPrompt");
4381
- return g(), O(Gt, { to: "body" }, [
4388
+ return g(), B(Gt, { to: "body" }, [
4382
4389
  N(f, {
4383
4390
  "action-button-disabled": a.value,
4384
4391
  "action-button-text": s.value,
@@ -4388,16 +4395,16 @@ ${l.value}
4388
4395
  onCancel: d,
4389
4396
  onProceed: c
4390
4397
  }, {
4391
- default: A(() => [
4392
- N(x(i), {
4398
+ default: x(() => [
4399
+ N(C(i), {
4393
4400
  keypath: `toggleModal.${r.action}.message`,
4394
4401
  scope: "global"
4395
4402
  }, {
4396
- entityType: A(() => [
4397
- H(F(e.entityType), 1)
4403
+ entityType: x(() => [
4404
+ q(I(e.entityType), 1)
4398
4405
  ]),
4399
- entityName: A(() => [
4400
- L("strong", null, F(e.entityName), 1)
4406
+ entityName: x(() => [
4407
+ L("strong", null, I(e.entityName), 1)
4401
4408
  ]),
4402
4409
  _: 1
4403
4410
  }, 8, ["keypath"])
@@ -4429,13 +4436,13 @@ ${l.value}
4429
4436
  }
4430
4437
  },
4431
4438
  setup(e) {
4432
- const t = e, n = M(void 0), i = S(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4439
+ const t = e, n = M(void 0), i = _(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4433
4440
  return Ce(() => t.authFunction, async () => {
4434
4441
  n.value = await t.authFunction();
4435
4442
  }, { immediate: !0 }), (r, o) => i.value ? j(r.$slots, "default", {
4436
4443
  key: 0,
4437
4444
  isAllowed: n.value
4438
- }) : P("", !0);
4445
+ }) : D("", !0);
4439
4446
  }
4440
4447
  }), re = [];
4441
4448
  for (let e = 0; e < 256; ++e)
@@ -4444,33 +4451,33 @@ function Dl(e, t = 0) {
4444
4451
  return (re[e[t + 0]] + re[e[t + 1]] + re[e[t + 2]] + re[e[t + 3]] + "-" + re[e[t + 4]] + re[e[t + 5]] + "-" + re[e[t + 6]] + re[e[t + 7]] + "-" + re[e[t + 8]] + re[e[t + 9]] + "-" + re[e[t + 10]] + re[e[t + 11]] + re[e[t + 12]] + re[e[t + 13]] + re[e[t + 14]] + re[e[t + 15]]).toLowerCase();
4445
4452
  }
4446
4453
  let Ze;
4447
- const Pl = new Uint8Array(16);
4448
- function jl() {
4454
+ const jl = new Uint8Array(16);
4455
+ function Ul() {
4449
4456
  if (!Ze) {
4450
4457
  if (typeof crypto > "u" || !crypto.getRandomValues)
4451
4458
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
4452
4459
  Ze = crypto.getRandomValues.bind(crypto);
4453
4460
  }
4454
- return Ze(Pl);
4461
+ return Ze(jl);
4455
4462
  }
4456
- const Ul = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ht = { randomUUID: Ul };
4457
- function ql(e, t, n) {
4463
+ const ql = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Yt = { randomUUID: ql };
4464
+ function Hl(e, t, n) {
4458
4465
  var r;
4459
- if (Ht.randomUUID && !e)
4460
- return Ht.randomUUID();
4466
+ if (Yt.randomUUID && !e)
4467
+ return Yt.randomUUID();
4461
4468
  e = e || {};
4462
- const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? jl();
4469
+ const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Ul();
4463
4470
  if (i.length < 16)
4464
4471
  throw new Error("Random bytes length must be >= 16");
4465
4472
  return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Dl(i);
4466
4473
  }
4467
- const Hl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Yl = {
4474
+ const Yl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Wl = {
4468
4475
  key: 1,
4469
4476
  class: "form-section-description"
4470
- }, Wl = {
4477
+ }, Jl = {
4471
4478
  key: 2,
4472
4479
  class: "form-section-footer"
4473
- }, Jl = { class: "form-section-content" }, Gl = /* @__PURE__ */ Q({
4480
+ }, Gl = { class: "form-section-content" }, zl = /* @__PURE__ */ Q({
4474
4481
  __name: "EntityFormSection",
4475
4482
  props: {
4476
4483
  title: {
@@ -4499,91 +4506,105 @@ const Hl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Yl = {
4499
4506
  }
4500
4507
  },
4501
4508
  setup(e) {
4502
- const t = He(), n = ql();
4503
- return (i, r) => (g(), _("div", {
4504
- "aria-labelledby": e.title ? x(n) : void 0,
4505
- class: me(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
4509
+ const t = He(), n = Hl();
4510
+ return (i, r) => (g(), S("div", {
4511
+ "aria-labelledby": e.title ? C(n) : void 0,
4512
+ class: pe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
4506
4513
  role: "group"
4507
4514
  }, [
4508
4515
  L("div", Vl, [
4509
- e.hideInfoHeader ? P("", !0) : (g(), _("div", {
4516
+ e.hideInfoHeader ? D("", !0) : (g(), S("div", {
4510
4517
  key: 0,
4511
- class: me(["form-section-info", { sticky: e.stickyInfoHeader }])
4518
+ class: pe(["form-section-info", { sticky: e.stickyInfoHeader }])
4512
4519
  }, [
4513
- e.title ? (g(), O(qe(e.titleTag), {
4520
+ e.title ? (g(), B(qe(e.titleTag), {
4514
4521
  key: 0,
4515
- id: x(n),
4522
+ id: C(n),
4516
4523
  class: "form-section-title"
4517
4524
  }, {
4518
- default: A(() => [
4519
- H(F(e.title), 1)
4525
+ default: x(() => [
4526
+ q(I(e.title), 1)
4520
4527
  ]),
4521
4528
  _: 1
4522
- }, 8, ["id"])) : P("", !0),
4523
- e.description || x(t).description ? (g(), _("div", Yl, [
4529
+ }, 8, ["id"])) : D("", !0),
4530
+ e.description || C(t).description ? (g(), S("div", Wl, [
4524
4531
  j(i.$slots, "description", {}, () => [
4525
- L("p", null, F(e.description), 1)
4532
+ L("p", null, I(e.description), 1)
4526
4533
  ], !0)
4527
- ])) : P("", !0),
4528
- x(t).footer ? (g(), _("div", Wl, [
4534
+ ])) : D("", !0),
4535
+ C(t).footer ? (g(), S("div", Jl, [
4529
4536
  j(i.$slots, "footer", {}, void 0, !0)
4530
- ])) : P("", !0)
4537
+ ])) : D("", !0)
4531
4538
  ], 2)),
4532
- L("div", Jl, [
4539
+ L("div", Gl, [
4533
4540
  j(i.$slots, "default", {}, void 0, !0)
4534
4541
  ])
4535
4542
  ])
4536
- ], 10, Hl));
4543
+ ], 10, Yl));
4537
4544
  }
4538
- }), Ps = /* @__PURE__ */ ce(Gl, [["__scopeId", "data-v-b1f74200"]]), zl = { class: "ff-form-section" }, Ql = { class: "header" }, Zl = {
4539
- key: 0,
4540
- class: "step"
4541
- }, Xl = { class: "header-content" }, es = { class: "header-title" }, ts = {
4545
+ }), js = /* @__PURE__ */ ce(zl, [["__scopeId", "data-v-b1f74200"]]), Ql = { class: "ff-form-section" }, Zl = { class: "header" }, Xl = {
4542
4546
  key: 0,
4543
- class: "header-description"
4547
+ class: "step",
4548
+ "data-testid": "form-section-step"
4549
+ }, es = { class: "header-content" }, ts = {
4550
+ class: "header-title",
4551
+ "data-testid": "header-title"
4544
4552
  }, ns = {
4553
+ key: 0,
4554
+ class: "header-description",
4555
+ "data-testid": "header-description"
4556
+ }, is = {
4545
4557
  key: 1,
4546
- class: "header-extra"
4547
- }, is = { class: "content" }, rs = /* @__PURE__ */ Q({
4558
+ class: "header-extra",
4559
+ "data-testid": "header-extra"
4560
+ }, rs = {
4561
+ class: "content",
4562
+ "data-testid": "form-section-content"
4563
+ }, as = /* @__PURE__ */ Q({
4548
4564
  __name: "EntityFormBlock",
4549
4565
  props: {
4550
- step: {},
4566
+ step: { default: () => {
4567
+ } },
4551
4568
  title: { default: "" },
4552
4569
  description: { default: "" }
4553
4570
  },
4554
4571
  setup(e) {
4555
4572
  const t = He();
4556
- return (n, i) => (g(), _("div", zl, [
4557
- L("header", Ql, [
4558
- e.step != null ? (g(), _("div", Zl, F(e.step), 1)) : P("", !0),
4559
- L("div", Xl, [
4560
- L("h2", es, [
4573
+ return (n, i) => (g(), S("div", Ql, [
4574
+ L("header", Zl, [
4575
+ e.step !== void 0 || t.step ? (g(), S("div", Xl, [
4576
+ j(n.$slots, "step", {}, () => [
4577
+ q(I(e.step), 1)
4578
+ ], !0)
4579
+ ])) : D("", !0),
4580
+ L("div", es, [
4581
+ L("h2", ts, [
4561
4582
  j(n.$slots, "title", {}, () => [
4562
- H(F(e.title), 1)
4583
+ q(I(e.title), 1)
4563
4584
  ], !0)
4564
4585
  ]),
4565
- e.description || t.description ? (g(), _("div", ts, [
4586
+ e.description || t.description ? (g(), S("div", ns, [
4566
4587
  j(n.$slots, "description", {}, () => [
4567
- H(F(e.description), 1)
4588
+ q(I(e.description), 1)
4568
4589
  ], !0)
4569
- ])) : P("", !0)
4590
+ ])) : D("", !0)
4570
4591
  ]),
4571
- t.extra ? (g(), _("div", ns, [
4592
+ t.extra ? (g(), S("div", is, [
4572
4593
  j(n.$slots, "extra", {}, void 0, !0)
4573
- ])) : P("", !0)
4594
+ ])) : D("", !0)
4574
4595
  ]),
4575
- L("div", is, [
4596
+ L("div", rs, [
4576
4597
  j(n.$slots, "default", {}, void 0, !0)
4577
4598
  ])
4578
4599
  ]));
4579
4600
  }
4580
- }), js = /* @__PURE__ */ ce(rs, [["__scopeId", "data-v-cb6d2e95"]]), as = {
4601
+ }), Us = /* @__PURE__ */ ce(as, [["__scopeId", "data-v-cfc1bef0"]]), os = {
4581
4602
  class: "kong-ui-public-entity-link",
4582
4603
  "data-testid": "entity-link-parent"
4583
- }, os = {
4604
+ }, ls = {
4584
4605
  key: 0,
4585
4606
  class: "deleted-entity"
4586
- }, ls = { key: 1 }, ss = ["onClick"], cs = /* @__PURE__ */ Q({
4607
+ }, ss = { key: 1 }, cs = ["onClick"], us = /* @__PURE__ */ Q({
4587
4608
  __name: "EntityLink",
4588
4609
  props: {
4589
4610
  entityLinkData: {
@@ -4607,10 +4628,10 @@ const Hl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Yl = {
4607
4628
  }
4608
4629
  },
4609
4630
  setup(e) {
4610
- const t = e, n = M(), { isTruncated: i } = G.useTruncationDetector(n), { i18n: { t: r } } = G.useI18n(), o = r("global.actions.copyId"), a = M(o), l = S(() => t.entityLinkData.deleted ?? !1), s = S(() => {
4631
+ const t = e, n = M(), { isTruncated: i } = z.useTruncationDetector(n), { i18n: { t: r } } = z.useI18n(), o = r("global.actions.copyId"), a = M(o), l = _(() => t.entityLinkData.deleted ?? !1), s = _(() => {
4611
4632
  var u;
4612
4633
  return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
4613
- }), d = S(() => {
4634
+ }), d = _(() => {
4614
4635
  var u;
4615
4636
  return `${(u = s.value) == null ? void 0 : u.toString().slice(0, 5)} (deleted)`;
4616
4637
  }), c = async (u) => {
@@ -4618,96 +4639,96 @@ const Hl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Yl = {
4618
4639
  a.value = o;
4619
4640
  }, 1800));
4620
4641
  };
4621
- return (u, p) => {
4642
+ return (u, m) => {
4622
4643
  const f = U("KTooltip"), h = U("KExternalLink"), b = U("KClipboardProvider");
4623
- return g(), _("div", as, [
4624
- l.value ? (g(), _("div", os, F(d.value), 1)) : s.value ? s.value ? (g(), O(h, {
4644
+ return g(), S("div", os, [
4645
+ l.value ? (g(), S("div", ls, I(d.value), 1)) : s.value ? s.value ? (g(), B(h, {
4625
4646
  key: 2,
4626
4647
  class: "entity-link",
4627
4648
  "hide-icon": !e.newWindow,
4628
4649
  href: e.externalLink,
4629
4650
  target: e.newWindow ? "_blank" : "_self"
4630
4651
  }, {
4631
- default: A(() => [
4652
+ default: x(() => [
4632
4653
  N(f, {
4633
- text: x(i) && e.entityLinkData.label || ""
4654
+ text: C(i) && e.entityLinkData.label || ""
4634
4655
  }, {
4635
- default: A(() => [
4656
+ default: x(() => [
4636
4657
  L("span", {
4637
4658
  ref_key: "textContent",
4638
4659
  ref: n,
4639
4660
  class: "entity-link-label"
4640
- }, F(e.entityLinkData.label), 513)
4661
+ }, I(e.entityLinkData.label), 513)
4641
4662
  ]),
4642
4663
  _: 1
4643
4664
  }, 8, ["text"])
4644
4665
  ]),
4645
4666
  _: 1
4646
- }, 8, ["hide-icon", "href", "target"])) : P("", !0) : (g(), _("div", ls, F(" – "))),
4647
- s.value && e.allowCopy ? (g(), O(f, {
4667
+ }, 8, ["hide-icon", "href", "target"])) : D("", !0) : (g(), S("div", ss, I(" – "))),
4668
+ s.value && e.allowCopy ? (g(), B(f, {
4648
4669
  key: a.value,
4649
4670
  class: "copy-uuid-tooltip",
4650
4671
  "max-width": "160",
4651
4672
  placement: "bottom-end",
4652
4673
  text: a.value
4653
4674
  }, {
4654
- default: A(() => [
4675
+ default: x(() => [
4655
4676
  N(b, null, {
4656
- default: A(({ copyToClipboard: y }) => [
4677
+ default: x(({ copyToClipboard: y }) => [
4657
4678
  L("span", {
4658
4679
  class: "entity-link-copy-id",
4659
4680
  onClick: Ne(($) => c(y), ["stop"])
4660
4681
  }, [
4661
- N(x(vi), {
4682
+ N(C(vi), {
4662
4683
  class: "copy-icon",
4663
- color: x(fr),
4684
+ color: C(fr),
4664
4685
  "data-testid": "copy-id",
4665
- size: x(mr)
4686
+ size: C(mr)
4666
4687
  }, null, 8, ["color", "size"])
4667
- ], 8, ss)
4688
+ ], 8, cs)
4668
4689
  ]),
4669
4690
  _: 1
4670
4691
  })
4671
4692
  ]),
4672
4693
  _: 1
4673
- }, 8, ["text"])) : P("", !0)
4694
+ }, 8, ["text"])) : D("", !0)
4674
4695
  ]);
4675
4696
  };
4676
4697
  }
4677
- }), Us = /* @__PURE__ */ ce(cs, [["__scopeId", "data-v-96efdfa5"]]), us = { class: "kong-ui-public-entity-empty-state" }, ds = { class: "entity-empty-state-content" }, fs = {
4698
+ }), qs = /* @__PURE__ */ ce(us, [["__scopeId", "data-v-96efdfa5"]]), ds = { class: "kong-ui-public-entity-empty-state" }, fs = { class: "entity-empty-state-content" }, ps = {
4678
4699
  key: 0,
4679
4700
  class: "empty-state-image"
4680
- }, ps = {
4701
+ }, ms = {
4681
4702
  key: 1,
4682
4703
  class: "entity-empty-state-title"
4683
- }, ms = {
4704
+ }, gs = {
4684
4705
  key: 2,
4685
4706
  class: "entity-empty-state-description"
4686
- }, gs = {
4707
+ }, hs = {
4687
4708
  key: 3,
4688
4709
  class: "entity-empty-state-pricing"
4689
- }, hs = {
4710
+ }, ys = {
4690
4711
  key: 0,
4691
4712
  class: "entity-empty-state-message"
4692
- }, ys = {
4713
+ }, vs = {
4693
4714
  key: 1,
4694
4715
  class: "entity-empty-state-action"
4695
- }, vs = {
4716
+ }, bs = {
4696
4717
  key: 2,
4697
4718
  class: "entity-empty-state-card-container"
4698
- }, bs = {
4719
+ }, ks = {
4699
4720
  key: 0,
4700
4721
  class: "feature-icon"
4701
- }, ks = { class: "card-header" }, Cs = ["title"], xs = {
4722
+ }, Cs = { class: "card-header" }, xs = ["title"], As = {
4702
4723
  key: 3,
4703
4724
  class: "entity-empty-state-bottom-container"
4704
- }, As = /* @__PURE__ */ Q({
4725
+ }, ws = /* @__PURE__ */ Q({
4705
4726
  __name: "EntityEmptyState",
4706
4727
  props: {
4707
4728
  appearance: {
4708
4729
  type: String,
4709
4730
  default: () => "primary",
4710
- validator: (e) => kt.includes(e)
4731
+ validator: (e) => Ct.includes(e)
4711
4732
  },
4712
4733
  title: {
4713
4734
  type: String,
@@ -4742,100 +4763,100 @@ const Hl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, Yl = {
4742
4763
  },
4743
4764
  emits: ["click:create", "click:learn-more"],
4744
4765
  setup(e) {
4745
- const t = e, { i18n: { t: n } } = G.useI18n(), i = M(!1), r = S(() => i.value && !!t.actionButtonText), o = S(() => kt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
4746
- return ot(async () => {
4766
+ const t = e, { i18n: { t: n } } = z.useI18n(), i = M(!1), r = _(() => i.value && !!t.actionButtonText), o = _(() => Ct.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
4767
+ return lt(async () => {
4747
4768
  i.value = await t.canCreate();
4748
- }), at(() => oi(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
4769
+ }), ot(() => oi(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
4749
4770
  Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) => {
4750
4771
  const s = U("KCard");
4751
- return g(), _("div", us, [
4752
- L("div", ds, [
4753
- a.$slots.image ? (g(), _("div", fs, [
4772
+ return g(), S("div", ds, [
4773
+ L("div", fs, [
4774
+ a.$slots.image ? (g(), S("div", ps, [
4754
4775
  j(a.$slots, "image", {}, void 0, !0)
4755
- ])) : P("", !0),
4756
- e.title || a.$slots.title ? (g(), _("div", ps, [
4776
+ ])) : D("", !0),
4777
+ e.title || a.$slots.title ? (g(), S("div", ms, [
4757
4778
  L("h1", {
4758
- class: me(o.value)
4779
+ class: pe(o.value)
4759
4780
  }, [
4760
4781
  j(a.$slots, "title", {}, () => [
4761
- H(F(e.title), 1)
4782
+ q(I(e.title), 1)
4762
4783
  ], !0)
4763
4784
  ], 2)
4764
- ])) : P("", !0),
4765
- e.description || a.$slots.default ? (g(), _("div", ms, [
4785
+ ])) : D("", !0),
4786
+ e.description || a.$slots.default ? (g(), S("div", gs, [
4766
4787
  j(a.$slots, "default", {}, () => [
4767
- L("p", null, F(e.description), 1)
4788
+ L("p", null, I(e.description), 1)
4768
4789
  ], !0)
4769
- ])) : P("", !0),
4770
- e.pricing || a.$slots.pricing ? (g(), _("div", gs, [
4790
+ ])) : D("", !0),
4791
+ e.pricing || a.$slots.pricing ? (g(), S("div", hs, [
4771
4792
  L("p", null, [
4772
- L("b", null, F(x(n)("emptyState.pricingTitle")), 1),
4773
- l[2] || (l[2] = H()),
4793
+ L("b", null, I(C(n)("emptyState.pricingTitle")), 1),
4794
+ l[2] || (l[2] = q()),
4774
4795
  j(a.$slots, "pricing", {}, () => [
4775
- H(F(e.pricing), 1)
4796
+ q(I(e.pricing), 1)
4776
4797
  ], !0)
4777
4798
  ])
4778
- ])) : P("", !0)
4799
+ ])) : D("", !0)
4779
4800
  ]),
4780
- a.$slots.message ? (g(), _("div", hs, [
4801
+ a.$slots.message ? (g(), S("div", ys, [
4781
4802
  j(a.$slots, "message", {}, void 0, !0)
4782
- ])) : P("", !0),
4783
- r.value || e.learnMore || a.$slots.actions ? (g(), _("div", ys, [
4803
+ ])) : D("", !0),
4804
+ r.value || e.learnMore || a.$slots.actions ? (g(), S("div", vs, [
4784
4805
  j(a.$slots, "actions", {}, () => [
4785
- r.value ? (g(), O(x(yt), {
4806
+ r.value ? (g(), B(C(vt), {
4786
4807
  key: 0,
4787
4808
  appearance: "primary",
4788
4809
  "data-testid": "entity-create-button",
4789
4810
  size: e.appearance === "secondary" ? "medium" : "large",
4790
4811
  onClick: l[0] || (l[0] = (d) => a.$emit("click:create"))
4791
4812
  }, {
4792
- default: A(() => [
4793
- N(x(Qt)),
4794
- H(" " + F(e.actionButtonText), 1)
4813
+ default: x(() => [
4814
+ N(C(Qt)),
4815
+ q(" " + I(e.actionButtonText), 1)
4795
4816
  ]),
4796
4817
  _: 1
4797
- }, 8, ["size"])) : P("", !0),
4798
- e.learnMore ? (g(), O(x(yt), {
4818
+ }, 8, ["size"])) : D("", !0),
4819
+ e.learnMore ? (g(), B(C(vt), {
4799
4820
  key: 1,
4800
4821
  appearance: "secondary",
4801
4822
  "data-testid": "entity-learn-more-button",
4802
4823
  size: e.appearance === "secondary" ? "medium" : "large",
4803
4824
  onClick: l[1] || (l[1] = (d) => a.$emit("click:learn-more"))
4804
4825
  }, {
4805
- default: A(() => [
4806
- N(x(zt), { decorative: "" }),
4807
- H(" " + F(x(n)("emptyState.learnMore")), 1)
4826
+ default: x(() => [
4827
+ N(C(zt), { decorative: "" }),
4828
+ q(" " + I(C(n)("emptyState.learnMore")), 1)
4808
4829
  ]),
4809
4830
  _: 1
4810
- }, 8, ["size"])) : P("", !0)
4831
+ }, 8, ["size"])) : D("", !0)
4811
4832
  ], !0)
4812
- ])) : P("", !0),
4813
- e.features.length ? (g(), _("div", vs, [
4814
- (g(!0), _(fe, null, de(e.features, (d, c) => (g(), O(s, {
4833
+ ])) : D("", !0),
4834
+ e.features.length ? (g(), S("div", bs, [
4835
+ (g(!0), S(fe, null, de(e.features, (d, c) => (g(), B(s, {
4815
4836
  key: `feature-${c}-card`,
4816
4837
  class: "entity-empty-state-card"
4817
4838
  }, {
4818
- title: A(() => [
4819
- a.$slots[`feature-${c}-icon`] ? (g(), _("div", bs, [
4839
+ title: x(() => [
4840
+ a.$slots[`feature-${c}-icon`] ? (g(), S("div", ks, [
4820
4841
  j(a.$slots, `feature-${c}-icon`, {}, void 0, !0)
4821
- ])) : P("", !0),
4822
- L("div", ks, F(d.title), 1)
4842
+ ])) : D("", !0),
4843
+ L("div", Cs, I(d.title), 1)
4823
4844
  ]),
4824
- default: A(() => [
4845
+ default: x(() => [
4825
4846
  L("div", {
4826
4847
  title: d.description
4827
- }, F(d.description), 9, Cs)
4848
+ }, I(d.description), 9, xs)
4828
4849
  ]),
4829
4850
  _: 2
4830
4851
  }, 1024))), 128))
4831
- ])) : P("", !0),
4832
- a.$slots.bottom ? (g(), _("div", xs, [
4852
+ ])) : D("", !0),
4853
+ a.$slots.bottom ? (g(), S("div", As, [
4833
4854
  j(a.$slots, "bottom", {}, void 0, !0)
4834
- ])) : P("", !0)
4855
+ ])) : D("", !0)
4835
4856
  ]);
4836
4857
  };
4837
4858
  }
4838
- }), qs = /* @__PURE__ */ ce(As, [["__scopeId", "data-v-6d4a0f89"]]), ws = { key: 1 }, Hs = /* @__PURE__ */ Q({
4859
+ }), Hs = /* @__PURE__ */ ce(ws, [["__scopeId", "data-v-6d4a0f89"]]), _s = { key: 1 }, Ys = /* @__PURE__ */ Q({
4839
4860
  __name: "TableTags",
4840
4861
  props: {
4841
4862
  /** The tags to display in the table */
@@ -4849,7 +4870,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
4849
4870
  }
4850
4871
  },
4851
4872
  setup(e) {
4852
- const t = e, n = S(() => {
4873
+ const t = e, n = _(() => {
4853
4874
  if (Array.isArray(t.tags))
4854
4875
  return t.tags;
4855
4876
  if (typeof t.tags == "string")
@@ -4863,45 +4884,46 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
4863
4884
  });
4864
4885
  return (i, r) => {
4865
4886
  var o;
4866
- return ((o = n.value) == null ? void 0 : o.length) > 0 ? (g(), O(x(di), { key: 0 }, {
4867
- default: A(() => [
4868
- (g(!0), _(fe, null, de(n.value, (a) => (g(), O(x(fi), {
4887
+ return ((o = n.value) == null ? void 0 : o.length) > 0 ? (g(), B(C(di), { key: 0 }, {
4888
+ default: x(() => [
4889
+ (g(!0), S(fe, null, de(n.value, (a) => (g(), B(C(fi), {
4869
4890
  key: a,
4870
4891
  "max-width": e.tagMaxWidth,
4871
4892
  onClick: r[0] || (r[0] = Ne(() => {
4872
4893
  }, ["stop"]))
4873
4894
  }, {
4874
- default: A(() => [
4875
- H(F(a), 1)
4895
+ default: x(() => [
4896
+ q(I(a), 1)
4876
4897
  ]),
4877
4898
  _: 2
4878
4899
  }, 1032, ["max-width"]))), 128))
4879
4900
  ]),
4880
4901
  _: 1
4881
- })) : (g(), _("span", ws, "-"));
4902
+ })) : (g(), S("span", _s, "-"));
4882
4903
  };
4883
4904
  }
4884
- }), { useAxios: Vs, useDeleteUrlBuilder: Ys, useErrors: Ws, useExternalLinkCreator: Js, useFetchUrlBuilder: Gs, useFetcher: zs, useFetcherCacheKey: Qs, useDebouncedFilter: Zs, useStringHelpers: Xs, useHelpers: ec, useGatewayFeatureSupported: tc, useTruncationDetector: nc, useValidators: ic, useSchemaProvider: rc, useTableState: ac } = G;
4905
+ }), { useAxios: Vs, useDeleteUrlBuilder: Ws, useErrors: Js, useExternalLinkCreator: Gs, useFetchUrlBuilder: zs, useFetcher: Qs, useFetcherCacheKey: Zs, useDebouncedFilter: Xs, useStringHelpers: ec, useHelpers: tc, useGatewayFeatureSupported: nc, useTruncationDetector: ic, useValidators: rc, useSchemaProvider: ac, useTableState: oc } = z;
4885
4906
  export {
4886
- kt as Appearances,
4907
+ Ct as Appearances,
4887
4908
  ol as ConfigCardDisplay,
4888
4909
  on as ConfigCardItem,
4889
4910
  le as ConfigurationSchemaSection,
4890
- J as ConfigurationSchemaType,
4911
+ G as ConfigurationSchemaType,
4891
4912
  Xn as DeckCodeBlock,
4892
- Bs as EntityBaseConfigCard,
4893
- Ls as EntityBaseForm,
4913
+ Ls as EntityBaseConfigCard,
4914
+ Rs as EntityBaseForm,
4894
4915
  Ci as EntityBaseFormType,
4895
- Rs as EntityBaseTable,
4896
- Ks as EntityDeleteModal,
4897
- qs as EntityEmptyState,
4898
- Ns as EntityFilter,
4899
- js as EntityFormBlock,
4900
- Ps as EntityFormSection,
4901
- Us as EntityLink,
4902
- Ms as EntityToggleModal,
4916
+ Ks as EntityBaseTable,
4917
+ Ns as EntityDeleteModal,
4918
+ Hs as EntityEmptyState,
4919
+ Ms as EntityFilter,
4920
+ Us as EntityFormBlock,
4921
+ js as EntityFormSection,
4922
+ qs as EntityLink,
4923
+ Ps as EntityToggleModal,
4903
4924
  ki as EntityTypes,
4904
4925
  xi as EventGatewayTypesArray,
4926
+ fl as FEATURE_FLAGS,
4905
4927
  he as FetcherStatus,
4906
4928
  Ai as IdentityTypesArray,
4907
4929
  lr as InternalLinkItem,
@@ -4909,23 +4931,23 @@ export {
4909
4931
  Ds as PermissionsWrapper,
4910
4932
  Zt as SupportedEntityDeckArray,
4911
4933
  Ee as SupportedEntityType,
4912
- Ve as SupportedEntityTypesArray,
4913
- Hs as TableTags,
4934
+ Ye as SupportedEntityTypesArray,
4935
+ Ys as TableTags,
4914
4936
  Zn as TerraformCodeBlock,
4915
4937
  Qn as YamlCodeBlock,
4916
4938
  Vs as useAxios,
4917
- Zs as useDebouncedFilter,
4918
- Ys as useDeleteUrlBuilder,
4919
- Ws as useErrors,
4920
- Js as useExternalLinkCreator,
4921
- Gs as useFetchUrlBuilder,
4922
- zs as useFetcher,
4923
- Qs as useFetcherCacheKey,
4924
- tc as useGatewayFeatureSupported,
4925
- ec as useHelpers,
4926
- rc as useSchemaProvider,
4927
- Xs as useStringHelpers,
4928
- ac as useTableState,
4929
- nc as useTruncationDetector,
4930
- ic as useValidators
4939
+ Xs as useDebouncedFilter,
4940
+ Ws as useDeleteUrlBuilder,
4941
+ Js as useErrors,
4942
+ Gs as useExternalLinkCreator,
4943
+ zs as useFetchUrlBuilder,
4944
+ Qs as useFetcher,
4945
+ Zs as useFetcherCacheKey,
4946
+ nc as useGatewayFeatureSupported,
4947
+ tc as useHelpers,
4948
+ ac as useSchemaProvider,
4949
+ ec as useStringHelpers,
4950
+ oc as useTableState,
4951
+ ic as useTruncationDetector,
4952
+ rc as useValidators
4931
4953
  };