@kong-ui-public/entities-key-sets 2.3.28 → 2.3.29

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,9 +1,9 @@
1
- import { defineComponent as G, ref as E, computed as j, watch as xe, renderSlot as H, createCommentVNode as P, unref as C, useSlots as We, onBeforeMount as ct, resolveComponent as F, openBlock as p, createBlock as q, createSlots as Se, withCtx as m, createElementVNode as U, createTextVNode as z, toDisplayString as N, createVNode as $, createElementBlock as T, renderList as de, Fragment as fe, normalizeClass as ke, withModifiers as De, withDirectives as Fe, vShow as Ne, useCssVars as Gt, inject as Qt, resolveDynamicComponent as Ie, normalizeProps as aa, guardReactiveProps as ia, mergeProps as nt, onMounted as ra, onUnmounted as oa, normalizeStyle as Xt, pushScopeId as en, popScopeId as tn, reactive as At } from "vue";
2
- import { useRouter as ut } from "vue-router";
3
- import { createI18n as dt, i18nTComponent as nn } from "@kong-ui-public/i18n";
4
- import It from "axios";
5
- import { BadgeMethodAppearances as la } from "@kong/kongponents";
6
- const sa = {
1
+ import { defineComponent as W, ref as N, computed as I, watch as Ie, renderSlot as z, createCommentVNode as U, unref as C, useSlots as Ze, onBeforeMount as ut, resolveComponent as E, openBlock as p, createBlock as K, createSlots as Ae, withCtx as m, createElementVNode as L, createTextVNode as P, toDisplayString as F, createVNode as $, createElementBlock as T, renderList as de, Fragment as fe, normalizeClass as ke, withModifiers as De, withDirectives as je, vShow as $e, useCssVars as en, inject as tn, resolveDynamicComponent as Ce, normalizeProps as ia, guardReactiveProps as ra, mergeProps as at, onMounted as oa, onUnmounted as la, normalizeStyle as dt, pushScopeId as pt, popScopeId as ft, reactive as Tt } from "vue";
2
+ import { useRouter as yt } from "vue-router";
3
+ import { createI18n as gt, i18nTComponent as nn } from "@kong-ui-public/i18n";
4
+ import jt from "axios";
5
+ import { BadgeMethodAppearances as sa } from "@kong/kongponents";
6
+ const ca = {
7
7
  title: "Key Sets",
8
8
  list: {
9
9
  toolbar_actions: {
@@ -64,19 +64,19 @@ const sa = {
64
64
  }
65
65
  }
66
66
  }
67
- }, ca = {
68
- keySets: sa
67
+ }, ua = {
68
+ keySets: ca
69
69
  };
70
- function ua() {
71
- const e = dt("en-us", ca);
70
+ function da() {
71
+ const e = gt("en-us", ua);
72
72
  return {
73
73
  i18n: e,
74
74
  i18nT: nn(e)
75
75
  // Translation component <i18n-t>
76
76
  };
77
77
  }
78
- const pt = {
79
- useI18n: ua
78
+ const mt = {
79
+ useI18n: da
80
80
  }, Ve = {
81
81
  list: {
82
82
  konnect: "/api/runtime_groups/{controlPlaneId}/key-sets",
@@ -93,19 +93,19 @@ const pt = {
93
93
  }
94
94
  }
95
95
  };
96
- var an = /* @__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))(an || {}), at = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(at || {}), we = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(we || {}), Y = /* @__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.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(Y || {}), pe = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(pe || {});
97
- function da() {
96
+ var an = /* @__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))(an || {}), it = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(it || {}), Se = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Se || {}), Y = /* @__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.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(Y || {}), pe = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(pe || {});
97
+ function pa() {
98
98
  return {
99
99
  getAxiosInstance: (e = {}) => {
100
100
  try {
101
- const t = Qt("get-axios-instance", void 0);
102
- return typeof t == "function" ? t(e) : It.create({
101
+ const t = tn("get-axios-instance", void 0);
102
+ return typeof t == "function" ? t(e) : jt.create({
103
103
  withCredentials: !0,
104
104
  timeout: 3e4,
105
105
  ...e
106
106
  });
107
107
  } catch (t) {
108
- return console.warn("getAxiosInstance:", t.message || t), It.create({
108
+ return console.warn("getAxiosInstance:", t.message || t), jt.create({
109
109
  withCredentials: !0,
110
110
  timeout: 3e4,
111
111
  ...e
@@ -118,7 +118,7 @@ function da() {
118
118
  }
119
119
  };
120
120
  }
121
- function pa() {
121
+ function fa() {
122
122
  return {
123
123
  debounce: (e, t) => {
124
124
  let n;
@@ -130,7 +130,7 @@ function pa() {
130
130
  }
131
131
  };
132
132
  }
133
- const Qe = "khcp-user-table-preferences", fa = {
133
+ const Xe = "khcp-user-table-preferences", ya = {
134
134
  pageSize: 30,
135
135
  sortColumnKey: void 0,
136
136
  sortColumnOrder: void 0
@@ -145,44 +145,44 @@ function ga() {
145
145
  return;
146
146
  }
147
147
  }, t = () => {
148
- const n = e(localStorage.getItem(Qe));
148
+ const n = e(localStorage.getItem(Xe));
149
149
  return !n || !Object.keys(n).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(n));
150
150
  };
151
151
  return {
152
152
  setTablePreferences: (n, a) => {
153
153
  try {
154
154
  const i = t();
155
- i.set(n, a), localStorage.setItem(Qe, JSON.stringify(Object.fromEntries(i.entries())));
155
+ i.set(n, a), localStorage.setItem(Xe, JSON.stringify(Object.fromEntries(i.entries())));
156
156
  } catch (i) {
157
157
  console.error("useTablePreferences(setTablePreferences)", i);
158
158
  }
159
159
  },
160
160
  getTablePreferences: (n) => {
161
161
  const a = t();
162
- return (a == null ? void 0 : a.get(n)) || void 0 || fa;
162
+ return (a == null ? void 0 : a.get(n)) || void 0 || ya;
163
163
  },
164
164
  deleteAllTablePreferences: () => {
165
- localStorage.removeItem(Qe);
165
+ localStorage.removeItem(Xe);
166
166
  }
167
167
  };
168
168
  }
169
- function ft(e = {}) {
170
- const { getAxiosInstance: t } = da();
169
+ function ht(e = {}) {
170
+ const { getAxiosInstance: t } = pa();
171
171
  return {
172
172
  axiosInstance: t(e)
173
173
  };
174
174
  }
175
- const ya = {
175
+ const ma = {
176
176
  actions: {
177
177
  copyId: "Copy ID",
178
178
  copied_id: 'Copied "{id}" to the clipboard',
179
179
  copyToClipboard: "Copied successfully!",
180
180
  copyToClipboardFailed: "Failed to copy to the clipboard"
181
181
  }
182
- }, ma = {
182
+ }, ha = {
183
183
  message: "Are you sure you want to delete this {entityType}?",
184
184
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
185
- }, ha = {
185
+ }, va = {
186
186
  actions: {
187
187
  viewConfiguration: "View Configuration",
188
188
  save: "Save",
@@ -198,13 +198,13 @@ const ya = {
198
198
  errors: {
199
199
  edit: "The entity could not be edited at this time."
200
200
  }
201
- }, va = {
201
+ }, ba = {
202
202
  emptyState: {
203
203
  noSearchResultsTitle: "No results found",
204
204
  noSearchResultsMessage: "Please adjust the criteria and try again.",
205
205
  noSearchResultsCtaText: "Clear"
206
206
  }
207
- }, ba = {
207
+ }, ka = {
208
208
  title: "Configuration",
209
209
  actions: {
210
210
  copy: "Copy JSON"
@@ -239,7 +239,7 @@ const ya = {
239
239
  entryTitle: "Entry {index}",
240
240
  structuredFormat: "Structured"
241
241
  }
242
- }, ka = {
242
+ }, Ca = {
243
243
  filterButtonText: "Filter",
244
244
  fieldLabel: "Filter by:",
245
245
  inputPlaceholder: "Enter a value",
@@ -247,15 +247,15 @@ const ya = {
247
247
  applyButtonText: "Apply",
248
248
  clearButtonText: "Clear",
249
249
  clearAllButtonText: "Clear all filters"
250
- }, Ca = {
250
+ }, wa = {
251
251
  errors: {
252
252
  fetch: "Could not fetch available items",
253
253
  invalid: "Please select a valid value"
254
254
  }
255
- }, wa = {
255
+ }, Sa = {
256
256
  unexpected: "An unexpected error has occurred",
257
257
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
258
- }, Sa = {
258
+ }, Aa = {
259
259
  enable: {
260
260
  title: "Enable {entityType}",
261
261
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -266,19 +266,19 @@ const ya = {
266
266
  message: "Are you sure you want to disable the {entityType} {entityName}?",
267
267
  confirmText: "Yes, disable"
268
268
  }
269
- }, Aa = {
270
- global: ya,
271
- deleteModal: ma,
272
- baseForm: ha,
273
- baseTable: va,
274
- baseConfigCard: ba,
275
- filter: ka,
276
- debouncedFilter: Ca,
277
- errors: wa,
278
- toggleModal: Sa
269
+ }, xa = {
270
+ global: ma,
271
+ deleteModal: ha,
272
+ baseForm: va,
273
+ baseTable: ba,
274
+ baseConfigCard: ka,
275
+ filter: Ca,
276
+ debouncedFilter: wa,
277
+ errors: Sa,
278
+ toggleModal: Aa
279
279
  };
280
- function gt() {
281
- const e = dt("en-us", Aa);
280
+ function vt() {
281
+ const e = gt("en-us", xa);
282
282
  return {
283
283
  i18n: e,
284
284
  i18nT: nn(e)
@@ -334,67 +334,67 @@ function Ia(e, t, n, a = {
334
334
  searchKeys: ["id"]
335
335
  }) {
336
336
  n || (n = "100");
337
- const { axiosInstance: i } = ft({
337
+ const { axiosInstance: i } = ht({
338
338
  headers: e.requestHeaders
339
- }), { i18n: { t: o } } = gt(), { debounce: r } = pa(), l = r(async (g) => {
340
- await I(g);
341
- }, 200), s = E(!1), c = E(""), d = E(""), u = E([]), y = E([]), f = E(void 0), w = C(t);
342
- let h = `${e.apiBaseUrl}${w}`;
343
- e.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
344
- const { isValidUuid: A } = rn(), v = async () => {
339
+ }), { i18n: { t: o } } = vt(), { debounce: r } = fa(), l = r(async (y) => {
340
+ await S(y);
341
+ }, 200), s = N(!1), c = N(""), d = N(""), u = N([]), g = N([]), f = N(void 0), w = C(t);
342
+ let b = `${e.apiBaseUrl}${w}`;
343
+ e.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
344
+ const { isValidUuid: x } = rn(), _ = async () => {
345
345
  try {
346
346
  s.value = !0;
347
- const { data: g } = await i.get(`${h}?size=${n}`);
348
- g != null && g.next || (f.value = a.fetchedItemsKey in g ? g[a.fetchedItemsKey] : []), y.value = a.fetchedItemsKey in g ? g[a.fetchedItemsKey] : [], u.value = y.value;
347
+ const { data: y } = await i.get(`${b}?size=${n}`);
348
+ y != null && y.next || (f.value = a.fetchedItemsKey in y ? y[a.fetchedItemsKey] : []), g.value = a.fetchedItemsKey in y ? y[a.fetchedItemsKey] : [], u.value = g.value;
349
349
  } catch {
350
350
  u.value = [], c.value = o("debouncedFilter.errors.fetch");
351
351
  } finally {
352
352
  s.value = !1;
353
353
  }
354
- }, b = E(""), I = async (g) => {
355
- var k, x, re;
356
- if (b.value !== g)
357
- if (b.value = g || "", f.value === void 0)
354
+ }, k = N(""), S = async (y) => {
355
+ var h, A, re;
356
+ if (k.value !== y)
357
+ if (k.value = y || "", f.value === void 0)
358
358
  try {
359
359
  if (s.value = !0, c.value = "", d.value = "", e.app === "konnect") {
360
- let B = h + "";
361
- g && (B += `/${g}`);
362
- const { data: S } = await i.get(`${B}?size=${n}`);
363
- a.fetchedItemsKey in S ? u.value = S[a.fetchedItemsKey] : S != null && S.id ? u.value = [S] : u.value = [];
364
- } else if (g) {
365
- const B = [];
366
- A(g) && a.searchKeys.includes("id") ? B.push((async () => {
367
- const { data: O } = await i.get(`${h}/${g}`);
360
+ let H = b + "";
361
+ y && (H += `/${y}`);
362
+ const { data: v } = await i.get(`${H}?size=${n}`);
363
+ a.fetchedItemsKey in v ? u.value = v[a.fetchedItemsKey] : v != null && v.id ? u.value = [v] : u.value = [];
364
+ } else if (y) {
365
+ const H = [];
366
+ x(y) && a.searchKeys.includes("id") ? H.push((async () => {
367
+ const { data: O } = await i.get(`${b}/${y}`);
368
368
  return [O[a.fetchedItemsKey] ?? O];
369
- })()) : B.push(
369
+ })()) : H.push(
370
370
  ...a.searchKeys.filter((O) => O !== "id").map(async (O) => {
371
- const { data: K } = await i.get(`${h}?${O}=${g}`);
372
- return K[a.fetchedItemsKey];
371
+ const { data: B } = await i.get(`${b}?${O}=${y}`);
372
+ return B[a.fetchedItemsKey];
373
373
  })
374
374
  );
375
- const S = await Promise.all(B), L = /* @__PURE__ */ new Set();
376
- u.value = [], (k = S == null ? void 0 : S.forEach) == null || k.call(S, (O) => {
377
- var K;
378
- (K = O == null ? void 0 : O.forEach) == null || K.call(O, (R) => {
379
- L.has(R.id) || (L.add(R.id), u.value.push(R));
375
+ const v = await Promise.all(H), R = /* @__PURE__ */ new Set();
376
+ u.value = [], (h = v == null ? void 0 : v.forEach) == null || h.call(v, (O) => {
377
+ var B;
378
+ (B = O == null ? void 0 : O.forEach) == null || B.call(O, (q) => {
379
+ R.has(q.id) || (R.add(q.id), u.value.push(q));
380
380
  });
381
381
  });
382
382
  } else
383
- u.value = y.value;
384
- } catch (B) {
385
- ((x = B == null ? void 0 : B.response) == null ? void 0 : x.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
383
+ u.value = g.value;
384
+ } catch (H) {
385
+ ((A = H == null ? void 0 : H.response) == null ? void 0 : A.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
386
386
  } finally {
387
387
  s.value = !1;
388
388
  }
389
389
  else
390
- s.value = !0, d.value = "", g ? (u.value = (re = f.value) == null ? void 0 : re.filter((B) => {
391
- var S;
392
- let L = !1;
390
+ s.value = !0, d.value = "", y ? (u.value = (re = f.value) == null ? void 0 : re.filter((H) => {
391
+ var v;
392
+ let R = !1;
393
393
  for (const O of a.searchKeys) {
394
- const K = typeof B[O] == "string" ? (S = B[O]) == null ? void 0 : S.toLowerCase() : B[O];
395
- K != null && K.includes(g.toLowerCase()) && (L = !0);
394
+ const B = typeof H[O] == "string" ? (v = H[O]) == null ? void 0 : v.toLowerCase() : H[O];
395
+ B != null && B.includes(y.toLowerCase()) && (R = !0);
396
396
  }
397
- return L;
397
+ return R;
398
398
  }), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid"))) : u.value = f.value, s.value = !1;
399
399
  };
400
400
  return {
@@ -403,18 +403,18 @@ function Ia(e, t, n, a = {
403
403
  validationError: d,
404
404
  results: u,
405
405
  allRecords: f,
406
- loadItems: v,
406
+ loadItems: _,
407
407
  debouncedQueryChange: l
408
408
  };
409
409
  }
410
- function xa(e, t) {
411
- const n = C(t), a = j(
410
+ function _a(e, t) {
411
+ const n = C(t), a = I(
412
412
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
413
413
  );
414
414
  return a.value.search = "", (i) => `${a.value.href}/${i}`;
415
415
  }
416
- function _a() {
417
- const { i18n: { t: e } } = gt();
416
+ function Ta() {
417
+ const { i18n: { t: e } } = vt();
418
418
  return {
419
419
  getMessageFromError: (t) => {
420
420
  var n, a, i, o;
@@ -455,38 +455,38 @@ function ja(e) {
455
455
  }
456
456
  }
457
457
  function on(e, t) {
458
- const n = E(C(e)), a = E(C(t)), i = j(
458
+ const n = N(C(e)), a = N(C(t)), i = I(
459
459
  () => !!(n.value.app === "konnect" || n.value.isExactMatch)
460
- ), o = j(
460
+ ), o = I(
461
461
  () => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
462
462
  );
463
463
  return (r) => {
464
- const { page: l, pageSize: s, offset: c, sortColumnKey: d, sortColumnOrder: u, query: y } = r;
464
+ const { page: l, pageSize: s, offset: c, sortColumnKey: d, sortColumnOrder: u, query: g } = r;
465
465
  try {
466
466
  let f = new URL(o.value.href);
467
- return i.value && y ? (f.search = "", f = n.value.app === "konnect" ? new URL(`${f.href}?filter[name][contains]=${y}`) : new URL(`${f.href}/${y}/`)) : (i.value || new URLSearchParams(y).forEach((w, h) => {
468
- f.searchParams.append(h, w);
467
+ return i.value && g ? (f.search = "", f = n.value.app === "konnect" ? new URL(`${f.href}?filter[name][contains]=${g}`) : new URL(`${f.href}/${g}/`)) : (i.value || new URLSearchParams(g).forEach((w, b) => {
468
+ f.searchParams.append(b, w);
469
469
  }), d && f.searchParams.append("sort_by", d), u === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(s))), c && l !== 1 && f.searchParams.append("offset", String(c)), f.href;
470
470
  } catch (f) {
471
471
  return console.error("RouteList(fetcher)", f), a.value;
472
472
  }
473
473
  };
474
474
  }
475
- function Ta(e, t, n = "data") {
476
- const a = C(t), { axiosInstance: i } = ft({
475
+ function $a(e, t, n = "data") {
476
+ const a = C(t), { axiosInstance: i } = ht({
477
477
  headers: e.requestHeaders
478
- }), o = on(e, a), r = E({
479
- status: we.Idle
478
+ }), o = on(e, a), r = N({
479
+ status: Se.Idle
480
480
  });
481
481
  return { fetcher: async (l) => {
482
482
  try {
483
- r.value = { status: we.Loading };
483
+ r.value = { status: Se.Loading };
484
484
  let s = o(l);
485
485
  s.includes("filter[name]") && (s = `${s}&page[size]=${l.pageSize}&page[number]=${l.page}`);
486
486
  const { data: c } = await i.get(s), d = n && n.replace(/[^\w-_]/gi, "");
487
487
  let u;
488
488
  c[d] && Array.isArray(c[d]) ? u = c[d] : Array.isArray(c) ? u = c : u = Object.keys(c).length ? [c] : [];
489
- const y = {
489
+ const g = {
490
490
  data: u,
491
491
  total: u.length,
492
492
  ...c.offset ? {
@@ -496,61 +496,61 @@ function Ta(e, t, n = "data") {
496
496
  } : null
497
497
  };
498
498
  return r.value = {
499
- status: we.Idle,
500
- response: y
501
- }, y;
499
+ status: Se.Idle,
500
+ response: g
501
+ }, g;
502
502
  } catch (s) {
503
503
  const c = {
504
504
  data: [],
505
505
  total: 0
506
506
  };
507
507
  return l.query && s.response.status === 404 ? (r.value = {
508
- status: we.NoResults,
508
+ status: Se.NoResults,
509
509
  response: c,
510
510
  error: s
511
511
  }, c) : (r.value = {
512
- status: we.Error,
512
+ status: Se.Error,
513
513
  response: c,
514
514
  error: s
515
515
  }, c);
516
516
  }
517
517
  }, fetcherState: r };
518
518
  }
519
- function $a() {
519
+ function Oa() {
520
520
  const e = (n, a = "_") => n ? n.split(a).map((i) => i.toLowerCase() === "id" ? i.toUpperCase() : i.charAt(0).toUpperCase() + i.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
521
521
  return {
522
522
  capitalize: (n) => n ? n.replace(t, (a) => a.toUpperCase()) : "",
523
523
  convertKeyToTitle: e
524
524
  };
525
525
  }
526
- const ln = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, xt = (e) => {
526
+ const ln = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, $t = (e) => {
527
527
  if (typeof e != "string")
528
528
  throw new TypeError("Invalid argument expected string");
529
529
  const t = e.match(ln);
530
530
  if (!t)
531
531
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
532
532
  return t.shift(), t;
533
- }, _t = (e) => e === "*" || e === "x" || e === "X", jt = (e) => {
533
+ }, Ot = (e) => e === "*" || e === "x" || e === "X", Mt = (e) => {
534
534
  const t = parseInt(e, 10);
535
535
  return isNaN(t) ? e : t;
536
- }, Oa = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Ma = (e, t) => {
537
- if (_t(e) || _t(t))
536
+ }, Ma = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Fa = (e, t) => {
537
+ if (Ot(e) || Ot(t))
538
538
  return 0;
539
- const [n, a] = Oa(jt(e), jt(t));
539
+ const [n, a] = Ma(Mt(e), Mt(t));
540
540
  return n > a ? 1 : n < a ? -1 : 0;
541
- }, Tt = (e, t) => {
541
+ }, Ft = (e, t) => {
542
542
  for (let n = 0; n < Math.max(e.length, t.length); n++) {
543
- const a = Ma(e[n] || "0", t[n] || "0");
543
+ const a = Fa(e[n] || "0", t[n] || "0");
544
544
  if (a !== 0)
545
545
  return a;
546
546
  }
547
547
  return 0;
548
- }, Ea = (e, t) => {
549
- const n = xt(e), a = xt(t), i = n.pop(), o = a.pop(), r = Tt(n, a);
550
- return r !== 0 ? r : i && o ? Tt(i.split("."), o.split(".")) : i || o ? i ? -1 : 1 : 0;
551
- }, $t = (e, t, n) => {
552
- Fa(n);
553
- const a = Ea(e, t);
548
+ }, Na = (e, t) => {
549
+ const n = $t(e), a = $t(t), i = n.pop(), o = a.pop(), r = Ft(n, a);
550
+ return r !== 0 ? r : i && o ? Ft(i.split("."), o.split(".")) : i || o ? i ? -1 : 1 : 0;
551
+ }, Nt = (e, t, n) => {
552
+ Ea(n);
553
+ const a = Na(e, t);
554
554
  return sn[n].includes(a);
555
555
  }, sn = {
556
556
  ">": [1],
@@ -559,67 +559,67 @@ const ln = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
559
559
  "<=": [-1, 0],
560
560
  "<": [-1],
561
561
  "!=": [-1, 1]
562
- }, Ot = Object.keys(sn), Fa = (e) => {
562
+ }, Et = Object.keys(sn), Ea = (e) => {
563
563
  if (typeof e != "string")
564
564
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
565
- if (Ot.indexOf(e) === -1)
566
- throw new Error(`Invalid operator, expected one of ${Ot.join("|")}`);
567
- }, Na = (e) => typeof e == "string" && /^[v\d]/.test(e) && ln.test(e);
568
- function Ka(e) {
565
+ if (Et.indexOf(e) === -1)
566
+ throw new Error(`Invalid operator, expected one of ${Et.join("|")}`);
567
+ }, Ka = (e) => typeof e == "string" && /^[v\d]/.test(e) && ln.test(e);
568
+ function qa(e) {
569
569
  const { gatewayInfo: t, supportedRange: n } = e;
570
570
  if (!t)
571
571
  return !0;
572
572
  const { edition: a, version: i } = t;
573
- if (!Na(i))
573
+ if (!Ka(i))
574
574
  return console.error("Invalid version"), !1;
575
575
  const o = n[a];
576
576
  if (!o)
577
577
  return !1;
578
578
  const [r, l] = o;
579
- return !(r && $t(i, r, "<") || l && $t(i, l, ">"));
579
+ return !(r && Nt(i, r, "<") || l && Nt(i, l, ">"));
580
580
  }
581
- function qa(e) {
582
- const t = E(0), n = E(0), a = E(!1);
583
- return xe(e, (i) => {
581
+ function Ba(e) {
582
+ const t = N(0), n = N(0), a = N(!1);
583
+ return Ie(e, (i) => {
584
584
  i && !a.value && (t.value = i.offsetWidth, n.value = i.scrollWidth, a.value = !0);
585
585
  }), {
586
- isTruncated: j(() => t.value < n.value)
586
+ isTruncated: I(() => t.value < n.value)
587
587
  };
588
588
  }
589
589
  const ie = {
590
- useAxios: ft,
590
+ useAxios: ht,
591
591
  useDebouncedFilter: Ia,
592
- useDeleteUrlBuilder: xa,
593
- useErrors: _a,
592
+ useDeleteUrlBuilder: _a,
593
+ useErrors: Ta,
594
594
  useExternalLinkCreator: ja,
595
- useFetcher: Ta,
595
+ useFetcher: $a,
596
596
  useFetchUrlBuilder: on,
597
597
  useHelpers: rn,
598
- useStringHelpers: $a,
599
- useI18n: gt,
600
- useGatewayFeatureSupported: Ka,
601
- useTruncationDetector: qa
602
- }, Ba = {
598
+ useStringHelpers: Oa,
599
+ useI18n: vt,
600
+ useGatewayFeatureSupported: qa,
601
+ useTruncationDetector: Ba
602
+ }, La = {
603
603
  fail: "Failed to copy id to clipboard",
604
604
  success: {
605
605
  prefix: "Successfully",
606
606
  content: " copied to clipboard"
607
607
  }
608
- }, La = "Copy to clipboard", Ua = {
609
- message: Ba,
610
- iconTitle: La
611
- }, Ra = "kong-ui-copy-uuid-notify", Mt = "24px", Da = (e, t) => {
608
+ }, Ra = "Copy to clipboard", Ua = {
609
+ message: La,
610
+ iconTitle: Ra
611
+ }, Da = "kong-ui-copy-uuid-notify", Kt = "24px", Va = (e, t) => {
612
612
  const n = e.__vccOpts || e;
613
613
  for (const [a, i] of t)
614
614
  n[a] = i;
615
615
  return n;
616
- }, Va = (e) => (en("data-v-13f41aa3"), e = e(), tn(), e), Pa = ["aria-hidden"], za = {
616
+ }, Pa = (e) => (pt("data-v-13f41aa3"), e = e(), ft(), e), za = ["aria-hidden"], Ha = {
617
617
  key: 0,
618
618
  "data-testid": "kui-icon-svg-title"
619
- }, Ha = /* @__PURE__ */ Va(() => /* @__PURE__ */ U("path", {
619
+ }, Ja = /* @__PURE__ */ Pa(() => /* @__PURE__ */ L("path", {
620
620
  d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
621
621
  fill: "currentColor"
622
- }, null, -1)), Ja = /* @__PURE__ */ G({
622
+ }, null, -1)), Ya = /* @__PURE__ */ W({
623
623
  __name: "CopyIcon",
624
624
  props: {
625
625
  /** The accessibility text provided to screen readers */
@@ -650,7 +650,7 @@ const ie = {
650
650
  size: {
651
651
  type: [Number, String],
652
652
  required: !1,
653
- default: Mt,
653
+ default: Kt,
654
654
  // if setting to the imported const fails, just pass a number of 24 as the default.
655
655
  validator: (e) => {
656
656
  if (typeof e == "number" && e > 0)
@@ -671,7 +671,7 @@ const ie = {
671
671
  }
672
672
  },
673
673
  setup(e) {
674
- const t = e, n = j(() => {
674
+ const t = e, n = I(() => {
675
675
  if (typeof t.size == "number" && t.size > 0)
676
676
  return `${t.size}px`;
677
677
  if (typeof t.size == "string") {
@@ -679,8 +679,8 @@ const ie = {
679
679
  if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
680
680
  return `${o}px`;
681
681
  }
682
- return Mt;
683
- }), a = j(() => ({
682
+ return Kt;
683
+ }), a = I(() => ({
684
684
  boxSizing: "border-box",
685
685
  color: t.color,
686
686
  display: t.display,
@@ -688,11 +688,11 @@ const ie = {
688
688
  lineHeight: "0",
689
689
  width: n.value
690
690
  }));
691
- return (i, o) => (p(), q(Ie(e.as), {
691
+ return (i, o) => (p(), K(Ce(e.as), {
692
692
  "aria-hidden": e.decorative ? "true" : void 0,
693
693
  class: "kui-icon copy-icon",
694
694
  "data-testid": "kui-icon-wrapper-copy-icon",
695
- style: Xt(a.value)
695
+ style: dt(a.value)
696
696
  }, {
697
697
  default: m(() => [
698
698
  (p(), T("svg", {
@@ -705,14 +705,14 @@ const ie = {
705
705
  width: "100%",
706
706
  xmlns: "http://www.w3.org/2000/svg"
707
707
  }, [
708
- e.title ? (p(), T("title", za, N(e.title), 1)) : P("", !0),
709
- Ha
710
- ], 8, Pa))
708
+ e.title ? (p(), T("title", Ha, F(e.title), 1)) : U("", !0),
709
+ Ja
710
+ ], 8, za))
711
711
  ]),
712
712
  _: 1
713
713
  }, 8, ["aria-hidden", "style"]));
714
714
  }
715
- }), Ya = /* @__PURE__ */ Da(Ja, [["__scopeId", "data-v-13f41aa3"]]), Wa = "16px", Za = { class: "kong-ui-copy-uuid" }, Ga = ["onClick"], Et = 15, Qa = /* @__PURE__ */ G({
715
+ }), Wa = /* @__PURE__ */ Va(Ya, [["__scopeId", "data-v-13f41aa3"]]), Za = "16px", Ga = { class: "kong-ui-copy-uuid" }, Qa = ["onClick"], qt = 15, Xa = /* @__PURE__ */ W({
716
716
  __name: "CopyUuid",
717
717
  props: {
718
718
  uuid: {
@@ -756,27 +756,27 @@ const ie = {
756
756
  },
757
757
  emits: ["success", "error"],
758
758
  setup(e, { emit: t }) {
759
- const { t: n } = dt("en-us", Ua), a = e, i = t, o = a.notify || Qt(Ra, () => {
760
- }), r = j(() => a.idTooltip ? {
759
+ const { t: n } = gt("en-us", Ua), a = e, i = t, o = a.notify || tn(Da, () => {
760
+ }), r = I(() => a.idTooltip ? {
761
761
  label: a.idTooltip,
762
762
  positionFixed: !0,
763
763
  placement: "bottomStart"
764
764
  } : {
765
765
  title: a.uuid
766
- }), l = j(() => !!(a.tooltip && a.successTooltip)), s = E(a.tooltip), c = j(() => a.tooltip ? {
766
+ }), l = I(() => !!(a.tooltip && a.successTooltip)), s = N(a.tooltip), c = I(() => a.tooltip ? {
767
767
  label: s.value,
768
768
  positionFixed: !0,
769
769
  maxWidth: "500px",
770
770
  placement: "bottomStart"
771
- } : {}), d = j(() => {
771
+ } : {}), d = I(() => {
772
772
  var f;
773
773
  return a.format === "redacted" ? "*****" : a.format === "deleted" ? `*${(f = a.uuid) == null ? void 0 : f.substring(0, 5)}` : a.uuid;
774
774
  }), u = (f) => {
775
775
  s.value = f, setTimeout(() => {
776
776
  s.value = a.tooltip;
777
777
  }, 1800);
778
- }, y = (f) => {
779
- var w, h;
778
+ }, g = (f) => {
779
+ var w, b;
780
780
  if (!f(a.uuid)) {
781
781
  typeof o == "function" && o({
782
782
  type: "error",
@@ -784,45 +784,45 @@ const ie = {
784
784
  }), l.value ? u(n("message.fail")) : i("error", a.uuid);
785
785
  return;
786
786
  }
787
- const A = ((w = a.uuid) == null ? void 0 : w.length) > Et, v = a.format === "hidden" || a.format === "redacted" ? n("message.success.prefix") : `"${((h = a.uuid) == null ? void 0 : h.substring(0, Et)) + (A ? "..." : "")}"`;
787
+ const x = ((w = a.uuid) == null ? void 0 : w.length) > qt, _ = a.format === "hidden" || a.format === "redacted" ? n("message.success.prefix") : `"${((b = a.uuid) == null ? void 0 : b.substring(0, qt)) + (x ? "..." : "")}"`;
788
788
  typeof o == "function" && o({
789
789
  type: "success",
790
- message: `${v}${n("message.success.content")}`
790
+ message: `${_}${n("message.success.content")}`
791
791
  }), l.value ? u(a.successTooltip) : i("success", a.uuid);
792
792
  };
793
793
  return (f, w) => {
794
- const h = F("KClipboardProvider");
795
- return p(), T("div", Za, [
796
- e.format !== "hidden" ? (p(), q(Ie(e.idTooltip ? "KTooltip" : "div"), nt({ key: 0 }, r.value, { "data-testid": "copy-id" }), {
794
+ const b = E("KClipboardProvider");
795
+ return p(), T("div", Ga, [
796
+ e.format !== "hidden" ? (p(), K(Ce(e.idTooltip ? "KTooltip" : "div"), at({ key: 0 }, r.value, { "data-testid": "copy-id" }), {
797
797
  default: m(() => [
798
- U("div", {
798
+ L("div", {
799
799
  class: ke([
800
800
  "uuid-container",
801
801
  e.truncated ? "truncated-uuid" : null,
802
802
  e.useMono ? "mono" : null
803
803
  ])
804
- }, N(d.value), 3)
804
+ }, F(d.value), 3)
805
805
  ]),
806
806
  _: 1
807
- }, 16)) : P("", !0),
808
- (p(), q(Ie(e.tooltip ? "KTooltip" : "div"), nt(c.value, { class: "uuid-icon-wrapper" }), {
807
+ }, 16)) : U("", !0),
808
+ (p(), K(Ce(e.tooltip ? "KTooltip" : "div"), at(c.value, { class: "uuid-icon-wrapper" }), {
809
809
  default: m(() => [
810
- $(h, null, {
811
- default: m(({ copyToClipboard: A }) => [
812
- U("span", {
810
+ $(b, null, {
811
+ default: m(({ copyToClipboard: x }) => [
812
+ L("span", {
813
813
  "data-testid": "copy-to-clipboard",
814
814
  role: "button",
815
815
  tabindex: "0",
816
- onClick: De((v) => y(A), ["stop"])
816
+ onClick: De((_) => g(x), ["stop"])
817
817
  }, [
818
- $(C(Ya), {
818
+ $(C(Wa), {
819
819
  class: "uuid-icon",
820
820
  color: e.iconColor,
821
821
  decorative: !!e.tooltip,
822
- size: C(Wa),
822
+ size: C(Za),
823
823
  title: C(n)("iconTitle")
824
824
  }, null, 8, ["color", "decorative", "size", "title"])
825
- ], 8, Ga)
825
+ ], 8, Qa)
826
826
  ]),
827
827
  _: 1
828
828
  })
@@ -832,15 +832,15 @@ const ie = {
832
832
  ]);
833
833
  };
834
834
  }
835
- }), Xa = (e, t) => {
835
+ }), ei = (e, t) => {
836
836
  const n = e.__vccOpts || e;
837
837
  for (const [a, i] of t)
838
838
  n[a] = i;
839
839
  return n;
840
- }, cn = /* @__PURE__ */ Xa(Qa, [["__scopeId", "data-v-0c07874b"]]), ei = {
840
+ }, cn = /* @__PURE__ */ ei(Xa, [["__scopeId", "data-v-0c07874b"]]), ti = {
841
841
  key: 0,
842
842
  class: "config-card-fieldset-title"
843
- }, ti = /* @__PURE__ */ G({
843
+ }, ni = /* @__PURE__ */ W({
844
844
  __name: "JsonCardItem",
845
845
  props: {
846
846
  item: {
@@ -857,21 +857,21 @@ const ie = {
857
857
  }
858
858
  },
859
859
  setup(e) {
860
- const t = e, { i18n: { t: n } } = ie.useI18n(), { convertKeyToTitle: a } = ie.useStringHelpers(), i = j(() => t.item.key ?? "json-array-item"), o = j(() => t.item.value ?? t.item), r = j(() => {
860
+ const t = e, { i18n: { t: n } } = ie.useI18n(), { convertKeyToTitle: a } = ie.useStringHelpers(), i = I(() => t.item.key ?? "json-array-item"), o = I(() => t.item.value ?? t.item), r = I(() => {
861
861
  const s = JSON.parse(JSON.stringify(o.value));
862
862
  return t.isArrayItem && delete s.name, s;
863
- }), l = j(() => {
863
+ }), l = I(() => {
864
864
  var s;
865
865
  return t.isArrayItem ? (s = o.value) != null && s.name ? a(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
866
866
  });
867
- return (s, c) => (p(), q(Ie(e.isArrayItem ? "fieldset" : "div"), {
867
+ return (s, c) => (p(), K(Ce(e.isArrayItem ? "fieldset" : "div"), {
868
868
  class: ke(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
869
869
  }, {
870
870
  default: m(() => [
871
- e.isArrayItem ? (p(), T("legend", ei, [
872
- U("b", null, N(l.value), 1)
873
- ])) : P("", !0),
874
- (p(!0), T(fe, null, de(Object.keys(r.value), (d, u) => (p(), q(yt, {
871
+ e.isArrayItem ? (p(), T("legend", ti, [
872
+ L("b", null, F(l.value), 1)
873
+ ])) : U("", !0),
874
+ (p(!0), T(fe, null, de(Object.keys(r.value), (d, u) => (p(), K(bt, {
875
875
  key: `${i.value}-property-${u}`,
876
876
  item: {
877
877
  key: d,
@@ -883,12 +883,12 @@ const ie = {
883
883
  _: 1
884
884
  }, 8, ["class"]));
885
885
  }
886
- }), ge = (e, t) => {
886
+ }), ye = (e, t) => {
887
887
  const n = e.__vccOpts || e;
888
888
  for (const [a, i] of t)
889
889
  n[a] = i;
890
890
  return n;
891
- }, un = /* @__PURE__ */ ge(ti, [["__scopeId", "data-v-68ca83ec"]]), ni = /* @__PURE__ */ G({
891
+ }, un = /* @__PURE__ */ ye(ni, [["__scopeId", "data-v-68ca83ec"]]), ai = /* @__PURE__ */ W({
892
892
  __name: "InternalLinkItem",
893
893
  props: {
894
894
  item: {
@@ -900,7 +900,7 @@ const ie = {
900
900
  setup(e) {
901
901
  const { i18n: { t } } = ie.useI18n();
902
902
  return (n, a) => {
903
- const i = F("KButton");
903
+ const i = E("KButton");
904
904
  return p(), T("div", null, [
905
905
  $(i, {
906
906
  appearance: "tertiary",
@@ -908,14 +908,14 @@ const ie = {
908
908
  onClick: a[0] || (a[0] = (o) => n.$emit("navigation-click", e.item))
909
909
  }, {
910
910
  default: m(() => [
911
- z(N(e.item.value || C(t)("baseConfigCard.commonFields.link")), 1)
911
+ P(F(e.item.value || C(t)("baseConfigCard.commonFields.link")), 1)
912
912
  ]),
913
913
  _: 1
914
914
  })
915
915
  ]);
916
916
  };
917
917
  }
918
- }), ai = /* @__PURE__ */ ge(ni, [["__scopeId", "data-v-c96811e5"]]), ii = /* @__PURE__ */ G({
918
+ }), ii = /* @__PURE__ */ ye(ai, [["__scopeId", "data-v-c96811e5"]]), ri = /* @__PURE__ */ W({
919
919
  __name: "StatusBadge",
920
920
  props: {
921
921
  status: {
@@ -926,22 +926,22 @@ const ie = {
926
926
  setup(e) {
927
927
  const { i18n: { t } } = ie.useI18n();
928
928
  return (n, a) => {
929
- const i = F("KBadge");
930
- return p(), q(i, {
929
+ const i = E("KBadge");
930
+ return p(), K(i, {
931
931
  appearance: e.status ? "success" : "neutral"
932
932
  }, {
933
933
  default: m(() => [
934
- z(N(e.status ? C(t)("baseConfigCard.statusBadge.enabledLabel") : C(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
934
+ P(F(e.status ? C(t)("baseConfigCard.statusBadge.enabledLabel") : C(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
935
935
  ]),
936
936
  _: 1
937
937
  }, 8, ["appearance"]);
938
938
  };
939
939
  }
940
- }), ri = "#0044f4", oi = "#e0e4ea", li = "#3a3f51", si = "1px", ci = "20px", ui = { class: "config-card-details-row" }, di = ["data-testid"], pi = ["data-testid"], fi = ["data-testid"], gi = ["data-testid"], yi = { key: 1 }, mi = ["data-testid"], hi = ["data-testid"], vi = ["data-testid"], bi = ["data-testid"], ki = {
940
+ }), oi = "#0044f4", li = "#e0e4ea", si = "#3a3f51", ci = "1px", ui = "20px", di = { class: "config-card-details-row" }, pi = ["data-testid"], fi = ["data-testid"], yi = ["data-testid"], gi = ["data-testid"], mi = { key: 1 }, hi = ["data-testid"], vi = ["data-testid"], bi = ["data-testid"], ki = ["data-testid"], Ci = {
941
941
  name: "ConfigCardItem",
942
- components: { CopyUuid: cn, JsonCardItem: un, StatusBadge: ii, InternalLinkItem: ai }
943
- }, Ci = /* @__PURE__ */ G({
944
- ...ki,
942
+ components: { CopyUuid: cn, JsonCardItem: un, StatusBadge: ri, InternalLinkItem: ii }
943
+ }, wi = /* @__PURE__ */ W({
944
+ ...Ci,
945
945
  props: {
946
946
  item: {
947
947
  type: Object,
@@ -960,13 +960,13 @@ const ie = {
960
960
  },
961
961
  emits: ["navigation-click"],
962
962
  setup(e, { emit: t }) {
963
- Gt((w) => ({
964
- "5ae2770e": d.value ? "none" : `solid ${C(si)} ${C(oi)}`,
963
+ en((w) => ({
964
+ "5ae2770e": d.value ? "none" : `solid ${C(ci)} ${C(li)}`,
965
965
  "4db3977e": c.value && l.value ? "block" : "flex",
966
966
  "1a7c5e02": c.value && l.value ? "100%" : n.slim ? "50%" : "25%",
967
967
  "1a77d24c": c.value && l.value ? "100%" : n.slim ? "50%" : "75%"
968
968
  }));
969
- const n = e, a = t, i = We(), { i18n: { t: o, formatUnixTimeStamp: r } } = ie.useI18n(), l = j(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = j(() => !!(n.item.tooltip || i["label-tooltip"])), c = j(() => n.item.type === Y.Json || n.item.type === Y.JsonArray), d = j(() => n.item.type === Y.JsonArray), u = j(() => {
969
+ const n = e, a = t, i = Ze(), { i18n: { t: o, formatUnixTimeStamp: r } } = ie.useI18n(), l = I(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = I(() => !!(n.item.tooltip || i["label-tooltip"])), c = I(() => n.item.type === Y.Json || n.item.type === Y.JsonArray), d = I(() => n.item.type === Y.JsonArray), u = I(() => {
970
970
  switch (n.item.type) {
971
971
  case Y.ID:
972
972
  return {
@@ -1092,111 +1092,111 @@ const ie = {
1092
1092
  text: n.item.value
1093
1093
  };
1094
1094
  }
1095
- }), y = E(), { isTruncated: f } = ie.useTruncationDetector(y);
1096
- return (w, h) => {
1097
- const A = F("KLabel"), v = F("KBadge"), b = F("KTooltip");
1098
- return p(), T("div", ui, [
1099
- U("div", {
1095
+ }), g = N(), { isTruncated: f } = ie.useTruncationDetector(g);
1096
+ return (w, b) => {
1097
+ const x = E("KLabel"), _ = E("KBadge"), k = E("KTooltip");
1098
+ return p(), T("div", di, [
1099
+ L("div", {
1100
1100
  class: "config-card-details-label",
1101
1101
  "data-testid": `${e.item.key}-label`
1102
1102
  }, [
1103
- H(w.$slots, "label", { item: e.item }, () => [
1104
- $(A, { "tooltip-attributes": { maxWidth: "500px" } }, Se({
1103
+ z(w.$slots, "label", { item: e.item }, () => [
1104
+ $(x, { "tooltip-attributes": { maxWidth: "500px" } }, Ae({
1105
1105
  default: m(() => [
1106
- z(N(e.item.label) + " ", 1)
1106
+ P(F(e.item.label) + " ", 1)
1107
1107
  ]),
1108
1108
  _: 2
1109
1109
  }, [
1110
1110
  s.value ? {
1111
1111
  name: "tooltip",
1112
1112
  fn: m(() => [
1113
- U("div", {
1113
+ L("div", {
1114
1114
  "data-testid": `${e.item.key}-label-tooltip`
1115
1115
  }, [
1116
- H(w.$slots, "label-tooltip", {}, () => [
1117
- z(N(e.item.tooltip), 1)
1116
+ z(w.$slots, "label-tooltip", {}, () => [
1117
+ P(F(e.item.tooltip), 1)
1118
1118
  ], !0)
1119
- ], 8, pi)
1119
+ ], 8, fi)
1120
1120
  ]),
1121
1121
  key: "0"
1122
1122
  } : void 0
1123
1123
  ]), 1024)
1124
1124
  ], !0)
1125
- ], 8, di),
1126
- U("div", {
1125
+ ], 8, pi),
1126
+ L("div", {
1127
1127
  class: "config-card-details-value",
1128
1128
  "data-testid": `${e.item.key}-property-value`
1129
1129
  }, [
1130
- H(w.$slots, e.item.key, {
1130
+ z(w.$slots, e.item.key, {
1131
1131
  rowValue: e.item.value
1132
1132
  }, () => [
1133
- l.value ? (p(), T("div", yi, [
1134
- (p(), q(Ie(u.value.tag), aa(ia(u.value.attrs)), {
1133
+ l.value ? (p(), T("div", mi, [
1134
+ (p(), K(Ce(u.value.tag), ia(ra(u.value.attrs)), {
1135
1135
  default: m(() => [
1136
1136
  u.value.additionalComponent === "KBadge" ? (p(), T("div", {
1137
1137
  key: 0,
1138
1138
  "data-testid": `${e.item.key}-badge-tags`
1139
1139
  }, [
1140
- (p(!0), T(fe, null, de(e.item.value, (I, g) => (p(), q(v, {
1141
- key: `${e.item.key}-badge-tag-${g}`,
1140
+ (p(!0), T(fe, null, de(e.item.value, (S, y) => (p(), K(_, {
1141
+ key: `${e.item.key}-badge-tag-${y}`,
1142
1142
  class: "config-badge",
1143
- "data-testid": `${e.item.key}-badge-tag-${g}`,
1144
- tooltip: I,
1143
+ "data-testid": `${e.item.key}-badge-tag-${y}`,
1144
+ tooltip: S,
1145
1145
  "truncation-tooltip": ""
1146
1146
  }, {
1147
1147
  default: m(() => [
1148
- z(N(I), 1)
1148
+ P(F(S), 1)
1149
1149
  ]),
1150
1150
  _: 2
1151
1151
  }, 1032, ["data-testid", "tooltip"]))), 128))
1152
- ], 8, mi)) : P("", !0),
1152
+ ], 8, hi)) : U("", !0),
1153
1153
  u.value.additionalComponent === "CopyUuid" ? (p(), T("div", {
1154
1154
  key: 1,
1155
1155
  class: "copy-uuid-array",
1156
1156
  "data-testid": `${e.item.key}-copy-uuid-array`
1157
1157
  }, [
1158
- (p(!0), T(fe, null, de(e.item.value, (I, g) => (p(), q(C(cn), nt(u.value.childAttrs, {
1159
- key: `${e.item.key}-copy-uuid-${g}`,
1160
- "data-testid": `${e.item.key}-copy-uuid-${g}`,
1161
- uuid: I
1158
+ (p(!0), T(fe, null, de(e.item.value, (S, y) => (p(), K(C(cn), at(u.value.childAttrs, {
1159
+ key: `${e.item.key}-copy-uuid-${y}`,
1160
+ "data-testid": `${e.item.key}-copy-uuid-${y}`,
1161
+ uuid: S
1162
1162
  }), null, 16, ["data-testid", "uuid"]))), 128))
1163
- ], 8, hi)) : u.value.additionalComponent === "KMethodBadge" ? (p(), T("div", {
1163
+ ], 8, vi)) : u.value.additionalComponent === "KMethodBadge" ? (p(), T("div", {
1164
1164
  key: 2,
1165
1165
  class: "method-badge-array",
1166
1166
  "data-testid": `${e.item.key}-badge-methods`
1167
1167
  }, [
1168
- (p(!0), T(fe, null, de(e.item.value, (I, g) => (p(), q(v, {
1169
- key: `${e.item.key}-badge-method-${g}`,
1170
- appearance: Object.values(C(la)).includes(I.toLowerCase()) ? I.toLowerCase() : "custom",
1168
+ (p(!0), T(fe, null, de(e.item.value, (S, y) => (p(), K(_, {
1169
+ key: `${e.item.key}-badge-method-${y}`,
1170
+ appearance: Object.values(C(sa)).includes(S.toLowerCase()) ? S.toLowerCase() : "custom",
1171
1171
  class: "config-badge",
1172
- "data-testid": `${e.item.key}-badge-method-${g}`
1172
+ "data-testid": `${e.item.key}-badge-method-${y}`
1173
1173
  }, {
1174
1174
  default: m(() => [
1175
- z(N(I), 1)
1175
+ P(F(S), 1)
1176
1176
  ]),
1177
1177
  _: 2
1178
1178
  }, 1032, ["appearance", "data-testid"]))), 128))
1179
- ], 8, vi)) : P("", !0),
1179
+ ], 8, bi)) : U("", !0),
1180
1180
  u.value.additionalComponent === "JsonCardItem" ? (p(), T("div", {
1181
1181
  key: 3,
1182
1182
  "data-testid": `${n.item.key}-json-array-content`
1183
1183
  }, [
1184
- (p(!0), T(fe, null, de(e.item.value, (I, g) => (p(), q(un, {
1185
- key: `json-array-item-${g}`,
1186
- index: g,
1184
+ (p(!0), T(fe, null, de(e.item.value, (S, y) => (p(), K(un, {
1185
+ key: `json-array-item-${y}`,
1186
+ index: y,
1187
1187
  "is-array-item": "",
1188
- item: I
1188
+ item: S
1189
1189
  }, null, 8, ["index", "item"]))), 128))
1190
- ], 8, bi)) : (p(), q(b, {
1190
+ ], 8, ki)) : (p(), K(k, {
1191
1191
  key: 4,
1192
1192
  text: C(f) ? e.item.value : ""
1193
1193
  }, {
1194
1194
  default: m(() => [
1195
- U("span", {
1195
+ L("span", {
1196
1196
  ref_key: "textContent",
1197
- ref: y,
1197
+ ref: g,
1198
1198
  class: ke(["attrs-data-text", { truncated: e.truncated }])
1199
- }, N(u.value.text), 3)
1199
+ }, F(u.value.text), 3)
1200
1200
  ]),
1201
1201
  _: 1
1202
1202
  }, 8, ["text"]))
@@ -1208,14 +1208,14 @@ const ie = {
1208
1208
  "data-testid": `${e.item.key}-no-value`
1209
1209
  }, " – ", 8, gi))
1210
1210
  ], !0)
1211
- ], 8, fi)
1211
+ ], 8, yi)
1212
1212
  ]);
1213
1213
  };
1214
1214
  }
1215
- }), yt = /* @__PURE__ */ ge(Ci, [["__scopeId", "data-v-f65fc52c"]]), wi = { class: "json-config" }, Si = {
1215
+ }), bt = /* @__PURE__ */ ye(wi, [["__scopeId", "data-v-f65fc52c"]]), Si = { class: "json-config" }, Ai = {
1216
1216
  key: 0,
1217
1217
  class: "json-endpoint"
1218
- }, dn = /* @__PURE__ */ G({
1218
+ }, dn = /* @__PURE__ */ W({
1219
1219
  __name: "JsonCodeBlock",
1220
1220
  props: {
1221
1221
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1243,10 +1243,10 @@ const ie = {
1243
1243
  }
1244
1244
  },
1245
1245
  setup(e) {
1246
- Gt((i) => ({
1246
+ en((i) => ({
1247
1247
  "2d178975": `${a.value}ch`
1248
1248
  }));
1249
- const t = e, n = j(() => t.jsonRecord), a = j(() => {
1249
+ const t = e, n = I(() => t.jsonRecord), a = I(() => {
1250
1250
  var i;
1251
1251
  if (!t.fetcherUrl)
1252
1252
  return 0;
@@ -1255,14 +1255,14 @@ const ie = {
1255
1255
  });
1256
1256
  return (i, o) => {
1257
1257
  var r;
1258
- const l = F("KBadge"), s = F("KCodeBlock");
1259
- return p(), T("div", wi, [
1260
- t.fetcherUrl && (r = t.config) != null && r.jsonYamlFormsEnabled ? (p(), T("div", Si, [
1258
+ const l = E("KBadge"), s = E("KCodeBlock");
1259
+ return p(), T("div", Si, [
1260
+ t.fetcherUrl && (r = t.config) != null && r.jsonYamlFormsEnabled ? (p(), T("div", Ai, [
1261
1261
  $(l, {
1262
1262
  appearance: t.requestMethod
1263
1263
  }, {
1264
1264
  default: m(() => [
1265
- z(N(t.requestMethod), 1)
1265
+ P(F(t.requestMethod), 1)
1266
1266
  ]),
1267
1267
  _: 1
1268
1268
  }, 8, ["appearance"]),
@@ -1273,15 +1273,15 @@ const ie = {
1273
1273
  language: "json",
1274
1274
  theme: "dark"
1275
1275
  }, null, 8, ["code"])
1276
- ])) : P("", !0),
1277
- t.jsonRecord ? (p(), q(s, {
1276
+ ])) : U("", !0),
1277
+ t.jsonRecord ? (p(), K(s, {
1278
1278
  key: 1,
1279
1279
  id: "json-codeblock",
1280
1280
  class: ke({ "json-content": t.fetcherUrl }),
1281
1281
  code: JSON.stringify(n.value, null, 2),
1282
1282
  language: "json",
1283
1283
  theme: "dark"
1284
- }, null, 8, ["class", "code"])) : P("", !0)
1284
+ }, null, 8, ["class", "code"])) : U("", !0)
1285
1285
  ]);
1286
1286
  };
1287
1287
  }
@@ -1290,20 +1290,20 @@ const ie = {
1290
1290
  function pn(e) {
1291
1291
  return typeof e > "u" || e === null;
1292
1292
  }
1293
- function Ai(e) {
1293
+ function xi(e) {
1294
1294
  return typeof e == "object" && e !== null;
1295
1295
  }
1296
1296
  function Ii(e) {
1297
1297
  return Array.isArray(e) ? e : pn(e) ? [] : [e];
1298
1298
  }
1299
- function xi(e, t) {
1299
+ function _i(e, t) {
1300
1300
  var n, a, i, o;
1301
1301
  if (t)
1302
1302
  for (o = Object.keys(t), n = 0, a = o.length; n < a; n += 1)
1303
1303
  i = o[n], e[i] = t[i];
1304
1304
  return e;
1305
1305
  }
1306
- function _i(e, t) {
1306
+ function Ti(e, t) {
1307
1307
  var n = "", a;
1308
1308
  for (a = 0; a < t; a += 1)
1309
1309
  n += e;
@@ -1312,13 +1312,13 @@ function _i(e, t) {
1312
1312
  function ji(e) {
1313
1313
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1314
1314
  }
1315
- var Ti = pn, $i = Ai, Oi = Ii, Mi = _i, Ei = ji, Fi = xi, ne = {
1316
- isNothing: Ti,
1317
- isObject: $i,
1318
- toArray: Oi,
1319
- repeat: Mi,
1320
- isNegativeZero: Ei,
1321
- extend: Fi
1315
+ var $i = pn, Oi = xi, Mi = Ii, Fi = Ti, Ni = ji, Ei = _i, ne = {
1316
+ isNothing: $i,
1317
+ isObject: Oi,
1318
+ toArray: Mi,
1319
+ repeat: Fi,
1320
+ isNegativeZero: Ni,
1321
+ extend: Ei
1322
1322
  };
1323
1323
  function fn(e, t) {
1324
1324
  var n = "", a = e.reason || "(unknown reason)";
@@ -1335,7 +1335,7 @@ Ke.prototype.toString = function(e) {
1335
1335
  return this.name + ": " + fn(this, e);
1336
1336
  };
1337
1337
  var ce = Ke;
1338
- function Xe(e, t, n, a, i) {
1338
+ function et(e, t, n, a, i) {
1339
1339
  var o = "", r = "", l = Math.floor(i / 2) - 1;
1340
1340
  return a - t > l && (o = " ... ", t = a - l + o.length), n - a > l && (r = " ...", n = a + l - r.length), {
1341
1341
  str: o + e.slice(t, n).replace(/\t/g, "→") + r,
@@ -1343,10 +1343,10 @@ function Xe(e, t, n, a, i) {
1343
1343
  // relative position
1344
1344
  };
1345
1345
  }
1346
- function et(e, t) {
1346
+ function tt(e, t) {
1347
1347
  return ne.repeat(" ", t - e.length) + e;
1348
1348
  }
1349
- function Ni(e, t) {
1349
+ function Ki(e, t) {
1350
1350
  if (t = Object.create(t || null), !e.buffer)
1351
1351
  return null;
1352
1352
  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);
@@ -1355,28 +1355,28 @@ function Ni(e, t) {
1355
1355
  r < 0 && (r = a.length - 1);
1356
1356
  var l = "", s, c, d = Math.min(e.line + t.linesAfter, i.length).toString().length, u = t.maxLength - (t.indent + d + 3);
1357
1357
  for (s = 1; s <= t.linesBefore && !(r - s < 0); s++)
1358
- c = Xe(
1358
+ c = et(
1359
1359
  e.buffer,
1360
1360
  a[r - s],
1361
1361
  i[r - s],
1362
1362
  e.position - (a[r] - a[r - s]),
1363
1363
  u
1364
- ), l = ne.repeat(" ", t.indent) + et((e.line - s + 1).toString(), d) + " | " + c.str + `
1364
+ ), l = ne.repeat(" ", t.indent) + tt((e.line - s + 1).toString(), d) + " | " + c.str + `
1365
1365
  ` + l;
1366
- for (c = Xe(e.buffer, a[r], i[r], e.position, u), l += ne.repeat(" ", t.indent) + et((e.line + 1).toString(), d) + " | " + c.str + `
1366
+ for (c = et(e.buffer, a[r], i[r], e.position, u), l += ne.repeat(" ", t.indent) + tt((e.line + 1).toString(), d) + " | " + c.str + `
1367
1367
  `, l += ne.repeat("-", t.indent + d + 3 + c.pos) + `^
1368
1368
  `, s = 1; s <= t.linesAfter && !(r + s >= i.length); s++)
1369
- c = Xe(
1369
+ c = et(
1370
1370
  e.buffer,
1371
1371
  a[r + s],
1372
1372
  i[r + s],
1373
1373
  e.position - (a[r] - a[r + s]),
1374
1374
  u
1375
- ), l += ne.repeat(" ", t.indent) + et((e.line + s + 1).toString(), d) + " | " + c.str + `
1375
+ ), l += ne.repeat(" ", t.indent) + tt((e.line + s + 1).toString(), d) + " | " + c.str + `
1376
1376
  `;
1377
1377
  return l.replace(/\n$/, "");
1378
1378
  }
1379
- var Ki = Ni, qi = [
1379
+ var qi = Ki, Bi = [
1380
1380
  "kind",
1381
1381
  "multi",
1382
1382
  "resolve",
@@ -1387,12 +1387,12 @@ var Ki = Ni, qi = [
1387
1387
  "representName",
1388
1388
  "defaultStyle",
1389
1389
  "styleAliases"
1390
- ], Bi = [
1390
+ ], Li = [
1391
1391
  "scalar",
1392
1392
  "sequence",
1393
1393
  "mapping"
1394
1394
  ];
1395
- function Li(e) {
1395
+ function Ri(e) {
1396
1396
  var t = {};
1397
1397
  return e !== null && Object.keys(e).forEach(function(n) {
1398
1398
  e[n].forEach(function(a) {
@@ -1402,17 +1402,17 @@ function Li(e) {
1402
1402
  }
1403
1403
  function Ui(e, t) {
1404
1404
  if (t = t || {}, Object.keys(t).forEach(function(n) {
1405
- if (qi.indexOf(n) === -1)
1405
+ if (Bi.indexOf(n) === -1)
1406
1406
  throw new ce('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
1407
1407
  }), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
1408
1408
  return !0;
1409
1409
  }, this.construct = t.construct || function(n) {
1410
1410
  return n;
1411
- }, 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 = Li(t.styleAliases || null), Bi.indexOf(this.kind) === -1)
1411
+ }, 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 = Ri(t.styleAliases || null), Li.indexOf(this.kind) === -1)
1412
1412
  throw new ce('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1413
1413
  }
1414
1414
  var oe = Ui;
1415
- function Ft(e, t) {
1415
+ function Bt(e, t) {
1416
1416
  var n = [];
1417
1417
  return e[t].forEach(function(a) {
1418
1418
  var i = n.length;
@@ -1421,7 +1421,7 @@ function Ft(e, t) {
1421
1421
  }), n[i] = a;
1422
1422
  }), n;
1423
1423
  }
1424
- function Ri() {
1424
+ function Di() {
1425
1425
  var e = {
1426
1426
  scalar: {},
1427
1427
  sequence: {},
@@ -1441,10 +1441,10 @@ function Ri() {
1441
1441
  arguments[t].forEach(a);
1442
1442
  return e;
1443
1443
  }
1444
- function it(e) {
1444
+ function rt(e) {
1445
1445
  return this.extend(e);
1446
1446
  }
1447
- it.prototype.extend = function(e) {
1447
+ rt.prototype.extend = function(e) {
1448
1448
  var t = [], n = [];
1449
1449
  if (e instanceof oe)
1450
1450
  n.push(e);
@@ -1465,10 +1465,10 @@ it.prototype.extend = function(e) {
1465
1465
  if (!(i instanceof oe))
1466
1466
  throw new ce("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1467
1467
  });
1468
- var a = Object.create(it.prototype);
1469
- return a.implicit = (this.implicit || []).concat(t), a.explicit = (this.explicit || []).concat(n), a.compiledImplicit = Ft(a, "implicit"), a.compiledExplicit = Ft(a, "explicit"), a.compiledTypeMap = Ri(a.compiledImplicit, a.compiledExplicit), a;
1468
+ var a = Object.create(rt.prototype);
1469
+ return a.implicit = (this.implicit || []).concat(t), a.explicit = (this.explicit || []).concat(n), a.compiledImplicit = Bt(a, "implicit"), a.compiledExplicit = Bt(a, "explicit"), a.compiledTypeMap = Di(a.compiledImplicit, a.compiledExplicit), a;
1470
1470
  };
1471
- var gn = it, yn = new oe("tag:yaml.org,2002:str", {
1471
+ var yn = rt, gn = new oe("tag:yaml.org,2002:str", {
1472
1472
  kind: "scalar",
1473
1473
  construct: function(e) {
1474
1474
  return e !== null ? e : "";
@@ -1483,30 +1483,30 @@ var gn = it, yn = new oe("tag:yaml.org,2002:str", {
1483
1483
  construct: function(e) {
1484
1484
  return e !== null ? e : {};
1485
1485
  }
1486
- }), vn = new gn({
1486
+ }), vn = new yn({
1487
1487
  explicit: [
1488
- yn,
1488
+ gn,
1489
1489
  mn,
1490
1490
  hn
1491
1491
  ]
1492
1492
  });
1493
- function Di(e) {
1493
+ function Vi(e) {
1494
1494
  if (e === null)
1495
1495
  return !0;
1496
1496
  var t = e.length;
1497
1497
  return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
1498
1498
  }
1499
- function Vi() {
1499
+ function Pi() {
1500
1500
  return null;
1501
1501
  }
1502
- function Pi(e) {
1502
+ function zi(e) {
1503
1503
  return e === null;
1504
1504
  }
1505
1505
  var bn = new oe("tag:yaml.org,2002:null", {
1506
1506
  kind: "scalar",
1507
- resolve: Di,
1508
- construct: Vi,
1509
- predicate: Pi,
1507
+ resolve: Vi,
1508
+ construct: Pi,
1509
+ predicate: zi,
1510
1510
  represent: {
1511
1511
  canonical: function() {
1512
1512
  return "~";
@@ -1526,23 +1526,23 @@ var bn = new oe("tag:yaml.org,2002:null", {
1526
1526
  },
1527
1527
  defaultStyle: "lowercase"
1528
1528
  });
1529
- function zi(e) {
1529
+ function Hi(e) {
1530
1530
  if (e === null)
1531
1531
  return !1;
1532
1532
  var t = e.length;
1533
1533
  return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
1534
1534
  }
1535
- function Hi(e) {
1535
+ function Ji(e) {
1536
1536
  return e === "true" || e === "True" || e === "TRUE";
1537
1537
  }
1538
- function Ji(e) {
1538
+ function Yi(e) {
1539
1539
  return Object.prototype.toString.call(e) === "[object Boolean]";
1540
1540
  }
1541
1541
  var kn = new oe("tag:yaml.org,2002:bool", {
1542
1542
  kind: "scalar",
1543
- resolve: zi,
1544
- construct: Hi,
1545
- predicate: Ji,
1543
+ resolve: Hi,
1544
+ construct: Ji,
1545
+ predicate: Yi,
1546
1546
  represent: {
1547
1547
  lowercase: function(e) {
1548
1548
  return e ? "true" : "false";
@@ -1556,16 +1556,16 @@ var kn = new oe("tag:yaml.org,2002:bool", {
1556
1556
  },
1557
1557
  defaultStyle: "lowercase"
1558
1558
  });
1559
- function Yi(e) {
1559
+ function Wi(e) {
1560
1560
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1561
1561
  }
1562
- function Wi(e) {
1562
+ function Zi(e) {
1563
1563
  return 48 <= e && e <= 55;
1564
1564
  }
1565
- function Zi(e) {
1565
+ function Gi(e) {
1566
1566
  return 48 <= e && e <= 57;
1567
1567
  }
1568
- function Gi(e) {
1568
+ function Qi(e) {
1569
1569
  if (e === null)
1570
1570
  return !1;
1571
1571
  var t = e.length, n = 0, a = !1, i;
@@ -1586,7 +1586,7 @@ function Gi(e) {
1586
1586
  if (i === "x") {
1587
1587
  for (n++; n < t; n++)
1588
1588
  if (i = e[n], i !== "_") {
1589
- if (!Yi(e.charCodeAt(n)))
1589
+ if (!Wi(e.charCodeAt(n)))
1590
1590
  return !1;
1591
1591
  a = !0;
1592
1592
  }
@@ -1595,7 +1595,7 @@ function Gi(e) {
1595
1595
  if (i === "o") {
1596
1596
  for (n++; n < t; n++)
1597
1597
  if (i = e[n], i !== "_") {
1598
- if (!Wi(e.charCodeAt(n)))
1598
+ if (!Zi(e.charCodeAt(n)))
1599
1599
  return !1;
1600
1600
  a = !0;
1601
1601
  }
@@ -1606,13 +1606,13 @@ function Gi(e) {
1606
1606
  return !1;
1607
1607
  for (; n < t; n++)
1608
1608
  if (i = e[n], i !== "_") {
1609
- if (!Zi(e.charCodeAt(n)))
1609
+ if (!Gi(e.charCodeAt(n)))
1610
1610
  return !1;
1611
1611
  a = !0;
1612
1612
  }
1613
1613
  return !(!a || i === "_");
1614
1614
  }
1615
- function Qi(e) {
1615
+ function Xi(e) {
1616
1616
  var t = e, n = 1, a;
1617
1617
  if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), a = t[0], (a === "-" || a === "+") && (a === "-" && (n = -1), t = t.slice(1), a = t[0]), t === "0")
1618
1618
  return 0;
@@ -1626,14 +1626,14 @@ function Qi(e) {
1626
1626
  }
1627
1627
  return n * parseInt(t, 10);
1628
1628
  }
1629
- function Xi(e) {
1629
+ function er(e) {
1630
1630
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ne.isNegativeZero(e);
1631
1631
  }
1632
1632
  var Cn = new oe("tag:yaml.org,2002:int", {
1633
1633
  kind: "scalar",
1634
- resolve: Gi,
1635
- construct: Qi,
1636
- predicate: Xi,
1634
+ resolve: Qi,
1635
+ construct: Xi,
1636
+ predicate: er,
1637
1637
  represent: {
1638
1638
  binary: function(e) {
1639
1639
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1656,21 +1656,21 @@ var Cn = new oe("tag:yaml.org,2002:int", {
1656
1656
  decimal: [10, "dec"],
1657
1657
  hexadecimal: [16, "hex"]
1658
1658
  }
1659
- }), er = new RegExp(
1659
+ }), tr = new RegExp(
1660
1660
  // 2.5e4, 2.5 and integers
1661
1661
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
1662
1662
  );
1663
- function tr(e) {
1664
- return !(e === null || !er.test(e) || // Quick hack to not allow integers end with `_`
1663
+ function nr(e) {
1664
+ return !(e === null || !tr.test(e) || // Quick hack to not allow integers end with `_`
1665
1665
  // Probably should update regexp & check speed
1666
1666
  e[e.length - 1] === "_");
1667
1667
  }
1668
- function nr(e) {
1668
+ function ar(e) {
1669
1669
  var t, n;
1670
1670
  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);
1671
1671
  }
1672
- var ar = /^[-+]?[0-9]+e/;
1673
- function ir(e, t) {
1672
+ var ir = /^[-+]?[0-9]+e/;
1673
+ function rr(e, t) {
1674
1674
  var n;
1675
1675
  if (isNaN(e))
1676
1676
  switch (t) {
@@ -1701,17 +1701,17 @@ function ir(e, t) {
1701
1701
  }
1702
1702
  else if (ne.isNegativeZero(e))
1703
1703
  return "-0.0";
1704
- return n = e.toString(10), ar.test(n) ? n.replace("e", ".e") : n;
1704
+ return n = e.toString(10), ir.test(n) ? n.replace("e", ".e") : n;
1705
1705
  }
1706
- function rr(e) {
1706
+ function or(e) {
1707
1707
  return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ne.isNegativeZero(e));
1708
1708
  }
1709
1709
  var wn = new oe("tag:yaml.org,2002:float", {
1710
1710
  kind: "scalar",
1711
- resolve: tr,
1712
- construct: nr,
1713
- predicate: rr,
1714
- represent: ir,
1711
+ resolve: nr,
1712
+ construct: ar,
1713
+ predicate: or,
1714
+ represent: rr,
1715
1715
  defaultStyle: "lowercase"
1716
1716
  }), Sn = vn.extend({
1717
1717
  implicit: [
@@ -1720,17 +1720,17 @@ var wn = new oe("tag:yaml.org,2002:float", {
1720
1720
  Cn,
1721
1721
  wn
1722
1722
  ]
1723
- }), An = Sn, In = new RegExp(
1723
+ }), An = Sn, xn = new RegExp(
1724
1724
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1725
- ), xn = new RegExp(
1725
+ ), In = new RegExp(
1726
1726
  "^([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]))?))?$"
1727
1727
  );
1728
- function or(e) {
1729
- return e === null ? !1 : In.exec(e) !== null || xn.exec(e) !== null;
1730
- }
1731
1728
  function lr(e) {
1732
- var t, n, a, i, o, r, l, s = 0, c = null, d, u, y;
1733
- if (t = In.exec(e), t === null && (t = xn.exec(e)), t === null)
1729
+ return e === null ? !1 : xn.exec(e) !== null || In.exec(e) !== null;
1730
+ }
1731
+ function sr(e) {
1732
+ var t, n, a, i, o, r, l, s = 0, c = null, d, u, g;
1733
+ if (t = xn.exec(e), t === null && (t = In.exec(e)), t === null)
1734
1734
  throw new Error("Date resolve error");
1735
1735
  if (n = +t[1], a = +t[2] - 1, i = +t[3], !t[4])
1736
1736
  return new Date(Date.UTC(n, a, i));
@@ -1739,30 +1739,30 @@ function lr(e) {
1739
1739
  s += "0";
1740
1740
  s = +s;
1741
1741
  }
1742
- return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)), y = new Date(Date.UTC(n, a, i, o, r, l, s)), c && y.setTime(y.getTime() - c), y;
1742
+ return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)), g = new Date(Date.UTC(n, a, i, o, r, l, s)), c && g.setTime(g.getTime() - c), g;
1743
1743
  }
1744
- function sr(e) {
1744
+ function cr(e) {
1745
1745
  return e.toISOString();
1746
1746
  }
1747
1747
  var _n = new oe("tag:yaml.org,2002:timestamp", {
1748
1748
  kind: "scalar",
1749
- resolve: or,
1750
- construct: lr,
1749
+ resolve: lr,
1750
+ construct: sr,
1751
1751
  instanceOf: Date,
1752
- represent: sr
1752
+ represent: cr
1753
1753
  });
1754
- function cr(e) {
1754
+ function ur(e) {
1755
1755
  return e === "<<" || e === null;
1756
1756
  }
1757
- var jn = new oe("tag:yaml.org,2002:merge", {
1757
+ var Tn = new oe("tag:yaml.org,2002:merge", {
1758
1758
  kind: "scalar",
1759
- resolve: cr
1760
- }), mt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1759
+ resolve: ur
1760
+ }), kt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1761
1761
  \r`;
1762
- function ur(e) {
1762
+ function dr(e) {
1763
1763
  if (e === null)
1764
1764
  return !1;
1765
- var t, n, a = 0, i = e.length, o = mt;
1765
+ var t, n, a = 0, i = e.length, o = kt;
1766
1766
  for (n = 0; n < i; n++)
1767
1767
  if (t = o.indexOf(e.charAt(n)), !(t > 64)) {
1768
1768
  if (t < 0)
@@ -1771,34 +1771,34 @@ function ur(e) {
1771
1771
  }
1772
1772
  return a % 8 === 0;
1773
1773
  }
1774
- function dr(e) {
1775
- var t, n, a = e.replace(/[\r\n=]/g, ""), i = a.length, o = mt, r = 0, l = [];
1774
+ function pr(e) {
1775
+ var t, n, a = e.replace(/[\r\n=]/g, ""), i = a.length, o = kt, r = 0, l = [];
1776
1776
  for (t = 0; t < i; t++)
1777
1777
  t % 4 === 0 && t && (l.push(r >> 16 & 255), l.push(r >> 8 & 255), l.push(r & 255)), r = r << 6 | o.indexOf(a.charAt(t));
1778
1778
  return n = i % 4 * 6, n === 0 ? (l.push(r >> 16 & 255), l.push(r >> 8 & 255), l.push(r & 255)) : n === 18 ? (l.push(r >> 10 & 255), l.push(r >> 2 & 255)) : n === 12 && l.push(r >> 4 & 255), new Uint8Array(l);
1779
1779
  }
1780
- function pr(e) {
1781
- var t = "", n = 0, a, i, o = e.length, r = mt;
1780
+ function fr(e) {
1781
+ var t = "", n = 0, a, i, o = e.length, r = kt;
1782
1782
  for (a = 0; a < o; a++)
1783
1783
  a % 3 === 0 && a && (t += r[n >> 18 & 63], t += r[n >> 12 & 63], t += r[n >> 6 & 63], t += r[n & 63]), n = (n << 8) + e[a];
1784
1784
  return i = o % 3, i === 0 ? (t += r[n >> 18 & 63], t += r[n >> 12 & 63], t += r[n >> 6 & 63], t += r[n & 63]) : i === 2 ? (t += r[n >> 10 & 63], t += r[n >> 4 & 63], t += r[n << 2 & 63], t += r[64]) : i === 1 && (t += r[n >> 2 & 63], t += r[n << 4 & 63], t += r[64], t += r[64]), t;
1785
1785
  }
1786
- function fr(e) {
1786
+ function yr(e) {
1787
1787
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1788
1788
  }
1789
- var Tn = new oe("tag:yaml.org,2002:binary", {
1789
+ var jn = new oe("tag:yaml.org,2002:binary", {
1790
1790
  kind: "scalar",
1791
- resolve: ur,
1792
- construct: dr,
1793
- predicate: fr,
1794
- represent: pr
1795
- }), gr = Object.prototype.hasOwnProperty, yr = Object.prototype.toString;
1796
- function mr(e) {
1791
+ resolve: dr,
1792
+ construct: pr,
1793
+ predicate: yr,
1794
+ represent: fr
1795
+ }), gr = Object.prototype.hasOwnProperty, mr = Object.prototype.toString;
1796
+ function hr(e) {
1797
1797
  if (e === null)
1798
1798
  return !0;
1799
1799
  var t = [], n, a, i, o, r, l = e;
1800
1800
  for (n = 0, a = l.length; n < a; n += 1) {
1801
- if (i = l[n], r = !1, yr.call(i) !== "[object Object]")
1801
+ if (i = l[n], r = !1, mr.call(i) !== "[object Object]")
1802
1802
  return !1;
1803
1803
  for (o in i)
1804
1804
  if (gr.call(i, o))
@@ -1815,26 +1815,26 @@ function mr(e) {
1815
1815
  }
1816
1816
  return !0;
1817
1817
  }
1818
- function hr(e) {
1818
+ function vr(e) {
1819
1819
  return e !== null ? e : [];
1820
1820
  }
1821
1821
  var $n = new oe("tag:yaml.org,2002:omap", {
1822
1822
  kind: "sequence",
1823
- resolve: mr,
1824
- construct: hr
1825
- }), vr = Object.prototype.toString;
1826
- function br(e) {
1823
+ resolve: hr,
1824
+ construct: vr
1825
+ }), br = Object.prototype.toString;
1826
+ function kr(e) {
1827
1827
  if (e === null)
1828
1828
  return !0;
1829
1829
  var t, n, a, i, o, r = e;
1830
1830
  for (o = new Array(r.length), t = 0, n = r.length; t < n; t += 1) {
1831
- if (a = r[t], vr.call(a) !== "[object Object]" || (i = Object.keys(a), i.length !== 1))
1831
+ if (a = r[t], br.call(a) !== "[object Object]" || (i = Object.keys(a), i.length !== 1))
1832
1832
  return !1;
1833
1833
  o[t] = [i[0], a[i[0]]];
1834
1834
  }
1835
1835
  return !0;
1836
1836
  }
1837
- function kr(e) {
1837
+ function Cr(e) {
1838
1838
  if (e === null)
1839
1839
  return [];
1840
1840
  var t, n, a, i, o, r = e;
@@ -1844,67 +1844,67 @@ function kr(e) {
1844
1844
  }
1845
1845
  var On = new oe("tag:yaml.org,2002:pairs", {
1846
1846
  kind: "sequence",
1847
- resolve: br,
1848
- construct: kr
1849
- }), Cr = Object.prototype.hasOwnProperty;
1850
- function wr(e) {
1847
+ resolve: kr,
1848
+ construct: Cr
1849
+ }), wr = Object.prototype.hasOwnProperty;
1850
+ function Sr(e) {
1851
1851
  if (e === null)
1852
1852
  return !0;
1853
1853
  var t, n = e;
1854
1854
  for (t in n)
1855
- if (Cr.call(n, t) && n[t] !== null)
1855
+ if (wr.call(n, t) && n[t] !== null)
1856
1856
  return !1;
1857
1857
  return !0;
1858
1858
  }
1859
- function Sr(e) {
1859
+ function Ar(e) {
1860
1860
  return e !== null ? e : {};
1861
1861
  }
1862
1862
  var Mn = new oe("tag:yaml.org,2002:set", {
1863
1863
  kind: "mapping",
1864
- resolve: wr,
1865
- construct: Sr
1866
- }), ht = An.extend({
1864
+ resolve: Sr,
1865
+ construct: Ar
1866
+ }), Ct = An.extend({
1867
1867
  implicit: [
1868
1868
  _n,
1869
- jn
1869
+ Tn
1870
1870
  ],
1871
1871
  explicit: [
1872
- Tn,
1872
+ jn,
1873
1873
  $n,
1874
1874
  On,
1875
1875
  Mn
1876
1876
  ]
1877
- }), Ce = Object.prototype.hasOwnProperty, Pe = 1, En = 2, Fn = 3, ze = 4, tt = 1, Ar = 2, Nt = 3, Ir = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, xr = /[\x85\u2028\u2029]/, _r = /[,\[\]\{\}]/, Nn = /^(?:!|!!|![a-z\-]+!)$/i, Kn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1878
- function Kt(e) {
1877
+ }), we = Object.prototype.hasOwnProperty, Pe = 1, Fn = 2, Nn = 3, ze = 4, nt = 1, xr = 2, Lt = 3, Ir = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, _r = /[\x85\u2028\u2029]/, Tr = /[,\[\]\{\}]/, En = /^(?:!|!!|![a-z\-]+!)$/i, Kn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1878
+ function Rt(e) {
1879
1879
  return Object.prototype.toString.call(e);
1880
1880
  }
1881
1881
  function me(e) {
1882
1882
  return e === 10 || e === 13;
1883
1883
  }
1884
- function Ae(e) {
1884
+ function xe(e) {
1885
1885
  return e === 9 || e === 32;
1886
1886
  }
1887
1887
  function ue(e) {
1888
1888
  return e === 9 || e === 32 || e === 10 || e === 13;
1889
1889
  }
1890
- function Te(e) {
1890
+ function Oe(e) {
1891
1891
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1892
1892
  }
1893
1893
  function jr(e) {
1894
1894
  var t;
1895
1895
  return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
1896
1896
  }
1897
- function Tr(e) {
1897
+ function $r(e) {
1898
1898
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1899
1899
  }
1900
- function $r(e) {
1900
+ function Or(e) {
1901
1901
  return 48 <= e && e <= 57 ? e - 48 : -1;
1902
1902
  }
1903
- function qt(e) {
1903
+ function Ut(e) {
1904
1904
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1905
1905
  ` : 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" : "";
1906
1906
  }
1907
- function Or(e) {
1907
+ function Mr(e) {
1908
1908
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
1909
1909
  (e - 65536 >> 10) + 55296,
1910
1910
  (e - 65536 & 1023) + 56320
@@ -1912,9 +1912,9 @@ function Or(e) {
1912
1912
  }
1913
1913
  var qn = new Array(256), Bn = new Array(256);
1914
1914
  for (var _e = 0; _e < 256; _e++)
1915
- qn[_e] = qt(_e) ? 1 : 0, Bn[_e] = qt(_e);
1916
- function Mr(e, t) {
1917
- this.input = e, this.filename = t.filename || null, this.schema = t.schema || ht, 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 = [];
1915
+ qn[_e] = Ut(_e) ? 1 : 0, Bn[_e] = Ut(_e);
1916
+ function Fr(e, t) {
1917
+ this.input = e, this.filename = t.filename || null, this.schema = t.schema || Ct, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
1918
1918
  }
1919
1919
  function Ln(e, t) {
1920
1920
  var n = {
@@ -1925,26 +1925,26 @@ function Ln(e, t) {
1925
1925
  line: e.line,
1926
1926
  column: e.position - e.lineStart
1927
1927
  };
1928
- return n.snippet = Ki(n), new ce(t, n);
1928
+ return n.snippet = qi(n), new ce(t, n);
1929
1929
  }
1930
- function _(e, t) {
1930
+ function j(e, t) {
1931
1931
  throw Ln(e, t);
1932
1932
  }
1933
1933
  function He(e, t) {
1934
1934
  e.onWarning && e.onWarning.call(null, Ln(e, t));
1935
1935
  }
1936
- var Bt = {
1936
+ var Dt = {
1937
1937
  YAML: function(e, t, n) {
1938
1938
  var a, i, o;
1939
- e.version !== null && _(e, "duplication of %YAML directive"), n.length !== 1 && _(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), a === null && _(e, "ill-formed argument of the YAML directive"), i = parseInt(a[1], 10), o = parseInt(a[2], 10), i !== 1 && _(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = o < 2, o !== 1 && o !== 2 && He(e, "unsupported YAML version of the document");
1939
+ e.version !== null && j(e, "duplication of %YAML directive"), n.length !== 1 && j(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), a === null && j(e, "ill-formed argument of the YAML directive"), i = parseInt(a[1], 10), o = parseInt(a[2], 10), i !== 1 && j(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = o < 2, o !== 1 && o !== 2 && He(e, "unsupported YAML version of the document");
1940
1940
  },
1941
1941
  TAG: function(e, t, n) {
1942
1942
  var a, i;
1943
- n.length !== 2 && _(e, "TAG directive accepts exactly two arguments"), a = n[0], i = n[1], Nn.test(a) || _(e, "ill-formed tag handle (first argument) of the TAG directive"), Ce.call(e.tagMap, a) && _(e, 'there is a previously declared suffix for "' + a + '" tag handle'), Kn.test(i) || _(e, "ill-formed tag prefix (second argument) of the TAG directive");
1943
+ n.length !== 2 && j(e, "TAG directive accepts exactly two arguments"), a = n[0], i = n[1], En.test(a) || j(e, "ill-formed tag handle (first argument) of the TAG directive"), we.call(e.tagMap, a) && j(e, 'there is a previously declared suffix for "' + a + '" tag handle'), Kn.test(i) || j(e, "ill-formed tag prefix (second argument) of the TAG directive");
1944
1944
  try {
1945
1945
  i = decodeURIComponent(i);
1946
1946
  } catch {
1947
- _(e, "tag prefix is malformed: " + i);
1947
+ j(e, "tag prefix is malformed: " + i);
1948
1948
  }
1949
1949
  e.tagMap[a] = i;
1950
1950
  }
@@ -1954,30 +1954,30 @@ function be(e, t, n, a) {
1954
1954
  if (t < n) {
1955
1955
  if (l = e.input.slice(t, n), a)
1956
1956
  for (i = 0, o = l.length; i < o; i += 1)
1957
- r = l.charCodeAt(i), r === 9 || 32 <= r && r <= 1114111 || _(e, "expected valid JSON character");
1957
+ r = l.charCodeAt(i), r === 9 || 32 <= r && r <= 1114111 || j(e, "expected valid JSON character");
1958
1958
  else
1959
- Ir.test(l) && _(e, "the stream contains non-printable characters");
1959
+ Ir.test(l) && j(e, "the stream contains non-printable characters");
1960
1960
  e.result += l;
1961
1961
  }
1962
1962
  }
1963
- function Lt(e, t, n, a) {
1963
+ function Vt(e, t, n, a) {
1964
1964
  var i, o, r, l;
1965
- for (ne.isObject(n) || _(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), r = 0, l = i.length; r < l; r += 1)
1966
- o = i[r], Ce.call(t, o) || (t[o] = n[o], a[o] = !0);
1965
+ for (ne.isObject(n) || j(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), r = 0, l = i.length; r < l; r += 1)
1966
+ o = i[r], we.call(t, o) || (t[o] = n[o], a[o] = !0);
1967
1967
  }
1968
- function $e(e, t, n, a, i, o, r, l, s) {
1968
+ function Me(e, t, n, a, i, o, r, l, s) {
1969
1969
  var c, d;
1970
1970
  if (Array.isArray(i))
1971
1971
  for (i = Array.prototype.slice.call(i), c = 0, d = i.length; c < d; c += 1)
1972
- Array.isArray(i[c]) && _(e, "nested arrays are not supported inside keys"), typeof i == "object" && Kt(i[c]) === "[object Object]" && (i[c] = "[object Object]");
1973
- if (typeof i == "object" && Kt(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), a === "tag:yaml.org,2002:merge")
1972
+ Array.isArray(i[c]) && j(e, "nested arrays are not supported inside keys"), typeof i == "object" && Rt(i[c]) === "[object Object]" && (i[c] = "[object Object]");
1973
+ if (typeof i == "object" && Rt(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), a === "tag:yaml.org,2002:merge")
1974
1974
  if (Array.isArray(o))
1975
1975
  for (c = 0, d = o.length; c < d; c += 1)
1976
- Lt(e, t, o[c], n);
1976
+ Vt(e, t, o[c], n);
1977
1977
  else
1978
- Lt(e, t, o, n);
1978
+ Vt(e, t, o, n);
1979
1979
  else
1980
- !e.json && !Ce.call(n, i) && Ce.call(t, i) && (e.line = r || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, _(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(t, i, {
1980
+ !e.json && !we.call(n, i) && we.call(t, i) && (e.line = r || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, j(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(t, i, {
1981
1981
  configurable: !0,
1982
1982
  enumerable: !0,
1983
1983
  writable: !0,
@@ -1985,47 +1985,47 @@ function $e(e, t, n, a, i, o, r, l, s) {
1985
1985
  }) : t[i] = o, delete n[i];
1986
1986
  return t;
1987
1987
  }
1988
- function vt(e) {
1988
+ function wt(e) {
1989
1989
  var t;
1990
- t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : _(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1990
+ t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : j(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1991
1991
  }
1992
1992
  function te(e, t, n) {
1993
1993
  for (var a = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
1994
- for (; Ae(i); )
1994
+ for (; xe(i); )
1995
1995
  i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
1996
1996
  if (t && i === 35)
1997
1997
  do
1998
1998
  i = e.input.charCodeAt(++e.position);
1999
1999
  while (i !== 10 && i !== 13 && i !== 0);
2000
2000
  if (me(i))
2001
- for (vt(e), i = e.input.charCodeAt(e.position), a++, e.lineIndent = 0; i === 32; )
2001
+ for (wt(e), i = e.input.charCodeAt(e.position), a++, e.lineIndent = 0; i === 32; )
2002
2002
  e.lineIndent++, i = e.input.charCodeAt(++e.position);
2003
2003
  else
2004
2004
  break;
2005
2005
  }
2006
2006
  return n !== -1 && a !== 0 && e.lineIndent < n && He(e, "deficient indentation"), a;
2007
2007
  }
2008
- function Ze(e) {
2008
+ function Ge(e) {
2009
2009
  var t = e.position, n;
2010
2010
  return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || ue(n)));
2011
2011
  }
2012
- function bt(e, t) {
2012
+ function St(e, t) {
2013
2013
  t === 1 ? e.result += " " : t > 1 && (e.result += ne.repeat(`
2014
2014
  `, t - 1));
2015
2015
  }
2016
- function Er(e, t, n) {
2017
- var a, i, o, r, l, s, c, d, u = e.kind, y = e.result, f;
2018
- if (f = e.input.charCodeAt(e.position), ue(f) || Te(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), ue(i) || n && Te(i)))
2016
+ function Nr(e, t, n) {
2017
+ var a, i, o, r, l, s, c, d, u = e.kind, g = e.result, f;
2018
+ if (f = e.input.charCodeAt(e.position), ue(f) || Oe(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), ue(i) || n && Oe(i)))
2019
2019
  return !1;
2020
2020
  for (e.kind = "scalar", e.result = "", o = r = e.position, l = !1; f !== 0; ) {
2021
2021
  if (f === 58) {
2022
- if (i = e.input.charCodeAt(e.position + 1), ue(i) || n && Te(i))
2022
+ if (i = e.input.charCodeAt(e.position + 1), ue(i) || n && Oe(i))
2023
2023
  break;
2024
2024
  } else if (f === 35) {
2025
2025
  if (a = e.input.charCodeAt(e.position - 1), ue(a))
2026
2026
  break;
2027
2027
  } else {
2028
- if (e.position === e.lineStart && Ze(e) || n && Te(f))
2028
+ if (e.position === e.lineStart && Ge(e) || n && Oe(f))
2029
2029
  break;
2030
2030
  if (me(f))
2031
2031
  if (s = e.line, c = e.lineStart, d = e.lineIndent, te(e, !1, -1), e.lineIndent >= t) {
@@ -2036,11 +2036,11 @@ function Er(e, t, n) {
2036
2036
  break;
2037
2037
  }
2038
2038
  }
2039
- l && (be(e, o, r, !1), bt(e, e.line - s), o = r = e.position, l = !1), Ae(f) || (r = e.position + 1), f = e.input.charCodeAt(++e.position);
2039
+ l && (be(e, o, r, !1), St(e, e.line - s), o = r = e.position, l = !1), xe(f) || (r = e.position + 1), f = e.input.charCodeAt(++e.position);
2040
2040
  }
2041
- return be(e, o, r, !1), e.result ? !0 : (e.kind = u, e.result = y, !1);
2041
+ return be(e, o, r, !1), e.result ? !0 : (e.kind = u, e.result = g, !1);
2042
2042
  }
2043
- function Fr(e, t) {
2043
+ function Er(e, t) {
2044
2044
  var n, a, i;
2045
2045
  if (n = e.input.charCodeAt(e.position), n !== 39)
2046
2046
  return !1;
@@ -2051,10 +2051,10 @@ function Fr(e, t) {
2051
2051
  else
2052
2052
  return !0;
2053
2053
  else
2054
- me(n) ? (be(e, a, i, !0), bt(e, te(e, !1, t)), a = i = e.position) : e.position === e.lineStart && Ze(e) ? _(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
2055
- _(e, "unexpected end of the stream within a single quoted scalar");
2054
+ me(n) ? (be(e, a, i, !0), St(e, te(e, !1, t)), a = i = e.position) : e.position === e.lineStart && Ge(e) ? j(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
2055
+ j(e, "unexpected end of the stream within a single quoted scalar");
2056
2056
  }
2057
- function Nr(e, t) {
2057
+ function Kr(e, t) {
2058
2058
  var n, a, i, o, r, l;
2059
2059
  if (l = e.input.charCodeAt(e.position), l !== 34)
2060
2060
  return !1;
@@ -2066,35 +2066,35 @@ function Nr(e, t) {
2066
2066
  te(e, !1, t);
2067
2067
  else if (l < 256 && qn[l])
2068
2068
  e.result += Bn[l], e.position++;
2069
- else if ((r = Tr(l)) > 0) {
2069
+ else if ((r = $r(l)) > 0) {
2070
2070
  for (i = r, o = 0; i > 0; i--)
2071
- l = e.input.charCodeAt(++e.position), (r = jr(l)) >= 0 ? o = (o << 4) + r : _(e, "expected hexadecimal character");
2072
- e.result += Or(o), e.position++;
2071
+ l = e.input.charCodeAt(++e.position), (r = jr(l)) >= 0 ? o = (o << 4) + r : j(e, "expected hexadecimal character");
2072
+ e.result += Mr(o), e.position++;
2073
2073
  } else
2074
- _(e, "unknown escape sequence");
2074
+ j(e, "unknown escape sequence");
2075
2075
  n = a = e.position;
2076
2076
  } else
2077
- me(l) ? (be(e, n, a, !0), bt(e, te(e, !1, t)), n = a = e.position) : e.position === e.lineStart && Ze(e) ? _(e, "unexpected end of the document within a double quoted scalar") : (e.position++, a = e.position);
2077
+ me(l) ? (be(e, n, a, !0), St(e, te(e, !1, t)), n = a = e.position) : e.position === e.lineStart && Ge(e) ? j(e, "unexpected end of the document within a double quoted scalar") : (e.position++, a = e.position);
2078
2078
  }
2079
- _(e, "unexpected end of the stream within a double quoted scalar");
2079
+ j(e, "unexpected end of the stream within a double quoted scalar");
2080
2080
  }
2081
- function Kr(e, t) {
2082
- var n = !0, a, i, o, r = e.tag, l, s = e.anchor, c, d, u, y, f, w = /* @__PURE__ */ Object.create(null), h, A, v, b;
2083
- if (b = e.input.charCodeAt(e.position), b === 91)
2081
+ function qr(e, t) {
2082
+ var n = !0, a, i, o, r = e.tag, l, s = e.anchor, c, d, u, g, f, w = /* @__PURE__ */ Object.create(null), b, x, _, k;
2083
+ if (k = e.input.charCodeAt(e.position), k === 91)
2084
2084
  d = 93, f = !1, l = [];
2085
- else if (b === 123)
2085
+ else if (k === 123)
2086
2086
  d = 125, f = !0, l = {};
2087
2087
  else
2088
2088
  return !1;
2089
- for (e.anchor !== null && (e.anchorMap[e.anchor] = l), b = e.input.charCodeAt(++e.position); b !== 0; ) {
2090
- if (te(e, !0, t), b = e.input.charCodeAt(e.position), b === d)
2089
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = l), k = e.input.charCodeAt(++e.position); k !== 0; ) {
2090
+ if (te(e, !0, t), k = e.input.charCodeAt(e.position), k === d)
2091
2091
  return e.position++, e.tag = r, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
2092
- n ? b === 44 && _(e, "expected the node content, but found ','") : _(e, "missed comma between flow collection entries"), A = h = v = null, u = y = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), ue(c) && (u = y = !0, e.position++, te(e, !0, t))), a = e.line, i = e.lineStart, o = e.position, Oe(e, t, Pe, !1, !0), A = e.tag, h = e.result, te(e, !0, t), b = e.input.charCodeAt(e.position), (y || e.line === a) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), te(e, !0, t), Oe(e, t, Pe, !1, !0), v = e.result), f ? $e(e, l, w, A, h, v, a, i, o) : u ? l.push($e(e, null, w, A, h, v, a, i, o)) : l.push(h), te(e, !0, t), b = e.input.charCodeAt(e.position), b === 44 ? (n = !0, b = e.input.charCodeAt(++e.position)) : n = !1;
2092
+ n ? k === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), x = b = _ = null, u = g = !1, k === 63 && (c = e.input.charCodeAt(e.position + 1), ue(c) && (u = g = !0, e.position++, te(e, !0, t))), a = e.line, i = e.lineStart, o = e.position, Fe(e, t, Pe, !1, !0), x = e.tag, b = e.result, te(e, !0, t), k = e.input.charCodeAt(e.position), (g || e.line === a) && k === 58 && (u = !0, k = e.input.charCodeAt(++e.position), te(e, !0, t), Fe(e, t, Pe, !1, !0), _ = e.result), f ? Me(e, l, w, x, b, _, a, i, o) : u ? l.push(Me(e, null, w, x, b, _, a, i, o)) : l.push(b), te(e, !0, t), k = e.input.charCodeAt(e.position), k === 44 ? (n = !0, k = e.input.charCodeAt(++e.position)) : n = !1;
2093
2093
  }
2094
- _(e, "unexpected end of the stream within a flow collection");
2094
+ j(e, "unexpected end of the stream within a flow collection");
2095
2095
  }
2096
- function qr(e, t) {
2097
- var n, a, i = tt, o = !1, r = !1, l = t, s = 0, c = !1, d, u;
2096
+ function Br(e, t) {
2097
+ var n, a, i = nt, o = !1, r = !1, l = t, s = 0, c = !1, d, u;
2098
2098
  if (u = e.input.charCodeAt(e.position), u === 124)
2099
2099
  a = !1;
2100
2100
  else if (u === 62)
@@ -2103,34 +2103,34 @@ function qr(e, t) {
2103
2103
  return !1;
2104
2104
  for (e.kind = "scalar", e.result = ""; u !== 0; )
2105
2105
  if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
2106
- tt === i ? i = u === 43 ? Nt : Ar : _(e, "repeat of a chomping mode identifier");
2107
- else if ((d = $r(u)) >= 0)
2108
- d === 0 ? _(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : r ? _(e, "repeat of an indentation width identifier") : (l = t + d - 1, r = !0);
2106
+ nt === i ? i = u === 43 ? Lt : xr : j(e, "repeat of a chomping mode identifier");
2107
+ else if ((d = Or(u)) >= 0)
2108
+ d === 0 ? j(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : r ? j(e, "repeat of an indentation width identifier") : (l = t + d - 1, r = !0);
2109
2109
  else
2110
2110
  break;
2111
- if (Ae(u)) {
2111
+ if (xe(u)) {
2112
2112
  do
2113
2113
  u = e.input.charCodeAt(++e.position);
2114
- while (Ae(u));
2114
+ while (xe(u));
2115
2115
  if (u === 35)
2116
2116
  do
2117
2117
  u = e.input.charCodeAt(++e.position);
2118
2118
  while (!me(u) && u !== 0);
2119
2119
  }
2120
2120
  for (; u !== 0; ) {
2121
- for (vt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!r || e.lineIndent < l) && u === 32; )
2121
+ for (wt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!r || e.lineIndent < l) && u === 32; )
2122
2122
  e.lineIndent++, u = e.input.charCodeAt(++e.position);
2123
2123
  if (!r && e.lineIndent > l && (l = e.lineIndent), me(u)) {
2124
2124
  s++;
2125
2125
  continue;
2126
2126
  }
2127
2127
  if (e.lineIndent < l) {
2128
- i === Nt ? e.result += ne.repeat(`
2129
- `, o ? 1 + s : s) : i === tt && o && (e.result += `
2128
+ i === Lt ? e.result += ne.repeat(`
2129
+ `, o ? 1 + s : s) : i === nt && o && (e.result += `
2130
2130
  `);
2131
2131
  break;
2132
2132
  }
2133
- for (a ? Ae(u) ? (c = !0, e.result += ne.repeat(`
2133
+ for (a ? xe(u) ? (c = !0, e.result += ne.repeat(`
2134
2134
  `, o ? 1 + s : s)) : c ? (c = !1, e.result += ne.repeat(`
2135
2135
  `, s + 1)) : s === 0 ? o && (e.result += " ") : e.result += ne.repeat(`
2136
2136
  `, s) : e.result += ne.repeat(`
@@ -2140,124 +2140,124 @@ function qr(e, t) {
2140
2140
  }
2141
2141
  return !0;
2142
2142
  }
2143
- function Ut(e, t) {
2143
+ function Pt(e, t) {
2144
2144
  var n, a = e.tag, i = e.anchor, o = [], r, l = !1, s;
2145
2145
  if (e.firstTabInLine !== -1)
2146
2146
  return !1;
2147
- for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation")), !(s !== 45 || (r = e.input.charCodeAt(e.position + 1), !ue(r)))); ) {
2147
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), !(s !== 45 || (r = e.input.charCodeAt(e.position + 1), !ue(r)))); ) {
2148
2148
  if (l = !0, e.position++, te(e, !0, -1) && e.lineIndent <= t) {
2149
2149
  o.push(null), s = e.input.charCodeAt(e.position);
2150
2150
  continue;
2151
2151
  }
2152
- if (n = e.line, Oe(e, t, Fn, !1, !0), o.push(e.result), te(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
2153
- _(e, "bad indentation of a sequence entry");
2152
+ if (n = e.line, Fe(e, t, Nn, !1, !0), o.push(e.result), te(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
2153
+ j(e, "bad indentation of a sequence entry");
2154
2154
  else if (e.lineIndent < t)
2155
2155
  break;
2156
2156
  }
2157
2157
  return l ? (e.tag = a, e.anchor = i, e.kind = "sequence", e.result = o, !0) : !1;
2158
2158
  }
2159
- function Br(e, t, n) {
2160
- var a, i, o, r, l, s, c = e.tag, d = e.anchor, u = {}, y = /* @__PURE__ */ Object.create(null), f = null, w = null, h = null, A = !1, v = !1, b;
2159
+ function Lr(e, t, n) {
2160
+ var a, i, o, r, l, s, c = e.tag, d = e.anchor, u = {}, g = /* @__PURE__ */ Object.create(null), f = null, w = null, b = null, x = !1, _ = !1, k;
2161
2161
  if (e.firstTabInLine !== -1)
2162
2162
  return !1;
2163
- for (e.anchor !== null && (e.anchorMap[e.anchor] = u), b = e.input.charCodeAt(e.position); b !== 0; ) {
2164
- if (!A && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), o = e.line, (b === 63 || b === 58) && ue(a))
2165
- b === 63 ? (A && ($e(e, u, y, f, w, null, r, l, s), f = w = h = null), v = !0, A = !0, i = !0) : A ? (A = !1, i = !0) : _(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = a;
2163
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = u), k = e.input.charCodeAt(e.position); k !== 0; ) {
2164
+ if (!x && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), o = e.line, (k === 63 || k === 58) && ue(a))
2165
+ k === 63 ? (x && (Me(e, u, g, f, w, null, r, l, s), f = w = b = null), _ = !0, x = !0, i = !0) : x ? (x = !1, i = !0) : j(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, k = a;
2166
2166
  else {
2167
- if (r = e.line, l = e.lineStart, s = e.position, !Oe(e, n, En, !1, !0))
2167
+ if (r = e.line, l = e.lineStart, s = e.position, !Fe(e, n, Fn, !1, !0))
2168
2168
  break;
2169
2169
  if (e.line === o) {
2170
- for (b = e.input.charCodeAt(e.position); Ae(b); )
2171
- b = e.input.charCodeAt(++e.position);
2172
- if (b === 58)
2173
- b = e.input.charCodeAt(++e.position), ue(b) || _(e, "a whitespace character is expected after the key-value separator within a block mapping"), A && ($e(e, u, y, f, w, null, r, l, s), f = w = h = null), v = !0, A = !1, i = !1, f = e.tag, w = e.result;
2174
- else if (v)
2175
- _(e, "can not read an implicit mapping pair; a colon is missed");
2170
+ for (k = e.input.charCodeAt(e.position); xe(k); )
2171
+ k = e.input.charCodeAt(++e.position);
2172
+ if (k === 58)
2173
+ k = e.input.charCodeAt(++e.position), ue(k) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), x && (Me(e, u, g, f, w, null, r, l, s), f = w = b = null), _ = !0, x = !1, i = !1, f = e.tag, w = e.result;
2174
+ else if (_)
2175
+ j(e, "can not read an implicit mapping pair; a colon is missed");
2176
2176
  else
2177
2177
  return e.tag = c, e.anchor = d, !0;
2178
- } else if (v)
2179
- _(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2178
+ } else if (_)
2179
+ j(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2180
2180
  else
2181
2181
  return e.tag = c, e.anchor = d, !0;
2182
2182
  }
2183
- if ((e.line === o || e.lineIndent > t) && (A && (r = e.line, l = e.lineStart, s = e.position), Oe(e, t, ze, !0, i) && (A ? w = e.result : h = e.result), A || ($e(e, u, y, f, w, h, r, l, s), f = w = h = null), te(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && b !== 0)
2184
- _(e, "bad indentation of a mapping entry");
2183
+ if ((e.line === o || e.lineIndent > t) && (x && (r = e.line, l = e.lineStart, s = e.position), Fe(e, t, ze, !0, i) && (x ? w = e.result : b = e.result), x || (Me(e, u, g, f, w, b, r, l, s), f = w = b = null), te(e, !0, -1), k = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && k !== 0)
2184
+ j(e, "bad indentation of a mapping entry");
2185
2185
  else if (e.lineIndent < t)
2186
2186
  break;
2187
2187
  }
2188
- return A && $e(e, u, y, f, w, null, r, l, s), v && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), v;
2188
+ return x && Me(e, u, g, f, w, null, r, l, s), _ && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), _;
2189
2189
  }
2190
- function Lr(e) {
2190
+ function Rr(e) {
2191
2191
  var t, n = !1, a = !1, i, o, r;
2192
2192
  if (r = e.input.charCodeAt(e.position), r !== 33)
2193
2193
  return !1;
2194
- if (e.tag !== null && _(e, "duplication of a tag property"), r = e.input.charCodeAt(++e.position), r === 60 ? (n = !0, r = e.input.charCodeAt(++e.position)) : r === 33 ? (a = !0, i = "!!", r = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
2194
+ if (e.tag !== null && j(e, "duplication of a tag property"), r = e.input.charCodeAt(++e.position), r === 60 ? (n = !0, r = e.input.charCodeAt(++e.position)) : r === 33 ? (a = !0, i = "!!", r = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
2195
2195
  do
2196
2196
  r = e.input.charCodeAt(++e.position);
2197
2197
  while (r !== 0 && r !== 62);
2198
- e.position < e.length ? (o = e.input.slice(t, e.position), r = e.input.charCodeAt(++e.position)) : _(e, "unexpected end of the stream within a verbatim tag");
2198
+ e.position < e.length ? (o = e.input.slice(t, e.position), r = e.input.charCodeAt(++e.position)) : j(e, "unexpected end of the stream within a verbatim tag");
2199
2199
  } else {
2200
2200
  for (; r !== 0 && !ue(r); )
2201
- r === 33 && (a ? _(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), Nn.test(i) || _(e, "named tag handle cannot contain such characters"), a = !0, t = e.position + 1)), r = e.input.charCodeAt(++e.position);
2202
- o = e.input.slice(t, e.position), _r.test(o) && _(e, "tag suffix cannot contain flow indicator characters");
2201
+ r === 33 && (a ? j(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), En.test(i) || j(e, "named tag handle cannot contain such characters"), a = !0, t = e.position + 1)), r = e.input.charCodeAt(++e.position);
2202
+ o = e.input.slice(t, e.position), Tr.test(o) && j(e, "tag suffix cannot contain flow indicator characters");
2203
2203
  }
2204
- o && !Kn.test(o) && _(e, "tag name cannot contain such characters: " + o);
2204
+ o && !Kn.test(o) && j(e, "tag name cannot contain such characters: " + o);
2205
2205
  try {
2206
2206
  o = decodeURIComponent(o);
2207
2207
  } catch {
2208
- _(e, "tag name is malformed: " + o);
2208
+ j(e, "tag name is malformed: " + o);
2209
2209
  }
2210
- return n ? e.tag = o : Ce.call(e.tagMap, i) ? e.tag = e.tagMap[i] + o : i === "!" ? e.tag = "!" + o : i === "!!" ? e.tag = "tag:yaml.org,2002:" + o : _(e, 'undeclared tag handle "' + i + '"'), !0;
2210
+ return n ? e.tag = o : we.call(e.tagMap, i) ? e.tag = e.tagMap[i] + o : i === "!" ? e.tag = "!" + o : i === "!!" ? e.tag = "tag:yaml.org,2002:" + o : j(e, 'undeclared tag handle "' + i + '"'), !0;
2211
2211
  }
2212
2212
  function Ur(e) {
2213
2213
  var t, n;
2214
2214
  if (n = e.input.charCodeAt(e.position), n !== 38)
2215
2215
  return !1;
2216
- for (e.anchor !== null && _(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ue(n) && !Te(n); )
2216
+ for (e.anchor !== null && j(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ue(n) && !Oe(n); )
2217
2217
  n = e.input.charCodeAt(++e.position);
2218
- return e.position === t && _(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
2218
+ return e.position === t && j(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
2219
2219
  }
2220
- function Rr(e) {
2220
+ function Dr(e) {
2221
2221
  var t, n, a;
2222
2222
  if (a = e.input.charCodeAt(e.position), a !== 42)
2223
2223
  return !1;
2224
- for (a = e.input.charCodeAt(++e.position), t = e.position; a !== 0 && !ue(a) && !Te(a); )
2224
+ for (a = e.input.charCodeAt(++e.position), t = e.position; a !== 0 && !ue(a) && !Oe(a); )
2225
2225
  a = e.input.charCodeAt(++e.position);
2226
- return e.position === t && _(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), Ce.call(e.anchorMap, n) || _(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], te(e, !0, -1), !0;
2226
+ return e.position === t && j(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), we.call(e.anchorMap, n) || j(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], te(e, !0, -1), !0;
2227
2227
  }
2228
- function Oe(e, t, n, a, i) {
2229
- var o, r, l, s = 1, c = !1, d = !1, u, y, f, w, h, A;
2230
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = r = l = ze === n || Fn === n, a && te(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
2231
- for (; Lr(e) || Ur(e); )
2228
+ function Fe(e, t, n, a, i) {
2229
+ var o, r, l, s = 1, c = !1, d = !1, u, g, f, w, b, x;
2230
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = r = l = ze === n || Nn === n, a && te(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
2231
+ for (; Rr(e) || Ur(e); )
2232
2232
  te(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
2233
- if (l && (l = c || i), (s === 1 || ze === n) && (Pe === n || En === n ? h = t : h = t + 1, A = e.position - e.lineStart, s === 1 ? l && (Ut(e, A) || Br(e, A, h)) || Kr(e, h) ? d = !0 : (r && qr(e, h) || Fr(e, h) || Nr(e, h) ? d = !0 : Rr(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && _(e, "alias node should not have any properties")) : Er(e, h, Pe === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ut(e, A))), e.tag === null)
2233
+ if (l && (l = c || i), (s === 1 || ze === n) && (Pe === n || Fn === n ? b = t : b = t + 1, x = e.position - e.lineStart, s === 1 ? l && (Pt(e, x) || Lr(e, x, b)) || qr(e, b) ? d = !0 : (r && Br(e, b) || Er(e, b) || Kr(e, b) ? d = !0 : Dr(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && j(e, "alias node should not have any properties")) : Nr(e, b, Pe === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Pt(e, x))), e.tag === null)
2234
2234
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2235
2235
  else if (e.tag === "?") {
2236
- for (e.result !== null && e.kind !== "scalar" && _(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, y = e.implicitTypes.length; u < y; u += 1)
2236
+ for (e.result !== null && e.kind !== "scalar" && j(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, g = e.implicitTypes.length; u < g; u += 1)
2237
2237
  if (w = e.implicitTypes[u], w.resolve(e.result)) {
2238
2238
  e.result = w.construct(e.result), e.tag = w.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2239
2239
  break;
2240
2240
  }
2241
2241
  } else if (e.tag !== "!") {
2242
- if (Ce.call(e.typeMap[e.kind || "fallback"], e.tag))
2242
+ if (we.call(e.typeMap[e.kind || "fallback"], e.tag))
2243
2243
  w = e.typeMap[e.kind || "fallback"][e.tag];
2244
2244
  else
2245
- for (w = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, y = f.length; u < y; u += 1)
2245
+ for (w = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, g = f.length; u < g; u += 1)
2246
2246
  if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
2247
2247
  w = f[u];
2248
2248
  break;
2249
2249
  }
2250
- w || _(e, "unknown tag !<" + e.tag + ">"), e.result !== null && w.kind !== e.kind && _(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + w.kind + '", not "' + e.kind + '"'), w.resolve(e.result, e.tag) ? (e.result = w.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : _(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2250
+ w || j(e, "unknown tag !<" + e.tag + ">"), e.result !== null && w.kind !== e.kind && j(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + w.kind + '", not "' + e.kind + '"'), w.resolve(e.result, e.tag) ? (e.result = w.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : j(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2251
2251
  }
2252
2252
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2253
2253
  }
2254
- function Dr(e) {
2254
+ function Vr(e) {
2255
2255
  var t = e.position, n, a, i, o = !1, r;
2256
2256
  for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (r = e.input.charCodeAt(e.position)) !== 0 && (te(e, !0, -1), r = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || r !== 37)); ) {
2257
2257
  for (o = !0, r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !ue(r); )
2258
2258
  r = e.input.charCodeAt(++e.position);
2259
- for (a = e.input.slice(n, e.position), i = [], a.length < 1 && _(e, "directive name must not be less than one character in length"); r !== 0; ) {
2260
- for (; Ae(r); )
2259
+ for (a = e.input.slice(n, e.position), i = [], a.length < 1 && j(e, "directive name must not be less than one character in length"); r !== 0; ) {
2260
+ for (; xe(r); )
2261
2261
  r = e.input.charCodeAt(++e.position);
2262
2262
  if (r === 35) {
2263
2263
  do
@@ -2271,47 +2271,47 @@ function Dr(e) {
2271
2271
  r = e.input.charCodeAt(++e.position);
2272
2272
  i.push(e.input.slice(n, e.position));
2273
2273
  }
2274
- r !== 0 && vt(e), Ce.call(Bt, a) ? Bt[a](e, a, i) : He(e, 'unknown document directive "' + a + '"');
2274
+ r !== 0 && wt(e), we.call(Dt, a) ? Dt[a](e, a, i) : He(e, 'unknown document directive "' + a + '"');
2275
2275
  }
2276
- if (te(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, te(e, !0, -1)) : o && _(e, "directives end mark is expected"), Oe(e, e.lineIndent - 1, ze, !1, !0), te(e, !0, -1), e.checkLineBreaks && xr.test(e.input.slice(t, e.position)) && He(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ze(e)) {
2276
+ if (te(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, te(e, !0, -1)) : o && j(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, ze, !1, !0), te(e, !0, -1), e.checkLineBreaks && _r.test(e.input.slice(t, e.position)) && He(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ge(e)) {
2277
2277
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, te(e, !0, -1));
2278
2278
  return;
2279
2279
  }
2280
2280
  if (e.position < e.length - 1)
2281
- _(e, "end of the stream or a document separator is expected");
2281
+ j(e, "end of the stream or a document separator is expected");
2282
2282
  else
2283
2283
  return;
2284
2284
  }
2285
- function Un(e, t) {
2285
+ function Rn(e, t) {
2286
2286
  e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2287
2287
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2288
- var n = new Mr(e, t), a = e.indexOf("\0");
2289
- for (a !== -1 && (n.position = a, _(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
2288
+ var n = new Fr(e, t), a = e.indexOf("\0");
2289
+ for (a !== -1 && (n.position = a, j(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
2290
2290
  n.lineIndent += 1, n.position += 1;
2291
2291
  for (; n.position < n.length - 1; )
2292
- Dr(n);
2292
+ Vr(n);
2293
2293
  return n.documents;
2294
2294
  }
2295
- function Vr(e, t, n) {
2295
+ function Pr(e, t, n) {
2296
2296
  t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
2297
- var a = Un(e, n);
2297
+ var a = Rn(e, n);
2298
2298
  if (typeof t != "function")
2299
2299
  return a;
2300
2300
  for (var i = 0, o = a.length; i < o; i += 1)
2301
2301
  t(a[i]);
2302
2302
  }
2303
- function Pr(e, t) {
2304
- var n = Un(e, t);
2303
+ function zr(e, t) {
2304
+ var n = Rn(e, t);
2305
2305
  if (n.length !== 0) {
2306
2306
  if (n.length === 1)
2307
2307
  return n[0];
2308
2308
  throw new ce("expected a single document in the stream, but found more");
2309
2309
  }
2310
2310
  }
2311
- var zr = Vr, Hr = Pr, Rn = {
2312
- loadAll: zr,
2313
- load: Hr
2314
- }, Dn = Object.prototype.toString, Vn = Object.prototype.hasOwnProperty, kt = 65279, Jr = 9, qe = 10, Yr = 13, Wr = 32, Zr = 33, Gr = 34, rt = 35, Qr = 37, Xr = 38, eo = 39, to = 42, Pn = 44, no = 45, Je = 58, ao = 61, io = 62, ro = 63, oo = 64, zn = 91, Hn = 93, lo = 96, Jn = 123, so = 124, Yn = 125, se = {};
2311
+ var Hr = Pr, Jr = zr, Un = {
2312
+ loadAll: Hr,
2313
+ load: Jr
2314
+ }, Dn = Object.prototype.toString, Vn = Object.prototype.hasOwnProperty, At = 65279, Yr = 9, qe = 10, Wr = 13, Zr = 32, Gr = 33, Qr = 34, ot = 35, Xr = 37, eo = 38, to = 39, no = 42, Pn = 44, ao = 45, Je = 58, io = 61, ro = 62, oo = 63, lo = 64, zn = 91, Hn = 93, so = 96, Jn = 123, co = 124, Yn = 125, se = {};
2315
2315
  se[0] = "\\0";
2316
2316
  se[7] = "\\a";
2317
2317
  se[8] = "\\b";
@@ -2327,7 +2327,7 @@ se[133] = "\\N";
2327
2327
  se[160] = "\\_";
2328
2328
  se[8232] = "\\L";
2329
2329
  se[8233] = "\\P";
2330
- var co = [
2330
+ var uo = [
2331
2331
  "y",
2332
2332
  "Y",
2333
2333
  "yes",
@@ -2344,8 +2344,8 @@ var co = [
2344
2344
  "off",
2345
2345
  "Off",
2346
2346
  "OFF"
2347
- ], uo = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2348
- function po(e, t) {
2347
+ ], po = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2348
+ function fo(e, t) {
2349
2349
  var n, a, i, o, r, l, s;
2350
2350
  if (t === null)
2351
2351
  return {};
@@ -2353,7 +2353,7 @@ function po(e, t) {
2353
2353
  r = a[i], l = String(t[r]), r.slice(0, 2) === "!!" && (r = "tag:yaml.org,2002:" + r.slice(2)), s = e.compiledTypeMap.fallback[r], s && Vn.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[r] = l;
2354
2354
  return n;
2355
2355
  }
2356
- function fo(e) {
2356
+ function yo(e) {
2357
2357
  var t, n, a;
2358
2358
  if (t = e.toString(16).toUpperCase(), e <= 255)
2359
2359
  n = "x", a = 2;
@@ -2366,21 +2366,21 @@ function fo(e) {
2366
2366
  return "\\" + n + ne.repeat("0", a - t.length) + t;
2367
2367
  }
2368
2368
  var go = 1, Be = 2;
2369
- function yo(e) {
2370
- this.schema = e.schema || ht, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ne.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = po(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 === '"' ? Be : go, 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;
2369
+ function mo(e) {
2370
+ this.schema = e.schema || Ct, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ne.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = fo(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 === '"' ? Be : go, 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;
2371
2371
  }
2372
- function Rt(e, t) {
2372
+ function zt(e, t) {
2373
2373
  for (var n = ne.repeat(" ", t), a = 0, i = -1, o = "", r, l = e.length; a < l; )
2374
2374
  i = e.indexOf(`
2375
2375
  `, a), i === -1 ? (r = e.slice(a), a = l) : (r = e.slice(a, i + 1), a = i + 1), r.length && r !== `
2376
2376
  ` && (o += n), o += r;
2377
2377
  return o;
2378
2378
  }
2379
- function ot(e, t) {
2379
+ function lt(e, t) {
2380
2380
  return `
2381
2381
  ` + ne.repeat(" ", e.indent * t);
2382
2382
  }
2383
- function mo(e, t) {
2383
+ function ho(e, t) {
2384
2384
  var n, a, i;
2385
2385
  for (n = 0, a = e.implicitTypes.length; n < a; n += 1)
2386
2386
  if (i = e.implicitTypes[n], i.resolve(t))
@@ -2388,28 +2388,28 @@ function mo(e, t) {
2388
2388
  return !1;
2389
2389
  }
2390
2390
  function Ye(e) {
2391
- return e === Wr || e === Jr;
2391
+ return e === Zr || e === Yr;
2392
2392
  }
2393
2393
  function Le(e) {
2394
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== kt || 65536 <= e && e <= 1114111;
2394
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== At || 65536 <= e && e <= 1114111;
2395
2395
  }
2396
- function Dt(e) {
2397
- return Le(e) && e !== kt && e !== Yr && e !== qe;
2396
+ function Ht(e) {
2397
+ return Le(e) && e !== At && e !== Wr && e !== qe;
2398
2398
  }
2399
- function Vt(e, t, n) {
2400
- var a = Dt(e), i = a && !Ye(e);
2399
+ function Jt(e, t, n) {
2400
+ var a = Ht(e), i = a && !Ye(e);
2401
2401
  return (
2402
2402
  // ns-plain-safe
2403
2403
  (n ? (
2404
2404
  // c = flow-in
2405
2405
  a
2406
- ) : a && e !== Pn && e !== zn && e !== Hn && e !== Jn && e !== Yn) && e !== rt && !(t === Je && !i) || Dt(t) && !Ye(t) && e === rt || t === Je && i
2406
+ ) : a && e !== Pn && e !== zn && e !== Hn && e !== Jn && e !== Yn) && e !== ot && !(t === Je && !i) || Ht(t) && !Ye(t) && e === ot || t === Je && i
2407
2407
  );
2408
2408
  }
2409
- function ho(e) {
2410
- return Le(e) && e !== kt && !Ye(e) && e !== no && e !== ro && e !== Je && e !== Pn && e !== zn && e !== Hn && e !== Jn && e !== Yn && e !== rt && e !== Xr && e !== to && e !== Zr && e !== so && e !== ao && e !== io && e !== eo && e !== Gr && e !== Qr && e !== oo && e !== lo;
2411
- }
2412
2409
  function vo(e) {
2410
+ return Le(e) && e !== At && !Ye(e) && e !== ao && e !== oo && e !== Je && e !== Pn && e !== zn && e !== Hn && e !== Jn && e !== Yn && e !== ot && e !== eo && e !== no && e !== Gr && e !== co && e !== io && e !== ro && e !== to && e !== Qr && e !== Xr && e !== lo && e !== so;
2411
+ }
2412
+ function bo(e) {
2413
2413
  return !Ye(e) && e !== Je;
2414
2414
  }
2415
2415
  function Ee(e, t) {
@@ -2420,39 +2420,39 @@ function Wn(e) {
2420
2420
  var t = /^\n* /;
2421
2421
  return t.test(e);
2422
2422
  }
2423
- var Zn = 1, lt = 2, Gn = 3, Qn = 4, je = 5;
2424
- function bo(e, t, n, a, i, o, r, l) {
2425
- var s, c = 0, d = null, u = !1, y = !1, f = a !== -1, w = -1, h = ho(Ee(e, 0)) && vo(Ee(e, e.length - 1));
2423
+ var Zn = 1, st = 2, Gn = 3, Qn = 4, Te = 5;
2424
+ function ko(e, t, n, a, i, o, r, l) {
2425
+ var s, c = 0, d = null, u = !1, g = !1, f = a !== -1, w = -1, b = vo(Ee(e, 0)) && bo(Ee(e, e.length - 1));
2426
2426
  if (t || r)
2427
2427
  for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
2428
2428
  if (c = Ee(e, s), !Le(c))
2429
- return je;
2430
- h = h && Vt(c, d, l), d = c;
2429
+ return Te;
2430
+ b = b && Jt(c, d, l), d = c;
2431
2431
  }
2432
2432
  else {
2433
2433
  for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
2434
2434
  if (c = Ee(e, s), c === qe)
2435
- u = !0, f && (y = y || // Foldable line = too long, and not more-indented.
2435
+ u = !0, f && (g = g || // Foldable line = too long, and not more-indented.
2436
2436
  s - w - 1 > a && e[w + 1] !== " ", w = s);
2437
2437
  else if (!Le(c))
2438
- return je;
2439
- h = h && Vt(c, d, l), d = c;
2438
+ return Te;
2439
+ b = b && Jt(c, d, l), d = c;
2440
2440
  }
2441
- y = y || f && s - w - 1 > a && e[w + 1] !== " ";
2441
+ g = g || f && s - w - 1 > a && e[w + 1] !== " ";
2442
2442
  }
2443
- return !u && !y ? h && !r && !i(e) ? Zn : o === Be ? je : lt : n > 9 && Wn(e) ? je : r ? o === Be ? je : lt : y ? Qn : Gn;
2443
+ return !u && !g ? b && !r && !i(e) ? Zn : o === Be ? Te : st : n > 9 && Wn(e) ? Te : r ? o === Be ? Te : st : g ? Qn : Gn;
2444
2444
  }
2445
- function ko(e, t, n, a, i) {
2445
+ function Co(e, t, n, a, i) {
2446
2446
  e.dump = function() {
2447
2447
  if (t.length === 0)
2448
2448
  return e.quotingType === Be ? '""' : "''";
2449
- if (!e.noCompatMode && (co.indexOf(t) !== -1 || uo.test(t)))
2449
+ if (!e.noCompatMode && (uo.indexOf(t) !== -1 || po.test(t)))
2450
2450
  return e.quotingType === Be ? '"' + t + '"' : "'" + t + "'";
2451
2451
  var o = e.indent * Math.max(1, n), r = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), l = a || e.flowLevel > -1 && n >= e.flowLevel;
2452
2452
  function s(c) {
2453
- return mo(e, c);
2453
+ return ho(e, c);
2454
2454
  }
2455
- switch (bo(
2455
+ switch (ko(
2456
2456
  t,
2457
2457
  l,
2458
2458
  e.indent,
@@ -2464,20 +2464,20 @@ function ko(e, t, n, a, i) {
2464
2464
  )) {
2465
2465
  case Zn:
2466
2466
  return t;
2467
- case lt:
2467
+ case st:
2468
2468
  return "'" + t.replace(/'/g, "''") + "'";
2469
2469
  case Gn:
2470
- return "|" + Pt(t, e.indent) + zt(Rt(t, o));
2470
+ return "|" + Yt(t, e.indent) + Wt(zt(t, o));
2471
2471
  case Qn:
2472
- return ">" + Pt(t, e.indent) + zt(Rt(Co(t, r), o));
2473
- case je:
2474
- return '"' + wo(t) + '"';
2472
+ return ">" + Yt(t, e.indent) + Wt(zt(wo(t, r), o));
2473
+ case Te:
2474
+ return '"' + So(t) + '"';
2475
2475
  default:
2476
2476
  throw new ce("impossible error: invalid scalar style");
2477
2477
  }
2478
2478
  }();
2479
2479
  }
2480
- function Pt(e, t) {
2480
+ function Yt(e, t) {
2481
2481
  var n = Wn(e) ? String(t) : "", a = e[e.length - 1] === `
2482
2482
  `, i = a && (e[e.length - 2] === `
2483
2483
  ` || e === `
@@ -2485,24 +2485,24 @@ function Pt(e, t) {
2485
2485
  return n + o + `
2486
2486
  `;
2487
2487
  }
2488
- function zt(e) {
2488
+ function Wt(e) {
2489
2489
  return e[e.length - 1] === `
2490
2490
  ` ? e.slice(0, -1) : e;
2491
2491
  }
2492
- function Co(e, t) {
2492
+ function wo(e, t) {
2493
2493
  for (var n = /(\n+)([^\n]*)/g, a = function() {
2494
2494
  var c = e.indexOf(`
2495
2495
  `);
2496
- return c = c !== -1 ? c : e.length, n.lastIndex = c, Ht(e.slice(0, c), t);
2496
+ return c = c !== -1 ? c : e.length, n.lastIndex = c, Zt(e.slice(0, c), t);
2497
2497
  }(), i = e[0] === `
2498
2498
  ` || e[0] === " ", o, r; r = n.exec(e); ) {
2499
2499
  var l = r[1], s = r[2];
2500
2500
  o = s[0] === " ", a += l + (!i && !o && s !== "" ? `
2501
- ` : "") + Ht(s, t), i = o;
2501
+ ` : "") + Zt(s, t), i = o;
2502
2502
  }
2503
2503
  return a;
2504
2504
  }
2505
- function Ht(e, t) {
2505
+ function Zt(e, t) {
2506
2506
  if (e === "" || e[0] === " ")
2507
2507
  return e;
2508
2508
  for (var n = / [^ ]/g, a, i = 0, o, r = 0, l = 0, s = ""; a = n.exec(e); )
@@ -2512,31 +2512,31 @@ function Ht(e, t) {
2512
2512
  `, e.length - i > t && r > i ? s += e.slice(i, r) + `
2513
2513
  ` + e.slice(r + 1) : s += e.slice(i), s.slice(1);
2514
2514
  }
2515
- function wo(e) {
2515
+ function So(e) {
2516
2516
  for (var t = "", n = 0, a, i = 0; i < e.length; n >= 65536 ? i += 2 : i++)
2517
- n = Ee(e, i), a = se[n], !a && Le(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += a || fo(n);
2517
+ n = Ee(e, i), a = se[n], !a && Le(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += a || yo(n);
2518
2518
  return t;
2519
2519
  }
2520
- function So(e, t, n) {
2520
+ function Ao(e, t, n) {
2521
2521
  var a = "", i = e.tag, o, r, l;
2522
2522
  for (o = 0, r = n.length; o < r; o += 1)
2523
2523
  l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (ve(e, t, l, !1, !1) || typeof l > "u" && ve(e, t, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
2524
2524
  e.tag = i, e.dump = "[" + a + "]";
2525
2525
  }
2526
- function Jt(e, t, n, a) {
2526
+ function Gt(e, t, n, a) {
2527
2527
  var i = "", o = e.tag, r, l, s;
2528
2528
  for (r = 0, l = n.length; r < l; r += 1)
2529
- s = n[r], e.replacer && (s = e.replacer.call(n, String(r), s)), (ve(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ve(e, t + 1, null, !0, !0, !1, !0)) && ((!a || i !== "") && (i += ot(e, t)), e.dump && qe === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
2529
+ s = n[r], e.replacer && (s = e.replacer.call(n, String(r), s)), (ve(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ve(e, t + 1, null, !0, !0, !1, !0)) && ((!a || i !== "") && (i += lt(e, t)), e.dump && qe === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
2530
2530
  e.tag = o, e.dump = i || "[]";
2531
2531
  }
2532
- function Ao(e, t, n) {
2532
+ function xo(e, t, n) {
2533
2533
  var a = "", i = e.tag, o = Object.keys(n), r, l, s, c, d;
2534
2534
  for (r = 0, l = o.length; r < l; r += 1)
2535
2535
  d = "", a !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = o[r], c = n[s], e.replacer && (c = e.replacer.call(n, s, c)), ve(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ve(e, t, c, !1, !1) && (d += e.dump, a += d));
2536
2536
  e.tag = i, e.dump = "{" + a + "}";
2537
2537
  }
2538
2538
  function Io(e, t, n, a) {
2539
- var i = "", o = e.tag, r = Object.keys(n), l, s, c, d, u, y;
2539
+ var i = "", o = e.tag, r = Object.keys(n), l, s, c, d, u, g;
2540
2540
  if (e.sortKeys === !0)
2541
2541
  r.sort();
2542
2542
  else if (typeof e.sortKeys == "function")
@@ -2544,10 +2544,10 @@ function Io(e, t, n, a) {
2544
2544
  else if (e.sortKeys)
2545
2545
  throw new ce("sortKeys must be a boolean or a function");
2546
2546
  for (l = 0, s = r.length; l < s; l += 1)
2547
- y = "", (!a || i !== "") && (y += ot(e, t)), c = r[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), ve(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && qe === e.dump.charCodeAt(0) ? y += "?" : y += "? "), y += e.dump, u && (y += ot(e, t)), ve(e, t + 1, d, !0, u) && (e.dump && qe === e.dump.charCodeAt(0) ? y += ":" : y += ": ", y += e.dump, i += y));
2547
+ g = "", (!a || i !== "") && (g += lt(e, t)), c = r[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), ve(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && qe === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, u && (g += lt(e, t)), ve(e, t + 1, d, !0, u) && (e.dump && qe === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, i += g));
2548
2548
  e.tag = o, e.dump = i || "{}";
2549
2549
  }
2550
- function Yt(e, t, n) {
2550
+ function Qt(e, t, n) {
2551
2551
  var a, i, o, r, l, s;
2552
2552
  for (i = n ? e.explicitTypes : e.implicitTypes, o = 0, r = i.length; o < r; o += 1)
2553
2553
  if (l = i[o], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof t == "object" && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
@@ -2565,19 +2565,19 @@ function Yt(e, t, n) {
2565
2565
  return !1;
2566
2566
  }
2567
2567
  function ve(e, t, n, a, i, o, r) {
2568
- e.tag = null, e.dump = n, Yt(e, n, !1) || Yt(e, n, !0);
2568
+ e.tag = null, e.dump = n, Qt(e, n, !1) || Qt(e, n, !0);
2569
2569
  var l = Dn.call(e.dump), s = a, c;
2570
2570
  a && (a = e.flowLevel < 0 || e.flowLevel > t);
2571
- var d = l === "[object Object]" || l === "[object Array]", u, y;
2572
- if (d && (u = e.duplicates.indexOf(n), y = u !== -1), (e.tag !== null && e.tag !== "?" || y || e.indent !== 2 && t > 0) && (i = !1), y && e.usedDuplicates[u])
2571
+ var d = l === "[object Object]" || l === "[object Array]", u, g;
2572
+ if (d && (u = e.duplicates.indexOf(n), g = u !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && t > 0) && (i = !1), g && e.usedDuplicates[u])
2573
2573
  e.dump = "*ref_" + u;
2574
2574
  else {
2575
- if (d && y && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
2576
- a && Object.keys(e.dump).length !== 0 ? (Io(e, t, e.dump, i), y && (e.dump = "&ref_" + u + e.dump)) : (Ao(e, t, e.dump), y && (e.dump = "&ref_" + u + " " + e.dump));
2575
+ if (d && g && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
2576
+ a && Object.keys(e.dump).length !== 0 ? (Io(e, t, e.dump, i), g && (e.dump = "&ref_" + u + e.dump)) : (xo(e, t, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
2577
2577
  else if (l === "[object Array]")
2578
- a && e.dump.length !== 0 ? (e.noArrayIndent && !r && t > 0 ? Jt(e, t - 1, e.dump, i) : Jt(e, t, e.dump, i), y && (e.dump = "&ref_" + u + e.dump)) : (So(e, t, e.dump), y && (e.dump = "&ref_" + u + " " + e.dump));
2578
+ a && e.dump.length !== 0 ? (e.noArrayIndent && !r && t > 0 ? Gt(e, t - 1, e.dump, i) : Gt(e, t, e.dump, i), g && (e.dump = "&ref_" + u + e.dump)) : (Ao(e, t, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
2579
2579
  else if (l === "[object String]")
2580
- e.tag !== "?" && ko(e, e.dump, t, o, s);
2580
+ e.tag !== "?" && Co(e, e.dump, t, o, s);
2581
2581
  else {
2582
2582
  if (l === "[object Undefined]" || e.skipInvalid)
2583
2583
  return !1;
@@ -2589,42 +2589,42 @@ function ve(e, t, n, a, i, o, r) {
2589
2589
  }
2590
2590
  return !0;
2591
2591
  }
2592
- function xo(e, t) {
2592
+ function _o(e, t) {
2593
2593
  var n = [], a = [], i, o;
2594
- for (st(e, n, a), i = 0, o = a.length; i < o; i += 1)
2594
+ for (ct(e, n, a), i = 0, o = a.length; i < o; i += 1)
2595
2595
  t.duplicates.push(n[a[i]]);
2596
2596
  t.usedDuplicates = new Array(o);
2597
2597
  }
2598
- function st(e, t, n) {
2598
+ function ct(e, t, n) {
2599
2599
  var a, i, o;
2600
2600
  if (e !== null && typeof e == "object")
2601
2601
  if (i = t.indexOf(e), i !== -1)
2602
2602
  n.indexOf(i) === -1 && n.push(i);
2603
2603
  else if (t.push(e), Array.isArray(e))
2604
2604
  for (i = 0, o = e.length; i < o; i += 1)
2605
- st(e[i], t, n);
2605
+ ct(e[i], t, n);
2606
2606
  else
2607
2607
  for (a = Object.keys(e), i = 0, o = a.length; i < o; i += 1)
2608
- st(e[a[i]], t, n);
2608
+ ct(e[a[i]], t, n);
2609
2609
  }
2610
- function _o(e, t) {
2610
+ function To(e, t) {
2611
2611
  t = t || {};
2612
- var n = new yo(t);
2613
- n.noRefs || xo(e, n);
2612
+ var n = new mo(t);
2613
+ n.noRefs || _o(e, n);
2614
2614
  var a = e;
2615
2615
  return n.replacer && (a = n.replacer.call({ "": a }, "", a)), ve(n, 0, a, !0, !0) ? n.dump + `
2616
2616
  ` : "";
2617
2617
  }
2618
- var jo = _o, To = {
2618
+ var jo = To, $o = {
2619
2619
  dump: jo
2620
2620
  };
2621
- function Ct(e, t) {
2621
+ function xt(e, t) {
2622
2622
  return function() {
2623
2623
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2624
2624
  };
2625
2625
  }
2626
- var $o = oe, Oo = gn, Mo = vn, Eo = Sn, Fo = An, No = ht, Ko = Rn.load, qo = Rn.loadAll, Bo = To.dump, Lo = ce, Uo = {
2627
- binary: Tn,
2626
+ var Oo = oe, Mo = yn, Fo = vn, No = Sn, Eo = An, Ko = Ct, qo = Un.load, Bo = Un.loadAll, Lo = $o.dump, Ro = ce, Uo = {
2627
+ binary: jn,
2628
2628
  float: wn,
2629
2629
  map: hn,
2630
2630
  null: bn,
@@ -2633,27 +2633,27 @@ var $o = oe, Oo = gn, Mo = vn, Eo = Sn, Fo = An, No = ht, Ko = Rn.load, qo = Rn.
2633
2633
  timestamp: _n,
2634
2634
  bool: kn,
2635
2635
  int: Cn,
2636
- merge: jn,
2636
+ merge: Tn,
2637
2637
  omap: $n,
2638
2638
  seq: mn,
2639
- str: yn
2640
- }, Ro = Ct("safeLoad", "load"), Do = Ct("safeLoadAll", "loadAll"), Vo = Ct("safeDump", "dump"), Po = {
2641
- Type: $o,
2642
- Schema: Oo,
2643
- FAILSAFE_SCHEMA: Mo,
2644
- JSON_SCHEMA: Eo,
2645
- CORE_SCHEMA: Fo,
2646
- DEFAULT_SCHEMA: No,
2647
- load: Ko,
2648
- loadAll: qo,
2649
- dump: Bo,
2650
- YAMLException: Lo,
2639
+ str: gn
2640
+ }, Do = xt("safeLoad", "load"), Vo = xt("safeLoadAll", "loadAll"), Po = xt("safeDump", "dump"), zo = {
2641
+ Type: Oo,
2642
+ Schema: Mo,
2643
+ FAILSAFE_SCHEMA: Fo,
2644
+ JSON_SCHEMA: No,
2645
+ CORE_SCHEMA: Eo,
2646
+ DEFAULT_SCHEMA: Ko,
2647
+ load: qo,
2648
+ loadAll: Bo,
2649
+ dump: Lo,
2650
+ YAMLException: Ro,
2651
2651
  types: Uo,
2652
- safeLoad: Ro,
2653
- safeLoadAll: Do,
2654
- safeDump: Vo
2652
+ safeLoad: Do,
2653
+ safeLoadAll: Vo,
2654
+ safeDump: Po
2655
2655
  };
2656
- const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
2656
+ const Ho = { class: "yaml-config" }, Xn = /* @__PURE__ */ W({
2657
2657
  __name: "YamlCodeBlock",
2658
2658
  props: {
2659
2659
  /** A record to indicate the entity's configuration, used to populate the YAML code block */
@@ -2663,30 +2663,30 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
2663
2663
  }
2664
2664
  },
2665
2665
  setup(e) {
2666
- const t = e, n = j(() => {
2666
+ const t = e, n = I(() => {
2667
2667
  const a = Object.fromEntries(Object.entries(t.yamlRecord).filter(([, i]) => i && (Array.isArray(i) ? i.length !== 0 : !0)));
2668
- return Object.keys(a).length === 0 && a.constructor === Object ? "" : Po.dump(a).trim();
2668
+ return Object.keys(a).length === 0 && a.constructor === Object ? "" : zo.dump(a).trim();
2669
2669
  });
2670
2670
  return (a, i) => {
2671
- const o = F("KCodeBlock");
2672
- return p(), T("div", zo, [
2673
- t.yamlRecord ? (p(), q(o, {
2671
+ const o = E("KCodeBlock");
2672
+ return p(), T("div", Ho, [
2673
+ t.yamlRecord ? (p(), K(o, {
2674
2674
  key: 0,
2675
2675
  id: "yaml-codeblock",
2676
2676
  code: n.value,
2677
2677
  language: "yaml",
2678
2678
  theme: "dark"
2679
- }, null, 8, ["code"])) : P("", !0)
2679
+ }, null, 8, ["code"])) : U("", !0)
2680
2680
  ]);
2681
2681
  };
2682
2682
  }
2683
- }), Ho = {
2683
+ }), Jo = {
2684
2684
  key: 0,
2685
2685
  class: "config-card-display-form"
2686
- }, Jo = ["data-testid"], Yo = {
2686
+ }, Yo = ["data-testid"], Wo = {
2687
2687
  key: 0,
2688
2688
  class: "config-card-prop-section-title"
2689
- }, Wo = /* @__PURE__ */ G({
2689
+ }, Zo = /* @__PURE__ */ W({
2690
2690
  __name: "ConfigCardDisplay",
2691
2691
  props: {
2692
2692
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2725,29 +2725,29 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
2725
2725
  }
2726
2726
  },
2727
2727
  setup(e) {
2728
- const t = e, n = We(), { i18n: { t: a } } = ie.useI18n(), i = (r) => !!(r.tooltip || n[`${r.key}-label-tooltip`]), o = j(() => {
2728
+ const t = e, n = Ze(), { i18n: { t: a } } = ie.useI18n(), i = (r) => !!(r.tooltip || n[`${r.key}-label-tooltip`]), o = I(() => {
2729
2729
  if (!t.record)
2730
2730
  return t.record;
2731
2731
  const r = JSON.parse(JSON.stringify(t.record));
2732
2732
  return delete r.created_at, delete r.updated_at, r;
2733
2733
  });
2734
2734
  return (r, l) => (p(), T(fe, null, [
2735
- e.format === "structured" ? (p(), T("div", Ho, [
2735
+ e.format === "structured" ? (p(), T("div", Jo, [
2736
2736
  (p(!0), T(fe, null, de(e.propListTypes, (s) => (p(), T("div", {
2737
2737
  key: `config-card-details-${s}-props`,
2738
2738
  class: ke(`config-card-details-${s}-props`),
2739
2739
  "data-testid": `config-card-details-${s}-props`
2740
2740
  }, [
2741
- s !== "basic" ? (p(), T("div", Yo, N(s === "advanced" ? C(a)("baseConfigCard.sections.advanced") : C(a)("baseConfigCard.sections.plugin")), 1)) : P("", !0),
2742
- (p(!0), T(fe, null, de(e.propertyCollections[s], (c) => (p(), q(yt, {
2741
+ s !== "basic" ? (p(), T("div", Wo, F(s === "advanced" ? C(a)("baseConfigCard.sections.advanced") : C(a)("baseConfigCard.sections.plugin")), 1)) : U("", !0),
2742
+ (p(!0), T(fe, null, de(e.propertyCollections[s], (c) => (p(), K(bt, {
2743
2743
  key: c.key,
2744
2744
  item: c
2745
- }, Se({
2745
+ }, Ae({
2746
2746
  label: m(() => [
2747
- H(r.$slots, `${c.key}-label`, { row: c }, void 0, !0)
2747
+ z(r.$slots, `${c.key}-label`, { row: c }, void 0, !0)
2748
2748
  ]),
2749
2749
  [c.key]: m(({ rowValue: d }) => [
2750
- H(r.$slots, c.key, {
2750
+ z(r.$slots, c.key, {
2751
2751
  row: c,
2752
2752
  rowValue: d
2753
2753
  }, void 0, !0)
@@ -2757,38 +2757,38 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
2757
2757
  i(c) ? {
2758
2758
  name: "label-tooltip",
2759
2759
  fn: m(() => [
2760
- H(r.$slots, `${c.key}-label-tooltip`, { row: c }, void 0, !0)
2760
+ z(r.$slots, `${c.key}-label-tooltip`, { row: c }, void 0, !0)
2761
2761
  ]),
2762
2762
  key: "0"
2763
2763
  } : void 0
2764
2764
  ]), 1032, ["item"]))), 128))
2765
- ], 10, Jo))), 128))
2766
- ])) : P("", !0),
2767
- e.format === "json" && t.record ? (p(), q(dn, {
2765
+ ], 10, Yo))), 128))
2766
+ ])) : U("", !0),
2767
+ e.format === "json" && t.record ? (p(), K(dn, {
2768
2768
  key: 1,
2769
2769
  config: t.config,
2770
2770
  "fetcher-url": t.fetcherUrl,
2771
2771
  "json-record": o.value,
2772
2772
  "request-method": "get"
2773
- }, null, 8, ["config", "fetcher-url", "json-record"])) : P("", !0),
2774
- e.format === "yaml" && t.record ? (p(), q(Xn, {
2773
+ }, null, 8, ["config", "fetcher-url", "json-record"])) : U("", !0),
2774
+ e.format === "yaml" && t.record ? (p(), K(Xn, {
2775
2775
  key: 2,
2776
2776
  "yaml-record": o.value
2777
- }, null, 8, ["yaml-record"])) : P("", !0)
2777
+ }, null, 8, ["yaml-record"])) : U("", !0)
2778
2778
  ], 64));
2779
2779
  }
2780
- }), Zo = /* @__PURE__ */ ge(Wo, [["__scopeId", "data-v-2b74ac63"]]), Wt = "24px", Go = (e, t) => {
2780
+ }), Go = /* @__PURE__ */ ye(Zo, [["__scopeId", "data-v-2b74ac63"]]), We = "24px", ea = (e, t) => {
2781
2781
  const n = e.__vccOpts || e;
2782
2782
  for (const [a, i] of t)
2783
2783
  n[a] = i;
2784
2784
  return n;
2785
- }, Qo = (e) => (en("data-v-40a7f387"), e = e(), tn(), e), Xo = ["aria-hidden"], el = {
2785
+ }, Qo = (e) => (pt("data-v-40a7f387"), e = e(), ft(), e), Xo = ["aria-hidden"], el = {
2786
2786
  key: 0,
2787
2787
  "data-testid": "kui-icon-svg-title"
2788
- }, tl = /* @__PURE__ */ Qo(() => /* @__PURE__ */ U("path", {
2788
+ }, tl = /* @__PURE__ */ Qo(() => /* @__PURE__ */ L("path", {
2789
2789
  d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
2790
2790
  fill: "currentColor"
2791
- }, null, -1)), nl = /* @__PURE__ */ G({
2791
+ }, null, -1)), nl = /* @__PURE__ */ W({
2792
2792
  __name: "BookIcon",
2793
2793
  props: {
2794
2794
  /** The accessibility text provided to screen readers */
@@ -2819,7 +2819,7 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
2819
2819
  size: {
2820
2820
  type: [Number, String],
2821
2821
  required: !1,
2822
- default: Wt,
2822
+ default: We,
2823
2823
  // if setting to the imported const fails, just pass a number of 24 as the default.
2824
2824
  validator: (e) => {
2825
2825
  if (typeof e == "number" && e > 0)
@@ -2840,7 +2840,7 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
2840
2840
  }
2841
2841
  },
2842
2842
  setup(e) {
2843
- const t = e, n = j(() => {
2843
+ const t = e, n = I(() => {
2844
2844
  if (typeof t.size == "number" && t.size > 0)
2845
2845
  return `${t.size}px`;
2846
2846
  if (typeof t.size == "string") {
@@ -2848,8 +2848,8 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
2848
2848
  if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
2849
2849
  return `${o}px`;
2850
2850
  }
2851
- return Wt;
2852
- }), a = j(() => ({
2851
+ return We;
2852
+ }), a = I(() => ({
2853
2853
  boxSizing: "border-box",
2854
2854
  color: t.color,
2855
2855
  display: t.display,
@@ -2857,11 +2857,11 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
2857
2857
  lineHeight: "0",
2858
2858
  width: n.value
2859
2859
  }));
2860
- return (i, o) => (p(), q(Ie(e.as), {
2860
+ return (i, o) => (p(), K(Ce(e.as), {
2861
2861
  "aria-hidden": e.decorative ? "true" : void 0,
2862
2862
  class: "kui-icon book-icon",
2863
2863
  "data-testid": "kui-icon-wrapper-book-icon",
2864
- style: Xt(a.value)
2864
+ style: dt(a.value)
2865
2865
  }, {
2866
2866
  default: m(() => [
2867
2867
  (p(), T("svg", {
@@ -2874,23 +2874,122 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
2874
2874
  width: "100%",
2875
2875
  xmlns: "http://www.w3.org/2000/svg"
2876
2876
  }, [
2877
- e.title ? (p(), T("title", el, N(e.title), 1)) : P("", !0),
2877
+ e.title ? (p(), T("title", el, F(e.title), 1)) : U("", !0),
2878
2878
  tl
2879
2879
  ], 8, Xo))
2880
2880
  ]),
2881
2881
  _: 1
2882
2882
  }, 8, ["aria-hidden", "style"]));
2883
2883
  }
2884
- }), al = /* @__PURE__ */ Go(nl, [["__scopeId", "data-v-40a7f387"]]), il = { "data-testid": "config-card-title" }, rl = { class: "config-card-actions" }, ol = ["href"], ll = {
2884
+ }), al = /* @__PURE__ */ ea(nl, [["__scopeId", "data-v-40a7f387"]]), il = (e) => (pt("data-v-19f4cbbe"), e = e(), ft(), e), rl = ["aria-hidden"], ol = {
2885
+ key: 0,
2886
+ "data-testid": "kui-icon-svg-title"
2887
+ }, ll = /* @__PURE__ */ il(() => /* @__PURE__ */ L("path", {
2888
+ d: "M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",
2889
+ fill: "currentColor"
2890
+ }, null, -1)), sl = /* @__PURE__ */ W({
2891
+ __name: "CloseIcon",
2892
+ props: {
2893
+ /** The accessibility text provided to screen readers */
2894
+ title: {
2895
+ type: String,
2896
+ required: !1,
2897
+ default: ""
2898
+ },
2899
+ /** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
2900
+ color: {
2901
+ type: String,
2902
+ required: !1,
2903
+ default: "currentColor"
2904
+ },
2905
+ /** The CSS display property for the icon. Defaults to `block` */
2906
+ display: {
2907
+ type: String,
2908
+ required: !1,
2909
+ default: "block"
2910
+ },
2911
+ /** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
2912
+ decorative: {
2913
+ type: Boolean,
2914
+ required: !1,
2915
+ default: !1
2916
+ },
2917
+ /** The icon size */
2918
+ size: {
2919
+ type: [Number, String],
2920
+ required: !1,
2921
+ default: We,
2922
+ // if setting to the imported const fails, just pass a number of 24 as the default.
2923
+ validator: (e) => {
2924
+ if (typeof e == "number" && e > 0)
2925
+ return !0;
2926
+ if (typeof e == "string") {
2927
+ const t = String(e).replace(/px/gi, ""), n = Number(t);
2928
+ if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
2929
+ return !0;
2930
+ }
2931
+ return !1;
2932
+ }
2933
+ },
2934
+ /** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
2935
+ as: {
2936
+ type: String,
2937
+ required: !1,
2938
+ default: "span"
2939
+ }
2940
+ },
2941
+ setup(e) {
2942
+ const t = e, n = I(() => {
2943
+ if (typeof t.size == "number" && t.size > 0)
2944
+ return `${t.size}px`;
2945
+ if (typeof t.size == "string") {
2946
+ const i = String(t.size).replace(/px/gi, ""), o = Number(i);
2947
+ if (o && !isNaN(o) && Number.isInteger(o) && o > 0)
2948
+ return `${o}px`;
2949
+ }
2950
+ return We;
2951
+ }), a = I(() => ({
2952
+ boxSizing: "border-box",
2953
+ color: t.color,
2954
+ display: t.display,
2955
+ height: n.value,
2956
+ lineHeight: "0",
2957
+ width: n.value
2958
+ }));
2959
+ return (i, o) => (p(), K(Ce(e.as), {
2960
+ "aria-hidden": e.decorative ? "true" : void 0,
2961
+ class: "kui-icon close-icon",
2962
+ "data-testid": "kui-icon-wrapper-close-icon",
2963
+ style: dt(a.value)
2964
+ }, {
2965
+ default: m(() => [
2966
+ (p(), T("svg", {
2967
+ "aria-hidden": e.decorative ? "true" : void 0,
2968
+ "data-testid": "kui-icon-svg-close-icon",
2969
+ fill: "none",
2970
+ height: "100%",
2971
+ role: "img",
2972
+ viewBox: "0 0 24 24",
2973
+ width: "100%",
2974
+ xmlns: "http://www.w3.org/2000/svg"
2975
+ }, [
2976
+ e.title ? (p(), T("title", ol, F(e.title), 1)) : U("", !0),
2977
+ ll
2978
+ ], 8, rl))
2979
+ ]),
2980
+ _: 1
2981
+ }, 8, ["aria-hidden", "style"]));
2982
+ }
2983
+ }), cl = /* @__PURE__ */ ea(sl, [["__scopeId", "data-v-19f4cbbe"]]), ul = { "data-testid": "config-card-title" }, dl = { class: "config-card-actions" }, pl = ["href"], fl = {
2885
2984
  key: 2,
2886
2985
  class: "config-card-details-section"
2887
- }, sl = {
2986
+ }, yl = {
2888
2987
  key: 3,
2889
2988
  class: "config-card-details-section"
2890
- }, cl = ["data-testid"], ul = {
2989
+ }, gl = ["data-testid"], ml = {
2891
2990
  key: 0,
2892
2991
  class: "config-card-prop-section-title"
2893
- }, dl = /* @__PURE__ */ G({
2992
+ }, hl = /* @__PURE__ */ W({
2894
2993
  __name: "EntityBaseConfigCard",
2895
2994
  props: {
2896
2995
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2965,7 +3064,7 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
2965
3064
  emits: ["loading", "fetch:success", "fetch:error", "copy:success", "copy:error"],
2966
3065
  setup(e, { emit: t }) {
2967
3066
  var n;
2968
- const a = t, i = e, o = We(), { i18n: { t: r } } = ie.useI18n(), { getMessageFromError: l } = ie.useErrors(), { convertKeyToTitle: s } = ie.useStringHelpers(), { axiosInstance: c } = ie.useAxios({
3067
+ const a = t, i = e, o = Ze(), { i18n: { t: r } } = ie.useI18n(), { getMessageFromError: l } = ie.useErrors(), { convertKeyToTitle: s } = ie.useStringHelpers(), { axiosInstance: c } = ie.useAxios({
2969
3068
  headers: (n = i.config) == null ? void 0 : n.requestHeaders
2970
3069
  }), d = [
2971
3070
  {
@@ -2981,8 +3080,8 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
2981
3080
  label: "YAML",
2982
3081
  value: "yaml"
2983
3082
  }
2984
- ], u = E("structured"), y = (S) => {
2985
- u.value = S == null ? void 0 : S.value;
3083
+ ], u = N("structured"), g = (v) => {
3084
+ u.value = v == null ? void 0 : v.value;
2986
3085
  }, f = {
2987
3086
  id: {
2988
3087
  type: Y.ID,
@@ -3017,218 +3116,218 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
3017
3116
  // the last property displayed
3018
3117
  section: pe.Basic
3019
3118
  }
3020
- }, w = E(!1), h = E(!1), A = E(""), v = E({}), b = j(() => {
3021
- var S, L, O;
3022
- if (!v.value)
3119
+ }, w = N(!1), b = N(!1), x = N(""), _ = N({}), k = I(() => {
3120
+ var v, R, O;
3121
+ if (!_.value)
3023
3122
  return [];
3024
- const K = [], R = Object.keys(v.value).length;
3025
- for (const D in v.value) {
3026
- const J = (L = (S = i.configSchema) == null ? void 0 : S[D]) == null ? void 0 : L.order, W = (O = f[D]) == null ? void 0 : O.order;
3027
- let ae = R;
3028
- (W || W === 0) && (ae = W === -1 ? R + 1 : W), J && (ae = J === -1 ? R + 1 : J), K.push([D, ae]);
3123
+ const B = [], q = Object.keys(_.value).length;
3124
+ for (const D in _.value) {
3125
+ const J = (R = (v = i.configSchema) == null ? void 0 : v[D]) == null ? void 0 : R.order, Z = (O = f[D]) == null ? void 0 : O.order;
3126
+ let ae = q;
3127
+ (Z || Z === 0) && (ae = Z === -1 ? q + 1 : Z), J && (ae = J === -1 ? q + 1 : J), B.push([D, ae]);
3029
3128
  }
3030
- return K.sort(function(D, J) {
3129
+ return B.sort(function(D, J) {
3031
3130
  return D[1] - J[1];
3032
- }), K.map((D) => {
3033
- var J, W;
3034
- const ae = D[0], X = (J = v.value) == null ? void 0 : J[ae], Z = ((W = i.configSchema) == null ? void 0 : W[ae]) || {}, le = f[ae];
3131
+ }), B.map((D) => {
3132
+ var J, Z;
3133
+ const ae = D[0], X = (J = _.value) == null ? void 0 : J[ae], G = ((Z = i.configSchema) == null ? void 0 : Z[ae]) || {}, le = f[ae];
3035
3134
  return {
3036
3135
  key: ae,
3037
3136
  value: X,
3038
- hidden: Z.hidden || !1,
3039
- type: Z.type ?? ((le == null ? void 0 : le.type) || Y.Text),
3040
- label: Z.label ?? ((le == null ? void 0 : le.label) || s(ae)),
3041
- tooltip: Z.tooltip ?? ((le == null ? void 0 : le.tooltip) || void 0),
3042
- section: Z.section ?? ((le == null ? void 0 : le.section) || pe.Advanced)
3137
+ hidden: G.hidden || !1,
3138
+ type: G.type ?? ((le == null ? void 0 : le.type) || Y.Text),
3139
+ label: G.label ?? ((le == null ? void 0 : le.label) || s(ae)),
3140
+ tooltip: G.tooltip ?? ((le == null ? void 0 : le.tooltip) || void 0),
3141
+ section: G.section ?? ((le == null ? void 0 : le.section) || pe.Advanced)
3043
3142
  };
3044
3143
  }).filter((D) => !D.hidden && D.key !== i.pluginConfigKey);
3045
- }), I = j(() => {
3046
- var S, L;
3047
- if (!v.value || !i.pluginConfigKey)
3144
+ }), S = I(() => {
3145
+ var v, R;
3146
+ if (!_.value || !i.pluginConfigKey)
3048
3147
  return [];
3049
- const O = v.value[i.pluginConfigKey] || {}, K = Object.keys(O).length, R = [];
3148
+ const O = _.value[i.pluginConfigKey] || {}, B = Object.keys(O).length, q = [];
3050
3149
  for (const D in O) {
3051
- const J = (L = (S = i.pluginConfigSchema) == null ? void 0 : S[D]) == null ? void 0 : L.order, W = O[D];
3052
- let ae = W != null && W !== "" ? K - 1 : K;
3053
- J && (ae = J === -1 ? K + 1 : J), R.push([D, ae]);
3150
+ const J = (R = (v = i.pluginConfigSchema) == null ? void 0 : v[D]) == null ? void 0 : R.order, Z = O[D];
3151
+ let ae = Z != null && Z !== "" ? B - 1 : B;
3152
+ J && (ae = J === -1 ? B + 1 : J), q.push([D, ae]);
3054
3153
  }
3055
- return R.sort(function(D, J) {
3154
+ return q.sort(function(D, J) {
3056
3155
  return D[1] - J[1];
3057
- }), R.map((D) => {
3156
+ }), q.map((D) => {
3058
3157
  var J;
3059
- const W = D[0], ae = O[W], X = ((J = i.pluginConfigSchema) == null ? void 0 : J[W]) || {};
3158
+ const Z = D[0], ae = O[Z], X = ((J = i.pluginConfigSchema) == null ? void 0 : J[Z]) || {};
3060
3159
  return {
3061
- key: W,
3160
+ key: Z,
3062
3161
  value: ae,
3063
3162
  hidden: X.hidden || !1,
3064
3163
  type: X.type ?? Y.Text,
3065
- label: X.label ?? s(W),
3164
+ label: X.label ?? s(Z),
3066
3165
  tooltip: X.tooltip ?? void 0,
3067
3166
  section: pe.Plugin
3068
3167
  };
3069
3168
  }).filter((D) => !D.hidden);
3070
- }), g = j(() => {
3071
- var S, L, O, K;
3169
+ }), y = I(() => {
3170
+ var v, R, O, B;
3072
3171
  return {
3073
- basic: (S = b.value) == null ? void 0 : S.filter((R) => R.section === pe.Basic),
3074
- advanced: (L = b.value) == null ? void 0 : L.filter((R) => R.section === pe.Advanced),
3075
- plugin: (K = I.value) == null ? void 0 : K.concat((O = b.value) == null ? void 0 : O.filter((R) => R.section === pe.Plugin))
3172
+ basic: (v = k.value) == null ? void 0 : v.filter((q) => q.section === pe.Basic),
3173
+ advanced: (R = k.value) == null ? void 0 : R.filter((q) => q.section === pe.Advanced),
3174
+ plugin: (B = S.value) == null ? void 0 : B.concat((O = k.value) == null ? void 0 : O.filter((q) => q.section === pe.Plugin))
3076
3175
  };
3077
- }), k = j(() => {
3078
- const S = [];
3079
- return g.value.basic.length && S.push("basic"), g.value.advanced.length && S.push("advanced"), g.value.plugin.length && S.push("plugin"), S;
3080
- }), x = (S) => !!(S.tooltip || o[`${S.key}-label-tooltip`]), re = j(() => {
3081
- var S, L;
3176
+ }), h = I(() => {
3177
+ const v = [];
3178
+ return y.value.basic.length && v.push("basic"), y.value.advanced.length && v.push("advanced"), y.value.plugin.length && v.push("plugin"), v;
3179
+ }), A = (v) => !!(v.tooltip || o[`${v.key}-label-tooltip`]), re = I(() => {
3180
+ var v, R;
3082
3181
  let O = `${i.config.apiBaseUrl}${i.fetchUrl}`;
3083
- return i.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((S = i.config) == null ? void 0 : S.controlPlaneId) || "") : i.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (L = i.config) != null && L.workspace ? `/${i.config.workspace}` : "")), O = O.replace(/{id}/gi, i.config.entityId), O;
3084
- }), B = (S) => {
3085
- v.value && S(JSON.stringify(v.value)) ? a("copy:success", v.value) : a("copy:error");
3182
+ return i.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((v = i.config) == null ? void 0 : v.controlPlaneId) || "") : i.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (R = i.config) != null && R.workspace ? `/${i.config.workspace}` : "")), O = O.replace(/{id}/gi, i.config.entityId), O;
3183
+ }), H = (v) => {
3184
+ _.value && v(JSON.stringify(_.value)) ? a("copy:success", _.value) : a("copy:error");
3086
3185
  };
3087
- return xe(w, (S) => {
3088
- a("loading", S);
3089
- }, { immediate: !0 }), ct(async () => {
3090
- h.value = !1, w.value = !0;
3186
+ return Ie(w, (v) => {
3187
+ a("loading", v);
3188
+ }, { immediate: !0 }), ut(async () => {
3189
+ b.value = !1, w.value = !0;
3091
3190
  try {
3092
- const { data: S } = await c.get(re.value);
3191
+ const { data: v } = await c.get(re.value);
3093
3192
  if (i.dataKey)
3094
- if (typeof S[i.dataKey] < "u")
3095
- v.value = { ...S[i.dataKey] };
3193
+ if (typeof v[i.dataKey] < "u")
3194
+ _.value = { ...v[i.dataKey] };
3096
3195
  else
3097
3196
  throw new Error(r("errors.dataKeyUndefined", { dataKey: i.dataKey }));
3098
3197
  else
3099
- v.value = { ...S };
3100
- Object.keys(i.configSchema).filter((L) => i.configSchema[L].forceShow).forEach((L) => {
3101
- v.value && typeof v.value[L] > "u" && (v.value[L] = null);
3102
- }), a("fetch:success", S);
3103
- } catch (S) {
3104
- const L = l(S);
3105
- A.value = L.startsWith("code") ? r("baseConfigCard.errors.load") : L, h.value = !0, a("fetch:error", S);
3198
+ _.value = { ...v };
3199
+ Object.keys(i.configSchema).filter((R) => i.configSchema[R].forceShow).forEach((R) => {
3200
+ _.value && typeof _.value[R] > "u" && (_.value[R] = null);
3201
+ }), a("fetch:success", v);
3202
+ } catch (v) {
3203
+ const R = l(v);
3204
+ x.value = R.startsWith("code") ? r("baseConfigCard.errors.load") : R, b.value = !0, a("fetch:error", v);
3106
3205
  } finally {
3107
3206
  w.value = !1;
3108
3207
  }
3109
- }), (S, L) => {
3110
- const O = F("KLabel"), K = F("KSelect"), R = F("KButton"), D = F("KClipboardProvider"), J = F("KSkeleton"), W = F("KEmptyState"), ae = F("KCard");
3111
- return p(), q(ae, { class: "kong-ui-entity-base-config-card" }, Se({
3208
+ }), (v, R) => {
3209
+ const O = E("KLabel"), B = E("KSelect"), q = E("KButton"), D = E("KClipboardProvider"), J = E("KSkeleton"), Z = E("KEmptyState"), ae = E("KCard");
3210
+ return p(), K(ae, { class: "kong-ui-entity-base-config-card" }, Ae({
3112
3211
  actions: m(() => [
3113
- U("div", rl, [
3114
- H(S.$slots, "actions", {}, void 0, !0),
3115
- e.config.jsonYamlEnabled ? (p(), q(O, {
3212
+ L("div", dl, [
3213
+ z(v.$slots, "actions", {}, void 0, !0),
3214
+ e.config.jsonYamlEnabled ? (p(), K(O, {
3116
3215
  key: 0,
3117
3216
  class: "config-format-select-label",
3118
3217
  "data-testid": "config-format-select-label"
3119
3218
  }, {
3120
3219
  default: m(() => [
3121
- z(N(e.label), 1)
3220
+ P(F(e.label), 1)
3122
3221
  ]),
3123
3222
  _: 1
3124
- })) : P("", !0),
3125
- e.config.jsonYamlEnabled ? (p(), q(K, {
3223
+ })) : U("", !0),
3224
+ e.config.jsonYamlEnabled ? (p(), K(B, {
3126
3225
  key: 1,
3127
3226
  "data-testid": "select-config-format",
3128
3227
  items: d,
3129
- onChange: y
3130
- })) : P("", !0),
3131
- i.config.jsonYamlEnabled && e.configCardDoc ? (p(), q(R, {
3228
+ onChange: g
3229
+ })) : U("", !0),
3230
+ i.config.jsonYamlEnabled && e.configCardDoc ? (p(), K(q, {
3132
3231
  key: 2,
3133
3232
  appearance: "tertiary",
3134
3233
  class: "book-icon",
3135
3234
  "data-testid": "book-icon"
3136
3235
  }, {
3137
3236
  default: m(() => [
3138
- U("a", {
3237
+ L("a", {
3139
3238
  href: e.configCardDoc,
3140
3239
  rel: "noopener",
3141
3240
  target: "_blank"
3142
3241
  }, [
3143
- $(C(al), { size: C(ci) }, null, 8, ["size"])
3144
- ], 8, ol)
3242
+ $(C(al), { size: C(ui) }, null, 8, ["size"])
3243
+ ], 8, pl)
3145
3244
  ]),
3146
3245
  _: 1
3147
- })) : P("", !0),
3148
- e.config.jsonYamlEnabled ? P("", !0) : (p(), q(D, { key: 3 }, {
3246
+ })) : U("", !0),
3247
+ e.config.jsonYamlEnabled ? U("", !0) : (p(), K(D, { key: 3 }, {
3149
3248
  default: m(({ copyToClipboard: X }) => [
3150
- !w.value && !h.value ? (p(), q(R, {
3249
+ !w.value && !b.value ? (p(), K(q, {
3151
3250
  key: 0,
3152
3251
  appearance: "tertiary",
3153
3252
  "data-testid": "json-copy-button",
3154
- onClick: (Z) => B(X)
3253
+ onClick: (G) => H(X)
3155
3254
  }, {
3156
3255
  default: m(() => [
3157
- z(N(C(r)("baseConfigCard.actions.copy")), 1)
3256
+ P(F(C(r)("baseConfigCard.actions.copy")), 1)
3158
3257
  ]),
3159
3258
  _: 2
3160
- }, 1032, ["onClick"])) : P("", !0)
3259
+ }, 1032, ["onClick"])) : U("", !0)
3161
3260
  ]),
3162
3261
  _: 1
3163
3262
  }))
3164
3263
  ])
3165
3264
  ]),
3166
3265
  default: m(() => [
3167
- w.value ? (p(), q(J, {
3266
+ w.value ? (p(), K(J, {
3168
3267
  key: 0,
3169
3268
  "data-testid": "config-card-loader",
3170
3269
  "table-columns": 2,
3171
3270
  type: "table"
3172
- })) : h.value ? (p(), q(W, {
3271
+ })) : b.value ? (p(), K(Z, {
3173
3272
  key: 1,
3174
3273
  "data-testid": "config-card-fetch-error",
3175
3274
  "is-error": ""
3176
3275
  }, {
3177
3276
  message: m(() => [
3178
- U("h3", null, N(A.value), 1)
3277
+ L("h3", null, F(x.value), 1)
3179
3278
  ]),
3180
3279
  _: 1
3181
- })) : P("", !0),
3182
- e.config.jsonYamlEnabled ? (p(), T("div", ll, [
3183
- $(Zo, {
3280
+ })) : U("", !0),
3281
+ e.config.jsonYamlEnabled ? (p(), T("div", fl, [
3282
+ $(Go, {
3184
3283
  config: e.config,
3185
3284
  "fetcher-url": re.value,
3186
3285
  format: u.value,
3187
- "prop-list-types": k.value,
3188
- "property-collections": g.value,
3189
- record: v.value
3190
- }, Se({ _: 2 }, [
3191
- de(Object.keys(S.$slots), (X) => ({
3286
+ "prop-list-types": h.value,
3287
+ "property-collections": y.value,
3288
+ record: _.value
3289
+ }, Ae({ _: 2 }, [
3290
+ de(Object.keys(v.$slots), (X) => ({
3192
3291
  name: X,
3193
- fn: m(({ row: Z, rowValue: le }) => [
3194
- H(S.$slots, X, {
3195
- row: Z,
3292
+ fn: m(({ row: G, rowValue: le }) => [
3293
+ z(v.$slots, X, {
3294
+ row: G,
3196
3295
  rowValue: le
3197
3296
  }, void 0, !0)
3198
3297
  ])
3199
3298
  }))
3200
3299
  ]), 1032, ["config", "fetcher-url", "format", "prop-list-types", "property-collections", "record"])
3201
- ])) : (p(), T("div", sl, [
3202
- (p(!0), T(fe, null, de(k.value, (X) => (p(), T("div", {
3300
+ ])) : (p(), T("div", yl, [
3301
+ (p(!0), T(fe, null, de(h.value, (X) => (p(), T("div", {
3203
3302
  key: `config-card-details-${X}-props`,
3204
3303
  class: ke(`config-card-details-${X}-props`),
3205
3304
  "data-testid": `config-card-details-${X}-props`
3206
3305
  }, [
3207
- X !== "basic" ? (p(), T("div", ul, N(X === "advanced" ? C(r)("baseConfigCard.sections.advanced") : C(r)("baseConfigCard.sections.plugin")), 1)) : P("", !0),
3208
- (p(!0), T(fe, null, de(g.value[X], (Z) => (p(), q(yt, {
3209
- key: Z.key,
3210
- item: Z
3211
- }, Se({
3306
+ X !== "basic" ? (p(), T("div", ml, F(X === "advanced" ? C(r)("baseConfigCard.sections.advanced") : C(r)("baseConfigCard.sections.plugin")), 1)) : U("", !0),
3307
+ (p(!0), T(fe, null, de(y.value[X], (G) => (p(), K(bt, {
3308
+ key: G.key,
3309
+ item: G
3310
+ }, Ae({
3212
3311
  label: m(() => [
3213
- H(S.$slots, `${Z.key}-label`, { row: Z }, void 0, !0)
3312
+ z(v.$slots, `${G.key}-label`, { row: G }, void 0, !0)
3214
3313
  ]),
3215
- [Z.key]: m(({ rowValue: le }) => [
3216
- H(S.$slots, Z.key, {
3217
- row: Z,
3314
+ [G.key]: m(({ rowValue: le }) => [
3315
+ z(v.$slots, G.key, {
3316
+ row: G,
3218
3317
  rowValue: le
3219
3318
  }, void 0, !0)
3220
3319
  ]),
3221
3320
  _: 2
3222
3321
  }, [
3223
- x(Z) ? {
3322
+ A(G) ? {
3224
3323
  name: "label-tooltip",
3225
3324
  fn: m(() => [
3226
- H(S.$slots, `${Z.key}-label-tooltip`, { row: Z }, void 0, !0)
3325
+ z(v.$slots, `${G.key}-label-tooltip`, { row: G }, void 0, !0)
3227
3326
  ]),
3228
3327
  key: "0"
3229
3328
  } : void 0
3230
3329
  ]), 1032, ["item"]))), 128))
3231
- ], 10, cl))), 128))
3330
+ ], 10, gl))), 128))
3232
3331
  ]))
3233
3332
  ]),
3234
3333
  _: 2
@@ -3236,9 +3335,9 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
3236
3335
  e.hideTitle ? void 0 : {
3237
3336
  name: "title",
3238
3337
  fn: m(() => [
3239
- U("div", il, [
3240
- H(S.$slots, "title", {}, () => [
3241
- z(N(C(r)("baseConfigCard.title")), 1)
3338
+ L("div", ul, [
3339
+ z(v.$slots, "title", {}, () => [
3340
+ P(F(C(r)("baseConfigCard.title")), 1)
3242
3341
  ], !0)
3243
3342
  ])
3244
3343
  ]),
@@ -3247,10 +3346,10 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
3247
3346
  ]), 1024);
3248
3347
  };
3249
3348
  }
3250
- }), pl = /* @__PURE__ */ ge(dl, [["__scopeId", "data-v-3fd4a3a4"]]), fl = {
3349
+ }), vl = /* @__PURE__ */ ye(hl, [["__scopeId", "data-v-3fd4a3a4"]]), bl = {
3251
3350
  class: "form-actions",
3252
3351
  "data-testid": "form-actions"
3253
- }, gl = { key: 0 }, yl = /* @__PURE__ */ G({
3352
+ }, kl = { key: 0 }, Cl = /* @__PURE__ */ W({
3254
3353
  __name: "EntityBaseForm",
3255
3354
  props: {
3256
3355
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3305,21 +3404,21 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
3305
3404
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
3306
3405
  setup(e, { emit: t }) {
3307
3406
  var n;
3308
- const a = t, i = e, o = ut(), { i18n: { t: r } } = ie.useI18n(), { getMessageFromError: l } = ie.useErrors(), { axiosInstance: s } = ie.useAxios({
3407
+ const a = t, i = e, o = yt(), { i18n: { t: r } } = ie.useI18n(), { getMessageFromError: l } = ie.useErrors(), { axiosInstance: s } = ie.useAxios({
3309
3408
  headers: (n = i.config) == null ? void 0 : n.requestHeaders
3310
- }), c = E(!1), d = E(!1), u = E(""), y = j(() => i.canSubmit === !1 || i.isReadonly), f = E(!1), w = j(() => {
3311
- var g, k;
3312
- let x = `${i.config.apiBaseUrl}${i.fetchUrl}`;
3313
- return i.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((g = i.config) == null ? void 0 : g.controlPlaneId) || "") : i.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (k = i.config) != null && k.workspace ? `/${i.config.workspace}` : "")), i.editId ? (x = x.replace(/{id}/gi, i.editId), x) : (x = x.replace(/\/{id}/gi, ""), x);
3314
- }), h = () => {
3409
+ }), c = N(!1), d = N(!1), u = N(""), g = I(() => i.canSubmit === !1 || i.isReadonly), f = N(!1), w = I(() => {
3410
+ var y, h;
3411
+ let A = `${i.config.apiBaseUrl}${i.fetchUrl}`;
3412
+ return i.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((y = i.config) == null ? void 0 : y.controlPlaneId) || "") : i.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (h = i.config) != null && h.workspace ? `/${i.config.workspace}` : "")), i.editId ? (A = A.replace(/{id}/gi, i.editId), A) : (A = A.replace(/\/{id}/gi, ""), A);
3413
+ }), b = () => {
3315
3414
  f.value = !f.value;
3316
- }, A = () => {
3317
- i.config.cancelRoute ? o.push(i.config.cancelRoute) : v();
3318
- }, v = () => {
3415
+ }, x = () => {
3416
+ i.config.cancelRoute ? o.push(i.config.cancelRoute) : _();
3417
+ }, _ = () => {
3319
3418
  a("cancel");
3320
- }, b = () => {
3321
- y.value || a("submit");
3322
- }, I = E([
3419
+ }, k = () => {
3420
+ g.value || a("submit");
3421
+ }, S = N([
3323
3422
  {
3324
3423
  title: r("baseForm.configuration.yaml"),
3325
3424
  hash: "#yaml"
@@ -3329,84 +3428,84 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
3329
3428
  hash: "#json"
3330
3429
  }
3331
3430
  ]);
3332
- return xe(() => c.value, (g) => {
3333
- a("loading", g);
3334
- }, { immediate: !0 }), ct(async () => {
3431
+ return Ie(() => c.value, (y) => {
3432
+ a("loading", y);
3433
+ }, { immediate: !0 }), ut(async () => {
3335
3434
  if (i.editId)
3336
3435
  try {
3337
3436
  d.value = !1, c.value = !0;
3338
- const { data: g } = await s.get(w.value);
3339
- a("fetch:success", g);
3340
- } catch (g) {
3341
- const k = l(g);
3342
- u.value = k.startsWith("code") ? r("baseForm.errors.edit") : k, d.value = !0, a("fetch:error", g);
3437
+ const { data: y } = await s.get(w.value);
3438
+ a("fetch:success", y);
3439
+ } catch (y) {
3440
+ const h = l(y);
3441
+ u.value = h.startsWith("code") ? r("baseForm.errors.edit") : h, d.value = !0, a("fetch:error", y);
3343
3442
  } finally {
3344
3443
  c.value = !1;
3345
3444
  }
3346
- }), (g, k) => {
3347
- const x = F("KSkeleton"), re = F("KEmptyState"), B = F("KAlert"), S = F("KButton"), L = F("KTabs"), O = F("KSlideout"), K = F("KCard");
3348
- return p(), q(K, { class: "kong-ui-entity-base-form" }, {
3445
+ }), (y, h) => {
3446
+ const A = E("KSkeleton"), re = E("KEmptyState"), H = E("KAlert"), v = E("KButton"), R = E("KTabs"), O = E("KSlideout"), B = E("KCard");
3447
+ return p(), K(B, { class: "kong-ui-entity-base-form" }, {
3349
3448
  default: m(() => [
3350
- c.value ? (p(), q(x, {
3449
+ c.value ? (p(), K(A, {
3351
3450
  key: 0,
3352
3451
  type: "form"
3353
- })) : d.value ? (p(), q(re, {
3452
+ })) : d.value ? (p(), K(re, {
3354
3453
  key: 1,
3355
3454
  "cta-text": C(r)("baseForm.actions.back"),
3356
3455
  "data-testid": "form-fetch-error",
3357
- "handle-click": A,
3456
+ "handle-click": x,
3358
3457
  "is-error": !0
3359
3458
  }, {
3360
3459
  message: m(() => [
3361
- U("h3", null, N(u.value), 1)
3460
+ L("h3", null, F(u.value), 1)
3362
3461
  ]),
3363
3462
  _: 1
3364
3463
  }, 8, ["cta-text"])) : (p(), T("form", {
3365
3464
  key: 2,
3366
3465
  "data-testid": "form-content",
3367
- onReset: De(v, ["prevent"]),
3368
- onSubmit: De(b, ["prevent"])
3466
+ onReset: De(_, ["prevent"]),
3467
+ onSubmit: De(k, ["prevent"])
3369
3468
  }, [
3370
- H(g.$slots, "default", {}, void 0, !0),
3371
- e.errorMessage ? (p(), q(B, {
3469
+ z(y.$slots, "default", {}, void 0, !0),
3470
+ e.errorMessage ? (p(), K(H, {
3372
3471
  key: 0,
3373
3472
  "alert-message": e.errorMessage,
3374
3473
  appearance: "danger",
3375
3474
  "data-testid": "form-error"
3376
- }, null, 8, ["alert-message"])) : P("", !0),
3377
- U("div", fl, [
3378
- H(g.$slots, "form-actions", {}, () => [
3379
- e.config.jsonYamlFormsEnabled ? (p(), T("div", gl, [
3380
- $(S, {
3475
+ }, null, 8, ["alert-message"])) : U("", !0),
3476
+ L("div", bl, [
3477
+ z(y.$slots, "form-actions", {}, () => [
3478
+ e.config.jsonYamlFormsEnabled ? (p(), T("div", kl, [
3479
+ $(v, {
3381
3480
  appearance: "tertiary",
3382
3481
  "data-testid": "form-view-configuration",
3383
- onClick: k[0] || (k[0] = (R) => h())
3482
+ onClick: h[0] || (h[0] = (q) => b())
3384
3483
  }, {
3385
3484
  default: m(() => [
3386
- z(N(C(r)("baseForm.actions.viewConfiguration")), 1)
3485
+ P(F(C(r)("baseForm.actions.viewConfiguration")), 1)
3387
3486
  ]),
3388
3487
  _: 1
3389
3488
  })
3390
- ])) : P("", !0),
3391
- $(S, {
3489
+ ])) : U("", !0),
3490
+ $(v, {
3392
3491
  appearance: "secondary",
3393
3492
  "data-testid": "form-cancel",
3394
3493
  disabled: e.isReadonly,
3395
3494
  type: "reset"
3396
3495
  }, {
3397
3496
  default: m(() => [
3398
- z(N(C(r)("baseForm.actions.cancel")), 1)
3497
+ P(F(C(r)("baseForm.actions.cancel")), 1)
3399
3498
  ]),
3400
3499
  _: 1
3401
3500
  }, 8, ["disabled"]),
3402
- $(S, {
3501
+ $(v, {
3403
3502
  appearance: "primary",
3404
3503
  "data-testid": "form-submit",
3405
- disabled: y.value,
3504
+ disabled: g.value,
3406
3505
  type: "submit"
3407
3506
  }, {
3408
3507
  default: m(() => [
3409
- z(N(C(r)("baseForm.actions.save")), 1)
3508
+ P(F(C(r)("baseForm.actions.save")), 1)
3410
3509
  ]),
3411
3510
  _: 1
3412
3511
  }, 8, ["disabled"])
@@ -3420,13 +3519,13 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
3420
3519
  "offset-top": 60,
3421
3520
  title: C(r)("baseForm.configuration.title"),
3422
3521
  visible: f.value,
3423
- onClose: k[1] || (k[1] = (R) => h())
3522
+ onClose: h[1] || (h[1] = (q) => b())
3424
3523
  }, {
3425
3524
  default: m(() => [
3426
- U("div", null, N(C(r)("baseForm.configuration.message")), 1),
3427
- $(L, {
3525
+ L("div", null, F(C(r)("baseForm.configuration.message")), 1),
3526
+ $(R, {
3428
3527
  "data-testid": "form-view-configuration-slideout-tabs",
3429
- tabs: I.value
3528
+ tabs: S.value
3430
3529
  }, {
3431
3530
  json: m(() => [
3432
3531
  $(dn, {
@@ -3451,10 +3550,10 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
3451
3550
  });
3452
3551
  };
3453
3552
  }
3454
- }), ml = /* @__PURE__ */ ge(yl, [["__scopeId", "data-v-2e2d1350"]]), hl = {
3553
+ }), wl = /* @__PURE__ */ ye(Cl, [["__scopeId", "data-v-2e2d1350"]]), Sl = {
3455
3554
  key: 0,
3456
3555
  "data-testid": "first-col"
3457
- }, vl = /* @__PURE__ */ G({
3556
+ }, Al = /* @__PURE__ */ W({
3458
3557
  __name: "EntityBaseTableCell",
3459
3558
  props: {
3460
3559
  keyName: {
@@ -3467,68 +3566,68 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
3467
3566
  }
3468
3567
  },
3469
3568
  setup(e) {
3470
- const t = e, n = j(() => {
3471
- var h;
3472
- return ((h = t.rowEl) == null ? void 0 : h.querySelector(`[data-testid="${t.keyName}"]`)) || null;
3473
- }), a = j(() => {
3474
- var h;
3475
- return ((h = n.value) == null ? void 0 : h.querySelector('[data-testid="first-col"]')) || null;
3476
- }), i = j(() => {
3477
- var h, A;
3478
- const v = (h = t.rowEl) == null ? void 0 : h.querySelectorAll("td");
3479
- return v ? ((A = v[0]) == null ? void 0 : A.getAttribute("data-testid")) === t.keyName : !1;
3569
+ const t = e, n = I(() => {
3570
+ var b;
3571
+ return ((b = t.rowEl) == null ? void 0 : b.querySelector(`[data-testid="${t.keyName}"]`)) || null;
3572
+ }), a = I(() => {
3573
+ var b;
3574
+ return ((b = n.value) == null ? void 0 : b.querySelector('[data-testid="first-col"]')) || null;
3575
+ }), i = I(() => {
3576
+ var b, x;
3577
+ const _ = (b = t.rowEl) == null ? void 0 : b.querySelectorAll("td");
3578
+ return _ ? ((x = _[0]) == null ? void 0 : x.getAttribute("data-testid")) === t.keyName : !1;
3480
3579
  });
3481
3580
  let o;
3482
3581
  const r = () => {
3483
3582
  o && (o.disconnect(), o = void 0);
3484
3583
  }, l = () => {
3485
- var h, A, v;
3486
- c.value = ((h = a.value) == null ? void 0 : h.getBoundingClientRect().width) || 0, d.value = ((A = n.value) == null ? void 0 : A.clientWidth) || 0, u.value = ((v = s.value) == null ? void 0 : v.innerText) || "";
3487
- }, s = E({}), c = E(0), d = E(0), u = E(""), y = j(() => [a.value, n.value]), f = xe(
3488
- y,
3489
- (h) => {
3584
+ var b, x, _;
3585
+ c.value = ((b = a.value) == null ? void 0 : b.getBoundingClientRect().width) || 0, d.value = ((x = n.value) == null ? void 0 : x.clientWidth) || 0, u.value = ((_ = s.value) == null ? void 0 : _.innerText) || "";
3586
+ }, s = N({}), c = N(0), d = N(0), u = N(""), g = I(() => [a.value, n.value]), f = Ie(
3587
+ g,
3588
+ (b) => {
3490
3589
  if (i.value && (r(), "ResizeObserver" in window && window)) {
3491
- o = new ResizeObserver((A) => {
3590
+ o = new ResizeObserver((x) => {
3492
3591
  window.requestAnimationFrame(() => {
3493
- !Array.isArray(A) || !A.length || l();
3592
+ !Array.isArray(x) || !x.length || l();
3494
3593
  });
3495
3594
  });
3496
- for (const A of h)
3497
- A && o.observe(A);
3595
+ for (const x of b)
3596
+ x && o.observe(x);
3498
3597
  }
3499
3598
  },
3500
3599
  { immediate: !0, flush: "post", deep: !0 }
3501
- ), w = j(() => i.value ? c.value > d.value : !1);
3502
- return ra(() => {
3600
+ ), w = I(() => i.value ? c.value > d.value : !1);
3601
+ return oa(() => {
3503
3602
  l();
3504
- }), oa(() => {
3603
+ }), la(() => {
3505
3604
  f();
3506
- }), (h, A) => {
3507
- const v = F("KTooltip");
3605
+ }), (b, x) => {
3606
+ const _ = E("KTooltip");
3508
3607
  return p(), T("span", {
3509
3608
  ref_key: "contentRef",
3510
3609
  ref: s,
3511
3610
  class: "content-wrapper"
3512
3611
  }, [
3513
- i.value ? (p(), T("span", hl, [
3514
- $(v, {
3612
+ i.value ? (p(), T("span", Sl, [
3613
+ $(_, {
3515
3614
  "max-width": "300",
3516
3615
  placement: "bottomStart",
3517
3616
  text: w.value ? u.value : ""
3518
3617
  }, {
3519
3618
  default: m(() => [
3520
- H(h.$slots, "default", {}, void 0, !0)
3619
+ z(b.$slots, "default", {}, void 0, !0)
3521
3620
  ]),
3522
3621
  _: 3
3523
3622
  }, 8, ["text"])
3524
- ])) : H(h.$slots, "default", { key: 1 }, void 0, !0)
3623
+ ])) : z(b.$slots, "default", { key: 1 }, void 0, !0)
3525
3624
  ], 512);
3526
3625
  };
3527
3626
  }
3528
- }), bl = /* @__PURE__ */ ge(vl, [["__scopeId", "data-v-c4379fd4"]]), kl = { class: "toolbar-container" }, Cl = {
3627
+ }), xl = /* @__PURE__ */ ye(Al, [["__scopeId", "data-v-c4379fd4"]]), Il = { class: "toolbar-container" }, _l = {
3529
3628
  key: 0,
3530
3629
  class: "toolbar-button-container"
3531
- }, wl = ["data-testid"], Sl = /* @__PURE__ */ G({
3630
+ }, Tl = ["data-testid"], jl = /* @__PURE__ */ W({
3532
3631
  __name: "EntityBaseTable",
3533
3632
  props: {
3534
3633
  // table header configuration
@@ -3638,76 +3737,76 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
3638
3737
  },
3639
3738
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3640
3739
  setup(e, { emit: t }) {
3641
- const n = e, a = t, { i18n: { t: i } } = ie.useI18n(), o = j(() => {
3642
- var k, x;
3740
+ const n = e, a = t, { i18n: { t: i } } = ie.useI18n(), o = I(() => {
3741
+ var h, A;
3643
3742
  return typeof n.errorMessage == "string" ? {
3644
3743
  hasError: !!n.errorMessage,
3645
3744
  title: n.errorMessage,
3646
3745
  message: void 0
3647
3746
  } : {
3648
3747
  hasError: !!n.errorMessage,
3649
- title: (k = n.errorMessage) == null ? void 0 : k.title,
3650
- message: (x = n.errorMessage) == null ? void 0 : x.message
3748
+ title: (h = n.errorMessage) == null ? void 0 : h.title,
3749
+ message: (A = n.errorMessage) == null ? void 0 : A.message
3651
3750
  };
3652
- }), r = j(() => n.cacheIdentifier || n.preferencesStorageKey), l = (k) => k.hasData || !!n.query, s = j(() => {
3653
- const k = [];
3654
- return Object.keys(n.tableHeaders).forEach((x) => {
3655
- const re = n.tableHeaders[x];
3656
- k.push({
3657
- label: re.label ?? x,
3658
- key: x,
3751
+ }), r = I(() => n.cacheIdentifier || n.preferencesStorageKey), l = (h) => h.hasData || !!n.query, s = I(() => {
3752
+ const h = [];
3753
+ return Object.keys(n.tableHeaders).forEach((A) => {
3754
+ const re = n.tableHeaders[A];
3755
+ h.push({
3756
+ label: re.label ?? A,
3757
+ key: A,
3659
3758
  sortable: re.sortable ?? !1
3660
3759
  });
3661
- }), n.enableEntityActions && k.push({
3760
+ }), n.enableEntityActions && h.push({
3662
3761
  key: "actions",
3663
3762
  hideLabel: !0
3664
- }), k;
3665
- }), c = (k) => ({
3666
- "data-rowid": k.id,
3667
- "data-testid": k.name,
3668
- ...n.rowAttributes(k)
3669
- }), d = E({}), u = (k) => {
3670
- var x;
3671
- return (x = d.value) == null ? void 0 : x.$el.querySelector(`[data-rowid="${k.id}"]`);
3672
- }, y = (k) => {
3673
- const x = {
3674
- "data-testid": k.headerKey,
3675
- ...n.cellAttributes(k)
3763
+ }), h;
3764
+ }), c = (h) => ({
3765
+ "data-rowid": h.id,
3766
+ "data-testid": h.name,
3767
+ ...n.rowAttributes(h)
3768
+ }), d = N({}), u = (h) => {
3769
+ var A;
3770
+ return (A = d.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${h.id}"]`);
3771
+ }, g = (h) => {
3772
+ const A = {
3773
+ "data-testid": h.headerKey,
3774
+ ...n.cellAttributes(h)
3676
3775
  };
3677
- return k.colIndex === 0 && (x.style = {
3776
+ return h.colIndex === 0 && (A.style = {
3678
3777
  maxWidth: "250px",
3679
3778
  overflowX: "hidden",
3680
3779
  textOverflow: "ellipsis"
3681
- }), x;
3780
+ }), A;
3682
3781
  }, f = () => {
3683
3782
  a("empty-state-cta-clicked"), w();
3684
3783
  }, w = () => {
3685
3784
  a("clear-search-input");
3686
- }, h = j(() => n.disableRowClick ? void 0 : (k, x) => {
3687
- a("click:row", x);
3688
- }), A = (k) => {
3689
- a("sort", k);
3690
- }, { setTablePreferences: v, getTablePreferences: b } = ga(), I = j(() => {
3691
- const k = b(n.preferencesStorageKey);
3785
+ }, b = I(() => n.disableRowClick ? void 0 : (h, A) => {
3786
+ a("click:row", A);
3787
+ }), x = (h) => {
3788
+ a("sort", h);
3789
+ }, { setTablePreferences: _, getTablePreferences: k } = ga(), S = I(() => {
3790
+ const h = k(n.preferencesStorageKey);
3692
3791
  return {
3693
3792
  ...n.initialFetcherParams,
3694
- ...k
3793
+ ...h
3695
3794
  };
3696
- }), g = (k) => {
3697
- n.preferencesStorageKey && v(n.preferencesStorageKey, k);
3795
+ }), y = (h) => {
3796
+ n.preferencesStorageKey && _(n.preferencesStorageKey, h);
3698
3797
  };
3699
- return (k, x) => {
3700
- const re = F("KIcon"), B = F("KButton"), S = F("KDropdown"), L = F("KTable"), O = F("KCard");
3701
- return p(), q(O, {
3798
+ return (h, A) => {
3799
+ const re = E("KIcon"), H = E("KButton"), v = E("KDropdown"), R = E("KTable"), O = E("KCard");
3800
+ return p(), K(O, {
3702
3801
  class: "kong-ui-entity-base-table",
3703
3802
  title: e.title
3704
3803
  }, {
3705
3804
  default: m(() => [
3706
- $(L, {
3805
+ $(R, {
3707
3806
  ref_key: "tableRefs",
3708
3807
  ref: d,
3709
3808
  "cache-identifier": r.value,
3710
- "cell-attrs": y,
3809
+ "cell-attrs": g,
3711
3810
  "disable-pagination-page-jump": e.disablePaginationPageJump,
3712
3811
  "disable-sorting": e.disableSorting,
3713
3812
  "empty-state-action-button-icon": e.query ? "" : "plus",
@@ -3725,51 +3824,51 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
3725
3824
  "has-error": o.value.hasError,
3726
3825
  headers: s.value,
3727
3826
  "hide-pagination-when-optional": "",
3728
- "initial-fetcher-params": I.value,
3827
+ "initial-fetcher-params": S.value,
3729
3828
  "is-loading": e.isLoading,
3730
3829
  "pagination-type": e.paginationType,
3731
3830
  "row-attrs": c,
3732
3831
  "search-input": e.query,
3733
3832
  onKtableEmptyStateCtaClicked: f,
3734
- "onRow:click": h.value,
3735
- onSort: x[0] || (x[0] = (K) => A(K)),
3736
- "onUpdate:tablePreferences": g
3737
- }, Se({
3738
- toolbar: m(({ state: K }) => [
3739
- Fe(U("div", kl, [
3740
- H(k.$slots, "toolbar-filter", {}, void 0, !0),
3741
- k.$slots["toolbar-button"] ? (p(), T("div", Cl, [
3742
- H(k.$slots, "toolbar-button", {}, void 0, !0)
3743
- ])) : P("", !0)
3833
+ "onRow:click": b.value,
3834
+ onSort: A[0] || (A[0] = (B) => x(B)),
3835
+ "onUpdate:tablePreferences": y
3836
+ }, Ae({
3837
+ toolbar: m(({ state: B }) => [
3838
+ je(L("div", Il, [
3839
+ z(h.$slots, "toolbar-filter", {}, void 0, !0),
3840
+ h.$slots["toolbar-button"] ? (p(), T("div", _l, [
3841
+ z(h.$slots, "toolbar-button", {}, void 0, !0)
3842
+ ])) : U("", !0)
3744
3843
  ], 512), [
3745
- [Ne, l(K)]
3844
+ [$e, l(B)]
3746
3845
  ])
3747
3846
  ]),
3748
- actions: m(({ row: K, rowKey: R, rowValue: D }) => [
3749
- U("div", {
3847
+ actions: m(({ row: B, rowKey: q, rowValue: D }) => [
3848
+ L("div", {
3750
3849
  class: "actions-container",
3751
- "data-testid": K.name
3850
+ "data-testid": B.name
3752
3851
  }, [
3753
- $(S, {
3852
+ $(v, {
3754
3853
  "kpop-attributes": { placement: "bottomEnd" },
3755
3854
  width: e.dropdownMenuWidth
3756
3855
  }, {
3757
3856
  items: m(() => [
3758
- H(k.$slots, "actions", {
3759
- row: K,
3760
- rowKey: R,
3857
+ z(h.$slots, "actions", {
3858
+ row: B,
3859
+ rowKey: q,
3761
3860
  rowValue: D
3762
3861
  }, void 0, !0)
3763
3862
  ]),
3764
3863
  default: m(() => [
3765
- $(B, {
3864
+ $(H, {
3766
3865
  class: "actions-trigger",
3767
3866
  "data-testid": "overflow-actions-button",
3768
3867
  size: "small"
3769
3868
  }, {
3770
3869
  icon: m(() => [
3771
3870
  $(re, {
3772
- color: C(li),
3871
+ color: C(si),
3773
3872
  icon: "more",
3774
3873
  size: "16"
3775
3874
  }, null, 8, ["color"])
@@ -3779,24 +3878,24 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
3779
3878
  ]),
3780
3879
  _: 2
3781
3880
  }, 1032, ["width"])
3782
- ], 8, wl)
3881
+ ], 8, Tl)
3783
3882
  ]),
3784
3883
  _: 2
3785
3884
  }, [
3786
- de(e.tableHeaders, (K, R) => ({
3787
- name: R,
3788
- fn: m(({ row: D, rowKey: J, rowValue: W }) => [
3789
- $(bl, {
3790
- "key-name": String(R),
3885
+ de(e.tableHeaders, (B, q) => ({
3886
+ name: q,
3887
+ fn: m(({ row: D, rowKey: J, rowValue: Z }) => [
3888
+ $(xl, {
3889
+ "key-name": String(q),
3791
3890
  "row-el": u(D)
3792
3891
  }, {
3793
3892
  default: m(() => [
3794
- H(k.$slots, R, {
3893
+ z(h.$slots, q, {
3795
3894
  row: D,
3796
3895
  rowKey: J,
3797
- rowValue: W
3896
+ rowValue: Z
3798
3897
  }, () => [
3799
- z(N(W), 1)
3898
+ P(F(Z), 1)
3800
3899
  ], !0)
3801
3900
  ]),
3802
3901
  _: 2
@@ -3809,13 +3908,13 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
3809
3908
  }, 8, ["title"]);
3810
3909
  };
3811
3910
  }
3812
- }), Al = /* @__PURE__ */ ge(Sl, [["__scopeId", "data-v-ecfaa7cf"]]), Il = {
3911
+ }), $l = /* @__PURE__ */ ye(jl, [["__scopeId", "data-v-ecfaa7cf"]]), Ol = {
3813
3912
  key: 0,
3814
3913
  class: "kong-ui-entity-delete-error"
3815
- }, xl = {
3914
+ }, Ml = {
3816
3915
  key: 1,
3817
3916
  class: "description"
3818
- }, _l = /* @__PURE__ */ G({
3917
+ }, Fl = /* @__PURE__ */ W({
3819
3918
  __name: "EntityDeleteModal",
3820
3919
  props: {
3821
3920
  visible: {
@@ -3854,14 +3953,14 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
3854
3953
  },
3855
3954
  emits: ["cancel", "proceed"],
3856
3955
  setup(e, { emit: t }) {
3857
- const { i18nT: n } = ie.useI18n(), a = e, i = t, o = j(() => a.needConfirm ? a.entityName : ""), r = () => {
3956
+ const { i18nT: n } = ie.useI18n(), a = e, i = t, o = I(() => a.needConfirm ? a.entityName : ""), r = () => {
3858
3957
  i("cancel");
3859
3958
  }, l = () => {
3860
3959
  i("proceed");
3861
3960
  };
3862
3961
  return (s, c) => {
3863
- const d = F("KAlert"), u = F("KPrompt");
3864
- return p(), q(u, {
3962
+ const d = E("KAlert"), u = E("KPrompt");
3963
+ return p(), K(u, {
3865
3964
  "action-button-appearance": "danger",
3866
3965
  "action-button-disabled": e.actionPending,
3867
3966
  "action-button-text": "Yes, delete",
@@ -3873,49 +3972,49 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
3873
3972
  onProceed: l
3874
3973
  }, {
3875
3974
  default: m(() => [
3876
- e.error ? (p(), T("div", Il, [
3975
+ e.error ? (p(), T("div", Ol, [
3877
3976
  $(d, { appearance: "danger" }, {
3878
3977
  alertMessage: m(() => [
3879
- z(N(e.error), 1)
3978
+ P(F(e.error), 1)
3880
3979
  ]),
3881
3980
  _: 1
3882
3981
  })
3883
- ])) : P("", !0),
3982
+ ])) : U("", !0),
3884
3983
  $(C(n), {
3885
3984
  class: "message",
3886
3985
  keypath: a.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3887
3986
  tag: "p"
3888
- }, Se({
3987
+ }, Ae({
3889
3988
  entityType: m(() => [
3890
- z(N(a.entityType), 1)
3989
+ P(F(a.entityType), 1)
3891
3990
  ]),
3892
3991
  _: 2
3893
3992
  }, [
3894
3993
  a.entityName ? {
3895
3994
  name: "entityName",
3896
3995
  fn: m(() => [
3897
- U("strong", null, N(a.entityName), 1)
3996
+ L("strong", null, F(a.entityName), 1)
3898
3997
  ]),
3899
3998
  key: "0"
3900
3999
  } : void 0
3901
4000
  ]), 1032, ["keypath"]),
3902
- a.description || s.$slots.description ? (p(), T("div", xl, [
3903
- H(s.$slots, "description", {}, () => [
3904
- U("p", null, N(a.description), 1)
4001
+ a.description || s.$slots.description ? (p(), T("div", Ml, [
4002
+ z(s.$slots, "description", {}, () => [
4003
+ L("p", null, F(a.description), 1)
3905
4004
  ], !0)
3906
- ])) : P("", !0)
4005
+ ])) : U("", !0)
3907
4006
  ]),
3908
4007
  _: 3
3909
4008
  }, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
3910
4009
  };
3911
4010
  }
3912
- }), jl = /* @__PURE__ */ ge(_l, [["__scopeId", "data-v-efe8f34b"]]), Tl = {
4011
+ }), Nl = /* @__PURE__ */ ye(Fl, [["__scopeId", "data-v-efe8f34b"]]), El = {
3913
4012
  fill: "none",
3914
4013
  height: "20",
3915
4014
  viewBox: "0 0 20 20",
3916
4015
  width: "20",
3917
4016
  xmlns: "http://www.w3.org/2000/svg"
3918
- }, $l = {
4017
+ }, Kl = {
3919
4018
  id: "mask0_180_20349",
3920
4019
  height: "20",
3921
4020
  maskUnits: "userSpaceOnUse",
@@ -3923,35 +4022,35 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
3923
4022
  width: "20",
3924
4023
  x: "0",
3925
4024
  y: "0"
3926
- }, Ol = ["fill"], Ml = { mask: "url(#mask0_180_20349)" }, El = ["fill"], Zt = /* @__PURE__ */ G({
4025
+ }, ql = ["fill"], Bl = { mask: "url(#mask0_180_20349)" }, Ll = ["fill"], Xt = /* @__PURE__ */ W({
3927
4026
  __name: "IconFilter",
3928
4027
  props: {
3929
4028
  color: {
3930
4029
  type: String,
3931
- default: `var(--kong-ui-entity-filter-color, ${ri})`
4030
+ default: `var(--kong-ui-entity-filter-color, ${oi})`
3932
4031
  }
3933
4032
  },
3934
4033
  setup(e) {
3935
- return (t, n) => (p(), T("svg", Tl, [
3936
- U("mask", $l, [
3937
- U("rect", {
4034
+ return (t, n) => (p(), T("svg", El, [
4035
+ L("mask", Kl, [
4036
+ L("rect", {
3938
4037
  fill: e.color,
3939
4038
  height: "20",
3940
4039
  width: "20"
3941
- }, null, 8, Ol)
4040
+ }, null, 8, ql)
3942
4041
  ]),
3943
- U("g", Ml, [
3944
- U("path", {
4042
+ L("g", Bl, [
4043
+ L("path", {
3945
4044
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
3946
4045
  fill: e.color
3947
- }, null, 8, El)
4046
+ }, null, 8, Ll)
3948
4047
  ])
3949
4048
  ]));
3950
4049
  }
3951
- }), Fl = {
4050
+ }), Rl = {
3952
4051
  key: 1,
3953
4052
  class: "kong-ui-entity-filter"
3954
- }, Nl = { class: "menu-item-title" }, Kl = { class: "menu-item-indicator" }, ql = { class: "menu-item-body" }, Bl = ["for"], Ll = { class: "menu-item-buttons" }, Ul = { class: "filter-clear-button-container" }, Rl = /* @__PURE__ */ G({
4053
+ }, Ul = { class: "menu-item-title" }, Dl = { class: "menu-item-indicator" }, Vl = { class: "menu-item-body" }, Pl = ["for"], zl = { class: "menu-item-buttons" }, Hl = { class: "filter-clear-button-container" }, Jl = /* @__PURE__ */ W({
3955
4054
  __name: "EntityFilter",
3956
4055
  props: {
3957
4056
  // filter config, either exact match or fuzzy match
@@ -3971,50 +4070,52 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
3971
4070
  },
3972
4071
  emits: ["update:modelValue"],
3973
4072
  setup(e, { emit: t }) {
3974
- const { i18n: { t: n } } = ie.useI18n(), a = e, i = t, o = E(!1), r = E({}), l = j(() => {
3975
- const v = [];
3976
- return new URLSearchParams(a.modelValue).forEach((b, I) => {
3977
- b !== "" && v.push(I);
3978
- }), v;
3979
- }), s = j(() => {
3980
- const v = a.config.fields;
3981
- return Object.keys(v).filter((b) => v[b].searchable).map((b) => ({
3982
- label: v[b].label || b,
3983
- value: b
4073
+ const { i18n: { t: n } } = ie.useI18n(), a = e, i = t, o = N(!1), r = N({}), l = I(() => {
4074
+ const k = [];
4075
+ return new URLSearchParams(a.modelValue).forEach((S, y) => {
4076
+ S !== "" && k.push(y);
4077
+ }), k;
4078
+ }), s = I(() => {
4079
+ const k = a.config.fields;
4080
+ return Object.keys(k).filter((S) => k[S].searchable).map((S) => ({
4081
+ label: k[S].label || S,
4082
+ value: S
3984
4083
  }));
3985
4084
  });
3986
- xe(() => a.modelValue, (v) => {
3987
- r.value = {}, new URLSearchParams(v).forEach((b, I) => {
3988
- r.value[I] = b;
4085
+ Ie(() => a.modelValue, (k) => {
4086
+ r.value = {}, new URLSearchParams(k).forEach((S, y) => {
4087
+ r.value[y] = S;
3989
4088
  });
3990
4089
  });
3991
4090
  const c = () => {
3992
4091
  o.value = !o.value;
3993
- }, d = (v) => {
3994
- i("update:modelValue", v);
3995
- }, u = (v) => `filter-${v}`, y = (v) => {
3996
- var b, I;
3997
- return (((I = (b = a.config.schema) == null ? void 0 : b[v]) == null ? void 0 : I.values) ?? []).map((g) => ({
3998
- value: g,
3999
- label: g
4092
+ }, d = (k) => {
4093
+ i("update:modelValue", k);
4094
+ }, u = () => {
4095
+ d("");
4096
+ }, g = (k) => `filter-${k}`, f = (k) => {
4097
+ var S, y;
4098
+ return (((y = (S = a.config.schema) == null ? void 0 : S[k]) == null ? void 0 : y.values) ?? []).map((h) => ({
4099
+ value: h,
4100
+ label: h
4000
4101
  }));
4001
- }, f = (v) => {
4002
- var b, I;
4003
- return ((I = (b = a.config.schema) == null ? void 0 : b[v]) == null ? void 0 : I.type) ?? "text";
4004
- }, w = (v) => {
4102
+ }, w = (k) => {
4103
+ var S, y;
4104
+ return ((y = (S = a.config.schema) == null ? void 0 : S[k]) == null ? void 0 : y.type) ?? "text";
4105
+ }, b = (k) => {
4005
4106
  r.value = {
4006
4107
  ...r.value,
4007
- [v]: ""
4008
- }, A();
4009
- }, h = () => {
4010
- r.value = {}, A(!0);
4011
- }, A = (v = !1) => {
4012
- const b = Object.keys(r.value).reduce((I, g) => (r.value[g] && (I[g] = `${r.value[g]}`), I), {});
4013
- v && (o.value = !1), i("update:modelValue", new URLSearchParams(b).toString());
4108
+ [k]: ""
4109
+ }, _();
4110
+ }, x = () => {
4111
+ r.value = {}, _(!0);
4112
+ }, _ = (k = !1) => {
4113
+ const S = Object.keys(r.value).reduce((y, h) => (r.value[h] && (y[h] = `${r.value[h]}`), y), {});
4114
+ k && (o.value = !1), i("update:modelValue", new URLSearchParams(S).toString());
4014
4115
  };
4015
- return (v, b) => {
4016
- const I = F("KInput"), g = F("KButton"), k = F("KSelect"), x = F("KMenuItem"), re = F("KMenu");
4017
- return e.config.isExactMatch ? (p(), q(I, {
4116
+ return (k, S) => {
4117
+ const y = E("KInput"), h = E("KButton"), A = E("KSelect"), re = E("KMenuItem"), H = E("KMenu");
4118
+ return e.config.isExactMatch ? (p(), K(y, {
4018
4119
  key: 0,
4019
4120
  autocomplete: "off",
4020
4121
  class: "kong-ui-entity-filter-input",
@@ -4024,88 +4125,96 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4024
4125
  "onUpdate:modelValue": d
4025
4126
  }, {
4026
4127
  before: m(() => [
4027
- $(Zt)
4128
+ $(Xt)
4129
+ ]),
4130
+ after: m(() => [
4131
+ je($(C(cl), {
4132
+ class: "kong-ui-entity-filter-clear",
4133
+ onClick: u
4134
+ }, null, 512), [
4135
+ [$e, e.modelValue !== ""]
4136
+ ])
4028
4137
  ]),
4029
4138
  _: 1
4030
- }, 8, ["model-value", "placeholder"])) : (p(), T("div", Fl, [
4031
- $(g, {
4139
+ }, 8, ["model-value", "placeholder"])) : (p(), T("div", Rl, [
4140
+ $(h, {
4032
4141
  appearance: "tertiary",
4033
4142
  "data-testid": "filter-button",
4034
4143
  onClick: c
4035
4144
  }, {
4036
4145
  default: m(() => [
4037
- $(Zt),
4038
- z(" " + N(C(n)("filter.filterButtonText")) + " " + N(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
4146
+ $(Xt),
4147
+ P(" " + F(C(n)("filter.filterButtonText")) + " " + F(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
4039
4148
  ]),
4040
4149
  _: 1
4041
4150
  }),
4042
- Fe(U("div", {
4151
+ je(L("div", {
4043
4152
  class: "kong-ui-entity-filter-backdrop",
4044
4153
  onClick: c
4045
4154
  }, null, 512), [
4046
- [Ne, o.value]
4155
+ [$e, o.value]
4047
4156
  ]),
4048
- Fe($(re, { class: "kong-ui-entity-filter-menu" }, {
4157
+ je($(H, { class: "kong-ui-entity-filter-menu" }, {
4049
4158
  body: m(() => [
4050
- (p(!0), T(fe, null, de(s.value, (B, S) => (p(), q(x, {
4051
- key: B.value,
4052
- "data-testid": B.value,
4159
+ (p(!0), T(fe, null, de(s.value, (v, R) => (p(), K(re, {
4160
+ key: v.value,
4161
+ "data-testid": v.value,
4053
4162
  expandable: "",
4054
- "last-menu-item": S === s.value.length - 1
4163
+ "last-menu-item": R === s.value.length - 1
4055
4164
  }, {
4056
4165
  itemTitle: m(() => [
4057
- U("span", Nl, [
4058
- z(N(B.label) + " ", 1),
4059
- Fe(U("span", Kl, null, 512), [
4060
- [Ne, l.value.includes(B.value)]
4166
+ L("span", Ul, [
4167
+ P(F(v.label) + " ", 1),
4168
+ je(L("span", Dl, null, 512), [
4169
+ [$e, l.value.includes(v.value)]
4061
4170
  ])
4062
4171
  ])
4063
4172
  ]),
4064
4173
  itemBody: m(() => {
4065
- var L, O;
4174
+ var O, B;
4066
4175
  return [
4067
- U("div", ql, [
4068
- U("label", {
4176
+ L("div", Vl, [
4177
+ L("label", {
4069
4178
  class: "menu-item-label",
4070
- for: u(B.value)
4071
- }, N(C(n)("filter.fieldLabel")), 9, Bl),
4072
- ((O = (L = e.config.schema) == null ? void 0 : L[B.value]) == null ? void 0 : O.type) === "select" ? (p(), q(k, {
4179
+ for: g(v.value)
4180
+ }, F(C(n)("filter.fieldLabel")), 9, Pl),
4181
+ ((B = (O = e.config.schema) == null ? void 0 : O[v.value]) == null ? void 0 : B.type) === "select" ? (p(), K(A, {
4073
4182
  key: 0,
4074
- id: u(B.value),
4075
- modelValue: r.value[B.value],
4076
- "onUpdate:modelValue": (K) => r.value[B.value] = K,
4077
- items: y(B.value),
4183
+ id: g(v.value),
4184
+ modelValue: r.value[v.value],
4185
+ "onUpdate:modelValue": (q) => r.value[v.value] = q,
4186
+ items: f(v.value),
4078
4187
  placeholder: C(n)("filter.selectPlaceholder")
4079
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (p(), q(I, {
4188
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (p(), K(y, {
4080
4189
  key: 1,
4081
- id: u(B.value),
4082
- modelValue: r.value[B.value],
4083
- "onUpdate:modelValue": (K) => r.value[B.value] = K,
4190
+ id: g(v.value),
4191
+ modelValue: r.value[v.value],
4192
+ "onUpdate:modelValue": (q) => r.value[v.value] = q,
4084
4193
  autocomplete: "off",
4085
4194
  placeholder: C(n)("filter.inputPlaceholder"),
4086
- type: f(B.value)
4195
+ type: w(v.value)
4087
4196
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
4088
4197
  ]),
4089
- U("div", Ll, [
4090
- $(g, {
4198
+ L("div", zl, [
4199
+ $(h, {
4091
4200
  appearance: "tertiary",
4092
4201
  "data-testid": "apply-filter",
4093
4202
  size: "small",
4094
- onClick: b[0] || (b[0] = (K) => A(!0))
4203
+ onClick: S[0] || (S[0] = (q) => _(!0))
4095
4204
  }, {
4096
4205
  default: m(() => [
4097
- z(N(C(n)("filter.applyButtonText")), 1)
4206
+ P(F(C(n)("filter.applyButtonText")), 1)
4098
4207
  ]),
4099
4208
  _: 1
4100
4209
  }),
4101
- $(g, {
4210
+ $(h, {
4102
4211
  appearance: "tertiary",
4103
4212
  "data-testid": "clear-filter",
4104
4213
  size: "small",
4105
- onClick: (K) => w(B.value)
4214
+ onClick: (q) => b(v.value)
4106
4215
  }, {
4107
4216
  default: m(() => [
4108
- z(N(C(n)("filter.clearButtonText")), 1)
4217
+ P(F(C(n)("filter.clearButtonText")), 1)
4109
4218
  ]),
4110
4219
  _: 2
4111
4220
  }, 1032, ["onClick"])
@@ -4116,14 +4225,14 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4116
4225
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
4117
4226
  ]),
4118
4227
  actionButton: m(() => [
4119
- U("div", Ul, [
4120
- $(g, {
4228
+ L("div", Hl, [
4229
+ $(h, {
4121
4230
  appearance: "tertiary",
4122
4231
  size: "small",
4123
- onClick: h
4232
+ onClick: x
4124
4233
  }, {
4125
4234
  default: m(() => [
4126
- z(N(C(n)("filter.clearAllButtonText")), 1)
4235
+ P(F(C(n)("filter.clearAllButtonText")), 1)
4127
4236
  ]),
4128
4237
  _: 1
4129
4238
  })
@@ -4131,12 +4240,12 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4131
4240
  ]),
4132
4241
  _: 1
4133
4242
  }, 512), [
4134
- [Ne, o.value]
4243
+ [$e, o.value]
4135
4244
  ])
4136
4245
  ]));
4137
4246
  };
4138
4247
  }
4139
- }), Dl = /* @__PURE__ */ ge(Rl, [["__scopeId", "data-v-e9512e8f"]]), Re = /* @__PURE__ */ G({
4248
+ }), Yl = /* @__PURE__ */ ye(Jl, [["__scopeId", "data-v-206cc415"]]), Ue = /* @__PURE__ */ W({
4140
4249
  __name: "PermissionsWrapper",
4141
4250
  props: {
4142
4251
  /**
@@ -4158,24 +4267,24 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4158
4267
  }
4159
4268
  },
4160
4269
  setup(e) {
4161
- const t = e, n = E(void 0), a = j(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4162
- return xe(() => t.authFunction, async () => {
4270
+ const t = e, n = N(void 0), a = I(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4271
+ return Ie(() => t.authFunction, async () => {
4163
4272
  n.value = await t.authFunction();
4164
- }, { immediate: !0 }), (i, o) => a.value ? H(i.$slots, "default", {
4273
+ }, { immediate: !0 }), (i, o) => a.value ? z(i.$slots, "default", {
4165
4274
  key: 0,
4166
4275
  isAllowed: n.value
4167
- }) : P("", !0);
4276
+ }) : U("", !0);
4168
4277
  }
4169
- }), Vl = { class: "form-section-wrapper" }, Pl = {
4278
+ }), Wl = { class: "form-section-wrapper" }, Zl = {
4170
4279
  key: 0,
4171
4280
  class: "form-section-title"
4172
- }, zl = {
4281
+ }, Gl = {
4173
4282
  key: 1,
4174
4283
  class: "form-section-description"
4175
- }, Hl = {
4284
+ }, Ql = {
4176
4285
  key: 2,
4177
4286
  class: "form-section-footer"
4178
- }, Jl = { class: "form-section-content" }, Yl = /* @__PURE__ */ G({
4287
+ }, Xl = { class: "form-section-content" }, es = /* @__PURE__ */ W({
4179
4288
  __name: "EntityFormSection",
4180
4289
  props: {
4181
4290
  title: {
@@ -4200,32 +4309,32 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4200
4309
  }
4201
4310
  },
4202
4311
  setup(e) {
4203
- const t = We();
4312
+ const t = Ze();
4204
4313
  return (n, a) => (p(), T("fieldset", {
4205
4314
  class: ke(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
4206
4315
  }, [
4207
- U("div", Vl, [
4208
- e.hideInfoHeader ? P("", !0) : (p(), T("div", {
4316
+ L("div", Wl, [
4317
+ e.hideInfoHeader ? U("", !0) : (p(), T("div", {
4209
4318
  key: 0,
4210
4319
  class: ke(["form-section-info", { sticky: e.stickyInfoHeader }])
4211
4320
  }, [
4212
- e.title ? (p(), T("h4", Pl, N(e.title), 1)) : P("", !0),
4213
- e.description || C(t).description ? (p(), T("div", zl, [
4214
- H(n.$slots, "description", {}, () => [
4215
- U("p", null, N(e.description), 1)
4321
+ e.title ? (p(), T("h4", Zl, F(e.title), 1)) : U("", !0),
4322
+ e.description || C(t).description ? (p(), T("div", Gl, [
4323
+ z(n.$slots, "description", {}, () => [
4324
+ L("p", null, F(e.description), 1)
4216
4325
  ], !0)
4217
- ])) : P("", !0),
4218
- C(t).footer ? (p(), T("div", Hl, [
4219
- H(n.$slots, "footer", {}, void 0, !0)
4220
- ])) : P("", !0)
4326
+ ])) : U("", !0),
4327
+ C(t).footer ? (p(), T("div", Ql, [
4328
+ z(n.$slots, "footer", {}, void 0, !0)
4329
+ ])) : U("", !0)
4221
4330
  ], 2)),
4222
- U("div", Jl, [
4223
- H(n.$slots, "default", {}, void 0, !0)
4331
+ L("div", Xl, [
4332
+ z(n.$slots, "default", {}, void 0, !0)
4224
4333
  ])
4225
4334
  ])
4226
4335
  ], 2));
4227
4336
  }
4228
- }), Wl = /* @__PURE__ */ ge(Yl, [["__scopeId", "data-v-3565daa7"]]), { useAxios: ea, useDeleteUrlBuilder: Zl, useErrors: Gl, useExternalLinkCreator: us, useFetchUrlBuilder: ds, useFetcher: Ql, useDebouncedFilter: ps, useStringHelpers: fs, useHelpers: gs, useGatewayFeatureSupported: ys, useTruncationDetector: ms } = ie, Xl = { class: "kong-ui-entities-key-sets-list" }, es = { key: 1 }, ts = /* @__PURE__ */ G({
4337
+ }), ts = /* @__PURE__ */ ye(es, [["__scopeId", "data-v-3565daa7"]]), { useAxios: ta, useDeleteUrlBuilder: ns, useErrors: as, useExternalLinkCreator: ms, useFetchUrlBuilder: hs, useFetcher: is, useDebouncedFilter: vs, useStringHelpers: bs, useHelpers: ks, useGatewayFeatureSupported: Cs, useTruncationDetector: ws } = ie, rs = { class: "kong-ui-entities-key-sets-list" }, os = { key: 1 }, ls = /* @__PURE__ */ W({
4229
4338
  __name: "KeySetList",
4230
4339
  props: {
4231
4340
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4271,18 +4380,18 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4271
4380
  },
4272
4381
  emits: ["error", "copy:success", "copy:error", "delete:success"],
4273
4382
  setup(e, { emit: t }) {
4274
- var wt;
4275
- const n = t, a = e, { i18n: { t: i } } = pt.useI18n(), o = ut(), { axiosInstance: r } = ea({
4276
- headers: (wt = a.config) == null ? void 0 : wt.requestHeaders
4277
- }), l = E(1), s = j(() => a.config.app !== "kongManager" || !!a.config.disableSorting), c = {
4383
+ var It;
4384
+ const n = t, a = e, { i18n: { t: i } } = mt.useI18n(), o = yt(), { axiosInstance: r } = ta({
4385
+ headers: (It = a.config) == null ? void 0 : It.requestHeaders
4386
+ }), l = N(1), s = I(() => a.config.app !== "kongManager" || !!a.config.disableSorting), c = {
4278
4387
  name: { label: i("keySets.list.table_headers.name"), searchable: !0, sortable: !0 },
4279
4388
  tags: { label: i("keySets.list.table_headers.tags") },
4280
4389
  id: { label: i("keySets.list.table_headers.id"), sortable: !0 }
4281
- }, d = c, u = j(() => {
4390
+ }, d = c, u = I(() => {
4282
4391
  var V, ee;
4283
4392
  let M = `${a.config.apiBaseUrl}${Ve.list[a.config.app]}`;
4284
4393
  return a.config.app === "konnect" ? M = M.replace(/{controlPlaneId}/gi, ((V = a.config) == null ? void 0 : V.controlPlaneId) || "") : a.config.app === "kongManager" && (M = M.replace(/\/{workspace}/gi, (ee = a.config) != null && ee.workspace ? `/${a.config.workspace}` : "")), M;
4285
- }), y = E(""), f = j(() => {
4394
+ }), g = N(""), f = I(() => {
4286
4395
  const M = a.config.app === "konnect" || a.config.isExactMatch;
4287
4396
  if (M)
4288
4397
  return {
@@ -4295,18 +4404,18 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4295
4404
  fields: V,
4296
4405
  schema: a.config.filterSchema
4297
4406
  };
4298
- }), { fetcher: w, fetcherState: h } = Ql(a.config, u.value), A = () => {
4299
- y.value = "";
4300
- }, v = () => {
4407
+ }), { fetcher: w, fetcherState: b } = is(a.config, u.value), x = () => {
4408
+ g.value = "";
4409
+ }, _ = () => {
4301
4410
  l.value++;
4302
- }, b = E(null), I = (M, V) => {
4411
+ }, k = N(null), S = (M, V) => {
4303
4412
  const ee = M.id;
4304
4413
  if (!V(ee)) {
4305
4414
  re(M, "id");
4306
4415
  return;
4307
4416
  }
4308
- x(M, "id");
4309
- }, g = (M, V) => {
4417
+ A(M, "id");
4418
+ }, y = (M, V) => {
4310
4419
  const ee = JSON.stringify(M);
4311
4420
  if (!V(ee)) {
4312
4421
  n("copy:error", {
@@ -4319,10 +4428,10 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4319
4428
  entity: M,
4320
4429
  message: i("keySets.copy.success_brief")
4321
4430
  });
4322
- }, k = (M, V, ee) => {
4323
- const { type: ye } = M;
4324
- ye === "success" ? x(V, ee) : re(V, ee);
4325
- }, x = (M, V) => {
4431
+ }, h = (M, V, ee) => {
4432
+ const { type: ge } = M;
4433
+ ge === "success" ? A(V, ee) : re(V, ee);
4434
+ }, A = (M, V) => {
4326
4435
  n("copy:success", {
4327
4436
  entity: M,
4328
4437
  field: V,
@@ -4334,88 +4443,88 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4334
4443
  field: V,
4335
4444
  message: i("keySets.errors.copy")
4336
4445
  });
4337
- }, B = async (M) => {
4446
+ }, H = async (M) => {
4338
4447
  var ee;
4339
4448
  await ((ee = a.canRetrieve) == null ? void 0 : ee.call(a, M)) && o.push(a.config.getViewRoute(M.id));
4340
- }, S = (M) => ({
4449
+ }, v = (M) => ({
4341
4450
  label: i("keySets.actions.view"),
4342
4451
  to: a.config.getViewRoute(M)
4343
- }), L = (M) => ({
4452
+ }), R = (M) => ({
4344
4453
  label: i("keySets.actions.edit"),
4345
4454
  to: a.config.getEditRoute(M)
4346
- }), O = E(void 0), K = E(!1), R = E(!1), D = E(""), J = Zl(a.config, u.value), W = (M) => {
4347
- O.value = M, K.value = !0;
4455
+ }), O = N(void 0), B = N(!1), q = N(!1), D = N(""), J = ns(a.config, u.value), Z = (M) => {
4456
+ O.value = M, B.value = !0;
4348
4457
  }, ae = () => {
4349
- K.value = !1;
4458
+ B.value = !1;
4350
4459
  }, X = async () => {
4351
4460
  var M, V, ee;
4352
4461
  if ((M = O.value) != null && M.id) {
4353
- R.value = !0;
4462
+ q.value = !0;
4354
4463
  try {
4355
- await r.delete(J(O.value.id)), R.value = !1, K.value = !1, l.value++, n("delete:success", O.value);
4356
- } catch (ye) {
4357
- D.value = ((ee = (V = ye.response) == null ? void 0 : V.data) == null ? void 0 : ee.message) || ye.message || i("keySets.errors.delete"), n("error", ye);
4464
+ await r.delete(J(O.value.id)), q.value = !1, B.value = !1, l.value++, n("delete:success", O.value);
4465
+ } catch (ge) {
4466
+ D.value = ((ee = (V = ge.response) == null ? void 0 : V.data) == null ? void 0 : ee.message) || ge.message || i("keySets.errors.delete"), n("error", ge);
4358
4467
  } finally {
4359
- R.value = !1;
4468
+ q.value = !1;
4360
4469
  }
4361
4470
  }
4362
- }, Z = E(!0);
4363
- xe(h, (M) => {
4364
- var V, ee, ye, Ue;
4365
- if (Array.isArray((V = M == null ? void 0 : M.response) == null ? void 0 : V.data) && (Z.value = M.response.data.length > 0), M.status === we.Error) {
4366
- b.value = {
4471
+ }, G = N(!0);
4472
+ Ie(b, (M) => {
4473
+ var V, ee, ge, Re;
4474
+ if (Array.isArray((V = M == null ? void 0 : M.response) == null ? void 0 : V.data) && (G.value = M.response.data.length > 0), M.status === Se.Error) {
4475
+ k.value = {
4367
4476
  title: i("keySets.errors.general")
4368
- }, (Ue = (ye = (ee = M.error) == null ? void 0 : ee.response) == null ? void 0 : ye.data) != null && Ue.message && (b.value.message = M.error.response.data.message), n("error", M.error);
4477
+ }, (Re = (ge = (ee = M.error) == null ? void 0 : ee.response) == null ? void 0 : ge.data) != null && Re.message && (k.value.message = M.error.response.data.message), n("error", M.error);
4369
4478
  return;
4370
4479
  }
4371
- b.value = null;
4480
+ k.value = null;
4372
4481
  });
4373
- const le = E({
4482
+ const le = N({
4374
4483
  ctaPath: a.config.createRoute,
4375
4484
  ctaText: void 0,
4376
4485
  message: i("keySets.list.empty_state.description"),
4377
4486
  title: i("keySets.title")
4378
4487
  });
4379
- return ct(async () => {
4488
+ return ut(async () => {
4380
4489
  await a.canCreate() && (le.value.title = i("keySets.list.empty_state.title"), le.value.ctaText = i("keySets.actions.create"));
4381
4490
  }), (M, V) => {
4382
- const ee = F("KButton"), ye = F("KBadge"), Ue = F("KTruncate"), na = F("CopyUuid"), Me = F("KDropdownItem"), St = F("KClipboardProvider");
4383
- return p(), T("div", Xl, [
4384
- $(C(Al), {
4491
+ const ee = E("KButton"), ge = E("KBadge"), Re = E("KTruncate"), aa = E("CopyUuid"), Ne = E("KDropdownItem"), _t = E("KClipboardProvider");
4492
+ return p(), T("div", rs, [
4493
+ $(C($l), {
4385
4494
  "cache-identifier": e.cacheIdentifier,
4386
4495
  "disable-pagination-page-jump": "",
4387
4496
  "disable-sorting": s.value,
4388
4497
  "empty-state-options": le.value,
4389
4498
  "enable-entity-actions": "",
4390
- "error-message": b.value,
4499
+ "error-message": k.value,
4391
4500
  fetcher: C(w),
4392
4501
  "fetcher-cache-key": l.value,
4393
4502
  "pagination-type": "offset",
4394
4503
  "preferences-storage-key": "kong-ui-entities-key-sets-list",
4395
- query: y.value,
4504
+ query: g.value,
4396
4505
  "table-headers": C(d),
4397
4506
  "use-action-outside": e.useActionOutside,
4398
- onClearSearchInput: A,
4399
- "onClick:row": V[2] || (V[2] = (Q) => B(Q)),
4400
- onSort: v
4507
+ onClearSearchInput: x,
4508
+ "onClick:row": V[2] || (V[2] = (Q) => H(Q)),
4509
+ onSort: _
4401
4510
  }, {
4402
4511
  "toolbar-filter": m(() => [
4403
- $(C(Dl), {
4404
- modelValue: y.value,
4405
- "onUpdate:modelValue": V[0] || (V[0] = (Q) => y.value = Q),
4512
+ $(C(Yl), {
4513
+ modelValue: g.value,
4514
+ "onUpdate:modelValue": V[0] || (V[0] = (Q) => g.value = Q),
4406
4515
  config: f.value
4407
4516
  }, null, 8, ["modelValue", "config"])
4408
4517
  ]),
4409
4518
  "toolbar-button": m(() => [
4410
- (p(), q(Ie(e.useActionOutside ? "Teleport" : "div"), {
4519
+ (p(), K(Ce(e.useActionOutside ? "Teleport" : "div"), {
4411
4520
  to: e.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
4412
4521
  }, {
4413
4522
  default: m(() => [
4414
- $(C(Re), {
4523
+ $(C(Ue), {
4415
4524
  "auth-function": () => e.canCreate()
4416
4525
  }, {
4417
4526
  default: m(() => [
4418
- Fe($(ee, {
4527
+ je($(ee, {
4419
4528
  appearance: "primary",
4420
4529
  "data-testid": "toolbar-add-key-set",
4421
4530
  icon: "plus",
@@ -4423,11 +4532,11 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4423
4532
  to: e.config.createRoute
4424
4533
  }, {
4425
4534
  default: m(() => [
4426
- z(N(C(i)("keySets.list.toolbar_actions.new_key_set")), 1)
4535
+ P(F(C(i)("keySets.list.toolbar_actions.new_key_set")), 1)
4427
4536
  ]),
4428
4537
  _: 1
4429
4538
  }, 8, ["to"]), [
4430
- [Ne, Z.value]
4539
+ [$e, G.value]
4431
4540
  ])
4432
4541
  ]),
4433
4542
  _: 1
@@ -4437,96 +4546,96 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4437
4546
  }, 8, ["to"]))
4438
4547
  ]),
4439
4548
  name: m(({ rowValue: Q }) => [
4440
- U("b", null, N(Q ?? "-"), 1)
4549
+ L("b", null, F(Q ?? "-"), 1)
4441
4550
  ]),
4442
4551
  tags: m(({ rowValue: Q }) => [
4443
- (Q == null ? void 0 : Q.length) > 0 ? (p(), q(Ue, { key: 0 }, {
4552
+ (Q == null ? void 0 : Q.length) > 0 ? (p(), K(Re, { key: 0 }, {
4444
4553
  default: m(() => [
4445
- (p(!0), T(fe, null, de(Q, (he) => (p(), q(ye, {
4554
+ (p(!0), T(fe, null, de(Q, (he) => (p(), K(ge, {
4446
4555
  key: he,
4447
4556
  onClick: V[1] || (V[1] = De(() => {
4448
4557
  }, ["stop"]))
4449
4558
  }, {
4450
4559
  default: m(() => [
4451
- z(N(he), 1)
4560
+ P(F(he), 1)
4452
4561
  ]),
4453
4562
  _: 2
4454
4563
  }, 1024))), 128))
4455
4564
  ]),
4456
4565
  _: 2
4457
- }, 1024)) : (p(), T("span", es, "-"))
4566
+ }, 1024)) : (p(), T("span", os, "-"))
4458
4567
  ]),
4459
4568
  id: m(({ row: Q, rowValue: he }) => [
4460
- $(na, {
4461
- notify: (Ge) => k(Ge, Q, "id"),
4569
+ $(aa, {
4570
+ notify: (Qe) => h(Qe, Q, "id"),
4462
4571
  truncated: !1,
4463
4572
  uuid: he
4464
4573
  }, null, 8, ["notify", "uuid"])
4465
4574
  ]),
4466
4575
  actions: m(({ row: Q }) => [
4467
- $(St, null, {
4576
+ $(_t, null, {
4468
4577
  default: m(({ copyToClipboard: he }) => [
4469
- $(Me, {
4578
+ $(Ne, {
4470
4579
  "data-testid": "action-entity-copy-id",
4471
- onClick: (Ge) => I(Q, he)
4580
+ onClick: (Qe) => S(Q, he)
4472
4581
  }, {
4473
4582
  default: m(() => [
4474
- z(N(C(i)("keySets.actions.copy_id")), 1)
4583
+ P(F(C(i)("keySets.actions.copy_id")), 1)
4475
4584
  ]),
4476
4585
  _: 2
4477
4586
  }, 1032, ["onClick"])
4478
4587
  ]),
4479
4588
  _: 2
4480
4589
  }, 1024),
4481
- $(St, null, {
4590
+ $(_t, null, {
4482
4591
  default: m(({ copyToClipboard: he }) => [
4483
- $(Me, {
4592
+ $(Ne, {
4484
4593
  "data-testid": "action-entity-copy-json",
4485
- onClick: (Ge) => g(Q, he)
4594
+ onClick: (Qe) => y(Q, he)
4486
4595
  }, {
4487
4596
  default: m(() => [
4488
- z(N(C(i)("keySets.actions.copy_json")), 1)
4597
+ P(F(C(i)("keySets.actions.copy_json")), 1)
4489
4598
  ]),
4490
4599
  _: 2
4491
4600
  }, 1032, ["onClick"])
4492
4601
  ]),
4493
4602
  _: 2
4494
4603
  }, 1024),
4495
- $(C(Re), {
4604
+ $(C(Ue), {
4496
4605
  "auth-function": () => e.canRetrieve(Q)
4497
4606
  }, {
4498
4607
  default: m(() => [
4499
- $(Me, {
4608
+ $(Ne, {
4500
4609
  "data-testid": "action-entity-view",
4501
4610
  "has-divider": "",
4502
- item: S(Q.id)
4611
+ item: v(Q.id)
4503
4612
  }, null, 8, ["item"])
4504
4613
  ]),
4505
4614
  _: 2
4506
4615
  }, 1032, ["auth-function"]),
4507
- $(C(Re), {
4616
+ $(C(Ue), {
4508
4617
  "auth-function": () => e.canEdit(Q)
4509
4618
  }, {
4510
4619
  default: m(() => [
4511
- $(Me, {
4620
+ $(Ne, {
4512
4621
  "data-testid": "action-entity-edit",
4513
- item: L(Q.id)
4622
+ item: R(Q.id)
4514
4623
  }, null, 8, ["item"])
4515
4624
  ]),
4516
4625
  _: 2
4517
4626
  }, 1032, ["auth-function"]),
4518
- $(C(Re), {
4627
+ $(C(Ue), {
4519
4628
  "auth-function": () => e.canDelete(Q)
4520
4629
  }, {
4521
4630
  default: m(() => [
4522
- $(Me, {
4631
+ $(Ne, {
4523
4632
  danger: "",
4524
4633
  "data-testid": "action-entity-delete",
4525
4634
  "has-divider": "",
4526
- onClick: (he) => W(Q)
4635
+ onClick: (he) => Z(Q)
4527
4636
  }, {
4528
4637
  default: m(() => [
4529
- z(N(C(i)("keySets.actions.delete")), 1)
4638
+ P(F(C(i)("keySets.actions.delete")), 1)
4530
4639
  ]),
4531
4640
  _: 2
4532
4641
  }, 1032, ["onClick"])
@@ -4536,26 +4645,26 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4536
4645
  ]),
4537
4646
  _: 1
4538
4647
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
4539
- $(C(jl), {
4540
- "action-pending": R.value,
4648
+ $(C(Nl), {
4649
+ "action-pending": q.value,
4541
4650
  description: C(i)("keySets.delete.description"),
4542
4651
  "entity-name": O.value && (O.value.name || O.value.id),
4543
4652
  "entity-type": C(an).KeySet,
4544
4653
  error: D.value,
4545
4654
  title: C(i)("keySets.delete.title"),
4546
- visible: K.value,
4655
+ visible: B.value,
4547
4656
  onCancel: ae,
4548
4657
  onProceed: X
4549
4658
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
4550
4659
  ]);
4551
4660
  };
4552
4661
  }
4553
- }), ta = (e, t) => {
4662
+ }), na = (e, t) => {
4554
4663
  const n = e.__vccOpts || e;
4555
4664
  for (const [a, i] of t)
4556
4665
  n[a] = i;
4557
4666
  return n;
4558
- }, hs = /* @__PURE__ */ ta(ts, [["__scopeId", "data-v-18bd7bd2"]]), ns = { class: "kong-ui-entities-key-sets-form" }, as = /* @__PURE__ */ G({
4667
+ }, Ss = /* @__PURE__ */ na(ls, [["__scopeId", "data-v-18bd7bd2"]]), ss = { class: "kong-ui-entities-key-sets-form" }, cs = /* @__PURE__ */ W({
4559
4668
  __name: "KeySetForm",
4560
4669
  props: {
4561
4670
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4573,76 +4682,76 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4573
4682
  },
4574
4683
  emits: ["update", "error", "loading"],
4575
4684
  setup(e, { emit: t }) {
4576
- var b;
4577
- const n = t, a = e, i = ut(), { i18n: { t: o } } = pt.useI18n(), { getMessageFromError: r } = Gl(), { axiosInstance: l } = ea({
4578
- headers: (b = a.config) == null ? void 0 : b.requestHeaders
4579
- }), s = j(() => Ve.form[a.config.app].edit), c = j(() => a.keySetId ? at.Edit : at.Create), d = At({
4685
+ var k;
4686
+ const n = t, a = e, i = yt(), { i18n: { t: o } } = mt.useI18n(), { getMessageFromError: r } = as(), { axiosInstance: l } = ta({
4687
+ headers: (k = a.config) == null ? void 0 : k.requestHeaders
4688
+ }), s = I(() => Ve.form[a.config.app].edit), c = I(() => a.keySetId ? it.Edit : it.Create), d = Tt({
4580
4689
  fields: {
4581
4690
  name: "",
4582
4691
  tags: ""
4583
4692
  },
4584
4693
  isReadonly: !1,
4585
4694
  errorMessage: ""
4586
- }), u = At({
4695
+ }), u = Tt({
4587
4696
  name: "",
4588
4697
  tags: ""
4589
- }), y = j(() => JSON.stringify(d.fields) !== JSON.stringify(u) && !!d.fields.name), f = (I) => {
4590
- var g;
4591
- d.fields.name = (I == null ? void 0 : I.name) || "", d.fields.tags = ((g = I == null ? void 0 : I.tags) == null ? void 0 : g.join(", ")) || "", Object.assign(u, d.fields);
4698
+ }), g = I(() => JSON.stringify(d.fields) !== JSON.stringify(u) && !!d.fields.name), f = (S) => {
4699
+ var y;
4700
+ d.fields.name = (S == null ? void 0 : S.name) || "", d.fields.tags = ((y = S == null ? void 0 : S.tags) == null ? void 0 : y.join(", ")) || "", Object.assign(u, d.fields);
4592
4701
  }, w = () => {
4593
4702
  i.push(a.config.cancelRoute);
4594
- }, h = j(() => {
4595
- var g, k;
4596
- let I = `${a.config.apiBaseUrl}${Ve.form[a.config.app][c.value]}`;
4597
- return a.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((g = a.config) == null ? void 0 : g.controlPlaneId) || "") : a.config.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, (k = a.config) != null && k.workspace ? `/${a.config.workspace}` : "")), I = I.replace(/{id}/gi, a.keySetId), I;
4598
- }), A = j(() => {
4599
- var I, g, k;
4703
+ }, b = I(() => {
4704
+ var y, h;
4705
+ let S = `${a.config.apiBaseUrl}${Ve.form[a.config.app][c.value]}`;
4706
+ return a.config.app === "konnect" ? S = S.replace(/{controlPlaneId}/gi, ((y = a.config) == null ? void 0 : y.controlPlaneId) || "") : a.config.app === "kongManager" && (S = S.replace(/\/{workspace}/gi, (h = a.config) != null && h.workspace ? `/${a.config.workspace}` : "")), S = S.replace(/{id}/gi, a.keySetId), S;
4707
+ }), x = I(() => {
4708
+ var S, y, h;
4600
4709
  return {
4601
4710
  name: d.fields.name,
4602
- tags: ((k = (g = (I = d.fields.tags) == null ? void 0 : I.split(",")) == null ? void 0 : g.map((x) => String(x || "").trim())) == null ? void 0 : k.filter((x) => x !== "")) || ""
4711
+ tags: ((h = (y = (S = d.fields.tags) == null ? void 0 : S.split(",")) == null ? void 0 : y.map((A) => String(A || "").trim())) == null ? void 0 : h.filter((A) => A !== "")) || ""
4603
4712
  };
4604
- }), v = async () => {
4605
- var I, g;
4713
+ }), _ = async () => {
4714
+ var S, y;
4606
4715
  try {
4607
4716
  d.isReadonly = !0;
4608
- let k;
4609
- if (c.value === "create" ? k = await l.post(h.value, A.value) : c.value === "edit" && (k = ((I = a.config) == null ? void 0 : I.app) === "konnect" ? await l.put(h.value, A.value) : await l.patch(h.value, A.value)), k) {
4610
- const { data: x } = k;
4611
- d.fields.name = (x == null ? void 0 : x.name) || "", d.fields.tags = ((g = x == null ? void 0 : x.tags) == null ? void 0 : g.join(", ")) || "", Object.assign(u, d.fields), n("update", k == null ? void 0 : k.data);
4717
+ let h;
4718
+ if (c.value === "create" ? h = await l.post(b.value, x.value) : c.value === "edit" && (h = ((S = a.config) == null ? void 0 : S.app) === "konnect" ? await l.put(b.value, x.value) : await l.patch(b.value, x.value)), h) {
4719
+ const { data: A } = h;
4720
+ d.fields.name = (A == null ? void 0 : A.name) || "", d.fields.tags = ((y = A == null ? void 0 : A.tags) == null ? void 0 : y.join(", ")) || "", Object.assign(u, d.fields), n("update", h == null ? void 0 : h.data);
4612
4721
  }
4613
- } catch (k) {
4614
- d.errorMessage = r(k), n("error", k);
4722
+ } catch (h) {
4723
+ d.errorMessage = r(h), n("error", h);
4615
4724
  } finally {
4616
4725
  d.isReadonly = !1;
4617
4726
  }
4618
4727
  };
4619
- return (I, g) => {
4620
- const k = F("KInput");
4621
- return p(), T("div", ns, [
4622
- $(C(ml), {
4623
- "can-submit": y.value,
4728
+ return (S, y) => {
4729
+ const h = E("KInput");
4730
+ return p(), T("div", ss, [
4731
+ $(C(wl), {
4732
+ "can-submit": g.value,
4624
4733
  config: e.config,
4625
4734
  "edit-id": e.keySetId,
4626
4735
  "error-message": d.errorMessage,
4627
4736
  "fetch-url": s.value,
4628
- "form-fields": A.value,
4737
+ "form-fields": x.value,
4629
4738
  "is-readonly": d.isReadonly,
4630
4739
  onCancel: w,
4631
- "onFetch:error": g[2] || (g[2] = (x) => I.$emit("error", x)),
4740
+ "onFetch:error": y[2] || (y[2] = (A) => S.$emit("error", A)),
4632
4741
  "onFetch:success": f,
4633
- onLoading: g[3] || (g[3] = (x) => I.$emit("loading", x)),
4634
- onSubmit: v
4742
+ onLoading: y[3] || (y[3] = (A) => S.$emit("loading", A)),
4743
+ onSubmit: _
4635
4744
  }, {
4636
4745
  default: m(() => [
4637
- $(C(Wl), {
4746
+ $(C(ts), {
4638
4747
  description: C(o)("keySets.form.sections.general.description"),
4639
4748
  "has-divider": "",
4640
4749
  title: C(o)("keySets.form.sections.general.title")
4641
4750
  }, {
4642
4751
  default: m(() => [
4643
- $(k, {
4752
+ $(h, {
4644
4753
  modelValue: d.fields.name,
4645
- "onUpdate:modelValue": g[0] || (g[0] = (x) => d.fields.name = x),
4754
+ "onUpdate:modelValue": y[0] || (y[0] = (A) => d.fields.name = A),
4646
4755
  modelModifiers: { trim: !0 },
4647
4756
  autocomplete: "off",
4648
4757
  "data-testid": "key-set-form-name",
@@ -4651,9 +4760,9 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4651
4760
  readonly: d.isReadonly,
4652
4761
  type: "text"
4653
4762
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
4654
- $(k, {
4763
+ $(h, {
4655
4764
  modelValue: d.fields.tags,
4656
- "onUpdate:modelValue": g[1] || (g[1] = (x) => d.fields.tags = x),
4765
+ "onUpdate:modelValue": y[1] || (y[1] = (A) => d.fields.tags = A),
4657
4766
  modelModifiers: { trim: !0 },
4658
4767
  autocomplete: "off",
4659
4768
  "data-testid": "key-set-form-tags",
@@ -4673,7 +4782,7 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4673
4782
  ]);
4674
4783
  };
4675
4784
  }
4676
- }), vs = /* @__PURE__ */ ta(as, [["__scopeId", "data-v-9e736908"]]), is = { class: "kong-ui-entities-keys-entity-config-card" }, bs = /* @__PURE__ */ G({
4785
+ }), As = /* @__PURE__ */ na(cs, [["__scopeId", "data-v-9e736908"]]), us = { class: "kong-ui-entities-keys-entity-config-card" }, xs = /* @__PURE__ */ W({
4677
4786
  __name: "KeySetConfigCard",
4678
4787
  props: {
4679
4788
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4700,7 +4809,7 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4700
4809
  },
4701
4810
  emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
4702
4811
  setup(e) {
4703
- const t = e, { i18n: { t: n } } = pt.useI18n(), a = j(() => Ve.form[t.config.app].edit), i = E({
4812
+ const t = e, { i18n: { t: n } } = mt.useI18n(), a = I(() => Ve.form[t.config.app].edit), i = N({
4704
4813
  id: {},
4705
4814
  name: {},
4706
4815
  last_updated: {},
@@ -4709,8 +4818,8 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4709
4818
  tooltip: n("keySets.form.fields.tags.tooltip")
4710
4819
  }
4711
4820
  });
4712
- return (o, r) => (p(), T("div", is, [
4713
- $(C(pl), {
4821
+ return (o, r) => (p(), T("div", us, [
4822
+ $(C(vl), {
4714
4823
  config: e.config,
4715
4824
  "config-card-doc": e.configCardDoc,
4716
4825
  "config-schema": i.value,
@@ -4725,7 +4834,7 @@ const zo = { class: "yaml-config" }, Xn = /* @__PURE__ */ G({
4725
4834
  }
4726
4835
  });
4727
4836
  export {
4728
- bs as KeySetConfigCard,
4729
- vs as KeySetForm,
4730
- hs as KeySetList
4837
+ xs as KeySetConfigCard,
4838
+ As as KeySetForm,
4839
+ Ss as KeySetList
4731
4840
  };