@kong-ui-public/entities-shared 3.10.1 → 3.10.2

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,17 +1,17 @@
1
- import { inject as Ot, ref as B, computed as w, unref as _, toValue as Ln, watch as ke, provide as Lt, toRef as Rn, defineComponent as G, openBlock as v, createBlock as j, resolveDynamicComponent as Ne, normalizeClass as fe, withCtx as A, createElementBlock as L, createElementVNode as M, toDisplayString as N, createCommentVNode as P, Fragment as ce, renderList as oe, resolveComponent as D, createVNode as K, createTextVNode as Y, useCssVars as Rt, useSlots as Ze, renderSlot as V, createSlots as Ce, normalizeProps as Bn, guardReactiveProps as Nn, mergeProps as Kn, onBeforeMount as Bt, withModifiers as Ye, onMounted as Mn, onUnmounted as Dn, withDirectives as me, vShow as he, withKeys as jn, Teleport as Un } from "vue";
1
+ import { inject as Ft, ref as B, computed as w, unref as k, toValue as Ln, watch as _e, provide as Lt, toRef as Rn, defineComponent as J, openBlock as g, createBlock as M, resolveDynamicComponent as Ke, normalizeClass as fe, withCtx as C, createElementBlock as F, createElementVNode as D, toDisplayString as N, createCommentVNode as P, Fragment as le, renderList as oe, resolveComponent as j, createVNode as K, createTextVNode as H, useCssVars as Rt, useSlots as Ze, renderSlot as V, createSlots as Ce, normalizeProps as Bn, guardReactiveProps as Nn, mergeProps as Kn, onBeforeMount as Bt, withModifiers as Oe, onMounted as Mn, onUnmounted as Dn, withDirectives as me, vShow as he, withKeys as jn, Teleport as Un } from "vue";
2
2
  import ct from "axios";
3
3
  import { createI18n as Pn, i18nTComponent as qn } from "@kong-ui-public/i18n";
4
- import { BadgeMethodAppearances as Hn } from "@kong/kongponents";
5
- import { BookIcon as Yn, AddIcon as Vn, CloseIcon as Wn, ChevronDownIcon as Jn, CopyIcon as Gn } from "@kong/icons";
6
- import { useRouter as zn } from "vue-router";
7
- var Qn = /* @__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))(Qn || {}), Zn = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Zn || {}), ue = /* @__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))(ue || {}), Xe = /* @__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.Other = "other", e))(Xe || {});
8
- const Ke = Object.values(Xe);
4
+ import { BadgeMethodAppearances as Hn, KTruncate as Yn, KBadge as Vn } from "@kong/kongponents";
5
+ import { BookIcon as Wn, AddIcon as Jn, CloseIcon as Gn, ChevronDownIcon as zn, CopyIcon as Qn } from "@kong/icons";
6
+ import { useRouter as Zn } from "vue-router";
7
+ var Xn = /* @__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))(Xn || {}), er = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(er || {}), ue = /* @__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))(ue || {}), Xe = /* @__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.Other = "other", e))(Xe || {});
8
+ const Me = Object.values(Xe);
9
9
  var U = /* @__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))(U || {}), ie = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ie || {});
10
- function Xn() {
10
+ function tr() {
11
11
  return {
12
12
  getAxiosInstance: (e = {}) => {
13
13
  try {
14
- const t = Ot("get-axios-instance", void 0);
14
+ const t = Ft("get-axios-instance", void 0);
15
15
  return typeof t == "function" ? t(e) : ct.create({
16
16
  withCredentials: !0,
17
17
  timeout: 3e4,
@@ -31,7 +31,7 @@ function Xn() {
31
31
  }
32
32
  };
33
33
  }
34
- function er() {
34
+ function nr() {
35
35
  return {
36
36
  debounce: (e, t) => {
37
37
  let n;
@@ -43,13 +43,13 @@ function er() {
43
43
  }
44
44
  };
45
45
  }
46
- const je = "khcp-user-table-preferences", tr = {
46
+ const Ue = "khcp-user-table-preferences", rr = {
47
47
  pageSize: 30,
48
48
  sortColumnKey: void 0,
49
49
  sortColumnOrder: void 0,
50
50
  columnVisibility: {}
51
51
  };
52
- function nr() {
52
+ function ir() {
53
53
  const e = (n) => {
54
54
  if (typeof n == "string")
55
55
  try {
@@ -59,44 +59,44 @@ function nr() {
59
59
  return;
60
60
  }
61
61
  }, t = () => {
62
- const n = e(localStorage.getItem(je));
62
+ const n = e(localStorage.getItem(Ue));
63
63
  return !n || !Object.keys(n).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(n));
64
64
  };
65
65
  return {
66
66
  setTablePreferences: (n, r) => {
67
67
  try {
68
68
  const i = t();
69
- i.set(n, r), localStorage.setItem(je, JSON.stringify(Object.fromEntries(i.entries())));
69
+ i.set(n, r), localStorage.setItem(Ue, JSON.stringify(Object.fromEntries(i.entries())));
70
70
  } catch (i) {
71
71
  console.error("useTablePreferences(setTablePreferences)", i);
72
72
  }
73
73
  },
74
74
  getTablePreferences: (n, r) => {
75
75
  const i = t();
76
- return (i == null ? void 0 : i.get(n)) || void 0 || r || tr;
76
+ return (i == null ? void 0 : i.get(n)) || void 0 || r || rr;
77
77
  },
78
78
  deleteAllTablePreferences: () => {
79
- localStorage.removeItem(je);
79
+ localStorage.removeItem(Ue);
80
80
  }
81
81
  };
82
82
  }
83
83
  function et(e = {}) {
84
- const { getAxiosInstance: t } = Xn();
84
+ const { getAxiosInstance: t } = tr();
85
85
  return {
86
86
  axiosInstance: t(e)
87
87
  };
88
88
  }
89
- const rr = {
89
+ const ar = {
90
90
  actions: {
91
91
  copyId: "Copy ID",
92
92
  copied_id: 'Copied "{id}" to the clipboard',
93
93
  copyToClipboard: "Copied successfully!",
94
94
  copyToClipboardFailed: "Failed to copy to the clipboard"
95
95
  }
96
- }, ir = {
96
+ }, or = {
97
97
  message: "Are you sure you want to delete this {entityType}?",
98
98
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
99
- }, ar = {
99
+ }, lr = {
100
100
  actions: {
101
101
  viewConfiguration: "View Configuration",
102
102
  save: "Save",
@@ -113,13 +113,13 @@ const rr = {
113
113
  errors: {
114
114
  edit: "The entity could not be edited at this time."
115
115
  }
116
- }, or = {
116
+ }, cr = {
117
117
  emptyState: {
118
118
  noSearchResultsTitle: "No results found",
119
119
  noSearchResultsMessage: "Please adjust the criteria and try again.",
120
120
  noSearchResultsCtaText: "Clear"
121
121
  }
122
- }, lr = {
122
+ }, sr = {
123
123
  title: "Configuration",
124
124
  actions: {
125
125
  copy: "Copy JSON"
@@ -154,7 +154,7 @@ const rr = {
154
154
  entryTitle: "Entry {index}",
155
155
  structuredFormat: "Structured"
156
156
  }
157
- }, cr = {
157
+ }, ur = {
158
158
  filterButtonText: "Filter",
159
159
  fieldLabel: "Filter by:",
160
160
  inputPlaceholder: "Enter a value",
@@ -162,17 +162,17 @@ const rr = {
162
162
  applyButtonText: "Apply",
163
163
  clearButtonText: "Clear",
164
164
  clearAllButtonText: "Clear all filters"
165
- }, sr = {
165
+ }, dr = {
166
166
  errors: {
167
167
  fetch: "Could not fetch available items",
168
168
  invalid: "Please select a valid value"
169
169
  }
170
- }, ur = {
170
+ }, fr = {
171
171
  unexpected: "An unexpected error has occurred",
172
172
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
173
- }, dr = {
173
+ }, pr = {
174
174
  utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
175
- }, fr = {
175
+ }, mr = {
176
176
  enable: {
177
177
  title: "Enable {entityType}",
178
178
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -183,20 +183,20 @@ const rr = {
183
183
  message: "Are you sure you want to disable the {entityType} {entityName}?",
184
184
  confirmText: "Yes, disable"
185
185
  }
186
- }, pr = {
187
- global: rr,
188
- deleteModal: ir,
189
- baseForm: ar,
190
- baseTable: or,
191
- baseConfigCard: lr,
192
- filter: cr,
193
- debouncedFilter: sr,
194
- errors: ur,
195
- validationErrors: dr,
196
- toggleModal: fr
186
+ }, hr = {
187
+ global: ar,
188
+ deleteModal: or,
189
+ baseForm: lr,
190
+ baseTable: cr,
191
+ baseConfigCard: sr,
192
+ filter: ur,
193
+ debouncedFilter: dr,
194
+ errors: fr,
195
+ validationErrors: pr,
196
+ toggleModal: mr
197
197
  };
198
- function Me() {
199
- const e = Pn("en-us", pr);
198
+ function De() {
199
+ const e = Pn("en-us", hr);
200
200
  return {
201
201
  i18n: e,
202
202
  i18nT: qn(e)
@@ -245,20 +245,20 @@ function Nt() {
245
245
  isValidUuid: (o) => o ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(o) : !1
246
246
  };
247
247
  }
248
- function mr(e, t, n, r = {
248
+ function gr(e, t, n, r = {
249
249
  fetchedItemsKey: "data",
250
250
  searchKeys: ["id"]
251
251
  }) {
252
252
  n || (n = "1000");
253
- const { axiosInstance: i } = et(e.axiosRequestConfig), { i18n: { t: o } } = Me(), { debounce: a } = er(), l = a(async (E) => {
253
+ const { axiosInstance: i } = et(e.axiosRequestConfig), { i18n: { t: o } } = De(), { debounce: a } = nr(), l = a(async (E) => {
254
254
  await x(E);
255
- }, 200), c = B(!1), s = B(""), d = B(""), u = B([]), m = B([]), f = B(void 0), g = w(() => {
256
- const E = `${e.apiBaseUrl}${_(t)}`;
255
+ }, 200), c = B(!1), s = B(""), d = B(""), u = B([]), m = B([]), f = B(void 0), y = w(() => {
256
+ const E = `${e.apiBaseUrl}${k(t)}`;
257
257
  return e.app === "konnect" ? E.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? E.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : E;
258
- }), { isValidUuid: y } = Nt(), b = async () => {
258
+ }), { isValidUuid: v } = Nt(), b = async () => {
259
259
  try {
260
260
  c.value = !0;
261
- const { data: E } = await i.get(`${g.value}?size=${n}`);
261
+ const { data: E } = await i.get(`${y.value}?size=${n}`);
262
262
  E != null && E.next || (f.value = r.fetchedItemsKey in E ? E[r.fetchedItemsKey] : []), m.value = r.fetchedItemsKey in E ? E[r.fetchedItemsKey] : [], u.value = m.value;
263
263
  } catch {
264
264
  u.value = [], s.value = o("debouncedFilter.errors.fetch");
@@ -266,7 +266,7 @@ function mr(e, t, n, r = {
266
266
  c.value = !1;
267
267
  }
268
268
  }, S = B(""), x = async (E) => {
269
- var F, k, p;
269
+ var O, _, p;
270
270
  if (S.value !== E) {
271
271
  if (S.value = E ?? "", !E) {
272
272
  u.value = m.value;
@@ -275,29 +275,29 @@ function mr(e, t, n, r = {
275
275
  if (f.value === void 0)
276
276
  try {
277
277
  if (c.value = !0, s.value = "", d.value = "", e.app === "konnect") {
278
- const h = `${g.value}/${E}`, { data: T } = await i.get(`${h}?size=${n}`);
278
+ const h = `${y.value}/${E}`, { data: T } = await i.get(`${h}?size=${n}`);
279
279
  r.fetchedItemsKey in T ? u.value = T[r.fetchedItemsKey] : T != null && T[r.exactMatchKey ?? "id"] ? u.value = [T] : u.value = [];
280
280
  } else {
281
281
  const h = [];
282
- y(E) && r.searchKeys.includes("id") ? h.push((async () => {
283
- const { data: $ } = await i.get(`${g.value}/${E}`);
282
+ v(E) && r.searchKeys.includes("id") ? h.push((async () => {
283
+ const { data: $ } = await i.get(`${y.value}/${E}`);
284
284
  return [$[r.fetchedItemsKey] ?? $];
285
285
  })()) : h.push(
286
286
  ...r.searchKeys.filter(($) => $ !== "id").map(async ($) => {
287
- const { data: R } = await i.get(`${g.value}?${$}=${E}`);
287
+ const { data: R } = await i.get(`${y.value}?${$}=${E}`);
288
288
  return R[r.fetchedItemsKey];
289
289
  })
290
290
  );
291
291
  const T = await Promise.all(h), I = /* @__PURE__ */ new Set();
292
- u.value = [], (F = T == null ? void 0 : T.forEach) == null || F.call(T, ($) => {
292
+ u.value = [], (O = T == null ? void 0 : T.forEach) == null || O.call(T, ($) => {
293
293
  var R;
294
- (R = $ == null ? void 0 : $.forEach) == null || R.call($, (O) => {
295
- I.has(O.id) || (I.add(O.id), u.value.push(O));
294
+ (R = $ == null ? void 0 : $.forEach) == null || R.call($, (L) => {
295
+ I.has(L.id) || (I.add(L.id), u.value.push(L));
296
296
  });
297
297
  });
298
298
  }
299
299
  } catch (h) {
300
- ((k = h == null ? void 0 : h.response) == null ? void 0 : k.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], s.value = o("debouncedFilter.errors.fetch"));
300
+ ((_ = h == null ? void 0 : h.response) == null ? void 0 : _.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], s.value = o("debouncedFilter.errors.fetch"));
301
301
  } finally {
302
302
  c.value = !1;
303
303
  }
@@ -323,14 +323,14 @@ function mr(e, t, n, r = {
323
323
  debouncedQueryChange: l
324
324
  };
325
325
  }
