@kong-ui-public/entities-consumer-groups 1.3.6 → 1.3.7

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 ae, ref as E, computed as j, watch as xe, renderSlot as Y, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as q, openBlock as g, createBlock as V, createSlots as Te, withCtx as h, createElementVNode as R, createTextVNode as Z, toDisplayString as K, createVNode as F, createElementBlock as M, renderList as ye, Fragment as ve, normalizeClass as Fe, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as ur, resolveDynamicComponent as He, normalizeProps as cr, guardReactiveProps as dr, mergeProps as ht, onMounted as pr, onUnmounted as fr, normalizeStyle as mr, inject as gr, pushScopeId as yr, popScopeId as hr, reactive as Pt } from "vue";
1
+ import { defineComponent as ae, ref as O, computed as T, watch as xe, renderSlot as Y, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Ze, resolveComponent as q, openBlock as g, createBlock as V, createSlots as Te, withCtx as v, createElementVNode as R, createTextVNode as Z, toDisplayString as K, createVNode as F, createElementBlock as M, renderList as ye, Fragment as ve, normalizeClass as Ne, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as cr, resolveDynamicComponent as ze, normalizeProps as dr, guardReactiveProps as pr, mergeProps as ht, onMounted as fr, onUnmounted as mr, normalizeStyle as gr, inject as yr, pushScopeId as hr, popScopeId as vr, reactive as Lt } from "vue";
2
2
  import { useRouter as wt } from "vue-router";
3
- import { createI18n as It, i18nTComponent as cn } from "@kong-ui-public/i18n";
4
- import vr from "axios";
5
- import { ToastManager as br, MethodsArray as kr } from "@kong/kongponents";
6
- const Cr = {
3
+ import { createI18n as It, i18nTComponent as dn } from "@kong-ui-public/i18n";
4
+ import br from "axios";
5
+ import { ToastManager as kr, MethodsArray as Cr } from "@kong/kongponents";
6
+ const _r = {
7
7
  list: {
8
8
  table_headers: {
9
9
  name: "Name",
@@ -95,19 +95,19 @@ const Cr = {
95
95
  name: "The name can be any string containing letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
96
96
  }
97
97
  }
98
- }, _r = {
99
- consumer_groups: Cr
98
+ }, wr = {
99
+ consumer_groups: _r
100
100
  };
101
- function wr() {
102
- const e = It("en-us", _r);
101
+ function Ir() {
102
+ const e = It("en-us", wr);
103
103
  return {
104
104
  i18n: e,
105
- i18nT: cn(e)
105
+ i18nT: dn(e)
106
106
  // Translation component <i18n-t>
107
107
  };
108
108
  }
109
109
  const ct = {
110
- useI18n: wr
110
+ useI18n: Ir
111
111
  }, Ie = "/api/runtime_groups/{controlPlaneId}", Ae = "/{workspace}", $e = {
112
112
  list: {
113
113
  konnect: {
@@ -140,17 +140,17 @@ const ct = {
140
140
  }
141
141
  }
142
142
  };
143
- var dn = /* @__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))(dn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}), Ee = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Ee || {}), te = /* @__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))(te || {}), be = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(be || {});
143
+ var pn = /* @__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))(pn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}), Ke = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Ke || {}), te = /* @__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))(te || {}), be = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(be || {});
144
144
  function At(e = {}) {
145
145
  return {
146
- axiosInstance: vr.create({
146
+ axiosInstance: br.create({
147
147
  withCredentials: !0,
148
148
  timeout: 3e4,
149
149
  ...e
150
150
  })
151
151
  };
152
152
  }
153
- function Ir() {
153
+ function Ar() {
154
154
  return {
155
155
  debounce: (e, n) => {
156
156
  let t;
@@ -162,12 +162,12 @@ function Ir() {
162
162
  }
163
163
  };
164
164
  }
165
- const ft = "khcp-user-table-preferences", Ar = {
165
+ const ft = "khcp-user-table-preferences", Sr = {
166
166
  pageSize: 30,
167
167
  sortColumnKey: void 0,
168
168
  sortColumnOrder: void 0
169
169
  };
170
- function Sr() {
170
+ function xr() {
171
171
  const e = (t) => {
172
172
  if (typeof t == "string")
173
173
  try {
@@ -191,24 +191,24 @@ function Sr() {
191
191
  },
192
192
  getTablePreferences: (t) => {
193
193
  const r = n();
194
- return (r == null ? void 0 : r.get(t)) || void 0 || Ar;
194
+ return (r == null ? void 0 : r.get(t)) || void 0 || Sr;
195
195
  },
196
196
  deleteAllTablePreferences: () => {
197
197
  localStorage.removeItem(ft);
198
198
  }
199
199
  };
200
200
  }
201
- const xr = {
201
+ const Tr = {
202
202
  actions: {
203
203
  copyId: "Copy ID",
204
204
  copied_id: 'Copied "{id}" to the clipboard',
205
205
  copyToClipboard: "Copied successfully!",
206
206
  copyToClipboardFailed: "Failed to copy to the clipboard"
207
207
  }
208
- }, Tr = {
208
+ }, $r = {
209
209
  message: "Are you sure you want to delete this {entityType}?",
210
210
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
211
- }, $r = {
211
+ }, jr = {
212
212
  actions: {
213
213
  save: "Save",
214
214
  cancel: "Cancel",
@@ -217,13 +217,13 @@ const xr = {
217
217
  errors: {
218
218
  edit: "The entity could not be edited at this time."
219
219
  }
220
- }, jr = {
220
+ }, Mr = {
221
221
  emptyState: {
222
222
  noSearchResultsTitle: "No results found",
223
223
  noSearchResultsMessage: "Please adjust the criteria and try again.",
224
224
  noSearchResultsCtaText: "Clear"
225
225
  }
226
- }, Mr = {
226
+ }, Er = {
227
227
  title: "Configuration",
228
228
  actions: {
229
229
  copy: "Copy JSON"
@@ -266,15 +266,15 @@ const xr = {
266
266
  applyButtonText: "Apply",
267
267
  clearButtonText: "Clear",
268
268
  clearAllButtonText: "Clear all filters"
269
- }, Er = {
269
+ }, Kr = {
270
270
  errors: {
271
271
  fetch: "Could not fetch available items",
272
272
  invalid: "Please select a valid value"
273
273
  }
274
- }, Kr = {
274
+ }, Fr = {
275
275
  unexpected: "An unexpected error has occurred",
276
276
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
277
- }, Fr = {
277
+ }, Nr = {
278
278
  enable: {
279
279
  title: "Enable {entityType}",
280
280
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -285,26 +285,26 @@ const xr = {
285
285
  message: "Are you sure you want to disable the {entityType} {entityName}?",
286
286
  confirmText: "Yes, disable"
287
287
  }
288
- }, Nr = {
289
- global: xr,
290
- deleteModal: Tr,
291
- baseForm: $r,
292
- baseTable: jr,
293
- baseConfigCard: Mr,
288
+ }, Br = {
289
+ global: Tr,
290
+ deleteModal: $r,
291
+ baseForm: jr,
292
+ baseTable: Mr,
293
+ baseConfigCard: Er,
294
294
  filter: Or,
295
- debouncedFilter: Er,
296
- errors: Kr,
297
- toggleModal: Fr
295
+ debouncedFilter: Kr,
296
+ errors: Fr,
297
+ toggleModal: Nr
298
298
  };
299
299
  function St() {
300
- const e = It("en-us", Nr);
300
+ const e = It("en-us", Br);
301
301
  return {
302
302
  i18n: e,
303
- i18nT: cn(e)
303
+ i18nT: dn(e)
304
304
  // Translation component <i18n-t>
305
305
  };
306
306
  }
307
- function pn() {
307
+ function fn() {
308
308
  const e = (t, r) => (r == null ? void 0 : r[t]) ?? void 0, n = (t, r) => {
309
309
  if (t.length !== r.length)
310
310
  return !1;
@@ -348,72 +348,72 @@ function pn() {
348
348
  isValidUuid: (t) => t ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(t) : !1
349
349
  };
350
350
  }
351
- function Br(e, n, t, r = {
351
+ function Pr(e, n, t, r = {
352
352
  fetchedItemsKey: "data",
353
353
  searchKeys: ["id"]
354
354
  }) {
355
355
  t || (t = "100");
356
356
  const { axiosInstance: o } = At({
357
357
  headers: e.requestHeaders
358
- }), { i18n: { t: a } } = St(), { debounce: i } = Ir(), s = i(async (A) => {
359
- await k(A);
360
- }, 200), l = E(!1), c = E(""), d = E(""), u = E([]), m = E([]), f = E(void 0), I = y(n);
361
- let v = `${e.apiBaseUrl}${I}`;
362
- e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
363
- const { isValidUuid: p } = pn(), S = async () => {
358
+ }), { i18n: { t: a } } = St(), { debounce: i } = Ar(), s = i(async (I) => {
359
+ await k(I);
360
+ }, 200), l = O(!1), c = O(""), d = O(""), u = O([]), m = O([]), f = O(void 0), S = y(n);
361
+ let h = `${e.apiBaseUrl}${S}`;
362
+ 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}` : ""));
363
+ const { isValidUuid: p } = fn(), A = async () => {
364
364
  try {
365
365
  l.value = !0;
366
- const { data: A } = await o.get(`${v}?size=${t}`);
367
- A != null && A.next || (f.value = r.fetchedItemsKey in A ? A[r.fetchedItemsKey] : []), m.value = r.fetchedItemsKey in A ? A[r.fetchedItemsKey] : [], u.value = m.value;
366
+ const { data: I } = await o.get(`${h}?size=${t}`);
367
+ I != null && I.next || (f.value = r.fetchedItemsKey in I ? I[r.fetchedItemsKey] : []), m.value = r.fetchedItemsKey in I ? I[r.fetchedItemsKey] : [], u.value = m.value;
368
368
  } catch {
369
369
  u.value = [], c.value = a("debouncedFilter.errors.fetch");
370
370
  } finally {
371
371
  l.value = !1;
372
372
  }
373
- }, b = E(""), k = async (A) => {
374
- var ne, pe, z;
375
- if (b.value !== A)
376
- if (b.value = A || "", f.value === void 0)
373
+ }, b = O(""), k = async (I) => {
374
+ var re, se, z;
375
+ if (b.value !== I)
376
+ if (b.value = I || "", f.value === void 0)
377
377
  try {
378
378
  if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
379
- let w = v + "";
380
- A && (w += `/${A}`);
381
- const { data: N } = await o.get(`${w}?size=${t}`);
382
- r.fetchedItemsKey in N ? u.value = N[r.fetchedItemsKey] : N != null && N.id ? u.value = [N] : u.value = [];
383
- } else if (A) {
384
- const w = [];
385
- p(A) && r.searchKeys.includes("id") ? w.push((async () => {
386
- const { data: C } = await o.get(`${v}/${A}`);
387
- return [C[r.fetchedItemsKey] ?? C];
388
- })()) : w.push(
389
- ...r.searchKeys.filter((C) => C !== "id").map(async (C) => {
390
- const { data: x } = await o.get(`${v}?${C}=${A}`);
379
+ let _ = h + "";
380
+ I && (_ += `/${I}`);
381
+ const { data: B } = await o.get(`${_}?size=${t}`);
382
+ r.fetchedItemsKey in B ? u.value = B[r.fetchedItemsKey] : B != null && B.id ? u.value = [B] : u.value = [];
383
+ } else if (I) {
384
+ const _ = [];
385
+ p(I) && r.searchKeys.includes("id") ? _.push((async () => {
386
+ const { data: w } = await o.get(`${h}/${I}`);
387
+ return [w[r.fetchedItemsKey] ?? w];
388
+ })()) : _.push(
389
+ ...r.searchKeys.filter((w) => w !== "id").map(async (w) => {
390
+ const { data: x } = await o.get(`${h}?${w}=${I}`);
391
391
  return x[r.fetchedItemsKey];
392
392
  })
393
393
  );
394
- const N = await Promise.all(w), B = /* @__PURE__ */ new Set();
395
- u.value = [], (ne = N == null ? void 0 : N.forEach) == null || ne.call(N, (C) => {
394
+ const B = await Promise.all(_), P = /* @__PURE__ */ new Set();
395
+ u.value = [], (re = B == null ? void 0 : B.forEach) == null || re.call(B, (w) => {
396
396
  var x;
397
- (x = C == null ? void 0 : C.forEach) == null || x.call(C, (T) => {
398
- B.has(T.id) || (B.add(T.id), u.value.push(T));
397
+ (x = w == null ? void 0 : w.forEach) == null || x.call(w, ($) => {
398
+ P.has($.id) || (P.add($.id), u.value.push($));
399
399
  });
400
400
  });
401
401
  } else
402
402
  u.value = m.value;
403
- } catch (w) {
404
- ((pe = w == null ? void 0 : w.response) == null ? void 0 : pe.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (u.value = [], c.value = a("debouncedFilter.errors.fetch"));
403
+ } catch (_) {
404
+ ((se = _ == null ? void 0 : _.response) == null ? void 0 : se.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (u.value = [], c.value = a("debouncedFilter.errors.fetch"));
405
405
  } finally {
406
406
  l.value = !1;
407
407
  }
408
408
  else
409
- l.value = !0, d.value = "", A ? (u.value = (z = f.value) == null ? void 0 : z.filter((w) => {
410
- var N;
411
- let B = !1;
412
- for (const C of r.searchKeys) {
413
- const x = typeof w[C] == "string" ? (N = w[C]) == null ? void 0 : N.toLowerCase() : w[C];
414
- x != null && x.includes(A.toLowerCase()) && (B = !0);
409
+ l.value = !0, d.value = "", I ? (u.value = (z = f.value) == null ? void 0 : z.filter((_) => {
410
+ var B;
411
+ let P = !1;
412
+ for (const w of r.searchKeys) {
413
+ const x = typeof _[w] == "string" ? (B = _[w]) == null ? void 0 : B.toLowerCase() : _[w];
414
+ x != null && x.includes(I.toLowerCase()) && (P = !0);
415
415
  }
416
- return B;
416
+ return P;
417
417
  }), (!u.value || !u.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : u.value = f.value, l.value = !1;
418
418
  };
419
419
  return {
@@ -422,17 +422,17 @@ function Br(e, n, t, r = {
422
422
  validationError: d,
423
423
  results: u,
424
424
  allRecords: f,
425
- loadItems: S,
425
+ loadItems: A,
426
426
  debouncedQueryChange: s
427
427
  };
428
428
  }
429
- function Pr(e, n) {
430
- const t = y(n), r = j(
429
+ function Lr(e, n) {
430
+ const t = y(n), r = T(
431
431
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
432
432
  );
433
433
  return r.value.search = "", (o) => `${r.value.href}/${o}`;
434
434
  }
435
- function Lr() {
435
+ function qr() {
436
436
  const { i18n: { t: e } } = St();
437
437
  return {
438
438
  getMessageFromError: (n) => {
@@ -460,7 +460,7 @@ function Lr() {
460
460
  }
461
461
  };
462
462
  }
463
- function qr(e) {
463
+ function Ur(e) {
464
464
  const n = window.location.origin, t = n.endsWith("/") ? n : `${n}/`;
465
465
  try {
466
466
  const r = e.join("/"), o = `${t}${r}`, a = e.some((i) => i.trim() === "");
@@ -471,33 +471,33 @@ function qr(e) {
471
471
  return console.warn("Failed to build valid URL:", r), "";
472
472
  }
473
473
  }
474
- function fn(e, n) {
475
- const t = E(y(e)), r = E(y(n)), o = j(
474
+ function mn(e, n) {
475
+ const t = O(y(e)), r = O(y(n)), o = T(
476
476
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
477
- ), a = j(
477
+ ), a = T(
478
478
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
479
479
  );
480
480
  return (i) => {
481
481
  const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: m } = i;
482
482
  try {
483
483
  let f = new URL(a.value.href);
484
- return o.value && m ? (f.search = "", f = new URL(`${f.href}/${m}/`)) : (o.value || new URLSearchParams(m).forEach((I, v) => {
485
- f.searchParams.append(v, I);
484
+ return o.value && m ? (f.search = "", f = new URL(`${f.href}/${m}/`)) : (o.value || new URLSearchParams(m).forEach((S, h) => {
485
+ f.searchParams.append(h, S);
486
486
  }), d && f.searchParams.append("sort_by", d), u === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(l))), c && s !== 1 && f.searchParams.append("offset", String(c)), f.href;
487
487
  } catch (f) {
488
488
  return console.error("RouteList(fetcher)", f), r.value;
489
489
  }
490
490
  };
491
491
  }
492
- function Ur(e, n, t = "data") {
492
+ function Rr(e, n, t = "data") {
493
493
  const r = y(n), { axiosInstance: o } = At({
494
494
  headers: e.requestHeaders
495
- }), a = fn(e, r), i = E({
496
- status: Ee.Idle
495
+ }), a = mn(e, r), i = O({
496
+ status: Ke.Idle
497
497
  });
498
498
  return { fetcher: async (s) => {
499
499
  try {
500
- i.value = { status: Ee.Loading };
500
+ i.value = { status: Ke.Loading };
501
501
  const l = a(s), { data: c } = await o.get(l), d = t && t.replace(/[^\w-_]/gi, "");
502
502
  let u;
503
503
  c[d] && Array.isArray(c[d]) ? u = c[d] : u = Object.keys(c).length ? [c] : [];
@@ -511,7 +511,7 @@ function Ur(e, n, t = "data") {
511
511
  } : null
512
512
  };
513
513
  return i.value = {
514
- status: Ee.Idle,
514
+ status: Ke.Idle,
515
515
  response: m
516
516
  }, m;
517
517
  } catch (l) {
@@ -520,89 +520,89 @@ function Ur(e, n, t = "data") {
520
520
  total: 0
521
521
  };
522
522
  return s.query && l.response.status === 404 ? (i.value = {
523
- status: Ee.NoResults,
523
+ status: Ke.NoResults,
524
524
  response: c,
525
525
  error: l
526
526
  }, c) : (i.value = {
527
- status: Ee.Error,
527
+ status: Ke.Error,
528
528
  response: c,
529
529
  error: l
530
530
  }, c);
531
531
  }
532
532
  }, fetcherState: i };
533
533
  }
534
- function Rr() {
534
+ function Vr() {
535
535
  const e = (t, r = "_") => t ? t.split(r).map((o) => o.toLowerCase() === "id" ? o.toUpperCase() : o.charAt(0).toUpperCase() + o.substring(1)).join(" ") : "", n = /(?:^|[\s-:'"])\w/g;
536
536
  return {
537
537
  capitalize: (t) => t ? t.replace(n, (r) => r.toUpperCase()) : "",
538
538
  convertKeyToTitle: e
539
539
  };
540
540
  }
541
- const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Lt = (e) => {
541
+ const gn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, qt = (e) => {
542
542
  if (typeof e != "string")
543
543
  throw new TypeError("Invalid argument expected string");
544
- const n = e.match(mn);
544
+ const n = e.match(gn);
545
545
  if (!n)
546
546
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
547
547
  return n.shift(), n;
548
- }, qt = (e) => e === "*" || e === "x" || e === "X", Ut = (e) => {
548
+ }, Ut = (e) => e === "*" || e === "x" || e === "X", Rt = (e) => {
549
549
  const n = parseInt(e, 10);
550
550
  return isNaN(n) ? e : n;
551
- }, Vr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Dr = (e, n) => {
552
- if (qt(e) || qt(n))
551
+ }, Dr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Gr = (e, n) => {
552
+ if (Ut(e) || Ut(n))
553
553
  return 0;
554
- const [t, r] = Vr(Ut(e), Ut(n));
554
+ const [t, r] = Dr(Rt(e), Rt(n));
555
555
  return t > r ? 1 : t < r ? -1 : 0;
556
- }, Rt = (e, n) => {
556
+ }, Vt = (e, n) => {
557
557
  for (let t = 0; t < Math.max(e.length, n.length); t++) {
558
- const r = Dr(e[t] || "0", n[t] || "0");
558
+ const r = Gr(e[t] || "0", n[t] || "0");
559
559
  if (r !== 0)
560
560
  return r;
561
561
  }
562
562
  return 0;
563
- }, Gr = (e, n) => {
564
- const t = Lt(e), r = Lt(n), o = t.pop(), a = r.pop(), i = Rt(t, r);
565
- return i !== 0 ? i : o && a ? Rt(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
566
- }, Vt = (e, n, t) => {
567
- zr(t);
568
- const r = Gr(e, n);
569
- return gn[t].includes(r);
570
- }, gn = {
563
+ }, zr = (e, n) => {
564
+ const t = qt(e), r = qt(n), o = t.pop(), a = r.pop(), i = Vt(t, r);
565
+ return i !== 0 ? i : o && a ? Vt(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
566
+ }, Dt = (e, n, t) => {
567
+ Hr(t);
568
+ const r = zr(e, n);
569
+ return yn[t].includes(r);
570
+ }, yn = {
571
571
  ">": [1],
572
572
  ">=": [0, 1],
573
573
  "=": [0],
574
574
  "<=": [-1, 0],
575
575
  "<": [-1],
576
576
  "!=": [-1, 1]
577
- }, Dt = Object.keys(gn), zr = (e) => {
577
+ }, Gt = Object.keys(yn), Hr = (e) => {
578
578
  if (typeof e != "string")
579
579
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
580
- if (Dt.indexOf(e) === -1)
581
- throw new Error(`Invalid operator, expected one of ${Dt.join("|")}`);
582
- }, Hr = (e) => typeof e == "string" && /^[v\d]/.test(e) && mn.test(e);
583
- function Jr(e) {
580
+ if (Gt.indexOf(e) === -1)
581
+ throw new Error(`Invalid operator, expected one of ${Gt.join("|")}`);
582
+ }, Jr = (e) => typeof e == "string" && /^[v\d]/.test(e) && gn.test(e);
583
+ function Wr(e) {
584
584
  const { gatewayInfo: n, supportedRange: t } = e;
585
585
  if (!n)
586
586
  return !0;
587
587
  const { edition: r, version: o } = n;
588
- if (!Hr(o))
588
+ if (!Jr(o))
589
589
  return console.error("Invalid version"), !1;
590
590
  const a = t[r];
591
591
  if (!a)
592
592
  return !1;
593
593
  const [i, s] = a;
594
- return !(i && Vt(o, i, "<") || s && Vt(o, s, ">"));
594
+ return !(i && Dt(o, i, "<") || s && Dt(o, s, ">"));
595
595
  }
596
- function Wr(e) {
597
- const n = E(0), t = E(0), r = E(!1);
596
+ function Yr(e) {
597
+ const n = O(0), t = O(0), r = O(!1);
598
598
  return xe(e, (o) => {
599
599
  o && !r.value && (n.value = o.offsetWidth, t.value = o.scrollWidth, r.value = !0);
600
600
  }), {
601
- isTruncated: j(() => n.value < t.value)
601
+ isTruncated: T(() => n.value < t.value)
602
602
  };
603
603
  }
604
- const Yr = new br();
605
- function Zr() {
604
+ const Zr = new kr();
605
+ function Qr() {
606
606
  return {
607
607
  notify: async (e) => {
608
608
  const n = {
@@ -610,7 +610,7 @@ function Zr() {
610
610
  message: "Success",
611
611
  timeoutMilliseconds: 3e3
612
612
  };
613
- Yr.open({
613
+ Zr.open({
614
614
  ...n,
615
615
  ...e
616
616
  });
@@ -619,28 +619,28 @@ function Zr() {
619
619
  }
620
620
  const ue = {
621
621
  useAxios: At,
622
- useDebouncedFilter: Br,
623
- useDeleteUrlBuilder: Pr,
624
- useErrors: Lr,
625
- useExternalLinkCreator: qr,
626
- useFetcher: Ur,
627
- useFetchUrlBuilder: fn,
628
- useHelpers: pn,
629
- useStringHelpers: Rr,
622
+ useDebouncedFilter: Pr,
623
+ useDeleteUrlBuilder: Lr,
624
+ useErrors: qr,
625
+ useExternalLinkCreator: Ur,
626
+ useFetcher: Rr,
627
+ useFetchUrlBuilder: mn,
628
+ useHelpers: fn,
629
+ useStringHelpers: Vr,
630
630
  useI18n: St,
631
- useGatewayFeatureSupported: Jr,
632
- useTruncationDetector: Wr,
633
- useToaster: Zr
634
- }, Qr = {
631
+ useGatewayFeatureSupported: Wr,
632
+ useTruncationDetector: Yr,
633
+ useToaster: Qr
634
+ }, Xr = {
635
635
  fail: "Failed to copy id to clipboard",
636
636
  success: {
637
637
  prefix: "Successfully",
638
638
  content: " copied to clipboard"
639
639
  }
640
- }, Xr = "Copy to clipboard", eo = {
641
- message: Qr,
642
- iconTitle: Xr
643
- }, to = "kong-ui-copy-uuid-notify", no = { class: "kong-ui-copy-uuid" }, ro = ["onClick"], Gt = 15, oo = /* @__PURE__ */ ae({
640
+ }, eo = "Copy to clipboard", to = {
641
+ message: Xr,
642
+ iconTitle: eo
643
+ }, no = "kong-ui-copy-uuid-notify", ro = { class: "kong-ui-copy-uuid" }, oo = ["onClick"], zt = 15, ao = /* @__PURE__ */ ae({
644
644
  __name: "CopyUuid",
645
645
  props: {
646
646
  uuid: {
@@ -684,19 +684,19 @@ const ue = {
684
684
  },
685
685
  emits: ["success", "error"],
686
686
  setup(e, { emit: n }) {
687
- const t = e, { t: r } = It("en-us", eo), o = t.notify || gr(to, () => {
688
- }), a = j(() => t.idTooltip ? {
687
+ const t = e, { t: r } = It("en-us", to), o = t.notify || yr(no, () => {
688
+ }), a = T(() => t.idTooltip ? {
689
689
  label: t.idTooltip,
690
690
  positionFixed: !0,
691
691
  placement: "bottomStart"
692
692
  } : {
693
693
  title: t.uuid
694
- }), i = j(() => !!(t.tooltip && t.successTooltip)), s = E(t.tooltip), l = j(() => t.tooltip ? {
694
+ }), i = T(() => !!(t.tooltip && t.successTooltip)), s = O(t.tooltip), l = T(() => t.tooltip ? {
695
695
  label: s.value,
696
696
  positionFixed: !0,
697
697
  maxWidth: "500px",
698
698
  placement: "bottomStart"
699
- } : {}), c = j(() => {
699
+ } : {}), c = T(() => {
700
700
  var m;
701
701
  return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(m = t.uuid) == null ? void 0 : m.substring(0, 5)}` : t.uuid;
702
702
  }), d = (m) => {
@@ -704,7 +704,7 @@ const ue = {
704
704
  s.value = t.tooltip;
705
705
  }, 1800);
706
706
  }, u = (m) => {
707
- var f, I;
707
+ var f, S;
708
708
  if (!m(t.uuid)) {
709
709
  typeof o == "function" && o({
710
710
  type: "error",
@@ -712,19 +712,19 @@ const ue = {
712
712
  }), i.value ? d(r("message.fail")) : n("error", t.uuid);
713
713
  return;
714
714
  }
715
- const v = ((f = t.uuid) == null ? void 0 : f.length) > Gt, p = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${((I = t.uuid) == null ? void 0 : I.substring(0, Gt)) + (v ? "..." : "")}"`;
715
+ const h = ((f = t.uuid) == null ? void 0 : f.length) > zt, p = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${((S = t.uuid) == null ? void 0 : S.substring(0, zt)) + (h ? "..." : "")}"`;
716
716
  typeof o == "function" && o({
717
717
  type: "success",
718
718
  message: `${p}${r("message.success.content")}`
719
719
  }), i.value ? d(t.successTooltip) : n("success", t.uuid);
720
720
  };
721
721
  return (m, f) => {
722
- const I = q("KIcon"), v = q("KClipboardProvider");
723
- return g(), M("div", no, [
724
- e.format !== "hidden" ? (g(), V(He(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
725
- default: h(() => [
722
+ const S = q("KIcon"), h = q("KClipboardProvider");
723
+ return g(), M("div", ro, [
724
+ e.format !== "hidden" ? (g(), V(ze(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
725
+ default: v(() => [
726
726
  R("div", {
727
- class: Fe([
727
+ class: Ne([
728
728
  "uuid-container",
729
729
  e.truncated ? "truncated-uuid" : null,
730
730
  e.useMono ? "mono" : null
@@ -733,17 +733,17 @@ const ue = {
733
733
  ]),
734
734
  _: 1
735
735
  }, 16)) : G("", !0),
736
- (g(), V(He(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
737
- default: h(() => [
738
- F(v, null, {
739
- default: h(({ copyToClipboard: p }) => [
736
+ (g(), V(ze(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
737
+ default: v(() => [
738
+ F(h, null, {
739
+ default: v(({ copyToClipboard: p }) => [
740
740
  R("span", {
741
741
  "data-testid": "copy-to-clipboard",
742
742
  role: "button",
743
743
  tabindex: "0",
744
- onClick: rt((S) => u(p), ["stop"])
744
+ onClick: rt((A) => u(p), ["stop"])
745
745
  }, [
746
- F(I, {
746
+ F(S, {
747
747
  class: "uuid-icon",
748
748
  color: e.iconColor,
749
749
  "hide-title": !!e.tooltip || void 0,
@@ -751,7 +751,7 @@ const ue = {
751
751
  size: "16",
752
752
  title: y(r)("iconTitle")
753
753
  }, null, 8, ["color", "hide-title", "title"])
754
- ], 8, ro)
754
+ ], 8, oo)
755
755
  ]),
756
756
  _: 1
757
757
  })
@@ -761,15 +761,15 @@ const ue = {
761
761
  ]);
762
762
  };
763
763
  }
764
- }), ao = (e, n) => {
764
+ }), io = (e, n) => {
765
765
  const t = e.__vccOpts || e;
766
766
  for (const [r, o] of n)
767
767
  t[r] = o;
768
768
  return t;
769
- }, yn = /* @__PURE__ */ ao(oo, [["__scopeId", "data-v-a2ebe0bb"]]), io = {
769
+ }, hn = /* @__PURE__ */ io(ao, [["__scopeId", "data-v-a2ebe0bb"]]), so = {
770
770
  key: 0,
771
771
  class: "config-card-fieldset-title"
772
- }, so = /* @__PURE__ */ ae({
772
+ }, lo = /* @__PURE__ */ ae({
773
773
  __name: "JsonCardItem",
774
774
  props: {
775
775
  item: {
@@ -786,18 +786,18 @@ const ue = {
786
786
  }
787
787
  },
788
788
  setup(e) {
789
- const n = e, { i18n: { t } } = ue.useI18n(), { convertKeyToTitle: r } = ue.useStringHelpers(), o = j(() => n.item.key ?? "json-array-item"), a = j(() => n.item.value ?? n.item), i = j(() => {
789
+ const n = e, { i18n: { t } } = ue.useI18n(), { convertKeyToTitle: r } = ue.useStringHelpers(), o = T(() => n.item.key ?? "json-array-item"), a = T(() => n.item.value ?? n.item), i = T(() => {
790
790
  const l = JSON.parse(JSON.stringify(a.value));
791
791
  return n.isArrayItem && delete l.name, l;
792
- }), s = j(() => {
792
+ }), s = T(() => {
793
793
  var l;
794
794
  return n.isArrayItem ? (l = a.value) != null && l.name ? r(a.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
795
795
  });
796
- return (l, c) => (g(), V(He(e.isArrayItem ? "fieldset" : "div"), {
797
- class: Fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
796
+ return (l, c) => (g(), V(ze(e.isArrayItem ? "fieldset" : "div"), {
797
+ class: Ne(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
798
798
  }, {
799
- default: h(() => [
800
- e.isArrayItem ? (g(), M("legend", io, [
799
+ default: v(() => [
800
+ e.isArrayItem ? (g(), M("legend", so, [
801
801
  R("b", null, K(s.value), 1)
802
802
  ])) : G("", !0),
803
803
  (g(!0), M(ve, null, ye(Object.keys(i.value), (d, u) => (g(), V(xt, {
@@ -817,7 +817,7 @@ const ue = {
817
817
  for (const [r, o] of n)
818
818
  t[r] = o;
819
819
  return t;
820
- }, hn = /* @__PURE__ */ Ce(so, [["__scopeId", "data-v-68ca83ec"]]), lo = /* @__PURE__ */ ae({
820
+ }, vn = /* @__PURE__ */ Ce(lo, [["__scopeId", "data-v-68ca83ec"]]), uo = /* @__PURE__ */ ae({
821
821
  __name: "InternalLinkItem",
822
822
  props: {
823
823
  item: {
@@ -836,7 +836,7 @@ const ue = {
836
836
  class: "navigation-button",
837
837
  onClick: r[0] || (r[0] = (a) => t.$emit("navigation-click", e.item))
838
838
  }, {
839
- default: h(() => [
839
+ default: v(() => [
840
840
  Z(K(e.item.value || y(n)("baseConfigCard.commonFields.link")), 1)
841
841
  ]),
842
842
  _: 1
@@ -844,7 +844,7 @@ const ue = {
844
844
  ]);
845
845
  };
846
846
  }
847
- }), uo = /* @__PURE__ */ Ce(lo, [["__scopeId", "data-v-7410504d"]]), co = /* @__PURE__ */ ae({
847
+ }), co = /* @__PURE__ */ Ce(uo, [["__scopeId", "data-v-7410504d"]]), po = /* @__PURE__ */ ae({
848
848
  __name: "StatusBadge",
849
849
  props: {
850
850
  status: {
@@ -859,18 +859,18 @@ const ue = {
859
859
  return g(), V(o, {
860
860
  appearance: e.status ? "success" : "neutral"
861
861
  }, {
862
- default: h(() => [
862
+ default: v(() => [
863
863
  Z(K(e.status ? y(n)("baseConfigCard.statusBadge.enabledLabel") : y(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
864
864
  ]),
865
865
  _: 1
866
866
  }, 8, ["appearance"]);
867
867
  };
868
868
  }
869
- }), po = "#0044f4", fo = "#e0e4ea", mo = "#3a3f51", go = "1px", yo = "20px", ho = { class: "config-card-details-row" }, vo = ["data-testid"], bo = ["data-testid"], ko = ["data-testid"], Co = ["data-testid"], _o = { key: 1 }, wo = ["data-testid"], Io = ["data-testid"], Ao = ["data-testid"], So = ["data-testid"], xo = {
869
+ }), fo = "#0044f4", mo = "#e0e4ea", go = "#3a3f51", yo = "1px", ho = "20px", vo = { class: "config-card-details-row" }, bo = ["data-testid"], ko = ["data-testid"], Co = ["data-testid"], _o = ["data-testid"], wo = { key: 1 }, Io = ["data-testid"], Ao = ["data-testid"], So = ["data-testid"], xo = ["data-testid"], To = {
870
870
  name: "ConfigCardItem",
871
- components: { CopyUuid: yn, JsonCardItem: hn, StatusBadge: co, InternalLinkItem: uo }
872
- }, To = /* @__PURE__ */ ae({
873
- ...xo,
871
+ components: { CopyUuid: hn, JsonCardItem: vn, StatusBadge: po, InternalLinkItem: co }
872
+ }, $o = /* @__PURE__ */ ae({
873
+ ...To,
874
874
  props: {
875
875
  item: {
876
876
  type: Object,
@@ -890,13 +890,13 @@ const ue = {
890
890
  emits: ["navigation-click"],
891
891
  setup(e, { emit: n }) {
892
892
  const t = e;
893
- ur((f) => ({
894
- "1df60db4": c.value ? "none" : `solid ${y(go)} ${y(fo)}`,
893
+ cr((f) => ({
894
+ "1df60db4": c.value ? "none" : `solid ${y(yo)} ${y(mo)}`,
895
895
  "21d1d34e": l.value && i.value ? "block" : "flex",
896
896
  "4d3dc7e7": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
897
897
  "4d400dc2": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
898
898
  }));
899
- const r = ut(), { i18n: { t: o, formatUnixTimeStamp: a } } = ue.useI18n(), i = j(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = j(() => !!(t.item.tooltip || r["label-tooltip"])), l = j(() => t.item.type === te.Json || t.item.type === te.JsonArray), c = j(() => t.item.type === te.JsonArray), d = j(() => {
899
+ const r = ut(), { i18n: { t: o, formatUnixTimeStamp: a } } = ue.useI18n(), i = T(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = T(() => !!(t.item.tooltip || r["label-tooltip"])), l = T(() => t.item.type === te.Json || t.item.type === te.JsonArray), c = T(() => t.item.type === te.JsonArray), d = T(() => {
900
900
  switch (t.item.type) {
901
901
  case te.ID:
902
902
  return {
@@ -1022,37 +1022,37 @@ const ue = {
1022
1022
  text: t.item.value
1023
1023
  };
1024
1024
  }
1025
- }), u = E(), { isTruncated: m } = ue.useTruncationDetector(u);
1026
- return (f, I) => {
1027
- const v = q("KLabel"), p = q("KBadge"), S = q("KMethodBadge"), b = q("KTooltip");
1028
- return g(), M("div", ho, [
1025
+ }), u = O(), { isTruncated: m } = ue.useTruncationDetector(u);
1026
+ return (f, S) => {
1027
+ const h = q("KLabel"), p = q("KBadge"), A = q("KMethodBadge"), b = q("KTooltip");
1028
+ return g(), M("div", vo, [
1029
1029
  R("div", {
1030
1030
  class: "config-card-details-label",
1031
1031
  "data-testid": `${e.item.key}-label`
1032
1032
  }, [
1033
1033
  Y(f.$slots, "label", { item: e.item }, () => [
1034
- F(v, { "tooltip-attributes": { maxWidth: "500px" } }, Te({
1035
- default: h(() => [
1034
+ F(h, { "tooltip-attributes": { maxWidth: "500px" } }, Te({
1035
+ default: v(() => [
1036
1036
  Z(K(e.item.label) + " ", 1)
1037
1037
  ]),
1038
1038
  _: 2
1039
1039
  }, [
1040
1040
  s.value ? {
1041
1041
  name: "tooltip",
1042
- fn: h(() => [
1042
+ fn: v(() => [
1043
1043
  R("div", {
1044
1044
  "data-testid": `${e.item.key}-label-tooltip`
1045
1045
  }, [
1046
1046
  Y(f.$slots, "label-tooltip", {}, () => [
1047
1047
  Z(K(e.item.tooltip), 1)
1048
1048
  ], !0)
1049
- ], 8, bo)
1049
+ ], 8, ko)
1050
1050
  ]),
1051
1051
  key: "0"
1052
1052
  } : void 0
1053
1053
  ]), 1024)
1054
1054
  ], !0)
1055
- ], 8, vo),
1055
+ ], 8, bo),
1056
1056
  R("div", {
1057
1057
  class: "config-card-details-value",
1058
1058
  "data-testid": `${e.item.key}-property-value`
@@ -1060,73 +1060,73 @@ const ue = {
1060
1060
  Y(f.$slots, e.item.key, {
1061
1061
  rowValue: e.item.value
1062
1062
  }, () => [
1063
- i.value ? (g(), M("div", _o, [
1064
- (g(), V(He(d.value.tag), cr(dr(d.value.attrs)), {
1065
- default: h(() => [
1063
+ i.value ? (g(), M("div", wo, [
1064
+ (g(), V(ze(d.value.tag), dr(pr(d.value.attrs)), {
1065
+ default: v(() => [
1066
1066
  d.value.additionalComponent === "KBadge" ? (g(), M("div", {
1067
1067
  key: 0,
1068
1068
  "data-testid": `${e.item.key}-badge-tags`
1069
1069
  }, [
1070
- (g(!0), M(ve, null, ye(e.item.value, (k, A) => (g(), V(p, {
1071
- key: `${e.item.key}-badge-tag-${A}`,
1070
+ (g(!0), M(ve, null, ye(e.item.value, (k, I) => (g(), V(p, {
1071
+ key: `${e.item.key}-badge-tag-${I}`,
1072
1072
  class: "config-badge",
1073
- "data-testid": `${e.item.key}-badge-tag-${A}`,
1073
+ "data-testid": `${e.item.key}-badge-tag-${I}`,
1074
1074
  "truncation-tooltip": k
1075
1075
  }, {
1076
- default: h(() => [
1076
+ default: v(() => [
1077
1077
  Z(K(k), 1)
1078
1078
  ]),
1079
1079
  _: 2
1080
1080
  }, 1032, ["data-testid", "truncation-tooltip"]))), 128))
1081
- ], 8, wo)) : G("", !0),
1081
+ ], 8, Io)) : G("", !0),
1082
1082
  d.value.additionalComponent === "CopyUuid" ? (g(), M("div", {
1083
1083
  key: 1,
1084
1084
  class: "copy-uuid-array",
1085
1085
  "data-testid": `${e.item.key}-copy-uuid-array`
1086
1086
  }, [
1087
- (g(!0), M(ve, null, ye(e.item.value, (k, A) => (g(), V(y(yn), ht(d.value.childAttrs, {
1088
- key: `${e.item.key}-copy-uuid-${A}`,
1089
- "data-testid": `${e.item.key}-copy-uuid-${A}`,
1087
+ (g(!0), M(ve, null, ye(e.item.value, (k, I) => (g(), V(y(hn), ht(d.value.childAttrs, {
1088
+ key: `${e.item.key}-copy-uuid-${I}`,
1089
+ "data-testid": `${e.item.key}-copy-uuid-${I}`,
1090
1090
  uuid: k
1091
1091
  }), null, 16, ["data-testid", "uuid"]))), 128))
1092
- ], 8, Io)) : d.value.additionalComponent === "KMethodBadge" ? (g(), M("div", {
1092
+ ], 8, Ao)) : d.value.additionalComponent === "KMethodBadge" ? (g(), M("div", {
1093
1093
  key: 2,
1094
1094
  class: "method-badge-array",
1095
1095
  "data-testid": `${e.item.key}-badge-methods`
1096
1096
  }, [
1097
- (g(!0), M(ve, null, ye(e.item.value, (k, A) => (g(), V(S, {
1098
- key: `${e.item.key}-badge-method-${A}`,
1097
+ (g(!0), M(ve, null, ye(e.item.value, (k, I) => (g(), V(A, {
1098
+ key: `${e.item.key}-badge-method-${I}`,
1099
1099
  class: "config-badge",
1100
- "data-testid": `${e.item.key}-badge-method-${A}`,
1100
+ "data-testid": `${e.item.key}-badge-method-${I}`,
1101
1101
  "is-rounded": "",
1102
1102
  label: k,
1103
- method: y(kr).includes(k.toLowerCase()) ? k.toLowerCase() : "custom"
1103
+ method: y(Cr).includes(k.toLowerCase()) ? k.toLowerCase() : "custom"
1104
1104
  }, {
1105
- default: h(() => [
1105
+ default: v(() => [
1106
1106
  Z(K(k), 1)
1107
1107
  ]),
1108
1108
  _: 2
1109
1109
  }, 1032, ["data-testid", "label", "method"]))), 128))
1110
- ], 8, Ao)) : G("", !0),
1110
+ ], 8, So)) : G("", !0),
1111
1111
  d.value.additionalComponent === "JsonCardItem" ? (g(), M("div", {
1112
1112
  key: 3,
1113
1113
  "data-testid": `${t.item.key}-json-array-content`
1114
1114
  }, [
1115
- (g(!0), M(ve, null, ye(e.item.value, (k, A) => (g(), V(hn, {
1116
- key: `json-array-item-${A}`,
1117
- index: A,
1115
+ (g(!0), M(ve, null, ye(e.item.value, (k, I) => (g(), V(vn, {
1116
+ key: `json-array-item-${I}`,
1117
+ index: I,
1118
1118
  "is-array-item": "",
1119
1119
  item: k
1120
1120
  }, null, 8, ["index", "item"]))), 128))
1121
- ], 8, So)) : (g(), V(b, {
1121
+ ], 8, xo)) : (g(), V(b, {
1122
1122
  key: 4,
1123
1123
  label: y(m) ? e.item.value : ""
1124
1124
  }, {
1125
- default: h(() => [
1125
+ default: v(() => [
1126
1126
  R("span", {
1127
1127
  ref_key: "textContent",
1128
1128
  ref: u,
1129
- class: Fe(["attrs-data-text", { truncated: e.truncated }])
1129
+ class: Ne(["attrs-data-text", { truncated: e.truncated }])
1130
1130
  }, K(d.value.text), 3)
1131
1131
  ]),
1132
1132
  _: 1
@@ -1137,24 +1137,24 @@ const ue = {
1137
1137
  ])) : (g(), M("div", {
1138
1138
  key: 0,
1139
1139
  "data-testid": `${e.item.key}-no-value`
1140
- }, " – ", 8, Co))
1140
+ }, " – ", 8, _o))
1141
1141
  ], !0)
1142
- ], 8, ko)
1142
+ ], 8, Co)
1143
1143
  ]);
1144
1144
  };
1145
1145
  }
1146
- }), xt = /* @__PURE__ */ Ce(To, [["__scopeId", "data-v-307ab96d"]]);
1146
+ }), xt = /* @__PURE__ */ Ce($o, [["__scopeId", "data-v-307ab96d"]]);
1147
1147
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
1148
- function vn(e) {
1148
+ function bn(e) {
1149
1149
  return typeof e > "u" || e === null;
1150
1150
  }
1151
- function $o(e) {
1151
+ function jo(e) {
1152
1152
  return typeof e == "object" && e !== null;
1153
1153
  }
1154
- function jo(e) {
1155
- return Array.isArray(e) ? e : vn(e) ? [] : [e];
1154
+ function Mo(e) {
1155
+ return Array.isArray(e) ? e : bn(e) ? [] : [e];
1156
1156
  }
1157
- function Mo(e, n) {
1157
+ function Eo(e, n) {
1158
1158
  var t, r, o, a;
1159
1159
  if (n)
1160
1160
  for (a = Object.keys(n), t = 0, r = a.length; t < r; t += 1)
@@ -1167,32 +1167,32 @@ function Oo(e, n) {
1167
1167
  t += e;
1168
1168
  return t;
1169
1169
  }
1170
- function Eo(e) {
1170
+ function Ko(e) {
1171
1171
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1172
1172
  }
1173
- var Ko = vn, Fo = $o, No = jo, Bo = Oo, Po = Eo, Lo = Mo, se = {
1174
- isNothing: Ko,
1175
- isObject: Fo,
1176
- toArray: No,
1177
- repeat: Bo,
1178
- isNegativeZero: Po,
1179
- extend: Lo
1173
+ var Fo = bn, No = jo, Bo = Mo, Po = Oo, Lo = Ko, qo = Eo, ie = {
1174
+ isNothing: Fo,
1175
+ isObject: No,
1176
+ toArray: Bo,
1177
+ repeat: Po,
1178
+ isNegativeZero: Lo,
1179
+ extend: qo
1180
1180
  };
1181
- function bn(e, n) {
1181
+ function kn(e, n) {
1182
1182
  var t = "", r = e.reason || "(unknown reason)";
1183
1183
  return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (t += `
1184
1184
 
1185
1185
  ` + e.mark.snippet), r + " " + t) : r;
1186
1186
  }
1187
- function Je(e, n) {
1188
- Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = bn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
1187
+ function He(e, n) {
1188
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = kn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
1189
1189
  }
1190
- Je.prototype = Object.create(Error.prototype);
1191
- Je.prototype.constructor = Je;
1192
- Je.prototype.toString = function(e) {
1193
- return this.name + ": " + bn(this, e);
1190
+ He.prototype = Object.create(Error.prototype);
1191
+ He.prototype.constructor = He;
1192
+ He.prototype.toString = function(e) {
1193
+ return this.name + ": " + kn(this, e);
1194
1194
  };
1195
- var me = Je;
1195
+ var ge = He;
1196
1196
  function mt(e, n, t, r, o) {
1197
1197
  var a = "", i = "", s = Math.floor(o / 2) - 1;
1198
1198
  return r - n > s && (a = " ... ", n = r - s + a.length), t - r > s && (i = " ...", t = r + s - i.length), {
@@ -1202,9 +1202,9 @@ function mt(e, n, t, r, o) {
1202
1202
  };
1203
1203
  }
1204
1204
  function gt(e, n) {
1205
- return se.repeat(" ", n - e.length) + e;
1205
+ return ie.repeat(" ", n - e.length) + e;
1206
1206
  }
1207
- function qo(e, n) {
1207
+ function Uo(e, n) {
1208
1208
  if (n = Object.create(n || null), !e.buffer)
1209
1209
  return null;
1210
1210
  n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
@@ -1219,10 +1219,10 @@ function qo(e, n) {
1219
1219
  o[i - l],
1220
1220
  e.position - (r[i] - r[i - l]),
1221
1221
  u
1222
- ), s = se.repeat(" ", n.indent) + gt((e.line - l + 1).toString(), d) + " | " + c.str + `
1222
+ ), s = ie.repeat(" ", n.indent) + gt((e.line - l + 1).toString(), d) + " | " + c.str + `
1223
1223
  ` + s;
1224
- for (c = mt(e.buffer, r[i], o[i], e.position, u), s += se.repeat(" ", n.indent) + gt((e.line + 1).toString(), d) + " | " + c.str + `
1225
- `, s += se.repeat("-", n.indent + d + 3 + c.pos) + `^
1224
+ for (c = mt(e.buffer, r[i], o[i], e.position, u), s += ie.repeat(" ", n.indent) + gt((e.line + 1).toString(), d) + " | " + c.str + `
1225
+ `, s += ie.repeat("-", n.indent + d + 3 + c.pos) + `^
1226
1226
  `, l = 1; l <= n.linesAfter && !(i + l >= o.length); l++)
1227
1227
  c = mt(
1228
1228
  e.buffer,
@@ -1230,11 +1230,11 @@ function qo(e, n) {
1230
1230
  o[i + l],
1231
1231
  e.position - (r[i] - r[i + l]),
1232
1232
  u
1233
- ), s += se.repeat(" ", n.indent) + gt((e.line + l + 1).toString(), d) + " | " + c.str + `
1233
+ ), s += ie.repeat(" ", n.indent) + gt((e.line + l + 1).toString(), d) + " | " + c.str + `
1234
1234
  `;
1235
1235
  return s.replace(/\n$/, "");
1236
1236
  }
1237
- var Uo = qo, Ro = [
1237
+ var Ro = Uo, Vo = [
1238
1238
  "kind",
1239
1239
  "multi",
1240
1240
  "resolve",
@@ -1245,12 +1245,12 @@ var Uo = qo, Ro = [
1245
1245
  "representName",
1246
1246
  "defaultStyle",
1247
1247
  "styleAliases"
1248
- ], Vo = [
1248
+ ], Do = [
1249
1249
  "scalar",
1250
1250
  "sequence",
1251
1251
  "mapping"
1252
1252
  ];
1253
- function Do(e) {
1253
+ function Go(e) {
1254
1254
  var n = {};
1255
1255
  return e !== null && Object.keys(e).forEach(function(t) {
1256
1256
  e[t].forEach(function(r) {
@@ -1258,19 +1258,19 @@ function Do(e) {
1258
1258
  });
1259
1259
  }), n;
1260
1260
  }
1261
- function Go(e, n) {
1261
+ function zo(e, n) {
1262
1262
  if (n = n || {}, Object.keys(n).forEach(function(t) {
1263
- if (Ro.indexOf(t) === -1)
1264
- throw new me('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
1263
+ if (Vo.indexOf(t) === -1)
1264
+ throw new ge('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
1265
1265
  }), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
1266
1266
  return !0;
1267
1267
  }, this.construct = n.construct || function(t) {
1268
1268
  return t;
1269
- }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Do(n.styleAliases || null), Vo.indexOf(this.kind) === -1)
1270
- throw new me('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1269
+ }, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Go(n.styleAliases || null), Do.indexOf(this.kind) === -1)
1270
+ throw new ge('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1271
1271
  }
1272
- var de = Go;
1273
- function zt(e, n) {
1272
+ var de = zo;
1273
+ function Ht(e, n) {
1274
1274
  var t = [];
1275
1275
  return e[n].forEach(function(r) {
1276
1276
  var o = t.length;
@@ -1279,7 +1279,7 @@ function zt(e, n) {
1279
1279
  }), t[o] = r;
1280
1280
  }), t;
1281
1281
  }
1282
- function zo() {
1282
+ function Ho() {
1283
1283
  var e = {
1284
1284
  scalar: {},
1285
1285
  sequence: {},
@@ -1311,60 +1311,60 @@ vt.prototype.extend = function(e) {
1311
1311
  else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
1312
1312
  e.implicit && (n = n.concat(e.implicit)), e.explicit && (t = t.concat(e.explicit));
1313
1313
  else
1314
- throw new me("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
1314
+ throw new ge("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
1315
1315
  n.forEach(function(o) {
1316
1316
  if (!(o instanceof de))
1317
- throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1317
+ throw new ge("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1318
1318
  if (o.loadKind && o.loadKind !== "scalar")
1319
- throw new me("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
1319
+ throw new ge("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
1320
1320
  if (o.multi)
1321
- throw new me("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
1321
+ throw new ge("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
1322
1322
  }), t.forEach(function(o) {
1323
1323
  if (!(o instanceof de))
1324
- throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1324
+ throw new ge("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1325
1325
  });
1326
1326
  var r = Object.create(vt.prototype);
1327
- return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = zt(r, "implicit"), r.compiledExplicit = zt(r, "explicit"), r.compiledTypeMap = zo(r.compiledImplicit, r.compiledExplicit), r;
1327
+ return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Ht(r, "implicit"), r.compiledExplicit = Ht(r, "explicit"), r.compiledTypeMap = Ho(r.compiledImplicit, r.compiledExplicit), r;
1328
1328
  };
1329
- var kn = vt, Cn = new de("tag:yaml.org,2002:str", {
1329
+ var Cn = vt, _n = new de("tag:yaml.org,2002:str", {
1330
1330
  kind: "scalar",
1331
1331
  construct: function(e) {
1332
1332
  return e !== null ? e : "";
1333
1333
  }
1334
- }), _n = new de("tag:yaml.org,2002:seq", {
1334
+ }), wn = new de("tag:yaml.org,2002:seq", {
1335
1335
  kind: "sequence",
1336
1336
  construct: function(e) {
1337
1337
  return e !== null ? e : [];
1338
1338
  }
1339
- }), wn = new de("tag:yaml.org,2002:map", {
1339
+ }), In = new de("tag:yaml.org,2002:map", {
1340
1340
  kind: "mapping",
1341
1341
  construct: function(e) {
1342
1342
  return e !== null ? e : {};
1343
1343
  }
1344
- }), In = new kn({
1344
+ }), An = new Cn({
1345
1345
  explicit: [
1346
- Cn,
1347
1346
  _n,
1348
- wn
1347
+ wn,
1348
+ In
1349
1349
  ]
1350
1350
  });
1351
- function Ho(e) {
1351
+ function Jo(e) {
1352
1352
  if (e === null)
1353
1353
  return !0;
1354
1354
  var n = e.length;
1355
1355
  return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
1356
1356
  }
1357
- function Jo() {
1357
+ function Wo() {
1358
1358
  return null;
1359
1359
  }
1360
- function Wo(e) {
1360
+ function Yo(e) {
1361
1361
  return e === null;
1362
1362
  }
1363
- var An = new de("tag:yaml.org,2002:null", {
1363
+ var Sn = new de("tag:yaml.org,2002:null", {
1364
1364
  kind: "scalar",
1365
- resolve: Ho,
1366
- construct: Jo,
1367
- predicate: Wo,
1365
+ resolve: Jo,
1366
+ construct: Wo,
1367
+ predicate: Yo,
1368
1368
  represent: {
1369
1369
  canonical: function() {
1370
1370
  return "~";
@@ -1384,23 +1384,23 @@ var An = new de("tag:yaml.org,2002:null", {
1384
1384
  },
1385
1385
  defaultStyle: "lowercase"
1386
1386
  });
1387
- function Yo(e) {
1387
+ function Zo(e) {
1388
1388
  if (e === null)
1389
1389
  return !1;
1390
1390
  var n = e.length;
1391
1391
  return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
1392
1392
  }
1393
- function Zo(e) {
1393
+ function Qo(e) {
1394
1394
  return e === "true" || e === "True" || e === "TRUE";
1395
1395
  }
1396
- function Qo(e) {
1396
+ function Xo(e) {
1397
1397
  return Object.prototype.toString.call(e) === "[object Boolean]";
1398
1398
  }
1399
- var Sn = new de("tag:yaml.org,2002:bool", {
1399
+ var xn = new de("tag:yaml.org,2002:bool", {
1400
1400
  kind: "scalar",
1401
- resolve: Yo,
1402
- construct: Zo,
1403
- predicate: Qo,
1401
+ resolve: Zo,
1402
+ construct: Qo,
1403
+ predicate: Xo,
1404
1404
  represent: {
1405
1405
  lowercase: function(e) {
1406
1406
  return e ? "true" : "false";
@@ -1414,16 +1414,16 @@ var Sn = new de("tag:yaml.org,2002:bool", {
1414
1414
  },
1415
1415
  defaultStyle: "lowercase"
1416
1416
  });
1417
- function Xo(e) {
1417
+ function ea(e) {
1418
1418
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1419
1419
  }
1420
- function ea(e) {
1420
+ function ta(e) {
1421
1421
  return 48 <= e && e <= 55;
1422
1422
  }
1423
- function ta(e) {
1423
+ function na(e) {
1424
1424
  return 48 <= e && e <= 57;
1425
1425
  }
1426
- function na(e) {
1426
+ function ra(e) {
1427
1427
  if (e === null)
1428
1428
  return !1;
1429
1429
  var n = e.length, t = 0, r = !1, o;
@@ -1444,7 +1444,7 @@ function na(e) {
1444
1444
  if (o === "x") {
1445
1445
  for (t++; t < n; t++)
1446
1446
  if (o = e[t], o !== "_") {
1447
- if (!Xo(e.charCodeAt(t)))
1447
+ if (!ea(e.charCodeAt(t)))
1448
1448
  return !1;
1449
1449
  r = !0;
1450
1450
  }
@@ -1453,7 +1453,7 @@ function na(e) {
1453
1453
  if (o === "o") {
1454
1454
  for (t++; t < n; t++)
1455
1455
  if (o = e[t], o !== "_") {
1456
- if (!ea(e.charCodeAt(t)))
1456
+ if (!ta(e.charCodeAt(t)))
1457
1457
  return !1;
1458
1458
  r = !0;
1459
1459
  }
@@ -1464,13 +1464,13 @@ function na(e) {
1464
1464
  return !1;
1465
1465
  for (; t < n; t++)
1466
1466
  if (o = e[t], o !== "_") {
1467
- if (!ta(e.charCodeAt(t)))
1467
+ if (!na(e.charCodeAt(t)))
1468
1468
  return !1;
1469
1469
  r = !0;
1470
1470
  }
1471
1471
  return !(!r || o === "_");
1472
1472
  }
1473
- function ra(e) {
1473
+ function oa(e) {
1474
1474
  var n = e, t = 1, r;
1475
1475
  if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), r = n[0], (r === "-" || r === "+") && (r === "-" && (t = -1), n = n.slice(1), r = n[0]), n === "0")
1476
1476
  return 0;
@@ -1484,14 +1484,14 @@ function ra(e) {
1484
1484
  }
1485
1485
  return t * parseInt(n, 10);
1486
1486
  }
1487
- function oa(e) {
1488
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !se.isNegativeZero(e);
1487
+ function aa(e) {
1488
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ie.isNegativeZero(e);
1489
1489
  }
1490
- var xn = new de("tag:yaml.org,2002:int", {
1490
+ var Tn = new de("tag:yaml.org,2002:int", {
1491
1491
  kind: "scalar",
1492
- resolve: na,
1493
- construct: ra,
1494
- predicate: oa,
1492
+ resolve: ra,
1493
+ construct: oa,
1494
+ predicate: aa,
1495
1495
  represent: {
1496
1496
  binary: function(e) {
1497
1497
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1514,21 +1514,21 @@ var xn = new de("tag:yaml.org,2002:int", {
1514
1514
  decimal: [10, "dec"],
1515
1515
  hexadecimal: [16, "hex"]
1516
1516
  }
1517
- }), aa = new RegExp(
1517
+ }), ia = new RegExp(
1518
1518
  // 2.5e4, 2.5 and integers
1519
1519
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
1520
1520
  );
1521
- function ia(e) {
1522
- return !(e === null || !aa.test(e) || // Quick hack to not allow integers end with `_`
1521
+ function sa(e) {
1522
+ return !(e === null || !ia.test(e) || // Quick hack to not allow integers end with `_`
1523
1523
  // Probably should update regexp & check speed
1524
1524
  e[e.length - 1] === "_");
1525
1525
  }
1526
- function sa(e) {
1526
+ function la(e) {
1527
1527
  var n, t;
1528
1528
  return n = e.replace(/_/g, "").toLowerCase(), t = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : t * parseFloat(n, 10);
1529
1529
  }
1530
- var la = /^[-+]?[0-9]+e/;
1531
- function ua(e, n) {
1530
+ var ua = /^[-+]?[0-9]+e/;
1531
+ function ca(e, n) {
1532
1532
  var t;
1533
1533
  if (isNaN(e))
1534
1534
  switch (n) {
@@ -1557,38 +1557,38 @@ function ua(e, n) {
1557
1557
  case "camelcase":
1558
1558
  return "-.Inf";
1559
1559
  }
1560
- else if (se.isNegativeZero(e))
1560
+ else if (ie.isNegativeZero(e))
1561
1561
  return "-0.0";
1562
- return t = e.toString(10), la.test(t) ? t.replace("e", ".e") : t;
1562
+ return t = e.toString(10), ua.test(t) ? t.replace("e", ".e") : t;
1563
1563
  }
1564
- function ca(e) {
1565
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || se.isNegativeZero(e));
1564
+ function da(e) {
1565
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ie.isNegativeZero(e));
1566
1566
  }
1567
- var Tn = new de("tag:yaml.org,2002:float", {
1567
+ var $n = new de("tag:yaml.org,2002:float", {
1568
1568
  kind: "scalar",
1569
- resolve: ia,
1570
- construct: sa,
1571
- predicate: ca,
1572
- represent: ua,
1569
+ resolve: sa,
1570
+ construct: la,
1571
+ predicate: da,
1572
+ represent: ca,
1573
1573
  defaultStyle: "lowercase"
1574
- }), $n = In.extend({
1574
+ }), jn = An.extend({
1575
1575
  implicit: [
1576
- An,
1577
1576
  Sn,
1578
1577
  xn,
1579
- Tn
1578
+ Tn,
1579
+ $n
1580
1580
  ]
1581
- }), jn = $n, Mn = new RegExp(
1581
+ }), Mn = jn, En = new RegExp(
1582
1582
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1583
1583
  ), On = new RegExp(
1584
1584
  "^([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]))?))?$"
1585
1585
  );
1586
- function da(e) {
1587
- return e === null ? !1 : Mn.exec(e) !== null || On.exec(e) !== null;
1588
- }
1589
1586
  function pa(e) {
1587
+ return e === null ? !1 : En.exec(e) !== null || On.exec(e) !== null;
1588
+ }
1589
+ function fa(e) {
1590
1590
  var n, t, r, o, a, i, s, l = 0, c = null, d, u, m;
1591
- if (n = Mn.exec(e), n === null && (n = On.exec(e)), n === null)
1591
+ if (n = En.exec(e), n === null && (n = On.exec(e)), n === null)
1592
1592
  throw new Error("Date resolve error");
1593
1593
  if (t = +n[1], r = +n[2] - 1, o = +n[3], !n[4])
1594
1594
  return new Date(Date.UTC(t, r, o));
@@ -1599,25 +1599,25 @@ function pa(e) {
1599
1599
  }
1600
1600
  return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), m = new Date(Date.UTC(t, r, o, a, i, s, l)), c && m.setTime(m.getTime() - c), m;
1601
1601
  }
1602
- function fa(e) {
1602
+ function ma(e) {
1603
1603
  return e.toISOString();
1604
1604
  }
1605
- var En = new de("tag:yaml.org,2002:timestamp", {
1605
+ var Kn = new de("tag:yaml.org,2002:timestamp", {
1606
1606
  kind: "scalar",
1607
- resolve: da,
1608
- construct: pa,
1607
+ resolve: pa,
1608
+ construct: fa,
1609
1609
  instanceOf: Date,
1610
- represent: fa
1610
+ represent: ma
1611
1611
  });
1612
- function ma(e) {
1612
+ function ga(e) {
1613
1613
  return e === "<<" || e === null;
1614
1614
  }
1615
- var Kn = new de("tag:yaml.org,2002:merge", {
1615
+ var Fn = new de("tag:yaml.org,2002:merge", {
1616
1616
  kind: "scalar",
1617
- resolve: ma
1617
+ resolve: ga
1618
1618
  }), Tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1619
1619
  \r`;
1620
- function ga(e) {
1620
+ function ya(e) {
1621
1621
  if (e === null)
1622
1622
  return !1;
1623
1623
  var n, t, r = 0, o = e.length, a = Tt;
@@ -1629,37 +1629,37 @@ function ga(e) {
1629
1629
  }
1630
1630
  return r % 8 === 0;
1631
1631
  }
1632
- function ya(e) {
1632
+ function ha(e) {
1633
1633
  var n, t, r = e.replace(/[\r\n=]/g, ""), o = r.length, a = Tt, i = 0, s = [];
1634
1634
  for (n = 0; n < o; n++)
1635
1635
  n % 4 === 0 && n && (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)), i = i << 6 | a.indexOf(r.charAt(n));
1636
1636
  return t = o % 4 * 6, t === 0 ? (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)) : t === 18 ? (s.push(i >> 10 & 255), s.push(i >> 2 & 255)) : t === 12 && s.push(i >> 4 & 255), new Uint8Array(s);
1637
1637
  }
1638
- function ha(e) {
1638
+ function va(e) {
1639
1639
  var n = "", t = 0, r, o, a = e.length, i = Tt;
1640
1640
  for (r = 0; r < a; r++)
1641
1641
  r % 3 === 0 && r && (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]), t = (t << 8) + e[r];
1642
1642
  return o = a % 3, o === 0 ? (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]) : o === 2 ? (n += i[t >> 10 & 63], n += i[t >> 4 & 63], n += i[t << 2 & 63], n += i[64]) : o === 1 && (n += i[t >> 2 & 63], n += i[t << 4 & 63], n += i[64], n += i[64]), n;
1643
1643
  }
1644
- function va(e) {
1644
+ function ba(e) {
1645
1645
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1646
1646
  }
1647
- var Fn = new de("tag:yaml.org,2002:binary", {
1647
+ var Nn = new de("tag:yaml.org,2002:binary", {
1648
1648
  kind: "scalar",
1649
- resolve: ga,
1650
- construct: ya,
1651
- predicate: va,
1652
- represent: ha
1653
- }), ba = Object.prototype.hasOwnProperty, ka = Object.prototype.toString;
1654
- function Ca(e) {
1649
+ resolve: ya,
1650
+ construct: ha,
1651
+ predicate: ba,
1652
+ represent: va
1653
+ }), ka = Object.prototype.hasOwnProperty, Ca = Object.prototype.toString;
1654
+ function _a(e) {
1655
1655
  if (e === null)
1656
1656
  return !0;
1657
1657
  var n = [], t, r, o, a, i, s = e;
1658
1658
  for (t = 0, r = s.length; t < r; t += 1) {
1659
- if (o = s[t], i = !1, ka.call(o) !== "[object Object]")
1659
+ if (o = s[t], i = !1, Ca.call(o) !== "[object Object]")
1660
1660
  return !1;
1661
1661
  for (a in o)
1662
- if (ba.call(o, a))
1662
+ if (ka.call(o, a))
1663
1663
  if (!i)
1664
1664
  i = !0;
1665
1665
  else
@@ -1673,26 +1673,26 @@ function Ca(e) {
1673
1673
  }
1674
1674
  return !0;
1675
1675
  }
1676
- function _a(e) {
1676
+ function wa(e) {
1677
1677
  return e !== null ? e : [];
1678
1678
  }
1679
- var Nn = new de("tag:yaml.org,2002:omap", {
1679
+ var Bn = new de("tag:yaml.org,2002:omap", {
1680
1680
  kind: "sequence",
1681
- resolve: Ca,
1682
- construct: _a
1683
- }), wa = Object.prototype.toString;
1684
- function Ia(e) {
1681
+ resolve: _a,
1682
+ construct: wa
1683
+ }), Ia = Object.prototype.toString;
1684
+ function Aa(e) {
1685
1685
  if (e === null)
1686
1686
  return !0;
1687
1687
  var n, t, r, o, a, i = e;
1688
1688
  for (a = new Array(i.length), n = 0, t = i.length; n < t; n += 1) {
1689
- if (r = i[n], wa.call(r) !== "[object Object]" || (o = Object.keys(r), o.length !== 1))
1689
+ if (r = i[n], Ia.call(r) !== "[object Object]" || (o = Object.keys(r), o.length !== 1))
1690
1690
  return !1;
1691
1691
  a[n] = [o[0], r[o[0]]];
1692
1692
  }
1693
1693
  return !0;
1694
1694
  }
1695
- function Aa(e) {
1695
+ function Sa(e) {
1696
1696
  if (e === null)
1697
1697
  return [];
1698
1698
  var n, t, r, o, a, i = e;
@@ -1700,81 +1700,81 @@ function Aa(e) {
1700
1700
  r = i[n], o = Object.keys(r), a[n] = [o[0], r[o[0]]];
1701
1701
  return a;
1702
1702
  }
1703
- var Bn = new de("tag:yaml.org,2002:pairs", {
1703
+ var Pn = new de("tag:yaml.org,2002:pairs", {
1704
1704
  kind: "sequence",
1705
- resolve: Ia,
1706
- construct: Aa
1707
- }), Sa = Object.prototype.hasOwnProperty;
1708
- function xa(e) {
1705
+ resolve: Aa,
1706
+ construct: Sa
1707
+ }), xa = Object.prototype.hasOwnProperty;
1708
+ function Ta(e) {
1709
1709
  if (e === null)
1710
1710
  return !0;
1711
1711
  var n, t = e;
1712
1712
  for (n in t)
1713
- if (Sa.call(t, n) && t[n] !== null)
1713
+ if (xa.call(t, n) && t[n] !== null)
1714
1714
  return !1;
1715
1715
  return !0;
1716
1716
  }
1717
- function Ta(e) {
1717
+ function $a(e) {
1718
1718
  return e !== null ? e : {};
1719
1719
  }
1720
- var Pn = new de("tag:yaml.org,2002:set", {
1720
+ var Ln = new de("tag:yaml.org,2002:set", {
1721
1721
  kind: "mapping",
1722
- resolve: xa,
1723
- construct: Ta
1724
- }), $t = jn.extend({
1722
+ resolve: Ta,
1723
+ construct: $a
1724
+ }), $t = Mn.extend({
1725
1725
  implicit: [
1726
- En,
1727
- Kn
1726
+ Kn,
1727
+ Fn
1728
1728
  ],
1729
1729
  explicit: [
1730
- Fn,
1731
1730
  Nn,
1732
1731
  Bn,
1733
- Pn
1732
+ Pn,
1733
+ Ln
1734
1734
  ]
1735
- }), Me = Object.prototype.hasOwnProperty, ot = 1, Ln = 2, qn = 3, at = 4, yt = 1, $a = 2, Ht = 3, ja = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ma = /[\x85\u2028\u2029]/, Oa = /[,\[\]\{\}]/, Un = /^(?:!|!!|![a-z\-]+!)$/i, Rn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1736
- function Jt(e) {
1735
+ }), Me = Object.prototype.hasOwnProperty, ot = 1, qn = 2, Un = 3, at = 4, yt = 1, ja = 2, Jt = 3, Ma = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ea = /[\x85\u2028\u2029]/, Oa = /[,\[\]\{\}]/, Rn = /^(?:!|!!|![a-z\-]+!)$/i, Vn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1736
+ function Wt(e) {
1737
1737
  return Object.prototype.toString.call(e);
1738
1738
  }
1739
1739
  function we(e) {
1740
1740
  return e === 10 || e === 13;
1741
1741
  }
1742
- function Ke(e) {
1742
+ function Fe(e) {
1743
1743
  return e === 9 || e === 32;
1744
1744
  }
1745
1745
  function he(e) {
1746
1746
  return e === 9 || e === 32 || e === 10 || e === 13;
1747
1747
  }
1748
- function qe(e) {
1748
+ function Ue(e) {
1749
1749
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1750
1750
  }
1751
- function Ea(e) {
1751
+ function Ka(e) {
1752
1752
  var n;
1753
1753
  return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
1754
1754
  }
1755
- function Ka(e) {
1755
+ function Fa(e) {
1756
1756
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1757
1757
  }
1758
- function Fa(e) {
1758
+ function Na(e) {
1759
1759
  return 48 <= e && e <= 57 ? e - 48 : -1;
1760
1760
  }
1761
- function Wt(e) {
1761
+ function Yt(e) {
1762
1762
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1763
1763
  ` : 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" : "";
1764
1764
  }
1765
- function Na(e) {
1765
+ function Ba(e) {
1766
1766
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
1767
1767
  (e - 65536 >> 10) + 55296,
1768
1768
  (e - 65536 & 1023) + 56320
1769
1769
  );
1770
1770
  }
1771
- var Vn = new Array(256), Dn = new Array(256);
1772
- for (var Pe = 0; Pe < 256; Pe++)
1773
- Vn[Pe] = Wt(Pe) ? 1 : 0, Dn[Pe] = Wt(Pe);
1774
- function Ba(e, n) {
1771
+ var Dn = new Array(256), Gn = new Array(256);
1772
+ for (var Le = 0; Le < 256; Le++)
1773
+ Dn[Le] = Yt(Le) ? 1 : 0, Gn[Le] = Yt(Le);
1774
+ function Pa(e, n) {
1775
1775
  this.input = e, this.filename = n.filename || null, this.schema = n.schema || $t, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.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 = [];
1776
1776
  }
1777
- function Gn(e, n) {
1777
+ function zn(e, n) {
1778
1778
  var t = {
1779
1779
  name: e.filename,
1780
1780
  buffer: e.input.slice(0, -1),
@@ -1783,26 +1783,26 @@ function Gn(e, n) {
1783
1783
  line: e.line,
1784
1784
  column: e.position - e.lineStart
1785
1785
  };
1786
- return t.snippet = Uo(t), new me(n, t);
1786
+ return t.snippet = Ro(t), new ge(n, t);
1787
1787
  }
1788
- function $(e, n) {
1789
- throw Gn(e, n);
1788
+ function j(e, n) {
1789
+ throw zn(e, n);
1790
1790
  }
1791
1791
  function it(e, n) {
1792
- e.onWarning && e.onWarning.call(null, Gn(e, n));
1792
+ e.onWarning && e.onWarning.call(null, zn(e, n));
1793
1793
  }
1794
- var Yt = {
1794
+ var Zt = {
1795
1795
  YAML: function(e, n, t) {
1796
1796
  var r, o, a;
1797
- e.version !== null && $(e, "duplication of %YAML directive"), t.length !== 1 && $(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), r === null && $(e, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && $(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && it(e, "unsupported YAML version of the document");
1797
+ e.version !== null && j(e, "duplication of %YAML directive"), t.length !== 1 && j(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), r === null && j(e, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && j(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && it(e, "unsupported YAML version of the document");
1798
1798
  },
1799
1799
  TAG: function(e, n, t) {
1800
1800
  var r, o;
1801
- t.length !== 2 && $(e, "TAG directive accepts exactly two arguments"), r = t[0], o = t[1], Un.test(r) || $(e, "ill-formed tag handle (first argument) of the TAG directive"), Me.call(e.tagMap, r) && $(e, 'there is a previously declared suffix for "' + r + '" tag handle'), Rn.test(o) || $(e, "ill-formed tag prefix (second argument) of the TAG directive");
1801
+ t.length !== 2 && j(e, "TAG directive accepts exactly two arguments"), r = t[0], o = t[1], Rn.test(r) || j(e, "ill-formed tag handle (first argument) of the TAG directive"), Me.call(e.tagMap, r) && j(e, 'there is a previously declared suffix for "' + r + '" tag handle'), Vn.test(o) || j(e, "ill-formed tag prefix (second argument) of the TAG directive");
1802
1802
  try {
1803
1803
  o = decodeURIComponent(o);
1804
1804
  } catch {
1805
- $(e, "tag prefix is malformed: " + o);
1805
+ j(e, "tag prefix is malformed: " + o);
1806
1806
  }
1807
1807
  e.tagMap[r] = o;
1808
1808
  }
@@ -1812,30 +1812,30 @@ function je(e, n, t, r) {
1812
1812
  if (n < t) {
1813
1813
  if (s = e.input.slice(n, t), r)
1814
1814
  for (o = 0, a = s.length; o < a; o += 1)
1815
- i = s.charCodeAt(o), i === 9 || 32 <= i && i <= 1114111 || $(e, "expected valid JSON character");
1815
+ i = s.charCodeAt(o), i === 9 || 32 <= i && i <= 1114111 || j(e, "expected valid JSON character");
1816
1816
  else
1817
- ja.test(s) && $(e, "the stream contains non-printable characters");
1817
+ Ma.test(s) && j(e, "the stream contains non-printable characters");
1818
1818
  e.result += s;
1819
1819
  }
1820
1820
  }
1821
- function Zt(e, n, t, r) {
1821
+ function Qt(e, n, t, r) {
1822
1822
  var o, a, i, s;
1823
- for (se.isObject(t) || $(e, "cannot merge mappings; the provided source object is unacceptable"), o = Object.keys(t), i = 0, s = o.length; i < s; i += 1)
1823
+ for (ie.isObject(t) || j(e, "cannot merge mappings; the provided source object is unacceptable"), o = Object.keys(t), i = 0, s = o.length; i < s; i += 1)
1824
1824
  a = o[i], Me.call(n, a) || (n[a] = t[a], r[a] = !0);
1825
1825
  }
1826
- function Ue(e, n, t, r, o, a, i, s, l) {
1826
+ function Re(e, n, t, r, o, a, i, s, l) {
1827
1827
  var c, d;
1828
1828
  if (Array.isArray(o))
1829
1829
  for (o = Array.prototype.slice.call(o), c = 0, d = o.length; c < d; c += 1)
1830
- Array.isArray(o[c]) && $(e, "nested arrays are not supported inside keys"), typeof o == "object" && Jt(o[c]) === "[object Object]" && (o[c] = "[object Object]");
1831
- if (typeof o == "object" && Jt(o) === "[object Object]" && (o = "[object Object]"), o = String(o), n === null && (n = {}), r === "tag:yaml.org,2002:merge")
1830
+ Array.isArray(o[c]) && j(e, "nested arrays are not supported inside keys"), typeof o == "object" && Wt(o[c]) === "[object Object]" && (o[c] = "[object Object]");
1831
+ if (typeof o == "object" && Wt(o) === "[object Object]" && (o = "[object Object]"), o = String(o), n === null && (n = {}), r === "tag:yaml.org,2002:merge")
1832
1832
  if (Array.isArray(a))
1833
1833
  for (c = 0, d = a.length; c < d; c += 1)
1834
- Zt(e, n, a[c], t);
1834
+ Qt(e, n, a[c], t);
1835
1835
  else
1836
- Zt(e, n, a, t);
1836
+ Qt(e, n, a, t);
1837
1837
  else
1838
- !e.json && !Me.call(t, o) && Me.call(n, o) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, $(e, "duplicated mapping key")), o === "__proto__" ? Object.defineProperty(n, o, {
1838
+ !e.json && !Me.call(t, o) && Me.call(n, o) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, j(e, "duplicated mapping key")), o === "__proto__" ? Object.defineProperty(n, o, {
1839
1839
  configurable: !0,
1840
1840
  enumerable: !0,
1841
1841
  writable: !0,
@@ -1845,11 +1845,11 @@ function Ue(e, n, t, r, o, a, i, s, l) {
1845
1845
  }
1846
1846
  function jt(e) {
1847
1847
  var n;
1848
- n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 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;
1848
+ n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 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;
1849
1849
  }
1850
1850
  function oe(e, n, t) {
1851
1851
  for (var r = 0, o = e.input.charCodeAt(e.position); o !== 0; ) {
1852
- for (; Ke(o); )
1852
+ for (; Fe(o); )
1853
1853
  o === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), o = e.input.charCodeAt(++e.position);
1854
1854
  if (n && o === 35)
1855
1855
  do
@@ -1868,22 +1868,22 @@ function dt(e) {
1868
1868
  return t = e.input.charCodeAt(n), !!((t === 45 || t === 46) && t === e.input.charCodeAt(n + 1) && t === e.input.charCodeAt(n + 2) && (n += 3, t = e.input.charCodeAt(n), t === 0 || he(t)));
1869
1869
  }
1870
1870
  function Mt(e, n) {
1871
- n === 1 ? e.result += " " : n > 1 && (e.result += se.repeat(`
1871
+ n === 1 ? e.result += " " : n > 1 && (e.result += ie.repeat(`
1872
1872
  `, n - 1));
1873
1873
  }
1874
- function Pa(e, n, t) {
1874
+ function La(e, n, t) {
1875
1875
  var r, o, a, i, s, l, c, d, u = e.kind, m = e.result, f;
1876
- if (f = e.input.charCodeAt(e.position), he(f) || qe(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) && (o = e.input.charCodeAt(e.position + 1), he(o) || t && qe(o)))
1876
+ if (f = e.input.charCodeAt(e.position), he(f) || Ue(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) && (o = e.input.charCodeAt(e.position + 1), he(o) || t && Ue(o)))
1877
1877
  return !1;
1878
1878
  for (e.kind = "scalar", e.result = "", a = i = e.position, s = !1; f !== 0; ) {
1879
1879
  if (f === 58) {
1880
- if (o = e.input.charCodeAt(e.position + 1), he(o) || t && qe(o))
1880
+ if (o = e.input.charCodeAt(e.position + 1), he(o) || t && Ue(o))
1881
1881
  break;
1882
1882
  } else if (f === 35) {
1883
1883
  if (r = e.input.charCodeAt(e.position - 1), he(r))
1884
1884
  break;
1885
1885
  } else {
1886
- if (e.position === e.lineStart && dt(e) || t && qe(f))
1886
+ if (e.position === e.lineStart && dt(e) || t && Ue(f))
1887
1887
  break;
1888
1888
  if (we(f))
1889
1889
  if (l = e.line, c = e.lineStart, d = e.lineIndent, oe(e, !1, -1), e.lineIndent >= n) {
@@ -1894,11 +1894,11 @@ function Pa(e, n, t) {
1894
1894
  break;
1895
1895
  }
1896
1896
  }
1897
- s && (je(e, a, i, !1), Mt(e, e.line - l), a = i = e.position, s = !1), Ke(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
1897
+ s && (je(e, a, i, !1), Mt(e, e.line - l), a = i = e.position, s = !1), Fe(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
1898
1898
  }
1899
1899
  return je(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
1900
1900
  }
1901
- function La(e, n) {
1901
+ function qa(e, n) {
1902
1902
  var t, r, o;
1903
1903
  if (t = e.input.charCodeAt(e.position), t !== 39)
1904
1904
  return !1;
@@ -1909,10 +1909,10 @@ function La(e, n) {
1909
1909
  else
1910
1910
  return !0;
1911
1911
  else
1912
- we(t) ? (je(e, r, o, !0), Mt(e, oe(e, !1, n)), r = o = e.position) : e.position === e.lineStart && dt(e) ? $(e, "unexpected end of the document within a single quoted scalar") : (e.position++, o = e.position);
1913
- $(e, "unexpected end of the stream within a single quoted scalar");
1912
+ we(t) ? (je(e, r, o, !0), Mt(e, oe(e, !1, n)), r = o = e.position) : e.position === e.lineStart && dt(e) ? j(e, "unexpected end of the document within a single quoted scalar") : (e.position++, o = e.position);
1913
+ j(e, "unexpected end of the stream within a single quoted scalar");
1914
1914
  }
1915
- function qa(e, n) {
1915
+ function Ua(e, n) {
1916
1916
  var t, r, o, a, i, s;
1917
1917
  if (s = e.input.charCodeAt(e.position), s !== 34)
1918
1918
  return !1;
@@ -1922,22 +1922,22 @@ function qa(e, n) {
1922
1922
  if (s === 92) {
1923
1923
  if (je(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), we(s))
1924
1924
  oe(e, !1, n);
1925
- else if (s < 256 && Vn[s])
1926
- e.result += Dn[s], e.position++;
1927
- else if ((i = Ka(s)) > 0) {
1925
+ else if (s < 256 && Dn[s])
1926
+ e.result += Gn[s], e.position++;
1927
+ else if ((i = Fa(s)) > 0) {
1928
1928
  for (o = i, a = 0; o > 0; o--)
1929
- s = e.input.charCodeAt(++e.position), (i = Ea(s)) >= 0 ? a = (a << 4) + i : $(e, "expected hexadecimal character");
1930
- e.result += Na(a), e.position++;
1929
+ s = e.input.charCodeAt(++e.position), (i = Ka(s)) >= 0 ? a = (a << 4) + i : j(e, "expected hexadecimal character");
1930
+ e.result += Ba(a), e.position++;
1931
1931
  } else
1932
- $(e, "unknown escape sequence");
1932
+ j(e, "unknown escape sequence");
1933
1933
  t = r = e.position;
1934
1934
  } else
1935
- we(s) ? (je(e, t, r, !0), Mt(e, oe(e, !1, n)), t = r = e.position) : e.position === e.lineStart && dt(e) ? $(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1935
+ we(s) ? (je(e, t, r, !0), Mt(e, oe(e, !1, n)), t = r = e.position) : e.position === e.lineStart && dt(e) ? j(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1936
1936
  }
1937
- $(e, "unexpected end of the stream within a double quoted scalar");
1937
+ j(e, "unexpected end of the stream within a double quoted scalar");
1938
1938
  }
1939
- function Ua(e, n) {
1940
- var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, m, f, I = /* @__PURE__ */ Object.create(null), v, p, S, b;
1939
+ function Ra(e, n) {
1940
+ var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, m, f, S = /* @__PURE__ */ Object.create(null), h, p, A, b;
1941
1941
  if (b = e.input.charCodeAt(e.position), b === 91)
1942
1942
  d = 93, f = !1, s = [];
1943
1943
  else if (b === 123)
@@ -1947,11 +1947,11 @@ function Ua(e, n) {
1947
1947
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), b = e.input.charCodeAt(++e.position); b !== 0; ) {
1948
1948
  if (oe(e, !0, n), b = e.input.charCodeAt(e.position), b === d)
1949
1949
  return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
1950
- t ? b === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), p = v = S = null, u = m = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = m = !0, e.position++, oe(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Re(e, n, ot, !1, !0), p = e.tag, v = e.result, oe(e, !0, n), b = e.input.charCodeAt(e.position), (m || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), oe(e, !0, n), Re(e, n, ot, !1, !0), S = e.result), f ? Ue(e, s, I, p, v, S, r, o, a) : u ? s.push(Ue(e, null, I, p, v, S, r, o, a)) : s.push(v), oe(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (t = !0, b = e.input.charCodeAt(++e.position)) : t = !1;
1950
+ t ? b === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), p = h = A = null, u = m = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = m = !0, e.position++, oe(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Ve(e, n, ot, !1, !0), p = e.tag, h = e.result, oe(e, !0, n), b = e.input.charCodeAt(e.position), (m || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), oe(e, !0, n), Ve(e, n, ot, !1, !0), A = e.result), f ? Re(e, s, S, p, h, A, r, o, a) : u ? s.push(Re(e, null, S, p, h, A, r, o, a)) : s.push(h), oe(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (t = !0, b = e.input.charCodeAt(++e.position)) : t = !1;
1951
1951
  }
1952
- $(e, "unexpected end of the stream within a flow collection");
1952
+ j(e, "unexpected end of the stream within a flow collection");
1953
1953
  }
1954
- function Ra(e, n) {
1954
+ function Va(e, n) {
1955
1955
  var t, r, o = yt, a = !1, i = !1, s = n, l = 0, c = !1, d, u;
1956
1956
  if (u = e.input.charCodeAt(e.position), u === 124)
1957
1957
  r = !1;
@@ -1961,15 +1961,15 @@ function Ra(e, n) {
1961
1961
  return !1;
1962
1962
  for (e.kind = "scalar", e.result = ""; u !== 0; )
1963
1963
  if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
1964
- yt === o ? o = u === 43 ? Ht : $a : $(e, "repeat of a chomping mode identifier");
1965
- else if ((d = Fa(u)) >= 0)
1966
- d === 0 ? $(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? $(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
1964
+ yt === o ? o = u === 43 ? Jt : ja : j(e, "repeat of a chomping mode identifier");
1965
+ else if ((d = Na(u)) >= 0)
1966
+ d === 0 ? j(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? j(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
1967
1967
  else
1968
1968
  break;
1969
- if (Ke(u)) {
1969
+ if (Fe(u)) {
1970
1970
  do
1971
1971
  u = e.input.charCodeAt(++e.position);
1972
- while (Ke(u));
1972
+ while (Fe(u));
1973
1973
  if (u === 35)
1974
1974
  do
1975
1975
  u = e.input.charCodeAt(++e.position);
@@ -1983,139 +1983,139 @@ function Ra(e, n) {
1983
1983
  continue;
1984
1984
  }
1985
1985
  if (e.lineIndent < s) {
1986
- o === Ht ? e.result += se.repeat(`
1986
+ o === Jt ? e.result += ie.repeat(`
1987
1987
  `, a ? 1 + l : l) : o === yt && a && (e.result += `
1988
1988
  `);
1989
1989
  break;
1990
1990
  }
1991
- for (r ? Ke(u) ? (c = !0, e.result += se.repeat(`
1992
- `, a ? 1 + l : l)) : c ? (c = !1, e.result += se.repeat(`
1993
- `, l + 1)) : l === 0 ? a && (e.result += " ") : e.result += se.repeat(`
1994
- `, l) : e.result += se.repeat(`
1991
+ for (r ? Fe(u) ? (c = !0, e.result += ie.repeat(`
1992
+ `, a ? 1 + l : l)) : c ? (c = !1, e.result += ie.repeat(`
1993
+ `, l + 1)) : l === 0 ? a && (e.result += " ") : e.result += ie.repeat(`
1994
+ `, l) : e.result += ie.repeat(`
1995
1995
  `, a ? 1 + l : l), a = !0, i = !0, l = 0, t = e.position; !we(u) && u !== 0; )
1996
1996
  u = e.input.charCodeAt(++e.position);
1997
1997
  je(e, t, e.position, !1);
1998
1998
  }
1999
1999
  return !0;
2000
2000
  }
2001
- function Qt(e, n) {
2001
+ function Xt(e, n) {
2002
2002
  var t, r = e.tag, o = e.anchor, a = [], i, s = !1, l;
2003
2003
  if (e.firstTabInLine !== -1)
2004
2004
  return !1;
2005
- for (e.anchor !== null && (e.anchorMap[e.anchor] = a), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), !(l !== 45 || (i = e.input.charCodeAt(e.position + 1), !he(i)))); ) {
2005
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = a), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), !(l !== 45 || (i = e.input.charCodeAt(e.position + 1), !he(i)))); ) {
2006
2006
  if (s = !0, e.position++, oe(e, !0, -1) && e.lineIndent <= n) {
2007
2007
  a.push(null), l = e.input.charCodeAt(e.position);
2008
2008
  continue;
2009
2009
  }
2010
- if (t = e.line, Re(e, n, qn, !1, !0), a.push(e.result), oe(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
2011
- $(e, "bad indentation of a sequence entry");
2010
+ if (t = e.line, Ve(e, n, Un, !1, !0), a.push(e.result), oe(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
2011
+ j(e, "bad indentation of a sequence entry");
2012
2012
  else if (e.lineIndent < n)
2013
2013
  break;
2014
2014
  }
2015
2015
  return s ? (e.tag = r, e.anchor = o, e.kind = "sequence", e.result = a, !0) : !1;
2016
2016
  }
2017
- function Va(e, n, t) {
2018
- var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, I = null, v = null, p = !1, S = !1, b;
2017
+ function Da(e, n, t) {
2018
+ var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, S = null, h = null, p = !1, A = !1, b;
2019
2019
  if (e.firstTabInLine !== -1)
2020
2020
  return !1;
2021
2021
  for (e.anchor !== null && (e.anchorMap[e.anchor] = u), b = e.input.charCodeAt(e.position); b !== 0; ) {
2022
- if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (b === 63 || b === 58) && he(r))
2023
- b === 63 ? (p && (Ue(e, u, m, f, I, null, i, s, l), f = I = v = null), S = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : $(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
2022
+ if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (b === 63 || b === 58) && he(r))
2023
+ b === 63 ? (p && (Re(e, u, m, f, S, null, i, s, l), f = S = h = null), A = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : j(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
2024
2024
  else {
2025
- if (i = e.line, s = e.lineStart, l = e.position, !Re(e, t, Ln, !1, !0))
2025
+ if (i = e.line, s = e.lineStart, l = e.position, !Ve(e, t, qn, !1, !0))
2026
2026
  break;
2027
2027
  if (e.line === a) {
2028
- for (b = e.input.charCodeAt(e.position); Ke(b); )
2028
+ for (b = e.input.charCodeAt(e.position); Fe(b); )
2029
2029
  b = e.input.charCodeAt(++e.position);
2030
2030
  if (b === 58)
2031
- b = e.input.charCodeAt(++e.position), he(b) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ue(e, u, m, f, I, null, i, s, l), f = I = v = null), S = !0, p = !1, o = !1, f = e.tag, I = e.result;
2032
- else if (S)
2033
- $(e, "can not read an implicit mapping pair; a colon is missed");
2031
+ b = e.input.charCodeAt(++e.position), he(b) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Re(e, u, m, f, S, null, i, s, l), f = S = h = null), A = !0, p = !1, o = !1, f = e.tag, S = e.result;
2032
+ else if (A)
2033
+ j(e, "can not read an implicit mapping pair; a colon is missed");
2034
2034
  else
2035
2035
  return e.tag = c, e.anchor = d, !0;
2036
- } else if (S)
2037
- $(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2036
+ } else if (A)
2037
+ j(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2038
2038
  else
2039
2039
  return e.tag = c, e.anchor = d, !0;
2040
2040
  }
2041
- if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Re(e, n, at, !0, o) && (p ? I = e.result : v = e.result), p || (Ue(e, u, m, f, I, v, i, s, l), f = I = v = null), oe(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > n) && b !== 0)
2042
- $(e, "bad indentation of a mapping entry");
2041
+ if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Ve(e, n, at, !0, o) && (p ? S = e.result : h = e.result), p || (Re(e, u, m, f, S, h, i, s, l), f = S = h = null), oe(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > n) && b !== 0)
2042
+ j(e, "bad indentation of a mapping entry");
2043
2043
  else if (e.lineIndent < n)
2044
2044
  break;
2045
2045
  }
2046
- return p && Ue(e, u, m, f, I, null, i, s, l), S && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), S;
2046
+ return p && Re(e, u, m, f, S, null, i, s, l), A && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), A;
2047
2047
  }
2048
- function Da(e) {
2048
+ function Ga(e) {
2049
2049
  var n, t = !1, r = !1, o, a, i;
2050
2050
  if (i = e.input.charCodeAt(e.position), i !== 33)
2051
2051
  return !1;
2052
- if (e.tag !== null && $(e, "duplication of a tag property"), i = e.input.charCodeAt(++e.position), i === 60 ? (t = !0, i = e.input.charCodeAt(++e.position)) : i === 33 ? (r = !0, o = "!!", i = e.input.charCodeAt(++e.position)) : o = "!", n = e.position, t) {
2052
+ if (e.tag !== null && j(e, "duplication of a tag property"), i = e.input.charCodeAt(++e.position), i === 60 ? (t = !0, i = e.input.charCodeAt(++e.position)) : i === 33 ? (r = !0, o = "!!", i = e.input.charCodeAt(++e.position)) : o = "!", n = e.position, t) {
2053
2053
  do
2054
2054
  i = e.input.charCodeAt(++e.position);
2055
2055
  while (i !== 0 && i !== 62);
2056
- e.position < e.length ? (a = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) : $(e, "unexpected end of the stream within a verbatim tag");
2056
+ e.position < e.length ? (a = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) : j(e, "unexpected end of the stream within a verbatim tag");
2057
2057
  } else {
2058
2058
  for (; i !== 0 && !he(i); )
2059
- i === 33 && (r ? $(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(n - 1, e.position + 1), Un.test(o) || $(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
2060
- a = e.input.slice(n, e.position), Oa.test(a) && $(e, "tag suffix cannot contain flow indicator characters");
2059
+ i === 33 && (r ? j(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(n - 1, e.position + 1), Rn.test(o) || j(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
2060
+ a = e.input.slice(n, e.position), Oa.test(a) && j(e, "tag suffix cannot contain flow indicator characters");
2061
2061
  }
2062
- a && !Rn.test(a) && $(e, "tag name cannot contain such characters: " + a);
2062
+ a && !Vn.test(a) && j(e, "tag name cannot contain such characters: " + a);
2063
2063
  try {
2064
2064
  a = decodeURIComponent(a);
2065
2065
  } catch {
2066
- $(e, "tag name is malformed: " + a);
2066
+ j(e, "tag name is malformed: " + a);
2067
2067
  }
2068
- return t ? e.tag = a : Me.call(e.tagMap, o) ? e.tag = e.tagMap[o] + a : o === "!" ? e.tag = "!" + a : o === "!!" ? e.tag = "tag:yaml.org,2002:" + a : $(e, 'undeclared tag handle "' + o + '"'), !0;
2068
+ return t ? e.tag = a : Me.call(e.tagMap, o) ? e.tag = e.tagMap[o] + a : o === "!" ? e.tag = "!" + a : o === "!!" ? e.tag = "tag:yaml.org,2002:" + a : j(e, 'undeclared tag handle "' + o + '"'), !0;
2069
2069
  }
2070
- function Ga(e) {
2070
+ function za(e) {
2071
2071
  var n, t;
2072
2072
  if (t = e.input.charCodeAt(e.position), t !== 38)
2073
2073
  return !1;
2074
- for (e.anchor !== null && $(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !he(t) && !qe(t); )
2074
+ for (e.anchor !== null && j(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !he(t) && !Ue(t); )
2075
2075
  t = e.input.charCodeAt(++e.position);
2076
- return e.position === n && $(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
2076
+ return e.position === n && j(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
2077
2077
  }
2078
- function za(e) {
2078
+ function Ha(e) {
2079
2079
  var n, t, r;
2080
2080
  if (r = e.input.charCodeAt(e.position), r !== 42)
2081
2081
  return !1;
2082
- for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !he(r) && !qe(r); )
2082
+ for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !he(r) && !Ue(r); )
2083
2083
  r = e.input.charCodeAt(++e.position);
2084
- return e.position === n && $(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Me.call(e.anchorMap, t) || $(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], oe(e, !0, -1), !0;
2084
+ return e.position === n && j(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Me.call(e.anchorMap, t) || j(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], oe(e, !0, -1), !0;
2085
2085
  }
2086
- function Re(e, n, t, r, o) {
2087
- var a, i, s, l = 1, c = !1, d = !1, u, m, f, I, v, p;
2088
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = i = s = at === t || qn === t, r && oe(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2089
- for (; Da(e) || Ga(e); )
2086
+ function Ve(e, n, t, r, o) {
2087
+ var a, i, s, l = 1, c = !1, d = !1, u, m, f, S, h, p;
2088
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = i = s = at === t || Un === t, r && oe(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2089
+ for (; Ga(e) || za(e); )
2090
2090
  oe(e, !0, -1) ? (c = !0, s = a, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
2091
- if (s && (s = c || o), (l === 1 || at === t) && (ot === t || Ln === t ? v = n : v = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Qt(e, p) || Va(e, p, v)) || Ua(e, v) ? d = !0 : (i && Ra(e, v) || La(e, v) || qa(e, v) ? d = !0 : za(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && $(e, "alias node should not have any properties")) : Pa(e, v, ot === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Qt(e, p))), e.tag === null)
2091
+ if (s && (s = c || o), (l === 1 || at === t) && (ot === t || qn === t ? h = n : h = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Xt(e, p) || Da(e, p, h)) || Ra(e, h) ? d = !0 : (i && Va(e, h) || qa(e, h) || Ua(e, h) ? d = !0 : Ha(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && j(e, "alias node should not have any properties")) : La(e, h, ot === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Xt(e, p))), e.tag === null)
2092
2092
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2093
2093
  else if (e.tag === "?") {
2094
- for (e.result !== null && e.kind !== "scalar" && $(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
2095
- if (I = e.implicitTypes[u], I.resolve(e.result)) {
2096
- e.result = I.construct(e.result), e.tag = I.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2094
+ for (e.result !== null && e.kind !== "scalar" && j(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
2095
+ if (S = e.implicitTypes[u], S.resolve(e.result)) {
2096
+ e.result = S.construct(e.result), e.tag = S.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2097
2097
  break;
2098
2098
  }
2099
2099
  } else if (e.tag !== "!") {
2100
2100
  if (Me.call(e.typeMap[e.kind || "fallback"], e.tag))
2101
- I = e.typeMap[e.kind || "fallback"][e.tag];
2101
+ S = e.typeMap[e.kind || "fallback"][e.tag];
2102
2102
  else
2103
- for (I = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, m = f.length; u < m; u += 1)
2103
+ for (S = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, m = f.length; u < m; u += 1)
2104
2104
  if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
2105
- I = f[u];
2105
+ S = f[u];
2106
2106
  break;
2107
2107
  }
2108
- I || $(e, "unknown tag !<" + e.tag + ">"), e.result !== null && I.kind !== e.kind && $(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + I.kind + '", not "' + e.kind + '"'), I.resolve(e.result, e.tag) ? (e.result = I.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : $(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2108
+ S || j(e, "unknown tag !<" + e.tag + ">"), e.result !== null && S.kind !== e.kind && j(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + S.kind + '", not "' + e.kind + '"'), S.resolve(e.result, e.tag) ? (e.result = S.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");
2109
2109
  }
2110
2110
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2111
2111
  }
2112
- function Ha(e) {
2112
+ function Ja(e) {
2113
2113
  var n = e.position, t, r, o, a = !1, i;
2114
2114
  for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (i = e.input.charCodeAt(e.position)) !== 0 && (oe(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
2115
2115
  for (a = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !he(i); )
2116
2116
  i = e.input.charCodeAt(++e.position);
2117
- for (r = e.input.slice(t, e.position), o = [], r.length < 1 && $(e, "directive name must not be less than one character in length"); i !== 0; ) {
2118
- for (; Ke(i); )
2117
+ for (r = e.input.slice(t, e.position), o = [], r.length < 1 && j(e, "directive name must not be less than one character in length"); i !== 0; ) {
2118
+ for (; Fe(i); )
2119
2119
  i = e.input.charCodeAt(++e.position);
2120
2120
  if (i === 35) {
2121
2121
  do
@@ -2129,63 +2129,63 @@ function Ha(e) {
2129
2129
  i = e.input.charCodeAt(++e.position);
2130
2130
  o.push(e.input.slice(t, e.position));
2131
2131
  }
2132
- i !== 0 && jt(e), Me.call(Yt, r) ? Yt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
2132
+ i !== 0 && jt(e), Me.call(Zt, r) ? Zt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
2133
2133
  }
2134
- if (oe(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, oe(e, !0, -1)) : a && $(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, at, !1, !0), oe(e, !0, -1), e.checkLineBreaks && Ma.test(e.input.slice(n, e.position)) && it(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && dt(e)) {
2134
+ if (oe(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, oe(e, !0, -1)) : a && j(e, "directives end mark is expected"), Ve(e, e.lineIndent - 1, at, !1, !0), oe(e, !0, -1), e.checkLineBreaks && Ea.test(e.input.slice(n, e.position)) && it(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && dt(e)) {
2135
2135
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, oe(e, !0, -1));
2136
2136
  return;
2137
2137
  }
2138
2138
  if (e.position < e.length - 1)
2139
- $(e, "end of the stream or a document separator is expected");
2139
+ j(e, "end of the stream or a document separator is expected");
2140
2140
  else
2141
2141
  return;
2142
2142
  }
2143
- function zn(e, n) {
2143
+ function Hn(e, n) {
2144
2144
  e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2145
2145
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2146
- var t = new Ba(e, n), r = e.indexOf("\0");
2147
- for (r !== -1 && (t.position = r, $(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
2146
+ var t = new Pa(e, n), r = e.indexOf("\0");
2147
+ for (r !== -1 && (t.position = r, j(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
2148
2148
  t.lineIndent += 1, t.position += 1;
2149
2149
  for (; t.position < t.length - 1; )
2150
- Ha(t);
2150
+ Ja(t);
2151
2151
  return t.documents;
2152
2152
  }
2153
- function Ja(e, n, t) {
2153
+ function Wa(e, n, t) {
2154
2154
  n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
2155
- var r = zn(e, t);
2155
+ var r = Hn(e, t);
2156
2156
  if (typeof n != "function")
2157
2157
  return r;
2158
2158
  for (var o = 0, a = r.length; o < a; o += 1)
2159
2159
  n(r[o]);
2160
2160
  }
2161
- function Wa(e, n) {
2162
- var t = zn(e, n);
2161
+ function Ya(e, n) {
2162
+ var t = Hn(e, n);
2163
2163
  if (t.length !== 0) {
2164
2164
  if (t.length === 1)
2165
2165
  return t[0];
2166
- throw new me("expected a single document in the stream, but found more");
2166
+ throw new ge("expected a single document in the stream, but found more");
2167
2167
  }
2168
2168
  }
2169
- var Ya = Ja, Za = Wa, Hn = {
2170
- loadAll: Ya,
2171
- load: Za
2172
- }, Jn = Object.prototype.toString, Wn = Object.prototype.hasOwnProperty, Ot = 65279, Qa = 9, We = 10, Xa = 13, ei = 32, ti = 33, ni = 34, bt = 35, ri = 37, oi = 38, ai = 39, ii = 42, Yn = 44, si = 45, st = 58, li = 61, ui = 62, ci = 63, di = 64, Zn = 91, Qn = 93, pi = 96, Xn = 123, fi = 124, er = 125, fe = {};
2173
- fe[0] = "\\0";
2174
- fe[7] = "\\a";
2175
- fe[8] = "\\b";
2176
- fe[9] = "\\t";
2177
- fe[10] = "\\n";
2178
- fe[11] = "\\v";
2179
- fe[12] = "\\f";
2180
- fe[13] = "\\r";
2181
- fe[27] = "\\e";
2182
- fe[34] = '\\"';
2183
- fe[92] = "\\\\";
2184
- fe[133] = "\\N";
2185
- fe[160] = "\\_";
2186
- fe[8232] = "\\L";
2187
- fe[8233] = "\\P";
2188
- var mi = [
2169
+ var Za = Wa, Qa = Ya, Jn = {
2170
+ loadAll: Za,
2171
+ load: Qa
2172
+ }, Wn = Object.prototype.toString, Yn = Object.prototype.hasOwnProperty, Et = 65279, Xa = 9, Je = 10, ei = 13, ti = 32, ni = 33, ri = 34, bt = 35, oi = 37, ai = 38, ii = 39, si = 42, Zn = 44, li = 45, st = 58, ui = 61, ci = 62, di = 63, pi = 64, Qn = 91, Xn = 93, fi = 96, er = 123, mi = 124, tr = 125, me = {};
2173
+ me[0] = "\\0";
2174
+ me[7] = "\\a";
2175
+ me[8] = "\\b";
2176
+ me[9] = "\\t";
2177
+ me[10] = "\\n";
2178
+ me[11] = "\\v";
2179
+ me[12] = "\\f";
2180
+ me[13] = "\\r";
2181
+ me[27] = "\\e";
2182
+ me[34] = '\\"';
2183
+ me[92] = "\\\\";
2184
+ me[133] = "\\N";
2185
+ me[160] = "\\_";
2186
+ me[8232] = "\\L";
2187
+ me[8233] = "\\P";
2188
+ var gi = [
2189
2189
  "y",
2190
2190
  "Y",
2191
2191
  "yes",
@@ -2202,16 +2202,16 @@ var mi = [
2202
2202
  "off",
2203
2203
  "Off",
2204
2204
  "OFF"
2205
- ], gi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2206
- function yi(e, n) {
2205
+ ], yi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2206
+ function hi(e, n) {
2207
2207
  var t, r, o, a, i, s, l;
2208
2208
  if (n === null)
2209
2209
  return {};
2210
2210
  for (t = {}, r = Object.keys(n), o = 0, a = r.length; o < a; o += 1)
2211
- i = r[o], s = String(n[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), l = e.compiledTypeMap.fallback[i], l && Wn.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[i] = s;
2211
+ i = r[o], s = String(n[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), l = e.compiledTypeMap.fallback[i], l && Yn.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[i] = s;
2212
2212
  return t;
2213
2213
  }
2214
- function hi(e) {
2214
+ function vi(e) {
2215
2215
  var n, t, r;
2216
2216
  if (n = e.toString(16).toUpperCase(), e <= 255)
2217
2217
  t = "x", r = 2;
@@ -2220,15 +2220,15 @@ function hi(e) {
2220
2220
  else if (e <= 4294967295)
2221
2221
  t = "U", r = 8;
2222
2222
  else
2223
- throw new me("code point within a string may not be greater than 0xFFFFFFFF");
2224
- return "\\" + t + se.repeat("0", r - n.length) + n;
2223
+ throw new ge("code point within a string may not be greater than 0xFFFFFFFF");
2224
+ return "\\" + t + ie.repeat("0", r - n.length) + n;
2225
2225
  }
2226
- var vi = 1, Ye = 2;
2227
- function bi(e) {
2228
- this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = se.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = yi(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 === '"' ? Ye : vi, 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;
2226
+ var bi = 1, We = 2;
2227
+ function ki(e) {
2228
+ this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ie.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = hi(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 === '"' ? We : bi, 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;
2229
2229
  }
2230
- function Xt(e, n) {
2231
- for (var t = se.repeat(" ", n), r = 0, o = -1, a = "", i, s = e.length; r < s; )
2230
+ function en(e, n) {
2231
+ for (var t = ie.repeat(" ", n), r = 0, o = -1, a = "", i, s = e.length; r < s; )
2232
2232
  o = e.indexOf(`
2233
2233
  `, r), o === -1 ? (i = e.slice(r), r = s) : (i = e.slice(r, o + 1), r = o + 1), i.length && i !== `
2234
2234
  ` && (a += t), a += i;
@@ -2236,9 +2236,9 @@ function Xt(e, n) {
2236
2236
  }
2237
2237
  function kt(e, n) {
2238
2238
  return `
2239
- ` + se.repeat(" ", e.indent * n);
2239
+ ` + ie.repeat(" ", e.indent * n);
2240
2240
  }
2241
- function ki(e, n) {
2241
+ function Ci(e, n) {
2242
2242
  var t, r, o;
2243
2243
  for (t = 0, r = e.implicitTypes.length; t < r; t += 1)
2244
2244
  if (o = e.implicitTypes[t], o.resolve(n))
@@ -2246,71 +2246,71 @@ function ki(e, n) {
2246
2246
  return !1;
2247
2247
  }
2248
2248
  function lt(e) {
2249
- return e === ei || e === Qa;
2249
+ return e === ti || e === Xa;
2250
2250
  }
2251
- function Ze(e) {
2252
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Ot || 65536 <= e && e <= 1114111;
2251
+ function Ye(e) {
2252
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Et || 65536 <= e && e <= 1114111;
2253
2253
  }
2254
- function en(e) {
2255
- return Ze(e) && e !== Ot && e !== Xa && e !== We;
2254
+ function tn(e) {
2255
+ return Ye(e) && e !== Et && e !== ei && e !== Je;
2256
2256
  }
2257
- function tn(e, n, t) {
2258
- var r = en(e), o = r && !lt(e);
2257
+ function nn(e, n, t) {
2258
+ var r = tn(e), o = r && !lt(e);
2259
2259
  return (
2260
2260
  // ns-plain-safe
2261
2261
  (t ? (
2262
2262
  // c = flow-in
2263
2263
  r
2264
- ) : r && e !== Yn && e !== Zn && e !== Qn && e !== Xn && e !== er) && e !== bt && !(n === st && !o) || en(n) && !lt(n) && e === bt || n === st && o
2264
+ ) : r && e !== Zn && e !== Qn && e !== Xn && e !== er && e !== tr) && e !== bt && !(n === st && !o) || tn(n) && !lt(n) && e === bt || n === st && o
2265
2265
  );
2266
2266
  }
2267
- function Ci(e) {
2268
- return Ze(e) && e !== Ot && !lt(e) && e !== si && e !== ci && e !== st && e !== Yn && e !== Zn && e !== Qn && e !== Xn && e !== er && e !== bt && e !== oi && e !== ii && e !== ti && e !== fi && e !== li && e !== ui && e !== ai && e !== ni && e !== ri && e !== di && e !== pi;
2269
- }
2270
2267
  function _i(e) {
2268
+ return Ye(e) && e !== Et && !lt(e) && e !== li && e !== di && e !== st && e !== Zn && e !== Qn && e !== Xn && e !== er && e !== tr && e !== bt && e !== ai && e !== si && e !== ni && e !== mi && e !== ui && e !== ci && e !== ii && e !== ri && e !== oi && e !== pi && e !== fi;
2269
+ }
2270
+ function wi(e) {
2271
2271
  return !lt(e) && e !== st;
2272
2272
  }
2273
- function ze(e, n) {
2273
+ function Ge(e, n) {
2274
2274
  var t = e.charCodeAt(n), r;
2275
2275
  return t >= 55296 && t <= 56319 && n + 1 < e.length && (r = e.charCodeAt(n + 1), r >= 56320 && r <= 57343) ? (t - 55296) * 1024 + r - 56320 + 65536 : t;
2276
2276
  }
2277
- function tr(e) {
2277
+ function nr(e) {
2278
2278
  var n = /^\n* /;
2279
2279
  return n.test(e);
2280
2280
  }
2281
- var nr = 1, Ct = 2, rr = 3, or = 4, Le = 5;
2282
- function wi(e, n, t, r, o, a, i, s) {
2283
- var l, c = 0, d = null, u = !1, m = !1, f = r !== -1, I = -1, v = Ci(ze(e, 0)) && _i(ze(e, e.length - 1));
2281
+ var rr = 1, Ct = 2, or = 3, ar = 4, qe = 5;
2282
+ function Ii(e, n, t, r, o, a, i, s) {
2283
+ var l, c = 0, d = null, u = !1, m = !1, f = r !== -1, S = -1, h = _i(Ge(e, 0)) && wi(Ge(e, e.length - 1));
2284
2284
  if (n || i)
2285
2285
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2286
- if (c = ze(e, l), !Ze(c))
2287
- return Le;
2288
- v = v && tn(c, d, s), d = c;
2286
+ if (c = Ge(e, l), !Ye(c))
2287
+ return qe;
2288
+ h = h && nn(c, d, s), d = c;
2289
2289
  }
2290
2290
  else {
2291
2291
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2292
- if (c = ze(e, l), c === We)
2292
+ if (c = Ge(e, l), c === Je)
2293
2293
  u = !0, f && (m = m || // Foldable line = too long, and not more-indented.
2294
- l - I - 1 > r && e[I + 1] !== " ", I = l);
2295
- else if (!Ze(c))
2296
- return Le;
2297
- v = v && tn(c, d, s), d = c;
2294
+ l - S - 1 > r && e[S + 1] !== " ", S = l);
2295
+ else if (!Ye(c))
2296
+ return qe;
2297
+ h = h && nn(c, d, s), d = c;
2298
2298
  }
2299
- m = m || f && l - I - 1 > r && e[I + 1] !== " ";
2299
+ m = m || f && l - S - 1 > r && e[S + 1] !== " ";
2300
2300
  }
2301
- return !u && !m ? v && !i && !o(e) ? nr : a === Ye ? Le : Ct : t > 9 && tr(e) ? Le : i ? a === Ye ? Le : Ct : m ? or : rr;
2301
+ return !u && !m ? h && !i && !o(e) ? rr : a === We ? qe : Ct : t > 9 && nr(e) ? qe : i ? a === We ? qe : Ct : m ? ar : or;
2302
2302
  }
2303
- function Ii(e, n, t, r, o) {
2303
+ function Ai(e, n, t, r, o) {
2304
2304
  e.dump = function() {
2305
2305
  if (n.length === 0)
2306
- return e.quotingType === Ye ? '""' : "''";
2307
- if (!e.noCompatMode && (mi.indexOf(n) !== -1 || gi.test(n)))
2308
- return e.quotingType === Ye ? '"' + n + '"' : "'" + n + "'";
2306
+ return e.quotingType === We ? '""' : "''";
2307
+ if (!e.noCompatMode && (gi.indexOf(n) !== -1 || yi.test(n)))
2308
+ return e.quotingType === We ? '"' + n + '"' : "'" + n + "'";
2309
2309
  var a = e.indent * Math.max(1, t), i = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), s = r || e.flowLevel > -1 && t >= e.flowLevel;
2310
2310
  function l(c) {
2311
- return ki(e, c);
2311
+ return Ci(e, c);
2312
2312
  }
2313
- switch (wi(
2313
+ switch (Ii(
2314
2314
  n,
2315
2315
  s,
2316
2316
  e.indent,
@@ -2320,47 +2320,47 @@ function Ii(e, n, t, r, o) {
2320
2320
  e.forceQuotes && !r,
2321
2321
  o
2322
2322
  )) {
2323
- case nr:
2323
+ case rr:
2324
2324
  return n;
2325
2325
  case Ct:
2326
2326
  return "'" + n.replace(/'/g, "''") + "'";
2327
- case rr:
2328
- return "|" + nn(n, e.indent) + rn(Xt(n, a));
2329
2327
  case or:
2330
- return ">" + nn(n, e.indent) + rn(Xt(Ai(n, i), a));
2331
- case Le:
2332
- return '"' + Si(n) + '"';
2328
+ return "|" + rn(n, e.indent) + on(en(n, a));
2329
+ case ar:
2330
+ return ">" + rn(n, e.indent) + on(en(Si(n, i), a));
2331
+ case qe:
2332
+ return '"' + xi(n) + '"';
2333
2333
  default:
2334
- throw new me("impossible error: invalid scalar style");
2334
+ throw new ge("impossible error: invalid scalar style");
2335
2335
  }
2336
2336
  }();
2337
2337
  }
2338
- function nn(e, n) {
2339
- var t = tr(e) ? String(n) : "", r = e[e.length - 1] === `
2338
+ function rn(e, n) {
2339
+ var t = nr(e) ? String(n) : "", r = e[e.length - 1] === `
2340
2340
  `, o = r && (e[e.length - 2] === `
2341
2341
  ` || e === `
2342
2342
  `), a = o ? "+" : r ? "" : "-";
2343
2343
  return t + a + `
2344
2344
  `;
2345
2345
  }
2346
- function rn(e) {
2346
+ function on(e) {
2347
2347
  return e[e.length - 1] === `
2348
2348
  ` ? e.slice(0, -1) : e;
2349
2349
  }
2350
- function Ai(e, n) {
2350
+ function Si(e, n) {
2351
2351
  for (var t = /(\n+)([^\n]*)/g, r = function() {
2352
2352
  var c = e.indexOf(`
2353
2353
  `);
2354
- return c = c !== -1 ? c : e.length, t.lastIndex = c, on(e.slice(0, c), n);
2354
+ return c = c !== -1 ? c : e.length, t.lastIndex = c, an(e.slice(0, c), n);
2355
2355
  }(), o = e[0] === `
2356
2356
  ` || e[0] === " ", a, i; i = t.exec(e); ) {
2357
2357
  var s = i[1], l = i[2];
2358
2358
  a = l[0] === " ", r += s + (!o && !a && l !== "" ? `
2359
- ` : "") + on(l, n), o = a;
2359
+ ` : "") + an(l, n), o = a;
2360
2360
  }
2361
2361
  return r;
2362
2362
  }
2363
- function on(e, n) {
2363
+ function an(e, n) {
2364
2364
  if (e === "" || e[0] === " ")
2365
2365
  return e;
2366
2366
  for (var t = / [^ ]/g, r, o = 0, a, i = 0, s = 0, l = ""; r = t.exec(e); )
@@ -2370,52 +2370,52 @@ function on(e, n) {
2370
2370
  `, e.length - o > n && i > o ? l += e.slice(o, i) + `
2371
2371
  ` + e.slice(i + 1) : l += e.slice(o), l.slice(1);
2372
2372
  }
2373
- function Si(e) {
2373
+ function xi(e) {
2374
2374
  for (var n = "", t = 0, r, o = 0; o < e.length; t >= 65536 ? o += 2 : o++)
2375
- t = ze(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || hi(t);
2375
+ t = Ge(e, o), r = me[t], !r && Ye(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || vi(t);
2376
2376
  return n;
2377
2377
  }
2378
- function xi(e, n, t) {
2378
+ function Ti(e, n, t) {
2379
2379
  var r = "", o = e.tag, a, i, s;
2380
2380
  for (a = 0, i = t.length; a < i; a += 1)
2381
2381
  s = t[a], e.replacer && (s = e.replacer.call(t, String(a), s)), (Se(e, n, s, !1, !1) || typeof s > "u" && Se(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2382
2382
  e.tag = o, e.dump = "[" + r + "]";
2383
2383
  }
2384
- function an(e, n, t, r) {
2384
+ function sn(e, n, t, r) {
2385
2385
  var o = "", a = e.tag, i, s, l;
2386
2386
  for (i = 0, s = t.length; i < s; i += 1)
2387
- l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Se(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Se(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += kt(e, n)), e.dump && We === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
2387
+ l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Se(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Se(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += kt(e, n)), e.dump && Je === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
2388
2388
  e.tag = a, e.dump = o || "[]";
2389
2389
  }
2390
- function Ti(e, n, t) {
2390
+ function $i(e, n, t) {
2391
2391
  var r = "", o = e.tag, a = Object.keys(t), i, s, l, c, d;
2392
2392
  for (i = 0, s = a.length; i < s; i += 1)
2393
2393
  d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = a[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), Se(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Se(e, n, c, !1, !1) && (d += e.dump, r += d));
2394
2394
  e.tag = o, e.dump = "{" + r + "}";
2395
2395
  }
2396
- function $i(e, n, t, r) {
2396
+ function ji(e, n, t, r) {
2397
2397
  var o = "", a = e.tag, i = Object.keys(t), s, l, c, d, u, m;
2398
2398
  if (e.sortKeys === !0)
2399
2399
  i.sort();
2400
2400
  else if (typeof e.sortKeys == "function")
2401
2401
  i.sort(e.sortKeys);
2402
2402
  else if (e.sortKeys)
2403
- throw new me("sortKeys must be a boolean or a function");
2403
+ throw new ge("sortKeys must be a boolean or a function");
2404
2404
  for (s = 0, l = i.length; s < l; s += 1)
2405
- m = "", (!r || o !== "") && (m += kt(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Se(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && We === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += kt(e, n)), Se(e, n + 1, d, !0, u) && (e.dump && We === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, o += m));
2405
+ m = "", (!r || o !== "") && (m += kt(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Se(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Je === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += kt(e, n)), Se(e, n + 1, d, !0, u) && (e.dump && Je === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, o += m));
2406
2406
  e.tag = a, e.dump = o || "{}";
2407
2407
  }
2408
- function sn(e, n, t) {
2408
+ function ln(e, n, t) {
2409
2409
  var r, o, a, i, s, l;
2410
2410
  for (o = t ? e.explicitTypes : e.implicitTypes, a = 0, i = o.length; a < i; a += 1)
2411
2411
  if (s = o[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof n == "object" && n instanceof s.instanceOf) && (!s.predicate || s.predicate(n))) {
2412
2412
  if (t ? s.multi && s.representName ? e.tag = s.representName(n) : e.tag = s.tag : e.tag = "?", s.represent) {
2413
- if (l = e.styleMap[s.tag] || s.defaultStyle, Jn.call(s.represent) === "[object Function]")
2413
+ if (l = e.styleMap[s.tag] || s.defaultStyle, Wn.call(s.represent) === "[object Function]")
2414
2414
  r = s.represent(n, l);
2415
- else if (Wn.call(s.represent, l))
2415
+ else if (Yn.call(s.represent, l))
2416
2416
  r = s.represent[l](n, l);
2417
2417
  else
2418
- throw new me("!<" + s.tag + '> tag resolver accepts not "' + l + '" style');
2418
+ throw new ge("!<" + s.tag + '> tag resolver accepts not "' + l + '" style');
2419
2419
  e.dump = r;
2420
2420
  }
2421
2421
  return !0;
@@ -2423,23 +2423,23 @@ function sn(e, n, t) {
2423
2423
  return !1;
2424
2424
  }
2425
2425
  function Se(e, n, t, r, o, a, i) {
2426
- e.tag = null, e.dump = t, sn(e, t, !1) || sn(e, t, !0);
2427
- var s = Jn.call(e.dump), l = r, c;
2426
+ e.tag = null, e.dump = t, ln(e, t, !1) || ln(e, t, !0);
2427
+ var s = Wn.call(e.dump), l = r, c;
2428
2428
  r && (r = e.flowLevel < 0 || e.flowLevel > n);
2429
2429
  var d = s === "[object Object]" || s === "[object Array]", u, m;
2430
2430
  if (d && (u = e.duplicates.indexOf(t), m = u !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && n > 0) && (o = !1), m && e.usedDuplicates[u])
2431
2431
  e.dump = "*ref_" + u;
2432
2432
  else {
2433
2433
  if (d && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
2434
- r && Object.keys(e.dump).length !== 0 ? ($i(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (Ti(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2434
+ r && Object.keys(e.dump).length !== 0 ? (ji(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : ($i(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2435
2435
  else if (s === "[object Array]")
2436
- r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (xi(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2436
+ r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? sn(e, n - 1, e.dump, o) : sn(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (Ti(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2437
2437
  else if (s === "[object String]")
2438
- e.tag !== "?" && Ii(e, e.dump, n, a, l);
2438
+ e.tag !== "?" && Ai(e, e.dump, n, a, l);
2439
2439
  else {
2440
2440
  if (s === "[object Undefined]" || e.skipInvalid)
2441
2441
  return !1;
2442
- throw new me("unacceptable kind of an object to dump " + s);
2442
+ throw new ge("unacceptable kind of an object to dump " + s);
2443
2443
  }
2444
2444
  e.tag !== null && e.tag !== "?" && (c = encodeURI(
2445
2445
  e.tag[0] === "!" ? e.tag.slice(1) : e.tag
@@ -2447,7 +2447,7 @@ function Se(e, n, t, r, o, a, i) {
2447
2447
  }
2448
2448
  return !0;
2449
2449
  }
2450
- function ji(e, n) {
2450
+ function Mi(e, n) {
2451
2451
  var t = [], r = [], o, a;
2452
2452
  for (_t(e, t, r), o = 0, a = r.length; o < a; o += 1)
2453
2453
  n.duplicates.push(t[r[o]]);
@@ -2465,65 +2465,65 @@ function _t(e, n, t) {
2465
2465
  for (r = Object.keys(e), o = 0, a = r.length; o < a; o += 1)
2466
2466
  _t(e[r[o]], n, t);
2467
2467
  }
2468
- function Mi(e, n) {
2468
+ function Ei(e, n) {
2469
2469
  n = n || {};
2470
- var t = new bi(n);
2471
- t.noRefs || ji(e, t);
2470
+ var t = new ki(n);
2471
+ t.noRefs || Mi(e, t);
2472
2472
  var r = e;
2473
2473
  return t.replacer && (r = t.replacer.call({ "": r }, "", r)), Se(t, 0, r, !0, !0) ? t.dump + `
2474
2474
  ` : "";
2475
2475
  }
2476
- var Oi = Mi, Ei = {
2476
+ var Oi = Ei, Ki = {
2477
2477
  dump: Oi
2478
2478
  };
2479
- function Et(e, n) {
2479
+ function Ot(e, n) {
2480
2480
  return function() {
2481
2481
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
2482
2482
  };
2483
2483
  }
2484
- var Ki = de, Fi = kn, Ni = In, Bi = $n, Pi = jn, Li = $t, qi = Hn.load, Ui = Hn.loadAll, Ri = Ei.dump, Vi = me, Di = {
2485
- binary: Fn,
2486
- float: Tn,
2487
- map: wn,
2488
- null: An,
2489
- pairs: Bn,
2490
- set: Pn,
2491
- timestamp: En,
2492
- bool: Sn,
2493
- int: xn,
2494
- merge: Kn,
2495
- omap: Nn,
2496
- seq: _n,
2497
- str: Cn
2498
- }, Gi = Et("safeLoad", "load"), zi = Et("safeLoadAll", "loadAll"), Hi = Et("safeDump", "dump"), Ji = {
2499
- Type: Ki,
2500
- Schema: Fi,
2501
- FAILSAFE_SCHEMA: Ni,
2502
- JSON_SCHEMA: Bi,
2503
- CORE_SCHEMA: Pi,
2504
- DEFAULT_SCHEMA: Li,
2505
- load: qi,
2506
- loadAll: Ui,
2507
- dump: Ri,
2508
- YAMLException: Vi,
2509
- types: Di,
2510
- safeLoad: Gi,
2511
- safeLoadAll: zi,
2512
- safeDump: Hi
2484
+ var Fi = de, Ni = Cn, Bi = An, Pi = jn, Li = Mn, qi = $t, Ui = Jn.load, Ri = Jn.loadAll, Vi = Ki.dump, Di = ge, Gi = {
2485
+ binary: Nn,
2486
+ float: $n,
2487
+ map: In,
2488
+ null: Sn,
2489
+ pairs: Pn,
2490
+ set: Ln,
2491
+ timestamp: Kn,
2492
+ bool: xn,
2493
+ int: Tn,
2494
+ merge: Fn,
2495
+ omap: Bn,
2496
+ seq: wn,
2497
+ str: _n
2498
+ }, zi = Ot("safeLoad", "load"), Hi = Ot("safeLoadAll", "loadAll"), Ji = Ot("safeDump", "dump"), Wi = {
2499
+ Type: Fi,
2500
+ Schema: Ni,
2501
+ FAILSAFE_SCHEMA: Bi,
2502
+ JSON_SCHEMA: Pi,
2503
+ CORE_SCHEMA: Li,
2504
+ DEFAULT_SCHEMA: qi,
2505
+ load: Ui,
2506
+ loadAll: Ri,
2507
+ dump: Vi,
2508
+ YAMLException: Di,
2509
+ types: Gi,
2510
+ safeLoad: zi,
2511
+ safeLoadAll: Hi,
2512
+ safeDump: Ji
2513
2513
  };
2514
- const Wi = {
2514
+ const Yi = {
2515
2515
  key: 0,
2516
2516
  class: "config-card-display-form"
2517
- }, Yi = ["data-testid"], Zi = {
2517
+ }, Zi = ["data-testid"], Qi = {
2518
2518
  key: 0,
2519
2519
  class: "config-card-prop-section-title"
2520
- }, Qi = {
2520
+ }, Xi = {
2521
2521
  key: 1,
2522
2522
  class: "config-card-display-json"
2523
- }, Xi = {
2523
+ }, es = {
2524
2524
  key: 2,
2525
2525
  class: "config-card-display-yaml"
2526
- }, es = /* @__PURE__ */ ae({
2526
+ }, ts = /* @__PURE__ */ ae({
2527
2527
  __name: "ConfigCardDisplay",
2528
2528
  props: {
2529
2529
  propertyCollections: {
@@ -2549,27 +2549,27 @@ const Wi = {
2549
2549
  }
2550
2550
  },
2551
2551
  setup(e) {
2552
- const n = e, t = ut(), { i18n: { t: r } } = ue.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a = E(""), i = E("");
2552
+ const n = e, t = ut(), { i18n: { t: r } } = ue.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a = O(""), i = O("");
2553
2553
  return xe(() => n.format, (s) => {
2554
- s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Ji.dump(n.record));
2554
+ s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Wi.dump(n.record));
2555
2555
  }, { immediate: !0 }), (s, l) => {
2556
2556
  const c = q("KCodeBlock");
2557
2557
  return g(), M(ve, null, [
2558
- e.format === "structured" ? (g(), M("div", Wi, [
2558
+ e.format === "structured" ? (g(), M("div", Yi, [
2559
2559
  (g(!0), M(ve, null, ye(e.propListTypes, (d) => (g(), M("div", {
2560
2560
  key: `config-card-details-${d}-props`,
2561
- class: Fe(`config-card-details-${d}-props`),
2561
+ class: Ne(`config-card-details-${d}-props`),
2562
2562
  "data-testid": `config-card-details-${d}-props`
2563
2563
  }, [
2564
- d !== "basic" ? (g(), M("div", Zi, K(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2564
+ d !== "basic" ? (g(), M("div", Qi, K(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2565
2565
  (g(!0), M(ve, null, ye(e.propertyCollections[d], (u) => (g(), V(xt, {
2566
2566
  key: u.key,
2567
2567
  item: u
2568
2568
  }, Te({
2569
- label: h(() => [
2569
+ label: v(() => [
2570
2570
  Y(s.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2571
2571
  ]),
2572
- [u.key]: h(({ rowValue: m }) => [
2572
+ [u.key]: v(({ rowValue: m }) => [
2573
2573
  Y(s.$slots, u.key, {
2574
2574
  row: u,
2575
2575
  rowValue: m
@@ -2579,15 +2579,15 @@ const Wi = {
2579
2579
  }, [
2580
2580
  o(u) ? {
2581
2581
  name: "label-tooltip",
2582
- fn: h(() => [
2582
+ fn: v(() => [
2583
2583
  Y(s.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2584
2584
  ]),
2585
2585
  key: "0"
2586
2586
  } : void 0
2587
2587
  ]), 1032, ["item"]))), 128))
2588
- ], 10, Yi))), 128))
2588
+ ], 10, Zi))), 128))
2589
2589
  ])) : G("", !0),
2590
- e.format === "json" ? (g(), M("div", Qi, [
2590
+ e.format === "json" ? (g(), M("div", Xi, [
2591
2591
  F(c, {
2592
2592
  id: "config-card-codeblock",
2593
2593
  code: a.value,
@@ -2595,7 +2595,7 @@ const Wi = {
2595
2595
  theme: "dark"
2596
2596
  }, null, 8, ["code"])
2597
2597
  ])) : G("", !0),
2598
- e.format === "yaml" ? (g(), M("div", Xi, [
2598
+ e.format === "yaml" ? (g(), M("div", es, [
2599
2599
  F(c, {
2600
2600
  id: "config-card-codeblock",
2601
2601
  code: i.value,
@@ -2606,18 +2606,18 @@ const Wi = {
2606
2606
  ], 64);
2607
2607
  };
2608
2608
  }
2609
- }), ts = /* @__PURE__ */ Ce(es, [["__scopeId", "data-v-6c45e9e4"]]), ln = "24px", ns = (e, n) => {
2609
+ }), ns = /* @__PURE__ */ Ce(ts, [["__scopeId", "data-v-6c45e9e4"]]), un = "24px", rs = (e, n) => {
2610
2610
  const t = e.__vccOpts || e;
2611
2611
  for (const [r, o] of n)
2612
2612
  t[r] = o;
2613
2613
  return t;
2614
- }, rs = (e) => (yr("data-v-dd88a2bb"), e = e(), hr(), e), os = ["aria-hidden"], as = {
2614
+ }, os = (e) => (hr("data-v-dd88a2bb"), e = e(), vr(), e), as = ["aria-hidden"], is = {
2615
2615
  key: 0,
2616
2616
  "data-testid": "kui-icon-svg-title"
2617
- }, is = /* @__PURE__ */ rs(() => /* @__PURE__ */ R("path", {
2617
+ }, ss = /* @__PURE__ */ os(() => /* @__PURE__ */ R("path", {
2618
2618
  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",
2619
2619
  fill: "currentColor"
2620
- }, null, -1)), ss = /* @__PURE__ */ ae({
2620
+ }, null, -1)), ls = /* @__PURE__ */ ae({
2621
2621
  __name: "BookIcon",
2622
2622
  props: {
2623
2623
  /** The accessibility text provided to screen readers */
@@ -2648,7 +2648,7 @@ const Wi = {
2648
2648
  size: {
2649
2649
  type: [Number, String],
2650
2650
  required: !1,
2651
- default: ln,
2651
+ default: un,
2652
2652
  // if setting to the imported const fails, just pass a number of 24 as the default.
2653
2653
  validator: (e) => {
2654
2654
  if (typeof e == "number" && e > 0)
@@ -2669,7 +2669,7 @@ const Wi = {
2669
2669
  }
2670
2670
  },
2671
2671
  setup(e) {
2672
- const n = e, t = j(() => {
2672
+ const n = e, t = T(() => {
2673
2673
  if (typeof n.size == "number" && n.size > 0)
2674
2674
  return `${n.size}px`;
2675
2675
  if (typeof n.size == "string") {
@@ -2677,8 +2677,8 @@ const Wi = {
2677
2677
  if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
2678
2678
  return `${a}px`;
2679
2679
  }
2680
- return ln;
2681
- }), r = j(() => ({
2680
+ return un;
2681
+ }), r = T(() => ({
2682
2682
  boxSizing: "border-box",
2683
2683
  color: n.color,
2684
2684
  display: n.display,
@@ -2686,13 +2686,13 @@ const Wi = {
2686
2686
  lineHeight: "0",
2687
2687
  width: t.value
2688
2688
  }));
2689
- return (o, a) => (g(), V(He(e.as), {
2689
+ return (o, a) => (g(), V(ze(e.as), {
2690
2690
  "aria-hidden": e.decorative ? "true" : void 0,
2691
2691
  class: "kui-icon book-icon",
2692
2692
  "data-testid": "kui-icon-wrapper-book-icon",
2693
- style: mr(r.value)
2693
+ style: gr(r.value)
2694
2694
  }, {
2695
- default: h(() => [
2695
+ default: v(() => [
2696
2696
  (g(), M("svg", {
2697
2697
  "aria-hidden": e.decorative ? "true" : void 0,
2698
2698
  "data-testid": "kui-icon-svg-book-icon",
@@ -2703,23 +2703,23 @@ const Wi = {
2703
2703
  width: "100%",
2704
2704
  xmlns: "http://www.w3.org/2000/svg"
2705
2705
  }, [
2706
- e.title ? (g(), M("title", as, K(e.title), 1)) : G("", !0),
2707
- is
2708
- ], 8, os))
2706
+ e.title ? (g(), M("title", is, K(e.title), 1)) : G("", !0),
2707
+ ss
2708
+ ], 8, as))
2709
2709
  ]),
2710
2710
  _: 1
2711
2711
  }, 8, ["aria-hidden", "style"]));
2712
2712
  }
2713
- }), ls = /* @__PURE__ */ ns(ss, [["__scopeId", "data-v-dd88a2bb"]]), us = { "data-testid": "config-card-title" }, cs = { class: "config-card-actions" }, ds = ["href"], ps = {
2713
+ }), us = /* @__PURE__ */ rs(ls, [["__scopeId", "data-v-dd88a2bb"]]), cs = { "data-testid": "config-card-title" }, ds = { class: "config-card-actions" }, ps = ["href"], fs = {
2714
2714
  key: 2,
2715
2715
  class: "config-card-details-section"
2716
- }, fs = {
2716
+ }, ms = {
2717
2717
  key: 3,
2718
2718
  class: "config-card-details-section"
2719
- }, ms = ["data-testid"], gs = {
2719
+ }, gs = ["data-testid"], ys = {
2720
2720
  key: 0,
2721
2721
  class: "config-card-prop-section-title"
2722
- }, ys = /* @__PURE__ */ ae({
2722
+ }, hs = /* @__PURE__ */ ae({
2723
2723
  __name: "EntityBaseConfigCard",
2724
2724
  props: {
2725
2725
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2810,8 +2810,8 @@ const Wi = {
2810
2810
  label: "YAML",
2811
2811
  value: "yaml"
2812
2812
  }
2813
- ], d = E("structured"), u = (w) => {
2814
- d.value = w == null ? void 0 : w.value;
2813
+ ], d = O("structured"), u = (_) => {
2814
+ d.value = _ == null ? void 0 : _.value;
2815
2815
  }, m = {
2816
2816
  id: {
2817
2817
  type: te.ID,
@@ -2846,46 +2846,46 @@ const Wi = {
2846
2846
  // the last property displayed
2847
2847
  section: be.Basic
2848
2848
  }
2849
- }, f = E(!1), I = E(!1), v = E(""), p = E(), S = j(() => {
2850
- var w, N, B;
2849
+ }, f = O(!1), S = O(!1), h = O(""), p = O(), A = T(() => {
2850
+ var _, B, P;
2851
2851
  if (!p.value)
2852
2852
  return [];
2853
- const C = [], x = Object.keys(p.value).length;
2854
- for (const T in p.value) {
2855
- const P = (N = (w = r.configSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = (B = m[T]) == null ? void 0 : B.order;
2853
+ const w = [], x = Object.keys(p.value).length;
2854
+ for (const $ in p.value) {
2855
+ const N = (B = (_ = r.configSchema) == null ? void 0 : _[$]) == null ? void 0 : B.order, J = (P = m[$]) == null ? void 0 : P.order;
2856
2856
  let Q = x;
2857
- (J || J === 0) && (Q = J === -1 ? x + 1 : J), P && (Q = P === -1 ? x + 1 : P), C.push([T, Q]);
2857
+ (J || J === 0) && (Q = J === -1 ? x + 1 : J), N && (Q = N === -1 ? x + 1 : N), w.push([$, Q]);
2858
2858
  }
2859
- return C.sort(function(T, P) {
2860
- return T[1] - P[1];
2861
- }), C.map((T) => {
2862
- var P, J;
2863
- const Q = T[0], X = (P = p.value) == null ? void 0 : P[Q], ee = ((J = r.configSchema) == null ? void 0 : J[Q]) || {}, ie = m[Q];
2859
+ return w.sort(function($, N) {
2860
+ return $[1] - N[1];
2861
+ }), w.map(($) => {
2862
+ var N, J;
2863
+ const Q = $[0], X = (N = p.value) == null ? void 0 : N[Q], ee = ((J = r.configSchema) == null ? void 0 : J[Q]) || {}, ce = m[Q];
2864
2864
  return {
2865
2865
  key: Q,
2866
2866
  value: X,
2867
2867
  hidden: ee.hidden || !1,
2868
- type: ee.type ?? ((ie == null ? void 0 : ie.type) || te.Text),
2869
- label: ee.label ?? ((ie == null ? void 0 : ie.label) || s(Q)),
2870
- tooltip: ee.tooltip ?? ((ie == null ? void 0 : ie.tooltip) || void 0),
2871
- section: ee.section ?? ((ie == null ? void 0 : ie.section) || be.Advanced)
2868
+ type: ee.type ?? ((ce == null ? void 0 : ce.type) || te.Text),
2869
+ label: ee.label ?? ((ce == null ? void 0 : ce.label) || s(Q)),
2870
+ tooltip: ee.tooltip ?? ((ce == null ? void 0 : ce.tooltip) || void 0),
2871
+ section: ee.section ?? ((ce == null ? void 0 : ce.section) || be.Advanced)
2872
2872
  };
2873
- }).filter((T) => !T.hidden && T.key !== r.pluginConfigKey);
2874
- }), b = j(() => {
2875
- var w, N;
2873
+ }).filter(($) => !$.hidden && $.key !== r.pluginConfigKey);
2874
+ }), b = T(() => {
2875
+ var _, B;
2876
2876
  if (!p.value || !r.pluginConfigKey)
2877
2877
  return [];
2878
- const B = p.value[r.pluginConfigKey] || {}, C = Object.keys(B).length, x = [];
2879
- for (const T in B) {
2880
- const P = (N = (w = r.pluginConfigSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = B[T];
2881
- let Q = J != null && J !== "" ? C - 1 : C;
2882
- P && (Q = P === -1 ? C + 1 : P), x.push([T, Q]);
2878
+ const P = p.value[r.pluginConfigKey] || {}, w = Object.keys(P).length, x = [];
2879
+ for (const $ in P) {
2880
+ const N = (B = (_ = r.pluginConfigSchema) == null ? void 0 : _[$]) == null ? void 0 : B.order, J = P[$];
2881
+ let Q = J != null && J !== "" ? w - 1 : w;
2882
+ N && (Q = N === -1 ? w + 1 : N), x.push([$, Q]);
2883
2883
  }
2884
- return x.sort(function(T, P) {
2885
- return T[1] - P[1];
2886
- }), x.map((T) => {
2887
- var P;
2888
- const J = T[0], Q = B[J], X = ((P = r.pluginConfigSchema) == null ? void 0 : P[J]) || {};
2884
+ return x.sort(function($, N) {
2885
+ return $[1] - N[1];
2886
+ }), x.map(($) => {
2887
+ var N;
2888
+ const J = $[0], Q = P[J], X = ((N = r.pluginConfigSchema) == null ? void 0 : N[J]) || {};
2889
2889
  return {
2890
2890
  key: J,
2891
2891
  value: Q,
@@ -2895,63 +2895,63 @@ const Wi = {
2895
2895
  tooltip: X.tooltip ?? void 0,
2896
2896
  section: be.Plugin
2897
2897
  };
2898
- }).filter((T) => !T.hidden);
2899
- }), k = j(() => {
2900
- var w, N, B, C;
2898
+ }).filter(($) => !$.hidden);
2899
+ }), k = T(() => {
2900
+ var _, B, P, w;
2901
2901
  return {
2902
- basic: (w = S.value) == null ? void 0 : w.filter((x) => x.section === be.Basic),
2903
- advanced: (N = S.value) == null ? void 0 : N.filter((x) => x.section === be.Advanced),
2904
- plugin: (C = b.value) == null ? void 0 : C.concat((B = S.value) == null ? void 0 : B.filter((x) => x.section === be.Plugin))
2902
+ basic: (_ = A.value) == null ? void 0 : _.filter((x) => x.section === be.Basic),
2903
+ advanced: (B = A.value) == null ? void 0 : B.filter((x) => x.section === be.Advanced),
2904
+ plugin: (w = b.value) == null ? void 0 : w.concat((P = A.value) == null ? void 0 : P.filter((x) => x.section === be.Plugin))
2905
2905
  };
2906
- }), A = j(() => {
2907
- const w = [];
2908
- return k.value.basic.length && w.push("basic"), k.value.advanced.length && w.push("advanced"), k.value.plugin.length && w.push("plugin"), w;
2909
- }), ne = (w) => !!(w.tooltip || o[`${w.key}-label-tooltip`]), pe = j(() => {
2910
- var w, N;
2911
- let B = `${r.config.apiBaseUrl}${r.fetchUrl}`;
2912
- return r.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (N = r.config) != null && N.workspace ? `/${r.config.workspace}` : "")), B = B.replace(/{id}/gi, r.config.entityId), B;
2913
- }), z = (w) => {
2914
- p.value && w(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
2906
+ }), I = T(() => {
2907
+ const _ = [];
2908
+ return k.value.basic.length && _.push("basic"), k.value.advanced.length && _.push("advanced"), k.value.plugin.length && _.push("plugin"), _;
2909
+ }), re = (_) => !!(_.tooltip || o[`${_.key}-label-tooltip`]), se = T(() => {
2910
+ var _, B;
2911
+ let P = `${r.config.apiBaseUrl}${r.fetchUrl}`;
2912
+ return r.config.app === "konnect" ? P = P.replace(/{controlPlaneId}/gi, ((_ = r.config) == null ? void 0 : _.controlPlaneId) || "") : r.config.app === "kongManager" && (P = P.replace(/\/{workspace}/gi, (B = r.config) != null && B.workspace ? `/${r.config.workspace}` : "")), P = P.replace(/{id}/gi, r.config.entityId), P;
2913
+ }), z = (_) => {
2914
+ p.value && _(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
2915
2915
  };
2916
- return xe(f, (w) => {
2917
- n("loading", w);
2918
- }, { immediate: !0 }), Qe(async () => {
2919
- I.value = !1, f.value = !0;
2916
+ return xe(f, (_) => {
2917
+ n("loading", _);
2918
+ }, { immediate: !0 }), Ze(async () => {
2919
+ S.value = !1, f.value = !0;
2920
2920
  try {
2921
- const { data: w } = await l.get(pe.value);
2921
+ const { data: _ } = await l.get(se.value);
2922
2922
  if (r.dataKey)
2923
- if (typeof w[r.dataKey] < "u")
2924
- p.value = { ...w[r.dataKey] };
2923
+ if (typeof _[r.dataKey] < "u")
2924
+ p.value = { ..._[r.dataKey] };
2925
2925
  else
2926
2926
  throw new Error(a("errors.dataKeyUndefined", { dataKey: r.dataKey }));
2927
2927
  else
2928
- p.value = { ...w };
2929
- Object.keys(r.configSchema).filter((N) => r.configSchema[N].forceShow).forEach((N) => {
2930
- p.value && typeof p.value[N] > "u" && (p.value[N] = null);
2931
- }), n("fetch:success", w);
2932
- } catch (w) {
2933
- const N = i(w);
2934
- v.value = N.startsWith("code") ? a("baseConfigCard.errors.load") : N, I.value = !0, n("fetch:error", w);
2928
+ p.value = { ..._ };
2929
+ Object.keys(r.configSchema).filter((B) => r.configSchema[B].forceShow).forEach((B) => {
2930
+ p.value && typeof p.value[B] > "u" && (p.value[B] = null);
2931
+ }), n("fetch:success", _);
2932
+ } catch (_) {
2933
+ const B = i(_);
2934
+ h.value = B.startsWith("code") ? a("baseConfigCard.errors.load") : B, S.value = !0, n("fetch:error", _);
2935
2935
  } finally {
2936
2936
  f.value = !1;
2937
2937
  }
2938
- }), (w, N) => {
2939
- const B = q("KLabel"), C = q("KSelect"), x = q("KButton"), T = q("KClipboardProvider"), P = q("KSkeleton"), J = q("KEmptyState"), Q = q("KCard");
2938
+ }), (_, B) => {
2939
+ const P = q("KLabel"), w = q("KSelect"), x = q("KButton"), $ = q("KClipboardProvider"), N = q("KSkeleton"), J = q("KEmptyState"), Q = q("KCard");
2940
2940
  return g(), V(Q, { class: "kong-ui-entity-base-config-card" }, Te({
2941
- actions: h(() => [
2942
- R("div", cs, [
2943
- Y(w.$slots, "actions", {}, void 0, !0),
2944
- e.config.jsonYamlEnabled ? (g(), V(B, {
2941
+ actions: v(() => [
2942
+ R("div", ds, [
2943
+ Y(_.$slots, "actions", {}, void 0, !0),
2944
+ e.config.jsonYamlEnabled ? (g(), V(P, {
2945
2945
  key: 0,
2946
2946
  class: "config-format-select-label",
2947
2947
  "data-testid": "config-format-select-label"
2948
2948
  }, {
2949
- default: h(() => [
2949
+ default: v(() => [
2950
2950
  Z(K(e.label), 1)
2951
2951
  ]),
2952
2952
  _: 1
2953
2953
  })) : G("", !0),
2954
- e.config.jsonYamlEnabled ? (g(), V(C, {
2954
+ e.config.jsonYamlEnabled ? (g(), V(w, {
2955
2955
  key: 1,
2956
2956
  appearance: "select",
2957
2957
  "data-testid": "select-config-format",
@@ -2964,26 +2964,26 @@ const Wi = {
2964
2964
  class: "book-icon",
2965
2965
  "data-testid": "book-icon"
2966
2966
  }, {
2967
- default: h(() => [
2967
+ default: v(() => [
2968
2968
  R("a", {
2969
2969
  href: e.configCardDoc,
2970
2970
  rel: "noopener",
2971
2971
  target: "_blank"
2972
2972
  }, [
2973
- F(y(ls), { size: y(yo) }, null, 8, ["size"])
2974
- ], 8, ds)
2973
+ F(y(us), { size: y(ho) }, null, 8, ["size"])
2974
+ ], 8, ps)
2975
2975
  ]),
2976
2976
  _: 1
2977
2977
  })) : G("", !0),
2978
- e.config.jsonYamlEnabled ? G("", !0) : (g(), V(T, { key: 3 }, {
2979
- default: h(({ copyToClipboard: X }) => [
2980
- !f.value && !I.value ? (g(), V(x, {
2978
+ e.config.jsonYamlEnabled ? G("", !0) : (g(), V($, { key: 3 }, {
2979
+ default: v(({ copyToClipboard: X }) => [
2980
+ !f.value && !S.value ? (g(), V(x, {
2981
2981
  key: 0,
2982
2982
  appearance: "btn-link",
2983
2983
  "data-testid": "json-copy-button",
2984
2984
  onClick: (ee) => z(X)
2985
2985
  }, {
2986
- default: h(() => [
2986
+ default: v(() => [
2987
2987
  Z(K(y(a)("baseConfigCard.actions.copy")), 1)
2988
2988
  ]),
2989
2989
  _: 2
@@ -2993,79 +2993,79 @@ const Wi = {
2993
2993
  }))
2994
2994
  ])
2995
2995
  ]),
2996
- body: h(() => [
2997
- f.value ? (g(), V(P, {
2996
+ body: v(() => [
2997
+ f.value ? (g(), V(N, {
2998
2998
  key: 0,
2999
2999
  "data-testid": "config-card-loader",
3000
3000
  "table-columns": 2,
3001
3001
  type: "table"
3002
- })) : I.value ? (g(), V(J, {
3002
+ })) : S.value ? (g(), V(J, {
3003
3003
  key: 1,
3004
3004
  "data-testid": "config-card-fetch-error",
3005
3005
  "is-error": ""
3006
3006
  }, {
3007
- message: h(() => [
3008
- R("h3", null, K(v.value), 1)
3007
+ message: v(() => [
3008
+ R("h3", null, K(h.value), 1)
3009
3009
  ]),
3010
3010
  _: 1
3011
3011
  })) : G("", !0),
3012
- e.config.jsonYamlEnabled ? (g(), M("div", ps, [
3013
- F(ts, {
3012
+ e.config.jsonYamlEnabled ? (g(), M("div", fs, [
3013
+ F(ns, {
3014
3014
  format: d.value,
3015
- "prop-list-types": A.value,
3015
+ "prop-list-types": I.value,
3016
3016
  "property-collections": k.value,
3017
3017
  record: p.value
3018
3018
  }, Te({ _: 2 }, [
3019
- ye(Object.keys(w.$slots), (X) => ({
3019
+ ye(Object.keys(_.$slots), (X) => ({
3020
3020
  name: X,
3021
- fn: h(({ row: ee, rowValue: ie }) => [
3022
- Y(w.$slots, X, {
3021
+ fn: v(({ row: ee, rowValue: ce }) => [
3022
+ Y(_.$slots, X, {
3023
3023
  row: ee,
3024
- rowValue: ie
3024
+ rowValue: ce
3025
3025
  }, void 0, !0)
3026
3026
  ])
3027
3027
  }))
3028
3028
  ]), 1032, ["format", "prop-list-types", "property-collections", "record"])
3029
- ])) : (g(), M("div", fs, [
3030
- (g(!0), M(ve, null, ye(A.value, (X) => (g(), M("div", {
3029
+ ])) : (g(), M("div", ms, [
3030
+ (g(!0), M(ve, null, ye(I.value, (X) => (g(), M("div", {
3031
3031
  key: `config-card-details-${X}-props`,
3032
- class: Fe(`config-card-details-${X}-props`),
3032
+ class: Ne(`config-card-details-${X}-props`),
3033
3033
  "data-testid": `config-card-details-${X}-props`
3034
3034
  }, [
3035
- X !== "basic" ? (g(), M("div", gs, K(X === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3035
+ X !== "basic" ? (g(), M("div", ys, K(X === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3036
3036
  (g(!0), M(ve, null, ye(k.value[X], (ee) => (g(), V(xt, {
3037
3037
  key: ee.key,
3038
3038
  item: ee
3039
3039
  }, Te({
3040
- label: h(() => [
3041
- Y(w.$slots, `${ee.key}-label`, { row: ee }, void 0, !0)
3040
+ label: v(() => [
3041
+ Y(_.$slots, `${ee.key}-label`, { row: ee }, void 0, !0)
3042
3042
  ]),
3043
- [ee.key]: h(({ rowValue: ie }) => [
3044
- Y(w.$slots, ee.key, {
3043
+ [ee.key]: v(({ rowValue: ce }) => [
3044
+ Y(_.$slots, ee.key, {
3045
3045
  row: ee,
3046
- rowValue: ie
3046
+ rowValue: ce
3047
3047
  }, void 0, !0)
3048
3048
  ]),
3049
3049
  _: 2
3050
3050
  }, [
3051
- ne(ee) ? {
3051
+ re(ee) ? {
3052
3052
  name: "label-tooltip",
3053
- fn: h(() => [
3054
- Y(w.$slots, `${ee.key}-label-tooltip`, { row: ee }, void 0, !0)
3053
+ fn: v(() => [
3054
+ Y(_.$slots, `${ee.key}-label-tooltip`, { row: ee }, void 0, !0)
3055
3055
  ]),
3056
3056
  key: "0"
3057
3057
  } : void 0
3058
3058
  ]), 1032, ["item"]))), 128))
3059
- ], 10, ms))), 128))
3059
+ ], 10, gs))), 128))
3060
3060
  ]))
3061
3061
  ]),
3062
3062
  _: 2
3063
3063
  }, [
3064
3064
  e.hideTitle ? void 0 : {
3065
3065
  name: "title",
3066
- fn: h(() => [
3067
- R("div", us, [
3068
- Y(w.$slots, "title", {}, () => [
3066
+ fn: v(() => [
3067
+ R("div", cs, [
3068
+ Y(_.$slots, "title", {}, () => [
3069
3069
  Z(K(y(a)("baseConfigCard.title")), 1)
3070
3070
  ], !0)
3071
3071
  ])
@@ -3075,10 +3075,10 @@ const Wi = {
3075
3075
  ]), 1024);
3076
3076
  };
3077
3077
  }
3078
- }), hs = /* @__PURE__ */ Ce(ys, [["__scopeId", "data-v-64349aa2"]]), vs = ["onReset", "onSubmit"], bs = {
3078
+ }), vs = /* @__PURE__ */ Ce(hs, [["__scopeId", "data-v-64349aa2"]]), bs = ["onReset", "onSubmit"], ks = {
3079
3079
  class: "form-actions",
3080
3080
  "data-testid": "form-actions"
3081
- }, ks = /* @__PURE__ */ ae({
3081
+ }, Cs = /* @__PURE__ */ ae({
3082
3082
  __name: "EntityBaseForm",
3083
3083
  props: {
3084
3084
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3130,37 +3130,37 @@ const Wi = {
3130
3130
  var t;
3131
3131
  const r = e, o = wt(), { i18n: { t: a } } = ue.useI18n(), { getMessageFromError: i } = ue.useErrors(), { axiosInstance: s } = ue.useAxios({
3132
3132
  headers: (t = r.config) == null ? void 0 : t.requestHeaders
3133
- }), l = E(!1), c = E(!1), d = E(""), u = j(() => r.canSubmit === !1 || r.isReadonly), m = j(() => {
3134
- var p, S;
3133
+ }), l = O(!1), c = O(!1), d = O(""), u = T(() => r.canSubmit === !1 || r.isReadonly), m = T(() => {
3134
+ var p, A;
3135
3135
  if (!r.editId)
3136
3136
  return "";
3137
3137
  let b = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3138
- return r.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (S = r.config) != null && S.workspace ? `/${r.config.workspace}` : "")), b = b.replace(/{id}/gi, r.editId), b;
3138
+ return r.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (A = r.config) != null && A.workspace ? `/${r.config.workspace}` : "")), b = b.replace(/{id}/gi, r.editId), b;
3139
3139
  }), f = () => {
3140
- r.config.cancelRoute ? o.push(r.config.cancelRoute) : I();
3141
- }, I = () => {
3140
+ r.config.cancelRoute ? o.push(r.config.cancelRoute) : S();
3141
+ }, S = () => {
3142
3142
  n("cancel");
3143
- }, v = () => {
3143
+ }, h = () => {
3144
3144
  u.value || n("submit");
3145
3145
  };
3146
3146
  return xe(() => l.value, (p) => {
3147
3147
  n("loading", p);
3148
- }, { immediate: !0 }), Qe(async () => {
3148
+ }, { immediate: !0 }), Ze(async () => {
3149
3149
  if (r.editId)
3150
3150
  try {
3151
3151
  c.value = !1, l.value = !0;
3152
3152
  const { data: p } = await s.get(m.value);
3153
3153
  n("fetch:success", p);
3154
3154
  } catch (p) {
3155
- const S = i(p);
3156
- d.value = S.startsWith("code") ? a("baseForm.errors.edit") : S, c.value = !0, n("fetch:error", p);
3155
+ const A = i(p);
3156
+ d.value = A.startsWith("code") ? a("baseForm.errors.edit") : A, c.value = !0, n("fetch:error", p);
3157
3157
  } finally {
3158
3158
  l.value = !1;
3159
3159
  }
3160
- }), (p, S) => {
3161
- const b = q("KSkeleton"), k = q("KEmptyState"), A = q("KAlert"), ne = q("KButton"), pe = q("KCard");
3162
- return g(), V(pe, { class: "kong-ui-entity-base-form" }, {
3163
- body: h(() => [
3160
+ }), (p, A) => {
3161
+ const b = q("KSkeleton"), k = q("KEmptyState"), I = q("KAlert"), re = q("KButton"), se = q("KCard");
3162
+ return g(), V(se, { class: "kong-ui-entity-base-form" }, {
3163
+ body: v(() => [
3164
3164
  l.value ? (g(), V(b, {
3165
3165
  key: 0,
3166
3166
  type: "form"
@@ -3171,59 +3171,59 @@ const Wi = {
3171
3171
  "handle-click": f,
3172
3172
  "is-error": !0
3173
3173
  }, {
3174
- message: h(() => [
3174
+ message: v(() => [
3175
3175
  R("h3", null, K(d.value), 1)
3176
3176
  ]),
3177
3177
  _: 1
3178
3178
  }, 8, ["cta-text"])) : (g(), M("form", {
3179
3179
  key: 2,
3180
3180
  "data-testid": "form-content",
3181
- onReset: rt(I, ["prevent"]),
3182
- onSubmit: rt(v, ["prevent"])
3181
+ onReset: rt(S, ["prevent"]),
3182
+ onSubmit: rt(h, ["prevent"])
3183
3183
  }, [
3184
3184
  Y(p.$slots, "default", {}, void 0, !0),
3185
- e.errorMessage ? (g(), V(A, {
3185
+ e.errorMessage ? (g(), V(I, {
3186
3186
  key: 0,
3187
3187
  "alert-message": e.errorMessage,
3188
3188
  appearance: "danger",
3189
3189
  "data-testid": "form-error"
3190
3190
  }, null, 8, ["alert-message"])) : G("", !0),
3191
- R("div", bs, [
3191
+ R("div", ks, [
3192
3192
  Y(p.$slots, "form-actions", {}, () => [
3193
- F(ne, {
3193
+ F(re, {
3194
3194
  appearance: "outline",
3195
3195
  "data-testid": "form-cancel",
3196
3196
  disabled: e.isReadonly,
3197
3197
  type: "reset"
3198
3198
  }, {
3199
- default: h(() => [
3199
+ default: v(() => [
3200
3200
  Z(K(y(a)("baseForm.actions.cancel")), 1)
3201
3201
  ]),
3202
3202
  _: 1
3203
3203
  }, 8, ["disabled"]),
3204
- F(ne, {
3204
+ F(re, {
3205
3205
  appearance: "primary",
3206
3206
  "data-testid": "form-submit",
3207
3207
  disabled: u.value,
3208
3208
  type: "submit"
3209
3209
  }, {
3210
- default: h(() => [
3210
+ default: v(() => [
3211
3211
  Z(K(y(a)("baseForm.actions.save")), 1)
3212
3212
  ]),
3213
3213
  _: 1
3214
3214
  }, 8, ["disabled"])
3215
3215
  ], !0)
3216
3216
  ])
3217
- ], 40, vs))
3217
+ ], 40, bs))
3218
3218
  ]),
3219
3219
  _: 3
3220
3220
  });
3221
3221
  };
3222
3222
  }
3223
- }), Cs = /* @__PURE__ */ Ce(ks, [["__scopeId", "data-v-44a90aae"]]), _s = {
3223
+ }), _s = /* @__PURE__ */ Ce(Cs, [["__scopeId", "data-v-44a90aae"]]), ws = {
3224
3224
  key: 0,
3225
3225
  "data-testid": "first-col"
3226
- }, ws = /* @__PURE__ */ ae({
3226
+ }, Is = /* @__PURE__ */ ae({
3227
3227
  __name: "EntityBaseTableCell",
3228
3228
  props: {
3229
3229
  keyName: {
@@ -3236,68 +3236,68 @@ const Wi = {
3236
3236
  }
3237
3237
  },
3238
3238
  setup(e) {
3239
- const n = e, t = j(() => {
3240
- var v;
3241
- return ((v = n.rowEl) == null ? void 0 : v.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3242
- }), r = j(() => {
3243
- var v;
3244
- return ((v = t.value) == null ? void 0 : v.querySelector('[data-testid="first-col"]')) || null;
3245
- }), o = j(() => {
3246
- var v, p;
3247
- const S = (v = n.rowEl) == null ? void 0 : v.querySelectorAll("td");
3248
- return S ? ((p = S[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
3239
+ const n = e, t = T(() => {
3240
+ var h;
3241
+ return ((h = n.rowEl) == null ? void 0 : h.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3242
+ }), r = T(() => {
3243
+ var h;
3244
+ return ((h = t.value) == null ? void 0 : h.querySelector('[data-testid="first-col"]')) || null;
3245
+ }), o = T(() => {
3246
+ var h, p;
3247
+ const A = (h = n.rowEl) == null ? void 0 : h.querySelectorAll("td");
3248
+ return A ? ((p = A[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
3249
3249
  });
3250
3250
  let a;
3251
3251
  const i = () => {
3252
3252
  a && (a.disconnect(), a = void 0);
3253
3253
  }, s = () => {
3254
- var v, p, S;
3255
- c.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((S = l.value) == null ? void 0 : S.innerText) || "";
3256
- }, l = E({}), c = E(0), d = E(0), u = E(""), m = j(() => [r.value, t.value]), f = xe(
3254
+ var h, p, A;
3255
+ c.value = ((h = r.value) == null ? void 0 : h.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((A = l.value) == null ? void 0 : A.innerText) || "";
3256
+ }, l = O({}), c = O(0), d = O(0), u = O(""), m = T(() => [r.value, t.value]), f = xe(
3257
3257
  m,
3258
- (v) => {
3258
+ (h) => {
3259
3259
  if (o.value && (i(), "ResizeObserver" in window && window)) {
3260
3260
  a = new ResizeObserver((p) => {
3261
3261
  window.requestAnimationFrame(() => {
3262
3262
  !Array.isArray(p) || !p.length || s();
3263
3263
  });
3264
3264
  });
3265
- for (const p of v)
3265
+ for (const p of h)
3266
3266
  p && a.observe(p);
3267
3267
  }
3268
3268
  },
3269
3269
  { immediate: !0, flush: "post", deep: !0 }
3270
- ), I = j(() => o.value ? c.value > d.value : !1);
3271
- return pr(() => {
3270
+ ), S = T(() => o.value ? c.value > d.value : !1);
3271
+ return fr(() => {
3272
3272
  s();
3273
- }), fr(() => {
3273
+ }), mr(() => {
3274
3274
  f();
3275
- }), (v, p) => {
3276
- const S = q("KTooltip");
3275
+ }), (h, p) => {
3276
+ const A = q("KTooltip");
3277
3277
  return g(), M("span", {
3278
3278
  ref_key: "contentRef",
3279
3279
  ref: l,
3280
3280
  class: "content-wrapper"
3281
3281
  }, [
3282
- o.value ? (g(), M("span", _s, [
3283
- F(S, {
3284
- label: I.value ? u.value : "",
3282
+ o.value ? (g(), M("span", ws, [
3283
+ F(A, {
3284
+ label: S.value ? u.value : "",
3285
3285
  "max-width": "300",
3286
3286
  placement: "bottomStart"
3287
3287
  }, {
3288
- default: h(() => [
3289
- Y(v.$slots, "default", {}, void 0, !0)
3288
+ default: v(() => [
3289
+ Y(h.$slots, "default", {}, void 0, !0)
3290
3290
  ]),
3291
3291
  _: 3
3292
3292
  }, 8, ["label"])
3293
- ])) : Y(v.$slots, "default", { key: 1 }, void 0, !0)
3293
+ ])) : Y(h.$slots, "default", { key: 1 }, void 0, !0)
3294
3294
  ], 512);
3295
3295
  };
3296
3296
  }
3297
- }), Is = /* @__PURE__ */ Ce(ws, [["__scopeId", "data-v-e42a20c9"]]), As = { class: "toolbar-container" }, Ss = {
3297
+ }), As = /* @__PURE__ */ Ce(Is, [["__scopeId", "data-v-e42a20c9"]]), Ss = { class: "toolbar-container" }, xs = {
3298
3298
  key: 0,
3299
3299
  class: "toolbar-button-container"
3300
- }, xs = ["data-testid"], Ts = /* @__PURE__ */ ae({
3300
+ }, Ts = ["data-testid"], $s = /* @__PURE__ */ ae({
3301
3301
  __name: "EntityBaseTable",
3302
3302
  props: {
3303
3303
  // table header configuration
@@ -3406,14 +3406,14 @@ const Wi = {
3406
3406
  },
3407
3407
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3408
3408
  setup(e, { emit: n }) {
3409
- const t = e, { i18n: { t: r } } = ue.useI18n(), o = j(() => t.cacheIdentifier || t.preferencesStorageKey), a = (k) => k.hasData || !!t.query, i = j(() => {
3409
+ const t = e, { i18n: { t: r } } = ue.useI18n(), o = T(() => t.cacheIdentifier || t.preferencesStorageKey), a = (k) => k.hasData || !!t.query, i = T(() => {
3410
3410
  const k = [];
3411
- return Object.keys(t.tableHeaders).forEach((A) => {
3412
- const ne = t.tableHeaders[A];
3411
+ return Object.keys(t.tableHeaders).forEach((I) => {
3412
+ const re = t.tableHeaders[I];
3413
3413
  k.push({
3414
- label: ne.label ?? A,
3415
- key: A,
3416
- sortable: ne.sortable ?? !1
3414
+ label: re.label ?? I,
3415
+ key: I,
3416
+ sortable: re.sortable ?? !1
3417
3417
  });
3418
3418
  }), t.enableEntityActions && k.push({
3419
3419
  key: "actions",
@@ -3423,44 +3423,44 @@ const Wi = {
3423
3423
  "data-rowid": k.id,
3424
3424
  "data-testid": k.name,
3425
3425
  ...t.rowAttributes(k)
3426
- }), l = E({}), c = (k) => {
3427
- var A;
3428
- return (A = l.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${k.id}"]`);
3426
+ }), l = O({}), c = (k) => {
3427
+ var I;
3428
+ return (I = l.value) == null ? void 0 : I.$el.querySelector(`[data-rowid="${k.id}"]`);
3429
3429
  }, d = (k) => {
3430
- const A = {
3430
+ const I = {
3431
3431
  "data-testid": k.headerKey,
3432
3432
  ...t.cellAttributes(k)
3433
3433
  };
3434
- return k.colIndex === 0 && (A.style = {
3434
+ return k.colIndex === 0 && (I.style = {
3435
3435
  maxWidth: "250px",
3436
3436
  overflowX: "hidden",
3437
3437
  textOverflow: "ellipsis"
3438
- }), A;
3438
+ }), I;
3439
3439
  }, u = () => {
3440
3440
  n("empty-state-cta-clicked"), m();
3441
3441
  }, m = () => {
3442
3442
  n("clear-search-input");
3443
- }, f = j(() => t.disableRowClick ? void 0 : (k, A) => {
3444
- n("click:row", A);
3445
- }), I = (k) => {
3443
+ }, f = T(() => t.disableRowClick ? void 0 : (k, I) => {
3444
+ n("click:row", I);
3445
+ }), S = (k) => {
3446
3446
  n("sort", k);
3447
- }, { setTablePreferences: v, getTablePreferences: p } = Sr(), S = j(() => {
3447
+ }, { setTablePreferences: h, getTablePreferences: p } = xr(), A = T(() => {
3448
3448
  const k = p(t.preferencesStorageKey);
3449
3449
  return {
3450
3450
  ...t.initialFetcherParams,
3451
3451
  ...k
3452
3452
  };
3453
3453
  }), b = (k) => {
3454
- t.preferencesStorageKey && v(t.preferencesStorageKey, k);
3454
+ t.preferencesStorageKey && h(t.preferencesStorageKey, k);
3455
3455
  };
3456
- return (k, A) => {
3457
- const ne = q("KIcon"), pe = q("KButton"), z = q("KDropdownMenu"), w = q("KTable"), N = q("KCard");
3458
- return g(), V(N, {
3456
+ return (k, I) => {
3457
+ const re = q("KIcon"), se = q("KButton"), z = q("KDropdownMenu"), _ = q("KTable"), B = q("KCard");
3458
+ return g(), V(B, {
3459
3459
  class: "kong-ui-entity-base-table",
3460
3460
  title: e.title
3461
3461
  }, {
3462
- body: h(() => [
3463
- F(w, {
3462
+ body: v(() => [
3463
+ F(_, {
3464
3464
  ref_key: "tableRefs",
3465
3465
  ref: l,
3466
3466
  "cache-identifier": o.value,
@@ -3481,51 +3481,51 @@ const Wi = {
3481
3481
  "has-error": !!e.errorMessage,
3482
3482
  headers: i.value,
3483
3483
  "hide-pagination-when-optional": "",
3484
- "initial-fetcher-params": S.value,
3484
+ "initial-fetcher-params": A.value,
3485
3485
  "is-loading": e.isLoading,
3486
3486
  "pagination-type": e.paginationType,
3487
3487
  "row-attrs": s,
3488
3488
  "search-input": e.query,
3489
3489
  onKtableEmptyStateCtaClicked: u,
3490
3490
  "onRow:click": f.value,
3491
- onSort: A[0] || (A[0] = (B) => I(B)),
3491
+ onSort: I[0] || (I[0] = (P) => S(P)),
3492
3492
  "onUpdate:tablePreferences": b
3493
3493
  }, Te({
3494
- toolbar: h(({ state: B }) => [
3495
- et(R("div", As, [
3494
+ toolbar: v(({ state: P }) => [
3495
+ et(R("div", Ss, [
3496
3496
  Y(k.$slots, "toolbar-filter", {}, void 0, !0),
3497
- k.$slots["toolbar-button"] ? (g(), M("div", Ss, [
3497
+ k.$slots["toolbar-button"] ? (g(), M("div", xs, [
3498
3498
  Y(k.$slots, "toolbar-button", {}, void 0, !0)
3499
3499
  ])) : G("", !0)
3500
3500
  ], 512), [
3501
- [tt, a(B)]
3501
+ [tt, a(P)]
3502
3502
  ])
3503
3503
  ]),
3504
- actions: h(({ row: B, rowKey: C, rowValue: x }) => [
3504
+ actions: v(({ row: P, rowKey: w, rowValue: x }) => [
3505
3505
  R("div", {
3506
3506
  class: "actions-container",
3507
- "data-testid": B.name
3507
+ "data-testid": P.name
3508
3508
  }, [
3509
3509
  F(z, {
3510
3510
  "kpop-attributes": { placement: "bottomEnd" },
3511
3511
  width: e.dropdownMenuWidth
3512
3512
  }, {
3513
- items: h(() => [
3513
+ items: v(() => [
3514
3514
  Y(k.$slots, "actions", {
3515
- row: B,
3516
- rowKey: C,
3515
+ row: P,
3516
+ rowKey: w,
3517
3517
  rowValue: x
3518
3518
  }, void 0, !0)
3519
3519
  ]),
3520
- default: h(() => [
3521
- F(pe, {
3520
+ default: v(() => [
3521
+ F(se, {
3522
3522
  class: "actions-trigger",
3523
3523
  "data-testid": "overflow-actions-button",
3524
3524
  size: "small"
3525
3525
  }, {
3526
- icon: h(() => [
3527
- F(ne, {
3528
- color: y(mo),
3526
+ icon: v(() => [
3527
+ F(re, {
3528
+ color: y(go),
3529
3529
  icon: "more",
3530
3530
  size: "16"
3531
3531
  }, null, 8, ["color"])
@@ -3535,24 +3535,24 @@ const Wi = {
3535
3535
  ]),
3536
3536
  _: 2
3537
3537
  }, 1032, ["width"])
3538
- ], 8, xs)
3538
+ ], 8, Ts)
3539
3539
  ]),
3540
3540
  _: 2
3541
3541
  }, [
3542
- ye(e.tableHeaders, (B, C) => ({
3543
- name: C,
3544
- fn: h(({ row: x, rowKey: T, rowValue: P }) => [
3545
- F(Is, {
3546
- "key-name": String(C),
3542
+ ye(e.tableHeaders, (P, w) => ({
3543
+ name: w,
3544
+ fn: v(({ row: x, rowKey: $, rowValue: N }) => [
3545
+ F(As, {
3546
+ "key-name": String(w),
3547
3547
  "row-el": c(x)
3548
3548
  }, {
3549
- default: h(() => [
3550
- Y(k.$slots, C, {
3549
+ default: v(() => [
3550
+ Y(k.$slots, w, {
3551
3551
  row: x,
3552
- rowKey: T,
3553
- rowValue: P
3552
+ rowKey: $,
3553
+ rowValue: N
3554
3554
  }, () => [
3555
- Z(K(P), 1)
3555
+ Z(K(N), 1)
3556
3556
  ], !0)
3557
3557
  ]),
3558
3558
  _: 2
@@ -3565,10 +3565,10 @@ const Wi = {
3565
3565
  }, 8, ["title"]);
3566
3566
  };
3567
3567
  }
3568
- }), $s = /* @__PURE__ */ Ce(Ts, [["__scopeId", "data-v-6bf92df6"]]), js = {
3568
+ }), js = /* @__PURE__ */ Ce($s, [["__scopeId", "data-v-6bf92df6"]]), Ms = {
3569
3569
  key: 0,
3570
3570
  class: "kong-ui-entity-delete-error"
3571
- }, Ms = {
3571
+ }, Es = {
3572
3572
  key: 1,
3573
3573
  class: "description"
3574
3574
  }, Os = /* @__PURE__ */ ae({
@@ -3610,7 +3610,7 @@ const Wi = {
3610
3610
  },
3611
3611
  emits: ["cancel", "proceed"],
3612
3612
  setup(e, { emit: n }) {
3613
- const t = e, { i18nT: r } = ue.useI18n(), o = j(() => t.needConfirm ? t.entityName : ""), a = () => {
3613
+ const t = e, { i18nT: r } = ue.useI18n(), o = T(() => t.needConfirm ? t.entityName : ""), a = () => {
3614
3614
  n("cancel");
3615
3615
  }, i = () => {
3616
3616
  n("proceed");
@@ -3628,10 +3628,10 @@ const Wi = {
3628
3628
  onCanceled: a,
3629
3629
  onProceed: i
3630
3630
  }, {
3631
- "body-content": h(() => [
3632
- e.error ? (g(), M("div", js, [
3631
+ "body-content": v(() => [
3632
+ e.error ? (g(), M("div", Ms, [
3633
3633
  F(c, { appearance: "danger" }, {
3634
- alertMessage: h(() => [
3634
+ alertMessage: v(() => [
3635
3635
  Z(K(e.error), 1)
3636
3636
  ]),
3637
3637
  _: 1
@@ -3642,20 +3642,20 @@ const Wi = {
3642
3642
  keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3643
3643
  tag: "p"
3644
3644
  }, Te({
3645
- entityType: h(() => [
3645
+ entityType: v(() => [
3646
3646
  Z(K(t.entityType), 1)
3647
3647
  ]),
3648
3648
  _: 2
3649
3649
  }, [
3650
3650
  t.entityName ? {
3651
3651
  name: "entityName",
3652
- fn: h(() => [
3652
+ fn: v(() => [
3653
3653
  R("strong", null, K(t.entityName), 1)
3654
3654
  ]),
3655
3655
  key: "0"
3656
3656
  } : void 0
3657
3657
  ]), 1032, ["keypath"]),
3658
- t.description || s.$slots.description ? (g(), M("div", Ms, [
3658
+ t.description || s.$slots.description ? (g(), M("div", Es, [
3659
3659
  Y(s.$slots, "description", {}, () => [
3660
3660
  R("p", null, K(t.description), 1)
3661
3661
  ], !0)
@@ -3665,13 +3665,13 @@ const Wi = {
3665
3665
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
3666
3666
  };
3667
3667
  }
3668
- }), Es = /* @__PURE__ */ Ce(Os, [["__scopeId", "data-v-1c9a2a07"]]), Ks = {
3668
+ }), Ks = /* @__PURE__ */ Ce(Os, [["__scopeId", "data-v-1c9a2a07"]]), Fs = {
3669
3669
  fill: "none",
3670
3670
  height: "20",
3671
3671
  viewBox: "0 0 20 20",
3672
3672
  width: "20",
3673
3673
  xmlns: "http://www.w3.org/2000/svg"
3674
- }, Fs = {
3674
+ }, Ns = {
3675
3675
  id: "mask0_180_20349",
3676
3676
  height: "20",
3677
3677
  maskUnits: "userSpaceOnUse",
@@ -3679,35 +3679,35 @@ const Wi = {
3679
3679
  width: "20",
3680
3680
  x: "0",
3681
3681
  y: "0"
3682
- }, Ns = ["fill"], Bs = { mask: "url(#mask0_180_20349)" }, Ps = ["fill"], Ls = /* @__PURE__ */ ae({
3682
+ }, Bs = ["fill"], Ps = { mask: "url(#mask0_180_20349)" }, Ls = ["fill"], qs = /* @__PURE__ */ ae({
3683
3683
  __name: "IconFilter",
3684
3684
  props: {
3685
3685
  color: {
3686
3686
  type: String,
3687
- default: `var(--kong-ui-entity-filter-color, ${po})`
3687
+ default: `var(--kong-ui-entity-filter-color, ${fo})`
3688
3688
  }
3689
3689
  },
3690
3690
  setup(e) {
3691
- return (n, t) => (g(), M("svg", Ks, [
3692
- R("mask", Fs, [
3691
+ return (n, t) => (g(), M("svg", Fs, [
3692
+ R("mask", Ns, [
3693
3693
  R("rect", {
3694
3694
  fill: e.color,
3695
3695
  height: "20",
3696
3696
  width: "20"
3697
- }, null, 8, Ns)
3697
+ }, null, 8, Bs)
3698
3698
  ]),
3699
- R("g", Bs, [
3699
+ R("g", Ps, [
3700
3700
  R("path", {
3701
3701
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
3702
3702
  fill: e.color
3703
- }, null, 8, Ps)
3703
+ }, null, 8, Ls)
3704
3704
  ])
3705
3705
  ]));
3706
3706
  }
3707
- }), qs = {
3707
+ }), Us = {
3708
3708
  key: 1,
3709
3709
  class: "kong-ui-entity-filter"
3710
- }, Us = { class: "menu-item-title" }, Rs = { class: "menu-item-indicator" }, Vs = { class: "menu-item-body" }, Ds = ["for"], Gs = { class: "menu-item-buttons" }, zs = /* @__PURE__ */ ae({
3710
+ }, Rs = { class: "menu-item-title" }, Vs = { class: "menu-item-indicator" }, Ds = { class: "menu-item-body" }, Gs = ["for"], zs = { class: "menu-item-buttons" }, Hs = /* @__PURE__ */ ae({
3711
3711
  __name: "EntityFilter",
3712
3712
  props: {
3713
3713
  // filter config, either exact match or fuzzy match
@@ -3727,21 +3727,21 @@ const Wi = {
3727
3727
  },
3728
3728
  emits: ["update:modelValue"],
3729
3729
  setup(e, { emit: n }) {
3730
- const t = e, { i18n: { t: r } } = ue.useI18n(), o = E(!1), a = E({}), i = j(() => {
3730
+ const t = e, { i18n: { t: r } } = ue.useI18n(), o = O(!1), a = O({}), i = T(() => {
3731
3731
  const p = [];
3732
- return new URLSearchParams(t.modelValue).forEach((S, b) => {
3733
- S !== "" && p.push(b);
3732
+ return new URLSearchParams(t.modelValue).forEach((A, b) => {
3733
+ A !== "" && p.push(b);
3734
3734
  }), p;
3735
- }), s = j(() => {
3735
+ }), s = T(() => {
3736
3736
  const p = t.config.fields;
3737
- return Object.keys(p).filter((S) => p[S].searchable).map((S) => ({
3738
- label: p[S].label || S,
3739
- value: S
3737
+ return Object.keys(p).filter((A) => p[A].searchable).map((A) => ({
3738
+ label: p[A].label || A,
3739
+ value: A
3740
3740
  }));
3741
3741
  });
3742
3742
  xe(() => t.modelValue, (p) => {
3743
- a.value = {}, new URLSearchParams(p).forEach((S, b) => {
3744
- a.value[b] = S;
3743
+ a.value = {}, new URLSearchParams(p).forEach((A, b) => {
3744
+ a.value[b] = A;
3745
3745
  });
3746
3746
  });
3747
3747
  const l = () => {
@@ -3749,27 +3749,27 @@ const Wi = {
3749
3749
  }, c = (p) => {
3750
3750
  n("update:modelValue", p);
3751
3751
  }, d = (p) => `filter-${p}`, u = (p) => {
3752
- var S, b;
3753
- return (((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.values) ?? []).map((k) => ({
3752
+ var A, b;
3753
+ return (((b = (A = t.config.schema) == null ? void 0 : A[p]) == null ? void 0 : b.values) ?? []).map((k) => ({
3754
3754
  value: k,
3755
3755
  label: k
3756
3756
  }));
3757
3757
  }, m = (p) => {
3758
- var S, b;
3759
- return ((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.type) ?? "text";
3758
+ var A, b;
3759
+ return ((b = (A = t.config.schema) == null ? void 0 : A[p]) == null ? void 0 : b.type) ?? "text";
3760
3760
  }, f = (p) => {
3761
3761
  a.value = {
3762
3762
  ...a.value,
3763
3763
  [p]: ""
3764
- }, v();
3765
- }, I = () => {
3766
- a.value = {}, v(!0);
3767
- }, v = (p = !1) => {
3768
- const S = Object.keys(a.value).reduce((b, k) => (a.value[k] && (b[k] = `${a.value[k]}`), b), {});
3769
- p && (o.value = !1), n("update:modelValue", new URLSearchParams(S).toString());
3764
+ }, h();
3765
+ }, S = () => {
3766
+ a.value = {}, h(!0);
3767
+ }, h = (p = !1) => {
3768
+ const A = Object.keys(a.value).reduce((b, k) => (a.value[k] && (b[k] = `${a.value[k]}`), b), {});
3769
+ p && (o.value = !1), n("update:modelValue", new URLSearchParams(A).toString());
3770
3770
  };
3771
- return (p, S) => {
3772
- const b = q("KInput"), k = q("KButton"), A = q("KSelect"), ne = q("KMenuItem"), pe = q("KMenu");
3771
+ return (p, A) => {
3772
+ const b = q("KInput"), k = q("KButton"), I = q("KSelect"), re = q("KMenuItem"), se = q("KMenu");
3773
3773
  return e.config.isExactMatch ? (g(), V(b, {
3774
3774
  key: 0,
3775
3775
  autocomplete: "off",
@@ -3779,18 +3779,18 @@ const Wi = {
3779
3779
  placeholder: e.config.placeholder,
3780
3780
  "onUpdate:modelValue": c
3781
3781
  }, {
3782
- icon: h(() => [
3783
- F(Ls)
3782
+ icon: v(() => [
3783
+ F(qs)
3784
3784
  ]),
3785
3785
  _: 1
3786
- }, 8, ["model-value", "placeholder"])) : (g(), M("div", qs, [
3786
+ }, 8, ["model-value", "placeholder"])) : (g(), M("div", Us, [
3787
3787
  F(k, {
3788
3788
  appearance: "btn-link",
3789
3789
  "data-testid": "filter-button",
3790
3790
  icon: "filter",
3791
3791
  onClick: l
3792
3792
  }, {
3793
- default: h(() => [
3793
+ default: v(() => [
3794
3794
  Z(K(y(r)("filter.filterButtonText")) + " " + K(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
3795
3795
  ]),
3796
3796
  _: 1
@@ -3801,35 +3801,35 @@ const Wi = {
3801
3801
  }, null, 512), [
3802
3802
  [tt, o.value]
3803
3803
  ]),
3804
- et(F(pe, { class: "kong-ui-entity-filter-menu" }, {
3805
- body: h(() => [
3806
- (g(!0), M(ve, null, ye(s.value, (z, w) => (g(), V(ne, {
3804
+ et(F(se, { class: "kong-ui-entity-filter-menu" }, {
3805
+ body: v(() => [
3806
+ (g(!0), M(ve, null, ye(s.value, (z, _) => (g(), V(re, {
3807
3807
  key: z.value,
3808
3808
  "data-testid": z.value,
3809
3809
  expandable: "",
3810
- "last-menu-item": w === s.value.length - 1
3810
+ "last-menu-item": _ === s.value.length - 1
3811
3811
  }, {
3812
- itemTitle: h(() => [
3813
- R("span", Us, [
3812
+ itemTitle: v(() => [
3813
+ R("span", Rs, [
3814
3814
  Z(K(z.label) + " ", 1),
3815
- et(R("span", Rs, null, 512), [
3815
+ et(R("span", Vs, null, 512), [
3816
3816
  [tt, i.value.includes(z.value)]
3817
3817
  ])
3818
3818
  ])
3819
3819
  ]),
3820
- itemBody: h(() => {
3821
- var N, B;
3820
+ itemBody: v(() => {
3821
+ var B, P;
3822
3822
  return [
3823
- R("div", Vs, [
3823
+ R("div", Ds, [
3824
3824
  R("label", {
3825
3825
  class: "menu-item-label",
3826
3826
  for: d(z.value)
3827
- }, K(y(r)("filter.fieldLabel")), 9, Ds),
3828
- ((B = (N = e.config.schema) == null ? void 0 : N[z.value]) == null ? void 0 : B.type) === "select" ? (g(), V(A, {
3827
+ }, K(y(r)("filter.fieldLabel")), 9, Gs),
3828
+ ((P = (B = e.config.schema) == null ? void 0 : B[z.value]) == null ? void 0 : P.type) === "select" ? (g(), V(I, {
3829
3829
  key: 0,
3830
3830
  id: d(z.value),
3831
3831
  modelValue: a.value[z.value],
3832
- "onUpdate:modelValue": (C) => a.value[z.value] = C,
3832
+ "onUpdate:modelValue": (w) => a.value[z.value] = w,
3833
3833
  appearance: "select",
3834
3834
  items: u(z.value),
3835
3835
  placeholder: y(r)("filter.selectPlaceholder")
@@ -3837,21 +3837,21 @@ const Wi = {
3837
3837
  key: 1,
3838
3838
  id: d(z.value),
3839
3839
  modelValue: a.value[z.value],
3840
- "onUpdate:modelValue": (C) => a.value[z.value] = C,
3840
+ "onUpdate:modelValue": (w) => a.value[z.value] = w,
3841
3841
  autocomplete: "off",
3842
3842
  placeholder: y(r)("filter.inputPlaceholder"),
3843
3843
  size: "small",
3844
3844
  type: m(z.value)
3845
3845
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
3846
3846
  ]),
3847
- R("div", Gs, [
3847
+ R("div", zs, [
3848
3848
  F(k, {
3849
3849
  appearance: "btn-link",
3850
3850
  "data-testid": "apply-filter",
3851
3851
  size: "small",
3852
- onClick: S[0] || (S[0] = (C) => v(!0))
3852
+ onClick: A[0] || (A[0] = (w) => h(!0))
3853
3853
  }, {
3854
- default: h(() => [
3854
+ default: v(() => [
3855
3855
  Z(K(y(r)("filter.applyButtonText")), 1)
3856
3856
  ]),
3857
3857
  _: 1
@@ -3860,9 +3860,9 @@ const Wi = {
3860
3860
  appearance: "btn-link",
3861
3861
  "data-testid": "clear-filter",
3862
3862
  size: "small",
3863
- onClick: (C) => f(z.value)
3863
+ onClick: (w) => f(z.value)
3864
3864
  }, {
3865
- default: h(() => [
3865
+ default: v(() => [
3866
3866
  Z(K(y(r)("filter.clearButtonText")), 1)
3867
3867
  ]),
3868
3868
  _: 2
@@ -3873,9 +3873,9 @@ const Wi = {
3873
3873
  _: 2
3874
3874
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
3875
3875
  ]),
3876
- actionButton: h(() => [
3877
- F(k, { onClick: I }, {
3878
- default: h(() => [
3876
+ actionButton: v(() => [
3877
+ F(k, { onClick: S }, {
3878
+ default: v(() => [
3879
3879
  Z(K(y(r)("filter.clearAllButtonText")), 1)
3880
3880
  ]),
3881
3881
  _: 1
@@ -3888,7 +3888,7 @@ const Wi = {
3888
3888
  ]));
3889
3889
  };
3890
3890
  }
3891
- }), Hs = /* @__PURE__ */ Ce(zs, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ae({
3891
+ }), Js = /* @__PURE__ */ Ce(Hs, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ae({
3892
3892
  __name: "PermissionsWrapper",
3893
3893
  props: {
3894
3894
  /**
@@ -3910,7 +3910,7 @@ const Wi = {
3910
3910
  }
3911
3911
  },
3912
3912
  setup(e) {
3913
- const n = e, t = E(void 0), r = j(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3913
+ const n = e, t = O(void 0), r = T(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3914
3914
  return xe(() => n.authFunction, async () => {
3915
3915
  t.value = await n.authFunction();
3916
3916
  }, { immediate: !0 }), (o, a) => r.value ? Y(o.$slots, "default", {
@@ -3918,16 +3918,16 @@ const Wi = {
3918
3918
  isAllowed: t.value
3919
3919
  }) : G("", !0);
3920
3920
  }
3921
- }), Js = { class: "form-section-wrapper" }, Ws = {
3921
+ }), Ws = { class: "form-section-wrapper" }, Ys = {
3922
3922
  key: 0,
3923
3923
  class: "form-section-title"
3924
- }, Ys = {
3924
+ }, Zs = {
3925
3925
  key: 1,
3926
3926
  class: "form-section-description"
3927
- }, Zs = {
3927
+ }, Qs = {
3928
3928
  key: 2,
3929
3929
  class: "form-section-footer"
3930
- }, Qs = { class: "form-section-content" }, Xs = /* @__PURE__ */ ae({
3930
+ }, Xs = { class: "form-section-content" }, el = /* @__PURE__ */ ae({
3931
3931
  __name: "EntityFormSection",
3932
3932
  props: {
3933
3933
  title: {
@@ -3954,34 +3954,34 @@ const Wi = {
3954
3954
  setup(e) {
3955
3955
  const n = ut();
3956
3956
  return (t, r) => (g(), M("fieldset", {
3957
- class: Fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
3957
+ class: Ne(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
3958
3958
  }, [
3959
- R("div", Js, [
3959
+ R("div", Ws, [
3960
3960
  e.hideInfoHeader ? G("", !0) : (g(), M("div", {
3961
3961
  key: 0,
3962
- class: Fe(["form-section-info", { sticky: e.stickyInfoHeader }])
3962
+ class: Ne(["form-section-info", { sticky: e.stickyInfoHeader }])
3963
3963
  }, [
3964
- e.title ? (g(), M("h4", Ws, K(e.title), 1)) : G("", !0),
3965
- e.description || y(n).description ? (g(), M("div", Ys, [
3964
+ e.title ? (g(), M("h4", Ys, K(e.title), 1)) : G("", !0),
3965
+ e.description || y(n).description ? (g(), M("div", Zs, [
3966
3966
  Y(t.$slots, "description", {}, () => [
3967
3967
  R("p", null, K(e.description), 1)
3968
3968
  ], !0)
3969
3969
  ])) : G("", !0),
3970
- y(n).footer ? (g(), M("div", Zs, [
3970
+ y(n).footer ? (g(), M("div", Qs, [
3971
3971
  Y(t.$slots, "footer", {}, void 0, !0)
3972
3972
  ])) : G("", !0)
3973
3973
  ], 2)),
3974
- R("div", Qs, [
3974
+ R("div", Xs, [
3975
3975
  Y(t.$slots, "default", {}, void 0, !0)
3976
3976
  ])
3977
3977
  ])
3978
3978
  ], 2));
3979
3979
  }
3980
- }), un = /* @__PURE__ */ Ce(Xs, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Kt, useDeleteUrlBuilder: el, useErrors: tl, useExternalLinkCreator: _l, useFetchUrlBuilder: wl, useFetcher: nl, useDebouncedFilter: ar, useStringHelpers: Il, useHelpers: Al, useGatewayFeatureSupported: Sl, useTruncationDetector: xl } = ue;
3981
- const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group-cta-text" }, al = {
3980
+ }), cn = /* @__PURE__ */ Ce(el, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Kt, useDeleteUrlBuilder: tl, useErrors: nl, useExternalLinkCreator: wl, useFetchUrlBuilder: Il, useFetcher: rl, useDebouncedFilter: ir, useStringHelpers: Al, useHelpers: Sl, useGatewayFeatureSupported: xl, useTruncationDetector: Tl } = ue;
3981
+ const ol = { class: "add-to-group-form-container" }, al = { class: "add-to-group-cta-text" }, il = {
3982
3982
  key: 0,
3983
3983
  class: "kong-ui-entity-add-to-groups-error"
3984
- }, il = { key: 0 }, sl = /* @__PURE__ */ ae({
3984
+ }, sl = { key: 0 }, ll = /* @__PURE__ */ ae({
3985
3985
  __name: "AddToGroupModal",
3986
3986
  props: {
3987
3987
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3998,17 +3998,17 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
3998
3998
  },
3999
3999
  emits: ["cancel", "add:success", "add:partial-success", "error"],
4000
4000
  setup(e, { emit: n }) {
4001
- var B;
4001
+ var P;
4002
4002
  const t = e, { i18n: { t: r } } = ct.useI18n(), { axiosInstance: o } = Kt({
4003
- headers: (B = t.config) == null ? void 0 : B.requestHeaders
4004
- }), a = E([]), {
4003
+ headers: (P = t.config) == null ? void 0 : P.requestHeaders
4004
+ }), a = O([]), {
4005
4005
  debouncedQueryChange: i,
4006
4006
  loading: s,
4007
4007
  allRecords: l,
4008
4008
  error: c,
4009
4009
  loadItems: d,
4010
4010
  results: u
4011
- } = ar(
4011
+ } = ir(
4012
4012
  t.config,
4013
4013
  $e.list[t.config.app].all,
4014
4014
  "",
@@ -4016,81 +4016,81 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
4016
4016
  fetchedItemsKey: "data",
4017
4017
  searchKeys: ["name", "id"]
4018
4018
  }
4019
- ), m = j(() => c.value ? r("consumer_groups.errors.general") : ""), f = E(0), I = j(() => l.value === void 0), v = j(() => u.value.map((C) => ({
4020
- label: C.name,
4021
- value: C.id,
4022
- selected: a.value.includes(C.id),
4023
- data: C
4019
+ ), m = T(() => c.value ? r("consumer_groups.errors.general") : ""), f = O(0), S = T(() => l.value === void 0), h = T(() => u.value.map((w) => ({
4020
+ label: w.name,
4021
+ value: w.id,
4022
+ selected: a.value.includes(w.id),
4023
+ data: w
4024
4024
  // we need this to determine whether or not to show the description text
4025
- }))), p = (C) => {
4026
- var T;
4027
- const x = I.value ? u.value.find((P) => P.id === C) : (T = l.value) == null ? void 0 : T.find((P) => P.id === C);
4028
- return x ? x.name : C;
4029
- }, S = () => {
4030
- A.value = "", b.value = [], w.value = [], n("cancel");
4031
- }, b = E([]), k = E(!1), A = E(""), ne = async () => {
4025
+ }))), p = (w) => {
4026
+ var $;
4027
+ const x = S.value ? u.value.find((N) => N.id === w) : ($ = l.value) == null ? void 0 : $.find((N) => N.id === w);
4028
+ return x ? x.name : w;
4029
+ }, A = () => {
4030
+ I.value = "", b.value = [], _.value = [], n("cancel");
4031
+ }, b = O([]), k = O(!1), I = O(""), re = async () => {
4032
4032
  if (!a.value.length) {
4033
- A.value = "", w.value = [], n("cancel");
4033
+ I.value = "", _.value = [], n("cancel");
4034
4034
  return;
4035
4035
  }
4036
- k.value = !0, A.value = "", b.value = [], w.value = [];
4036
+ k.value = !0, I.value = "", b.value = [], _.value = [];
4037
4037
  try {
4038
- const C = a.value.map((P) => z(P)), x = await Promise.allSettled(C);
4039
- let T = !0;
4040
- x.forEach((P) => {
4041
- P.status !== "fulfilled" && (T = !1);
4042
- }), T ? (b.value = [], w.value = [], n("add:success", a.value), a.value = []) : (b.value.length && n("add:partial-success", b.value), a.value = [], N(x));
4038
+ const w = a.value.map((N) => z(N)), x = await Promise.allSettled(w);
4039
+ let $ = !0;
4040
+ x.forEach((N) => {
4041
+ N.status !== "fulfilled" && ($ = !1);
4042
+ }), $ ? (b.value = [], _.value = [], n("add:success", a.value), a.value = []) : (b.value.length && n("add:partial-success", b.value), a.value = [], B(x));
4043
4043
  } catch {
4044
- A.value = r("consumer_groups.errors.add"), n("error", A.value);
4044
+ I.value = r("consumer_groups.errors.add"), n("error", I.value);
4045
4045
  } finally {
4046
4046
  k.value = !1;
4047
4047
  }
4048
- }, pe = j(() => {
4049
- var x, T, P, J;
4050
- let C = `${t.config.apiBaseUrl}${$e.list[t.config.app].forConsumer}`;
4051
- return t.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "").replace(/{consumerId}/gi, ((T = t.config) == null ? void 0 : T.consumerId) || "") : t.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (P = t.config) != null && P.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), C;
4052
- }), z = async (C) => {
4048
+ }, se = T(() => {
4049
+ var x, $, N, J;
4050
+ let w = `${t.config.apiBaseUrl}${$e.list[t.config.app].forConsumer}`;
4051
+ return t.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "").replace(/{consumerId}/gi, (($ = t.config) == null ? void 0 : $.consumerId) || "") : t.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (N = t.config) != null && N.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), w;
4052
+ }), z = async (w) => {
4053
4053
  const x = {
4054
- group: C
4054
+ group: w
4055
4055
  };
4056
4056
  try {
4057
- const T = await o.post(pe.value, x);
4058
- return b.value.push(C), T;
4059
- } catch (T) {
4060
- let P = `${p(C)} - ${T.message}`;
4061
- return T.response.status === 409 && (P = `${p(C)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(P));
4057
+ const $ = await o.post(se.value, x);
4058
+ return b.value.push(w), $;
4059
+ } catch ($) {
4060
+ let N = `${p(w)} - ${$.message}`;
4061
+ return $.response.status === 409 && (N = `${p(w)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(N));
4062
4062
  }
4063
- }, w = E([]), N = (C) => {
4064
- w.value = C.map((x) => {
4065
- var T;
4066
- return (T = x.reason) == null ? void 0 : T.message;
4063
+ }, _ = O([]), B = (w) => {
4064
+ _.value = w.map((x) => {
4065
+ var $;
4066
+ return ($ = x.reason) == null ? void 0 : $.message;
4067
4067
  }).filter(Boolean);
4068
4068
  };
4069
- return xe(v, () => {
4069
+ return xe(h, () => {
4070
4070
  f.value++;
4071
- }, { immediate: !0, deep: !0 }), Qe(async () => {
4071
+ }, { immediate: !0, deep: !0 }), Ze(async () => {
4072
4072
  await d();
4073
- }), (C, x) => {
4074
- const T = q("KMultiselect"), P = q("KAlert"), J = q("KPrompt");
4073
+ }), (w, x) => {
4074
+ const $ = q("KMultiselect"), N = q("KAlert"), J = q("KPrompt");
4075
4075
  return g(), V(J, {
4076
4076
  "action-pending": k.value,
4077
4077
  class: "kong-ui-entities-add-to-groups-modal",
4078
4078
  "data-testid": "add-to-group-modal",
4079
4079
  "is-visible": e.visible,
4080
4080
  title: y(r)("consumer_groups.consumers.add.title"),
4081
- onCanceled: S,
4082
- onProceed: ne
4081
+ onCanceled: A,
4082
+ onProceed: re
4083
4083
  }, {
4084
- "body-content": h(() => [
4085
- R("div", rl, [
4086
- R("p", ol, K(y(r)("consumer_groups.consumers.add.ctaText")), 1),
4087
- F(T, {
4084
+ "body-content": v(() => [
4085
+ R("div", ol, [
4086
+ R("p", al, K(y(r)("consumer_groups.consumers.add.ctaText")), 1),
4087
+ F($, {
4088
4088
  modelValue: a.value,
4089
4089
  "onUpdate:modelValue": x[0] || (x[0] = (Q) => a.value = Q),
4090
4090
  autosuggest: "",
4091
4091
  "data-testid": "add-to-groups-multiselect",
4092
- "dropdown-footer-text": I.value ? y(r)("consumer_groups.consumers.add.footer") : void 0,
4093
- items: v.value,
4092
+ "dropdown-footer-text": S.value ? y(r)("consumer_groups.consumers.add.footer") : void 0,
4093
+ items: h.value,
4094
4094
  label: y(r)("consumer_groups.consumers.add.consumer_groups_label"),
4095
4095
  loading: y(s),
4096
4096
  placeholder: y(r)("consumer_groups.consumers.add.consumer_group_placeholder"),
@@ -4099,14 +4099,14 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
4099
4099
  width: "100%",
4100
4100
  onQueryChange: y(i)
4101
4101
  }, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
4102
- A.value || m.value || w.value.length ? (g(), M("div", al, [
4103
- F(P, { appearance: "danger" }, {
4104
- alertMessage: h(() => [
4102
+ I.value || m.value || _.value.length ? (g(), M("div", il, [
4103
+ F(N, { appearance: "danger" }, {
4104
+ alertMessage: v(() => [
4105
4105
  R("p", null, K(y(r)("consumer_groups.errors.add")), 1),
4106
- w.value.length ? (g(), M("ul", il, [
4107
- (g(!0), M(ve, null, ye(w.value, (Q, X) => (g(), M("li", { key: X }, K(Q), 1))), 128))
4106
+ _.value.length ? (g(), M("ul", sl, [
4107
+ (g(!0), M(ve, null, ye(_.value, (Q, X) => (g(), M("li", { key: X }, K(Q), 1))), 128))
4108
4108
  ])) : G("", !0),
4109
- R("div", null, K(A.value || m.value), 1)
4109
+ R("div", null, K(I.value || m.value), 1)
4110
4110
  ]),
4111
4111
  _: 1
4112
4112
  })
@@ -4123,7 +4123,7 @@ const Ft = (e, n) => {
4123
4123
  for (const [r, o] of n)
4124
4124
  t[r] = o;
4125
4125
  return t;
4126
- }, ll = /* @__PURE__ */ Ft(sl, [["__scopeId", "data-v-4d30f3c5"]]), ul = { class: "kong-ui-entities-consumer-groups-list" }, cl = { key: 1 }, dl = /* @__PURE__ */ ae({
4126
+ }, ul = /* @__PURE__ */ Ft(ll, [["__scopeId", "data-v-4d30f3c5"]]), cl = { class: "kong-ui-entities-consumer-groups-list" }, dl = { key: 1 }, pl = /* @__PURE__ */ ae({
4127
4127
  __name: "ConsumerGroupList",
4128
4128
  props: {
4129
4129
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4164,180 +4164,182 @@ const Ft = (e, n) => {
4164
4164
  },
4165
4165
  emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
4166
4166
  setup(e, { emit: n }) {
4167
- var Nt;
4167
+ var Bt;
4168
4168
  const t = e, { i18nT: r, i18n: { t: o } } = ct.useI18n(), a = wt(), { axiosInstance: i } = Kt({
4169
- headers: (Nt = t.config) == null ? void 0 : Nt.requestHeaders
4170
- }), s = E(1), l = j(() => !!t.config.consumerId), c = j(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
4169
+ headers: (Bt = t.config) == null ? void 0 : Bt.requestHeaders
4170
+ }), s = O(1), l = T(() => !!t.config.consumerId), c = T(
4171
+ () => l.value ? "kong-ui-entities-consumer-groups-list-in-consumer-page" : "kong-ui-entities-consumer-groups-list"
4172
+ ), d = T(() => t.config.app !== "kongManager" || !!t.config.disableSorting), u = {
4171
4173
  name: { label: o("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
4172
4174
  };
4173
- t.config.app === "kongManager" && (d.consumers_count = { label: o("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), d.tags = { label: o("consumer_groups.list.table_headers.tags"), sortable: !1 };
4174
- const u = d, m = (O) => ({
4175
- "data-testid": O.username ?? O.custom_id ?? O.id
4176
- }), f = j(() => {
4175
+ t.config.app === "kongManager" && (u.consumers_count = { label: o("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), u.tags = { label: o("consumer_groups.list.table_headers.tags"), sortable: !1 };
4176
+ const m = u, f = (E) => ({
4177
+ "data-testid": E.username ?? E.custom_id ?? E.id
4178
+ }), S = T(() => {
4177
4179
  var H, le, ke, Oe;
4178
- let O = `${t.config.apiBaseUrl}${$e.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
4179
- return t.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (ke = t.config) != null && ke.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Oe = t.config) == null ? void 0 : Oe.consumerId) || "")), O;
4180
- }), I = E(""), v = j(() => {
4181
- const O = t.config.app === "konnect" || t.config.isExactMatch;
4182
- return O ? {
4183
- isExactMatch: O,
4180
+ let E = `${t.config.apiBaseUrl}${$e.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
4181
+ return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (ke = t.config) != null && ke.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Oe = t.config) == null ? void 0 : Oe.consumerId) || "")), E;
4182
+ }), h = O(""), p = T(() => {
4183
+ const E = t.config.app === "konnect" || t.config.isExactMatch;
4184
+ return E ? {
4185
+ isExactMatch: E,
4184
4186
  fields: {
4185
- username: d.name,
4187
+ username: u.name,
4186
4188
  id: { label: o("consumer_groups.list.table_headers.id") }
4187
4189
  },
4188
4190
  placeholder: o("consumer_groups.search.placeholder")
4189
4191
  } : {
4190
- isExactMatch: O,
4192
+ isExactMatch: E,
4191
4193
  fields: {
4192
- name: d.name
4194
+ name: u.name
4193
4195
  },
4194
4196
  schema: t.config.filterSchema
4195
4197
  };
4196
- }), p = j(() => l.value ? "consumer_groups" : void 0), { fetcher: S, fetcherState: b } = nl(t.config, f.value, p.value), k = () => {
4197
- I.value = "";
4198
- }, A = () => {
4198
+ }), A = T(() => l.value && !t.config.paginatedEndpoint ? "consumer_groups" : void 0), { fetcher: b, fetcherState: k } = rl(t.config, S.value, A.value), I = () => {
4199
+ h.value = "";
4200
+ }, re = () => {
4199
4201
  s.value++;
4200
- }, ne = E(""), pe = (O, H) => {
4201
- const le = O.id;
4202
+ }, se = O(""), z = (E, H) => {
4203
+ const le = E.id;
4202
4204
  if (!H(le)) {
4203
4205
  n("copy:error", {
4204
- entity: O,
4206
+ entity: E,
4205
4207
  field: "id",
4206
4208
  message: o("consumer_groups.errors.copy")
4207
4209
  });
4208
4210
  return;
4209
4211
  }
4210
4212
  n("copy:success", {
4211
- entity: O,
4213
+ entity: E,
4212
4214
  field: "id",
4213
4215
  message: o("consumer_groups.copy.success", { val: le })
4214
4216
  });
4215
- }, z = (O, H) => {
4216
- const le = JSON.stringify(O);
4217
+ }, _ = (E, H) => {
4218
+ const le = JSON.stringify(E);
4217
4219
  if (!H(le)) {
4218
4220
  n("copy:error", {
4219
- entity: O,
4221
+ entity: E,
4220
4222
  message: o("consumer_groups.errors.copy")
4221
4223
  });
4222
4224
  return;
4223
4225
  }
4224
4226
  n("copy:success", {
4225
- entity: O,
4227
+ entity: E,
4226
4228
  message: o("consumer_groups.copy.success_brief")
4227
4229
  });
4228
- }, w = async (O) => {
4230
+ }, B = async (E) => {
4229
4231
  var le;
4230
- await ((le = t.canRetrieve) == null ? void 0 : le.call(t, O)) && a.push(t.config.getViewRoute(O.id));
4231
- }, N = (O) => ({
4232
+ await ((le = t.canRetrieve) == null ? void 0 : le.call(t, E)) && a.push(t.config.getViewRoute(E.id));
4233
+ }, P = (E) => ({
4232
4234
  label: o("consumer_groups.actions.view"),
4233
- to: t.config.getViewRoute(O)
4234
- }), B = (O) => ({
4235
+ to: t.config.getViewRoute(E)
4236
+ }), w = (E) => ({
4235
4237
  label: o("consumer_groups.actions.edit"),
4236
- to: t.config.getEditRoute(O)
4237
- }), C = E(void 0), x = E(!1), T = E(!1), P = E(""), J = el(t.config, f.value), Q = (O) => {
4238
- C.value = O, x.value = !0;
4239
- }, X = () => {
4240
- x.value = !1;
4241
- }, ee = async () => {
4242
- var O, H, le;
4243
- if ((O = C.value) != null && O.id) {
4244
- T.value = !0;
4238
+ to: t.config.getEditRoute(E)
4239
+ }), x = O(void 0), $ = O(!1), N = O(!1), J = O(""), Q = tl(t.config, S.value), X = (E) => {
4240
+ x.value = E, $.value = !0;
4241
+ }, ee = () => {
4242
+ $.value = !1;
4243
+ }, ce = async () => {
4244
+ var E, H, le;
4245
+ if ((E = x.value) != null && E.id) {
4246
+ N.value = !0;
4245
4247
  try {
4246
- await i.delete(J(C.value.id)), T.value = !1, x.value = !1, s.value++, n("delete:success", C.value);
4248
+ await i.delete(Q(x.value.id)), N.value = !1, $.value = !1, s.value++, n("delete:success", x.value);
4247
4249
  } catch (ke) {
4248
- P.value = ((le = (H = ke.response) == null ? void 0 : H.data) == null ? void 0 : le.message) || ke.message || o("consumer_groups.errors.delete"), n("error", ke);
4250
+ J.value = ((le = (H = ke.response) == null ? void 0 : H.data) == null ? void 0 : le.message) || ke.message || o("consumer_groups.errors.delete"), n("error", ke);
4249
4251
  } finally {
4250
- T.value = !1;
4252
+ N.value = !1;
4251
4253
  }
4252
4254
  }
4253
- }, ie = E(!1), Ve = () => {
4254
- ie.value = !0;
4255
- }, _ = () => {
4256
- ie.value = !1;
4257
- }, L = (O, H) => {
4258
- H || _(), s.value++, n("add:success", O);
4259
- }, re = () => {
4260
- l.value && Ve();
4261
- }, U = E(void 0), D = E(!1), ge = E(""), _e = (O) => {
4262
- U.value = O, D.value = !0;
4263
- }, ce = () => {
4264
- D.value = !1, U.value = void 0;
4265
- }, Ne = j(() => {
4255
+ }, Be = O(!1), C = () => {
4256
+ Be.value = !0;
4257
+ }, L = () => {
4258
+ Be.value = !1;
4259
+ }, ne = (E, H) => {
4260
+ H || L(), s.value++, n("add:success", E);
4261
+ }, D = () => {
4262
+ l.value && C();
4263
+ }, U = O(void 0), pe = O(!1), _e = O(""), fe = (E) => {
4264
+ U.value = E, pe.value = !0;
4265
+ }, Ee = () => {
4266
+ pe.value = !1, U.value = void 0;
4267
+ }, Qe = T(() => {
4266
4268
  var H, le, ke, Oe;
4267
- let O = `${t.config.apiBaseUrl}${$e.list[t.config.app].oneForConsumer}`;
4268
- return t.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (ke = t.config) != null && ke.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Oe = t.config) == null ? void 0 : Oe.consumerId) || "")), O;
4269
- }), De = E(!1), ir = async () => {
4269
+ let E = `${t.config.apiBaseUrl}${$e.list[t.config.app].oneForConsumer}`;
4270
+ return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (ke = t.config) != null && ke.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Oe = t.config) == null ? void 0 : Oe.consumerId) || "")), E;
4271
+ }), Nt = O(!1), sr = async () => {
4270
4272
  if (U.value) {
4271
- De.value = !0;
4273
+ Nt.value = !0;
4272
4274
  try {
4273
- const O = Ne.value.replace(/{consumerGroupId}/gi, U.value.id);
4274
- await i.delete(O), n("remove:success", U.value), ce(), s.value++;
4275
- } catch (O) {
4276
- ge.value = O.message || o("consumer_groups.errors.delete"), n("error", O);
4275
+ const E = Qe.value.replace(/{consumerGroupId}/gi, U.value.id);
4276
+ await i.delete(E), n("remove:success", U.value), Ee(), s.value++;
4277
+ } catch (E) {
4278
+ _e.value = E.message || o("consumer_groups.errors.delete"), n("error", E);
4277
4279
  } finally {
4278
- De.value = !1;
4280
+ Nt.value = !1;
4279
4281
  }
4280
4282
  }
4281
4283
  };
4282
- xe(b, (O) => {
4283
- if (O.status === Ee.Error) {
4284
- ne.value = o("consumer_groups.errors.general"), n("error", O.error);
4284
+ xe(k, (E) => {
4285
+ if (E.status === Ke.Error) {
4286
+ se.value = o("consumer_groups.errors.general"), n("error", E.error);
4285
4287
  return;
4286
4288
  }
4287
- ne.value = "";
4289
+ se.value = "";
4288
4290
  });
4289
- const pt = E({
4291
+ const pt = O({
4290
4292
  ctaPath: l.value ? void 0 : t.config.createRoute,
4291
4293
  ctaText: void 0,
4292
4294
  message: o("consumer_groups.list.empty_state.description"),
4293
4295
  title: o("consumer_groups.title")
4294
4296
  });
4295
- return Qe(async () => {
4297
+ return Ze(async () => {
4296
4298
  await t.canCreate() && (pt.value.title = l.value ? o("consumer_groups.list.empty_state.title_for_consumer") : o("consumer_groups.list.empty_state.title"), pt.value.ctaText = l.value ? o("consumer_groups.actions.add_to_group") : o("consumer_groups.actions.create"));
4297
- }), (O, H) => {
4298
- const le = q("KButton"), ke = q("KBadge"), Oe = q("KTruncate"), Ge = q("KDropdownItem"), Bt = q("KClipboardProvider"), sr = q("KPrompt");
4299
- return g(), M("div", ul, [
4300
- F(y($s), {
4299
+ }), (E, H) => {
4300
+ const le = q("KButton"), ke = q("KBadge"), Oe = q("KTruncate"), De = q("KDropdownItem"), Pt = q("KClipboardProvider"), lr = q("KPrompt");
4301
+ return g(), M("div", cl, [
4302
+ F(y(js), {
4301
4303
  "cache-identifier": e.cacheIdentifier,
4302
- "disable-pagination": l.value,
4304
+ "disable-pagination": l.value && !e.config.paginatedEndpoint,
4303
4305
  "disable-pagination-page-jump": "",
4304
- "disable-sorting": c.value,
4306
+ "disable-sorting": d.value,
4305
4307
  "empty-state-options": pt.value,
4306
4308
  "enable-entity-actions": "",
4307
- "error-message": ne.value,
4308
- fetcher: y(S),
4309
+ "error-message": se.value,
4310
+ fetcher: y(b),
4309
4311
  "fetcher-cache-key": s.value,
4310
4312
  "pagination-type": "offset",
4311
- "preferences-storage-key": "kong-ui-entities-consumer-groups-list",
4312
- query: I.value,
4313
- "row-attributes": m,
4314
- "table-headers": y(u),
4315
- onClearSearchInput: k,
4316
- "onClick:row": H[3] || (H[3] = (W) => w(W)),
4317
- onEmptyStateCtaClicked: re,
4318
- onSort: A
4313
+ "preferences-storage-key": c.value,
4314
+ query: h.value,
4315
+ "row-attributes": f,
4316
+ "table-headers": y(m),
4317
+ onClearSearchInput: I,
4318
+ "onClick:row": H[3] || (H[3] = (W) => B(W)),
4319
+ onEmptyStateCtaClicked: D,
4320
+ onSort: re
4319
4321
  }, {
4320
- "toolbar-filter": h(() => [
4321
- l.value ? G("", !0) : (g(), V(y(Hs), {
4322
+ "toolbar-filter": v(() => [
4323
+ l.value ? G("", !0) : (g(), V(y(Js), {
4322
4324
  key: 0,
4323
- modelValue: I.value,
4324
- "onUpdate:modelValue": H[0] || (H[0] = (W) => I.value = W),
4325
- config: v.value
4325
+ modelValue: h.value,
4326
+ "onUpdate:modelValue": H[0] || (H[0] = (W) => h.value = W),
4327
+ config: p.value
4326
4328
  }, null, 8, ["modelValue", "config"]))
4327
4329
  ]),
4328
- "toolbar-button": h(() => [
4330
+ "toolbar-button": v(() => [
4329
4331
  F(y(Xe), {
4330
4332
  "auth-function": () => e.canCreate()
4331
4333
  }, {
4332
- default: h(() => [
4334
+ default: v(() => [
4333
4335
  F(le, {
4334
4336
  appearance: "primary",
4335
4337
  "data-testid": "toolbar-add-consumer-group",
4336
4338
  icon: "plus",
4337
4339
  to: e.config.consumerId ? void 0 : e.config.createRoute,
4338
- onClick: H[1] || (H[1] = () => e.config.consumerId ? Ve() : void 0)
4340
+ onClick: H[1] || (H[1] = () => e.config.consumerId ? C() : void 0)
4339
4341
  }, {
4340
- default: h(() => [
4342
+ default: v(() => [
4341
4343
  Z(K(e.config.consumerId ? y(o)("consumer_groups.actions.add_to_group") : y(o)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
4342
4344
  ]),
4343
4345
  _: 1
@@ -4346,37 +4348,37 @@ const Ft = (e, n) => {
4346
4348
  _: 1
4347
4349
  }, 8, ["auth-function"])
4348
4350
  ]),
4349
- name: h(({ rowValue: W }) => [
4351
+ name: v(({ rowValue: W }) => [
4350
4352
  R("b", null, K(W ?? "-"), 1)
4351
4353
  ]),
4352
- consumers_count: h(({ rowValue: W }) => [
4354
+ consumers_count: v(({ rowValue: W }) => [
4353
4355
  Z(K(W ?? "-"), 1)
4354
4356
  ]),
4355
- tags: h(({ rowValue: W }) => [
4357
+ tags: v(({ rowValue: W }) => [
4356
4358
  (W == null ? void 0 : W.length) > 0 ? (g(), V(Oe, { key: 0 }, {
4357
- default: h(() => [
4358
- (g(!0), M(ve, null, ye(W, (Be) => (g(), V(ke, {
4359
- key: Be,
4359
+ default: v(() => [
4360
+ (g(!0), M(ve, null, ye(W, (Pe) => (g(), V(ke, {
4361
+ key: Pe,
4360
4362
  onClick: H[2] || (H[2] = rt(() => {
4361
4363
  }, ["stop"]))
4362
4364
  }, {
4363
- default: h(() => [
4364
- Z(K(Be), 1)
4365
+ default: v(() => [
4366
+ Z(K(Pe), 1)
4365
4367
  ]),
4366
4368
  _: 2
4367
4369
  }, 1024))), 128))
4368
4370
  ]),
4369
4371
  _: 2
4370
- }, 1024)) : (g(), M("span", cl, "-"))
4372
+ }, 1024)) : (g(), M("span", dl, "-"))
4371
4373
  ]),
4372
- actions: h(({ row: W }) => [
4373
- F(Bt, null, {
4374
- default: h(({ copyToClipboard: Be }) => [
4375
- F(Ge, {
4374
+ actions: v(({ row: W }) => [
4375
+ F(Pt, null, {
4376
+ default: v(({ copyToClipboard: Pe }) => [
4377
+ F(De, {
4376
4378
  "data-testid": "action-entity-copy-id",
4377
- onClick: (lr) => pe(W, Be)
4379
+ onClick: (ur) => z(W, Pe)
4378
4380
  }, {
4379
- default: h(() => [
4381
+ default: v(() => [
4380
4382
  Z(K(y(o)("consumer_groups.actions.copy_id")), 1)
4381
4383
  ]),
4382
4384
  _: 2
@@ -4384,13 +4386,13 @@ const Ft = (e, n) => {
4384
4386
  ]),
4385
4387
  _: 2
4386
4388
  }, 1024),
4387
- F(Bt, null, {
4388
- default: h(({ copyToClipboard: Be }) => [
4389
- F(Ge, {
4389
+ F(Pt, null, {
4390
+ default: v(({ copyToClipboard: Pe }) => [
4391
+ F(De, {
4390
4392
  "data-testid": "action-entity-copy-json",
4391
- onClick: (lr) => z(W, Be)
4393
+ onClick: (ur) => _(W, Pe)
4392
4394
  }, {
4393
- default: h(() => [
4395
+ default: v(() => [
4394
4396
  Z(K(y(o)("consumer_groups.actions.copy_json")), 1)
4395
4397
  ]),
4396
4398
  _: 2
@@ -4401,11 +4403,11 @@ const Ft = (e, n) => {
4401
4403
  F(y(Xe), {
4402
4404
  "auth-function": () => e.canRetrieve(W)
4403
4405
  }, {
4404
- default: h(() => [
4405
- F(Ge, {
4406
+ default: v(() => [
4407
+ F(De, {
4406
4408
  "data-testid": "action-entity-view",
4407
4409
  "has-divider": "",
4408
- item: N(W.id)
4410
+ item: P(W.id)
4409
4411
  }, null, 8, ["item"])
4410
4412
  ]),
4411
4413
  _: 2
@@ -4413,10 +4415,10 @@ const Ft = (e, n) => {
4413
4415
  F(y(Xe), {
4414
4416
  "auth-function": () => e.canEdit(W)
4415
4417
  }, {
4416
- default: h(() => [
4417
- F(Ge, {
4418
+ default: v(() => [
4419
+ F(De, {
4418
4420
  "data-testid": "action-entity-edit",
4419
- item: B(W.id)
4421
+ item: w(W.id)
4420
4422
  }, null, 8, ["item"])
4421
4423
  ]),
4422
4424
  _: 2
@@ -4424,14 +4426,14 @@ const Ft = (e, n) => {
4424
4426
  F(y(Xe), {
4425
4427
  "auth-function": () => e.canDelete(W)
4426
4428
  }, {
4427
- default: h(() => [
4428
- F(Ge, {
4429
+ default: v(() => [
4430
+ F(De, {
4429
4431
  "data-testid": "action-entity-delete",
4430
4432
  "has-divider": "",
4431
4433
  "is-dangerous": "",
4432
- onClick: () => e.config.consumerId ? _e(W) : Q(W)
4434
+ onClick: () => e.config.consumerId ? fe(W) : X(W)
4433
4435
  }, {
4434
- default: h(() => [
4436
+ default: v(() => [
4435
4437
  Z(K(e.config.consumerId ? y(o)("consumer_groups.actions.exit") : y(o)("consumer_groups.actions.delete")), 1)
4436
4438
  ]),
4437
4439
  _: 2
@@ -4441,51 +4443,51 @@ const Ft = (e, n) => {
4441
4443
  }, 1032, ["auth-function"])
4442
4444
  ]),
4443
4445
  _: 1
4444
- }, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
4445
- F(y(Es), {
4446
- "action-pending": T.value,
4446
+ }, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "preferences-storage-key", "query", "table-headers"]),
4447
+ F(y(Ks), {
4448
+ "action-pending": N.value,
4447
4449
  "data-testid": "delete-consumer-group-modal",
4448
4450
  description: y(o)("consumer_groups.delete.description"),
4449
- "entity-name": C.value && (C.value.name || C.value.id),
4450
- "entity-type": y(dn).ConsumerGroup,
4451
- error: P.value,
4451
+ "entity-name": x.value && (x.value.name || x.value.id),
4452
+ "entity-type": y(pn).ConsumerGroup,
4453
+ error: J.value,
4452
4454
  title: y(o)("consumer_groups.delete.title"),
4453
- visible: x.value,
4454
- onCancel: X,
4455
- onProceed: ee
4455
+ visible: $.value,
4456
+ onCancel: ee,
4457
+ onProceed: ce
4456
4458
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
4457
- e.config.consumerId ? (g(), V(ll, {
4459
+ e.config.consumerId ? (g(), V(ul, {
4458
4460
  key: 0,
4459
4461
  config: e.config,
4460
4462
  "data-testid": "add-to-group-modal",
4461
- visible: ie.value,
4462
- "onAdd:partialSuccess": H[4] || (H[4] = (W) => L(W, !0)),
4463
- "onAdd:success": H[5] || (H[5] = (W) => L(W)),
4464
- onCancel: _
4463
+ visible: Be.value,
4464
+ "onAdd:partialSuccess": H[4] || (H[4] = (W) => ne(W, !0)),
4465
+ "onAdd:success": H[5] || (H[5] = (W) => ne(W)),
4466
+ onCancel: L
4465
4467
  }, null, 8, ["config", "visible"])) : G("", !0),
4466
- e.config.consumerId && U.value ? (g(), V(sr, {
4468
+ e.config.consumerId && U.value ? (g(), V(lr, {
4467
4469
  key: 1,
4468
4470
  "data-testid": "exit-group-modal",
4469
- "is-visible": D.value,
4471
+ "is-visible": pe.value,
4470
4472
  title: y(o)("consumer_groups.consumers.exit.title"),
4471
4473
  type: "danger",
4472
- onCanceled: ce,
4473
- onProceed: ir
4474
+ onCanceled: Ee,
4475
+ onProceed: sr
4474
4476
  }, {
4475
- "body-content": h(() => [
4477
+ "body-content": v(() => [
4476
4478
  F(y(r), {
4477
4479
  class: "exit-modal-message",
4478
4480
  keypath: e.config.consumerUsername ? "consumer_groups.consumers.exit.confirmation" : "consumer_groups.consumers.exit.confirmationNoUsername",
4479
4481
  tag: "p"
4480
4482
  }, Te({
4481
- consumerGroup: h(() => [
4483
+ consumerGroup: v(() => [
4482
4484
  R("strong", null, K(U.value.name || U.value.id), 1)
4483
4485
  ]),
4484
4486
  _: 2
4485
4487
  }, [
4486
4488
  e.config.consumerUsername ? {
4487
4489
  name: "consumer",
4488
- fn: h(() => [
4490
+ fn: v(() => [
4489
4491
  R("strong", null, K(e.config.consumerUsername), 1)
4490
4492
  ]),
4491
4493
  key: "0"
@@ -4499,10 +4501,10 @@ const Ft = (e, n) => {
4499
4501
  };
4500
4502
  }
4501
4503
  });
4502
- const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { class: "kong-ui-entities-consumer-group-form" }, fl = { class: "select-item-label" }, ml = {
4504
+ const $l = /* @__PURE__ */ Ft(pl, [["__scopeId", "data-v-a9407155"]]), fl = { class: "kong-ui-entities-consumer-group-form" }, ml = { class: "select-item-label" }, gl = {
4503
4505
  key: 0,
4504
4506
  class: "select-item-desc"
4505
- }, gl = /* @__PURE__ */ ae({
4507
+ }, yl = /* @__PURE__ */ ae({
4506
4508
  __name: "ConsumerGroupForm",
4507
4509
  props: {
4508
4510
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4520,8 +4522,8 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4520
4522
  },
4521
4523
  emits: ["update", "error", "loading"],
4522
4524
  setup(e, { emit: n }) {
4523
- var ee, ie, Ve;
4524
- const t = e, { i18n: { t: r } } = ct.useI18n(), o = wt(), a = Pt({
4525
+ var ee, ce, Be;
4526
+ const t = e, { i18n: { t: r } } = ct.useI18n(), o = wt(), a = Lt({
4525
4527
  fields: {
4526
4528
  name: "",
4527
4529
  tags: "",
@@ -4529,7 +4531,7 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4529
4531
  },
4530
4532
  errorMessage: "",
4531
4533
  readonly: !1
4532
- }), i = Pt({
4534
+ }), i = Lt({
4533
4535
  name: "",
4534
4536
  tags: "",
4535
4537
  consumers: []
@@ -4539,102 +4541,102 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4539
4541
  error: c,
4540
4542
  loadItems: d,
4541
4543
  results: u
4542
- } = ar(t.config, (ie = $e.form[(ee = t.config) == null ? void 0 : ee.app]) == null ? void 0 : ie.consumersList, "", {
4544
+ } = ir(t.config, (ce = $e.form[(ee = t.config) == null ? void 0 : ee.app]) == null ? void 0 : ce.consumersList, "", {
4543
4545
  fetchedItemsKey: "data",
4544
4546
  searchKeys: ["username", "custom_id", "id"]
4545
4547
  }), { axiosInstance: m } = Kt({
4546
- headers: (Ve = t.config) == null ? void 0 : Ve.requestHeaders
4547
- }), { getMessageFromError: f } = tl(), I = j(() => u.value.map((_) => ({
4548
- label: _.username || _.custom_id,
4549
- value: _.id,
4550
- selected: a.fields.consumers.includes(_.id),
4551
- data: _
4548
+ headers: (Be = t.config) == null ? void 0 : Be.requestHeaders
4549
+ }), { getMessageFromError: f } = nl(), S = T(() => u.value.map((C) => ({
4550
+ label: C.username || C.custom_id,
4551
+ value: C.id,
4552
+ selected: a.fields.consumers.includes(C.id),
4553
+ data: C
4552
4554
  // we need this to determine whether or not to show the description text
4553
- }))), v = j(() => {
4554
- var _, L;
4555
- return (L = $e.form[(_ = t.config) == null ? void 0 : _.app]) == null ? void 0 : L.edit;
4556
- }), p = j(() => t.consumerGroupId ? nt.Edit : nt.Create), S = j(() => !!a.fields.name && !w.value), b = j(() => JSON.stringify(a.fields) !== JSON.stringify(i)), k = (_, L = "", re = "") => {
4557
- var D, ge, _e, ce, Ne, De;
4558
- let U = `${(D = t.config) == null ? void 0 : D.apiBaseUrl}${$e.form[(ge = t.config) == null ? void 0 : ge.app][_]}`;
4559
- return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Ne = t.config) == null ? void 0 : Ne.app) === "kongManager" && (U = U.replace(/\/{workspace}/gi, (De = t.config) != null && De.workspace ? `/${t.config.workspace}` : "")), U = U.replace(/{id}/gi, L || t.consumerGroupId), (_ === "addConsumer" || _ === "removeConsumer") && (U = U.replace(/{consumerId}/gi, re)), U;
4560
- }, A = () => {
4561
- var _;
4562
- o.push(((_ = t.config) == null ? void 0 : _.cancelRoute) || { name: "consumer-group-list" });
4563
- }, ne = (_) => {
4564
- n("error", _);
4565
- }, pe = (_) => {
4566
- n("loading", _);
4567
- }, z = async (_) => {
4568
- var re, U, D, ge, _e;
4569
- a.fields.name = ((re = _ == null ? void 0 : _.item) == null ? void 0 : re.name) || ((U = _ == null ? void 0 : _.consumer_group) == null ? void 0 : U.name) || (_ == null ? void 0 : _.name) || "";
4570
- const L = ((D = _ == null ? void 0 : _.item) == null ? void 0 : D.tags) || (_ == null ? void 0 : _.consumer_group.tags) || (_ == null ? void 0 : _.tags) || [];
4571
- if (a.fields.tags = (L == null ? void 0 : L.join(", ")) || "", "consumers" in _)
4572
- a.fields.consumers = ((ge = _ == null ? void 0 : _.consumers) == null ? void 0 : ge.map((ce) => ce.id)) || [];
4555
+ }))), h = T(() => {
4556
+ var C, L;
4557
+ return (L = $e.form[(C = t.config) == null ? void 0 : C.app]) == null ? void 0 : L.edit;
4558
+ }), p = T(() => t.consumerGroupId ? nt.Edit : nt.Create), A = T(() => !!a.fields.name && !_.value), b = T(() => JSON.stringify(a.fields) !== JSON.stringify(i)), k = (C, L = "", ne = "") => {
4559
+ var U, pe, _e, fe, Ee, Qe;
4560
+ let D = `${(U = t.config) == null ? void 0 : U.apiBaseUrl}${$e.form[(pe = t.config) == null ? void 0 : pe.app][C]}`;
4561
+ return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? D = D.replace(/{controlPlaneId}/gi, ((fe = t.config) == null ? void 0 : fe.controlPlaneId) || "") : ((Ee = t.config) == null ? void 0 : Ee.app) === "kongManager" && (D = D.replace(/\/{workspace}/gi, (Qe = t.config) != null && Qe.workspace ? `/${t.config.workspace}` : "")), D = D.replace(/{id}/gi, L || t.consumerGroupId), (C === "addConsumer" || C === "removeConsumer") && (D = D.replace(/{consumerId}/gi, ne)), D;
4562
+ }, I = () => {
4563
+ var C;
4564
+ o.push(((C = t.config) == null ? void 0 : C.cancelRoute) || { name: "consumer-group-list" });
4565
+ }, re = (C) => {
4566
+ n("error", C);
4567
+ }, se = (C) => {
4568
+ n("loading", C);
4569
+ }, z = async (C) => {
4570
+ var ne, D, U, pe, _e;
4571
+ a.fields.name = ((ne = C == null ? void 0 : C.item) == null ? void 0 : ne.name) || ((D = C == null ? void 0 : C.consumer_group) == null ? void 0 : D.name) || (C == null ? void 0 : C.name) || "";
4572
+ const L = ((U = C == null ? void 0 : C.item) == null ? void 0 : U.tags) || (C == null ? void 0 : C.consumer_group.tags) || (C == null ? void 0 : C.tags) || [];
4573
+ if (a.fields.tags = (L == null ? void 0 : L.join(", ")) || "", "consumers" in C)
4574
+ a.fields.consumers = ((pe = C == null ? void 0 : C.consumers) == null ? void 0 : pe.map((fe) => fe.id)) || [];
4573
4575
  else
4574
4576
  try {
4575
- const { data: ce } = await m.get(k("getConsumers"));
4576
- a.fields.consumers = "consumers" in ce ? (_e = ce == null ? void 0 : ce.consumers) == null ? void 0 : _e.map((Ne) => Ne.id) : [];
4577
- } catch (ce) {
4578
- x(ce);
4577
+ const { data: fe } = await m.get(k("getConsumers"));
4578
+ a.fields.consumers = "consumers" in fe ? (_e = fe == null ? void 0 : fe.consumers) == null ? void 0 : _e.map((Ee) => Ee.id) : [];
4579
+ } catch (fe) {
4580
+ x(fe);
4579
4581
  }
4580
4582
  Object.assign(i, a.fields);
4581
- }, w = j(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), N = () => {
4582
- var _, L;
4583
+ }, _ = T(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), B = () => {
4584
+ var C, L;
4583
4585
  return {
4584
4586
  name: a.fields.name,
4585
- tags: (L = (_ = a.fields.tags.split(",")) == null ? void 0 : _.map((re) => String(re || "").trim())) == null ? void 0 : L.filter((re) => re !== "")
4587
+ tags: (L = (C = a.fields.tags.split(",")) == null ? void 0 : C.map((ne) => String(ne || "").trim())) == null ? void 0 : L.filter((ne) => ne !== "")
4586
4588
  };
4587
- }, B = async (_, L = "") => await m.post(k("addConsumer", L, _), { consumer: _ }), C = async (_, L = "") => await m.delete(k("removeConsumer", L, _)), x = (_) => {
4588
- a.errorMessage = f(_), n("error", _);
4589
- }, T = (_ = t.consumerGroupId) => {
4590
- Object.assign(i, a.fields), n("update", { ...a.fields, id: _ });
4591
- }, P = (_, L, re = t.consumerGroupId) => {
4592
- const U = _ == null ? void 0 : _.find((D) => D.status !== "fulfilled");
4593
- U ? x({
4594
- code: U.status,
4589
+ }, P = async (C, L = "") => await m.post(k("addConsumer", L, C), { consumer: C }), w = async (C, L = "") => await m.delete(k("removeConsumer", L, C)), x = (C) => {
4590
+ a.errorMessage = f(C), n("error", C);
4591
+ }, $ = (C = t.consumerGroupId) => {
4592
+ Object.assign(i, a.fields), n("update", { ...a.fields, id: C });
4593
+ }, N = (C, L, ne = t.consumerGroupId) => {
4594
+ const D = C == null ? void 0 : C.find((U) => U.status !== "fulfilled");
4595
+ D ? x({
4596
+ code: D.status,
4595
4597
  message: L
4596
- }) : T(re);
4598
+ }) : $(ne);
4597
4599
  }, J = async () => {
4598
- let _ = "";
4600
+ let C = "";
4599
4601
  try {
4600
- const { data: L } = await m.post(k("create"), N());
4601
- _ = "item" in L ? L.item.id : L.id;
4602
+ const { data: L } = await m.post(k("create"), B());
4603
+ C = "item" in L ? L.item.id : L.id;
4602
4604
  } catch (L) {
4603
4605
  x(L);
4604
4606
  }
4605
- if (a.fields.consumers.length > 0 && _)
4607
+ if (a.fields.consumers.length > 0 && C)
4606
4608
  try {
4607
- const L = a.fields.consumers.map((U) => B(U, _)), re = await Promise.allSettled(L);
4608
- P(re, r("consumer_groups.errors.add_consumer"), _);
4609
+ const L = a.fields.consumers.map((D) => P(D, C)), ne = await Promise.allSettled(L);
4610
+ N(ne, r("consumer_groups.errors.add_consumer"), C);
4609
4611
  } catch (L) {
4610
4612
  x(L);
4611
4613
  }
4612
4614
  else
4613
- a.fields.consumers.length === 0 && _ && T(_);
4615
+ a.fields.consumers.length === 0 && C && $(C);
4614
4616
  }, Q = async () => {
4615
- var re;
4617
+ var ne;
4616
4618
  try {
4617
- ((re = t.config) == null ? void 0 : re.app) === "konnect" ? await m.put(k("edit"), N()) : await m.patch(k("edit"), N());
4618
- } catch (U) {
4619
- x(U);
4619
+ ((ne = t.config) == null ? void 0 : ne.app) === "konnect" ? await m.put(k("edit"), B()) : await m.patch(k("edit"), B());
4620
+ } catch (D) {
4621
+ x(D);
4620
4622
  }
4621
- const _ = a.fields.consumers.filter((U) => !i.consumers.includes(U)), L = i.consumers.filter((U) => !a.fields.consumers.includes(U));
4622
- if (L.length === 0 && _.length === 0)
4623
- T();
4623
+ const C = a.fields.consumers.filter((D) => !i.consumers.includes(D)), L = i.consumers.filter((D) => !a.fields.consumers.includes(D));
4624
+ if (L.length === 0 && C.length === 0)
4625
+ $();
4624
4626
  else {
4625
4627
  if (L.length > 0)
4626
4628
  try {
4627
- const U = L.map((ge) => C(ge)), D = await Promise.allSettled(U);
4628
- P(D, r("consumer_groups.errors.remove_consumer"));
4629
- } catch (U) {
4630
- x(U);
4629
+ const D = L.map((pe) => w(pe)), U = await Promise.allSettled(D);
4630
+ N(U, r("consumer_groups.errors.remove_consumer"));
4631
+ } catch (D) {
4632
+ x(D);
4631
4633
  }
4632
- if (_.length > 0)
4634
+ if (C.length > 0)
4633
4635
  try {
4634
- const U = _.map((ge) => B(ge)), D = await Promise.allSettled(U);
4635
- P(D, r("consumer_groups.errors.add_consumer"));
4636
- } catch (U) {
4637
- x(U);
4636
+ const D = C.map((pe) => P(pe)), U = await Promise.allSettled(D);
4637
+ N(U, r("consumer_groups.errors.add_consumer"));
4638
+ } catch (D) {
4639
+ x(D);
4638
4640
  }
4639
4641
  }
4640
4642
  }, X = async () => {
@@ -4644,33 +4646,33 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4644
4646
  a.readonly = !1;
4645
4647
  }
4646
4648
  };
4647
- return Qe(async () => {
4649
+ return Ze(async () => {
4648
4650
  await d();
4649
- }), (_, L) => {
4650
- const re = q("KInput"), U = q("KMultiselect");
4651
- return g(), M("div", pl, [
4652
- F(y(Cs), {
4653
- "can-submit": S.value && b.value,
4651
+ }), (C, L) => {
4652
+ const ne = q("KInput"), D = q("KMultiselect");
4653
+ return g(), M("div", fl, [
4654
+ F(y(_s), {
4655
+ "can-submit": A.value && b.value,
4654
4656
  config: e.config,
4655
4657
  "edit-id": e.consumerGroupId,
4656
- "error-message": a.errorMessage || y(c) || w.value,
4657
- "fetch-url": v.value,
4658
+ "error-message": a.errorMessage || y(c) || _.value,
4659
+ "fetch-url": h.value,
4658
4660
  "is-readonly": a.readonly,
4659
- onCancel: A,
4660
- "onFetch:error": L[3] || (L[3] = (D) => ne(D)),
4661
+ onCancel: I,
4662
+ "onFetch:error": L[3] || (L[3] = (U) => re(U)),
4661
4663
  "onFetch:success": z,
4662
- onLoading: L[4] || (L[4] = (D) => pe(D)),
4664
+ onLoading: L[4] || (L[4] = (U) => se(U)),
4663
4665
  onSubmit: X
4664
4666
  }, {
4665
- default: h(() => [
4666
- F(y(un), {
4667
+ default: v(() => [
4668
+ F(y(cn), {
4667
4669
  description: y(r)("consumer_groups.form.general_info.description"),
4668
4670
  title: y(r)("consumer_groups.form.general_info.title")
4669
4671
  }, {
4670
- default: h(() => [
4671
- F(re, {
4672
+ default: v(() => [
4673
+ F(ne, {
4672
4674
  modelValue: a.fields.name,
4673
- "onUpdate:modelValue": L[0] || (L[0] = (D) => a.fields.name = D),
4675
+ "onUpdate:modelValue": L[0] || (L[0] = (U) => a.fields.name = U),
4674
4676
  modelModifiers: { trim: !0 },
4675
4677
  autocomplete: "off",
4676
4678
  "data-testid": "consumer-group-form-name",
@@ -4679,9 +4681,9 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4679
4681
  required: "",
4680
4682
  type: "text"
4681
4683
  }, null, 8, ["modelValue", "label", "placeholder"]),
4682
- F(re, {
4684
+ F(ne, {
4683
4685
  modelValue: a.fields.tags,
4684
- "onUpdate:modelValue": L[1] || (L[1] = (D) => a.fields.tags = D),
4686
+ "onUpdate:modelValue": L[1] || (L[1] = (U) => a.fields.tags = U),
4685
4687
  modelModifiers: { trim: !0 },
4686
4688
  autocomplete: "off",
4687
4689
  "data-testid": "consumer-group-form-tags",
@@ -4697,30 +4699,30 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4697
4699
  ]),
4698
4700
  _: 1
4699
4701
  }, 8, ["description", "title"]),
4700
- F(y(un), {
4702
+ F(y(cn), {
4701
4703
  description: y(r)("consumer_groups.form.consumers.description"),
4702
4704
  "has-divider": "",
4703
4705
  title: y(r)("consumer_groups.form.consumers.title")
4704
4706
  }, {
4705
- default: h(() => [
4706
- F(U, {
4707
+ default: v(() => [
4708
+ F(D, {
4707
4709
  modelValue: a.fields.consumers,
4708
- "onUpdate:modelValue": L[2] || (L[2] = (D) => a.fields.consumers = D),
4710
+ "onUpdate:modelValue": L[2] || (L[2] = (U) => a.fields.consumers = U),
4709
4711
  appearance: "select",
4710
4712
  autosuggest: "",
4711
4713
  "expand-selected": "",
4712
- items: I.value,
4714
+ items: S.value,
4713
4715
  label: y(r)("consumer_groups.form.fields.consumers.label"),
4714
4716
  loading: y(l),
4715
4717
  placeholder: y(r)("consumer_groups.form.fields.consumers.placeholder"),
4716
4718
  width: "auto",
4717
4719
  onQueryChange: y(s)
4718
4720
  }, {
4719
- "item-template": h(({ item: D }) => {
4720
- var ge, _e, ce;
4721
+ "item-template": v(({ item: U }) => {
4722
+ var pe, _e, fe;
4721
4723
  return [
4722
- R("div", fl, K(D.label), 1),
4723
- (ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (g(), M("div", ml, K((ce = D == null ? void 0 : D.data) == null ? void 0 : ce.custom_id), 1)) : G("", !0)
4724
+ R("div", ml, K(U.label), 1),
4725
+ (pe = U == null ? void 0 : U.data) != null && pe.username && ((_e = U == null ? void 0 : U.data) != null && _e.custom_id) ? (g(), M("div", gl, K((fe = U == null ? void 0 : U.data) == null ? void 0 : fe.custom_id), 1)) : G("", !0)
4724
4726
  ];
4725
4727
  }),
4726
4728
  _: 1
@@ -4735,7 +4737,7 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4735
4737
  };
4736
4738
  }
4737
4739
  });
4738
- const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { class: "kong-ui-consumer-group-entity-config-card" }, jl = /* @__PURE__ */ ae({
4740
+ const jl = /* @__PURE__ */ Ft(yl, [["__scopeId", "data-v-102d40d2"]]), hl = { class: "kong-ui-consumer-group-entity-config-card" }, Ml = /* @__PURE__ */ ae({
4739
4741
  __name: "ConsumerGroupConfigCard",
4740
4742
  props: {
4741
4743
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4762,7 +4764,7 @@ const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { cl
4762
4764
  },
4763
4765
  emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
4764
4766
  setup(e) {
4765
- const n = e, { i18n: { t } } = ct.useI18n(), r = j(() => $e.form[n.config.app].edit), o = E({
4767
+ const n = e, { i18n: { t } } = ct.useI18n(), r = T(() => $e.form[n.config.app].edit), o = O({
4766
4768
  id: {},
4767
4769
  name: {},
4768
4770
  created_at: {},
@@ -4771,8 +4773,8 @@ const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { cl
4771
4773
  tooltip: t("consumer_groups.form.fields.tags.tooltip")
4772
4774
  }
4773
4775
  });
4774
- return (a, i) => (g(), M("div", yl, [
4775
- F(y(hs), {
4776
+ return (a, i) => (g(), M("div", hl, [
4777
+ F(y(vs), {
4776
4778
  config: e.config,
4777
4779
  "config-card-doc": e.configCardDoc,
4778
4780
  "config-schema": o.value,
@@ -4788,7 +4790,7 @@ const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { cl
4788
4790
  }
4789
4791
  });
4790
4792
  export {
4791
- jl as ConsumerGroupConfigCard,
4792
- $l as ConsumerGroupForm,
4793
- Tl as ConsumerGroupList
4793
+ Ml as ConsumerGroupConfigCard,
4794
+ jl as ConsumerGroupForm,
4795
+ $l as ConsumerGroupList
4794
4796
  };