326
- function hr(e, t) {
327
- const n = _(t), r = w(
326
+ function yr(e, t) {
327
+ const n = k(t), r = w(
328
328
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
329
329
  );
330
330
  return r.value.search = "", (i) => `${r.value.href}/${i}`;
331
331
  }
332
- function gr() {
333
- const { i18n: { t: e } } = Me();
332
+ function vr() {
333
+ const { i18n: { t: e } } = De();
334
334
  return {
335
335
  getMessageFromError: (n) => {
336
336
  var r, i, o, a;
@@ -359,7 +359,7 @@ function gr() {
359
359
  }
360
360
  };
361
361
  }
362
- function yr(e) {
362
+ function br(e) {
363
363
  const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
364
364
  try {
365
365
  const r = e.join("/"), i = `${n}${r}`, o = e.some((l) => l.trim() === "");
@@ -371,7 +371,7 @@ function yr(e) {
371
371
  }
372
372
  }
373
373
  function Kt(e, t) {
374
- const n = B(_(e)), r = B(_(t)), i = w(
374
+ const n = B(k(e)), r = B(k(t)), i = w(
375
375
  () => !!(n.value.app === "konnect" || n.value.isExactMatch)
376
376
  ), o = w(
377
377
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
@@ -380,16 +380,16 @@ function Kt(e, t) {
380
380
  const { page: l, pageSize: c, offset: s, sortColumnKey: d, sortColumnOrder: u, query: m } = a;
381
381
  try {
382
382
  let f = new URL(o.value.href);
383
- return i.value && m ? (f.search = "", f = n.value.isExactMatch ? new URL(`${f.href}/${m}`) : new URL(`${f.href}?filter[name][contains]=${m}`)) : (i.value || new URLSearchParams(m).forEach((g, y) => {
384
- f.searchParams.append(y, g);
383
+ return i.value && m ? (f.search = "", f = n.value.isExactMatch ? new URL(`${f.href}/${m}`) : new URL(`${f.href}?filter[name][contains]=${m}`)) : (i.value || new URLSearchParams(m).forEach((y, v) => {
384
+ f.searchParams.append(v, y);
385
385
  }), d && f.searchParams.append("sort_by", d), u === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(c))), s && l !== 1 && f.searchParams.append("offset", String(s)), f.href;
386
386
  } catch (f) {
387
387
  return console.error("RouteList(fetcher)", f), r.value;
388
388
  }
389
389
  };
390
390
  }
391
- function vr(e, t, n) {
392
- const r = B(!0), i = _(t), { axiosInstance: o } = et(e.axiosRequestConfig), a = Kt(e, i), l = B({
391
+ function xr(e, t, n) {
392
+ const r = B(!0), i = k(t), { axiosInstance: o } = et(e.axiosRequestConfig), a = Kt(e, i), l = B({
393
393
  status: ue.Idle
394
394
  });
395
395
  return { fetcher: async (s) => {
@@ -402,15 +402,15 @@ function vr(e, t, n) {
402
402
  const f = await o.get(m);
403
403
  if (f.status >= 400)
404
404
  throw f;
405
- const g = f.data, y = d && d.replace(/[^\w-_]/gi, "");
405
+ const y = f.data, v = d && d.replace(/[^\w-_]/gi, "");
406
406
  let b;
407
- g[y] ? b = Array.isArray(g[y]) ? g[y] : [g[y]] : Array.isArray(g) ? b = g : b = Object.keys(g).length ? [g] : [];
407
+ y[v] ? b = Array.isArray(y[v]) ? y[v] : [y[v]] : Array.isArray(y) ? b = y : b = Object.keys(y).length ? [y] : [];
408
408
  const S = {
409
409
  data: b,
410
410
  total: b.length,
411
- ...g.offset ? {
411
+ ...y.offset ? {
412
412
  pagination: {
413
- offset: g.offset
413
+ offset: y.offset
414
414
  }
415
415
  } : null
416
416
  };
@@ -438,7 +438,7 @@ function vr(e, t, n) {
438
438
  }
439
439
  }, fetcherState: l };
440
440
  }
441
- function br() {
441
+ function Cr() {
442
442
  const e = (r, i = "_") => r ? r.split(i).map((o) => o.toLowerCase() === "id" ? o.toUpperCase() : o.charAt(0).toUpperCase() + o.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
443
443
  return {
444
444
  capitalize: (r) => r ? r.replace(t, (i) => i.toUpperCase()) : "",
@@ -455,24 +455,24 @@ const Mt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
455
455
  }, ut = (e) => e === "*" || e === "x" || e === "X", dt = (e) => {
456
456
  const t = parseInt(e, 10);
457
457
  return isNaN(t) ? e : t;
458
- }, xr = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Cr = (e, t) => {
458
+ }, Ar = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], _r = (e, t) => {
459
459
  if (ut(e) || ut(t))
460
460
  return 0;
461
- const [n, r] = xr(dt(e), dt(t));
461
+ const [n, r] = Ar(dt(e), dt(t));
462
462
  return n > r ? 1 : n < r ? -1 : 0;
463
463
  }, ft = (e, t) => {
464
464
  for (let n = 0; n < Math.max(e.length, t.length); n++) {
465
- const r = Cr(e[n] || "0", t[n] || "0");
465
+ const r = _r(e[n] || "0", t[n] || "0");
466
466
  if (r !== 0)
467
467
  return r;
468
468
  }
469
469
  return 0;
470
- }, Ar = (e, t) => {
470
+ }, kr = (e, t) => {
471
471
  const n = st(e), r = st(t), i = n.pop(), o = r.pop(), a = ft(n, r);
472
472
  return a !== 0 ? a : i && o ? ft(i.split("."), o.split(".")) : i || o ? i ? -1 : 1 : 0;
473
473
  }, pt = (e, t, n) => {
474
- kr(n);
475
- const r = Ar(e, t);
474
+ wr(n);
475
+ const r = kr(e, t);
476
476
  return Dt[n].includes(r);
477
477
  }, Dt = {
478
478
  ">": [1],
@@ -481,18 +481,18 @@ const Mt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
481
481
  "<=": [-1, 0],
482
482
  "<": [-1],
483
483
  "!=": [-1, 1]
484
- }, mt = Object.keys(Dt), kr = (e) => {
484
+ }, mt = Object.keys(Dt), wr = (e) => {
485
485
  if (typeof e != "string")
486
486
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
487
487
  if (mt.indexOf(e) === -1)
488
488
  throw new Error(`Invalid operator, expected one of ${mt.join("|")}`);
489
- }, _r = (e) => typeof e == "string" && /^[v\d]/.test(e) && Mt.test(e);
490
- function wr(e) {
489
+ }, Sr = (e) => typeof e == "string" && /^[v\d]/.test(e) && Mt.test(e);
490
+ function Ir(e) {
491
491
  const { gatewayInfo: t, supportedRange: n } = e;
492
492
  if (!t)
493
493
  return !0;
494
494
  const { edition: r, version: i } = t;
495
- if (!_r(i))
495
+ if (!Sr(i))
496
496
  return console.error("Invalid version"), !1;
497
497
  const o = n[r];
498
498
  if (!o)
@@ -500,46 +500,46 @@ function wr(e) {
500
500
  const [a, l] = o;
501
501
  return !(a && pt(i, a, "<") || l && pt(i, l, ">"));
502
502
  }
503
- function Sr(e) {
503
+ function Tr(e) {
504
504
  const t = B(0), n = B(0), r = B(!1);
505
- return ke(e, (o) => {
505
+ return _e(e, (o) => {
506
506
  o && !r.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, r.value = !0);
507
507
  }), {
508
508
  isTruncated: w(() => t.value < n.value)
509
509
  };
510
510
  }
511
- function Ir() {
512
- const { i18n: { t: e } } = Me();
511
+ function $r() {
512
+ const { i18n: { t: e } } = De();
513
513
  return {
514
514
  utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
515
515
  };
516
516
  }
517
- const Ve = Symbol("schema"), Tr = (e) => {
517
+ const Ve = Symbol("schema"), Er = (e) => {
518
518
  Lt(Ve, e);
519
- }, $r = (e) => {
519
+ }, Or = (e) => {
520
520
  var i, o;
521
- const t = Ot(Ve, void 0), n = (o = (i = t == null ? void 0 : t.value) == null ? void 0 : i.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), r = Rn(n == null ? void 0 : n[e]);
521
+ const t = Ft(Ve, void 0), n = (o = (i = t == null ? void 0 : t.value) == null ? void 0 : i.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), r = Rn(n == null ? void 0 : n[e]);
522
522
  return Lt(Ve, r), r;
523
- }, H = {
523
+ }, Y = {
524
524
  useAxios: et,
525
- useDebouncedFilter: mr,
526
- useDeleteUrlBuilder: hr,
527
- useErrors: gr,
528
- useExternalLinkCreator: yr,
529
- useFetcher: vr,
525
+ useDebouncedFilter: gr,
526
+ useDeleteUrlBuilder: yr,
527
+ useErrors: vr,
528
+ useExternalLinkCreator: br,
529
+ useFetcher: xr,
530
530
  useFetchUrlBuilder: Kt,
531
531
  useHelpers: Nt,
532
- useStringHelpers: br,
533
- useI18n: Me,
534
- useGatewayFeatureSupported: wr,
535
- useTruncationDetector: Sr,
536
- useValidators: Ir,
537
- useSchemaProvider: Tr,
538
- useSubSchema: $r
539
- }, Er = {
532
+ useStringHelpers: Cr,
533
+ useI18n: De,
534
+ useGatewayFeatureSupported: Ir,
535
+ useTruncationDetector: Tr,
536
+ useValidators: $r,
537
+ useSchemaProvider: Er,
538
+ useSubSchema: Or
539
+ }, Fr = {
540
540
  key: 0,
541
541
  class: "config-card-fieldset-title"
542
- }, Fr = /* @__PURE__ */ G({
542
+ }, Lr = /* @__PURE__ */ J({
543
543
  __name: "JsonCardItem",
544
544
  props: {
545
545
  item: {
@@ -556,25 +556,25 @@ const Ve = Symbol("schema"), Tr = (e) => {
556
556
  }
557
557
  },
558
558
  setup(e) {
559
- const t = e, { i18n: { t: n } } = H.useI18n(), { convertKeyToTitle: r } = H.useStringHelpers(), i = w(() => t.item.key ?? "json-array-item"), o = w(() => t.item.value ?? t.item), a = w(() => {
559
+ const t = e, { i18n: { t: n } } = Y.useI18n(), { convertKeyToTitle: r } = Y.useStringHelpers(), i = w(() => t.item.key ?? "json-array-item"), o = w(() => t.item.value ?? t.item), a = w(() => {
560
560
  const c = JSON.parse(JSON.stringify(o.value));
561
561
  return t.isArrayItem && delete c.name, c;
562
562
  }), l = w(() => {
563
563
  var c;
564
564
  return t.isArrayItem ? (c = o.value) != null && c.name ? r(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
565
565
  });
566
- return (c, s) => (v(), j(Ne(e.isArrayItem ? "fieldset" : "div"), {
566
+ return (c, s) => (g(), M(Ke(e.isArrayItem ? "fieldset" : "div"), {
567
567
  class: fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
568
568
  }, {
569
- default: A(() => [
570
- e.isArrayItem ? (v(), L("legend", Er, [
571
- M("b", null, N(l.value), 1)
569
+ default: C(() => [
570
+ e.isArrayItem ? (g(), F("legend", Fr, [
571
+ D("b", null, N(l.value), 1)
572
572
  ])) : P("", !0),
573
- (v(!0), L(ce, null, oe(Object.keys(a.value), (d, u) => (v(), j(Ut, {
573
+ (g(!0), F(le, null, oe(Object.keys(a.value), (d, u) => (g(), M(Ut, {
574
574
  key: `${i.value}-property-${u}`,
575
575
  item: {
576
576
  key: d,
577
- label: _(r)(d),
577
+ label: k(r)(d),
578
578
  value: a.value[d]
579
579
  }
580
580
  }, null, 8, ["item"]))), 128))
@@ -587,7 +587,7 @@ const Ve = Symbol("schema"), Tr = (e) => {
587
587
  for (const [r, i] of t)
588
588
  n[r] = i;
589
589
  return n;
590
- }, jt = /* @__PURE__ */ ae(Fr, [["__scopeId", "data-v-68ca83ec"]]), Or = /* @__PURE__ */ G({
590
+ }, jt = /* @__PURE__ */ ae(Lr, [["__scopeId", "data-v-68ca83ec"]]), Rr = /* @__PURE__ */ J({
591
591
  __name: "InternalLinkItem",
592
592
  props: {
593
593
  item: {
@@ -597,24 +597,24 @@ const Ve = Symbol("schema"), Tr = (e) => {
597
597
  },
598
598
  emits: ["navigation-click"],
599
599
  setup(e) {
600
- const { i18n: { t } } = H.useI18n();
600
+ const { i18n: { t } } = Y.useI18n();
601
601
  return (n, r) => {
602
- const i = D("KButton");
603
- return v(), L("div", null, [
602
+ const i = j("KButton");
603
+ return g(), F("div", null, [
604
604
  K(i, {
605
605
  appearance: "tertiary",
606
606
  class: "navigation-button",
607
607
  onClick: r[0] || (r[0] = (o) => n.$emit("navigation-click", e.item))
608
608
  }, {
609
- default: A(() => [
610
- Y(N(e.item.value || _(t)("baseConfigCard.commonFields.link")), 1)
609
+ default: C(() => [
610
+ H(N(e.item.value || k(t)("baseConfigCard.commonFields.link")), 1)
611
611
  ]),
612
612
  _: 1
613
613
  })
614
614
  ]);
615
615
  };
616
616
  }
617
- }), Lr = /* @__PURE__ */ ae(Or, [["__scopeId", "data-v-c96811e5"]]), Rr = /* @__PURE__ */ G({
617
+ }), Br = /* @__PURE__ */ ae(Rr, [["__scopeId", "data-v-c96811e5"]]), Nr = /* @__PURE__ */ J({
618
618
  __name: "StatusBadge",
619
619
  props: {
620
620
  status: {
@@ -623,24 +623,24 @@ const Ve = Symbol("schema"), Tr = (e) => {
623
623
  }
624
624
  },
625
625
  setup(e) {
626
- const { i18n: { t } } = H.useI18n();
626
+ const { i18n: { t } } = Y.useI18n();
627
627
  return (n, r) => {
628
- const i = D("KBadge");
629
- return v(), j(i, {
628
+ const i = j("KBadge");
629
+ return g(), M(i, {
630
630
  appearance: e.status ? "success" : "neutral"
631
631
  }, {
632
- default: A(() => [
633
- Y(N(e.status ? _(t)("baseConfigCard.statusBadge.enabledLabel") : _(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
632
+ default: C(() => [
633
+ H(N(e.status ? k(t)("baseConfigCard.statusBadge.enabledLabel") : k(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
634
634
  ]),
635
635
  _: 1
636
636
  }, 8, ["appearance"]);
637
637
  };
638
638
  }
639
- }), Br = "#0044f4", Nr = "#e0e4ea", Kr = "#afb7c5", Mr = "#0044f4", Dr = "1px", jr = "16px", Ur = "20px", Pr = { class: "config-card-details-row" }, qr = ["data-testid"], Hr = ["data-testid"], Yr = ["data-testid"], Vr = ["data-testid"], Wr = { key: 1 }, Jr = ["data-testid"], Gr = ["data-testid"], zr = ["data-testid"], Qr = ["data-testid"], Zr = {
639
+ }), Kr = "#0044f4", Mr = "#e0e4ea", Dr = "#afb7c5", jr = "#0044f4", Ur = "1px", Pr = "16px", qr = "20px", Hr = { class: "config-card-details-row" }, Yr = ["data-testid"], Vr = ["data-testid"], Wr = ["data-testid"], Jr = ["data-testid"], Gr = { key: 1 }, zr = ["data-testid"], Qr = ["data-testid"], Zr = ["data-testid"], Xr = ["data-testid"], ei = {
640
640
  name: "ConfigCardItem",
641
- components: { JsonCardItem: jt, StatusBadge: Rr, InternalLinkItem: Lr }
642
- }, Xr = /* @__PURE__ */ G({
643
- ...Zr,
641
+ components: { JsonCardItem: jt, StatusBadge: Nr, InternalLinkItem: Br }
642
+ }, ti = /* @__PURE__ */ J({
643
+ ...ei,
644
644
  props: {
645
645
  item: {
646
646
  type: Object,
@@ -660,12 +660,12 @@ const Ve = Symbol("schema"), Tr = (e) => {
660
660
  emits: ["navigation-click"],
661
661
  setup(e, { emit: t }) {
662
662
  Rt((b) => ({
663
- "445df5cd": d.value ? "none" : `solid ${_(Dr)} ${_(Nr)}`,
663
+ "445df5cd": d.value ? "none" : `solid ${k(Ur)} ${k(Mr)}`,
664
664
  "36146f00": s.value && l.value ? "block" : "flex",
665
665
  41377040: s.value && l.value ? "100%" : n.slim ? "50%" : "25%",
666
666
  "4132e48a": s.value && l.value ? "100%" : n.slim ? "50%" : "75%"
667
667
  }));
668
- const n = e, r = t, i = Ze(), { i18n: { t: o, formatUnixTimeStamp: a } } = H.useI18n(), l = w(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), c = w(() => !!(n.item.tooltip || i["label-tooltip"])), s = w(() => n.item.type === U.Json || n.item.type === U.JsonArray), d = w(() => n.item.type === U.JsonArray), u = H.useSubSchema(n.item.key), m = w(() => {
668
+ const n = e, r = t, i = Ze(), { i18n: { t: o, formatUnixTimeStamp: a } } = Y.useI18n(), l = w(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), c = w(() => !!(n.item.tooltip || i["label-tooltip"])), s = w(() => n.item.type === U.Json || n.item.type === U.JsonArray), d = w(() => n.item.type === U.JsonArray), u = Y.useSubSchema(n.item.key), m = w(() => {
669
669
  var b;
670
670
  return n.item.type ? n.item.type : (b = u == null ? void 0 : u.value) != null && b.encrypted ? U.Redacted : void 0;
671
671
  }), f = w(() => {
@@ -789,109 +789,109 @@ const Ve = Symbol("schema"), Tr = (e) => {
789
789
  text: n.item.value
790
790
  };
791
791
  }
792
- }), g = B(), { isTruncated: y } = H.useTruncationDetector(g);
792
+ }), y = B(), { isTruncated: v } = Y.useTruncationDetector(y);
793
793
  return (b, S) => {
794
- const x = D("KLabel"), E = D("KBadge"), F = D("KCopy"), k = D("KTooltip");
795
- return v(), L("div", Pr, [
796
- M("div", {
794
+ const x = j("KLabel"), E = j("KBadge"), O = j("KCopy"), _ = j("KTooltip");
795
+ return g(), F("div", Hr, [
796
+ D("div", {
797
797
  class: "config-card-details-label",
798
798
  "data-testid": `${e.item.key}-label`
799
799
  }, [
800
800
  V(b.$slots, "label", { item: e.item }, () => [
801
801
  K(x, { "tooltip-attributes": { maxWidth: "500px" } }, Ce({
802
- default: A(() => [
803
- Y(N(e.item.label) + " ", 1)
802
+ default: C(() => [
803
+ H(N(e.item.label) + " ", 1)
804
804
  ]),
805
805
  _: 2
806
806
  }, [
807
807
  c.value ? {
808
808
  name: "tooltip",
809
- fn: A(() => [
810
- M("div", {
809
+ fn: C(() => [
810
+ D("div", {
811
811
  "data-testid": `${e.item.key}-label-tooltip`
812
812
  }, [
813
813
  V(b.$slots, "label-tooltip", {}, () => [
814
- Y(N(e.item.tooltip), 1)
814
+ H(N(e.item.tooltip), 1)
815
815
  ], !0)
816
- ], 8, Hr)
816
+ ], 8, Vr)
817
817
  ]),
818
818
  key: "0"
819
819
  } : void 0
820
820
  ]), 1024)
821
821
  ], !0)
822
- ], 8, qr),
823
- M("div", {
822
+ ], 8, Yr),
823
+ D("div", {
824
824
  class: "config-card-details-value",
825
825
  "data-testid": `${e.item.key}-property-value`
826
826
  }, [
827
827
  V(b.$slots, e.item.key, {
828
828
  rowValue: e.item.value
829
829
  }, () => [
830
- l.value ? (v(), L("div", Wr, [
831
- (v(), j(Ne(f.value.tag), Bn(Nn(f.value.attrs)), {
832
- default: A(() => [
833
- f.value.additionalComponent === "KBadge" ? (v(), L("div", {
830
+ l.value ? (g(), F("div", Gr, [
831
+ (g(), M(Ke(f.value.tag), Bn(Nn(f.value.attrs)), {
832
+ default: C(() => [
833
+ f.value.additionalComponent === "KBadge" ? (g(), F("div", {
834
834
  key: 0,
835
835
  "data-testid": `${e.item.key}-badge-tags`
836
836
  }, [
837
- (v(!0), L(ce, null, oe(e.item.value, (p, h) => (v(), j(E, {
837
+ (g(!0), F(le, null, oe(e.item.value, (p, h) => (g(), M(E, {
838
838
  key: `${e.item.key}-badge-tag-${h}`,
839
839
  class: "config-badge",
840
840
  "data-testid": `${e.item.key}-badge-tag-${h}`,
841
841
  tooltip: p,
842
842
  "truncation-tooltip": ""
843
843
  }, {
844
- default: A(() => [
845
- Y(N(p), 1)
844
+ default: C(() => [
845
+ H(N(p), 1)
846
846
  ]),
847
847
  _: 2
848
848
  }, 1032, ["data-testid", "tooltip"]))), 128))
849
- ], 8, Jr)) : P("", !0),
850
- f.value.additionalComponent === "KCopy" ? (v(), L("div", {
849
+ ], 8, zr)) : P("", !0),
850
+ f.value.additionalComponent === "KCopy" ? (g(), F("div", {
851
851
  key: 1,
852
852
  class: "copy-uuid-array",
853
853
  "data-testid": `${e.item.key}-copy-uuid-array`
854
854
  }, [
855
- (v(!0), L(ce, null, oe(e.item.value, (p, h) => (v(), j(F, Kn({ ref_for: !0 }, f.value.childAttrs, {
855
+ (g(!0), F(le, null, oe(e.item.value, (p, h) => (g(), M(O, Kn({ ref_for: !0 }, f.value.childAttrs, {
856
856
  key: `${e.item.key}-copy-uuid-${h}`,
857
857
  "data-testid": `${e.item.key}-copy-uuid-${h}`,
858
858
  text: p
859
859
  }), null, 16, ["data-testid", "text"]))), 128))
860
- ], 8, Gr)) : f.value.additionalComponent === "KMethodBadge" ? (v(), L("div", {
860
+ ], 8, Qr)) : f.value.additionalComponent === "KMethodBadge" ? (g(), F("div", {
861
861
  key: 2,
862
862
  class: "method-badge-array",
863
863
  "data-testid": `${e.item.key}-badge-methods`
864
864
  }, [
865
- (v(!0), L(ce, null, oe(e.item.value, (p, h) => (v(), j(E, {
865
+ (g(!0), F(le, null, oe(e.item.value, (p, h) => (g(), M(E, {
866
866
  key: `${e.item.key}-badge-method-${h}`,
867
- appearance: Object.values(_(Hn)).includes(p.toLowerCase()) ? p.toLowerCase() : "custom",
867
+ appearance: Object.values(k(Hn)).includes(p.toLowerCase()) ? p.toLowerCase() : "custom",
868
868
  class: "config-badge",
869
869
  "data-testid": `${e.item.key}-badge-method-${h}`
870
870
  }, {
871
- default: A(() => [
872
- Y(N(p), 1)
871
+ default: C(() => [
872
+ H(N(p), 1)
873
873
  ]),
874
874
  _: 2
875
875
  }, 1032, ["appearance", "data-testid"]))), 128))
876
- ], 8, zr)) : P("", !0),
877
- f.value.additionalComponent === "JsonCardItem" ? (v(), L("div", {
876
+ ], 8, Zr)) : P("", !0),
877
+ f.value.additionalComponent === "JsonCardItem" ? (g(), F("div", {
878
878
  key: 3,
879
879
  "data-testid": `${n.item.key}-json-array-content`
880
880
  }, [
881
- (v(!0), L(ce, null, oe(e.item.value, (p, h) => (v(), j(jt, {
881
+ (g(!0), F(le, null, oe(e.item.value, (p, h) => (g(), M(jt, {
882
882
  key: `json-array-item-${h}`,
883
883
  index: h,
884
884
  "is-array-item": "",
885
885
  item: p
886
886
  }, null, 8, ["index", "item"]))), 128))
887
- ], 8, Qr)) : (v(), j(k, {
887
+ ], 8, Xr)) : (g(), M(_, {
888
888
  key: 4,
889
- text: _(y) ? e.item.value : ""
889
+ text: k(v) ? e.item.value : ""
890
890
  }, {
891
- default: A(() => [
892
- M("span", {
891
+ default: C(() => [
892
+ D("span", {
893
893
  ref_key: "textContent",
894
- ref: g,
894
+ ref: y,
895
895
  class: fe(["attrs-data-text", { truncated: e.truncated }])
896
896
  }, N(f.value.text), 3)
897
897
  ]),
@@ -900,19 +900,19 @@ const Ve = Symbol("schema"), Tr = (e) => {
900
900
  ]),
901
901
  _: 1
902
902
  }, 16))
903
- ])) : (v(), L("div", {
903
+ ])) : (g(), F("div", {
904
904
  key: 0,
905
905
  "data-testid": `${e.item.key}-no-value`
906
- }, " – ", 8, Vr))
906
+ }, " – ", 8, Jr))
907
907
  ], !0)
908
- ], 8, Yr)
908
+ ], 8, Wr)
909
909
  ]);
910
910
  };
911
911
  }
912
- }), Ut = /* @__PURE__ */ ae(Xr, [["__scopeId", "data-v-2fde1e51"]]), ei = { class: "json-config" }, ti = {
912
+ }), Ut = /* @__PURE__ */ ae(ti, [["__scopeId", "data-v-2fde1e51"]]), ni = { class: "json-config" }, ri = {
913
913
  key: 0,
914
914
  class: "json-endpoint"
915
- }, Pt = /* @__PURE__ */ G({
915
+ }, Pt = /* @__PURE__ */ J({
916
916
  __name: "JsonCodeBlock",
917
917
  props: {
918
918
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -951,14 +951,14 @@ const Ve = Symbol("schema"), Tr = (e) => {
951
951
  return i.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? i[i.length - 1] : i[i.length - 2]).length;
952
952
  });
953
953
  return (i, o) => {
954
- const a = D("KBadge"), l = D("KCodeBlock");
955
- return v(), L("div", ei, [
956
- t.fetcherUrl ? (v(), L("div", ti, [
954
+ const a = j("KBadge"), l = j("KCodeBlock");
955
+ return g(), F("div", ni, [
956
+ t.fetcherUrl ? (g(), F("div", ri, [
957
957
  K(a, {
958
958
  appearance: t.requestMethod
959
959
  }, {
960
- default: A(() => [
961
- Y(N(t.requestMethod), 1)
960
+ default: C(() => [
961
+ H(N(t.requestMethod), 1)
962
962
  ]),
963
963
  _: 1
964
964
  }, 8, ["appearance"]),
@@ -970,7 +970,7 @@ const Ve = Symbol("schema"), Tr = (e) => {
970
970
  theme: "dark"
971
971
  }, null, 8, ["code"])
972
972
  ])) : P("", !0),
973
- t.entityRecord ? (v(), j(l, {
973
+ t.entityRecord ? (g(), M(l, {
974
974
  key: 1,
975
975
  id: "json-codeblock",
976
976
  class: fe({ "json-content": t.fetcherUrl }),
@@ -986,35 +986,35 @@ const Ve = Symbol("schema"), Tr = (e) => {
986
986
  function qt(e) {
987
987
  return typeof e > "u" || e === null;
988
988
  }
989
- function ni(e) {
989
+ function ii(e) {
990
990
  return typeof e == "object" && e !== null;
991
991
  }
992
- function ri(e) {
992
+ function ai(e) {
993
993
  return Array.isArray(e) ? e : qt(e) ? [] : [e];
994
994
  }
995
- function ii(e, t) {
995
+ function oi(e, t) {
996
996
  var n, r, i, o;
997
997
  if (t)
998
998
  for (o = Object.keys(t), n = 0, r = o.length; n < r; n += 1)
999
999
  i = o[n], e[i] = t[i];
1000
1000
  return e;
1001
1001
  }
1002
- function ai(e, t) {
1002
+ function li(e, t) {
1003
1003
  var n = "", r;
1004
1004
  for (r = 0; r < t; r += 1)
1005
1005
  n += e;
1006
1006
  return n;
1007
1007
  }
1008
- function oi(e) {
1008
+ function ci(e) {
1009
1009
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1010
1010
  }
1011
- var li = qt, ci = ni, si = ri, ui = ai, di = oi, fi = ii, J = {
1012
- isNothing: li,
1013
- isObject: ci,
1014
- toArray: si,
1015
- repeat: ui,
1016
- isNegativeZero: di,
1017
- extend: fi
1011
+ var si = qt, ui = ii, di = ai, fi = li, pi = ci, mi = oi, G = {
1012
+ isNothing: si,
1013
+ isObject: ui,
1014
+ toArray: di,
1015
+ repeat: fi,
1016
+ isNegativeZero: pi,
1017
+ extend: mi
1018
1018
  };
1019
1019
  function Ht(e, t) {
1020
1020
  var n = "", r = e.reason || "(unknown reason)";
@@ -1031,7 +1031,7 @@ we.prototype.toString = function(t) {
1031
1031
  return this.name + ": " + Ht(this, t);
1032
1032
  };
1033
1033
  var ne = we;
1034
- function Ue(e, t, n, r, i) {
1034
+ function Pe(e, t, n, r, i) {
1035
1035
  var o = "", a = "", l = Math.floor(i / 2) - 1;
1036
1036
  return r - t > l && (o = " ... ", t = r - l + o.length), n - r > l && (a = " ...", n = r + l - a.length), {
1037
1037
  str: o + e.slice(t, n).replace(/\t/g, "→") + a,
@@ -1039,10 +1039,10 @@ function Ue(e, t, n, r, i) {
1039
1039
  // relative position
1040
1040
  };
1041
1041
  }
1042
- function Pe(e, t) {
1043
- return J.repeat(" ", t - e.length) + e;
1042
+ function qe(e, t) {
1043
+ return G.repeat(" ", t - e.length) + e;
1044
1044
  }
1045
- function pi(e, t) {
1045
+ function hi(e, t) {
1046
1046
  if (t = Object.create(t || null), !e.buffer) return null;
1047
1047
  t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
1048
1048
  for (var n = /\r?\n|\r|\0/g, r = [0], i = [], o, a = -1; o = n.exec(e.buffer); )
@@ -1050,28 +1050,28 @@ function pi(e, t) {
1050
1050
  a < 0 && (a = r.length - 1);
1051
1051
  var l = "", c, s, d = Math.min(e.line + t.linesAfter, i.length).toString().length, u = t.maxLength - (t.indent + d + 3);
1052
1052
  for (c = 1; c <= t.linesBefore && !(a - c < 0); c++)
1053
- s = Ue(
1053
+ s = Pe(
1054
1054
  e.buffer,
1055
1055
  r[a - c],
1056
1056
  i[a - c],
1057
1057
  e.position - (r[a] - r[a - c]),
1058
1058
  u
1059
- ), l = J.repeat(" ", t.indent) + Pe((e.line - c + 1).toString(), d) + " | " + s.str + `
1059
+ ), l = G.repeat(" ", t.indent) + qe((e.line - c + 1).toString(), d) + " | " + s.str + `
1060
1060
  ` + l;
1061
- for (s = Ue(e.buffer, r[a], i[a], e.position, u), l += J.repeat(" ", t.indent) + Pe((e.line + 1).toString(), d) + " | " + s.str + `
1062
- `, l += J.repeat("-", t.indent + d + 3 + s.pos) + `^
1061
+ for (s = Pe(e.buffer, r[a], i[a], e.position, u), l += G.repeat(" ", t.indent) + qe((e.line + 1).toString(), d) + " | " + s.str + `
1062
+ `, l += G.repeat("-", t.indent + d + 3 + s.pos) + `^
1063
1063
  `, c = 1; c <= t.linesAfter && !(a + c >= i.length); c++)
1064
- s = Ue(
1064
+ s = Pe(
1065
1065
  e.buffer,
1066
1066
  r[a + c],
1067
1067
  i[a + c],
1068
1068
  e.position - (r[a] - r[a + c]),
1069
1069
  u
1070
- ), l += J.repeat(" ", t.indent) + Pe((e.line + c + 1).toString(), d) + " | " + s.str + `
1070
+ ), l += G.repeat(" ", t.indent) + qe((e.line + c + 1).toString(), d) + " | " + s.str + `
1071
1071
  `;
1072
1072
  return l.replace(/\n$/, "");
1073
1073
  }
1074
- var mi = pi, hi = [
1074
+ var gi = hi, yi = [
1075
1075
  "kind",
1076
1076
  "multi",
1077
1077
  "resolve",
@@ -1082,12 +1082,12 @@ var mi = pi, hi = [
1082
1082
  "representName",
1083
1083
  "defaultStyle",
1084
1084
  "styleAliases"
1085
- ], gi = [
1085
+ ], vi = [
1086
1086
  "scalar",
1087
1087
  "sequence",
1088
1088
  "mapping"
1089
1089
  ];
1090
- function yi(e) {
1090
+ function bi(e) {
1091
1091
  var t = {};
1092
1092
  return e !== null && Object.keys(e).forEach(function(n) {
1093
1093
  e[n].forEach(function(r) {
@@ -1095,18 +1095,18 @@ function yi(e) {
1095
1095
  });
1096
1096
  }), t;
1097
1097
  }
1098
- function vi(e, t) {
1098
+ function xi(e, t) {
1099
1099
  if (t = t || {}, Object.keys(t).forEach(function(n) {
1100
- if (hi.indexOf(n) === -1)
1100
+ if (yi.indexOf(n) === -1)
1101
1101
  throw new ne('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
1102
1102
  }), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
1103
1103
  return !0;
1104
1104
  }, this.construct = t.construct || function(n) {
1105
1105
  return n;
1106
- }, 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 = yi(t.styleAliases || null), gi.indexOf(this.kind) === -1)
1106
+ }, 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 = bi(t.styleAliases || null), vi.indexOf(this.kind) === -1)
1107
1107
  throw new ne('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1108
1108
  }
1109
- var X = vi;
1109
+ var X = xi;
1110
1110
  function ht(e, t) {
1111
1111
  var n = [];
1112
1112
  return e[t].forEach(function(r) {
@@ -1116,7 +1116,7 @@ function ht(e, t) {
1116
1116
  }), n[i] = r;
1117
1117
  }), n;
1118
1118
  }
1119
- function bi() {
1119
+ function Ci() {
1120
1120
  var e = {
1121
1121
  scalar: {},
1122
1122
  sequence: {},
@@ -1161,7 +1161,7 @@ We.prototype.extend = function(t) {
1161
1161
  throw new ne("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1162
1162
  });
1163
1163
  var i = Object.create(We.prototype);
1164
- return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = ht(i, "implicit"), i.compiledExplicit = ht(i, "explicit"), i.compiledTypeMap = bi(i.compiledImplicit, i.compiledExplicit), i;
1164
+ return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = ht(i, "implicit"), i.compiledExplicit = ht(i, "explicit"), i.compiledTypeMap = Ci(i.compiledImplicit, i.compiledExplicit), i;
1165
1165
  };
1166
1166
  var Yt = We, Vt = new X("tag:yaml.org,2002:str", {
1167
1167
  kind: "scalar",
@@ -1185,22 +1185,22 @@ var Yt = We, Vt = new X("tag:yaml.org,2002:str", {
1185
1185
  Jt
1186
1186
  ]
1187
1187
  });
1188
- function xi(e) {
1188
+ function Ai(e) {
1189
1189
  if (e === null) return !0;
1190
1190
  var t = e.length;
1191
1191
  return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
1192
1192
  }
1193
- function Ci() {
1193
+ function _i() {
1194
1194
  return null;
1195
1195
  }
1196
- function Ai(e) {
1196
+ function ki(e) {
1197
1197
  return e === null;
1198
1198
  }
1199
1199
  var zt = new X("tag:yaml.org,2002:null", {
1200
1200
  kind: "scalar",
1201
- resolve: xi,
1202
- construct: Ci,
1203
- predicate: Ai,
1201
+ resolve: Ai,
1202
+ construct: _i,
1203
+ predicate: ki,
1204
1204
  represent: {
1205
1205
  canonical: function() {
1206
1206
  return "~";
@@ -1220,22 +1220,22 @@ var zt = new X("tag:yaml.org,2002:null", {
1220
1220
  },
1221
1221
  defaultStyle: "lowercase"
1222
1222
  });
1223
- function ki(e) {
1223
+ function wi(e) {
1224
1224
  if (e === null) return !1;
1225
1225
  var t = e.length;
1226
1226
  return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
1227
1227
  }
1228
- function _i(e) {
1228
+ function Si(e) {
1229
1229
  return e === "true" || e === "True" || e === "TRUE";
1230
1230
  }
1231
- function wi(e) {
1231
+ function Ii(e) {
1232
1232
  return Object.prototype.toString.call(e) === "[object Boolean]";
1233
1233
  }
1234
1234
  var Qt = new X("tag:yaml.org,2002:bool", {
1235
1235
  kind: "scalar",
1236
- resolve: ki,
1237
- construct: _i,
1238
- predicate: wi,
1236
+ resolve: wi,
1237
+ construct: Si,
1238
+ predicate: Ii,
1239
1239
  represent: {
1240
1240
  lowercase: function(e) {
1241
1241
  return e ? "true" : "false";
@@ -1249,16 +1249,16 @@ var Qt = new X("tag:yaml.org,2002:bool", {
1249
1249
  },
1250
1250
  defaultStyle: "lowercase"
1251
1251
  });
1252
- function Si(e) {
1252
+ function Ti(e) {
1253
1253
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1254
1254
  }
1255
- function Ii(e) {
1255
+ function $i(e) {
1256
1256
  return 48 <= e && e <= 55;
1257
1257
  }
1258
- function Ti(e) {
1258
+ function Ei(e) {
1259
1259
  return 48 <= e && e <= 57;
1260
1260
  }
1261
- function $i(e) {
1261
+ function Oi(e) {
1262
1262
  if (e === null) return !1;
1263
1263
  var t = e.length, n = 0, r = !1, i;
1264
1264
  if (!t) return !1;
@@ -1275,7 +1275,7 @@ function $i(e) {
1275
1275
  if (i === "x") {
1276
1276
  for (n++; n < t; n++)
1277
1277
  if (i = e[n], i !== "_") {
1278
- if (!Si(e.charCodeAt(n))) return !1;
1278
+ if (!Ti(e.charCodeAt(n))) return !1;
1279
1279
  r = !0;
1280
1280
  }
1281
1281
  return r && i !== "_";
@@ -1283,7 +1283,7 @@ function $i(e) {
1283
1283
  if (i === "o") {
1284
1284
  for (n++; n < t; n++)
1285
1285
  if (i = e[n], i !== "_") {
1286
- if (!Ii(e.charCodeAt(n))) return !1;
1286
+ if (!$i(e.charCodeAt(n))) return !1;
1287
1287
  r = !0;
1288
1288
  }
1289
1289
  return r && i !== "_";
@@ -1292,13 +1292,13 @@ function $i(e) {
1292
1292
  if (i === "_") return !1;
1293
1293
  for (; n < t; n++)
1294
1294
  if (i = e[n], i !== "_") {
1295
- if (!Ti(e.charCodeAt(n)))
1295
+ if (!Ei(e.charCodeAt(n)))
1296
1296
  return !1;
1297
1297
  r = !0;
1298
1298
  }
1299
1299
  return !(!r || i === "_");
1300
1300
  }
1301
- function Ei(e) {
1301
+ function Fi(e) {
1302
1302
  var t = e, n = 1, r;
1303
1303
  if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), r = t[0], (r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
1304
1304
  if (r === "0") {
@@ -1308,14 +1308,14 @@ function Ei(e) {
1308
1308
  }
1309
1309
  return n * parseInt(t, 10);
1310
1310
  }
1311
- function Fi(e) {
1312
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !J.isNegativeZero(e);
1311
+ function Li(e) {
1312
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !G.isNegativeZero(e);
1313
1313
  }
1314
1314
  var Zt = new X("tag:yaml.org,2002:int", {
1315
1315
  kind: "scalar",
1316
- resolve: $i,
1317
- construct: Ei,
1318
- predicate: Fi,
1316
+ resolve: Oi,
1317
+ construct: Fi,
1318
+ predicate: Li,
1319
1319
  represent: {
1320
1320
  binary: function(e) {
1321
1321
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1338,21 +1338,21 @@ var Zt = new X("tag:yaml.org,2002:int", {
1338
1338
  decimal: [10, "dec"],
1339
1339
  hexadecimal: [16, "hex"]
1340
1340
  }
1341
- }), Oi = new RegExp(
1341
+ }), Ri = new RegExp(
1342
1342
  // 2.5e4, 2.5 and integers
1343
1343
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
1344
1344
  );
1345
- function Li(e) {
1346
- return !(e === null || !Oi.test(e) || // Quick hack to not allow integers end with `_`
1345
+ function Bi(e) {
1346
+ return !(e === null || !Ri.test(e) || // Quick hack to not allow integers end with `_`
1347
1347
  // Probably should update regexp & check speed
1348
1348
  e[e.length - 1] === "_");
1349
1349
  }
1350
- function Ri(e) {
1350
+ function Ni(e) {
1351
1351
  var t, n;
1352
1352
  return t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : n * parseFloat(t, 10);
1353
1353
  }
1354
- var Bi = /^[-+]?[0-9]+e/;
1355
- function Ni(e, t) {
1354
+ var Ki = /^[-+]?[0-9]+e/;
1355
+ function Mi(e, t) {
1356
1356
  var n;
1357
1357
  if (isNaN(e))
1358
1358
  switch (t) {
@@ -1381,19 +1381,19 @@ function Ni(e, t) {
1381
1381
  case "camelcase":
1382
1382
  return "-.Inf";
1383
1383
  }
1384
- else if (J.isNegativeZero(e))
1384
+ else if (G.isNegativeZero(e))
1385
1385
  return "-0.0";
1386
- return n = e.toString(10), Bi.test(n) ? n.replace("e", ".e") : n;
1386
+ return n = e.toString(10), Ki.test(n) ? n.replace("e", ".e") : n;
1387
1387
  }
1388
- function Ki(e) {
1389
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || J.isNegativeZero(e));
1388
+ function Di(e) {
1389
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || G.isNegativeZero(e));
1390
1390
  }
1391
1391
  var Xt = new X("tag:yaml.org,2002:float", {
1392
1392
  kind: "scalar",
1393
- resolve: Li,
1394
- construct: Ri,
1395
- predicate: Ki,
1396
- represent: Ni,
1393
+ resolve: Bi,
1394
+ construct: Ni,
1395
+ predicate: Di,
1396
+ represent: Mi,
1397
1397
  defaultStyle: "lowercase"
1398
1398
  }), en = Gt.extend({
1399
1399
  implicit: [
@@ -1407,10 +1407,10 @@ var Xt = new X("tag:yaml.org,2002:float", {
1407
1407
  ), rn = new RegExp(
1408
1408
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
1409
1409
  );
1410
- function Mi(e) {
1410
+ function ji(e) {
1411
1411
  return e === null ? !1 : nn.exec(e) !== null || rn.exec(e) !== null;
1412
1412
  }
1413
- function Di(e) {
1413
+ function Ui(e) {
1414
1414
  var t, n, r, i, o, a, l, c = 0, s = null, d, u, m;
1415
1415
  if (t = nn.exec(e), t === null && (t = rn.exec(e)), t === null) throw new Error("Date resolve error");
1416
1416
  if (n = +t[1], r = +t[2] - 1, i = +t[3], !t[4])
@@ -1422,25 +1422,25 @@ function Di(e) {
1422
1422
  }
1423
1423
  return t[9] && (d = +t[10], u = +(t[11] || 0), s = (d * 60 + u) * 6e4, t[9] === "-" && (s = -s)), m = new Date(Date.UTC(n, r, i, o, a, l, c)), s && m.setTime(m.getTime() - s), m;
1424
1424
  }
1425
- function ji(e) {
1425
+ function Pi(e) {
1426
1426
  return e.toISOString();
1427
1427
  }
1428
1428
  var an = new X("tag:yaml.org,2002:timestamp", {
1429
1429
  kind: "scalar",
1430
- resolve: Mi,
1431
- construct: Di,
1430
+ resolve: ji,
1431
+ construct: Ui,
1432
1432
  instanceOf: Date,
1433
- represent: ji
1433
+ represent: Pi
1434
1434
  });
1435
- function Ui(e) {
1435
+ function qi(e) {
1436
1436
  return e === "<<" || e === null;
1437
1437
  }
1438
1438
  var on = new X("tag:yaml.org,2002:merge", {
1439
1439
  kind: "scalar",
1440
- resolve: Ui
1440
+ resolve: qi
1441
1441
  }), tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1442
1442
  \r`;
1443
- function Pi(e) {
1443
+ function Hi(e) {
1444
1444
  if (e === null) return !1;
1445
1445
  var t, n, r = 0, i = e.length, o = tt;
1446
1446
  for (n = 0; n < i; n++)
@@ -1450,35 +1450,35 @@ function Pi(e) {
1450
1450
  }
1451
1451
  return r % 8 === 0;
1452
1452
  }
1453
- function qi(e) {
1453
+ function Yi(e) {
1454
1454
  var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, o = tt, a = 0, l = [];
1455
1455
  for (t = 0; t < i; t++)
1456
1456
  t % 4 === 0 && t && (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)), a = a << 6 | o.indexOf(r.charAt(t));
1457
1457
  return n = i % 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);
1458
1458
  }
1459
- function Hi(e) {
1459
+ function Vi(e) {
1460
1460
  var t = "", n = 0, r, i, o = e.length, a = tt;
1461
1461
  for (r = 0; r < o; r++)
1462
1462
  r % 3 === 0 && r && (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]), n = (n << 8) + e[r];
1463
1463
  return i = o % 3, i === 0 ? (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]) : i === 2 ? (t += a[n >> 10 & 63], t += a[n >> 4 & 63], t += a[n << 2 & 63], t += a[64]) : i === 1 && (t += a[n >> 2 & 63], t += a[n << 4 & 63], t += a[64], t += a[64]), t;
1464
1464
  }
1465
- function Yi(e) {
1465
+ function Wi(e) {
1466
1466
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1467
1467
  }
1468
1468
  var ln = new X("tag:yaml.org,2002:binary", {
1469
1469
  kind: "scalar",
1470
- resolve: Pi,
1471
- construct: qi,
1472
- predicate: Yi,
1473
- represent: Hi
1474
- }), Vi = Object.prototype.hasOwnProperty, Wi = Object.prototype.toString;
1475
- function Ji(e) {
1470
+ resolve: Hi,
1471
+ construct: Yi,
1472
+ predicate: Wi,
1473
+ represent: Vi
1474
+ }), Ji = Object.prototype.hasOwnProperty, Gi = Object.prototype.toString;
1475
+ function zi(e) {
1476
1476
  if (e === null) return !0;
1477
1477
  var t = [], n, r, i, o, a, l = e;
1478
1478
  for (n = 0, r = l.length; n < r; n += 1) {
1479
- if (i = l[n], a = !1, Wi.call(i) !== "[object Object]") return !1;
1479
+ if (i = l[n], a = !1, Gi.call(i) !== "[object Object]") return !1;
1480
1480
  for (o in i)
1481
- if (Vi.call(i, o))
1481
+ if (Ji.call(i, o))
1482
1482
  if (!a) a = !0;
1483
1483
  else return !1;
1484
1484
  if (!a) return !1;
@@ -1487,24 +1487,24 @@ function Ji(e) {
1487
1487
  }
1488
1488
  return !0;
1489
1489
  }
1490
- function Gi(e) {
1490
+ function Qi(e) {
1491
1491
  return e !== null ? e : [];
1492
1492
  }
1493
1493
  var cn = new X("tag:yaml.org,2002:omap", {
1494
1494
  kind: "sequence",
1495
- resolve: Ji,
1496
- construct: Gi
1497
- }), zi = Object.prototype.toString;
1498
- function Qi(e) {
1495
+ resolve: zi,
1496
+ construct: Qi
1497
+ }), Zi = Object.prototype.toString;
1498
+ function Xi(e) {
1499
1499
  if (e === null) return !0;
1500
1500
  var t, n, r, i, o, a = e;
1501
1501
  for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1) {
1502
- if (r = a[t], zi.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
1502
+ if (r = a[t], Zi.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
1503
1503
  o[t] = [i[0], r[i[0]]];
1504
1504
  }
1505
1505
  return !0;
1506
1506
  }
1507
- function Zi(e) {
1507
+ function ea(e) {
1508
1508
  if (e === null) return [];
1509
1509
  var t, n, r, i, o, a = e;
1510
1510
  for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1)
@@ -1513,24 +1513,24 @@ function Zi(e) {
1513
1513
  }
1514
1514
  var sn = new X("tag:yaml.org,2002:pairs", {
1515
1515
  kind: "sequence",
1516
- resolve: Qi,
1517
- construct: Zi
1518
- }), Xi = Object.prototype.hasOwnProperty;
1519
- function ea(e) {
1516
+ resolve: Xi,
1517
+ construct: ea
1518
+ }), ta = Object.prototype.hasOwnProperty;
1519
+ function na(e) {
1520
1520
  if (e === null) return !0;
1521
1521
  var t, n = e;
1522
1522
  for (t in n)
1523
- if (Xi.call(n, t) && n[t] !== null)
1523
+ if (ta.call(n, t) && n[t] !== null)
1524
1524
  return !1;
1525
1525
  return !0;
1526
1526
  }
1527
- function ta(e) {
1527
+ function ra(e) {
1528
1528
  return e !== null ? e : {};
1529
1529
  }
1530
1530
  var un = new X("tag:yaml.org,2002:set", {
1531
1531
  kind: "mapping",
1532
- resolve: ea,
1533
- construct: ta
1532
+ resolve: na,
1533
+ construct: ra
1534
1534
  }), nt = tn.extend({
1535
1535
  implicit: [
1536
1536
  an,
@@ -1542,11 +1542,11 @@ var un = new X("tag:yaml.org,2002:set", {
1542
1542
  sn,
1543
1543
  un
1544
1544
  ]
1545
- }), pe = Object.prototype.hasOwnProperty, Fe = 1, dn = 2, fn = 3, Oe = 4, qe = 1, na = 2, gt = 3, ra = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ia = /[\x85\u2028\u2029]/, aa = /[,\[\]\{\}]/, pn = /^(?:!|!!|![a-z\-]+!)$/i, mn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1545
+ }), pe = Object.prototype.hasOwnProperty, Fe = 1, dn = 2, fn = 3, Le = 4, He = 1, ia = 2, gt = 3, aa = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, oa = /[\x85\u2028\u2029]/, la = /[,\[\]\{\}]/, pn = /^(?:!|!!|![a-z\-]+!)$/i, mn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1546
1546
  function yt(e) {
1547
1547
  return Object.prototype.toString.call(e);
1548
1548
  }
1549
- function le(e) {
1549
+ function ce(e) {
1550
1550
  return e === 10 || e === 13;
1551
1551
  }
1552
1552
  function ge(e) {
@@ -1558,21 +1558,21 @@ function re(e) {
1558
1558
  function be(e) {
1559
1559
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1560
1560
  }
1561
- function oa(e) {
1561
+ function ca(e) {
1562
1562
  var t;
1563
1563
  return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
1564
1564
  }
1565
- function la(e) {
1565
+ function sa(e) {
1566
1566
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1567
1567
  }
1568
- function ca(e) {
1568
+ function ua(e) {
1569
1569
  return 48 <= e && e <= 57 ? e - 48 : -1;
1570
1570
  }
1571
1571
  function vt(e) {
1572
1572
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1573
1573
  ` : 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" : "";
1574
1574
  }
1575
- function sa(e) {
1575
+ function da(e) {
1576
1576
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
1577
1577
  (e - 65536 >> 10) + 55296,
1578
1578
  (e - 65536 & 1023) + 56320
@@ -1581,7 +1581,7 @@ function sa(e) {
1581
1581
  var hn = new Array(256), gn = new Array(256);
1582
1582
  for (var ye = 0; ye < 256; ye++)
1583
1583
  hn[ye] = vt(ye) ? 1 : 0, gn[ye] = vt(ye);
1584
- function ua(e, t) {
1584
+ function fa(e, t) {
1585
1585
  this.input = e, this.filename = t.filename || null, this.schema = t.schema || nt, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
1586
1586
  }
1587
1587
  function yn(e, t) {
@@ -1593,26 +1593,26 @@ function yn(e, t) {
1593
1593
  line: e.line,
1594
1594
  column: e.position - e.lineStart
1595
1595
  };
1596
- return n.snippet = mi(n), new ne(t, n);
1596
+ return n.snippet = gi(n), new ne(t, n);
1597
1597
  }
1598
- function C(e, t) {
1598
+ function A(e, t) {
1599
1599
  throw yn(e, t);
1600
1600
  }
1601
- function Le(e, t) {
1601
+ function Re(e, t) {
1602
1602
  e.onWarning && e.onWarning.call(null, yn(e, t));
1603
1603
  }
1604
1604
  var bt = {
1605
1605
  YAML: function(t, n, r) {
1606
1606
  var i, o, a;
1607
- t.version !== null && C(t, "duplication of %YAML directive"), r.length !== 1 && C(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && C(t, "ill-formed argument of the YAML directive"), o = parseInt(i[1], 10), a = parseInt(i[2], 10), o !== 1 && C(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Le(t, "unsupported YAML version of the document");
1607
+ t.version !== null && A(t, "duplication of %YAML directive"), r.length !== 1 && A(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && A(t, "ill-formed argument of the YAML directive"), o = parseInt(i[1], 10), a = parseInt(i[2], 10), o !== 1 && A(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Re(t, "unsupported YAML version of the document");
1608
1608
  },
1609
1609
  TAG: function(t, n, r) {
1610
1610
  var i, o;
1611
- r.length !== 2 && C(t, "TAG directive accepts exactly two arguments"), i = r[0], o = r[1], pn.test(i) || C(t, "ill-formed tag handle (first argument) of the TAG directive"), pe.call(t.tagMap, i) && C(t, 'there is a previously declared suffix for "' + i + '" tag handle'), mn.test(o) || C(t, "ill-formed tag prefix (second argument) of the TAG directive");
1611
+ r.length !== 2 && A(t, "TAG directive accepts exactly two arguments"), i = r[0], o = r[1], pn.test(i) || A(t, "ill-formed tag handle (first argument) of the TAG directive"), pe.call(t.tagMap, i) && A(t, 'there is a previously declared suffix for "' + i + '" tag handle'), mn.test(o) || A(t, "ill-formed tag prefix (second argument) of the TAG directive");
1612
1612
  try {
1613
1613
  o = decodeURIComponent(o);
1614
1614
  } catch {
1615
- C(t, "tag prefix is malformed: " + o);
1615
+ A(t, "tag prefix is malformed: " + o);
1616
1616
  }
1617
1617
  t.tagMap[i] = o;
1618
1618
  }
@@ -1622,21 +1622,21 @@ function de(e, t, n, r) {
1622
1622
  if (t < n) {
1623
1623
  if (l = e.input.slice(t, n), r)
1624
1624
  for (i = 0, o = l.length; i < o; i += 1)
1625
- a = l.charCodeAt(i), a === 9 || 32 <= a && a <= 1114111 || C(e, "expected valid JSON character");
1626
- else ra.test(l) && C(e, "the stream contains non-printable characters");
1625
+ a = l.charCodeAt(i), a === 9 || 32 <= a && a <= 1114111 || A(e, "expected valid JSON character");
1626
+ else aa.test(l) && A(e, "the stream contains non-printable characters");
1627
1627
  e.result += l;
1628
1628
  }
1629
1629
  }
1630
1630
  function xt(e, t, n, r) {
1631
1631
  var i, o, a, l;
1632
- for (J.isObject(n) || C(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), a = 0, l = i.length; a < l; a += 1)
1632
+ for (G.isObject(n) || A(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), a = 0, l = i.length; a < l; a += 1)
1633
1633
  o = i[a], pe.call(t, o) || (t[o] = n[o], r[o] = !0);
1634
1634
  }
1635
1635
  function xe(e, t, n, r, i, o, a, l, c) {
1636
1636
  var s, d;
1637
1637
  if (Array.isArray(i))
1638
1638
  for (i = Array.prototype.slice.call(i), s = 0, d = i.length; s < d; s += 1)
1639
- Array.isArray(i[s]) && C(e, "nested arrays are not supported inside keys"), typeof i == "object" && yt(i[s]) === "[object Object]" && (i[s] = "[object Object]");
1639
+ Array.isArray(i[s]) && A(e, "nested arrays are not supported inside keys"), typeof i == "object" && yt(i[s]) === "[object Object]" && (i[s] = "[object Object]");
1640
1640
  if (typeof i == "object" && yt(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge")
1641
1641
  if (Array.isArray(o))
1642
1642
  for (s = 0, d = o.length; s < d; s += 1)
@@ -1644,7 +1644,7 @@ function xe(e, t, n, r, i, o, a, l, c) {
1644
1644
  else
1645
1645
  xt(e, t, o, n);
1646
1646
  else
1647
- !e.json && !pe.call(n, i) && pe.call(t, i) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = c || e.position, C(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(t, i, {
1647
+ !e.json && !pe.call(n, i) && pe.call(t, i) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = c || e.position, A(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(t, i, {
1648
1648
  configurable: !0,
1649
1649
  enumerable: !0,
1650
1650
  writable: !0,
@@ -1654,7 +1654,7 @@ function xe(e, t, n, r, i, o, a, l, c) {
1654
1654
  }
1655
1655
  function rt(e) {
1656
1656
  var t;
1657
- t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : C(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1657
+ t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : A(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1658
1658
  }
1659
1659
  function W(e, t, n) {
1660
1660
  for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
@@ -1664,23 +1664,23 @@ function W(e, t, n) {
1664
1664
  do
1665
1665
  i = e.input.charCodeAt(++e.position);
1666
1666
  while (i !== 10 && i !== 13 && i !== 0);
1667
- if (le(i))
1667
+ if (ce(i))
1668
1668
  for (rt(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32; )
1669
1669
  e.lineIndent++, i = e.input.charCodeAt(++e.position);
1670
1670
  else
1671
1671
  break;
1672
1672
  }
1673
- return n !== -1 && r !== 0 && e.lineIndent < n && Le(e, "deficient indentation"), r;
1673
+ return n !== -1 && r !== 0 && e.lineIndent < n && Re(e, "deficient indentation"), r;
1674
1674
  }
1675
- function De(e) {
1675
+ function je(e) {
1676
1676
  var t = e.position, n;
1677
1677
  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 || re(n)));
1678
1678
  }
1679
1679
  function it(e, t) {
1680
- t === 1 ? e.result += " " : t > 1 && (e.result += J.repeat(`
1680
+ t === 1 ? e.result += " " : t > 1 && (e.result += G.repeat(`
1681
1681
  `, t - 1));
1682
1682
  }
1683
- function da(e, t, n) {
1683
+ function pa(e, t, n) {
1684
1684
  var r, i, o, a, l, c, s, d, u = e.kind, m = e.result, f;
1685
1685
  if (f = e.input.charCodeAt(e.position), re(f) || be(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (i = e.input.charCodeAt(e.position + 1), re(i) || n && be(i)))
1686
1686
  return !1;
@@ -1692,9 +1692,9 @@ function da(e, t, n) {
1692
1692
  if (r = e.input.charCodeAt(e.position - 1), re(r))
1693
1693
  break;
1694
1694
  } else {
1695
- if (e.position === e.lineStart && De(e) || n && be(f))
1695
+ if (e.position === e.lineStart && je(e) || n && be(f))
1696
1696
  break;
1697
- if (le(f))
1697
+ if (ce(f))
1698
1698
  if (c = e.line, s = e.lineStart, d = e.lineIndent, W(e, !1, -1), e.lineIndent >= t) {
1699
1699
  l = !0, f = e.input.charCodeAt(e.position);
1700
1700
  continue;
@@ -1707,7 +1707,7 @@ function da(e, t, n) {
1707
1707
  }
1708
1708
  return de(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
1709
1709
  }
1710
- function fa(e, t) {
1710
+ function ma(e, t) {
1711
1711
  var n, r, i;
1712
1712
  if (n = e.input.charCodeAt(e.position), n !== 39)
1713
1713
  return !1;
@@ -1717,10 +1717,10 @@ function fa(e, t) {
1717
1717
  r = e.position, e.position++, i = e.position;
1718
1718
  else
1719
1719
  return !0;
1720
- else le(n) ? (de(e, r, i, !0), it(e, W(e, !1, t)), r = i = e.position) : e.position === e.lineStart && De(e) ? C(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
1721
- C(e, "unexpected end of the stream within a single quoted scalar");
1720
+ else ce(n) ? (de(e, r, i, !0), it(e, W(e, !1, t)), r = i = e.position) : e.position === e.lineStart && je(e) ? A(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
1721
+ A(e, "unexpected end of the stream within a single quoted scalar");
1722
1722
  }
1723
- function pa(e, t) {
1723
+ function ha(e, t) {
1724
1724
  var n, r, i, o, a, l;
1725
1725
  if (l = e.input.charCodeAt(e.position), l !== 34)
1726
1726
  return !1;
@@ -1728,23 +1728,23 @@ function pa(e, t) {
1728
1728
  if (l === 34)
1729
1729
  return de(e, n, e.position, !0), e.position++, !0;
1730
1730
  if (l === 92) {
1731
- if (de(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), le(l))
1731
+ if (de(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), ce(l))
1732
1732
  W(e, !1, t);
1733
1733
  else if (l < 256 && hn[l])
1734
1734
  e.result += gn[l], e.position++;
1735
- else if ((a = la(l)) > 0) {
1735
+ else if ((a = sa(l)) > 0) {
1736
1736
  for (i = a, o = 0; i > 0; i--)
1737
- l = e.input.charCodeAt(++e.position), (a = oa(l)) >= 0 ? o = (o << 4) + a : C(e, "expected hexadecimal character");
1738
- e.result += sa(o), e.position++;
1737
+ l = e.input.charCodeAt(++e.position), (a = ca(l)) >= 0 ? o = (o << 4) + a : A(e, "expected hexadecimal character");
1738
+ e.result += da(o), e.position++;
1739
1739
  } else
1740
- C(e, "unknown escape sequence");
1740
+ A(e, "unknown escape sequence");
1741
1741
  n = r = e.position;
1742
- } else le(l) ? (de(e, n, r, !0), it(e, W(e, !1, t)), n = r = e.position) : e.position === e.lineStart && De(e) ? C(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1742
+ } else ce(l) ? (de(e, n, r, !0), it(e, W(e, !1, t)), n = r = e.position) : e.position === e.lineStart && je(e) ? A(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1743
1743
  }
1744
- C(e, "unexpected end of the stream within a double quoted scalar");
1744
+ A(e, "unexpected end of the stream within a double quoted scalar");
1745
1745
  }
1746
- function ma(e, t) {
1747
- var n = !0, r, i, o, a = e.tag, l, c = e.anchor, s, d, u, m, f, g = /* @__PURE__ */ Object.create(null), y, b, S, x;
1746
+ function ga(e, t) {
1747
+ var n = !0, r, i, o, a = e.tag, l, c = e.anchor, s, d, u, m, f, y = /* @__PURE__ */ Object.create(null), v, b, S, x;
1748
1748
  if (x = e.input.charCodeAt(e.position), x === 91)
1749
1749
  d = 93, f = !1, l = [];
1750
1750
  else if (x === 123)
@@ -1754,12 +1754,12 @@ function ma(e, t) {
1754
1754
  for (e.anchor !== null && (e.anchorMap[e.anchor] = l), x = e.input.charCodeAt(++e.position); x !== 0; ) {
1755
1755
  if (W(e, !0, t), x = e.input.charCodeAt(e.position), x === d)
1756
1756
  return e.position++, e.tag = a, e.anchor = c, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
1757
- n ? x === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), b = y = S = null, u = m = !1, x === 63 && (s = e.input.charCodeAt(e.position + 1), re(s) && (u = m = !0, e.position++, W(e, !0, t))), r = e.line, i = e.lineStart, o = e.position, Ae(e, t, Fe, !1, !0), b = e.tag, y = e.result, W(e, !0, t), x = e.input.charCodeAt(e.position), (m || e.line === r) && x === 58 && (u = !0, x = e.input.charCodeAt(++e.position), W(e, !0, t), Ae(e, t, Fe, !1, !0), S = e.result), f ? xe(e, l, g, b, y, S, r, i, o) : u ? l.push(xe(e, null, g, b, y, S, r, i, o)) : l.push(y), W(e, !0, t), x = e.input.charCodeAt(e.position), x === 44 ? (n = !0, x = e.input.charCodeAt(++e.position)) : n = !1;
1757
+ n ? x === 44 && A(e, "expected the node content, but found ','") : A(e, "missed comma between flow collection entries"), b = v = S = null, u = m = !1, x === 63 && (s = e.input.charCodeAt(e.position + 1), re(s) && (u = m = !0, e.position++, W(e, !0, t))), r = e.line, i = e.lineStart, o = e.position, Ae(e, t, Fe, !1, !0), b = e.tag, v = e.result, W(e, !0, t), x = e.input.charCodeAt(e.position), (m || e.line === r) && x === 58 && (u = !0, x = e.input.charCodeAt(++e.position), W(e, !0, t), Ae(e, t, Fe, !1, !0), S = e.result), f ? xe(e, l, y, b, v, S, r, i, o) : u ? l.push(xe(e, null, y, b, v, S, r, i, o)) : l.push(v), W(e, !0, t), x = e.input.charCodeAt(e.position), x === 44 ? (n = !0, x = e.input.charCodeAt(++e.position)) : n = !1;
1758
1758
  }
1759
- C(e, "unexpected end of the stream within a flow collection");
1759
+ A(e, "unexpected end of the stream within a flow collection");
1760
1760
  }
1761
- function ha(e, t) {
1762
- var n, r, i = qe, o = !1, a = !1, l = t, c = 0, s = !1, d, u;
1761
+ function ya(e, t) {
1762
+ var n, r, i = He, o = !1, a = !1, l = t, c = 0, s = !1, d, u;
1763
1763
  if (u = e.input.charCodeAt(e.position), u === 124)
1764
1764
  r = !1;
1765
1765
  else if (u === 62)
@@ -1768,9 +1768,9 @@ function ha(e, t) {
1768
1768
  return !1;
1769
1769
  for (e.kind = "scalar", e.result = ""; u !== 0; )
1770
1770
  if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
1771
- qe === i ? i = u === 43 ? gt : na : C(e, "repeat of a chomping mode identifier");
1772
- else if ((d = ca(u)) >= 0)
1773
- d === 0 ? C(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? C(e, "repeat of an indentation width identifier") : (l = t + d - 1, a = !0);
1771
+ He === i ? i = u === 43 ? gt : ia : A(e, "repeat of a chomping mode identifier");
1772
+ else if ((d = ua(u)) >= 0)
1773
+ d === 0 ? A(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? A(e, "repeat of an indentation width identifier") : (l = t + d - 1, a = !0);
1774
1774
  else
1775
1775
  break;
1776
1776
  if (ge(u)) {
@@ -1780,26 +1780,26 @@ function ha(e, t) {
1780
1780
  if (u === 35)
1781
1781
  do
1782
1782
  u = e.input.charCodeAt(++e.position);
1783
- while (!le(u) && u !== 0);
1783
+ while (!ce(u) && u !== 0);
1784
1784
  }
1785
1785
  for (; u !== 0; ) {
1786
1786
  for (rt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!a || e.lineIndent < l) && u === 32; )
1787
1787
  e.lineIndent++, u = e.input.charCodeAt(++e.position);
1788
- if (!a && e.lineIndent > l && (l = e.lineIndent), le(u)) {
1788
+ if (!a && e.lineIndent > l && (l = e.lineIndent), ce(u)) {
1789
1789
  c++;
1790
1790
  continue;
1791
1791
  }
1792
1792
  if (e.lineIndent < l) {
1793
- i === gt ? e.result += J.repeat(`
1794
- `, o ? 1 + c : c) : i === qe && o && (e.result += `
1793
+ i === gt ? e.result += G.repeat(`
1794
+ `, o ? 1 + c : c) : i === He && o && (e.result += `
1795
1795
  `);
1796
1796
  break;
1797
1797
  }
1798
- for (r ? ge(u) ? (s = !0, e.result += J.repeat(`
1799
- `, o ? 1 + c : c)) : s ? (s = !1, e.result += J.repeat(`
1800
- `, c + 1)) : c === 0 ? o && (e.result += " ") : e.result += J.repeat(`
1801
- `, c) : e.result += J.repeat(`
1802
- `, o ? 1 + c : c), o = !0, a = !0, c = 0, n = e.position; !le(u) && u !== 0; )
1798
+ for (r ? ge(u) ? (s = !0, e.result += G.repeat(`
1799
+ `, o ? 1 + c : c)) : s ? (s = !1, e.result += G.repeat(`
1800
+ `, c + 1)) : c === 0 ? o && (e.result += " ") : e.result += G.repeat(`
1801
+ `, c) : e.result += G.repeat(`
1802
+ `, o ? 1 + c : c), o = !0, a = !0, c = 0, n = e.position; !ce(u) && u !== 0; )
1803
1803
  u = e.input.charCodeAt(++e.position);
1804
1804
  de(e, n, e.position, !1);
1805
1805
  }
@@ -1808,24 +1808,24 @@ function ha(e, t) {
1808
1808
  function Ct(e, t) {
1809
1809
  var n, r = e.tag, i = e.anchor, o = [], a, l = !1, c;
1810
1810
  if (e.firstTabInLine !== -1) return !1;
1811
- for (e.anchor !== null && (e.anchorMap[e.anchor] = o), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), !(c !== 45 || (a = e.input.charCodeAt(e.position + 1), !re(a)))); ) {
1811
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = o), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, A(e, "tab characters must not be used in indentation")), !(c !== 45 || (a = e.input.charCodeAt(e.position + 1), !re(a)))); ) {
1812
1812
  if (l = !0, e.position++, W(e, !0, -1) && e.lineIndent <= t) {
1813
1813
  o.push(null), c = e.input.charCodeAt(e.position);
1814
1814
  continue;
1815
1815
  }
1816
1816
  if (n = e.line, Ae(e, t, fn, !1, !0), o.push(e.result), W(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0)
1817
- C(e, "bad indentation of a sequence entry");
1817
+ A(e, "bad indentation of a sequence entry");
1818
1818
  else if (e.lineIndent < t)
1819
1819
  break;
1820
1820
  }
1821
1821
  return l ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = o, !0) : !1;
1822
1822
  }
1823
- function ga(e, t, n) {
1824
- var r, i, o, a, l, c, s = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, g = null, y = null, b = !1, S = !1, x;
1823
+ function va(e, t, n) {
1824
+ var r, i, o, a, l, c, s = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, y = null, v = null, b = !1, S = !1, x;
1825
1825
  if (e.firstTabInLine !== -1) return !1;
1826
1826
  for (e.anchor !== null && (e.anchorMap[e.anchor] = u), x = e.input.charCodeAt(e.position); x !== 0; ) {
1827
- if (!b && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (x === 63 || x === 58) && re(r))
1828
- x === 63 ? (b && (xe(e, u, m, f, g, null, a, l, c), f = g = y = null), S = !0, b = !0, i = !0) : b ? (b = !1, i = !0) : C(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, x = r;
1827
+ if (!b && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, A(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (x === 63 || x === 58) && re(r))
1828
+ x === 63 ? (b && (xe(e, u, m, f, y, null, a, l, c), f = y = v = null), S = !0, b = !0, i = !0) : b ? (b = !1, i = !0) : A(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, x = r;
1829
1829
  else {
1830
1830
  if (a = e.line, l = e.lineStart, c = e.position, !Ae(e, n, dn, !1, !0))
1831
1831
  break;
@@ -1833,125 +1833,125 @@ function ga(e, t, n) {
1833
1833
  for (x = e.input.charCodeAt(e.position); ge(x); )
1834
1834
  x = e.input.charCodeAt(++e.position);
1835
1835
  if (x === 58)
1836
- x = e.input.charCodeAt(++e.position), re(x) || C(e, "a whitespace character is expected after the key-value separator within a block mapping"), b && (xe(e, u, m, f, g, null, a, l, c), f = g = y = null), S = !0, b = !1, i = !1, f = e.tag, g = e.result;
1836
+ x = e.input.charCodeAt(++e.position), re(x) || A(e, "a whitespace character is expected after the key-value separator within a block mapping"), b && (xe(e, u, m, f, y, null, a, l, c), f = y = v = null), S = !0, b = !1, i = !1, f = e.tag, y = e.result;
1837
1837
  else if (S)
1838
- C(e, "can not read an implicit mapping pair; a colon is missed");
1838
+ A(e, "can not read an implicit mapping pair; a colon is missed");
1839
1839
  else
1840
1840
  return e.tag = s, e.anchor = d, !0;
1841
1841
  } else if (S)
1842
- C(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1842
+ A(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1843
1843
  else
1844
1844
  return e.tag = s, e.anchor = d, !0;
1845
1845
  }
1846
- if ((e.line === o || e.lineIndent > t) && (b && (a = e.line, l = e.lineStart, c = e.position), Ae(e, t, Oe, !0, i) && (b ? g = e.result : y = e.result), b || (xe(e, u, m, f, g, y, a, l, c), f = g = y = null), W(e, !0, -1), x = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && x !== 0)
1847
- C(e, "bad indentation of a mapping entry");
1846
+ if ((e.line === o || e.lineIndent > t) && (b && (a = e.line, l = e.lineStart, c = e.position), Ae(e, t, Le, !0, i) && (b ? y = e.result : v = e.result), b || (xe(e, u, m, f, y, v, a, l, c), f = y = v = null), W(e, !0, -1), x = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && x !== 0)
1847
+ A(e, "bad indentation of a mapping entry");
1848
1848
  else if (e.lineIndent < t)
1849
1849
  break;
1850
1850
  }
1851
- return b && xe(e, u, m, f, g, null, a, l, c), S && (e.tag = s, e.anchor = d, e.kind = "mapping", e.result = u), S;
1851
+ return b && xe(e, u, m, f, y, null, a, l, c), S && (e.tag = s, e.anchor = d, e.kind = "mapping", e.result = u), S;
1852
1852
  }
1853
- function ya(e) {
1853
+ function ba(e) {
1854
1854
  var t, n = !1, r = !1, i, o, a;
1855
1855
  if (a = e.input.charCodeAt(e.position), a !== 33) return !1;
1856
- if (e.tag !== null && C(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (r = !0, i = "!!", a = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
1856
+ if (e.tag !== null && A(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (r = !0, i = "!!", a = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
1857
1857
  do
1858
1858
  a = e.input.charCodeAt(++e.position);
1859
1859
  while (a !== 0 && a !== 62);
1860
- e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : C(e, "unexpected end of the stream within a verbatim tag");
1860
+ e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : A(e, "unexpected end of the stream within a verbatim tag");
1861
1861
  } else {
1862
1862
  for (; a !== 0 && !re(a); )
1863
- a === 33 && (r ? C(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), pn.test(i) || C(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
1864
- o = e.input.slice(t, e.position), aa.test(o) && C(e, "tag suffix cannot contain flow indicator characters");
1863
+ a === 33 && (r ? A(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), pn.test(i) || A(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
1864
+ o = e.input.slice(t, e.position), la.test(o) && A(e, "tag suffix cannot contain flow indicator characters");
1865
1865
  }
1866
- o && !mn.test(o) && C(e, "tag name cannot contain such characters: " + o);
1866
+ o && !mn.test(o) && A(e, "tag name cannot contain such characters: " + o);
1867
1867
  try {
1868
1868
  o = decodeURIComponent(o);
1869
1869
  } catch {
1870
- C(e, "tag name is malformed: " + o);
1870
+ A(e, "tag name is malformed: " + o);
1871
1871
  }
1872
- return n ? e.tag = o : pe.call(e.tagMap, i) ? e.tag = e.tagMap[i] + o : i === "!" ? e.tag = "!" + o : i === "!!" ? e.tag = "tag:yaml.org,2002:" + o : C(e, 'undeclared tag handle "' + i + '"'), !0;
1872
+ return n ? e.tag = o : pe.call(e.tagMap, i) ? e.tag = e.tagMap[i] + o : i === "!" ? e.tag = "!" + o : i === "!!" ? e.tag = "tag:yaml.org,2002:" + o : A(e, 'undeclared tag handle "' + i + '"'), !0;
1873
1873
  }
1874
- function va(e) {
1874
+ function xa(e) {
1875
1875
  var t, n;
1876
1876
  if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
1877
- for (e.anchor !== null && C(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !re(n) && !be(n); )
1877
+ for (e.anchor !== null && A(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !re(n) && !be(n); )
1878
1878
  n = e.input.charCodeAt(++e.position);
1879
- return e.position === t && C(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
1879
+ return e.position === t && A(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
1880
1880
  }
1881
- function ba(e) {
1881
+ function Ca(e) {
1882
1882
  var t, n, r;
1883
1883
  if (r = e.input.charCodeAt(e.position), r !== 42) return !1;
1884
1884
  for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !re(r) && !be(r); )
1885
1885
  r = e.input.charCodeAt(++e.position);
1886
- return e.position === t && C(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), pe.call(e.anchorMap, n) || C(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], W(e, !0, -1), !0;
1886
+ return e.position === t && A(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), pe.call(e.anchorMap, n) || A(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], W(e, !0, -1), !0;
1887
1887
  }
1888
1888
  function Ae(e, t, n, r, i) {
1889
- var o, a, l, c = 1, s = !1, d = !1, u, m, f, g, y, b;
1890
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Oe === n || fn === n, r && W(e, !0, -1) && (s = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1)
1891
- for (; ya(e) || va(e); )
1889
+ var o, a, l, c = 1, s = !1, d = !1, u, m, f, y, v, b;
1890
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Le === n || fn === n, r && W(e, !0, -1) && (s = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1)
1891
+ for (; ba(e) || xa(e); )
1892
1892
  W(e, !0, -1) ? (s = !0, l = o, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : l = !1;
1893
- if (l && (l = s || i), (c === 1 || Oe === n) && (Fe === n || dn === n ? y = t : y = t + 1, b = e.position - e.lineStart, c === 1 ? l && (Ct(e, b) || ga(e, b, y)) || ma(e, y) ? d = !0 : (a && ha(e, y) || fa(e, y) || pa(e, y) ? d = !0 : ba(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : da(e, y, Fe === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (d = l && Ct(e, b))), e.tag === null)
1893
+ if (l && (l = s || i), (c === 1 || Le === n) && (Fe === n || dn === n ? v = t : v = t + 1, b = e.position - e.lineStart, c === 1 ? l && (Ct(e, b) || va(e, b, v)) || ga(e, v) ? d = !0 : (a && ya(e, v) || ma(e, v) || ha(e, v) ? d = !0 : Ca(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && A(e, "alias node should not have any properties")) : pa(e, v, Fe === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (d = l && Ct(e, b))), e.tag === null)
1894
1894
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1895
1895
  else if (e.tag === "?") {
1896
- for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
1897
- if (g = e.implicitTypes[u], g.resolve(e.result)) {
1898
- e.result = g.construct(e.result), e.tag = g.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1896
+ for (e.result !== null && e.kind !== "scalar" && A(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
1897
+ if (y = e.implicitTypes[u], y.resolve(e.result)) {
1898
+ e.result = y.construct(e.result), e.tag = y.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1899
1899
  break;
1900
1900
  }
1901
1901
  } else if (e.tag !== "!") {
1902
1902
  if (pe.call(e.typeMap[e.kind || "fallback"], e.tag))
1903
- g = e.typeMap[e.kind || "fallback"][e.tag];
1903
+ y = e.typeMap[e.kind || "fallback"][e.tag];
1904
1904
  else
1905
- for (g = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, m = f.length; u < m; u += 1)
1905
+ for (y = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, m = f.length; u < m; u += 1)
1906
1906
  if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
1907
- g = f[u];
1907
+ y = f[u];
1908
1908
  break;
1909
1909
  }
1910
- g || C(e, "unknown tag !<" + e.tag + ">"), e.result !== null && g.kind !== e.kind && C(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + g.kind + '", not "' + e.kind + '"'), g.resolve(e.result, e.tag) ? (e.result = g.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : C(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
1910
+ y || A(e, "unknown tag !<" + e.tag + ">"), e.result !== null && y.kind !== e.kind && A(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + y.kind + '", not "' + e.kind + '"'), y.resolve(e.result, e.tag) ? (e.result = y.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : A(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
1911
1911
  }
1912
1912
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
1913
1913
  }
1914
- function xa(e) {
1914
+ function Aa(e) {
1915
1915
  var t = e.position, n, r, i, o = !1, a;
1916
1916
  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 && (W(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
1917
1917
  for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !re(a); )
1918
1918
  a = e.input.charCodeAt(++e.position);
1919
- for (r = e.input.slice(n, e.position), i = [], r.length < 1 && C(e, "directive name must not be less than one character in length"); a !== 0; ) {
1919
+ for (r = e.input.slice(n, e.position), i = [], r.length < 1 && A(e, "directive name must not be less than one character in length"); a !== 0; ) {
1920
1920
  for (; ge(a); )
1921
1921
  a = e.input.charCodeAt(++e.position);
1922
1922
  if (a === 35) {
1923
1923
  do
1924
1924
  a = e.input.charCodeAt(++e.position);
1925
- while (a !== 0 && !le(a));
1925
+ while (a !== 0 && !ce(a));
1926
1926
  break;
1927
1927
  }
1928
- if (le(a)) break;
1928
+ if (ce(a)) break;
1929
1929
  for (n = e.position; a !== 0 && !re(a); )
1930
1930
  a = e.input.charCodeAt(++e.position);
1931
1931
  i.push(e.input.slice(n, e.position));
1932
1932
  }
1933
- a !== 0 && rt(e), pe.call(bt, r) ? bt[r](e, r, i) : Le(e, 'unknown document directive "' + r + '"');
1933
+ a !== 0 && rt(e), pe.call(bt, r) ? bt[r](e, r, i) : Re(e, 'unknown document directive "' + r + '"');
1934
1934
  }
1935
- if (W(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, W(e, !0, -1)) : o && C(e, "directives end mark is expected"), Ae(e, e.lineIndent - 1, Oe, !1, !0), W(e, !0, -1), e.checkLineBreaks && ia.test(e.input.slice(t, e.position)) && Le(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && De(e)) {
1935
+ if (W(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, W(e, !0, -1)) : o && A(e, "directives end mark is expected"), Ae(e, e.lineIndent - 1, Le, !1, !0), W(e, !0, -1), e.checkLineBreaks && oa.test(e.input.slice(t, e.position)) && Re(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && je(e)) {
1936
1936
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, W(e, !0, -1));
1937
1937
  return;
1938
1938
  }
1939
1939
  if (e.position < e.length - 1)
1940
- C(e, "end of the stream or a document separator is expected");
1940
+ A(e, "end of the stream or a document separator is expected");
1941
1941
  else
1942
1942
  return;
1943
1943
  }
1944
1944
  function vn(e, t) {
1945
1945
  e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
1946
1946
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
1947
- var n = new ua(e, t), r = e.indexOf("\0");
1948
- for (r !== -1 && (n.position = r, C(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
1947
+ var n = new fa(e, t), r = e.indexOf("\0");
1948
+ for (r !== -1 && (n.position = r, A(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
1949
1949
  n.lineIndent += 1, n.position += 1;
1950
1950
  for (; n.position < n.length - 1; )
1951
- xa(n);
1951
+ Aa(n);
1952
1952
  return n.documents;
1953
1953
  }
1954
- function Ca(e, t, n) {
1954
+ function _a(e, t, n) {
1955
1955
  t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
1956
1956
  var r = vn(e, n);
1957
1957
  if (typeof t != "function")
@@ -1959,7 +1959,7 @@ function Ca(e, t, n) {
1959
1959
  for (var i = 0, o = r.length; i < o; i += 1)
1960
1960
  t(r[i]);
1961
1961
  }
1962
- function Aa(e, t) {
1962
+ function ka(e, t) {
1963
1963
  var n = vn(e, t);
1964
1964
  if (n.length !== 0) {
1965
1965
  if (n.length === 1)
@@ -1967,10 +1967,10 @@ function Aa(e, t) {
1967
1967
  throw new ne("expected a single document in the stream, but found more");
1968
1968
  }
1969
1969
  }
1970
- var ka = Ca, _a = Aa, bn = {
1971
- loadAll: ka,
1972
- load: _a
1973
- }, xn = Object.prototype.toString, Cn = Object.prototype.hasOwnProperty, at = 65279, wa = 9, Se = 10, Sa = 13, Ia = 32, Ta = 33, $a = 34, Je = 35, Ea = 37, Fa = 38, Oa = 39, La = 42, An = 44, Ra = 45, Re = 58, Ba = 61, Na = 62, Ka = 63, Ma = 64, kn = 91, _n = 93, Da = 96, wn = 123, ja = 124, Sn = 125, ee = {};
1970
+ var wa = _a, Sa = ka, bn = {
1971
+ loadAll: wa,
1972
+ load: Sa
1973
+ }, xn = Object.prototype.toString, Cn = Object.prototype.hasOwnProperty, at = 65279, Ia = 9, Se = 10, Ta = 13, $a = 32, Ea = 33, Oa = 34, Je = 35, Fa = 37, La = 38, Ra = 39, Ba = 42, An = 44, Na = 45, Be = 58, Ka = 61, Ma = 62, Da = 63, ja = 64, _n = 91, kn = 93, Ua = 96, wn = 123, Pa = 124, Sn = 125, ee = {};
1974
1974
  ee[0] = "\\0";
1975
1975
  ee[7] = "\\a";
1976
1976
  ee[8] = "\\b";
@@ -1986,7 +1986,7 @@ ee[133] = "\\N";
1986
1986
  ee[160] = "\\_";
1987
1987
  ee[8232] = "\\L";
1988
1988
  ee[8233] = "\\P";
1989
- var Ua = [
1989
+ var qa = [
1990
1990
  "y",
1991
1991
  "Y",
1992
1992
  "yes",
@@ -2003,15 +2003,15 @@ var Ua = [
2003
2003
  "off",
2004
2004
  "Off",
2005
2005
  "OFF"
2006
- ], Pa = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2007
- function qa(e, t) {
2006
+ ], Ha = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2007
+ function Ya(e, t) {
2008
2008
  var n, r, i, o, a, l, c;
2009
2009
  if (t === null) return {};
2010
2010
  for (n = {}, r = Object.keys(t), i = 0, o = r.length; i < o; i += 1)
2011
2011
  a = r[i], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), c = e.compiledTypeMap.fallback[a], c && Cn.call(c.styleAliases, l) && (l = c.styleAliases[l]), n[a] = l;
2012
2012
  return n;
2013
2013
  }
2014
- function Ha(e) {
2014
+ function Va(e) {
2015
2015
  var t, n, r;
2016
2016
  if (t = e.toString(16).toUpperCase(), e <= 255)
2017
2017
  n = "x", r = 2;
@@ -2021,14 +2021,14 @@ function Ha(e) {
2021
2021
  n = "U", r = 8;
2022
2022
  else
2023
2023
  throw new ne("code point within a string may not be greater than 0xFFFFFFFF");
2024
- return "\\" + n + J.repeat("0", r - t.length) + t;
2024
+ return "\\" + n + G.repeat("0", r - t.length) + t;
2025
2025
  }
2026
- var Ya = 1, Ie = 2;
2027
- function Va(e) {
2028
- this.schema = e.schema || nt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = J.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = qa(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 === '"' ? Ie : Ya, 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;
2026
+ var Wa = 1, Ie = 2;
2027
+ function Ja(e) {
2028
+ this.schema = e.schema || nt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = G.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Ya(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 === '"' ? Ie : Wa, 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;
2029
2029
  }
2030
2030
  function At(e, t) {
2031
- for (var n = J.repeat(" ", t), r = 0, i = -1, o = "", a, l = e.length; r < l; )
2031
+ for (var n = G.repeat(" ", t), r = 0, i = -1, o = "", a, l = e.length; r < l; )
2032
2032
  i = e.indexOf(`
2033
2033
  `, r), i === -1 ? (a = e.slice(r), r = l) : (a = e.slice(r, i + 1), r = i + 1), a.length && a !== `
2034
2034
  ` && (o += n), o += a;
@@ -2036,41 +2036,41 @@ function At(e, t) {
2036
2036
  }
2037
2037
  function Ge(e, t) {
2038
2038
  return `
2039
- ` + J.repeat(" ", e.indent * t);
2039
+ ` + G.repeat(" ", e.indent * t);
2040
2040
  }
2041
- function Wa(e, t) {
2041
+ function Ga(e, t) {
2042
2042
  var n, r, i;
2043
2043
  for (n = 0, r = e.implicitTypes.length; n < r; n += 1)
2044
2044
  if (i = e.implicitTypes[n], i.resolve(t))
2045
2045
  return !0;
2046
2046
  return !1;
2047
2047
  }
2048
- function Be(e) {
2049
- return e === Ia || e === wa;
2048
+ function Ne(e) {
2049
+ return e === $a || e === Ia;
2050
2050
  }
2051
2051
  function Te(e) {
2052
2052
  return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== at || 65536 <= e && e <= 1114111;
2053
2053
  }
2054
- function kt(e) {
2055
- return Te(e) && e !== at && e !== Sa && e !== Se;
2054
+ function _t(e) {
2055
+ return Te(e) && e !== at && e !== Ta && e !== Se;
2056
2056
  }
2057
- function _t(e, t, n) {
2058
- var r = kt(e), i = r && !Be(e);
2057
+ function kt(e, t, n) {
2058
+ var r = _t(e), i = r && !Ne(e);
2059
2059
  return (
2060
2060
  // ns-plain-safe
2061
2061
  (n ? (
2062
2062
  // c = flow-in
2063
2063
  r
2064
- ) : r && e !== An && e !== kn && e !== _n && e !== wn && e !== Sn) && e !== Je && !(t === Re && !i) || kt(t) && !Be(t) && e === Je || t === Re && i
2064
+ ) : r && e !== An && e !== _n && e !== kn && e !== wn && e !== Sn) && e !== Je && !(t === Be && !i) || _t(t) && !Ne(t) && e === Je || t === Be && i
2065
2065
  );
2066
2066
  }
2067
- function Ja(e) {
2068
- return Te(e) && e !== at && !Be(e) && e !== Ra && e !== Ka && e !== Re && e !== An && e !== kn && e !== _n && e !== wn && e !== Sn && e !== Je && e !== Fa && e !== La && e !== Ta && e !== ja && e !== Ba && e !== Na && e !== Oa && e !== $a && e !== Ea && e !== Ma && e !== Da;
2067
+ function za(e) {
2068
+ return Te(e) && e !== at && !Ne(e) && e !== Na && e !== Da && e !== Be && e !== An && e !== _n && e !== kn && e !== wn && e !== Sn && e !== Je && e !== La && e !== Ba && e !== Ea && e !== Pa && e !== Ka && e !== Ma && e !== Ra && e !== Oa && e !== Fa && e !== ja && e !== Ua;
2069
2069
  }
2070
- function Ga(e) {
2071
- return !Be(e) && e !== Re;
2070
+ function Qa(e) {
2071
+ return !Ne(e) && e !== Be;
2072
2072
  }
2073
- function _e(e, t) {
2073
+ function ke(e, t) {
2074
2074
  var n = e.charCodeAt(t), r;
2075
2075
  return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
2076
2076
  }
@@ -2079,38 +2079,38 @@ function In(e) {
2079
2079
  return t.test(e);
2080
2080
  }
2081
2081
  var Tn = 1, ze = 2, $n = 3, En = 4, ve = 5;
2082
- function za(e, t, n, r, i, o, a, l) {
2083
- var c, s = 0, d = null, u = !1, m = !1, f = r !== -1, g = -1, y = Ja(_e(e, 0)) && Ga(_e(e, e.length - 1));
2082
+ function Za(e, t, n, r, i, o, a, l) {
2083
+ var c, s = 0, d = null, u = !1, m = !1, f = r !== -1, y = -1, v = za(ke(e, 0)) && Qa(ke(e, e.length - 1));
2084
2084
  if (t || a)
2085
2085
  for (c = 0; c < e.length; s >= 65536 ? c += 2 : c++) {
2086
- if (s = _e(e, c), !Te(s))
2086
+ if (s = ke(e, c), !Te(s))
2087
2087
  return ve;
2088
- y = y && _t(s, d, l), d = s;
2088
+ v = v && kt(s, d, l), d = s;
2089
2089
  }
2090
2090
  else {
2091
2091
  for (c = 0; c < e.length; s >= 65536 ? c += 2 : c++) {
2092
- if (s = _e(e, c), s === Se)
2092
+ if (s = ke(e, c), s === Se)
2093
2093
  u = !0, f && (m = m || // Foldable line = too long, and not more-indented.
2094
- c - g - 1 > r && e[g + 1] !== " ", g = c);
2094
+ c - y - 1 > r && e[y + 1] !== " ", y = c);
2095
2095
  else if (!Te(s))
2096
2096
  return ve;
2097
- y = y && _t(s, d, l), d = s;
2097
+ v = v && kt(s, d, l), d = s;
2098
2098
  }
2099
- m = m || f && c - g - 1 > r && e[g + 1] !== " ";
2099
+ m = m || f && c - y - 1 > r && e[y + 1] !== " ";
2100
2100
  }
2101
- return !u && !m ? y && !a && !i(e) ? Tn : o === Ie ? ve : ze : n > 9 && In(e) ? ve : a ? o === Ie ? ve : ze : m ? En : $n;
2101
+ return !u && !m ? v && !a && !i(e) ? Tn : o === Ie ? ve : ze : n > 9 && In(e) ? ve : a ? o === Ie ? ve : ze : m ? En : $n;
2102
2102
  }
2103
- function Qa(e, t, n, r, i) {
2103
+ function Xa(e, t, n, r, i) {
2104
2104
  e.dump = function() {
2105
2105
  if (t.length === 0)
2106
2106
  return e.quotingType === Ie ? '""' : "''";
2107
- if (!e.noCompatMode && (Ua.indexOf(t) !== -1 || Pa.test(t)))
2107
+ if (!e.noCompatMode && (qa.indexOf(t) !== -1 || Ha.test(t)))
2108
2108
  return e.quotingType === Ie ? '"' + t + '"' : "'" + t + "'";
2109
2109
  var o = e.indent * Math.max(1, n), a = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), l = r || e.flowLevel > -1 && n >= e.flowLevel;
2110
2110
  function c(s) {
2111
- return Wa(e, s);
2111
+ return Ga(e, s);
2112
2112
  }
2113
- switch (za(
2113
+ switch (Za(
2114
2114
  t,
2115
2115
  l,
2116
2116
  e.indent,
@@ -2127,9 +2127,9 @@ function Qa(e, t, n, r, i) {
2127
2127
  case $n:
2128
2128
  return "|" + wt(t, e.indent) + St(At(t, o));
2129
2129
  case En:
2130
- return ">" + wt(t, e.indent) + St(At(Za(t, a), o));
2130
+ return ">" + wt(t, e.indent) + St(At(eo(t, a), o));
2131
2131
  case ve:
2132
- return '"' + Xa(t) + '"';
2132
+ return '"' + to(t) + '"';
2133
2133
  default:
2134
2134
  throw new ne("impossible error: invalid scalar style");
2135
2135
  }
@@ -2147,7 +2147,7 @@ function St(e) {
2147
2147
  return e[e.length - 1] === `
2148
2148
  ` ? e.slice(0, -1) : e;
2149
2149
  }
2150
- function Za(e, t) {
2150
+ function eo(e, t) {
2151
2151
  for (var n = /(\n+)([^\n]*)/g, r = function() {
2152
2152
  var s = e.indexOf(`
2153
2153
  `);
@@ -2169,12 +2169,12 @@ function It(e, t) {
2169
2169
  `, e.length - i > t && a > i ? c += e.slice(i, a) + `
2170
2170
  ` + e.slice(a + 1) : c += e.slice(i), c.slice(1);
2171
2171
  }
2172
- function Xa(e) {
2172
+ function to(e) {
2173
2173
  for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++)
2174
- n = _e(e, i), r = ee[n], !r && Te(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Ha(n);
2174
+ n = ke(e, i), r = ee[n], !r && Te(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Va(n);
2175
2175
  return t;
2176
2176
  }
2177
- function eo(e, t, n) {
2177
+ function no(e, t, n) {
2178
2178
  var r = "", i = e.tag, o, a, l;
2179
2179
  for (o = 0, a = n.length; o < a; o += 1)
2180
2180
  l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (se(e, t, l, !1, !1) || typeof l > "u" && se(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
@@ -2186,13 +2186,13 @@ function Tt(e, t, n, r) {
2186
2186
  c = n[a], e.replacer && (c = e.replacer.call(n, String(a), c)), (se(e, t + 1, c, !0, !0, !1, !0) || typeof c > "u" && se(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Ge(e, t)), e.dump && Se === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
2187
2187
  e.tag = o, e.dump = i || "[]";
2188
2188
  }
2189
- function to(e, t, n) {
2189
+ function ro(e, t, n) {
2190
2190
  var r = "", i = e.tag, o = Object.keys(n), a, l, c, s, d;
2191
2191
  for (a = 0, l = o.length; a < l; a += 1)
2192
2192
  d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), c = o[a], s = n[c], e.replacer && (s = e.replacer.call(n, c, s)), se(e, t, c, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), se(e, t, s, !1, !1) && (d += e.dump, r += d));
2193
2193
  e.tag = i, e.dump = "{" + r + "}";
2194
2194
  }
2195
- function no(e, t, n, r) {
2195
+ function io(e, t, n, r) {
2196
2196
  var i = "", o = e.tag, a = Object.keys(n), l, c, s, d, u, m;
2197
2197
  if (e.sortKeys === !0)
2198
2198
  a.sort();
@@ -2230,11 +2230,11 @@ function se(e, t, n, r, i, o, a) {
2230
2230
  e.dump = "*ref_" + u;
2231
2231
  else {
2232
2232
  if (d && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
2233
- r && Object.keys(e.dump).length !== 0 ? (no(e, t, e.dump, i), m && (e.dump = "&ref_" + u + e.dump)) : (to(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2233
+ r && Object.keys(e.dump).length !== 0 ? (io(e, t, e.dump, i), m && (e.dump = "&ref_" + u + e.dump)) : (ro(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2234
2234
  else if (l === "[object Array]")
2235
- r && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Tt(e, t - 1, e.dump, i) : Tt(e, t, e.dump, i), m && (e.dump = "&ref_" + u + e.dump)) : (eo(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2235
+ r && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Tt(e, t - 1, e.dump, i) : Tt(e, t, e.dump, i), m && (e.dump = "&ref_" + u + e.dump)) : (no(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2236
2236
  else if (l === "[object String]")
2237
- e.tag !== "?" && Qa(e, e.dump, t, o, c);
2237
+ e.tag !== "?" && Xa(e, e.dump, t, o, c);
2238
2238
  else {
2239
2239
  if (l === "[object Undefined]")
2240
2240
  return !1;
@@ -2247,7 +2247,7 @@ function se(e, t, n, r, i, o, a) {
2247
2247
  }
2248
2248
  return !0;
2249
2249
  }
2250
- function ro(e, t) {
2250
+ function ao(e, t) {
2251
2251
  var n = [], r = [], i, o;
2252
2252
  for (Qe(e, n, r), i = 0, o = r.length; i < o; i += 1)
2253
2253
  t.duplicates.push(n[r[i]]);
@@ -2265,23 +2265,23 @@ function Qe(e, t, n) {
2265
2265
  for (r = Object.keys(e), i = 0, o = r.length; i < o; i += 1)
2266
2266
  Qe(e[r[i]], t, n);
2267
2267
  }
2268
- function io(e, t) {
2268
+ function oo(e, t) {
2269
2269
  t = t || {};
2270
- var n = new Va(t);
2271
- n.noRefs || ro(e, n);
2270
+ var n = new Ja(t);
2271
+ n.noRefs || ao(e, n);
2272
2272
  var r = e;
2273
2273
  return n.replacer && (r = n.replacer.call({ "": r }, "", r)), se(n, 0, r, !0, !0) ? n.dump + `
2274
2274
  ` : "";
2275
2275
  }
2276
- var ao = io, oo = {
2277
- dump: ao
2276
+ var lo = oo, co = {
2277
+ dump: lo
2278
2278
  };
2279
2279
  function ot(e, t) {
2280
2280
  return function() {
2281
2281
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2282
2282
  };
2283
2283
  }
2284
- var lo = X, co = Yt, so = Gt, uo = en, fo = tn, po = nt, mo = bn.load, ho = bn.loadAll, go = oo.dump, yo = ne, vo = {
2284
+ var so = X, uo = Yt, fo = Gt, po = en, mo = tn, ho = nt, go = bn.load, yo = bn.loadAll, vo = co.dump, bo = ne, xo = {
2285
2285
  binary: ln,
2286
2286
  float: Xt,
2287
2287
  map: Jt,
@@ -2295,23 +2295,23 @@ var lo = X, co = Yt, so = Gt, uo = en, fo = tn, po = nt, mo = bn.load, ho = bn.l
2295
2295
  omap: cn,
2296
2296
  seq: Wt,
2297
2297
  str: Vt
2298
- }, bo = ot("safeLoad", "load"), xo = ot("safeLoadAll", "loadAll"), Co = ot("safeDump", "dump"), Ao = {
2299
- Type: lo,
2300
- Schema: co,
2301
- FAILSAFE_SCHEMA: so,
2302
- JSON_SCHEMA: uo,
2303
- CORE_SCHEMA: fo,
2304
- DEFAULT_SCHEMA: po,
2305
- load: mo,
2306
- loadAll: ho,
2307
- dump: go,
2308
- YAMLException: yo,
2309
- types: vo,
2310
- safeLoad: bo,
2311
- safeLoadAll: xo,
2312
- safeDump: Co
2298
+ }, Co = ot("safeLoad", "load"), Ao = ot("safeLoadAll", "loadAll"), _o = ot("safeDump", "dump"), ko = {
2299
+ Type: so,
2300
+ Schema: uo,
2301
+ FAILSAFE_SCHEMA: fo,
2302
+ JSON_SCHEMA: po,
2303
+ CORE_SCHEMA: mo,
2304
+ DEFAULT_SCHEMA: ho,
2305
+ load: go,
2306
+ loadAll: yo,
2307
+ dump: vo,
2308
+ YAMLException: bo,
2309
+ types: xo,
2310
+ safeLoad: Co,
2311
+ safeLoadAll: Ao,
2312
+ safeDump: _o
2313
2313
  };
2314
- const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2314
+ const wo = { class: "yaml-config" }, On = /* @__PURE__ */ J({
2315
2315
  __name: "YamlCodeBlock",
2316
2316
  props: {
2317
2317
  /** A record to indicate the entity's configuration, used to populate the YAML code block */
@@ -2323,12 +2323,12 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2323
2323
  setup(e) {
2324
2324
  const t = e, n = w(() => {
2325
2325
  const r = Object.fromEntries(Object.entries(t.entityRecord).filter(([, i]) => i !== null && i !== "" && (Array.isArray(i) ? i.length !== 0 : !0)));
2326
- return Object.keys(r).length === 0 && r.constructor === Object ? "" : Ao.dump(r).trim();
2326
+ return Object.keys(r).length === 0 && r.constructor === Object ? "" : ko.dump(r).trim();
2327
2327
  });
2328
2328
  return (r, i) => {
2329
- const o = D("KCodeBlock");
2330
- return v(), L("div", ko, [
2331
- t.entityRecord ? (v(), j(o, {
2329
+ const o = j("KCodeBlock");
2330
+ return g(), F("div", wo, [
2331
+ t.entityRecord ? (g(), M(o, {
2332
2332
  key: 0,
2333
2333
  id: "yaml-codeblock",
2334
2334
  code: n.value,
@@ -2338,7 +2338,7 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2338
2338
  ]);
2339
2339
  };
2340
2340
  }
2341
- }), _o = { class: "terraform-config" }, te = " ", On = /* @__PURE__ */ G({
2341
+ }), So = { class: "terraform-config" }, te = " ", Fn = /* @__PURE__ */ J({
2342
2342
  __name: "TerraformCodeBlock",
2343
2343
  props: {
2344
2344
  /** A record to indicate the entity's configuration, used to populate the Terraform code block */
@@ -2349,7 +2349,7 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2349
2349
  entityType: {
2350
2350
  type: String,
2351
2351
  required: !0,
2352
- validator: (e) => Ke.includes(e)
2352
+ validator: (e) => Me.includes(e)
2353
2353
  },
2354
2354
  credentialType: {
2355
2355
  type: String,
@@ -2371,12 +2371,12 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2371
2371
  if (c && (u += `${d}${c} = {
2372
2372
  `), l === null)
2373
2373
  return c ? u += `${d}}` : u = "{}", u;
2374
- const m = Object.fromEntries(Object.entries(l).filter(([, g]) => g !== null));
2374
+ const m = Object.fromEntries(Object.entries(l).filter(([, y]) => y !== null));
2375
2375
  let f = "";
2376
- for (const [g, y] of Object.entries(m))
2377
- Array.isArray(y) ? y.length === 0 ? f = "[]" : (f = `[
2378
- `, f += i(y, void 0, d), f += `${d}${te}]`) : y && typeof y == "object" ? (f = `{
2379
- `, f += r(y, void 0, d), f += `${d}${te}}`) : f = String(y ?? ""), typeof y == "string" && (f = `"${f}"`), u += `${d}${te}${g} = ${f}
2376
+ for (const [y, v] of Object.entries(m))
2377
+ Array.isArray(v) ? v.length === 0 ? f = "[]" : (f = `[
2378
+ `, f += i(v, void 0, d), f += `${d}${te}]`) : v && typeof v == "object" ? (f = `{
2379
+ `, f += r(v, void 0, d), f += `${d}${te}}`) : f = String(v ?? ""), typeof v == "string" && (f = `"${f}"`), u += `${d}${te}${y} = ${f}
2380
2380
  `;
2381
2381
  return c ? u += `${d}}
2382
2382
  ` : u;
@@ -2402,13 +2402,13 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2402
2402
  Array.isArray(d) ? c += i(d, s) : typeof d == "object" ? c += r(d, s) : c += n(d, s);
2403
2403
  return c;
2404
2404
  }, a = w(() => {
2405
- var u, m, f, g, y, b, S;
2405
+ var u, m, f, y, v, b, S;
2406
2406
  const l = Object.fromEntries(Object.entries(t.entityRecord).filter(([, x]) => x != null)), c = t.entityRecord.config ? Object.fromEntries(Object.entries((u = t.entityRecord) == null ? void 0 : u.config).filter(([, x]) => x != null)) : void 0;
2407
2407
  if (c && (l.config = c), Object.keys(l).length === 0)
2408
2408
  return "";
2409
2409
  delete l.id;
2410
2410
  let s = "", d = "";
2411
- if ((m = l.service) != null && m.id ? (d = "service", delete l.service) : (f = l.route) != null && f.id ? (d = "route", delete l.route) : (g = l.consumer) != null && g.id ? (d = "consumer", delete l.consumer) : (y = l.consumer_group) != null && y.id ? (d = "consumer_group", delete l.consumer_group) : (b = l.certificate) != null && b.id ? (d = "certificate", delete l.certificate) : (S = l.set) != null && S.id && (d = "set", delete l.set), t.entityType === "plugin") {
2411
+ if ((m = l.service) != null && m.id ? (d = "service", delete l.service) : (f = l.route) != null && f.id ? (d = "route", delete l.route) : (y = l.consumer) != null && y.id ? (d = "consumer", delete l.consumer) : (v = l.consumer_group) != null && v.id ? (d = "consumer_group", delete l.consumer_group) : (b = l.certificate) != null && b.id ? (d = "certificate", delete l.certificate) : (S = l.set) != null && S.id && (d = "set", delete l.set), t.entityType === "plugin") {
2412
2412
  const x = t.credentialType.replace(/-/g, "_") || (l.name + "").replace(/-/g, "_");
2413
2413
  delete l.name, s += `resource "konnect_gateway_plugin_${x}" "my_${x}" {
2414
2414
  `;
@@ -2423,9 +2423,9 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2423
2423
  `, s;
2424
2424
  });
2425
2425
  return (l, c) => {
2426
- const s = D("KCodeBlock");
2427
- return v(), L("div", _o, [
2428
- t.entityRecord ? (v(), j(s, {
2426
+ const s = j("KCodeBlock");
2427
+ return g(), F("div", So, [
2428
+ t.entityRecord ? (g(), M(s, {
2429
2429
  key: 0,
2430
2430
  id: "terraform-codeblock",
2431
2431
  code: a.value,
@@ -2435,13 +2435,13 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2435
2435
  ]);
2436
2436
  };
2437
2437
  }
2438
- }), wo = {
2438
+ }), Io = {
2439
2439
  key: 0,
2440
2440
  class: "config-card-display-form"
2441
- }, So = ["data-testid"], Io = {
2441
+ }, To = ["data-testid"], $o = {
2442
2442
  key: 0,
2443
2443
  class: "config-card-prop-section-title"
2444
- }, To = /* @__PURE__ */ G({
2444
+ }, Eo = /* @__PURE__ */ J({
2445
2445
  __name: "ConfigCardDisplay",
2446
2446
  props: {
2447
2447
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2453,7 +2453,7 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2453
2453
  entityType: {
2454
2454
  type: String,
2455
2455
  required: !0,
2456
- validator: (e) => Ke.includes(e)
2456
+ validator: (e) => Me.includes(e)
2457
2457
  },
2458
2458
  propertyCollections: {
2459
2459
  type: Object,
@@ -2485,28 +2485,28 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2485
2485
  }
2486
2486
  },
2487
2487
  setup(e) {
2488
- const t = e, n = Ze(), { i18n: { t: r } } = H.useI18n(), i = (a) => !!(a.tooltip || n[`${a.key}-label-tooltip`]), o = w(() => {
2488
+ const t = e, n = Ze(), { i18n: { t: r } } = Y.useI18n(), i = (a) => !!(a.tooltip || n[`${a.key}-label-tooltip`]), o = w(() => {
2489
2489
  if (!t.record)
2490
2490
  return t.record;
2491
2491
  const a = JSON.parse(JSON.stringify(t.record));
2492
2492
  return delete a.created_at, delete a.updated_at, a;
2493
2493
  });
2494
- return (a, l) => (v(), L(ce, null, [
2495
- e.format === "structured" ? (v(), L("div", wo, [
2496
- (v(!0), L(ce, null, oe(e.propListTypes, (c) => (v(), L("div", {
2494
+ return (a, l) => (g(), F(le, null, [
2495
+ e.format === "structured" ? (g(), F("div", Io, [
2496
+ (g(!0), F(le, null, oe(e.propListTypes, (c) => (g(), F("div", {
2497
2497
  key: `config-card-details-${c}-props`,
2498
2498
  class: fe(`config-card-details-${c}-props`),
2499
2499
  "data-testid": `config-card-details-${c}-props`
2500
2500
  }, [
2501
- c !== "basic" ? (v(), L("div", Io, N(c === "advanced" ? _(r)("baseConfigCard.sections.advanced") : _(r)("baseConfigCard.sections.plugin")), 1)) : P("", !0),
2502
- (v(!0), L(ce, null, oe(e.propertyCollections[c], (s) => (v(), j(Ut, {
2501
+ c !== "basic" ? (g(), F("div", $o, N(c === "advanced" ? k(r)("baseConfigCard.sections.advanced") : k(r)("baseConfigCard.sections.plugin")), 1)) : P("", !0),
2502
+ (g(!0), F(le, null, oe(e.propertyCollections[c], (s) => (g(), M(Ut, {
2503
2503
  key: s.key,
2504
2504
  item: s
2505
2505
  }, Ce({
2506
- label: A(() => [
2506
+ label: C(() => [
2507
2507
  V(a.$slots, `${s.key}-label`, { row: s }, void 0, !0)
2508
2508
  ]),
2509
- [s.key]: A(({ rowValue: d }) => [
2509
+ [s.key]: C(({ rowValue: d }) => [
2510
2510
  V(a.$slots, s.key, {
2511
2511
  row: s,
2512
2512
  rowValue: d
@@ -2516,36 +2516,36 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2516
2516
  }, [
2517
2517
  i(s) ? {
2518
2518
  name: "label-tooltip",
2519
- fn: A(() => [
2519
+ fn: C(() => [
2520
2520
  V(a.$slots, `${s.key}-label-tooltip`, { row: s }, void 0, !0)
2521
2521
  ]),
2522
2522
  key: "0"
2523
2523
  } : void 0
2524
2524
  ]), 1032, ["item"]))), 128))
2525
- ], 10, So))), 128))
2525
+ ], 10, To))), 128))
2526
2526
  ])) : P("", !0),
2527
- e.format === "json" && o.value ? (v(), j(Pt, {
2527
+ e.format === "json" && o.value ? (g(), M(Pt, {
2528
2528
  key: 1,
2529
2529
  config: t.config,
2530
2530
  "entity-record": o.value,
2531
2531
  "fetcher-url": t.fetcherUrl,
2532
2532
  "request-method": "get"
2533
2533
  }, null, 8, ["config", "entity-record", "fetcher-url"])) : P("", !0),
2534
- e.format === "yaml" && o.value ? (v(), j(Fn, {
2534
+ e.format === "yaml" && o.value ? (g(), M(On, {
2535
2535
  key: 2,
2536
2536
  "entity-record": o.value
2537
2537
  }, null, 8, ["entity-record"])) : P("", !0),
2538
- e.format === "terraform" && o.value ? (v(), j(On, {
2538
+ e.format === "terraform" && o.value ? (g(), M(Fn, {
2539
2539
  key: 3,
2540
2540
  "entity-record": o.value,
2541
2541
  "entity-type": t.entityType
2542
2542
  }, null, 8, ["entity-record", "entity-type"])) : P("", !0)
2543
2543
  ], 64));
2544
2544
  }
2545
- }), $o = /* @__PURE__ */ ae(To, [["__scopeId", "data-v-d15be7fe"]]), Eo = {
2545
+ }), Oo = /* @__PURE__ */ ae(Eo, [["__scopeId", "data-v-d15be7fe"]]), Fo = {
2546
2546
  class: "config-card-title",
2547
2547
  "data-testid": "config-card-title"
2548
- }, Fo = { class: "config-card-actions" }, Oo = ["href"], Lo = { class: "config-card-details-section" }, Ro = /* @__PURE__ */ G({
2548
+ }, Lo = { class: "config-card-actions" }, Ro = ["href"], Bo = { class: "config-card-details-section" }, No = /* @__PURE__ */ J({
2549
2549
  __name: "EntityBaseConfigCard",
2550
2550
  props: {
2551
2551
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2566,7 +2566,7 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2566
2566
  entityType: {
2567
2567
  type: String,
2568
2568
  required: !0,
2569
- validator: (e) => Ke.includes(e)
2569
+ validator: (e) => Me.includes(e)
2570
2570
  },
2571
2571
  /** Record key that contains the plugin configuration */
2572
2572
  pluginConfigKey: {
@@ -2631,10 +2631,10 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2631
2631
  },
2632
2632
  emits: ["loading", "fetch:success", "fetch:error"],
2633
2633
  setup(e, { emit: t }) {
2634
- var k;
2635
- const n = t, r = e, { i18n: { t: i } } = H.useI18n(), { getMessageFromError: o } = H.useErrors(), { convertKeyToTitle: a } = H.useStringHelpers();
2636
- H.useSubSchema(r.pluginConfigKey);
2637
- const { axiosInstance: l } = H.useAxios((k = r.config) == null ? void 0 : k.axiosRequestConfig), c = [
2634
+ var _;
2635
+ const n = t, r = e, { i18n: { t: i } } = Y.useI18n(), { getMessageFromError: o } = Y.useErrors(), { convertKeyToTitle: a } = Y.useStringHelpers();
2636
+ Y.useSubSchema(r.pluginConfigKey);
2637
+ const { axiosInstance: l } = Y.useAxios((_ = r.config) == null ? void 0 : _.axiosRequestConfig), c = [
2638
2638
  {
2639
2639
  label: i("baseConfigCard.general.structuredFormat"),
2640
2640
  value: "structured",
@@ -2689,52 +2689,52 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2689
2689
  // the last property displayed
2690
2690
  section: ie.Basic
2691
2691
  }
2692
- }, m = B(!1), f = B(!1), g = B(""), y = B({}), b = w(() => {
2692
+ }, m = B(!1), f = B(!1), y = B(""), v = B({}), b = w(() => {
2693
2693
  var T, I, $;
2694
- if (!y.value)
2694
+ if (!v.value)
2695
2695
  return [];
2696
- const p = [], h = Object.keys(y.value).length;
2697
- for (const R in y.value) {
2698
- const O = (I = (T = r.configSchema) == null ? void 0 : T[R]) == null ? void 0 : I.order, z = ($ = u[R]) == null ? void 0 : $.order;
2696
+ const p = [], h = Object.keys(v.value).length;
2697
+ for (const R in v.value) {
2698
+ const L = (I = (T = r.configSchema) == null ? void 0 : T[R]) == null ? void 0 : I.order, z = ($ = u[R]) == null ? void 0 : $.order;
2699
2699
  let q = h;
2700
- (z || z === 0) && (q = z === -1 ? h + 1 : z), O && (q = O === -1 ? h + 1 : O), p.push([R, q]);
2700
+ (z || z === 0) && (q = z === -1 ? h + 1 : z), L && (q = L === -1 ? h + 1 : L), p.push([R, q]);
2701
2701
  }
2702
- return p.sort(function(R, O) {
2703
- return R[1] - O[1];
2702
+ return p.sort(function(R, L) {
2703
+ return R[1] - L[1];
2704
2704
  }), p.map((R) => {
2705
2705
  var $e, lt;
2706
- const O = R[0], z = ($e = y.value) == null ? void 0 : $e[O], q = ((lt = r.configSchema) == null ? void 0 : lt[O]) || {}, Q = u[O];
2706
+ const L = R[0], z = ($e = v.value) == null ? void 0 : $e[L], q = ((lt = r.configSchema) == null ? void 0 : lt[L]) || {}, Q = u[L];
2707
2707
  return {
2708
- key: O,
2708
+ key: L,
2709
2709
  value: z,
2710
2710
  hidden: q.hidden || !1,
2711
2711
  type: q.type ?? ((Q == null ? void 0 : Q.type) || U.Text),
2712
- label: q.label ?? ((Q == null ? void 0 : Q.label) || a(O)),
2712
+ label: q.label ?? ((Q == null ? void 0 : Q.label) || a(L)),
2713
2713
  tooltip: q.tooltip ?? ((Q == null ? void 0 : Q.tooltip) || void 0),
2714
2714
  section: q.section ?? ((Q == null ? void 0 : Q.section) || ie.Advanced)
2715
2715
  };
2716
2716
  }).filter((R) => !R.hidden && R.key !== r.pluginConfigKey);
2717
2717
  }), S = w(() => {
2718
2718
  var I, $;
2719
- if (!y.value || !r.pluginConfigKey)
2719
+ if (!v.value || !r.pluginConfigKey)
2720
2720
  return [];
2721
- const p = y.value[r.pluginConfigKey] || {}, h = Object.keys(p).length, T = [];
2721
+ const p = v.value[r.pluginConfigKey] || {}, h = Object.keys(p).length, T = [];
2722
2722
  for (const R in p) {
2723
- const O = ($ = (I = r.pluginConfigSchema) == null ? void 0 : I[R]) == null ? void 0 : $.order, z = p[R];
2723
+ const L = ($ = (I = r.pluginConfigSchema) == null ? void 0 : I[R]) == null ? void 0 : $.order, z = p[R];
2724
2724
  let q = z != null && z !== "" ? h - 1 : h;
2725
- O && (q = O === -1 ? h + 1 : O), T.push([R, q]);
2725
+ L && (q = L === -1 ? h + 1 : L), T.push([R, q]);
2726
2726
  }
2727
- return T.sort(function(R, O) {
2728
- return R[1] - O[1];
2727
+ return T.sort(function(R, L) {
2728
+ return R[1] - L[1];
2729
2729
  }), T.map((R) => {
2730
2730
  var Q;
2731
- const O = R[0], z = p[O], q = ((Q = r.pluginConfigSchema) == null ? void 0 : Q[O]) || {};
2731
+ const L = R[0], z = p[L], q = ((Q = r.pluginConfigSchema) == null ? void 0 : Q[L]) || {};
2732
2732
  return {
2733
- key: O,
2733
+ key: L,
2734
2734
  value: z,
2735
2735
  hidden: q.hidden || !1,
2736
2736
  type: q.type ?? U.Text,
2737
- label: q.label ?? a(O),
2737
+ label: q.label ?? a(L),
2738
2738
  tooltip: q.tooltip ?? void 0,
2739
2739
  section: ie.Plugin
2740
2740
  };
@@ -2749,48 +2749,48 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2749
2749
  }), E = w(() => {
2750
2750
  const p = [];
2751
2751
  return x.value.basic.length && p.push("basic"), x.value.advanced.length && p.push("advanced"), x.value.plugin.length && p.push("plugin"), p;
2752
- }), F = w(() => {
2752
+ }), O = w(() => {
2753
2753
  var h, T;
2754
2754
  let p = `${r.config.apiBaseUrl}${r.fetchUrl}`;
2755
2755
  return r.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((h = r.config) == null ? void 0 : h.controlPlaneId) || "") : r.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (T = r.config) != null && T.workspace ? `/${r.config.workspace}` : "")), p = p.replace(/{id}/gi, r.config.entityId), p;
2756
2756
  });
2757
- return ke(m, (p) => {
2757
+ return _e(m, (p) => {
2758
2758
  n("loading", p);
2759
2759
  }, { immediate: !0 }), Bt(async () => {
2760
2760
  f.value = !1, m.value = !0;
2761
2761
  try {
2762
- const { data: p } = await l.get(F.value);
2762
+ const { data: p } = await l.get(O.value);
2763
2763
  if (r.dataKey)
2764
2764
  if (typeof p[r.dataKey] < "u")
2765
- y.value = { ...p[r.dataKey] };
2765
+ v.value = { ...p[r.dataKey] };
2766
2766
  else
2767
2767
  throw new Error(i("errors.dataKeyUndefined", { dataKey: r.dataKey }));
2768
2768
  else
2769
- y.value = { ...p };
2769
+ v.value = { ...p };
2770
2770
  Object.keys(r.configSchema).filter((T) => r.configSchema[T].forceShow).forEach((T) => {
2771
- y.value && typeof y.value[T] > "u" && (y.value[T] = null);
2771
+ v.value && typeof v.value[T] > "u" && (v.value[T] = null);
2772
2772
  }), n("fetch:success", p);
2773
2773
  } catch (p) {
2774
2774
  const h = o(p);
2775
- g.value = h.startsWith("code") ? i("baseConfigCard.errors.load") : h, f.value = !0, n("fetch:error", p);
2775
+ y.value = h.startsWith("code") ? i("baseConfigCard.errors.load") : h, f.value = !0, n("fetch:error", p);
2776
2776
  } finally {
2777
2777
  m.value = !1;
2778
2778
  }
2779
2779
  }), (p, h) => {
2780
- const T = D("KLabel"), I = D("KSelect"), $ = D("KButton"), R = D("KSkeleton"), O = D("KEmptyState"), z = D("KCard");
2781
- return v(), j(z, {
2780
+ const T = j("KLabel"), I = j("KSelect"), $ = j("KButton"), R = j("KSkeleton"), L = j("KEmptyState"), z = j("KCard");
2781
+ return g(), M(z, {
2782
2782
  class: "kong-ui-entity-base-config-card",
2783
2783
  "title-tag": e.titleTag
2784
2784
  }, Ce({
2785
- actions: A(() => [
2786
- M("div", Fo, [
2785
+ actions: C(() => [
2786
+ D("div", Lo, [
2787
2787
  V(p.$slots, "actions", {}, void 0, !0),
2788
2788
  K(T, {
2789
2789
  class: "config-format-select-label",
2790
2790
  "data-testid": "config-format-select-label"
2791
2791
  }, {
2792
- default: A(() => [
2793
- Y(N(e.label), 1)
2792
+ default: C(() => [
2793
+ H(N(e.label), 1)
2794
2794
  ]),
2795
2795
  _: 1
2796
2796
  }),
@@ -2799,54 +2799,54 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2799
2799
  items: c,
2800
2800
  onChange: d
2801
2801
  }),
2802
- e.configCardDoc ? (v(), j($, {
2802
+ e.configCardDoc ? (g(), M($, {
2803
2803
  key: 0,
2804
2804
  appearance: "tertiary",
2805
2805
  class: "book-icon",
2806
2806
  "data-testid": "book-icon"
2807
2807
  }, {
2808
- default: A(() => [
2809
- M("a", {
2808
+ default: C(() => [
2809
+ D("a", {
2810
2810
  href: e.configCardDoc,
2811
2811
  rel: "noopener",
2812
2812
  target: "_blank"
2813
2813
  }, [
2814
- K(_(Yn), { size: _(Ur) }, null, 8, ["size"])
2815
- ], 8, Oo)
2814
+ K(k(Wn), { size: k(qr) }, null, 8, ["size"])
2815
+ ], 8, Ro)
2816
2816
  ]),
2817
2817
  _: 1
2818
2818
  })) : P("", !0)
2819
2819
  ])
2820
2820
  ]),
2821
- default: A(() => [
2822
- m.value ? (v(), j(R, {
2821
+ default: C(() => [
2822
+ m.value ? (g(), M(R, {
2823
2823
  key: 0,
2824
2824
  "data-testid": "config-card-loader",
2825
2825
  "table-columns": 2,
2826
2826
  type: "table"
2827
- })) : f.value ? (v(), j(O, {
2827
+ })) : f.value ? (g(), M(L, {
2828
2828
  key: 1,
2829
2829
  "data-testid": "config-card-fetch-error",
2830
2830
  "icon-variant": "error"
2831
2831
  }, {
2832
- default: A(() => [
2833
- M("h3", null, N(g.value), 1)
2832
+ default: C(() => [
2833
+ D("h3", null, N(y.value), 1)
2834
2834
  ]),
2835
2835
  _: 1
2836
2836
  })) : P("", !0),
2837
- M("div", Lo, [
2838
- K($o, {
2837
+ D("div", Bo, [
2838
+ K(Oo, {
2839
2839
  config: e.config,
2840
2840
  "entity-type": e.entityType,
2841
- "fetcher-url": F.value,
2841
+ "fetcher-url": O.value,
2842
2842
  format: s.value,
2843
2843
  "prop-list-types": E.value,
2844
2844
  "property-collections": x.value,
2845
- record: y.value
2845
+ record: v.value
2846
2846
  }, Ce({ _: 2 }, [
2847
2847
  oe(Object.keys(p.$slots), (q) => ({
2848
2848
  name: q,
2849
- fn: A(({ row: Q, rowValue: $e }) => [
2849
+ fn: C(({ row: Q, rowValue: $e }) => [
2850
2850
  V(p.$slots, q, {
2851
2851
  row: Q,
2852
2852
  rowValue: $e
@@ -2860,10 +2860,10 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2860
2860
  }, [
2861
2861
  e.hideTitle ? void 0 : {
2862
2862
  name: "title",
2863
- fn: A(() => [
2864
- M("span", Eo, [
2863
+ fn: C(() => [
2864
+ D("span", Fo, [
2865
2865
  V(p.$slots, "title", {}, () => [
2866
- Y(N(_(i)("baseConfigCard.title")), 1)
2866
+ H(N(k(i)("baseConfigCard.title")), 1)
2867
2867
  ], !0)
2868
2868
  ])
2869
2869
  ]),
@@ -2872,10 +2872,10 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2872
2872
  ]), 1032, ["title-tag"]);
2873
2873
  };
2874
2874
  }
2875
- }), El = /* @__PURE__ */ ae(Ro, [["__scopeId", "data-v-7ef5c755"]]), Bo = ["novalidate"], No = {
2875
+ }), Ll = /* @__PURE__ */ ae(No, [["__scopeId", "data-v-7ef5c755"]]), Ko = ["novalidate"], Mo = {
2876
2876
  class: "form-actions",
2877
2877
  "data-testid": "form-actions"
2878
- }, Ko = /* @__PURE__ */ G({
2878
+ }, Do = /* @__PURE__ */ J({
2879
2879
  __name: "EntityBaseForm",
2880
2880
  props: {
2881
2881
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2896,7 +2896,7 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2896
2896
  entityType: {
2897
2897
  type: String,
2898
2898
  required: !0,
2899
- validator: (e) => Ke.includes(e)
2899
+ validator: (e) => Me.includes(e)
2900
2900
  },
2901
2901
  /**
2902
2902
  * Fetch url for the item to edit. We will handle the replacement of {controlPlaneId}, {workspace}, and {id}.
@@ -2951,12 +2951,12 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2951
2951
  },
2952
2952
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
2953
2953
  setup(e, { emit: t }) {
2954
- var F;
2955
- const n = t, r = e, i = zn(), { i18n: { t: o } } = H.useI18n(), { getMessageFromError: a } = H.useErrors(), { axiosInstance: l } = H.useAxios((F = r.config) == null ? void 0 : F.axiosRequestConfig), c = B(!1), s = w(() => !!r.editId), d = B(!1), u = B(""), m = w(() => r.canSubmit === !1 || r.isReadonly), f = B(!1), g = w(() => {
2954
+ var O;
2955
+ const n = t, r = e, i = Zn(), { i18n: { t: o } } = Y.useI18n(), { getMessageFromError: a } = Y.useErrors(), { axiosInstance: l } = Y.useAxios((O = r.config) == null ? void 0 : O.axiosRequestConfig), c = B(!1), s = w(() => !!r.editId), d = B(!1), u = B(""), m = w(() => r.canSubmit === !1 || r.isReadonly), f = B(!1), y = w(() => {
2956
2956
  var p, h;
2957
- let k = `${r.config.apiBaseUrl}${r.fetchUrl}`;
2958
- return r.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (h = r.config) != null && h.workspace ? `/${r.config.workspace}` : "")), r.editId ? (k = k.replace(/{id}/gi, r.editId), k) : (k = k.replace(/\/{id}/gi, ""), k);
2959
- }), y = () => {
2957
+ let _ = `${r.config.apiBaseUrl}${r.fetchUrl}`;
2958
+ return r.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (h = r.config) != null && h.workspace ? `/${r.config.workspace}` : "")), r.editId ? (_ = _.replace(/{id}/gi, r.editId), _) : (_ = _.replace(/\/{id}/gi, ""), _);
2959
+ }), v = () => {
2960
2960
  f.value = !f.value;
2961
2961
  }, b = () => {
2962
2962
  r.config.cancelRoute ? i.push(r.config.cancelRoute) : S();
@@ -2977,61 +2977,61 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
2977
2977
  return r.config.app === "konnect" && r.entityType !== Xe.Other && E.value.splice(1, 0, {
2978
2978
  title: o("baseForm.configuration.terraform"),
2979
2979
  hash: "#terraform"
2980
- }), ke(() => c.value, (k) => {
2981
- n("loading", k);
2980
+ }), _e(() => c.value, (_) => {
2981
+ n("loading", _);
2982
2982
  }, { immediate: !0 }), Bt(async () => {
2983
2983
  if (r.editId)
2984
2984
  try {
2985
2985
  d.value = !1, c.value = !0;
2986
- const { data: k } = await l.get(g.value);
2987
- n("fetch:success", k);
2988
- } catch (k) {
2989
- const p = a(k);
2990
- u.value = p.startsWith("code") ? o("baseForm.errors.edit") : p, d.value = !0, n("fetch:error", k);
2986
+ const { data: _ } = await l.get(y.value);
2987
+ n("fetch:success", _);
2988
+ } catch (_) {
2989
+ const p = a(_);
2990
+ u.value = p.startsWith("code") ? o("baseForm.errors.edit") : p, d.value = !0, n("fetch:error", _);
2991
2991
  } finally {
2992
2992
  c.value = !1;
2993
2993
  }
2994
- }), (k, p) => {
2995
- const h = D("KSkeleton"), T = D("KEmptyState"), I = D("KAlert"), $ = D("KButton"), R = D("KTabs"), O = D("KSlideout");
2996
- return v(), j(Ne(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
2997
- default: A(() => [
2998
- c.value ? (v(), j(h, {
2994
+ }), (_, p) => {
2995
+ const h = j("KSkeleton"), T = j("KEmptyState"), I = j("KAlert"), $ = j("KButton"), R = j("KTabs"), L = j("KSlideout");
2996
+ return g(), M(Ke(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
2997
+ default: C(() => [
2998
+ c.value ? (g(), M(h, {
2999
2999
  key: 0,
3000
3000
  type: "form"
3001
- })) : d.value ? (v(), j(T, {
3001
+ })) : d.value ? (g(), M(T, {
3002
3002
  key: 1,
3003
- "action-button-text": _(o)("baseForm.actions.back"),
3003
+ "action-button-text": k(o)("baseForm.actions.back"),
3004
3004
  "data-testid": "form-fetch-error",
3005
3005
  "icon-variant": "error",
3006
3006
  onClickAction: b
3007
3007
  }, {
3008
- default: A(() => [
3009
- M("h3", null, N(u.value), 1)
3008
+ default: C(() => [
3009
+ D("h3", null, N(u.value), 1)
3010
3010
  ]),
3011
3011
  _: 1
3012
- }, 8, ["action-button-text"])) : (v(), L("form", {
3012
+ }, 8, ["action-button-text"])) : (g(), F("form", {
3013
3013
  key: 2,
3014
3014
  "data-testid": "form-content",
3015
3015
  novalidate: r.noValidate,
3016
- onReset: Ye(S, ["prevent"]),
3017
- onSubmit: Ye(x, ["prevent"])
3016
+ onReset: Oe(S, ["prevent"]),
3017
+ onSubmit: Oe(x, ["prevent"])
3018
3018
  }, [
3019
- V(k.$slots, "default", {}, void 0, !0),
3020
- e.errorMessage ? (v(), j(I, {
3019
+ V(_.$slots, "default", {}, void 0, !0),
3020
+ e.errorMessage ? (g(), M(I, {
3021
3021
  key: 0,
3022
3022
  appearance: "danger",
3023
3023
  "data-testid": "form-error",
3024
3024
  message: e.errorMessage
3025
3025
  }, null, 8, ["message"])) : P("", !0),
3026
- M("div", No, [
3027
- V(k.$slots, "form-actions", {}, () => [
3026
+ D("div", Mo, [
3027
+ V(_.$slots, "form-actions", {}, () => [
3028
3028
  K($, {
3029
3029
  appearance: "tertiary",
3030
3030
  "data-testid": `${e.entityType}-${s.value ? "edit" : "create"}-form-view-configuration`,
3031
- onClick: p[0] || (p[0] = (z) => y())
3031
+ onClick: p[0] || (p[0] = (z) => v())
3032
3032
  }, {
3033
- default: A(() => [
3034
- Y(N(_(o)("baseForm.actions.viewConfiguration")), 1)
3033
+ default: C(() => [
3034
+ H(N(k(o)("baseForm.actions.viewConfiguration")), 1)
3035
3035
  ]),
3036
3036
  _: 1
3037
3037
  }, 8, ["data-testid"]),
@@ -3041,8 +3041,8 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3041
3041
  disabled: e.isReadonly,
3042
3042
  type: "reset"
3043
3043
  }, {
3044
- default: A(() => [
3045
- Y(N(_(o)("baseForm.actions.cancel")), 1)
3044
+ default: C(() => [
3045
+ H(N(k(o)("baseForm.actions.cancel")), 1)
3046
3046
  ]),
3047
3047
  _: 1
3048
3048
  }, 8, ["data-testid", "disabled"]),
@@ -3052,44 +3052,44 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3052
3052
  disabled: m.value,
3053
3053
  type: "submit"
3054
3054
  }, {
3055
- default: A(() => [
3056
- Y(N(_(o)("baseForm.actions.save")), 1)
3055
+ default: C(() => [
3056
+ H(N(k(o)("baseForm.actions.save")), 1)
3057
3057
  ]),
3058
3058
  _: 1
3059
3059
  }, 8, ["data-testid", "disabled"])
3060
3060
  ], !0)
3061
3061
  ])
3062
- ], 40, Bo)),
3063
- K(O, {
3062
+ ], 40, Ko)),
3063
+ K(L, {
3064
3064
  "close-on-blur": !1,
3065
3065
  "data-testid": "form-view-configuration-slideout",
3066
3066
  "has-overlay": !1,
3067
3067
  "offset-top": 60,
3068
- title: _(o)("baseForm.configuration.title"),
3068
+ title: k(o)("baseForm.configuration.title"),
3069
3069
  visible: f.value,
3070
- onClose: p[1] || (p[1] = (z) => y())
3070
+ onClose: p[1] || (p[1] = (z) => v())
3071
3071
  }, {
3072
- default: A(() => [
3073
- M("div", null, N(_(o)("baseForm.configuration.message")), 1),
3072
+ default: C(() => [
3073
+ D("div", null, N(k(o)("baseForm.configuration.message")), 1),
3074
3074
  K(R, {
3075
3075
  "data-testid": "form-view-configuration-slideout-tabs",
3076
3076
  tabs: E.value
3077
3077
  }, {
3078
- json: A(() => [
3078
+ json: C(() => [
3079
3079
  K(Pt, {
3080
3080
  config: e.config,
3081
3081
  "entity-record": r.formFields,
3082
- "fetcher-url": g.value,
3082
+ "fetcher-url": y.value,
3083
3083
  "request-method": r.editId ? "put" : "post"
3084
3084
  }, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
3085
3085
  ]),
3086
- yaml: A(() => [
3087
- K(Fn, {
3086
+ yaml: C(() => [
3087
+ K(On, {
3088
3088
  "entity-record": r.formFields
3089
3089
  }, null, 8, ["entity-record"])
3090
3090
  ]),
3091
- terraform: A(() => [
3092
- K(On, {
3091
+ terraform: C(() => [
3092
+ K(Fn, {
3093
3093
  "entity-record": r.formFields,
3094
3094
  "entity-type": e.entityType
3095
3095
  }, null, 8, ["entity-record", "entity-type"])
@@ -3104,7 +3104,7 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3104
3104
  });
3105
3105
  };
3106
3106
  }
3107
- }), Fl = /* @__PURE__ */ ae(Ko, [["__scopeId", "data-v-6210a67a"]]), Mo = ["data-truncate"], Do = /* @__PURE__ */ G({
3107
+ }), Rl = /* @__PURE__ */ ae(Do, [["__scopeId", "data-v-6210a67a"]]), jo = ["data-truncate"], Uo = /* @__PURE__ */ J({
3108
3108
  __name: "EntityBaseTableCell",
3109
3109
  props: {
3110
3110
  keyName: {
@@ -3139,11 +3139,11 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3139
3139
  var S, x, E;
3140
3140
  let b = ((S = n.value) == null ? void 0 : S.clientWidth) || 0;
3141
3141
  if (n.value && "getComputedStyle" in window) {
3142
- const F = window.getComputedStyle(n.value);
3143
- b -= (parseFloat(F.paddingLeft) || 0) + (parseFloat(F.paddingRight) || 0);
3142
+ const O = window.getComputedStyle(n.value);
3143
+ b -= (parseFloat(O.paddingLeft) || 0) + (parseFloat(O.paddingRight) || 0);
3144
3144
  }
3145
3145
  d.value = ((x = r.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, u.value = b, m.value = ((E = s.value) == null ? void 0 : E.innerText) || "";
3146
- }, s = B({}), d = B(0), u = B(0), m = B(""), f = w(() => [r.value, n.value]), g = ke(
3146
+ }, s = B({}), d = B(0), u = B(0), m = B(""), f = w(() => [r.value, n.value]), y = _e(
3147
3147
  f,
3148
3148
  (b) => {
3149
3149
  if (o.value && (l(), "ResizeObserver" in window && window)) {
@@ -3157,40 +3157,40 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3157
3157
  }
3158
3158
  },
3159
3159
  { immediate: !0, flush: "post", deep: !0 }
3160
- ), y = w(() => o.value ? d.value > u.value : !1);
3160
+ ), v = w(() => o.value ? d.value > u.value : !1);
3161
3161
  return Mn(() => {
3162
3162
  c();
3163
3163
  }), Dn(() => {
3164
- g();
3164
+ y();
3165
3165
  }), (b, S) => {
3166
- const x = D("KTooltip");
3167
- return v(), L("span", {
3166
+ const x = j("KTooltip");
3167
+ return g(), F("span", {
3168
3168
  ref_key: "contentRef",
3169
3169
  ref: s,
3170
3170
  class: "content-wrapper"
3171
3171
  }, [
3172
- o.value ? (v(), L("span", {
3172
+ o.value ? (g(), F("span", {
3173
3173
  key: 0,
3174
3174
  "data-truncate": o.value || void 0
3175
3175
  }, [
3176
3176
  K(x, {
3177
3177
  "max-width": "300",
3178
3178
  placement: "bottom-start",
3179
- text: y.value ? m.value : ""
3179
+ text: v.value ? m.value : ""
3180
3180
  }, {
3181
- default: A(() => [
3181
+ default: C(() => [
3182
3182
  V(b.$slots, "default", {}, void 0, !0)
3183
3183
  ]),
3184
3184
  _: 3
3185
3185
  }, 8, ["text"])
3186
- ], 8, Mo)) : V(b.$slots, "default", { key: 1 }, void 0, !0)
3186
+ ], 8, jo)) : V(b.$slots, "default", { key: 1 }, void 0, !0)
3187
3187
  ], 512);
3188
3188
  };
3189
3189
  }
3190
- }), jo = /* @__PURE__ */ ae(Do, [["__scopeId", "data-v-b252463e"]]), Uo = { class: "toolbar-container" }, Po = {
3190
+ }), Po = /* @__PURE__ */ ae(Uo, [["__scopeId", "data-v-b252463e"]]), qo = { class: "toolbar-container" }, Ho = {
3191
3191
  key: 0,
3192
3192
  class: "toolbar-button-container"
3193
- }, qo = /* @__PURE__ */ G({
3193
+ }, Yo = /* @__PURE__ */ J({
3194
3194
  __name: "EntityBaseTable",
3195
3195
  props: {
3196
3196
  // table header configuration
@@ -3316,7 +3316,7 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3316
3316
  },
3317
3317
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3318
3318
  setup(e, { emit: t }) {
3319
- const n = e, r = t, { i18n: { t: i } } = H.useI18n(), o = w(() => {
3319
+ const n = e, r = t, { i18n: { t: i } } = Y.useI18n(), o = w(() => {
3320
3320
  var p, h;
3321
3321
  return typeof n.errorMessage == "string" ? {
3322
3322
  hasError: !!n.errorMessage,
@@ -3359,43 +3359,43 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3359
3359
  textOverflow: "ellipsis"
3360
3360
  }), h;
3361
3361
  }, f = () => {
3362
- r("empty-state-cta-clicked"), g();
3363
- }, g = () => {
3362
+ r("empty-state-cta-clicked"), y();
3363
+ }, y = () => {
3364
3364
  r("clear-search-input");
3365
- }, y = w(() => n.disableRowClick ? void 0 : (p, h) => {
3365
+ }, v = w(() => n.disableRowClick ? void 0 : (p, h) => {
3366
3366
  r("click:row", h);
3367
3367
  }), b = (p) => {
3368
3368
  r("sort", p);
3369
- }, { setTablePreferences: S, getTablePreferences: x } = nr(), E = B(x(a.value, n.defaultTablePreferences)), F = w(() => {
3369
+ }, { setTablePreferences: S, getTablePreferences: x } = ir(), E = B(x(a.value, n.defaultTablePreferences)), O = w(() => {
3370
3370
  const p = x(a.value);
3371
3371
  return {
3372
3372
  ...n.initialFetcherParams,
3373
3373
  ...p
3374
3374
  };
3375
- }), k = (p) => {
3375
+ }), _ = (p) => {
3376
3376
  E.value = p, c.value.forEach((h) => {
3377
3377
  !("hidable" in h) || !E.value.columnVisibility || h.hidable === !1 && (E.value.columnVisibility[h.key] = !0);
3378
3378
  }), a.value && S(a.value, p);
3379
3379
  };
3380
3380
  return (p, h) => {
3381
- const T = D("KTableData"), I = D("KCard");
3382
- return v(), j(I, {
3381
+ const T = j("KTableData"), I = j("KCard");
3382
+ return g(), M(I, {
3383
3383
  class: "kong-ui-entity-base-table",
3384
3384
  title: e.title,
3385
3385
  "title-tag": e.titleTag
3386
3386
  }, {
3387
- default: A(() => [
3387
+ default: C(() => [
3388
3388
  K(T, {
3389
3389
  ref_key: "tableRefs",
3390
3390
  ref: d,
3391
3391
  "cache-identifier": a.value,
3392
3392
  "cell-attrs": m,
3393
3393
  "client-sort": e.enableClientSort,
3394
- "empty-state-action-message": e.query ? _(i)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
3394
+ "empty-state-action-message": e.query ? k(i)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
3395
3395
  "empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
3396
3396
  "empty-state-icon-variant": e.query ? "search" : "kong",
3397
- "empty-state-message": e.query ? _(i)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3398
- "empty-state-title": e.query ? _(i)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3397
+ "empty-state-message": e.query ? k(i)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3398
+ "empty-state-title": e.query ? k(i)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3399
3399
  error: o.value.hasError,
3400
3400
  "error-state-message": o.value.message,
3401
3401
  "error-state-title": o.value.title,
@@ -3405,7 +3405,7 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3405
3405
  "hide-pagination": e.hidePagination,
3406
3406
  "hide-pagination-when-optional": "",
3407
3407
  "hide-toolbar": e.hideToolbar,
3408
- "initial-fetcher-params": F.value,
3408
+ "initial-fetcher-params": O.value,
3409
3409
  loading: e.isLoading,
3410
3410
  "pagination-attributes": { disablePageJump: e.disablePaginationPageJump, offset: e.paginationType === "offset" },
3411
3411
  "resize-columns": "",
@@ -3415,40 +3415,40 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3415
3415
  sortable: !e.disableSorting,
3416
3416
  "table-preferences": E.value,
3417
3417
  onEmptyStateActionClick: f,
3418
- "onRow:click": y.value,
3418
+ "onRow:click": v.value,
3419
3419
  onSort: h[0] || (h[0] = ($) => b($)),
3420
- "onUpdate:tablePreferences": k
3420
+ "onUpdate:tablePreferences": _
3421
3421
  }, Ce({
3422
- toolbar: A(({ state: $ }) => [
3423
- me(M("div", Uo, [
3422
+ toolbar: C(({ state: $ }) => [
3423
+ me(D("div", qo, [
3424
3424
  V(p.$slots, "toolbar-filter", {}, void 0, !0),
3425
- p.$slots["toolbar-button"] ? (v(), L("div", Po, [
3425
+ p.$slots["toolbar-button"] ? (g(), F("div", Ho, [
3426
3426
  V(p.$slots, "toolbar-button", {}, void 0, !0)
3427
3427
  ])) : P("", !0)
3428
3428
  ], 512), [
3429
3429
  [he, l($)]
3430
3430
  ])
3431
3431
  ]),
3432
- "action-items": A(({ row: $ }) => [
3432
+ "action-items": C(({ row: $ }) => [
3433
3433
  V(p.$slots, "actions", { row: $ }, void 0, !0)
3434
3434
  ]),
3435
3435
  _: 2
3436
3436
  }, [
3437
3437
  oe(e.tableHeaders, ($, R) => ({
3438
3438
  name: R,
3439
- fn: A(({ row: O, rowKey: z, rowValue: q }) => [
3440
- K(jo, {
3439
+ fn: C(({ row: L, rowKey: z, rowValue: q }) => [
3440
+ K(Po, {
3441
3441
  "key-name": String(R),
3442
- "row-el": u(O),
3442
+ "row-el": u(L),
3443
3443
  tooltip: $.tooltip
3444
3444
  }, {
3445
- default: A(() => [
3445
+ default: C(() => [
3446
3446
  V(p.$slots, R, {
3447
- row: O,
3447
+ row: L,
3448
3448
  rowKey: z,
3449
3449
  rowValue: q
3450
3450
  }, () => [
3451
- Y(N(q), 1)
3451
+ H(N(q), 1)
3452
3452
  ], !0)
3453
3453
  ]),
3454
3454
  _: 2
@@ -3457,8 +3457,8 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3457
3457
  })),
3458
3458
  e.query ? void 0 : {
3459
3459
  name: "empty-state-action-icon",
3460
- fn: A(() => [
3461
- K(_(Vn))
3460
+ fn: C(() => [
3461
+ K(k(Jn))
3462
3462
  ]),
3463
3463
  key: "0"
3464
3464
  }
@@ -3468,13 +3468,13 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3468
3468
  }, 8, ["title", "title-tag"]);
3469
3469
  };
3470
3470
  }
3471
- }), Ol = /* @__PURE__ */ ae(qo, [["__scopeId", "data-v-765e475b"]]), Ho = {
3471
+ }), Bl = /* @__PURE__ */ ae(Yo, [["__scopeId", "data-v-765e475b"]]), Vo = {
3472
3472
  key: 0,
3473
3473
  class: "kong-ui-entity-delete-error"
3474
- }, Yo = {
3474
+ }, Wo = {
3475
3475
  key: 1,
3476
3476
  class: "description"
3477
- }, Vo = /* @__PURE__ */ G({
3477
+ }, Jo = /* @__PURE__ */ J({
3478
3478
  __name: "EntityDeleteModal",
3479
3479
  props: {
3480
3480
  visible: {
@@ -3513,14 +3513,14 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3513
3513
  },
3514
3514
  emits: ["cancel", "proceed"],
3515
3515
  setup(e, { emit: t }) {
3516
- const { i18nT: n } = H.useI18n(), r = e, i = t, o = w(() => r.needConfirm ? r.entityName : ""), a = () => {
3516
+ const { i18nT: n } = Y.useI18n(), r = e, i = t, o = w(() => r.needConfirm ? r.entityName : ""), a = () => {
3517
3517
  i("cancel");
3518
3518
  }, l = () => {
3519
3519
  i("proceed");
3520
3520
  };
3521
3521
  return (c, s) => {
3522
- const d = D("KAlert"), u = D("KPrompt");
3523
- return v(), j(u, {
3522
+ const d = j("KAlert"), u = j("KPrompt");
3523
+ return g(), M(u, {
3524
3524
  "action-button-appearance": "danger",
3525
3525
  "action-button-disabled": e.actionPending,
3526
3526
  "action-button-text": "Yes, delete",
@@ -3531,36 +3531,36 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3531
3531
  onCancel: a,
3532
3532
  onProceed: l
3533
3533
  }, {
3534
- default: A(() => [
3535
- e.error ? (v(), L("div", Ho, [
3534
+ default: C(() => [
3535
+ e.error ? (g(), F("div", Vo, [
3536
3536
  K(d, { appearance: "danger" }, {
3537
- default: A(() => [
3538
- Y(N(e.error), 1)
3537
+ default: C(() => [
3538
+ H(N(e.error), 1)
3539
3539
  ]),
3540
3540
  _: 1
3541
3541
  })
3542
3542
  ])) : P("", !0),
3543
- K(_(n), {
3543
+ K(k(n), {
3544
3544
  class: "message",
3545
3545
  keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3546
3546
  tag: "p"
3547
3547
  }, Ce({
3548
- entityType: A(() => [
3549
- Y(N(r.entityType), 1)
3548
+ entityType: C(() => [
3549
+ H(N(r.entityType), 1)
3550
3550
  ]),
3551
3551
  _: 2
3552
3552
  }, [
3553
3553
  r.entityName ? {
3554
3554
  name: "entityName",
3555
- fn: A(() => [
3556
- M("strong", null, N(r.entityName), 1)
3555
+ fn: C(() => [
3556
+ D("strong", null, N(r.entityName), 1)
3557
3557
  ]),
3558
3558
  key: "0"
3559
3559
  } : void 0
3560
3560
  ]), 1032, ["keypath"]),
3561
- r.description || c.$slots.description ? (v(), L("div", Yo, [
3561
+ r.description || c.$slots.description ? (g(), F("div", Wo, [
3562
3562
  V(c.$slots, "description", {}, () => [
3563
- M("p", null, N(r.description), 1)
3563
+ D("p", null, N(r.description), 1)
3564
3564
  ], !0)
3565
3565
  ])) : P("", !0)
3566
3566
  ]),
@@ -3568,13 +3568,13 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3568
3568
  }, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
3569
3569
  };
3570
3570
  }
3571
- }), Ll = /* @__PURE__ */ ae(Vo, [["__scopeId", "data-v-4361d622"]]), Wo = {
3571
+ }), Nl = /* @__PURE__ */ ae(Jo, [["__scopeId", "data-v-4361d622"]]), Go = {
3572
3572
  fill: "none",
3573
3573
  height: "20",
3574
3574
  viewBox: "0 0 20 20",
3575
3575
  width: "20",
3576
3576
  xmlns: "http://www.w3.org/2000/svg"
3577
- }, Jo = {
3577
+ }, zo = {
3578
3578
  id: "mask0_180_20349",
3579
3579
  height: "20",
3580
3580
  maskUnits: "userSpaceOnUse",
@@ -3582,35 +3582,35 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3582
3582
  width: "20",
3583
3583
  x: "0",
3584
3584
  y: "0"
3585
- }, Go = ["fill"], zo = { mask: "url(#mask0_180_20349)" }, Qo = ["fill"], Et = /* @__PURE__ */ G({
3585
+ }, Qo = ["fill"], Zo = { mask: "url(#mask0_180_20349)" }, Xo = ["fill"], Et = /* @__PURE__ */ J({
3586
3586
  __name: "IconFilter",
3587
3587
  props: {
3588
3588
  color: {
3589
3589
  type: String,
3590
- default: `var(--kong-ui-entity-filter-color, ${Br})`
3590
+ default: `var(--kong-ui-entity-filter-color, ${Kr})`
3591
3591
  }
3592
3592
  },
3593
3593
  setup(e) {
3594
- return (t, n) => (v(), L("svg", Wo, [
3595
- M("mask", Jo, [
3596
- M("rect", {
3594
+ return (t, n) => (g(), F("svg", Go, [
3595
+ D("mask", zo, [
3596
+ D("rect", {
3597
3597
  fill: e.color,
3598
3598
  height: "20",
3599
3599
  width: "20"
3600
- }, null, 8, Go)
3600
+ }, null, 8, Qo)
3601
3601
  ]),
3602
- M("g", zo, [
3603
- M("path", {
3602
+ D("g", Zo, [
3603
+ D("path", {
3604
3604
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
3605
3605
  fill: e.color
3606
- }, null, 8, Qo)
3606
+ }, null, 8, Xo)
3607
3607
  ])
3608
3608
  ]));
3609
3609
  }
3610
- }), Zo = {
3610
+ }), el = {
3611
3611
  key: 1,
3612
3612
  class: "kong-ui-entity-filter"
3613
- }, Xo = { class: "kong-ui-entity-filter-menu" }, el = ["data-testid"], tl = ["onClick", "onKeydown"], nl = { class: "menu-item-indicator" }, rl = { class: "menu-item-body" }, il = ["for"], al = { class: "menu-item-buttons" }, ol = { class: "filter-clear-button-container" }, ll = /* @__PURE__ */ G({
3613
+ }, tl = { class: "kong-ui-entity-filter-menu" }, nl = ["data-testid"], rl = ["onClick", "onKeydown"], il = { class: "menu-item-indicator" }, al = { class: "menu-item-body" }, ol = ["for"], ll = { class: "menu-item-buttons" }, cl = { class: "filter-clear-button-container" }, sl = /* @__PURE__ */ J({
3614
3614
  __name: "EntityFilter",
3615
3615
  props: {
3616
3616
  // filter config, either exact match or fuzzy match
@@ -3630,58 +3630,58 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3630
3630
  },
3631
3631
  emits: ["update:modelValue"],
3632
3632
  setup(e, { emit: t }) {
3633
- const { i18n: { t: n } } = H.useI18n(), r = e, i = t, o = B(!1), a = B({}), l = B(/* @__PURE__ */ new Set()), c = w(() => {
3634
- const F = [];
3635
- return new URLSearchParams(r.modelValue).forEach((k, p) => {
3636
- k !== "" && F.push(p);
3637
- }), F;
3633
+ const { i18n: { t: n } } = Y.useI18n(), r = e, i = t, o = B(!1), a = B({}), l = B(/* @__PURE__ */ new Set()), c = w(() => {
3634
+ const O = [];
3635
+ return new URLSearchParams(r.modelValue).forEach((_, p) => {
3636
+ _ !== "" && O.push(p);
3637
+ }), O;
3638
3638
  }), s = w(() => {
3639
- const F = r.config.fields;
3640
- return Object.keys(F).filter((k) => {
3639
+ const O = r.config.fields;
3640
+ return Object.keys(O).filter((_) => {
3641
3641
  var p;
3642
- return (p = F == null ? void 0 : F[k]) == null ? void 0 : p.searchable;
3643
- }).map((k) => ({
3644
- label: F[k].label || k,
3645
- value: k,
3642
+ return (p = O == null ? void 0 : O[_]) == null ? void 0 : p.searchable;
3643
+ }).map((_) => ({
3644
+ label: O[_].label || _,
3645
+ value: _,
3646
3646
  expanded: !1
3647
3647
  }));
3648
3648
  });
3649
- ke(() => r.modelValue, (F) => {
3650
- a.value = {}, new URLSearchParams(F).forEach((k, p) => {
3651
- a.value[p] = k;
3649
+ _e(() => r.modelValue, (O) => {
3650
+ a.value = {}, new URLSearchParams(O).forEach((_, p) => {
3651
+ a.value[p] = _;
3652
3652
  });
3653
3653
  });
3654
3654
  const d = () => {
3655
3655
  o.value = !o.value;
3656
- }, u = (F) => {
3657
- l.value.has(F) ? l.value.delete(F) : l.value.add(F);
3658
- }, m = (F) => {
3659
- i("update:modelValue", F);
3656
+ }, u = (O) => {
3657
+ l.value.has(O) ? l.value.delete(O) : l.value.add(O);
3658
+ }, m = (O) => {
3659
+ i("update:modelValue", O);
3660
3660
  }, f = () => {
3661
3661
  m("");
3662
- }, g = (F) => `filter-${F}`, y = (F) => {
3663
- var k, p;
3664
- return (((p = (k = r.config.schema) == null ? void 0 : k[F]) == null ? void 0 : p.values) ?? []).map((h) => ({
3662
+ }, y = (O) => `filter-${O}`, v = (O) => {
3663
+ var _, p;
3664
+ return (((p = (_ = r.config.schema) == null ? void 0 : _[O]) == null ? void 0 : p.values) ?? []).map((h) => ({
3665
3665
  value: h,
3666
3666
  label: h
3667
3667
  }));
3668
- }, b = (F) => {
3669
- var k, p;
3670
- return ((p = (k = r.config.schema) == null ? void 0 : k[F]) == null ? void 0 : p.type) ?? "text";
3671
- }, S = (F) => {
3668
+ }, b = (O) => {
3669
+ var _, p;
3670
+ return ((p = (_ = r.config.schema) == null ? void 0 : _[O]) == null ? void 0 : p.type) ?? "text";
3671
+ }, S = (O) => {
3672
3672
  a.value = {
3673
3673
  ...a.value,
3674
- [F]: ""
3674
+ [O]: ""
3675
3675
  }, E();
3676
3676
  }, x = () => {
3677
3677
  a.value = {}, E(!0);
3678
- }, E = (F = !1) => {
3679
- const k = Object.keys(a.value).reduce((p, h) => (a.value[h] && (p[h] = `${a.value[h]}`), p), {});
3680
- F && (o.value = !1), i("update:modelValue", new URLSearchParams(k).toString());
3678
+ }, E = (O = !1) => {
3679
+ const _ = Object.keys(a.value).reduce((p, h) => (a.value[h] && (p[h] = `${a.value[h]}`), p), {});
3680
+ O && (o.value = !1), i("update:modelValue", new URLSearchParams(_).toString());
3681
3681
  };
3682
- return (F, k) => {
3683
- const p = D("KInput"), h = D("KButton"), T = D("KSelect");
3684
- return e.config.isExactMatch ? (v(), j(p, {
3682
+ return (O, _) => {
3683
+ const p = j("KInput"), h = j("KButton"), T = j("KSelect");
3684
+ return e.config.isExactMatch ? (g(), M(p, {
3685
3685
  key: 0,
3686
3686
  autocomplete: "off",
3687
3687
  class: "kong-ui-entity-filter-input",
@@ -3690,11 +3690,11 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3690
3690
  placeholder: e.config.placeholder,
3691
3691
  "onUpdate:modelValue": m
3692
3692
  }, {
3693
- before: A(() => [
3693
+ before: C(() => [
3694
3694
  K(Et)
3695
3695
  ]),
3696
- after: A(() => [
3697
- me(K(_(Wn), {
3696
+ after: C(() => [
3697
+ me(K(k(Gn), {
3698
3698
  class: "kong-ui-entity-filter-clear",
3699
3699
  role: "button",
3700
3700
  tabindex: "0",
@@ -3704,81 +3704,81 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3704
3704
  ])
3705
3705
  ]),
3706
3706
  _: 1
3707
- }, 8, ["model-value", "placeholder"])) : (v(), L("div", Zo, [
3707
+ }, 8, ["model-value", "placeholder"])) : (g(), F("div", el, [
3708
3708
  K(h, {
3709
3709
  appearance: "tertiary",
3710
3710
  "data-testid": "filter-button",
3711
3711
  onClick: d
3712
3712
  }, {
3713
- default: A(() => [
3713
+ default: C(() => [
3714
3714
  K(Et),
3715
- Y(" " + N(_(n)("filter.filterButtonText")) + " " + N(c.value.length > 0 ? `(${c.value.length})` : ""), 1)
3715
+ H(" " + N(k(n)("filter.filterButtonText")) + " " + N(c.value.length > 0 ? `(${c.value.length})` : ""), 1)
3716
3716
  ]),
3717
3717
  _: 1
3718
3718
  }),
3719
- me(M("div", {
3719
+ me(D("div", {
3720
3720
  class: "kong-ui-entity-filter-backdrop",
3721
3721
  onClick: d
3722
3722
  }, null, 512), [
3723
3723
  [he, o.value]
3724
3724
  ]),
3725
- me(M("div", Xo, [
3726
- (v(!0), L(ce, null, oe(s.value, (I) => {
3725
+ me(D("div", tl, [
3726
+ (g(!0), F(le, null, oe(s.value, (I) => {
3727
3727
  var $, R;
3728
- return v(), L("div", {
3728
+ return g(), F("div", {
3729
3729
  key: I.value,
3730
3730
  class: "kong-ui-entity-filter-menu-item",
3731
3731
  "data-testid": I.value
3732
3732
  }, [
3733
- M("span", {
3733
+ D("span", {
3734
3734
  class: fe(["menu-item-title", { expanded: l.value.has(I.value) }]),
3735
3735
  role: "button",
3736
3736
  tabindex: "0",
3737
- onClick: (O) => u(I.value),
3738
- onKeydown: jn((O) => u(I.value), ["enter"])
3737
+ onClick: (L) => u(I.value),
3738
+ onKeydown: jn((L) => u(I.value), ["enter"])
3739
3739
  }, [
3740
- Y(N(I.label) + " ", 1),
3741
- me(M("span", nl, null, 512), [
3740
+ H(N(I.label) + " ", 1),
3741
+ me(D("span", il, null, 512), [
3742
3742
  [he, c.value.includes(I.value)]
3743
3743
  ]),
3744
- K(_(Jn), {
3744
+ K(k(zn), {
3745
3745
  class: fe(["menu-item-expand-icon", { expanded: l.value.has(I.value) }]),
3746
- color: _(Kr)
3746
+ color: k(Dr)
3747
3747
  }, null, 8, ["class", "color"])
3748
- ], 42, tl),
3749
- me(M("div", rl, [
3750
- M("label", {
3748
+ ], 42, rl),
3749
+ me(D("div", al, [
3750
+ D("label", {
3751
3751
  class: "menu-item-label",
3752
- for: g(I.value)
3753
- }, N(_(n)("filter.fieldLabel")), 9, il),
3754
- ((R = ($ = e.config.schema) == null ? void 0 : $[I.value]) == null ? void 0 : R.type) === "select" ? (v(), j(T, {
3752
+ for: y(I.value)
3753
+ }, N(k(n)("filter.fieldLabel")), 9, ol),
3754
+ ((R = ($ = e.config.schema) == null ? void 0 : $[I.value]) == null ? void 0 : R.type) === "select" ? (g(), M(T, {
3755
3755
  key: 0,
3756
- id: g(I.value),
3756
+ id: y(I.value),
3757
3757
  modelValue: a.value[I.value],
3758
- "onUpdate:modelValue": (O) => a.value[I.value] = O,
3759
- items: y(I.value),
3760
- placeholder: _(n)("filter.selectPlaceholder")
3761
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (v(), j(p, {
3758
+ "onUpdate:modelValue": (L) => a.value[I.value] = L,
3759
+ items: v(I.value),
3760
+ placeholder: k(n)("filter.selectPlaceholder")
3761
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (g(), M(p, {
3762
3762
  key: 1,
3763
- id: g(I.value),
3763
+ id: y(I.value),
3764
3764
  modelValue: a.value[I.value],
3765
- "onUpdate:modelValue": (O) => a.value[I.value] = O,
3765
+ "onUpdate:modelValue": (L) => a.value[I.value] = L,
3766
3766
  autocomplete: "off",
3767
- placeholder: _(n)("filter.inputPlaceholder"),
3767
+ placeholder: k(n)("filter.inputPlaceholder"),
3768
3768
  type: b(I.value)
3769
3769
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
3770
3770
  ], 512), [
3771
3771
  [he, l.value.has(I.value)]
3772
3772
  ]),
3773
- me(M("div", al, [
3773
+ me(D("div", ll, [
3774
3774
  K(h, {
3775
3775
  appearance: "tertiary",
3776
3776
  "data-testid": "apply-filter",
3777
3777
  size: "small",
3778
- onClick: k[0] || (k[0] = (O) => E(!0))
3778
+ onClick: _[0] || (_[0] = (L) => E(!0))
3779
3779
  }, {
3780
- default: A(() => [
3781
- Y(N(_(n)("filter.applyButtonText")), 1)
3780
+ default: C(() => [
3781
+ H(N(k(n)("filter.applyButtonText")), 1)
3782
3782
  ]),
3783
3783
  _: 1
3784
3784
  }),
@@ -3786,26 +3786,26 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3786
3786
  appearance: "tertiary",
3787
3787
  "data-testid": "clear-filter",
3788
3788
  size: "small",
3789
- onClick: (O) => S(I.value)
3789
+ onClick: (L) => S(I.value)
3790
3790
  }, {
3791
- default: A(() => [
3792
- Y(N(_(n)("filter.clearButtonText")), 1)
3791
+ default: C(() => [
3792
+ H(N(k(n)("filter.clearButtonText")), 1)
3793
3793
  ]),
3794
3794
  _: 2
3795
3795
  }, 1032, ["onClick"])
3796
3796
  ], 512), [
3797
3797
  [he, l.value.has(I.value)]
3798
3798
  ])
3799
- ], 8, el);
3799
+ ], 8, nl);
3800
3800
  }), 128)),
3801
- M("div", ol, [
3801
+ D("div", cl, [
3802
3802
  K(h, {
3803
3803
  appearance: "tertiary",
3804
3804
  size: "small",
3805
3805
  onClick: x
3806
3806
  }, {
3807
- default: A(() => [
3808
- Y(N(_(n)("filter.clearAllButtonText")), 1)
3807
+ default: C(() => [
3808
+ H(N(k(n)("filter.clearAllButtonText")), 1)
3809
3809
  ]),
3810
3810
  _: 1
3811
3811
  })
@@ -3816,7 +3816,7 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3816
3816
  ]));
3817
3817
  };
3818
3818
  }
3819
- }), Rl = /* @__PURE__ */ ae(ll, [["__scopeId", "data-v-10fa27a5"]]), Bl = /* @__PURE__ */ G({
3819
+ }), Kl = /* @__PURE__ */ ae(sl, [["__scopeId", "data-v-10fa27a5"]]), Ml = /* @__PURE__ */ J({
3820
3820
  __name: "EntityToggleModal",
3821
3821
  props: {
3822
3822
  visible: {
@@ -3848,7 +3848,7 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3848
3848
  },
3849
3849
  emits: ["cancel", "proceed"],
3850
3850
  setup(e, { emit: t }) {
3851
- const { i18n: { t: n }, i18nT: r } = H.useI18n(), i = e, o = t, a = B(!1), l = w(
3851
+ const { i18n: { t: n }, i18nT: r } = Y.useI18n(), i = e, o = t, a = B(!1), l = w(
3852
3852
  () => i.action === "enable" ? n("toggleModal.enable.title", { entityType: i.entityType }) : n("toggleModal.disable.title", { entityType: i.entityType })
3853
3853
  ), c = w(
3854
3854
  () => i.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
@@ -3865,8 +3865,8 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3865
3865
  }
3866
3866
  };
3867
3867
  return (u, m) => {
3868
- const f = D("KPrompt");
3869
- return v(), j(Un, { to: "body" }, [
3868
+ const f = j("KPrompt");
3869
+ return g(), M(Un, { to: "body" }, [
3870
3870
  K(f, {
3871
3871
  "action-button-disabled": a.value,
3872
3872
  "action-button-text": c.value,
@@ -3876,16 +3876,16 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3876
3876
  onCancel: s,
3877
3877
  onProceed: d
3878
3878
  }, {
3879
- default: A(() => [
3880
- K(_(r), {
3879
+ default: C(() => [
3880
+ K(k(r), {
3881
3881
  keypath: `toggleModal.${i.action}.message`,
3882
3882
  scope: "global"
3883
3883
  }, {
3884
- entityType: A(() => [
3885
- Y(N(e.entityType), 1)
3884
+ entityType: C(() => [
3885
+ H(N(e.entityType), 1)
3886
3886
  ]),
3887
- entityName: A(() => [
3888
- M("strong", null, N(e.entityName), 1)
3887
+ entityName: C(() => [
3888
+ D("strong", null, N(e.entityName), 1)
3889
3889
  ]),
3890
3890
  _: 1
3891
3891
  }, 8, ["keypath"])
@@ -3895,7 +3895,7 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3895
3895
  ]);
3896
3896
  };
3897
3897
  }
3898
- }), Nl = /* @__PURE__ */ G({
3898
+ }), Dl = /* @__PURE__ */ J({
3899
3899
  __name: "PermissionsWrapper",
3900
3900
  props: {
3901
3901
  /**
@@ -3918,7 +3918,7 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3918
3918
  },
3919
3919
  setup(e) {
3920
3920
  const t = e, n = B(void 0), r = w(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
3921
- return ke(() => t.authFunction, async () => {
3921
+ return _e(() => t.authFunction, async () => {
3922
3922
  n.value = await t.authFunction();
3923
3923
  }, { immediate: !0 }), (i, o) => r.value ? V(i.$slots, "default", {
3924
3924
  key: 0,
@@ -3927,35 +3927,35 @@ const ko = { class: "yaml-config" }, Fn = /* @__PURE__ */ G({
3927
3927
  }
3928
3928
  });
3929
3929
  var Z = [];
3930
- for (var He = 0; He < 256; ++He)
3931
- Z.push((He + 256).toString(16).slice(1));
3932
- function cl(e, t = 0) {
3930
+ for (var Ye = 0; Ye < 256; ++Ye)
3931
+ Z.push((Ye + 256).toString(16).slice(1));
3932
+ function ul(e, t = 0) {
3933
3933
  return (Z[e[t + 0]] + Z[e[t + 1]] + Z[e[t + 2]] + Z[e[t + 3]] + "-" + Z[e[t + 4]] + Z[e[t + 5]] + "-" + Z[e[t + 6]] + Z[e[t + 7]] + "-" + Z[e[t + 8]] + Z[e[t + 9]] + "-" + Z[e[t + 10]] + Z[e[t + 11]] + Z[e[t + 12]] + Z[e[t + 13]] + Z[e[t + 14]] + Z[e[t + 15]]).toLowerCase();
3934
3934
  }
3935
- var Ee, sl = new Uint8Array(16);
3936
- function ul() {
3935
+ var Ee, dl = new Uint8Array(16);
3936
+ function fl() {
3937
3937
  if (!Ee && (Ee = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ee))
3938
3938
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
3939
- return Ee(sl);
3939
+ return Ee(dl);
3940
3940
  }
3941
- var dl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3942
- const Ft = {
3943
- randomUUID: dl
3941
+ var pl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3942
+ const Ot = {
3943
+ randomUUID: pl
3944
3944
  };
3945
- function fl(e, t, n) {
3946
- if (Ft.randomUUID && !t && !e)
3947
- return Ft.randomUUID();
3945
+ function ml(e, t, n) {
3946
+ if (Ot.randomUUID && !t && !e)
3947
+ return Ot.randomUUID();
3948
3948
  e = e || {};
3949
- var r = e.random || (e.rng || ul)();
3950
- return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, cl(r);
3949
+ var r = e.random || (e.rng || fl)();
3950
+ return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, ul(r);
3951
3951
  }
3952
- const pl = ["aria-labelledby"], ml = { class: "form-section-wrapper" }, hl = {
3952
+ const hl = ["aria-labelledby"], gl = { class: "form-section-wrapper" }, yl = {
3953
3953
  key: 1,
3954
3954
  class: "form-section-description"
3955
- }, gl = {
3955
+ }, vl = {
3956
3956
  key: 2,
3957
3957
  class: "form-section-footer"
3958
- }, yl = { class: "form-section-content" }, vl = /* @__PURE__ */ G({
3958
+ }, bl = { class: "form-section-content" }, xl = /* @__PURE__ */ J({
3959
3959
  __name: "EntityFormSection",
3960
3960
  props: {
3961
3961
  title: {
@@ -3984,49 +3984,49 @@ const pl = ["aria-labelledby"], ml = { class: "form-section-wrapper" }, hl = {
3984
3984
  }
3985
3985
  },
3986
3986
  setup(e) {
3987
- const t = Ze(), n = fl();
3988
- return (r, i) => (v(), L("div", {
3989
- "aria-labelledby": e.title ? _(n) : void 0,
3987
+ const t = Ze(), n = ml();
3988
+ return (r, i) => (g(), F("div", {
3989
+ "aria-labelledby": e.title ? k(n) : void 0,
3990
3990
  class: fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
3991
3991
  role: "group"
3992
3992
  }, [
3993
- M("div", ml, [
3994
- e.hideInfoHeader ? P("", !0) : (v(), L("div", {
3993
+ D("div", gl, [
3994
+ e.hideInfoHeader ? P("", !0) : (g(), F("div", {
3995
3995
  key: 0,
3996
3996
  class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
3997
3997
  }, [
3998
- e.title ? (v(), j(Ne(e.titleTag), {
3998
+ e.title ? (g(), M(Ke(e.titleTag), {
3999
3999
  key: 0,
4000
- id: _(n),
4000
+ id: k(n),
4001
4001
  class: "form-section-title"
4002
4002
  }, {
4003
- default: A(() => [
4004
- Y(N(e.title), 1)
4003
+ default: C(() => [
4004
+ H(N(e.title), 1)
4005
4005
  ]),
4006
4006
  _: 1
4007
4007
  }, 8, ["id"])) : P("", !0),
4008
- e.description || _(t).description ? (v(), L("div", hl, [
4008
+ e.description || k(t).description ? (g(), F("div", yl, [
4009
4009
  V(r.$slots, "description", {}, () => [
4010
- M("p", null, N(e.description), 1)
4010
+ D("p", null, N(e.description), 1)
4011
4011
  ], !0)
4012
4012
  ])) : P("", !0),
4013
- _(t).footer ? (v(), L("div", gl, [
4013
+ k(t).footer ? (g(), F("div", vl, [
4014
4014
  V(r.$slots, "footer", {}, void 0, !0)
4015
4015
  ])) : P("", !0)
4016
4016
  ], 2)),
4017
- M("div", yl, [
4017
+ D("div", bl, [
4018
4018
  V(r.$slots, "default", {}, void 0, !0)
4019
4019
  ])
4020
4020
  ])
4021
- ], 10, pl));
4021
+ ], 10, hl));
4022
4022
  }
4023
- }), Kl = /* @__PURE__ */ ae(vl, [["__scopeId", "data-v-b1f74200"]]), bl = {
4023
+ }), jl = /* @__PURE__ */ ae(xl, [["__scopeId", "data-v-b1f74200"]]), Cl = {
4024
4024
  class: "kong-ui-public-entity-link",
4025
4025
  "data-testid": "entity-link-parent"
4026
- }, xl = {
4026
+ }, Al = {
4027
4027
  key: 0,
4028
4028
  class: "deleted-entity"
4029
- }, Cl = { key: 1 }, Al = ["onClick"], kl = /* @__PURE__ */ G({
4029
+ }, _l = { key: 1 }, kl = ["onClick"], wl = /* @__PURE__ */ J({
4030
4030
  __name: "EntityLink",
4031
4031
  props: {
4032
4032
  entityLinkData: {
@@ -4050,7 +4050,7 @@ const pl = ["aria-labelledby"], ml = { class: "form-section-wrapper" }, hl = {
4050
4050
  }
4051
4051
  },
4052
4052
  setup(e) {
4053
- const t = e, n = B(), { isTruncated: r } = H.useTruncationDetector(n), { i18n: { t: i } } = H.useI18n(), o = i("global.actions.copyId"), a = B(o), l = w(() => t.entityLinkData.deleted ?? !1), c = w(() => {
4053
+ const t = e, n = B(), { isTruncated: r } = Y.useTruncationDetector(n), { i18n: { t: i } } = Y.useI18n(), o = i("global.actions.copyId"), a = B(o), l = w(() => t.entityLinkData.deleted ?? !1), c = w(() => {
4054
4054
  var u;
4055
4055
  return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
4056
4056
  }), s = w(() => {
@@ -4062,21 +4062,21 @@ const pl = ["aria-labelledby"], ml = { class: "form-section-wrapper" }, hl = {
4062
4062
  }, 1800));
4063
4063
  };
4064
4064
  return (u, m) => {
4065
- const f = D("KTooltip"), g = D("KExternalLink"), y = D("KClipboardProvider");
4066
- return v(), L("div", bl, [
4067
- l.value ? (v(), L("div", xl, N(s.value), 1)) : c.value ? c.value ? (v(), j(g, {
4065
+ const f = j("KTooltip"), y = j("KExternalLink"), v = j("KClipboardProvider");
4066
+ return g(), F("div", Cl, [
4067
+ l.value ? (g(), F("div", Al, N(s.value), 1)) : c.value ? c.value ? (g(), M(y, {
4068
4068
  key: 2,
4069
4069
  class: "entity-link",
4070
4070
  "hide-icon": !e.newWindow,
4071
4071
  href: e.externalLink,
4072
4072
  target: e.newWindow ? "_blank" : "_self"
4073
4073
  }, {
4074
- default: A(() => [
4074
+ default: C(() => [
4075
4075
  K(f, {
4076
- text: _(r) && e.entityLinkData.label || ""
4076
+ text: k(r) && e.entityLinkData.label || ""
4077
4077
  }, {
4078
- default: A(() => [
4079
- M("span", {
4078
+ default: C(() => [
4079
+ D("span", {
4080
4080
  ref_key: "textContent",
4081
4081
  ref: n,
4082
4082
  class: "entity-link-label"
@@ -4086,28 +4086,28 @@ const pl = ["aria-labelledby"], ml = { class: "form-section-wrapper" }, hl = {
4086
4086
  }, 8, ["text"])
4087
4087
  ]),
4088
4088
  _: 1
4089
- }, 8, ["hide-icon", "href", "target"])) : P("", !0) : (v(), L("div", Cl, N(" – "))),
4090
- c.value && e.allowCopy ? (v(), j(f, {
4089
+ }, 8, ["hide-icon", "href", "target"])) : P("", !0) : (g(), F("div", _l, N(" – "))),
4090
+ c.value && e.allowCopy ? (g(), M(f, {
4091
4091
  key: a.value,
4092
4092
  class: "copy-uuid-tooltip",
4093
4093
  "max-width": "160",
4094
4094
  placement: "bottom-end",
4095
4095
  text: a.value
4096
4096
  }, {
4097
- default: A(() => [
4098
- K(y, null, {
4099
- default: A(({ copyToClipboard: b }) => [
4100
- M("span", {
4097
+ default: C(() => [
4098
+ K(v, null, {
4099
+ default: C(({ copyToClipboard: b }) => [
4100
+ D("span", {
4101
4101
  class: "entity-link-copy-id",
4102
- onClick: Ye((S) => d(b), ["stop"])
4102
+ onClick: Oe((S) => d(b), ["stop"])
4103
4103
  }, [
4104
- K(_(Gn), {
4104
+ K(k(Qn), {
4105
4105
  class: "copy-icon",
4106
- color: _(Mr),
4106
+ color: k(jr),
4107
4107
  "data-testid": "copy-id",
4108
- size: _(jr)
4108
+ size: k(Pr)
4109
4109
  }, null, 8, ["color", "size"])
4110
- ], 8, Al)
4110
+ ], 8, kl)
4111
4111
  ]),
4112
4112
  _: 1
4113
4113
  })
@@ -4117,41 +4117,88 @@ const pl = ["aria-labelledby"], ml = { class: "form-section-wrapper" }, hl = {
4117
4117
  ]);
4118
4118
  };
4119
4119
  }
4120
- }), Ml = /* @__PURE__ */ ae(kl, [["__scopeId", "data-v-60e3ef7c"]]), { useAxios: Dl, useDeleteUrlBuilder: jl, useErrors: Ul, useExternalLinkCreator: Pl, useFetchUrlBuilder: ql, useFetcher: Hl, useDebouncedFilter: Yl, useStringHelpers: Vl, useHelpers: Wl, useGatewayFeatureSupported: Jl, useTruncationDetector: Gl, useValidators: zl, useSchemaProvider: Ql } = H;
4120
+ }), Ul = /* @__PURE__ */ ae(wl, [["__scopeId", "data-v-60e3ef7c"]]), Sl = { key: 1 }, Pl = /* @__PURE__ */ J({
4121
+ __name: "TableTags",
4122
+ props: {
4123
+ /** The tags to display in the table */
4124
+ tags: {
4125
+ type: [Array, String],
4126
+ required: !0
4127
+ },
4128
+ tagMaxWidth: {
4129
+ type: String,
4130
+ default: void 0
4131
+ }
4132
+ },
4133
+ setup(e) {
4134
+ const t = e, n = w(() => {
4135
+ if (Array.isArray(t.tags))
4136
+ return t.tags;
4137
+ if (typeof t.tags == "string")
4138
+ try {
4139
+ const r = JSON.parse(t.tags);
4140
+ return Array.isArray(r) ? r : [];
4141
+ } catch {
4142
+ return [];
4143
+ }
4144
+ return [];
4145
+ });
4146
+ return (r, i) => {
4147
+ var o;
4148
+ return ((o = n.value) == null ? void 0 : o.length) > 0 ? (g(), M(k(Yn), { key: 0 }, {
4149
+ default: C(() => [
4150
+ (g(!0), F(le, null, oe(n.value, (a) => (g(), M(k(Vn), {
4151
+ key: a,
4152
+ "max-width": e.tagMaxWidth,
4153
+ onClick: i[0] || (i[0] = Oe(() => {
4154
+ }, ["stop"]))
4155
+ }, {
4156
+ default: C(() => [
4157
+ H(N(a), 1)
4158
+ ]),
4159
+ _: 2
4160
+ }, 1032, ["max-width"]))), 128))
4161
+ ]),
4162
+ _: 1
4163
+ })) : (g(), F("span", Sl, "-"));
4164
+ };
4165
+ }
4166
+ }), { useAxios: ql, useDeleteUrlBuilder: Hl, useErrors: Yl, useExternalLinkCreator: Vl, useFetchUrlBuilder: Wl, useFetcher: Jl, useDebouncedFilter: Gl, useStringHelpers: zl, useHelpers: Ql, useGatewayFeatureSupported: Zl, useTruncationDetector: Xl, useValidators: ec, useSchemaProvider: tc } = Y;
4121
4167
  export {
4122
- $o as ConfigCardDisplay,
4168
+ Oo as ConfigCardDisplay,
4123
4169
  Ut as ConfigCardItem,
4124
4170
  ie as ConfigurationSchemaSection,
4125
4171
  U as ConfigurationSchemaType,
4126
- El as EntityBaseConfigCard,
4127
- Fl as EntityBaseForm,
4128
- Zn as EntityBaseFormType,
4129
- Ol as EntityBaseTable,
4130
- Ll as EntityDeleteModal,
4131
- Rl as EntityFilter,
4132
- Kl as EntityFormSection,
4133
- Ml as EntityLink,
4134
- Bl as EntityToggleModal,
4135
- Qn as EntityTypes,
4172
+ Ll as EntityBaseConfigCard,
4173
+ Rl as EntityBaseForm,
4174
+ er as EntityBaseFormType,
4175
+ Bl as EntityBaseTable,
4176
+ Nl as EntityDeleteModal,
4177
+ Kl as EntityFilter,
4178
+ jl as EntityFormSection,
4179
+ Ul as EntityLink,
4180
+ Ml as EntityToggleModal,
4181
+ Xn as EntityTypes,
4136
4182
  ue as FetcherStatus,
4137
- Lr as InternalLinkItem,
4183
+ Br as InternalLinkItem,
4138
4184
  Pt as JsonCodeBlock,
4139
- Nl as PermissionsWrapper,
4185
+ Dl as PermissionsWrapper,
4140
4186
  Xe as SupportedEntityType,
4141
- Ke as SupportedEntityTypesArray,
4142
- On as TerraformCodeBlock,
4143
- Fn as YamlCodeBlock,
4144
- Dl as useAxios,
4145
- Yl as useDebouncedFilter,
4146
- jl as useDeleteUrlBuilder,
4147
- Ul as useErrors,
4148
- Pl as useExternalLinkCreator,
4149
- ql as useFetchUrlBuilder,
4150
- Hl as useFetcher,
4151
- Jl as useGatewayFeatureSupported,
4152
- Wl as useHelpers,
4153
- Ql as useSchemaProvider,
4154
- Vl as useStringHelpers,
4155
- Gl as useTruncationDetector,
4156
- zl as useValidators
4187
+ Me as SupportedEntityTypesArray,
4188
+ Pl as TableTags,
4189
+ Fn as TerraformCodeBlock,
4190
+ On as YamlCodeBlock,
4191
+ ql as useAxios,
4192
+ Gl as useDebouncedFilter,
4193
+ Hl as useDeleteUrlBuilder,
4194
+ Yl as useErrors,
4195
+ Vl as useExternalLinkCreator,
4196
+ Wl as useFetchUrlBuilder,
4197
+ Jl as useFetcher,
4198
+ Zl as useGatewayFeatureSupported,
4199
+ Ql as useHelpers,
4200
+ tc as useSchemaProvider,
4201
+ zl as useStringHelpers,
4202
+ Xl as useTruncationDetector,
4203
+ ec as useValidators
4157
4204
  };