@kong-ui-public/entities-consumer-groups 1.3.6 → 2.0.1-pr.930.362e4ba8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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 re, ref as O, computed as T, watch as xe, renderSlot as W, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as q, openBlock as m, createBlock as R, createSlots as Te, withCtx as h, createElementVNode as V, createTextVNode as Z, toDisplayString as N, createVNode as F, createElementBlock as $, renderList as ye, Fragment as ve, normalizeClass as Fe, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as mr, resolveDynamicComponent as Ve, normalizeProps as gr, guardReactiveProps as yr, mergeProps as ht, onMounted as hr, onUnmounted as vr, normalizeStyle as pn, inject as br, pushScopeId as fn, popScopeId as mn, reactive as Pt } 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 gn } from "@kong-ui-public/i18n";
4
+ import Cr from "axios";
5
+ import { ToastManager as kr, MethodsArray as _r } from "@kong/kongponents";
6
+ const wr = {
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
+ }, Ir = {
99
+ consumer_groups: wr
100
100
  };
101
- function wr() {
102
- const e = It("en-us", _r);
101
+ function Ar() {
102
+ const e = It("en-us", Ir);
103
103
  return {
104
104
  i18n: e,
105
- i18nT: cn(e)
105
+ i18nT: gn(e)
106
106
  // Translation component <i18n-t>
107
107
  };
108
108
  }
109
109
  const ct = {
110
- useI18n: wr
110
+ useI18n: Ar
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 yn = /* @__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))(yn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Oe || {}), 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: Cr.create({
147
147
  withCredentials: !0,
148
148
  timeout: 3e4,
149
149
  ...e
150
150
  })
151
151
  };
152
152
  }
153
- function Ir() {
153
+ function Sr() {
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", xr = {
166
166
  pageSize: 30,
167
167
  sortColumnKey: void 0,
168
168
  sortColumnOrder: void 0
169
169
  };
170
- function Sr() {
170
+ function Tr() {
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 || xr;
195
195
  },
196
196
  deleteAllTablePreferences: () => {
197
197
  localStorage.removeItem(ft);
198
198
  }
199
199
  };
200
200
  }
201
- const xr = {
201
+ const $r = {
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
+ }, Mr = {
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
+ }, Er = {
212
212
  actions: {
213
213
  save: "Save",
214
214
  cancel: "Cancel",
@@ -223,7 +223,7 @@ const xr = {
223
223
  noSearchResultsMessage: "Please adjust the criteria and try again.",
224
224
  noSearchResultsCtaText: "Clear"
225
225
  }
226
- }, Mr = {
226
+ }, Or = {
227
227
  title: "Configuration",
228
228
  actions: {
229
229
  copy: "Copy JSON"
@@ -258,7 +258,7 @@ const xr = {
258
258
  entryTitle: "Entry {index}",
259
259
  structuredFormat: "Structured"
260
260
  }
261
- }, Or = {
261
+ }, Nr = {
262
262
  filterButtonText: "Filter",
263
263
  fieldLabel: "Filter by:",
264
264
  inputPlaceholder: "Enter a value",
@@ -266,7 +266,7 @@ const xr = {
266
266
  applyButtonText: "Apply",
267
267
  clearButtonText: "Clear",
268
268
  clearAllButtonText: "Clear all filters"
269
- }, Er = {
269
+ }, Fr = {
270
270
  errors: {
271
271
  fetch: "Could not fetch available items",
272
272
  invalid: "Please select a valid value"
@@ -274,7 +274,7 @@ const xr = {
274
274
  }, Kr = {
275
275
  unexpected: "An unexpected error has occurred",
276
276
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
277
- }, Fr = {
277
+ }, Br = {
278
278
  enable: {
279
279
  title: "Enable {entityType}",
280
280
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -285,132 +285,105 @@ 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,
288
+ }, Pr = {
289
+ global: $r,
290
+ deleteModal: Mr,
291
+ baseForm: Er,
292
292
  baseTable: jr,
293
- baseConfigCard: Mr,
294
- filter: Or,
295
- debouncedFilter: Er,
293
+ baseConfigCard: Or,
294
+ filter: Nr,
295
+ debouncedFilter: Fr,
296
296
  errors: Kr,
297
- toggleModal: Fr
297
+ toggleModal: Br
298
298
  };
299
299
  function St() {
300
- const e = It("en-us", Nr);
300
+ const e = It("en-us", Pr);
301
301
  return {
302
302
  i18n: e,
303
- i18nT: cn(e)
303
+ i18nT: gn(e)
304
304
  // Translation component <i18n-t>
305
305
  };
306
306
  }
307
- function pn() {
308
- const e = (t, r) => (r == null ? void 0 : r[t]) ?? void 0, n = (t, r) => {
309
- if (t.length !== r.length)
310
- return !1;
311
- const o = /* @__PURE__ */ new Set([...t, ...r]);
312
- for (const a of o) {
313
- const i = t.filter((l) => l === a).length, s = r.filter((l) => l === a).length;
314
- if (i !== s)
315
- return !1;
316
- }
317
- return !0;
318
- };
307
+ function hn() {
319
308
  return {
320
- getPropValue: e,
321
- objectsAreEqual: (t, r, o) => {
322
- if (o) {
323
- if (Object.keys(t).length === Object.keys(r).length)
324
- for (const a in t)
325
- if (Array.isArray(t[a]) && Array.isArray(r[a])) {
326
- if (n(t[a], r[a]))
327
- continue;
328
- return !1;
329
- } else {
330
- if (t[a] === r[a])
331
- continue;
332
- return !1;
333
- }
334
- else
335
- return !1;
336
- return !0;
337
- }
309
+ getPropValue: (e, n) => (n == null ? void 0 : n[e]) ?? void 0,
310
+ objectsAreEqual: (e, n) => {
338
311
  try {
339
- return JSON.stringify(t) === JSON.stringify(r);
312
+ return JSON.stringify(e) === JSON.stringify(n);
340
313
  } catch {
341
314
  return !1;
342
315
  }
343
316
  },
344
- sortAlpha: (t) => (r, o) => {
345
- let a = r[t] === void 0 || r[t] === null ? "" : r[t], i = o[t] === void 0 || o[t] === null ? "" : o[t];
346
- return Array.isArray(r[t]) && (a = r[t][0]), Array.isArray(o[t]) && (i = o[t][0]), a.localeCompare(i);
317
+ sortAlpha: (e) => (n, t) => {
318
+ let r = n[e] === void 0 || n[e] === null ? "" : n[e], o = t[e] === void 0 || t[e] === null ? "" : t[e];
319
+ return Array.isArray(n[e]) && (r = n[e][0]), Array.isArray(t[e]) && (o = t[e][0]), r.localeCompare(o);
347
320
  },
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
321
+ isValidUuid: (e) => e ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(e) : !1
349
322
  };
350
323
  }
351
- function Br(e, n, t, r = {
324
+ function Lr(e, n, t, r = {
352
325
  fetchedItemsKey: "data",
353
326
  searchKeys: ["id"]
354
327
  }) {
355
328
  t || (t = "100");
356
329
  const { axiosInstance: o } = At({
357
330
  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);
331
+ }), { i18n: { t: a } } = St(), { debounce: i } = Sr(), s = i(async (A) => {
332
+ await C(A);
333
+ }, 200), l = O(!1), c = O(""), d = O(""), u = O([]), g = O([]), f = O(void 0), I = y(n);
361
334
  let v = `${e.apiBaseUrl}${I}`;
362
335
  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 () => {
336
+ const { isValidUuid: p } = hn(), S = async () => {
364
337
  try {
365
338
  l.value = !0;
366
339
  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;
340
+ A != null && A.next || (f.value = r.fetchedItemsKey in A ? A[r.fetchedItemsKey] : []), g.value = r.fetchedItemsKey in A ? A[r.fetchedItemsKey] : [], u.value = g.value;
368
341
  } catch {
369
342
  u.value = [], c.value = a("debouncedFilter.errors.fetch");
370
343
  } finally {
371
344
  l.value = !1;
372
345
  }
373
- }, b = E(""), k = async (A) => {
374
- var ne, pe, z;
346
+ }, b = O(""), C = async (A) => {
347
+ var ne, pe, H;
375
348
  if (b.value !== A)
376
349
  if (b.value = A || "", f.value === void 0)
377
350
  try {
378
351
  if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
379
352
  let w = v + "";
380
353
  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 = [];
354
+ const { data: K } = await o.get(`${w}?size=${t}`);
355
+ r.fetchedItemsKey in K ? u.value = K[r.fetchedItemsKey] : K != null && K.id ? u.value = [K] : u.value = [];
383
356
  } else if (A) {
384
357
  const w = [];
385
358
  p(A) && r.searchKeys.includes("id") ? w.push((async () => {
386
- const { data: C } = await o.get(`${v}/${A}`);
387
- return [C[r.fetchedItemsKey] ?? C];
359
+ const { data: k } = await o.get(`${v}/${A}`);
360
+ return [k[r.fetchedItemsKey] ?? k];
388
361
  })()) : w.push(
389
- ...r.searchKeys.filter((C) => C !== "id").map(async (C) => {
390
- const { data: x } = await o.get(`${v}?${C}=${A}`);
362
+ ...r.searchKeys.filter((k) => k !== "id").map(async (k) => {
363
+ const { data: x } = await o.get(`${v}?${k}=${A}`);
391
364
  return x[r.fetchedItemsKey];
392
365
  })
393
366
  );
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) => {
367
+ const K = await Promise.all(w), B = /* @__PURE__ */ new Set();
368
+ u.value = [], (ne = K == null ? void 0 : K.forEach) == null || ne.call(K, (k) => {
396
369
  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));
370
+ (x = k == null ? void 0 : k.forEach) == null || x.call(k, (M) => {
371
+ B.has(M.id) || (B.add(M.id), u.value.push(M));
399
372
  });
400
373
  });
401
374
  } else
402
- u.value = m.value;
375
+ u.value = g.value;
403
376
  } catch (w) {
404
377
  ((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"));
405
378
  } finally {
406
379
  l.value = !1;
407
380
  }
408
381
  else
409
- l.value = !0, d.value = "", A ? (u.value = (z = f.value) == null ? void 0 : z.filter((w) => {
410
- var N;
382
+ l.value = !0, d.value = "", A ? (u.value = (H = f.value) == null ? void 0 : H.filter((w) => {
383
+ var K;
411
384
  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];
385
+ for (const k of r.searchKeys) {
386
+ const x = typeof w[k] == "string" ? (K = w[k]) == null ? void 0 : K.toLowerCase() : w[k];
414
387
  x != null && x.includes(A.toLowerCase()) && (B = !0);
415
388
  }
416
389
  return B;
@@ -426,13 +399,13 @@ function Br(e, n, t, r = {
426
399
  debouncedQueryChange: s
427
400
  };
428
401
  }
429
- function Pr(e, n) {
430
- const t = y(n), r = j(
402
+ function qr(e, n) {
403
+ const t = y(n), r = T(
431
404
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
432
405
  );
433
406
  return r.value.search = "", (o) => `${r.value.href}/${o}`;
434
407
  }
435
- function Lr() {
408
+ function Ur() {
436
409
  const { i18n: { t: e } } = St();
437
410
  return {
438
411
  getMessageFromError: (n) => {
@@ -460,7 +433,7 @@ function Lr() {
460
433
  }
461
434
  };
462
435
  }
463
- function qr(e) {
436
+ function Vr(e) {
464
437
  const n = window.location.origin, t = n.endsWith("/") ? n : `${n}/`;
465
438
  try {
466
439
  const r = e.join("/"), o = `${t}${r}`, a = e.some((i) => i.trim() === "");
@@ -471,17 +444,17 @@ function qr(e) {
471
444
  return console.warn("Failed to build valid URL:", r), "";
472
445
  }
473
446
  }
474
- function fn(e, n) {
475
- const t = E(y(e)), r = E(y(n)), o = j(
447
+ function vn(e, n) {
448
+ const t = O(y(e)), r = O(y(n)), o = T(
476
449
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
477
- ), a = j(
450
+ ), a = T(
478
451
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
479
452
  );
480
453
  return (i) => {
481
- const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: m } = i;
454
+ const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: g } = i;
482
455
  try {
483
456
  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) => {
457
+ return o.value && g ? (f.search = "", f = new URL(`${f.href}/${g}/`)) : (o.value || new URLSearchParams(g).forEach((I, v) => {
485
458
  f.searchParams.append(v, I);
486
459
  }), 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
460
  } catch (f) {
@@ -489,19 +462,19 @@ function fn(e, n) {
489
462
  }
490
463
  };
491
464
  }
492
- function Ur(e, n, t = "data") {
465
+ function Rr(e, n, t = "data") {
493
466
  const r = y(n), { axiosInstance: o } = At({
494
467
  headers: e.requestHeaders
495
- }), a = fn(e, r), i = E({
496
- status: Ee.Idle
468
+ }), a = vn(e, r), i = O({
469
+ status: Oe.Idle
497
470
  });
498
471
  return { fetcher: async (s) => {
499
472
  try {
500
- i.value = { status: Ee.Loading };
473
+ i.value = { status: Oe.Loading };
501
474
  const l = a(s), { data: c } = await o.get(l), d = t && t.replace(/[^\w-_]/gi, "");
502
475
  let u;
503
476
  c[d] && Array.isArray(c[d]) ? u = c[d] : u = Object.keys(c).length ? [c] : [];
504
- const m = {
477
+ const g = {
505
478
  data: u,
506
479
  total: u.length,
507
480
  ...c.offset ? {
@@ -511,98 +484,96 @@ function Ur(e, n, t = "data") {
511
484
  } : null
512
485
  };
513
486
  return i.value = {
514
- status: Ee.Idle,
515
- response: m
516
- }, m;
487
+ status: Oe.Idle,
488
+ response: g
489
+ }, g;
517
490
  } catch (l) {
518
491
  const c = {
519
492
  data: [],
520
493
  total: 0
521
494
  };
522
495
  return s.query && l.response.status === 404 ? (i.value = {
523
- status: Ee.NoResults,
496
+ status: Oe.NoResults,
524
497
  response: c,
525
498
  error: l
526
499
  }, c) : (i.value = {
527
- status: Ee.Error,
500
+ status: Oe.Error,
528
501
  response: c,
529
502
  error: l
530
503
  }, c);
531
504
  }
532
505
  }, fetcherState: i };
533
506
  }
534
- function Rr() {
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;
507
+ function Dr() {
536
508
  return {
537
- capitalize: (t) => t ? t.replace(n, (r) => r.toUpperCase()) : "",
538
- convertKeyToTitle: e
509
+ convertKeyToTitle: (e, n = "_") => e ? e.split(n).map((t) => t.toLowerCase() === "id" ? t.toUpperCase() : t.charAt(0).toUpperCase() + t.substring(1)).join(" ") : ""
539
510
  };
540
511
  }
541
- const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Lt = (e) => {
512
+ const bn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Lt = (e) => {
542
513
  if (typeof e != "string")
543
514
  throw new TypeError("Invalid argument expected string");
544
- const n = e.match(mn);
515
+ const n = e.match(bn);
545
516
  if (!n)
546
517
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
547
518
  return n.shift(), n;
548
519
  }, qt = (e) => e === "*" || e === "x" || e === "X", Ut = (e) => {
549
520
  const n = parseInt(e, 10);
550
521
  return isNaN(n) ? e : n;
551
- }, Vr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Dr = (e, n) => {
522
+ }, Gr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Hr = (e, n) => {
552
523
  if (qt(e) || qt(n))
553
524
  return 0;
554
- const [t, r] = Vr(Ut(e), Ut(n));
525
+ const [t, r] = Gr(Ut(e), Ut(n));
555
526
  return t > r ? 1 : t < r ? -1 : 0;
556
- }, Rt = (e, n) => {
527
+ }, Vt = (e, n) => {
557
528
  for (let t = 0; t < Math.max(e.length, n.length); t++) {
558
- const r = Dr(e[t] || "0", n[t] || "0");
529
+ const r = Hr(e[t] || "0", n[t] || "0");
559
530
  if (r !== 0)
560
531
  return r;
561
532
  }
562
533
  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 = {
534
+ }, zr = (e, n) => {
535
+ const t = Lt(e), r = Lt(n), o = t.pop(), a = r.pop(), i = Vt(t, r);
536
+ return i !== 0 ? i : o && a ? Vt(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
537
+ }, Rt = (e, n, t) => {
538
+ Jr(t);
539
+ const r = zr(e, n);
540
+ return Cn[t].includes(r);
541
+ }, Cn = {
571
542
  ">": [1],
572
543
  ">=": [0, 1],
573
544
  "=": [0],
574
545
  "<=": [-1, 0],
575
546
  "<": [-1],
576
547
  "!=": [-1, 1]
577
- }, Dt = Object.keys(gn), zr = (e) => {
548
+ }, Dt = Object.keys(Cn), Jr = (e) => {
578
549
  if (typeof e != "string")
579
550
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
580
551
  if (Dt.indexOf(e) === -1)
581
552
  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) {
553
+ }, Yr = (e) => typeof e == "string" && /^[v\d]/.test(e) && bn.test(e);
554
+ function Wr(e) {
584
555
  const { gatewayInfo: n, supportedRange: t } = e;
585
556
  if (!n)
586
557
  return !0;
587
558
  const { edition: r, version: o } = n;
588
- if (!Hr(o))
559
+ if (!Yr(o))
589
560
  return console.error("Invalid version"), !1;
590
561
  const a = t[r];
591
562
  if (!a)
592
563
  return !1;
593
564
  const [i, s] = a;
594
- return !(i && Vt(o, i, "<") || s && Vt(o, s, ">"));
565
+ return !(i && Rt(o, i, "<") || s && Rt(o, s, ">"));
595
566
  }
596
- function Wr(e) {
597
- const n = E(0), t = E(0), r = E(!1);
567
+ function Zr(e) {
568
+ const n = O(0), t = O(0), r = O(!1);
598
569
  return xe(e, (o) => {
599
570
  o && !r.value && (n.value = o.offsetWidth, t.value = o.scrollWidth, r.value = !0);
600
571
  }), {
601
- isTruncated: j(() => n.value < t.value)
572
+ isTruncated: T(() => n.value < t.value)
602
573
  };
603
574
  }
604
- const Yr = new br();
605
- function Zr() {
575
+ const Qr = new kr();
576
+ function Xr() {
606
577
  return {
607
578
  notify: async (e) => {
608
579
  const n = {
@@ -610,7 +581,7 @@ function Zr() {
610
581
  message: "Success",
611
582
  timeoutMilliseconds: 3e3
612
583
  };
613
- Yr.open({
584
+ Qr.open({
614
585
  ...n,
615
586
  ...e
616
587
  });
@@ -619,28 +590,132 @@ function Zr() {
619
590
  }
620
591
  const ue = {
621
592
  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,
593
+ useDebouncedFilter: Lr,
594
+ useDeleteUrlBuilder: qr,
595
+ useErrors: Ur,
596
+ useExternalLinkCreator: Vr,
597
+ useFetcher: Rr,
598
+ useFetchUrlBuilder: vn,
599
+ useHelpers: hn,
600
+ useStringHelpers: Dr,
630
601
  useI18n: St,
631
- useGatewayFeatureSupported: Jr,
632
- useTruncationDetector: Wr,
633
- useToaster: Zr
634
- }, Qr = {
602
+ useGatewayFeatureSupported: Wr,
603
+ useTruncationDetector: Zr,
604
+ useToaster: Xr
605
+ }, eo = {
635
606
  fail: "Failed to copy id to clipboard",
636
607
  success: {
637
608
  prefix: "Successfully",
638
609
  content: " copied to clipboard"
639
610
  }
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({
611
+ }, to = "Copy to clipboard", no = {
612
+ message: eo,
613
+ iconTitle: to
614
+ }, ro = "kong-ui-copy-uuid-notify", Gt = "24px", oo = (e, n) => {
615
+ const t = e.__vccOpts || e;
616
+ for (const [r, o] of n)
617
+ t[r] = o;
618
+ return t;
619
+ }, ao = (e) => (fn("data-v-9971cc79"), e = e(), mn(), e), io = ["aria-hidden"], so = {
620
+ key: 0,
621
+ "data-testid": "kui-icon-svg-title"
622
+ }, lo = /* @__PURE__ */ ao(() => /* @__PURE__ */ V("path", {
623
+ d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
624
+ fill: "currentColor"
625
+ }, null, -1)), uo = /* @__PURE__ */ re({
626
+ __name: "CopyIcon",
627
+ props: {
628
+ /** The accessibility text provided to screen readers */
629
+ title: {
630
+ type: String,
631
+ required: !1,
632
+ default: ""
633
+ },
634
+ /** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
635
+ color: {
636
+ type: String,
637
+ required: !1,
638
+ default: "currentColor"
639
+ },
640
+ /** The CSS display property for the icon. Defaults to `block` */
641
+ display: {
642
+ type: String,
643
+ required: !1,
644
+ default: "block"
645
+ },
646
+ /** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
647
+ decorative: {
648
+ type: Boolean,
649
+ required: !1,
650
+ default: !1
651
+ },
652
+ /** The icon size */
653
+ size: {
654
+ type: [Number, String],
655
+ required: !1,
656
+ default: Gt,
657
+ // if setting to the imported const fails, just pass a number of 24 as the default.
658
+ validator: (e) => {
659
+ if (typeof e == "number" && e > 0)
660
+ return !0;
661
+ if (typeof e == "string") {
662
+ const n = String(e).replace(/px/gi, ""), t = Number(n);
663
+ if (t && !isNaN(t) && Number.isInteger(t) && t > 0)
664
+ return !0;
665
+ }
666
+ return !1;
667
+ }
668
+ },
669
+ /** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
670
+ as: {
671
+ type: String,
672
+ required: !1,
673
+ default: "span"
674
+ }
675
+ },
676
+ setup(e) {
677
+ const n = e, t = T(() => {
678
+ if (typeof n.size == "number" && n.size > 0)
679
+ return `${n.size}px`;
680
+ if (typeof n.size == "string") {
681
+ const o = String(n.size).replace(/px/gi, ""), a = Number(o);
682
+ if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
683
+ return `${a}px`;
684
+ }
685
+ return Gt;
686
+ }), r = T(() => ({
687
+ boxSizing: "border-box",
688
+ color: n.color,
689
+ display: n.display,
690
+ height: t.value,
691
+ lineHeight: "0",
692
+ width: t.value
693
+ }));
694
+ return (o, a) => (m(), R(Ve(e.as), {
695
+ "aria-hidden": e.decorative ? "true" : void 0,
696
+ class: "kui-icon copy-icon",
697
+ "data-testid": "kui-icon-wrapper-copy-icon",
698
+ style: pn(r.value)
699
+ }, {
700
+ default: h(() => [
701
+ (m(), $("svg", {
702
+ "aria-hidden": e.decorative ? "true" : void 0,
703
+ "data-testid": "kui-icon-svg-copy-icon",
704
+ fill: "none",
705
+ height: "100%",
706
+ role: "img",
707
+ viewBox: "0 0 24 24",
708
+ width: "100%",
709
+ xmlns: "http://www.w3.org/2000/svg"
710
+ }, [
711
+ e.title ? (m(), $("title", so, N(e.title), 1)) : G("", !0),
712
+ lo
713
+ ], 8, io))
714
+ ]),
715
+ _: 1
716
+ }, 8, ["aria-hidden", "style"]));
717
+ }
718
+ }), co = /* @__PURE__ */ oo(uo, [["__scopeId", "data-v-9971cc79"]]), po = "16px", fo = { class: "kong-ui-copy-uuid" }, mo = ["onClick"], Ht = 15, go = /* @__PURE__ */ re({
644
719
  __name: "CopyUuid",
645
720
  props: {
646
721
  uuid: {
@@ -684,74 +759,73 @@ const ue = {
684
759
  },
685
760
  emits: ["success", "error"],
686
761
  setup(e, { emit: n }) {
687
- const t = e, { t: r } = It("en-us", eo), o = t.notify || gr(to, () => {
688
- }), a = j(() => t.idTooltip ? {
762
+ const t = e, { t: r } = It("en-us", no), o = t.notify || br(ro, () => {
763
+ }), a = T(() => t.idTooltip ? {
689
764
  label: t.idTooltip,
690
765
  positionFixed: !0,
691
766
  placement: "bottomStart"
692
767
  } : {
693
768
  title: t.uuid
694
- }), i = j(() => !!(t.tooltip && t.successTooltip)), s = E(t.tooltip), l = j(() => t.tooltip ? {
769
+ }), i = T(() => !!(t.tooltip && t.successTooltip)), s = O(t.tooltip), l = T(() => t.tooltip ? {
695
770
  label: s.value,
696
771
  positionFixed: !0,
697
772
  maxWidth: "500px",
698
773
  placement: "bottomStart"
699
- } : {}), c = j(() => {
700
- var m;
701
- return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(m = t.uuid) == null ? void 0 : m.substring(0, 5)}` : t.uuid;
702
- }), d = (m) => {
703
- s.value = m, setTimeout(() => {
774
+ } : {}), c = T(() => {
775
+ var g;
776
+ return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(g = t.uuid) == null ? void 0 : g.substring(0, 5)}` : t.uuid;
777
+ }), d = (g) => {
778
+ s.value = g, setTimeout(() => {
704
779
  s.value = t.tooltip;
705
780
  }, 1800);
706
- }, u = (m) => {
781
+ }, u = (g) => {
707
782
  var f, I;
708
- if (!m(t.uuid)) {
783
+ if (!g(t.uuid)) {
709
784
  typeof o == "function" && o({
710
785
  type: "error",
711
786
  message: r("message.fail")
712
787
  }), i.value ? d(r("message.fail")) : n("error", t.uuid);
713
788
  return;
714
789
  }
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 ? "..." : "")}"`;
790
+ const v = ((f = t.uuid) == null ? void 0 : f.length) > Ht, p = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${((I = t.uuid) == null ? void 0 : I.substring(0, Ht)) + (v ? "..." : "")}"`;
716
791
  typeof o == "function" && o({
717
792
  type: "success",
718
793
  message: `${p}${r("message.success.content")}`
719
794
  }), i.value ? d(t.successTooltip) : n("success", t.uuid);
720
795
  };
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" }), {
796
+ return (g, f) => {
797
+ const I = q("KClipboardProvider");
798
+ return m(), $("div", fo, [
799
+ e.format !== "hidden" ? (m(), R(Ve(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
725
800
  default: h(() => [
726
- R("div", {
801
+ V("div", {
727
802
  class: Fe([
728
803
  "uuid-container",
729
804
  e.truncated ? "truncated-uuid" : null,
730
805
  e.useMono ? "mono" : null
731
806
  ])
732
- }, K(c.value), 3)
807
+ }, N(c.value), 3)
733
808
  ]),
734
809
  _: 1
735
810
  }, 16)) : G("", !0),
736
- (g(), V(He(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
811
+ (m(), R(Ve(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
737
812
  default: h(() => [
738
- F(v, null, {
739
- default: h(({ copyToClipboard: p }) => [
740
- R("span", {
813
+ F(I, null, {
814
+ default: h(({ copyToClipboard: v }) => [
815
+ V("span", {
741
816
  "data-testid": "copy-to-clipboard",
742
817
  role: "button",
743
818
  tabindex: "0",
744
- onClick: rt((S) => u(p), ["stop"])
819
+ onClick: rt((p) => u(v), ["stop"])
745
820
  }, [
746
- F(I, {
821
+ F(y(co), {
747
822
  class: "uuid-icon",
748
823
  color: e.iconColor,
749
- "hide-title": !!e.tooltip || void 0,
750
- icon: "copy",
751
- size: "16",
824
+ decorative: !!e.tooltip,
825
+ size: y(po),
752
826
  title: y(r)("iconTitle")
753
- }, null, 8, ["color", "hide-title", "title"])
754
- ], 8, ro)
827
+ }, null, 8, ["color", "decorative", "size", "title"])
828
+ ], 8, mo)
755
829
  ]),
756
830
  _: 1
757
831
  })
@@ -761,15 +835,15 @@ const ue = {
761
835
  ]);
762
836
  };
763
837
  }
764
- }), ao = (e, n) => {
838
+ }), yo = (e, n) => {
765
839
  const t = e.__vccOpts || e;
766
840
  for (const [r, o] of n)
767
841
  t[r] = o;
768
842
  return t;
769
- }, yn = /* @__PURE__ */ ao(oo, [["__scopeId", "data-v-a2ebe0bb"]]), io = {
843
+ }, kn = /* @__PURE__ */ yo(go, [["__scopeId", "data-v-0c07874b"]]), ho = {
770
844
  key: 0,
771
845
  class: "config-card-fieldset-title"
772
- }, so = /* @__PURE__ */ ae({
846
+ }, vo = /* @__PURE__ */ re({
773
847
  __name: "JsonCardItem",
774
848
  props: {
775
849
  item: {
@@ -786,21 +860,21 @@ const ue = {
786
860
  }
787
861
  },
788
862
  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(() => {
863
+ 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
864
  const l = JSON.parse(JSON.stringify(a.value));
791
865
  return n.isArrayItem && delete l.name, l;
792
- }), s = j(() => {
866
+ }), s = T(() => {
793
867
  var l;
794
868
  return n.isArrayItem ? (l = a.value) != null && l.name ? r(a.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
795
869
  });
796
- return (l, c) => (g(), V(He(e.isArrayItem ? "fieldset" : "div"), {
870
+ return (l, c) => (m(), R(Ve(e.isArrayItem ? "fieldset" : "div"), {
797
871
  class: Fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
798
872
  }, {
799
873
  default: h(() => [
800
- e.isArrayItem ? (g(), M("legend", io, [
801
- R("b", null, K(s.value), 1)
874
+ e.isArrayItem ? (m(), $("legend", ho, [
875
+ V("b", null, N(s.value), 1)
802
876
  ])) : G("", !0),
803
- (g(!0), M(ve, null, ye(Object.keys(i.value), (d, u) => (g(), V(xt, {
877
+ (m(!0), $(ve, null, ye(Object.keys(i.value), (d, u) => (m(), R(xt, {
804
878
  key: `${o.value}-property-${u}`,
805
879
  item: {
806
880
  key: d,
@@ -812,12 +886,12 @@ const ue = {
812
886
  _: 1
813
887
  }, 8, ["class"]));
814
888
  }
815
- }), Ce = (e, n) => {
889
+ }), ke = (e, n) => {
816
890
  const t = e.__vccOpts || e;
817
891
  for (const [r, o] of n)
818
892
  t[r] = o;
819
893
  return t;
820
- }, hn = /* @__PURE__ */ Ce(so, [["__scopeId", "data-v-68ca83ec"]]), lo = /* @__PURE__ */ ae({
894
+ }, _n = /* @__PURE__ */ ke(vo, [["__scopeId", "data-v-68ca83ec"]]), bo = /* @__PURE__ */ re({
821
895
  __name: "InternalLinkItem",
822
896
  props: {
823
897
  item: {
@@ -830,21 +904,21 @@ const ue = {
830
904
  const { i18n: { t: n } } = ue.useI18n();
831
905
  return (t, r) => {
832
906
  const o = q("KButton");
833
- return g(), M("div", null, [
907
+ return m(), $("div", null, [
834
908
  F(o, {
835
- appearance: "btn-link",
909
+ appearance: "tertiary",
836
910
  class: "navigation-button",
837
911
  onClick: r[0] || (r[0] = (a) => t.$emit("navigation-click", e.item))
838
912
  }, {
839
913
  default: h(() => [
840
- Z(K(e.item.value || y(n)("baseConfigCard.commonFields.link")), 1)
914
+ Z(N(e.item.value || y(n)("baseConfigCard.commonFields.link")), 1)
841
915
  ]),
842
916
  _: 1
843
917
  })
844
918
  ]);
845
919
  };
846
920
  }
847
- }), uo = /* @__PURE__ */ Ce(lo, [["__scopeId", "data-v-7410504d"]]), co = /* @__PURE__ */ ae({
921
+ }), Co = /* @__PURE__ */ ke(bo, [["__scopeId", "data-v-c96811e5"]]), ko = /* @__PURE__ */ re({
848
922
  __name: "StatusBadge",
849
923
  props: {
850
924
  status: {
@@ -856,21 +930,21 @@ const ue = {
856
930
  const { i18n: { t: n } } = ue.useI18n();
857
931
  return (t, r) => {
858
932
  const o = q("KBadge");
859
- return g(), V(o, {
933
+ return m(), R(o, {
860
934
  appearance: e.status ? "success" : "neutral"
861
935
  }, {
862
936
  default: h(() => [
863
- Z(K(e.status ? y(n)("baseConfigCard.statusBadge.enabledLabel") : y(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
937
+ Z(N(e.status ? y(n)("baseConfigCard.statusBadge.enabledLabel") : y(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
864
938
  ]),
865
939
  _: 1
866
940
  }, 8, ["appearance"]);
867
941
  };
868
942
  }
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 = {
943
+ }), _o = "#0044f4", wo = "#e0e4ea", Io = "#3a3f51", Ao = "1px", So = "20px", xo = { class: "config-card-details-row" }, To = ["data-testid"], $o = ["data-testid"], Mo = ["data-testid"], Eo = ["data-testid"], jo = { key: 1 }, Oo = ["data-testid"], No = ["data-testid"], Fo = ["data-testid"], Ko = ["data-testid"], Bo = {
870
944
  name: "ConfigCardItem",
871
- components: { CopyUuid: yn, JsonCardItem: hn, StatusBadge: co, InternalLinkItem: uo }
872
- }, To = /* @__PURE__ */ ae({
873
- ...xo,
945
+ components: { CopyUuid: kn, JsonCardItem: _n, StatusBadge: ko, InternalLinkItem: Co }
946
+ }, Po = /* @__PURE__ */ re({
947
+ ...Bo,
874
948
  props: {
875
949
  item: {
876
950
  type: Object,
@@ -890,13 +964,13 @@ const ue = {
890
964
  emits: ["navigation-click"],
891
965
  setup(e, { emit: n }) {
892
966
  const t = e;
893
- ur((f) => ({
894
- "1df60db4": c.value ? "none" : `solid ${y(go)} ${y(fo)}`,
967
+ mr((f) => ({
968
+ "1df60db4": c.value ? "none" : `solid ${y(Ao)} ${y(wo)}`,
895
969
  "21d1d34e": l.value && i.value ? "block" : "flex",
896
970
  "4d3dc7e7": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
897
971
  "4d400dc2": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
898
972
  }));
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(() => {
973
+ 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
974
  switch (t.item.type) {
901
975
  case te.ID:
902
976
  return {
@@ -1022,175 +1096,175 @@ const ue = {
1022
1096
  text: t.item.value
1023
1097
  };
1024
1098
  }
1025
- }), u = E(), { isTruncated: m } = ue.useTruncationDetector(u);
1099
+ }), u = O(), { isTruncated: g } = ue.useTruncationDetector(u);
1026
1100
  return (f, I) => {
1027
1101
  const v = q("KLabel"), p = q("KBadge"), S = q("KMethodBadge"), b = q("KTooltip");
1028
- return g(), M("div", ho, [
1029
- R("div", {
1102
+ return m(), $("div", xo, [
1103
+ V("div", {
1030
1104
  class: "config-card-details-label",
1031
1105
  "data-testid": `${e.item.key}-label`
1032
1106
  }, [
1033
- Y(f.$slots, "label", { item: e.item }, () => [
1107
+ W(f.$slots, "label", { item: e.item }, () => [
1034
1108
  F(v, { "tooltip-attributes": { maxWidth: "500px" } }, Te({
1035
1109
  default: h(() => [
1036
- Z(K(e.item.label) + " ", 1)
1110
+ Z(N(e.item.label) + " ", 1)
1037
1111
  ]),
1038
1112
  _: 2
1039
1113
  }, [
1040
1114
  s.value ? {
1041
1115
  name: "tooltip",
1042
1116
  fn: h(() => [
1043
- R("div", {
1117
+ V("div", {
1044
1118
  "data-testid": `${e.item.key}-label-tooltip`
1045
1119
  }, [
1046
- Y(f.$slots, "label-tooltip", {}, () => [
1047
- Z(K(e.item.tooltip), 1)
1120
+ W(f.$slots, "label-tooltip", {}, () => [
1121
+ Z(N(e.item.tooltip), 1)
1048
1122
  ], !0)
1049
- ], 8, bo)
1123
+ ], 8, $o)
1050
1124
  ]),
1051
1125
  key: "0"
1052
1126
  } : void 0
1053
1127
  ]), 1024)
1054
1128
  ], !0)
1055
- ], 8, vo),
1056
- R("div", {
1129
+ ], 8, To),
1130
+ V("div", {
1057
1131
  class: "config-card-details-value",
1058
1132
  "data-testid": `${e.item.key}-property-value`
1059
1133
  }, [
1060
- Y(f.$slots, e.item.key, {
1134
+ W(f.$slots, e.item.key, {
1061
1135
  rowValue: e.item.value
1062
1136
  }, () => [
1063
- i.value ? (g(), M("div", _o, [
1064
- (g(), V(He(d.value.tag), cr(dr(d.value.attrs)), {
1137
+ i.value ? (m(), $("div", jo, [
1138
+ (m(), R(Ve(d.value.tag), gr(yr(d.value.attrs)), {
1065
1139
  default: h(() => [
1066
- d.value.additionalComponent === "KBadge" ? (g(), M("div", {
1140
+ d.value.additionalComponent === "KBadge" ? (m(), $("div", {
1067
1141
  key: 0,
1068
1142
  "data-testid": `${e.item.key}-badge-tags`
1069
1143
  }, [
1070
- (g(!0), M(ve, null, ye(e.item.value, (k, A) => (g(), V(p, {
1144
+ (m(!0), $(ve, null, ye(e.item.value, (C, A) => (m(), R(p, {
1071
1145
  key: `${e.item.key}-badge-tag-${A}`,
1072
1146
  class: "config-badge",
1073
1147
  "data-testid": `${e.item.key}-badge-tag-${A}`,
1074
- "truncation-tooltip": k
1148
+ "truncation-tooltip": C
1075
1149
  }, {
1076
1150
  default: h(() => [
1077
- Z(K(k), 1)
1151
+ Z(N(C), 1)
1078
1152
  ]),
1079
1153
  _: 2
1080
1154
  }, 1032, ["data-testid", "truncation-tooltip"]))), 128))
1081
- ], 8, wo)) : G("", !0),
1082
- d.value.additionalComponent === "CopyUuid" ? (g(), M("div", {
1155
+ ], 8, Oo)) : G("", !0),
1156
+ d.value.additionalComponent === "CopyUuid" ? (m(), $("div", {
1083
1157
  key: 1,
1084
1158
  class: "copy-uuid-array",
1085
1159
  "data-testid": `${e.item.key}-copy-uuid-array`
1086
1160
  }, [
1087
- (g(!0), M(ve, null, ye(e.item.value, (k, A) => (g(), V(y(yn), ht(d.value.childAttrs, {
1161
+ (m(!0), $(ve, null, ye(e.item.value, (C, A) => (m(), R(y(kn), ht(d.value.childAttrs, {
1088
1162
  key: `${e.item.key}-copy-uuid-${A}`,
1089
1163
  "data-testid": `${e.item.key}-copy-uuid-${A}`,
1090
- uuid: k
1164
+ uuid: C
1091
1165
  }), null, 16, ["data-testid", "uuid"]))), 128))
1092
- ], 8, Io)) : d.value.additionalComponent === "KMethodBadge" ? (g(), M("div", {
1166
+ ], 8, No)) : d.value.additionalComponent === "KMethodBadge" ? (m(), $("div", {
1093
1167
  key: 2,
1094
1168
  class: "method-badge-array",
1095
1169
  "data-testid": `${e.item.key}-badge-methods`
1096
1170
  }, [
1097
- (g(!0), M(ve, null, ye(e.item.value, (k, A) => (g(), V(S, {
1171
+ (m(!0), $(ve, null, ye(e.item.value, (C, A) => (m(), R(S, {
1098
1172
  key: `${e.item.key}-badge-method-${A}`,
1099
1173
  class: "config-badge",
1100
1174
  "data-testid": `${e.item.key}-badge-method-${A}`,
1101
1175
  "is-rounded": "",
1102
- label: k,
1103
- method: y(kr).includes(k.toLowerCase()) ? k.toLowerCase() : "custom"
1176
+ label: C,
1177
+ method: y(_r).includes(C.toLowerCase()) ? C.toLowerCase() : "custom"
1104
1178
  }, {
1105
1179
  default: h(() => [
1106
- Z(K(k), 1)
1180
+ Z(N(C), 1)
1107
1181
  ]),
1108
1182
  _: 2
1109
1183
  }, 1032, ["data-testid", "label", "method"]))), 128))
1110
- ], 8, Ao)) : G("", !0),
1111
- d.value.additionalComponent === "JsonCardItem" ? (g(), M("div", {
1184
+ ], 8, Fo)) : G("", !0),
1185
+ d.value.additionalComponent === "JsonCardItem" ? (m(), $("div", {
1112
1186
  key: 3,
1113
1187
  "data-testid": `${t.item.key}-json-array-content`
1114
1188
  }, [
1115
- (g(!0), M(ve, null, ye(e.item.value, (k, A) => (g(), V(hn, {
1189
+ (m(!0), $(ve, null, ye(e.item.value, (C, A) => (m(), R(_n, {
1116
1190
  key: `json-array-item-${A}`,
1117
1191
  index: A,
1118
1192
  "is-array-item": "",
1119
- item: k
1193
+ item: C
1120
1194
  }, null, 8, ["index", "item"]))), 128))
1121
- ], 8, So)) : (g(), V(b, {
1195
+ ], 8, Ko)) : (m(), R(b, {
1122
1196
  key: 4,
1123
- label: y(m) ? e.item.value : ""
1197
+ label: y(g) ? e.item.value : ""
1124
1198
  }, {
1125
1199
  default: h(() => [
1126
- R("span", {
1200
+ V("span", {
1127
1201
  ref_key: "textContent",
1128
1202
  ref: u,
1129
1203
  class: Fe(["attrs-data-text", { truncated: e.truncated }])
1130
- }, K(d.value.text), 3)
1204
+ }, N(d.value.text), 3)
1131
1205
  ]),
1132
1206
  _: 1
1133
1207
  }, 8, ["label"]))
1134
1208
  ]),
1135
1209
  _: 1
1136
1210
  }, 16))
1137
- ])) : (g(), M("div", {
1211
+ ])) : (m(), $("div", {
1138
1212
  key: 0,
1139
1213
  "data-testid": `${e.item.key}-no-value`
1140
- }, " – ", 8, Co))
1214
+ }, " – ", 8, Eo))
1141
1215
  ], !0)
1142
- ], 8, ko)
1216
+ ], 8, Mo)
1143
1217
  ]);
1144
1218
  };
1145
1219
  }
1146
- }), xt = /* @__PURE__ */ Ce(To, [["__scopeId", "data-v-307ab96d"]]);
1220
+ }), xt = /* @__PURE__ */ ke(Po, [["__scopeId", "data-v-307ab96d"]]);
1147
1221
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
1148
- function vn(e) {
1222
+ function wn(e) {
1149
1223
  return typeof e > "u" || e === null;
1150
1224
  }
1151
- function $o(e) {
1225
+ function Lo(e) {
1152
1226
  return typeof e == "object" && e !== null;
1153
1227
  }
1154
- function jo(e) {
1155
- return Array.isArray(e) ? e : vn(e) ? [] : [e];
1228
+ function qo(e) {
1229
+ return Array.isArray(e) ? e : wn(e) ? [] : [e];
1156
1230
  }
1157
- function Mo(e, n) {
1231
+ function Uo(e, n) {
1158
1232
  var t, r, o, a;
1159
1233
  if (n)
1160
1234
  for (a = Object.keys(n), t = 0, r = a.length; t < r; t += 1)
1161
1235
  o = a[t], e[o] = n[o];
1162
1236
  return e;
1163
1237
  }
1164
- function Oo(e, n) {
1238
+ function Vo(e, n) {
1165
1239
  var t = "", r;
1166
1240
  for (r = 0; r < n; r += 1)
1167
1241
  t += e;
1168
1242
  return t;
1169
1243
  }
1170
- function Eo(e) {
1244
+ function Ro(e) {
1171
1245
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1172
1246
  }
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
1247
+ var Do = wn, Go = Lo, Ho = qo, zo = Vo, Jo = Ro, Yo = Uo, se = {
1248
+ isNothing: Do,
1249
+ isObject: Go,
1250
+ toArray: Ho,
1251
+ repeat: zo,
1252
+ isNegativeZero: Jo,
1253
+ extend: Yo
1180
1254
  };
1181
- function bn(e, n) {
1255
+ function In(e, n) {
1182
1256
  var t = "", r = e.reason || "(unknown reason)";
1183
1257
  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
1258
 
1185
1259
  ` + e.mark.snippet), r + " " + t) : r;
1186
1260
  }
1187
1261
  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 || "";
1262
+ Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = In(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
1189
1263
  }
1190
1264
  Je.prototype = Object.create(Error.prototype);
1191
1265
  Je.prototype.constructor = Je;
1192
1266
  Je.prototype.toString = function(e) {
1193
- return this.name + ": " + bn(this, e);
1267
+ return this.name + ": " + In(this, e);
1194
1268
  };
1195
1269
  var me = Je;
1196
1270
  function mt(e, n, t, r, o) {
@@ -1204,7 +1278,7 @@ function mt(e, n, t, r, o) {
1204
1278
  function gt(e, n) {
1205
1279
  return se.repeat(" ", n - e.length) + e;
1206
1280
  }
1207
- function qo(e, n) {
1281
+ function Wo(e, n) {
1208
1282
  if (n = Object.create(n || null), !e.buffer)
1209
1283
  return null;
1210
1284
  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);
@@ -1234,7 +1308,7 @@ function qo(e, n) {
1234
1308
  `;
1235
1309
  return s.replace(/\n$/, "");
1236
1310
  }
1237
- var Uo = qo, Ro = [
1311
+ var Zo = Wo, Qo = [
1238
1312
  "kind",
1239
1313
  "multi",
1240
1314
  "resolve",
@@ -1245,12 +1319,12 @@ var Uo = qo, Ro = [
1245
1319
  "representName",
1246
1320
  "defaultStyle",
1247
1321
  "styleAliases"
1248
- ], Vo = [
1322
+ ], Xo = [
1249
1323
  "scalar",
1250
1324
  "sequence",
1251
1325
  "mapping"
1252
1326
  ];
1253
- function Do(e) {
1327
+ function ea(e) {
1254
1328
  var n = {};
1255
1329
  return e !== null && Object.keys(e).forEach(function(t) {
1256
1330
  e[t].forEach(function(r) {
@@ -1258,18 +1332,18 @@ function Do(e) {
1258
1332
  });
1259
1333
  }), n;
1260
1334
  }
1261
- function Go(e, n) {
1335
+ function ta(e, n) {
1262
1336
  if (n = n || {}, Object.keys(n).forEach(function(t) {
1263
- if (Ro.indexOf(t) === -1)
1337
+ if (Qo.indexOf(t) === -1)
1264
1338
  throw new me('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
1265
1339
  }), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
1266
1340
  return !0;
1267
1341
  }, this.construct = n.construct || function(t) {
1268
1342
  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)
1343
+ }, 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 = ea(n.styleAliases || null), Xo.indexOf(this.kind) === -1)
1270
1344
  throw new me('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1271
1345
  }
1272
- var de = Go;
1346
+ var de = ta;
1273
1347
  function zt(e, n) {
1274
1348
  var t = [];
1275
1349
  return e[n].forEach(function(r) {
@@ -1279,7 +1353,7 @@ function zt(e, n) {
1279
1353
  }), t[o] = r;
1280
1354
  }), t;
1281
1355
  }
1282
- function zo() {
1356
+ function na() {
1283
1357
  var e = {
1284
1358
  scalar: {},
1285
1359
  sequence: {},
@@ -1324,47 +1398,47 @@ vt.prototype.extend = function(e) {
1324
1398
  throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1325
1399
  });
1326
1400
  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;
1401
+ 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 = na(r.compiledImplicit, r.compiledExplicit), r;
1328
1402
  };
1329
- var kn = vt, Cn = new de("tag:yaml.org,2002:str", {
1403
+ var An = vt, Sn = new de("tag:yaml.org,2002:str", {
1330
1404
  kind: "scalar",
1331
1405
  construct: function(e) {
1332
1406
  return e !== null ? e : "";
1333
1407
  }
1334
- }), _n = new de("tag:yaml.org,2002:seq", {
1408
+ }), xn = new de("tag:yaml.org,2002:seq", {
1335
1409
  kind: "sequence",
1336
1410
  construct: function(e) {
1337
1411
  return e !== null ? e : [];
1338
1412
  }
1339
- }), wn = new de("tag:yaml.org,2002:map", {
1413
+ }), Tn = new de("tag:yaml.org,2002:map", {
1340
1414
  kind: "mapping",
1341
1415
  construct: function(e) {
1342
1416
  return e !== null ? e : {};
1343
1417
  }
1344
- }), In = new kn({
1418
+ }), $n = new An({
1345
1419
  explicit: [
1346
- Cn,
1347
- _n,
1348
- wn
1420
+ Sn,
1421
+ xn,
1422
+ Tn
1349
1423
  ]
1350
1424
  });
1351
- function Ho(e) {
1425
+ function ra(e) {
1352
1426
  if (e === null)
1353
1427
  return !0;
1354
1428
  var n = e.length;
1355
1429
  return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
1356
1430
  }
1357
- function Jo() {
1431
+ function oa() {
1358
1432
  return null;
1359
1433
  }
1360
- function Wo(e) {
1434
+ function aa(e) {
1361
1435
  return e === null;
1362
1436
  }
1363
- var An = new de("tag:yaml.org,2002:null", {
1437
+ var Mn = new de("tag:yaml.org,2002:null", {
1364
1438
  kind: "scalar",
1365
- resolve: Ho,
1366
- construct: Jo,
1367
- predicate: Wo,
1439
+ resolve: ra,
1440
+ construct: oa,
1441
+ predicate: aa,
1368
1442
  represent: {
1369
1443
  canonical: function() {
1370
1444
  return "~";
@@ -1384,23 +1458,23 @@ var An = new de("tag:yaml.org,2002:null", {
1384
1458
  },
1385
1459
  defaultStyle: "lowercase"
1386
1460
  });
1387
- function Yo(e) {
1461
+ function ia(e) {
1388
1462
  if (e === null)
1389
1463
  return !1;
1390
1464
  var n = e.length;
1391
1465
  return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
1392
1466
  }
1393
- function Zo(e) {
1467
+ function sa(e) {
1394
1468
  return e === "true" || e === "True" || e === "TRUE";
1395
1469
  }
1396
- function Qo(e) {
1470
+ function la(e) {
1397
1471
  return Object.prototype.toString.call(e) === "[object Boolean]";
1398
1472
  }
1399
- var Sn = new de("tag:yaml.org,2002:bool", {
1473
+ var En = new de("tag:yaml.org,2002:bool", {
1400
1474
  kind: "scalar",
1401
- resolve: Yo,
1402
- construct: Zo,
1403
- predicate: Qo,
1475
+ resolve: ia,
1476
+ construct: sa,
1477
+ predicate: la,
1404
1478
  represent: {
1405
1479
  lowercase: function(e) {
1406
1480
  return e ? "true" : "false";
@@ -1414,16 +1488,16 @@ var Sn = new de("tag:yaml.org,2002:bool", {
1414
1488
  },
1415
1489
  defaultStyle: "lowercase"
1416
1490
  });
1417
- function Xo(e) {
1491
+ function ua(e) {
1418
1492
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1419
1493
  }
1420
- function ea(e) {
1494
+ function ca(e) {
1421
1495
  return 48 <= e && e <= 55;
1422
1496
  }
1423
- function ta(e) {
1497
+ function da(e) {
1424
1498
  return 48 <= e && e <= 57;
1425
1499
  }
1426
- function na(e) {
1500
+ function pa(e) {
1427
1501
  if (e === null)
1428
1502
  return !1;
1429
1503
  var n = e.length, t = 0, r = !1, o;
@@ -1444,7 +1518,7 @@ function na(e) {
1444
1518
  if (o === "x") {
1445
1519
  for (t++; t < n; t++)
1446
1520
  if (o = e[t], o !== "_") {
1447
- if (!Xo(e.charCodeAt(t)))
1521
+ if (!ua(e.charCodeAt(t)))
1448
1522
  return !1;
1449
1523
  r = !0;
1450
1524
  }
@@ -1453,7 +1527,7 @@ function na(e) {
1453
1527
  if (o === "o") {
1454
1528
  for (t++; t < n; t++)
1455
1529
  if (o = e[t], o !== "_") {
1456
- if (!ea(e.charCodeAt(t)))
1530
+ if (!ca(e.charCodeAt(t)))
1457
1531
  return !1;
1458
1532
  r = !0;
1459
1533
  }
@@ -1464,13 +1538,13 @@ function na(e) {
1464
1538
  return !1;
1465
1539
  for (; t < n; t++)
1466
1540
  if (o = e[t], o !== "_") {
1467
- if (!ta(e.charCodeAt(t)))
1541
+ if (!da(e.charCodeAt(t)))
1468
1542
  return !1;
1469
1543
  r = !0;
1470
1544
  }
1471
1545
  return !(!r || o === "_");
1472
1546
  }
1473
- function ra(e) {
1547
+ function fa(e) {
1474
1548
  var n = e, t = 1, r;
1475
1549
  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
1550
  return 0;
@@ -1484,14 +1558,14 @@ function ra(e) {
1484
1558
  }
1485
1559
  return t * parseInt(n, 10);
1486
1560
  }
1487
- function oa(e) {
1561
+ function ma(e) {
1488
1562
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !se.isNegativeZero(e);
1489
1563
  }
1490
- var xn = new de("tag:yaml.org,2002:int", {
1564
+ var jn = new de("tag:yaml.org,2002:int", {
1491
1565
  kind: "scalar",
1492
- resolve: na,
1493
- construct: ra,
1494
- predicate: oa,
1566
+ resolve: pa,
1567
+ construct: fa,
1568
+ predicate: ma,
1495
1569
  represent: {
1496
1570
  binary: function(e) {
1497
1571
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1514,21 +1588,21 @@ var xn = new de("tag:yaml.org,2002:int", {
1514
1588
  decimal: [10, "dec"],
1515
1589
  hexadecimal: [16, "hex"]
1516
1590
  }
1517
- }), aa = new RegExp(
1591
+ }), ga = new RegExp(
1518
1592
  // 2.5e4, 2.5 and integers
1519
1593
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
1520
1594
  );
1521
- function ia(e) {
1522
- return !(e === null || !aa.test(e) || // Quick hack to not allow integers end with `_`
1595
+ function ya(e) {
1596
+ return !(e === null || !ga.test(e) || // Quick hack to not allow integers end with `_`
1523
1597
  // Probably should update regexp & check speed
1524
1598
  e[e.length - 1] === "_");
1525
1599
  }
1526
- function sa(e) {
1600
+ function ha(e) {
1527
1601
  var n, t;
1528
1602
  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
1603
  }
1530
- var la = /^[-+]?[0-9]+e/;
1531
- function ua(e, n) {
1604
+ var va = /^[-+]?[0-9]+e/;
1605
+ function ba(e, n) {
1532
1606
  var t;
1533
1607
  if (isNaN(e))
1534
1608
  switch (n) {
@@ -1559,36 +1633,36 @@ function ua(e, n) {
1559
1633
  }
1560
1634
  else if (se.isNegativeZero(e))
1561
1635
  return "-0.0";
1562
- return t = e.toString(10), la.test(t) ? t.replace("e", ".e") : t;
1636
+ return t = e.toString(10), va.test(t) ? t.replace("e", ".e") : t;
1563
1637
  }
1564
- function ca(e) {
1638
+ function Ca(e) {
1565
1639
  return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || se.isNegativeZero(e));
1566
1640
  }
1567
- var Tn = new de("tag:yaml.org,2002:float", {
1641
+ var On = new de("tag:yaml.org,2002:float", {
1568
1642
  kind: "scalar",
1569
- resolve: ia,
1570
- construct: sa,
1571
- predicate: ca,
1572
- represent: ua,
1643
+ resolve: ya,
1644
+ construct: ha,
1645
+ predicate: Ca,
1646
+ represent: ba,
1573
1647
  defaultStyle: "lowercase"
1574
- }), $n = In.extend({
1648
+ }), Nn = $n.extend({
1575
1649
  implicit: [
1576
- An,
1577
- Sn,
1578
- xn,
1579
- Tn
1650
+ Mn,
1651
+ En,
1652
+ jn,
1653
+ On
1580
1654
  ]
1581
- }), jn = $n, Mn = new RegExp(
1655
+ }), Fn = Nn, Kn = new RegExp(
1582
1656
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1583
- ), On = new RegExp(
1657
+ ), Bn = new RegExp(
1584
1658
  "^([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
1659
  );
1586
- function da(e) {
1587
- return e === null ? !1 : Mn.exec(e) !== null || On.exec(e) !== null;
1660
+ function ka(e) {
1661
+ return e === null ? !1 : Kn.exec(e) !== null || Bn.exec(e) !== null;
1588
1662
  }
1589
- function pa(e) {
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)
1663
+ function _a(e) {
1664
+ var n, t, r, o, a, i, s, l = 0, c = null, d, u, g;
1665
+ if (n = Kn.exec(e), n === null && (n = Bn.exec(e)), n === null)
1592
1666
  throw new Error("Date resolve error");
1593
1667
  if (t = +n[1], r = +n[2] - 1, o = +n[3], !n[4])
1594
1668
  return new Date(Date.UTC(t, r, o));
@@ -1597,27 +1671,27 @@ function pa(e) {
1597
1671
  l += "0";
1598
1672
  l = +l;
1599
1673
  }
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;
1674
+ return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), g = new Date(Date.UTC(t, r, o, a, i, s, l)), c && g.setTime(g.getTime() - c), g;
1601
1675
  }
1602
- function fa(e) {
1676
+ function wa(e) {
1603
1677
  return e.toISOString();
1604
1678
  }
1605
- var En = new de("tag:yaml.org,2002:timestamp", {
1679
+ var Pn = new de("tag:yaml.org,2002:timestamp", {
1606
1680
  kind: "scalar",
1607
- resolve: da,
1608
- construct: pa,
1681
+ resolve: ka,
1682
+ construct: _a,
1609
1683
  instanceOf: Date,
1610
- represent: fa
1684
+ represent: wa
1611
1685
  });
1612
- function ma(e) {
1686
+ function Ia(e) {
1613
1687
  return e === "<<" || e === null;
1614
1688
  }
1615
- var Kn = new de("tag:yaml.org,2002:merge", {
1689
+ var Ln = new de("tag:yaml.org,2002:merge", {
1616
1690
  kind: "scalar",
1617
- resolve: ma
1691
+ resolve: Ia
1618
1692
  }), Tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1619
1693
  \r`;
1620
- function ga(e) {
1694
+ function Aa(e) {
1621
1695
  if (e === null)
1622
1696
  return !1;
1623
1697
  var n, t, r = 0, o = e.length, a = Tt;
@@ -1629,37 +1703,37 @@ function ga(e) {
1629
1703
  }
1630
1704
  return r % 8 === 0;
1631
1705
  }
1632
- function ya(e) {
1706
+ function Sa(e) {
1633
1707
  var n, t, r = e.replace(/[\r\n=]/g, ""), o = r.length, a = Tt, i = 0, s = [];
1634
1708
  for (n = 0; n < o; n++)
1635
1709
  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
1710
  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
1711
  }
1638
- function ha(e) {
1712
+ function xa(e) {
1639
1713
  var n = "", t = 0, r, o, a = e.length, i = Tt;
1640
1714
  for (r = 0; r < a; r++)
1641
1715
  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
1716
  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
1717
  }
1644
- function va(e) {
1718
+ function Ta(e) {
1645
1719
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1646
1720
  }
1647
- var Fn = new de("tag:yaml.org,2002:binary", {
1721
+ var qn = new de("tag:yaml.org,2002:binary", {
1648
1722
  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) {
1723
+ resolve: Aa,
1724
+ construct: Sa,
1725
+ predicate: Ta,
1726
+ represent: xa
1727
+ }), $a = Object.prototype.hasOwnProperty, Ma = Object.prototype.toString;
1728
+ function Ea(e) {
1655
1729
  if (e === null)
1656
1730
  return !0;
1657
1731
  var n = [], t, r, o, a, i, s = e;
1658
1732
  for (t = 0, r = s.length; t < r; t += 1) {
1659
- if (o = s[t], i = !1, ka.call(o) !== "[object Object]")
1733
+ if (o = s[t], i = !1, Ma.call(o) !== "[object Object]")
1660
1734
  return !1;
1661
1735
  for (a in o)
1662
- if (ba.call(o, a))
1736
+ if ($a.call(o, a))
1663
1737
  if (!i)
1664
1738
  i = !0;
1665
1739
  else
@@ -1673,26 +1747,26 @@ function Ca(e) {
1673
1747
  }
1674
1748
  return !0;
1675
1749
  }
1676
- function _a(e) {
1750
+ function ja(e) {
1677
1751
  return e !== null ? e : [];
1678
1752
  }
1679
- var Nn = new de("tag:yaml.org,2002:omap", {
1753
+ var Un = new de("tag:yaml.org,2002:omap", {
1680
1754
  kind: "sequence",
1681
- resolve: Ca,
1682
- construct: _a
1683
- }), wa = Object.prototype.toString;
1684
- function Ia(e) {
1755
+ resolve: Ea,
1756
+ construct: ja
1757
+ }), Oa = Object.prototype.toString;
1758
+ function Na(e) {
1685
1759
  if (e === null)
1686
1760
  return !0;
1687
1761
  var n, t, r, o, a, i = e;
1688
1762
  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))
1763
+ if (r = i[n], Oa.call(r) !== "[object Object]" || (o = Object.keys(r), o.length !== 1))
1690
1764
  return !1;
1691
1765
  a[n] = [o[0], r[o[0]]];
1692
1766
  }
1693
1767
  return !0;
1694
1768
  }
1695
- function Aa(e) {
1769
+ function Fa(e) {
1696
1770
  if (e === null)
1697
1771
  return [];
1698
1772
  var n, t, r, o, a, i = e;
@@ -1700,46 +1774,46 @@ function Aa(e) {
1700
1774
  r = i[n], o = Object.keys(r), a[n] = [o[0], r[o[0]]];
1701
1775
  return a;
1702
1776
  }
1703
- var Bn = new de("tag:yaml.org,2002:pairs", {
1777
+ var Vn = new de("tag:yaml.org,2002:pairs", {
1704
1778
  kind: "sequence",
1705
- resolve: Ia,
1706
- construct: Aa
1707
- }), Sa = Object.prototype.hasOwnProperty;
1708
- function xa(e) {
1779
+ resolve: Na,
1780
+ construct: Fa
1781
+ }), Ka = Object.prototype.hasOwnProperty;
1782
+ function Ba(e) {
1709
1783
  if (e === null)
1710
1784
  return !0;
1711
1785
  var n, t = e;
1712
1786
  for (n in t)
1713
- if (Sa.call(t, n) && t[n] !== null)
1787
+ if (Ka.call(t, n) && t[n] !== null)
1714
1788
  return !1;
1715
1789
  return !0;
1716
1790
  }
1717
- function Ta(e) {
1791
+ function Pa(e) {
1718
1792
  return e !== null ? e : {};
1719
1793
  }
1720
- var Pn = new de("tag:yaml.org,2002:set", {
1794
+ var Rn = new de("tag:yaml.org,2002:set", {
1721
1795
  kind: "mapping",
1722
- resolve: xa,
1723
- construct: Ta
1724
- }), $t = jn.extend({
1796
+ resolve: Ba,
1797
+ construct: Pa
1798
+ }), $t = Fn.extend({
1725
1799
  implicit: [
1726
- En,
1727
- Kn
1800
+ Pn,
1801
+ Ln
1728
1802
  ],
1729
1803
  explicit: [
1730
- Fn,
1731
- Nn,
1732
- Bn,
1733
- Pn
1804
+ qn,
1805
+ Un,
1806
+ Vn,
1807
+ Rn
1734
1808
  ]
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) {
1809
+ }), Ee = Object.prototype.hasOwnProperty, ot = 1, Dn = 2, Gn = 3, at = 4, yt = 1, La = 2, Jt = 3, qa = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ua = /[\x85\u2028\u2029]/, Va = /[,\[\]\{\}]/, Hn = /^(?:!|!!|![a-z\-]+!)$/i, zn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1810
+ function Yt(e) {
1737
1811
  return Object.prototype.toString.call(e);
1738
1812
  }
1739
1813
  function we(e) {
1740
1814
  return e === 10 || e === 13;
1741
1815
  }
1742
- function Ke(e) {
1816
+ function Ne(e) {
1743
1817
  return e === 9 || e === 32;
1744
1818
  }
1745
1819
  function he(e) {
@@ -1748,33 +1822,33 @@ function he(e) {
1748
1822
  function qe(e) {
1749
1823
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1750
1824
  }
1751
- function Ea(e) {
1825
+ function Ra(e) {
1752
1826
  var n;
1753
1827
  return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
1754
1828
  }
1755
- function Ka(e) {
1829
+ function Da(e) {
1756
1830
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1757
1831
  }
1758
- function Fa(e) {
1832
+ function Ga(e) {
1759
1833
  return 48 <= e && e <= 57 ? e - 48 : -1;
1760
1834
  }
1761
1835
  function Wt(e) {
1762
1836
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1763
1837
  ` : 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
1838
  }
1765
- function Na(e) {
1839
+ function Ha(e) {
1766
1840
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
1767
1841
  (e - 65536 >> 10) + 55296,
1768
1842
  (e - 65536 & 1023) + 56320
1769
1843
  );
1770
1844
  }
1771
- var Vn = new Array(256), Dn = new Array(256);
1845
+ var Jn = new Array(256), Yn = new Array(256);
1772
1846
  for (var Pe = 0; Pe < 256; Pe++)
1773
- Vn[Pe] = Wt(Pe) ? 1 : 0, Dn[Pe] = Wt(Pe);
1774
- function Ba(e, n) {
1847
+ Jn[Pe] = Wt(Pe) ? 1 : 0, Yn[Pe] = Wt(Pe);
1848
+ function za(e, n) {
1775
1849
  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
1850
  }
1777
- function Gn(e, n) {
1851
+ function Wn(e, n) {
1778
1852
  var t = {
1779
1853
  name: e.filename,
1780
1854
  buffer: e.input.slice(0, -1),
@@ -1783,59 +1857,59 @@ function Gn(e, n) {
1783
1857
  line: e.line,
1784
1858
  column: e.position - e.lineStart
1785
1859
  };
1786
- return t.snippet = Uo(t), new me(n, t);
1860
+ return t.snippet = Zo(t), new me(n, t);
1787
1861
  }
1788
- function $(e, n) {
1789
- throw Gn(e, n);
1862
+ function E(e, n) {
1863
+ throw Wn(e, n);
1790
1864
  }
1791
1865
  function it(e, n) {
1792
- e.onWarning && e.onWarning.call(null, Gn(e, n));
1866
+ e.onWarning && e.onWarning.call(null, Wn(e, n));
1793
1867
  }
1794
- var Yt = {
1868
+ var Zt = {
1795
1869
  YAML: function(e, n, t) {
1796
1870
  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");
1871
+ e.version !== null && E(e, "duplication of %YAML directive"), t.length !== 1 && E(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), r === null && E(e, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && E(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
1872
  },
1799
1873
  TAG: function(e, n, t) {
1800
1874
  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");
1875
+ t.length !== 2 && E(e, "TAG directive accepts exactly two arguments"), r = t[0], o = t[1], Hn.test(r) || E(e, "ill-formed tag handle (first argument) of the TAG directive"), Ee.call(e.tagMap, r) && E(e, 'there is a previously declared suffix for "' + r + '" tag handle'), zn.test(o) || E(e, "ill-formed tag prefix (second argument) of the TAG directive");
1802
1876
  try {
1803
1877
  o = decodeURIComponent(o);
1804
1878
  } catch {
1805
- $(e, "tag prefix is malformed: " + o);
1879
+ E(e, "tag prefix is malformed: " + o);
1806
1880
  }
1807
1881
  e.tagMap[r] = o;
1808
1882
  }
1809
1883
  };
1810
- function je(e, n, t, r) {
1884
+ function Me(e, n, t, r) {
1811
1885
  var o, a, i, s;
1812
1886
  if (n < t) {
1813
1887
  if (s = e.input.slice(n, t), r)
1814
1888
  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");
1889
+ i = s.charCodeAt(o), i === 9 || 32 <= i && i <= 1114111 || E(e, "expected valid JSON character");
1816
1890
  else
1817
- ja.test(s) && $(e, "the stream contains non-printable characters");
1891
+ qa.test(s) && E(e, "the stream contains non-printable characters");
1818
1892
  e.result += s;
1819
1893
  }
1820
1894
  }
1821
- function Zt(e, n, t, r) {
1895
+ function Qt(e, n, t, r) {
1822
1896
  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)
1824
- a = o[i], Me.call(n, a) || (n[a] = t[a], r[a] = !0);
1897
+ for (se.isObject(t) || E(e, "cannot merge mappings; the provided source object is unacceptable"), o = Object.keys(t), i = 0, s = o.length; i < s; i += 1)
1898
+ a = o[i], Ee.call(n, a) || (n[a] = t[a], r[a] = !0);
1825
1899
  }
1826
1900
  function Ue(e, n, t, r, o, a, i, s, l) {
1827
1901
  var c, d;
1828
1902
  if (Array.isArray(o))
1829
1903
  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")
1904
+ Array.isArray(o[c]) && E(e, "nested arrays are not supported inside keys"), typeof o == "object" && Yt(o[c]) === "[object Object]" && (o[c] = "[object Object]");
1905
+ if (typeof o == "object" && Yt(o) === "[object Object]" && (o = "[object Object]"), o = String(o), n === null && (n = {}), r === "tag:yaml.org,2002:merge")
1832
1906
  if (Array.isArray(a))
1833
1907
  for (c = 0, d = a.length; c < d; c += 1)
1834
- Zt(e, n, a[c], t);
1908
+ Qt(e, n, a[c], t);
1835
1909
  else
1836
- Zt(e, n, a, t);
1910
+ Qt(e, n, a, t);
1837
1911
  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, {
1912
+ !e.json && !Ee.call(t, o) && Ee.call(n, o) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, E(e, "duplicated mapping key")), o === "__proto__" ? Object.defineProperty(n, o, {
1839
1913
  configurable: !0,
1840
1914
  enumerable: !0,
1841
1915
  writable: !0,
@@ -1843,20 +1917,20 @@ function Ue(e, n, t, r, o, a, i, s, l) {
1843
1917
  }) : n[o] = a, delete t[o];
1844
1918
  return n;
1845
1919
  }
1846
- function jt(e) {
1920
+ function Mt(e) {
1847
1921
  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;
1922
+ n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : E(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1849
1923
  }
1850
- function oe(e, n, t) {
1924
+ function ae(e, n, t) {
1851
1925
  for (var r = 0, o = e.input.charCodeAt(e.position); o !== 0; ) {
1852
- for (; Ke(o); )
1926
+ for (; Ne(o); )
1853
1927
  o === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), o = e.input.charCodeAt(++e.position);
1854
1928
  if (n && o === 35)
1855
1929
  do
1856
1930
  o = e.input.charCodeAt(++e.position);
1857
1931
  while (o !== 10 && o !== 13 && o !== 0);
1858
1932
  if (we(o))
1859
- for (jt(e), o = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; o === 32; )
1933
+ for (Mt(e), o = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; o === 32; )
1860
1934
  e.lineIndent++, o = e.input.charCodeAt(++e.position);
1861
1935
  else
1862
1936
  break;
@@ -1867,12 +1941,12 @@ function dt(e) {
1867
1941
  var n = e.position, t;
1868
1942
  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
1943
  }
1870
- function Mt(e, n) {
1944
+ function Et(e, n) {
1871
1945
  n === 1 ? e.result += " " : n > 1 && (e.result += se.repeat(`
1872
1946
  `, n - 1));
1873
1947
  }
1874
- function Pa(e, n, t) {
1875
- var r, o, a, i, s, l, c, d, u = e.kind, m = e.result, f;
1948
+ function Ja(e, n, t) {
1949
+ var r, o, a, i, s, l, c, d, u = e.kind, g = e.result, f;
1876
1950
  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)))
1877
1951
  return !1;
1878
1952
  for (e.kind = "scalar", e.result = "", a = i = e.position, s = !1; f !== 0; ) {
@@ -1886,7 +1960,7 @@ function Pa(e, n, t) {
1886
1960
  if (e.position === e.lineStart && dt(e) || t && qe(f))
1887
1961
  break;
1888
1962
  if (we(f))
1889
- if (l = e.line, c = e.lineStart, d = e.lineIndent, oe(e, !1, -1), e.lineIndent >= n) {
1963
+ if (l = e.line, c = e.lineStart, d = e.lineIndent, ae(e, !1, -1), e.lineIndent >= n) {
1890
1964
  s = !0, f = e.input.charCodeAt(e.position);
1891
1965
  continue;
1892
1966
  } else {
@@ -1894,50 +1968,50 @@ function Pa(e, n, t) {
1894
1968
  break;
1895
1969
  }
1896
1970
  }
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);
1971
+ s && (Me(e, a, i, !1), Et(e, e.line - l), a = i = e.position, s = !1), Ne(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
1898
1972
  }
1899
- return je(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
1973
+ return Me(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result = g, !1);
1900
1974
  }
1901
- function La(e, n) {
1975
+ function Ya(e, n) {
1902
1976
  var t, r, o;
1903
1977
  if (t = e.input.charCodeAt(e.position), t !== 39)
1904
1978
  return !1;
1905
1979
  for (e.kind = "scalar", e.result = "", e.position++, r = o = e.position; (t = e.input.charCodeAt(e.position)) !== 0; )
1906
1980
  if (t === 39)
1907
- if (je(e, r, e.position, !0), t = e.input.charCodeAt(++e.position), t === 39)
1981
+ if (Me(e, r, e.position, !0), t = e.input.charCodeAt(++e.position), t === 39)
1908
1982
  r = e.position, e.position++, o = e.position;
1909
1983
  else
1910
1984
  return !0;
1911
1985
  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");
1986
+ we(t) ? (Me(e, r, o, !0), Et(e, ae(e, !1, n)), r = o = e.position) : e.position === e.lineStart && dt(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, o = e.position);
1987
+ E(e, "unexpected end of the stream within a single quoted scalar");
1914
1988
  }
1915
- function qa(e, n) {
1989
+ function Wa(e, n) {
1916
1990
  var t, r, o, a, i, s;
1917
1991
  if (s = e.input.charCodeAt(e.position), s !== 34)
1918
1992
  return !1;
1919
1993
  for (e.kind = "scalar", e.result = "", e.position++, t = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0; ) {
1920
1994
  if (s === 34)
1921
- return je(e, t, e.position, !0), e.position++, !0;
1995
+ return Me(e, t, e.position, !0), e.position++, !0;
1922
1996
  if (s === 92) {
1923
- if (je(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), we(s))
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) {
1997
+ if (Me(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), we(s))
1998
+ ae(e, !1, n);
1999
+ else if (s < 256 && Jn[s])
2000
+ e.result += Yn[s], e.position++;
2001
+ else if ((i = Da(s)) > 0) {
1928
2002
  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++;
2003
+ s = e.input.charCodeAt(++e.position), (i = Ra(s)) >= 0 ? a = (a << 4) + i : E(e, "expected hexadecimal character");
2004
+ e.result += Ha(a), e.position++;
1931
2005
  } else
1932
- $(e, "unknown escape sequence");
2006
+ E(e, "unknown escape sequence");
1933
2007
  t = r = e.position;
1934
2008
  } 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);
2009
+ we(s) ? (Me(e, t, r, !0), Et(e, ae(e, !1, n)), t = r = e.position) : e.position === e.lineStart && dt(e) ? E(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1936
2010
  }
1937
- $(e, "unexpected end of the stream within a double quoted scalar");
2011
+ E(e, "unexpected end of the stream within a double quoted scalar");
1938
2012
  }
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;
2013
+ function Za(e, n) {
2014
+ var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, g, f, I = /* @__PURE__ */ Object.create(null), v, p, S, b;
1941
2015
  if (b = e.input.charCodeAt(e.position), b === 91)
1942
2016
  d = 93, f = !1, s = [];
1943
2017
  else if (b === 123)
@@ -1945,13 +2019,13 @@ function Ua(e, n) {
1945
2019
  else
1946
2020
  return !1;
1947
2021
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), b = e.input.charCodeAt(++e.position); b !== 0; ) {
1948
- if (oe(e, !0, n), b = e.input.charCodeAt(e.position), b === d)
2022
+ if (ae(e, !0, n), b = e.input.charCodeAt(e.position), b === d)
1949
2023
  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;
2024
+ t ? b === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), p = v = S = null, u = g = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = g = !0, e.position++, ae(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Re(e, n, ot, !1, !0), p = e.tag, v = e.result, ae(e, !0, n), b = e.input.charCodeAt(e.position), (g || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), ae(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), ae(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (t = !0, b = e.input.charCodeAt(++e.position)) : t = !1;
1951
2025
  }
1952
- $(e, "unexpected end of the stream within a flow collection");
2026
+ E(e, "unexpected end of the stream within a flow collection");
1953
2027
  }
1954
- function Ra(e, n) {
2028
+ function Qa(e, n) {
1955
2029
  var t, r, o = yt, a = !1, i = !1, s = n, l = 0, c = !1, d, u;
1956
2030
  if (u = e.input.charCodeAt(e.position), u === 124)
1957
2031
  r = !1;
@@ -1961,161 +2035,161 @@ function Ra(e, n) {
1961
2035
  return !1;
1962
2036
  for (e.kind = "scalar", e.result = ""; u !== 0; )
1963
2037
  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);
2038
+ yt === o ? o = u === 43 ? Jt : La : E(e, "repeat of a chomping mode identifier");
2039
+ else if ((d = Ga(u)) >= 0)
2040
+ d === 0 ? E(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? E(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
1967
2041
  else
1968
2042
  break;
1969
- if (Ke(u)) {
2043
+ if (Ne(u)) {
1970
2044
  do
1971
2045
  u = e.input.charCodeAt(++e.position);
1972
- while (Ke(u));
2046
+ while (Ne(u));
1973
2047
  if (u === 35)
1974
2048
  do
1975
2049
  u = e.input.charCodeAt(++e.position);
1976
2050
  while (!we(u) && u !== 0);
1977
2051
  }
1978
2052
  for (; u !== 0; ) {
1979
- for (jt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!i || e.lineIndent < s) && u === 32; )
2053
+ for (Mt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!i || e.lineIndent < s) && u === 32; )
1980
2054
  e.lineIndent++, u = e.input.charCodeAt(++e.position);
1981
2055
  if (!i && e.lineIndent > s && (s = e.lineIndent), we(u)) {
1982
2056
  l++;
1983
2057
  continue;
1984
2058
  }
1985
2059
  if (e.lineIndent < s) {
1986
- o === Ht ? e.result += se.repeat(`
2060
+ o === Jt ? e.result += se.repeat(`
1987
2061
  `, a ? 1 + l : l) : o === yt && a && (e.result += `
1988
2062
  `);
1989
2063
  break;
1990
2064
  }
1991
- for (r ? Ke(u) ? (c = !0, e.result += se.repeat(`
2065
+ for (r ? Ne(u) ? (c = !0, e.result += se.repeat(`
1992
2066
  `, a ? 1 + l : l)) : c ? (c = !1, e.result += se.repeat(`
1993
2067
  `, l + 1)) : l === 0 ? a && (e.result += " ") : e.result += se.repeat(`
1994
2068
  `, l) : e.result += se.repeat(`
1995
2069
  `, a ? 1 + l : l), a = !0, i = !0, l = 0, t = e.position; !we(u) && u !== 0; )
1996
2070
  u = e.input.charCodeAt(++e.position);
1997
- je(e, t, e.position, !1);
2071
+ Me(e, t, e.position, !1);
1998
2072
  }
1999
2073
  return !0;
2000
2074
  }
2001
- function Qt(e, n) {
2075
+ function Xt(e, n) {
2002
2076
  var t, r = e.tag, o = e.anchor, a = [], i, s = !1, l;
2003
2077
  if (e.firstTabInLine !== -1)
2004
2078
  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)))); ) {
2006
- if (s = !0, e.position++, oe(e, !0, -1) && e.lineIndent <= n) {
2079
+ 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(e, "tab characters must not be used in indentation")), !(l !== 45 || (i = e.input.charCodeAt(e.position + 1), !he(i)))); ) {
2080
+ if (s = !0, e.position++, ae(e, !0, -1) && e.lineIndent <= n) {
2007
2081
  a.push(null), l = e.input.charCodeAt(e.position);
2008
2082
  continue;
2009
2083
  }
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");
2084
+ if (t = e.line, Re(e, n, Gn, !1, !0), a.push(e.result), ae(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
2085
+ E(e, "bad indentation of a sequence entry");
2012
2086
  else if (e.lineIndent < n)
2013
2087
  break;
2014
2088
  }
2015
2089
  return s ? (e.tag = r, e.anchor = o, e.kind = "sequence", e.result = a, !0) : !1;
2016
2090
  }
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;
2091
+ function Xa(e, n, t) {
2092
+ var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, g = /* @__PURE__ */ Object.create(null), f = null, I = null, v = null, p = !1, S = !1, b;
2019
2093
  if (e.firstTabInLine !== -1)
2020
2094
  return !1;
2021
2095
  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;
2096
+ if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(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))
2097
+ b === 63 ? (p && (Ue(e, u, g, f, I, null, i, s, l), f = I = v = null), S = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
2024
2098
  else {
2025
- if (i = e.line, s = e.lineStart, l = e.position, !Re(e, t, Ln, !1, !0))
2099
+ if (i = e.line, s = e.lineStart, l = e.position, !Re(e, t, Dn, !1, !0))
2026
2100
  break;
2027
2101
  if (e.line === a) {
2028
- for (b = e.input.charCodeAt(e.position); Ke(b); )
2102
+ for (b = e.input.charCodeAt(e.position); Ne(b); )
2029
2103
  b = e.input.charCodeAt(++e.position);
2030
2104
  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;
2105
+ b = e.input.charCodeAt(++e.position), he(b) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ue(e, u, g, f, I, null, i, s, l), f = I = v = null), S = !0, p = !1, o = !1, f = e.tag, I = e.result;
2032
2106
  else if (S)
2033
- $(e, "can not read an implicit mapping pair; a colon is missed");
2107
+ E(e, "can not read an implicit mapping pair; a colon is missed");
2034
2108
  else
2035
2109
  return e.tag = c, e.anchor = d, !0;
2036
2110
  } else if (S)
2037
- $(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2111
+ E(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2038
2112
  else
2039
2113
  return e.tag = c, e.anchor = d, !0;
2040
2114
  }
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");
2115
+ 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, g, f, I, v, i, s, l), f = I = v = null), ae(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > n) && b !== 0)
2116
+ E(e, "bad indentation of a mapping entry");
2043
2117
  else if (e.lineIndent < n)
2044
2118
  break;
2045
2119
  }
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;
2120
+ return p && Ue(e, u, g, f, I, null, i, s, l), S && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), S;
2047
2121
  }
2048
- function Da(e) {
2122
+ function ei(e) {
2049
2123
  var n, t = !1, r = !1, o, a, i;
2050
2124
  if (i = e.input.charCodeAt(e.position), i !== 33)
2051
2125
  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) {
2126
+ if (e.tag !== null && E(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
2127
  do
2054
2128
  i = e.input.charCodeAt(++e.position);
2055
2129
  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");
2130
+ e.position < e.length ? (a = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) : E(e, "unexpected end of the stream within a verbatim tag");
2057
2131
  } else {
2058
2132
  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");
2133
+ i === 33 && (r ? E(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(n - 1, e.position + 1), Hn.test(o) || E(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
2134
+ a = e.input.slice(n, e.position), Va.test(a) && E(e, "tag suffix cannot contain flow indicator characters");
2061
2135
  }
2062
- a && !Rn.test(a) && $(e, "tag name cannot contain such characters: " + a);
2136
+ a && !zn.test(a) && E(e, "tag name cannot contain such characters: " + a);
2063
2137
  try {
2064
2138
  a = decodeURIComponent(a);
2065
2139
  } catch {
2066
- $(e, "tag name is malformed: " + a);
2140
+ E(e, "tag name is malformed: " + a);
2067
2141
  }
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;
2142
+ return t ? e.tag = a : Ee.call(e.tagMap, o) ? e.tag = e.tagMap[o] + a : o === "!" ? e.tag = "!" + a : o === "!!" ? e.tag = "tag:yaml.org,2002:" + a : E(e, 'undeclared tag handle "' + o + '"'), !0;
2069
2143
  }
2070
- function Ga(e) {
2144
+ function ti(e) {
2071
2145
  var n, t;
2072
2146
  if (t = e.input.charCodeAt(e.position), t !== 38)
2073
2147
  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); )
2148
+ for (e.anchor !== null && E(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !he(t) && !qe(t); )
2075
2149
  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;
2150
+ return e.position === n && E(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
2077
2151
  }
2078
- function za(e) {
2152
+ function ni(e) {
2079
2153
  var n, t, r;
2080
2154
  if (r = e.input.charCodeAt(e.position), r !== 42)
2081
2155
  return !1;
2082
2156
  for (r = e.input.charCodeAt(++e.position), n = e.position; r !== 0 && !he(r) && !qe(r); )
2083
2157
  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;
2158
+ return e.position === n && E(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), Ee.call(e.anchorMap, t) || E(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ae(e, !0, -1), !0;
2085
2159
  }
2086
2160
  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); )
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)
2161
+ var a, i, s, l = 1, c = !1, d = !1, u, g, f, I, v, p;
2162
+ 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 || Gn === t, r && ae(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2163
+ for (; ei(e) || ti(e); )
2164
+ ae(e, !0, -1) ? (c = !0, s = a, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
2165
+ if (s && (s = c || o), (l === 1 || at === t) && (ot === t || Dn === t ? v = n : v = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Xt(e, p) || Xa(e, p, v)) || Za(e, v) ? d = !0 : (i && Qa(e, v) || Ya(e, v) || Wa(e, v) ? d = !0 : ni(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : Ja(e, v, 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
2166
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2093
2167
  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)
2168
+ for (e.result !== null && e.kind !== "scalar" && E(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, g = e.implicitTypes.length; u < g; u += 1)
2095
2169
  if (I = e.implicitTypes[u], I.resolve(e.result)) {
2096
2170
  e.result = I.construct(e.result), e.tag = I.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2097
2171
  break;
2098
2172
  }
2099
2173
  } else if (e.tag !== "!") {
2100
- if (Me.call(e.typeMap[e.kind || "fallback"], e.tag))
2174
+ if (Ee.call(e.typeMap[e.kind || "fallback"], e.tag))
2101
2175
  I = e.typeMap[e.kind || "fallback"][e.tag];
2102
2176
  else
2103
- for (I = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, m = f.length; u < m; u += 1)
2177
+ for (I = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, g = f.length; u < g; u += 1)
2104
2178
  if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
2105
2179
  I = f[u];
2106
2180
  break;
2107
2181
  }
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");
2182
+ I || E(e, "unknown tag !<" + e.tag + ">"), e.result !== null && I.kind !== e.kind && E(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(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2109
2183
  }
2110
2184
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2111
2185
  }
2112
- function Ha(e) {
2186
+ function ri(e) {
2113
2187
  var n = e.position, t, r, o, a = !1, i;
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)); ) {
2188
+ 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 && (ae(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
2115
2189
  for (a = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !he(i); )
2116
2190
  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); )
2191
+ for (r = e.input.slice(t, e.position), o = [], r.length < 1 && E(e, "directive name must not be less than one character in length"); i !== 0; ) {
2192
+ for (; Ne(i); )
2119
2193
  i = e.input.charCodeAt(++e.position);
2120
2194
  if (i === 35) {
2121
2195
  do
@@ -2129,47 +2203,47 @@ function Ha(e) {
2129
2203
  i = e.input.charCodeAt(++e.position);
2130
2204
  o.push(e.input.slice(t, e.position));
2131
2205
  }
2132
- i !== 0 && jt(e), Me.call(Yt, r) ? Yt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
2206
+ i !== 0 && Mt(e), Ee.call(Zt, r) ? Zt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
2133
2207
  }
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)) {
2135
- e.input.charCodeAt(e.position) === 46 && (e.position += 3, oe(e, !0, -1));
2208
+ if (ae(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, ae(e, !0, -1)) : a && E(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, at, !1, !0), ae(e, !0, -1), e.checkLineBreaks && Ua.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)) {
2209
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, ae(e, !0, -1));
2136
2210
  return;
2137
2211
  }
2138
2212
  if (e.position < e.length - 1)
2139
- $(e, "end of the stream or a document separator is expected");
2213
+ E(e, "end of the stream or a document separator is expected");
2140
2214
  else
2141
2215
  return;
2142
2216
  }
2143
- function zn(e, n) {
2217
+ function Zn(e, n) {
2144
2218
  e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2145
2219
  `), 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; )
2220
+ var t = new za(e, n), r = e.indexOf("\0");
2221
+ for (r !== -1 && (t.position = r, E(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
2148
2222
  t.lineIndent += 1, t.position += 1;
2149
2223
  for (; t.position < t.length - 1; )
2150
- Ha(t);
2224
+ ri(t);
2151
2225
  return t.documents;
2152
2226
  }
2153
- function Ja(e, n, t) {
2227
+ function oi(e, n, t) {
2154
2228
  n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
2155
- var r = zn(e, t);
2229
+ var r = Zn(e, t);
2156
2230
  if (typeof n != "function")
2157
2231
  return r;
2158
2232
  for (var o = 0, a = r.length; o < a; o += 1)
2159
2233
  n(r[o]);
2160
2234
  }
2161
- function Wa(e, n) {
2162
- var t = zn(e, n);
2235
+ function ai(e, n) {
2236
+ var t = Zn(e, n);
2163
2237
  if (t.length !== 0) {
2164
2238
  if (t.length === 1)
2165
2239
  return t[0];
2166
2240
  throw new me("expected a single document in the stream, but found more");
2167
2241
  }
2168
2242
  }
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 = {};
2243
+ var ii = oi, si = ai, Qn = {
2244
+ loadAll: ii,
2245
+ load: si
2246
+ }, Xn = Object.prototype.toString, er = Object.prototype.hasOwnProperty, jt = 65279, li = 9, Ye = 10, ui = 13, ci = 32, di = 33, pi = 34, bt = 35, fi = 37, mi = 38, gi = 39, yi = 42, tr = 44, hi = 45, st = 58, vi = 61, bi = 62, Ci = 63, ki = 64, nr = 91, rr = 93, _i = 96, or = 123, wi = 124, ar = 125, fe = {};
2173
2247
  fe[0] = "\\0";
2174
2248
  fe[7] = "\\a";
2175
2249
  fe[8] = "\\b";
@@ -2185,7 +2259,7 @@ fe[133] = "\\N";
2185
2259
  fe[160] = "\\_";
2186
2260
  fe[8232] = "\\L";
2187
2261
  fe[8233] = "\\P";
2188
- var mi = [
2262
+ var Ii = [
2189
2263
  "y",
2190
2264
  "Y",
2191
2265
  "yes",
@@ -2202,16 +2276,16 @@ var mi = [
2202
2276
  "off",
2203
2277
  "Off",
2204
2278
  "OFF"
2205
- ], gi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2206
- function yi(e, n) {
2279
+ ], Ai = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2280
+ function Si(e, n) {
2207
2281
  var t, r, o, a, i, s, l;
2208
2282
  if (n === null)
2209
2283
  return {};
2210
2284
  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;
2285
+ 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 && er.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[i] = s;
2212
2286
  return t;
2213
2287
  }
2214
- function hi(e) {
2288
+ function xi(e) {
2215
2289
  var n, t, r;
2216
2290
  if (n = e.toString(16).toUpperCase(), e <= 255)
2217
2291
  t = "x", r = 2;
@@ -2223,22 +2297,22 @@ function hi(e) {
2223
2297
  throw new me("code point within a string may not be greater than 0xFFFFFFFF");
2224
2298
  return "\\" + t + se.repeat("0", r - n.length) + n;
2225
2299
  }
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;
2300
+ var Ti = 1, We = 2;
2301
+ function $i(e) {
2302
+ 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 = Si(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 : Ti, 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
2303
  }
2230
- function Xt(e, n) {
2304
+ function en(e, n) {
2231
2305
  for (var t = se.repeat(" ", n), r = 0, o = -1, a = "", i, s = e.length; r < s; )
2232
2306
  o = e.indexOf(`
2233
2307
  `, r), o === -1 ? (i = e.slice(r), r = s) : (i = e.slice(r, o + 1), r = o + 1), i.length && i !== `
2234
2308
  ` && (a += t), a += i;
2235
2309
  return a;
2236
2310
  }
2237
- function kt(e, n) {
2311
+ function Ct(e, n) {
2238
2312
  return `
2239
2313
  ` + se.repeat(" ", e.indent * n);
2240
2314
  }
2241
- function ki(e, n) {
2315
+ function Mi(e, n) {
2242
2316
  var t, r, o;
2243
2317
  for (t = 0, r = e.implicitTypes.length; t < r; t += 1)
2244
2318
  if (o = e.implicitTypes[t], o.resolve(n))
@@ -2246,71 +2320,71 @@ function ki(e, n) {
2246
2320
  return !1;
2247
2321
  }
2248
2322
  function lt(e) {
2249
- return e === ei || e === Qa;
2323
+ return e === ci || e === li;
2250
2324
  }
2251
2325
  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;
2326
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== jt || 65536 <= e && e <= 1114111;
2253
2327
  }
2254
- function en(e) {
2255
- return Ze(e) && e !== Ot && e !== Xa && e !== We;
2328
+ function tn(e) {
2329
+ return Ze(e) && e !== jt && e !== ui && e !== Ye;
2256
2330
  }
2257
- function tn(e, n, t) {
2258
- var r = en(e), o = r && !lt(e);
2331
+ function nn(e, n, t) {
2332
+ var r = tn(e), o = r && !lt(e);
2259
2333
  return (
2260
2334
  // ns-plain-safe
2261
2335
  (t ? (
2262
2336
  // c = flow-in
2263
2337
  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
2338
+ ) : r && e !== tr && e !== nr && e !== rr && e !== or && e !== ar) && e !== bt && !(n === st && !o) || tn(n) && !lt(n) && e === bt || n === st && o
2265
2339
  );
2266
2340
  }
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;
2341
+ function Ei(e) {
2342
+ return Ze(e) && e !== jt && !lt(e) && e !== hi && e !== Ci && e !== st && e !== tr && e !== nr && e !== rr && e !== or && e !== ar && e !== bt && e !== mi && e !== yi && e !== di && e !== wi && e !== vi && e !== bi && e !== gi && e !== pi && e !== fi && e !== ki && e !== _i;
2269
2343
  }
2270
- function _i(e) {
2344
+ function ji(e) {
2271
2345
  return !lt(e) && e !== st;
2272
2346
  }
2273
2347
  function ze(e, n) {
2274
2348
  var t = e.charCodeAt(n), r;
2275
2349
  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
2350
  }
2277
- function tr(e) {
2351
+ function ir(e) {
2278
2352
  var n = /^\n* /;
2279
2353
  return n.test(e);
2280
2354
  }
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));
2355
+ var sr = 1, kt = 2, lr = 3, ur = 4, Le = 5;
2356
+ function Oi(e, n, t, r, o, a, i, s) {
2357
+ var l, c = 0, d = null, u = !1, g = !1, f = r !== -1, I = -1, v = Ei(ze(e, 0)) && ji(ze(e, e.length - 1));
2284
2358
  if (n || i)
2285
2359
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2286
2360
  if (c = ze(e, l), !Ze(c))
2287
2361
  return Le;
2288
- v = v && tn(c, d, s), d = c;
2362
+ v = v && nn(c, d, s), d = c;
2289
2363
  }
2290
2364
  else {
2291
2365
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2292
- if (c = ze(e, l), c === We)
2293
- u = !0, f && (m = m || // Foldable line = too long, and not more-indented.
2366
+ if (c = ze(e, l), c === Ye)
2367
+ u = !0, f && (g = g || // Foldable line = too long, and not more-indented.
2294
2368
  l - I - 1 > r && e[I + 1] !== " ", I = l);
2295
2369
  else if (!Ze(c))
2296
2370
  return Le;
2297
- v = v && tn(c, d, s), d = c;
2371
+ v = v && nn(c, d, s), d = c;
2298
2372
  }
2299
- m = m || f && l - I - 1 > r && e[I + 1] !== " ";
2373
+ g = g || f && l - I - 1 > r && e[I + 1] !== " ";
2300
2374
  }
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;
2375
+ return !u && !g ? v && !i && !o(e) ? sr : a === We ? Le : kt : t > 9 && ir(e) ? Le : i ? a === We ? Le : kt : g ? ur : lr;
2302
2376
  }
2303
- function Ii(e, n, t, r, o) {
2377
+ function Ni(e, n, t, r, o) {
2304
2378
  e.dump = function() {
2305
2379
  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 + "'";
2380
+ return e.quotingType === We ? '""' : "''";
2381
+ if (!e.noCompatMode && (Ii.indexOf(n) !== -1 || Ai.test(n)))
2382
+ return e.quotingType === We ? '"' + n + '"' : "'" + n + "'";
2309
2383
  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
2384
  function l(c) {
2311
- return ki(e, c);
2385
+ return Mi(e, c);
2312
2386
  }
2313
- switch (wi(
2387
+ switch (Oi(
2314
2388
  n,
2315
2389
  s,
2316
2390
  e.indent,
@@ -2320,47 +2394,47 @@ function Ii(e, n, t, r, o) {
2320
2394
  e.forceQuotes && !r,
2321
2395
  o
2322
2396
  )) {
2323
- case nr:
2397
+ case sr:
2324
2398
  return n;
2325
- case Ct:
2399
+ case kt:
2326
2400
  return "'" + n.replace(/'/g, "''") + "'";
2327
- case rr:
2328
- return "|" + nn(n, e.indent) + rn(Xt(n, a));
2329
- case or:
2330
- return ">" + nn(n, e.indent) + rn(Xt(Ai(n, i), a));
2401
+ case lr:
2402
+ return "|" + rn(n, e.indent) + on(en(n, a));
2403
+ case ur:
2404
+ return ">" + rn(n, e.indent) + on(en(Fi(n, i), a));
2331
2405
  case Le:
2332
- return '"' + Si(n) + '"';
2406
+ return '"' + Ki(n) + '"';
2333
2407
  default:
2334
2408
  throw new me("impossible error: invalid scalar style");
2335
2409
  }
2336
2410
  }();
2337
2411
  }
2338
- function nn(e, n) {
2339
- var t = tr(e) ? String(n) : "", r = e[e.length - 1] === `
2412
+ function rn(e, n) {
2413
+ var t = ir(e) ? String(n) : "", r = e[e.length - 1] === `
2340
2414
  `, o = r && (e[e.length - 2] === `
2341
2415
  ` || e === `
2342
2416
  `), a = o ? "+" : r ? "" : "-";
2343
2417
  return t + a + `
2344
2418
  `;
2345
2419
  }
2346
- function rn(e) {
2420
+ function on(e) {
2347
2421
  return e[e.length - 1] === `
2348
2422
  ` ? e.slice(0, -1) : e;
2349
2423
  }
2350
- function Ai(e, n) {
2424
+ function Fi(e, n) {
2351
2425
  for (var t = /(\n+)([^\n]*)/g, r = function() {
2352
2426
  var c = e.indexOf(`
2353
2427
  `);
2354
- return c = c !== -1 ? c : e.length, t.lastIndex = c, on(e.slice(0, c), n);
2428
+ return c = c !== -1 ? c : e.length, t.lastIndex = c, an(e.slice(0, c), n);
2355
2429
  }(), o = e[0] === `
2356
2430
  ` || e[0] === " ", a, i; i = t.exec(e); ) {
2357
2431
  var s = i[1], l = i[2];
2358
2432
  a = l[0] === " ", r += s + (!o && !a && l !== "" ? `
2359
- ` : "") + on(l, n), o = a;
2433
+ ` : "") + an(l, n), o = a;
2360
2434
  }
2361
2435
  return r;
2362
2436
  }
2363
- function on(e, n) {
2437
+ function an(e, n) {
2364
2438
  if (e === "" || e[0] === " ")
2365
2439
  return e;
2366
2440
  for (var t = / [^ ]/g, r, o = 0, a, i = 0, s = 0, l = ""; r = t.exec(e); )
@@ -2370,31 +2444,31 @@ function on(e, n) {
2370
2444
  `, e.length - o > n && i > o ? l += e.slice(o, i) + `
2371
2445
  ` + e.slice(i + 1) : l += e.slice(o), l.slice(1);
2372
2446
  }
2373
- function Si(e) {
2447
+ function Ki(e) {
2374
2448
  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);
2449
+ t = ze(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || xi(t);
2376
2450
  return n;
2377
2451
  }
2378
- function xi(e, n, t) {
2452
+ function Bi(e, n, t) {
2379
2453
  var r = "", o = e.tag, a, i, s;
2380
2454
  for (a = 0, i = t.length; a < i; a += 1)
2381
2455
  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
2456
  e.tag = o, e.dump = "[" + r + "]";
2383
2457
  }
2384
- function an(e, n, t, r) {
2458
+ function sn(e, n, t, r) {
2385
2459
  var o = "", a = e.tag, i, s, l;
2386
2460
  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);
2461
+ 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 += Ct(e, n)), e.dump && Ye === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
2388
2462
  e.tag = a, e.dump = o || "[]";
2389
2463
  }
2390
- function Ti(e, n, t) {
2464
+ function Pi(e, n, t) {
2391
2465
  var r = "", o = e.tag, a = Object.keys(t), i, s, l, c, d;
2392
2466
  for (i = 0, s = a.length; i < s; i += 1)
2393
2467
  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
2468
  e.tag = o, e.dump = "{" + r + "}";
2395
2469
  }
2396
- function $i(e, n, t, r) {
2397
- var o = "", a = e.tag, i = Object.keys(t), s, l, c, d, u, m;
2470
+ function Li(e, n, t, r) {
2471
+ var o = "", a = e.tag, i = Object.keys(t), s, l, c, d, u, g;
2398
2472
  if (e.sortKeys === !0)
2399
2473
  i.sort();
2400
2474
  else if (typeof e.sortKeys == "function")
@@ -2402,17 +2476,17 @@ function $i(e, n, t, r) {
2402
2476
  else if (e.sortKeys)
2403
2477
  throw new me("sortKeys must be a boolean or a function");
2404
2478
  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));
2479
+ g = "", (!r || o !== "") && (g += Ct(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 && Ye === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, u && (g += Ct(e, n)), Se(e, n + 1, d, !0, u) && (e.dump && Ye === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, o += g));
2406
2480
  e.tag = a, e.dump = o || "{}";
2407
2481
  }
2408
- function sn(e, n, t) {
2482
+ function ln(e, n, t) {
2409
2483
  var r, o, a, i, s, l;
2410
2484
  for (o = t ? e.explicitTypes : e.implicitTypes, a = 0, i = o.length; a < i; a += 1)
2411
2485
  if (s = o[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof n == "object" && n instanceof s.instanceOf) && (!s.predicate || s.predicate(n))) {
2412
2486
  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]")
2487
+ if (l = e.styleMap[s.tag] || s.defaultStyle, Xn.call(s.represent) === "[object Function]")
2414
2488
  r = s.represent(n, l);
2415
- else if (Wn.call(s.represent, l))
2489
+ else if (er.call(s.represent, l))
2416
2490
  r = s.represent[l](n, l);
2417
2491
  else
2418
2492
  throw new me("!<" + s.tag + '> tag resolver accepts not "' + l + '" style');
@@ -2423,19 +2497,19 @@ function sn(e, n, t) {
2423
2497
  return !1;
2424
2498
  }
2425
2499
  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;
2500
+ e.tag = null, e.dump = t, ln(e, t, !1) || ln(e, t, !0);
2501
+ var s = Xn.call(e.dump), l = r, c;
2428
2502
  r && (r = e.flowLevel < 0 || e.flowLevel > n);
2429
- var d = s === "[object Object]" || s === "[object Array]", u, m;
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])
2503
+ var d = s === "[object Object]" || s === "[object Array]", u, g;
2504
+ if (d && (u = e.duplicates.indexOf(t), g = u !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && n > 0) && (o = !1), g && e.usedDuplicates[u])
2431
2505
  e.dump = "*ref_" + u;
2432
2506
  else {
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));
2507
+ if (d && g && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
2508
+ r && Object.keys(e.dump).length !== 0 ? (Li(e, n, e.dump, o), g && (e.dump = "&ref_" + u + e.dump)) : (Pi(e, n, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
2435
2509
  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));
2510
+ r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? sn(e, n - 1, e.dump, o) : sn(e, n, e.dump, o), g && (e.dump = "&ref_" + u + e.dump)) : (Bi(e, n, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
2437
2511
  else if (s === "[object String]")
2438
- e.tag !== "?" && Ii(e, e.dump, n, a, l);
2512
+ e.tag !== "?" && Ni(e, e.dump, n, a, l);
2439
2513
  else {
2440
2514
  if (s === "[object Undefined]" || e.skipInvalid)
2441
2515
  return !1;
@@ -2447,7 +2521,7 @@ function Se(e, n, t, r, o, a, i) {
2447
2521
  }
2448
2522
  return !0;
2449
2523
  }
2450
- function ji(e, n) {
2524
+ function qi(e, n) {
2451
2525
  var t = [], r = [], o, a;
2452
2526
  for (_t(e, t, r), o = 0, a = r.length; o < a; o += 1)
2453
2527
  n.duplicates.push(t[r[o]]);
@@ -2465,65 +2539,65 @@ function _t(e, n, t) {
2465
2539
  for (r = Object.keys(e), o = 0, a = r.length; o < a; o += 1)
2466
2540
  _t(e[r[o]], n, t);
2467
2541
  }
2468
- function Mi(e, n) {
2542
+ function Ui(e, n) {
2469
2543
  n = n || {};
2470
- var t = new bi(n);
2471
- t.noRefs || ji(e, t);
2544
+ var t = new $i(n);
2545
+ t.noRefs || qi(e, t);
2472
2546
  var r = e;
2473
2547
  return t.replacer && (r = t.replacer.call({ "": r }, "", r)), Se(t, 0, r, !0, !0) ? t.dump + `
2474
2548
  ` : "";
2475
2549
  }
2476
- var Oi = Mi, Ei = {
2477
- dump: Oi
2550
+ var Vi = Ui, Ri = {
2551
+ dump: Vi
2478
2552
  };
2479
- function Et(e, n) {
2553
+ function Ot(e, n) {
2480
2554
  return function() {
2481
2555
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
2482
2556
  };
2483
2557
  }
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
2558
+ var Di = de, Gi = An, Hi = $n, zi = Nn, Ji = Fn, Yi = $t, Wi = Qn.load, Zi = Qn.loadAll, Qi = Ri.dump, Xi = me, es = {
2559
+ binary: qn,
2560
+ float: On,
2561
+ map: Tn,
2562
+ null: Mn,
2563
+ pairs: Vn,
2564
+ set: Rn,
2565
+ timestamp: Pn,
2566
+ bool: En,
2567
+ int: jn,
2568
+ merge: Ln,
2569
+ omap: Un,
2570
+ seq: xn,
2571
+ str: Sn
2572
+ }, ts = Ot("safeLoad", "load"), ns = Ot("safeLoadAll", "loadAll"), rs = Ot("safeDump", "dump"), os = {
2573
+ Type: Di,
2574
+ Schema: Gi,
2575
+ FAILSAFE_SCHEMA: Hi,
2576
+ JSON_SCHEMA: zi,
2577
+ CORE_SCHEMA: Ji,
2578
+ DEFAULT_SCHEMA: Yi,
2579
+ load: Wi,
2580
+ loadAll: Zi,
2581
+ dump: Qi,
2582
+ YAMLException: Xi,
2583
+ types: es,
2584
+ safeLoad: ts,
2585
+ safeLoadAll: ns,
2586
+ safeDump: rs
2513
2587
  };
2514
- const Wi = {
2588
+ const as = {
2515
2589
  key: 0,
2516
2590
  class: "config-card-display-form"
2517
- }, Yi = ["data-testid"], Zi = {
2591
+ }, is = ["data-testid"], ss = {
2518
2592
  key: 0,
2519
2593
  class: "config-card-prop-section-title"
2520
- }, Qi = {
2594
+ }, ls = {
2521
2595
  key: 1,
2522
2596
  class: "config-card-display-json"
2523
- }, Xi = {
2597
+ }, us = {
2524
2598
  key: 2,
2525
2599
  class: "config-card-display-yaml"
2526
- }, es = /* @__PURE__ */ ae({
2600
+ }, cs = /* @__PURE__ */ re({
2527
2601
  __name: "ConfigCardDisplay",
2528
2602
  props: {
2529
2603
  propertyCollections: {
@@ -2549,30 +2623,30 @@ const Wi = {
2549
2623
  }
2550
2624
  },
2551
2625
  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("");
2626
+ const n = e, t = ut(), { i18n: { t: r } } = ue.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a = O(""), i = O("");
2553
2627
  return xe(() => n.format, (s) => {
2554
- s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Ji.dump(n.record));
2628
+ s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = os.dump(n.record));
2555
2629
  }, { immediate: !0 }), (s, l) => {
2556
2630
  const c = q("KCodeBlock");
2557
- return g(), M(ve, null, [
2558
- e.format === "structured" ? (g(), M("div", Wi, [
2559
- (g(!0), M(ve, null, ye(e.propListTypes, (d) => (g(), M("div", {
2631
+ return m(), $(ve, null, [
2632
+ e.format === "structured" ? (m(), $("div", as, [
2633
+ (m(!0), $(ve, null, ye(e.propListTypes, (d) => (m(), $("div", {
2560
2634
  key: `config-card-details-${d}-props`,
2561
2635
  class: Fe(`config-card-details-${d}-props`),
2562
2636
  "data-testid": `config-card-details-${d}-props`
2563
2637
  }, [
2564
- d !== "basic" ? (g(), M("div", Zi, K(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2565
- (g(!0), M(ve, null, ye(e.propertyCollections[d], (u) => (g(), V(xt, {
2638
+ d !== "basic" ? (m(), $("div", ss, N(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2639
+ (m(!0), $(ve, null, ye(e.propertyCollections[d], (u) => (m(), R(xt, {
2566
2640
  key: u.key,
2567
2641
  item: u
2568
2642
  }, Te({
2569
2643
  label: h(() => [
2570
- Y(s.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2644
+ W(s.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2571
2645
  ]),
2572
- [u.key]: h(({ rowValue: m }) => [
2573
- Y(s.$slots, u.key, {
2646
+ [u.key]: h(({ rowValue: g }) => [
2647
+ W(s.$slots, u.key, {
2574
2648
  row: u,
2575
- rowValue: m
2649
+ rowValue: g
2576
2650
  }, void 0, !0)
2577
2651
  ]),
2578
2652
  _: 2
@@ -2580,14 +2654,14 @@ const Wi = {
2580
2654
  o(u) ? {
2581
2655
  name: "label-tooltip",
2582
2656
  fn: h(() => [
2583
- Y(s.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2657
+ W(s.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2584
2658
  ]),
2585
2659
  key: "0"
2586
2660
  } : void 0
2587
2661
  ]), 1032, ["item"]))), 128))
2588
- ], 10, Yi))), 128))
2662
+ ], 10, is))), 128))
2589
2663
  ])) : G("", !0),
2590
- e.format === "json" ? (g(), M("div", Qi, [
2664
+ e.format === "json" ? (m(), $("div", ls, [
2591
2665
  F(c, {
2592
2666
  id: "config-card-codeblock",
2593
2667
  code: a.value,
@@ -2595,7 +2669,7 @@ const Wi = {
2595
2669
  theme: "dark"
2596
2670
  }, null, 8, ["code"])
2597
2671
  ])) : G("", !0),
2598
- e.format === "yaml" ? (g(), M("div", Xi, [
2672
+ e.format === "yaml" ? (m(), $("div", us, [
2599
2673
  F(c, {
2600
2674
  id: "config-card-codeblock",
2601
2675
  code: i.value,
@@ -2606,18 +2680,18 @@ const Wi = {
2606
2680
  ], 64);
2607
2681
  };
2608
2682
  }
2609
- }), ts = /* @__PURE__ */ Ce(es, [["__scopeId", "data-v-6c45e9e4"]]), ln = "24px", ns = (e, n) => {
2683
+ }), ds = /* @__PURE__ */ ke(cs, [["__scopeId", "data-v-6c45e9e4"]]), un = "24px", ps = (e, n) => {
2610
2684
  const t = e.__vccOpts || e;
2611
2685
  for (const [r, o] of n)
2612
2686
  t[r] = o;
2613
2687
  return t;
2614
- }, rs = (e) => (yr("data-v-dd88a2bb"), e = e(), hr(), e), os = ["aria-hidden"], as = {
2688
+ }, fs = (e) => (fn("data-v-dd88a2bb"), e = e(), mn(), e), ms = ["aria-hidden"], gs = {
2615
2689
  key: 0,
2616
2690
  "data-testid": "kui-icon-svg-title"
2617
- }, is = /* @__PURE__ */ rs(() => /* @__PURE__ */ R("path", {
2691
+ }, ys = /* @__PURE__ */ fs(() => /* @__PURE__ */ V("path", {
2618
2692
  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
2693
  fill: "currentColor"
2620
- }, null, -1)), ss = /* @__PURE__ */ ae({
2694
+ }, null, -1)), hs = /* @__PURE__ */ re({
2621
2695
  __name: "BookIcon",
2622
2696
  props: {
2623
2697
  /** The accessibility text provided to screen readers */
@@ -2648,7 +2722,7 @@ const Wi = {
2648
2722
  size: {
2649
2723
  type: [Number, String],
2650
2724
  required: !1,
2651
- default: ln,
2725
+ default: un,
2652
2726
  // if setting to the imported const fails, just pass a number of 24 as the default.
2653
2727
  validator: (e) => {
2654
2728
  if (typeof e == "number" && e > 0)
@@ -2669,7 +2743,7 @@ const Wi = {
2669
2743
  }
2670
2744
  },
2671
2745
  setup(e) {
2672
- const n = e, t = j(() => {
2746
+ const n = e, t = T(() => {
2673
2747
  if (typeof n.size == "number" && n.size > 0)
2674
2748
  return `${n.size}px`;
2675
2749
  if (typeof n.size == "string") {
@@ -2677,8 +2751,8 @@ const Wi = {
2677
2751
  if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
2678
2752
  return `${a}px`;
2679
2753
  }
2680
- return ln;
2681
- }), r = j(() => ({
2754
+ return un;
2755
+ }), r = T(() => ({
2682
2756
  boxSizing: "border-box",
2683
2757
  color: n.color,
2684
2758
  display: n.display,
@@ -2686,14 +2760,14 @@ const Wi = {
2686
2760
  lineHeight: "0",
2687
2761
  width: t.value
2688
2762
  }));
2689
- return (o, a) => (g(), V(He(e.as), {
2763
+ return (o, a) => (m(), R(Ve(e.as), {
2690
2764
  "aria-hidden": e.decorative ? "true" : void 0,
2691
2765
  class: "kui-icon book-icon",
2692
2766
  "data-testid": "kui-icon-wrapper-book-icon",
2693
- style: mr(r.value)
2767
+ style: pn(r.value)
2694
2768
  }, {
2695
2769
  default: h(() => [
2696
- (g(), M("svg", {
2770
+ (m(), $("svg", {
2697
2771
  "aria-hidden": e.decorative ? "true" : void 0,
2698
2772
  "data-testid": "kui-icon-svg-book-icon",
2699
2773
  fill: "none",
@@ -2703,23 +2777,23 @@ const Wi = {
2703
2777
  width: "100%",
2704
2778
  xmlns: "http://www.w3.org/2000/svg"
2705
2779
  }, [
2706
- e.title ? (g(), M("title", as, K(e.title), 1)) : G("", !0),
2707
- is
2708
- ], 8, os))
2780
+ e.title ? (m(), $("title", gs, N(e.title), 1)) : G("", !0),
2781
+ ys
2782
+ ], 8, ms))
2709
2783
  ]),
2710
2784
  _: 1
2711
2785
  }, 8, ["aria-hidden", "style"]));
2712
2786
  }
2713
- }), ls = /* @__PURE__ */ ns(ss, [["__scopeId", "data-v-dd88a2bb"]]), us = { "data-testid": "config-card-title" }, cs = { class: "config-card-actions" }, ds = ["href"], ps = {
2787
+ }), vs = /* @__PURE__ */ ps(hs, [["__scopeId", "data-v-dd88a2bb"]]), bs = { "data-testid": "config-card-title" }, Cs = { class: "config-card-actions" }, ks = ["href"], _s = {
2714
2788
  key: 2,
2715
2789
  class: "config-card-details-section"
2716
- }, fs = {
2790
+ }, ws = {
2717
2791
  key: 3,
2718
2792
  class: "config-card-details-section"
2719
- }, ms = ["data-testid"], gs = {
2793
+ }, Is = ["data-testid"], As = {
2720
2794
  key: 0,
2721
2795
  class: "config-card-prop-section-title"
2722
- }, ys = /* @__PURE__ */ ae({
2796
+ }, Ss = /* @__PURE__ */ re({
2723
2797
  __name: "EntityBaseConfigCard",
2724
2798
  props: {
2725
2799
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2810,9 +2884,9 @@ const Wi = {
2810
2884
  label: "YAML",
2811
2885
  value: "yaml"
2812
2886
  }
2813
- ], d = E("structured"), u = (w) => {
2887
+ ], d = O("structured"), u = (w) => {
2814
2888
  d.value = w == null ? void 0 : w.value;
2815
- }, m = {
2889
+ }, g = {
2816
2890
  id: {
2817
2891
  type: te.ID,
2818
2892
  label: a("baseConfigCard.commonFields.id_label"),
@@ -2846,21 +2920,21 @@ const Wi = {
2846
2920
  // the last property displayed
2847
2921
  section: be.Basic
2848
2922
  }
2849
- }, f = E(!1), I = E(!1), v = E(""), p = E(), S = j(() => {
2850
- var w, N, B;
2923
+ }, f = O(!1), I = O(!1), v = O(""), p = O(), S = T(() => {
2924
+ var w, K, B;
2851
2925
  if (!p.value)
2852
2926
  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;
2927
+ const k = [], x = Object.keys(p.value).length;
2928
+ for (const M in p.value) {
2929
+ const P = (K = (w = r.configSchema) == null ? void 0 : w[M]) == null ? void 0 : K.order, J = (B = g[M]) == null ? void 0 : B.order;
2856
2930
  let Q = x;
2857
- (J || J === 0) && (Q = J === -1 ? x + 1 : J), P && (Q = P === -1 ? x + 1 : P), C.push([T, Q]);
2931
+ (J || J === 0) && (Q = J === -1 ? x + 1 : J), P && (Q = P === -1 ? x + 1 : P), k.push([M, Q]);
2858
2932
  }
2859
- return C.sort(function(T, P) {
2860
- return T[1] - P[1];
2861
- }), C.map((T) => {
2933
+ return k.sort(function(M, P) {
2934
+ return M[1] - P[1];
2935
+ }), k.map((M) => {
2862
2936
  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];
2937
+ const Q = M[0], X = (P = p.value) == null ? void 0 : P[Q], ee = ((J = r.configSchema) == null ? void 0 : J[Q]) || {}, ie = g[Q];
2864
2938
  return {
2865
2939
  key: Q,
2866
2940
  value: X,
@@ -2870,22 +2944,22 @@ const Wi = {
2870
2944
  tooltip: ee.tooltip ?? ((ie == null ? void 0 : ie.tooltip) || void 0),
2871
2945
  section: ee.section ?? ((ie == null ? void 0 : ie.section) || be.Advanced)
2872
2946
  };
2873
- }).filter((T) => !T.hidden && T.key !== r.pluginConfigKey);
2874
- }), b = j(() => {
2875
- var w, N;
2947
+ }).filter((M) => !M.hidden && M.key !== r.pluginConfigKey);
2948
+ }), b = T(() => {
2949
+ var w, K;
2876
2950
  if (!p.value || !r.pluginConfigKey)
2877
2951
  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]);
2952
+ const B = p.value[r.pluginConfigKey] || {}, k = Object.keys(B).length, x = [];
2953
+ for (const M in B) {
2954
+ const P = (K = (w = r.pluginConfigSchema) == null ? void 0 : w[M]) == null ? void 0 : K.order, J = B[M];
2955
+ let Q = J != null && J !== "" ? k - 1 : k;
2956
+ P && (Q = P === -1 ? k + 1 : P), x.push([M, Q]);
2883
2957
  }
2884
- return x.sort(function(T, P) {
2885
- return T[1] - P[1];
2886
- }), x.map((T) => {
2958
+ return x.sort(function(M, P) {
2959
+ return M[1] - P[1];
2960
+ }), x.map((M) => {
2887
2961
  var P;
2888
- const J = T[0], Q = B[J], X = ((P = r.pluginConfigSchema) == null ? void 0 : P[J]) || {};
2962
+ const J = M[0], Q = B[J], X = ((P = r.pluginConfigSchema) == null ? void 0 : P[J]) || {};
2889
2963
  return {
2890
2964
  key: J,
2891
2965
  value: Q,
@@ -2895,22 +2969,22 @@ const Wi = {
2895
2969
  tooltip: X.tooltip ?? void 0,
2896
2970
  section: be.Plugin
2897
2971
  };
2898
- }).filter((T) => !T.hidden);
2899
- }), k = j(() => {
2900
- var w, N, B, C;
2972
+ }).filter((M) => !M.hidden);
2973
+ }), C = T(() => {
2974
+ var w, K, B, k;
2901
2975
  return {
2902
2976
  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))
2977
+ advanced: (K = S.value) == null ? void 0 : K.filter((x) => x.section === be.Advanced),
2978
+ plugin: (k = b.value) == null ? void 0 : k.concat((B = S.value) == null ? void 0 : B.filter((x) => x.section === be.Plugin))
2905
2979
  };
2906
- }), A = j(() => {
2980
+ }), A = T(() => {
2907
2981
  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;
2982
+ return C.value.basic.length && w.push("basic"), C.value.advanced.length && w.push("advanced"), C.value.plugin.length && w.push("plugin"), w;
2983
+ }), ne = (w) => !!(w.tooltip || o[`${w.key}-label-tooltip`]), pe = T(() => {
2984
+ var w, K;
2911
2985
  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) => {
2986
+ 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, (K = r.config) != null && K.workspace ? `/${r.config.workspace}` : "")), B = B.replace(/{id}/gi, r.config.entityId), B;
2987
+ }), H = (w) => {
2914
2988
  p.value && w(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
2915
2989
  };
2916
2990
  return xe(f, (w) => {
@@ -2926,65 +3000,65 @@ const Wi = {
2926
3000
  throw new Error(a("errors.dataKeyUndefined", { dataKey: r.dataKey }));
2927
3001
  else
2928
3002
  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);
3003
+ Object.keys(r.configSchema).filter((K) => r.configSchema[K].forceShow).forEach((K) => {
3004
+ p.value && typeof p.value[K] > "u" && (p.value[K] = null);
2931
3005
  }), n("fetch:success", w);
2932
3006
  } 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);
3007
+ const K = i(w);
3008
+ v.value = K.startsWith("code") ? a("baseConfigCard.errors.load") : K, I.value = !0, n("fetch:error", w);
2935
3009
  } finally {
2936
3010
  f.value = !1;
2937
3011
  }
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");
2940
- return g(), V(Q, { class: "kong-ui-entity-base-config-card" }, Te({
3012
+ }), (w, K) => {
3013
+ const B = q("KLabel"), k = q("KSelect"), x = q("KButton"), M = q("KClipboardProvider"), P = q("KSkeleton"), J = q("KEmptyState"), Q = q("KCard");
3014
+ return m(), R(Q, { class: "kong-ui-entity-base-config-card" }, Te({
2941
3015
  actions: h(() => [
2942
- R("div", cs, [
2943
- Y(w.$slots, "actions", {}, void 0, !0),
2944
- e.config.jsonYamlEnabled ? (g(), V(B, {
3016
+ V("div", Cs, [
3017
+ W(w.$slots, "actions", {}, void 0, !0),
3018
+ e.config.jsonYamlEnabled ? (m(), R(B, {
2945
3019
  key: 0,
2946
3020
  class: "config-format-select-label",
2947
3021
  "data-testid": "config-format-select-label"
2948
3022
  }, {
2949
3023
  default: h(() => [
2950
- Z(K(e.label), 1)
3024
+ Z(N(e.label), 1)
2951
3025
  ]),
2952
3026
  _: 1
2953
3027
  })) : G("", !0),
2954
- e.config.jsonYamlEnabled ? (g(), V(C, {
3028
+ e.config.jsonYamlEnabled ? (m(), R(k, {
2955
3029
  key: 1,
2956
3030
  appearance: "select",
2957
3031
  "data-testid": "select-config-format",
2958
3032
  items: c,
2959
3033
  onChange: u
2960
3034
  })) : G("", !0),
2961
- r.config.jsonYamlEnabled && e.configCardDoc ? (g(), V(x, {
3035
+ r.config.jsonYamlEnabled && e.configCardDoc ? (m(), R(x, {
2962
3036
  key: 2,
2963
- appearance: "btn-link",
3037
+ appearance: "tertiary",
2964
3038
  class: "book-icon",
2965
3039
  "data-testid": "book-icon"
2966
3040
  }, {
2967
3041
  default: h(() => [
2968
- R("a", {
3042
+ V("a", {
2969
3043
  href: e.configCardDoc,
2970
3044
  rel: "noopener",
2971
3045
  target: "_blank"
2972
3046
  }, [
2973
- F(y(ls), { size: y(yo) }, null, 8, ["size"])
2974
- ], 8, ds)
3047
+ F(y(vs), { size: y(So) }, null, 8, ["size"])
3048
+ ], 8, ks)
2975
3049
  ]),
2976
3050
  _: 1
2977
3051
  })) : G("", !0),
2978
- e.config.jsonYamlEnabled ? G("", !0) : (g(), V(T, { key: 3 }, {
3052
+ e.config.jsonYamlEnabled ? G("", !0) : (m(), R(M, { key: 3 }, {
2979
3053
  default: h(({ copyToClipboard: X }) => [
2980
- !f.value && !I.value ? (g(), V(x, {
3054
+ !f.value && !I.value ? (m(), R(x, {
2981
3055
  key: 0,
2982
- appearance: "btn-link",
3056
+ appearance: "tertiary",
2983
3057
  "data-testid": "json-copy-button",
2984
- onClick: (ee) => z(X)
3058
+ onClick: (ee) => H(X)
2985
3059
  }, {
2986
3060
  default: h(() => [
2987
- Z(K(y(a)("baseConfigCard.actions.copy")), 1)
3061
+ Z(N(y(a)("baseConfigCard.actions.copy")), 1)
2988
3062
  ]),
2989
3063
  _: 2
2990
3064
  }, 1032, ["onClick"])) : G("", !0)
@@ -2994,54 +3068,54 @@ const Wi = {
2994
3068
  ])
2995
3069
  ]),
2996
3070
  body: h(() => [
2997
- f.value ? (g(), V(P, {
3071
+ f.value ? (m(), R(P, {
2998
3072
  key: 0,
2999
3073
  "data-testid": "config-card-loader",
3000
3074
  "table-columns": 2,
3001
3075
  type: "table"
3002
- })) : I.value ? (g(), V(J, {
3076
+ })) : I.value ? (m(), R(J, {
3003
3077
  key: 1,
3004
3078
  "data-testid": "config-card-fetch-error",
3005
3079
  "is-error": ""
3006
3080
  }, {
3007
3081
  message: h(() => [
3008
- R("h3", null, K(v.value), 1)
3082
+ V("h3", null, N(v.value), 1)
3009
3083
  ]),
3010
3084
  _: 1
3011
3085
  })) : G("", !0),
3012
- e.config.jsonYamlEnabled ? (g(), M("div", ps, [
3013
- F(ts, {
3086
+ e.config.jsonYamlEnabled ? (m(), $("div", _s, [
3087
+ F(ds, {
3014
3088
  format: d.value,
3015
3089
  "prop-list-types": A.value,
3016
- "property-collections": k.value,
3090
+ "property-collections": C.value,
3017
3091
  record: p.value
3018
3092
  }, Te({ _: 2 }, [
3019
3093
  ye(Object.keys(w.$slots), (X) => ({
3020
3094
  name: X,
3021
3095
  fn: h(({ row: ee, rowValue: ie }) => [
3022
- Y(w.$slots, X, {
3096
+ W(w.$slots, X, {
3023
3097
  row: ee,
3024
3098
  rowValue: ie
3025
3099
  }, void 0, !0)
3026
3100
  ])
3027
3101
  }))
3028
3102
  ]), 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", {
3103
+ ])) : (m(), $("div", ws, [
3104
+ (m(!0), $(ve, null, ye(A.value, (X) => (m(), $("div", {
3031
3105
  key: `config-card-details-${X}-props`,
3032
3106
  class: Fe(`config-card-details-${X}-props`),
3033
3107
  "data-testid": `config-card-details-${X}-props`
3034
3108
  }, [
3035
- X !== "basic" ? (g(), M("div", gs, K(X === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3036
- (g(!0), M(ve, null, ye(k.value[X], (ee) => (g(), V(xt, {
3109
+ X !== "basic" ? (m(), $("div", As, N(X === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3110
+ (m(!0), $(ve, null, ye(C.value[X], (ee) => (m(), R(xt, {
3037
3111
  key: ee.key,
3038
3112
  item: ee
3039
3113
  }, Te({
3040
3114
  label: h(() => [
3041
- Y(w.$slots, `${ee.key}-label`, { row: ee }, void 0, !0)
3115
+ W(w.$slots, `${ee.key}-label`, { row: ee }, void 0, !0)
3042
3116
  ]),
3043
3117
  [ee.key]: h(({ rowValue: ie }) => [
3044
- Y(w.$slots, ee.key, {
3118
+ W(w.$slots, ee.key, {
3045
3119
  row: ee,
3046
3120
  rowValue: ie
3047
3121
  }, void 0, !0)
@@ -3051,12 +3125,12 @@ const Wi = {
3051
3125
  ne(ee) ? {
3052
3126
  name: "label-tooltip",
3053
3127
  fn: h(() => [
3054
- Y(w.$slots, `${ee.key}-label-tooltip`, { row: ee }, void 0, !0)
3128
+ W(w.$slots, `${ee.key}-label-tooltip`, { row: ee }, void 0, !0)
3055
3129
  ]),
3056
3130
  key: "0"
3057
3131
  } : void 0
3058
3132
  ]), 1032, ["item"]))), 128))
3059
- ], 10, ms))), 128))
3133
+ ], 10, Is))), 128))
3060
3134
  ]))
3061
3135
  ]),
3062
3136
  _: 2
@@ -3064,9 +3138,9 @@ const Wi = {
3064
3138
  e.hideTitle ? void 0 : {
3065
3139
  name: "title",
3066
3140
  fn: h(() => [
3067
- R("div", us, [
3068
- Y(w.$slots, "title", {}, () => [
3069
- Z(K(y(a)("baseConfigCard.title")), 1)
3141
+ V("div", bs, [
3142
+ W(w.$slots, "title", {}, () => [
3143
+ Z(N(y(a)("baseConfigCard.title")), 1)
3070
3144
  ], !0)
3071
3145
  ])
3072
3146
  ]),
@@ -3075,10 +3149,10 @@ const Wi = {
3075
3149
  ]), 1024);
3076
3150
  };
3077
3151
  }
3078
- }), hs = /* @__PURE__ */ Ce(ys, [["__scopeId", "data-v-64349aa2"]]), vs = ["onReset", "onSubmit"], bs = {
3152
+ }), xs = /* @__PURE__ */ ke(Ss, [["__scopeId", "data-v-24515123"]]), Ts = ["onReset", "onSubmit"], $s = {
3079
3153
  class: "form-actions",
3080
3154
  "data-testid": "form-actions"
3081
- }, ks = /* @__PURE__ */ ae({
3155
+ }, Ms = /* @__PURE__ */ re({
3082
3156
  __name: "EntityBaseForm",
3083
3157
  props: {
3084
3158
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3130,7 +3204,7 @@ const Wi = {
3130
3204
  var t;
3131
3205
  const r = e, o = wt(), { i18n: { t: a } } = ue.useI18n(), { getMessageFromError: i } = ue.useErrors(), { axiosInstance: s } = ue.useAxios({
3132
3206
  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(() => {
3207
+ }), l = O(!1), c = O(!1), d = O(""), u = T(() => r.canSubmit === !1 || r.isReadonly), g = T(() => {
3134
3208
  var p, S;
3135
3209
  if (!r.editId)
3136
3210
  return "";
@@ -3149,7 +3223,7 @@ const Wi = {
3149
3223
  if (r.editId)
3150
3224
  try {
3151
3225
  c.value = !1, l.value = !0;
3152
- const { data: p } = await s.get(m.value);
3226
+ const { data: p } = await s.get(g.value);
3153
3227
  n("fetch:success", p);
3154
3228
  } catch (p) {
3155
3229
  const S = i(p);
@@ -3158,13 +3232,13 @@ const Wi = {
3158
3232
  l.value = !1;
3159
3233
  }
3160
3234
  }), (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" }, {
3235
+ const b = q("KSkeleton"), C = q("KEmptyState"), A = q("KAlert"), ne = q("KButton"), pe = q("KCard");
3236
+ return m(), R(pe, { class: "kong-ui-entity-base-form" }, {
3163
3237
  body: h(() => [
3164
- l.value ? (g(), V(b, {
3238
+ l.value ? (m(), R(b, {
3165
3239
  key: 0,
3166
3240
  type: "form"
3167
- })) : c.value ? (g(), V(k, {
3241
+ })) : c.value ? (m(), R(C, {
3168
3242
  key: 1,
3169
3243
  "cta-text": y(a)("baseForm.actions.back"),
3170
3244
  "data-testid": "form-fetch-error",
@@ -3172,32 +3246,32 @@ const Wi = {
3172
3246
  "is-error": !0
3173
3247
  }, {
3174
3248
  message: h(() => [
3175
- R("h3", null, K(d.value), 1)
3249
+ V("h3", null, N(d.value), 1)
3176
3250
  ]),
3177
3251
  _: 1
3178
- }, 8, ["cta-text"])) : (g(), M("form", {
3252
+ }, 8, ["cta-text"])) : (m(), $("form", {
3179
3253
  key: 2,
3180
3254
  "data-testid": "form-content",
3181
3255
  onReset: rt(I, ["prevent"]),
3182
3256
  onSubmit: rt(v, ["prevent"])
3183
3257
  }, [
3184
- Y(p.$slots, "default", {}, void 0, !0),
3185
- e.errorMessage ? (g(), V(A, {
3258
+ W(p.$slots, "default", {}, void 0, !0),
3259
+ e.errorMessage ? (m(), R(A, {
3186
3260
  key: 0,
3187
3261
  "alert-message": e.errorMessage,
3188
3262
  appearance: "danger",
3189
3263
  "data-testid": "form-error"
3190
3264
  }, null, 8, ["alert-message"])) : G("", !0),
3191
- R("div", bs, [
3192
- Y(p.$slots, "form-actions", {}, () => [
3265
+ V("div", $s, [
3266
+ W(p.$slots, "form-actions", {}, () => [
3193
3267
  F(ne, {
3194
- appearance: "outline",
3268
+ appearance: "secondary",
3195
3269
  "data-testid": "form-cancel",
3196
3270
  disabled: e.isReadonly,
3197
3271
  type: "reset"
3198
3272
  }, {
3199
3273
  default: h(() => [
3200
- Z(K(y(a)("baseForm.actions.cancel")), 1)
3274
+ Z(N(y(a)("baseForm.actions.cancel")), 1)
3201
3275
  ]),
3202
3276
  _: 1
3203
3277
  }, 8, ["disabled"]),
@@ -3208,22 +3282,22 @@ const Wi = {
3208
3282
  type: "submit"
3209
3283
  }, {
3210
3284
  default: h(() => [
3211
- Z(K(y(a)("baseForm.actions.save")), 1)
3285
+ Z(N(y(a)("baseForm.actions.save")), 1)
3212
3286
  ]),
3213
3287
  _: 1
3214
3288
  }, 8, ["disabled"])
3215
3289
  ], !0)
3216
3290
  ])
3217
- ], 40, vs))
3291
+ ], 40, Ts))
3218
3292
  ]),
3219
3293
  _: 3
3220
3294
  });
3221
3295
  };
3222
3296
  }
3223
- }), Cs = /* @__PURE__ */ Ce(ks, [["__scopeId", "data-v-44a90aae"]]), _s = {
3297
+ }), Es = /* @__PURE__ */ ke(Ms, [["__scopeId", "data-v-81612aef"]]), js = {
3224
3298
  key: 0,
3225
3299
  "data-testid": "first-col"
3226
- }, ws = /* @__PURE__ */ ae({
3300
+ }, Os = /* @__PURE__ */ re({
3227
3301
  __name: "EntityBaseTableCell",
3228
3302
  props: {
3229
3303
  keyName: {
@@ -3236,13 +3310,13 @@ const Wi = {
3236
3310
  }
3237
3311
  },
3238
3312
  setup(e) {
3239
- const n = e, t = j(() => {
3313
+ const n = e, t = T(() => {
3240
3314
  var v;
3241
3315
  return ((v = n.rowEl) == null ? void 0 : v.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3242
- }), r = j(() => {
3316
+ }), r = T(() => {
3243
3317
  var v;
3244
3318
  return ((v = t.value) == null ? void 0 : v.querySelector('[data-testid="first-col"]')) || null;
3245
- }), o = j(() => {
3319
+ }), o = T(() => {
3246
3320
  var v, p;
3247
3321
  const S = (v = n.rowEl) == null ? void 0 : v.querySelectorAll("td");
3248
3322
  return S ? ((p = S[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
@@ -3253,8 +3327,8 @@ const Wi = {
3253
3327
  }, s = () => {
3254
3328
  var v, p, S;
3255
3329
  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(
3257
- m,
3330
+ }, l = O({}), c = O(0), d = O(0), u = O(""), g = T(() => [r.value, t.value]), f = xe(
3331
+ g,
3258
3332
  (v) => {
3259
3333
  if (o.value && (i(), "ResizeObserver" in window && window)) {
3260
3334
  a = new ResizeObserver((p) => {
@@ -3267,37 +3341,37 @@ const Wi = {
3267
3341
  }
3268
3342
  },
3269
3343
  { immediate: !0, flush: "post", deep: !0 }
3270
- ), I = j(() => o.value ? c.value > d.value : !1);
3271
- return pr(() => {
3344
+ ), I = T(() => o.value ? c.value > d.value : !1);
3345
+ return hr(() => {
3272
3346
  s();
3273
- }), fr(() => {
3347
+ }), vr(() => {
3274
3348
  f();
3275
3349
  }), (v, p) => {
3276
3350
  const S = q("KTooltip");
3277
- return g(), M("span", {
3351
+ return m(), $("span", {
3278
3352
  ref_key: "contentRef",
3279
3353
  ref: l,
3280
3354
  class: "content-wrapper"
3281
3355
  }, [
3282
- o.value ? (g(), M("span", _s, [
3356
+ o.value ? (m(), $("span", js, [
3283
3357
  F(S, {
3284
3358
  label: I.value ? u.value : "",
3285
3359
  "max-width": "300",
3286
3360
  placement: "bottomStart"
3287
3361
  }, {
3288
3362
  default: h(() => [
3289
- Y(v.$slots, "default", {}, void 0, !0)
3363
+ W(v.$slots, "default", {}, void 0, !0)
3290
3364
  ]),
3291
3365
  _: 3
3292
3366
  }, 8, ["label"])
3293
- ])) : Y(v.$slots, "default", { key: 1 }, void 0, !0)
3367
+ ])) : W(v.$slots, "default", { key: 1 }, void 0, !0)
3294
3368
  ], 512);
3295
3369
  };
3296
3370
  }
3297
- }), Is = /* @__PURE__ */ Ce(ws, [["__scopeId", "data-v-e42a20c9"]]), As = { class: "toolbar-container" }, Ss = {
3371
+ }), Ns = /* @__PURE__ */ ke(Os, [["__scopeId", "data-v-e42a20c9"]]), Fs = { class: "toolbar-container" }, Ks = {
3298
3372
  key: 0,
3299
3373
  class: "toolbar-button-container"
3300
- }, xs = ["data-testid"], Ts = /* @__PURE__ */ ae({
3374
+ }, Bs = ["data-testid"], Ps = /* @__PURE__ */ re({
3301
3375
  __name: "EntityBaseTable",
3302
3376
  props: {
3303
3377
  // table header configuration
@@ -3406,56 +3480,56 @@ const Wi = {
3406
3480
  },
3407
3481
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3408
3482
  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(() => {
3410
- const k = [];
3483
+ const t = e, { i18n: { t: r } } = ue.useI18n(), o = T(() => t.cacheIdentifier || t.preferencesStorageKey), a = (C) => C.hasData || !!t.query, i = T(() => {
3484
+ const C = [];
3411
3485
  return Object.keys(t.tableHeaders).forEach((A) => {
3412
3486
  const ne = t.tableHeaders[A];
3413
- k.push({
3487
+ C.push({
3414
3488
  label: ne.label ?? A,
3415
3489
  key: A,
3416
3490
  sortable: ne.sortable ?? !1
3417
3491
  });
3418
- }), t.enableEntityActions && k.push({
3492
+ }), t.enableEntityActions && C.push({
3419
3493
  key: "actions",
3420
3494
  hideLabel: !0
3421
- }), k;
3422
- }), s = (k) => ({
3423
- "data-rowid": k.id,
3424
- "data-testid": k.name,
3425
- ...t.rowAttributes(k)
3426
- }), l = E({}), c = (k) => {
3495
+ }), C;
3496
+ }), s = (C) => ({
3497
+ "data-rowid": C.id,
3498
+ "data-testid": C.name,
3499
+ ...t.rowAttributes(C)
3500
+ }), l = O({}), c = (C) => {
3427
3501
  var A;
3428
- return (A = l.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${k.id}"]`);
3429
- }, d = (k) => {
3502
+ return (A = l.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${C.id}"]`);
3503
+ }, d = (C) => {
3430
3504
  const A = {
3431
- "data-testid": k.headerKey,
3432
- ...t.cellAttributes(k)
3505
+ "data-testid": C.headerKey,
3506
+ ...t.cellAttributes(C)
3433
3507
  };
3434
- return k.colIndex === 0 && (A.style = {
3508
+ return C.colIndex === 0 && (A.style = {
3435
3509
  maxWidth: "250px",
3436
3510
  overflowX: "hidden",
3437
3511
  textOverflow: "ellipsis"
3438
3512
  }), A;
3439
3513
  }, u = () => {
3440
- n("empty-state-cta-clicked"), m();
3441
- }, m = () => {
3514
+ n("empty-state-cta-clicked"), g();
3515
+ }, g = () => {
3442
3516
  n("clear-search-input");
3443
- }, f = j(() => t.disableRowClick ? void 0 : (k, A) => {
3517
+ }, f = T(() => t.disableRowClick ? void 0 : (C, A) => {
3444
3518
  n("click:row", A);
3445
- }), I = (k) => {
3446
- n("sort", k);
3447
- }, { setTablePreferences: v, getTablePreferences: p } = Sr(), S = j(() => {
3448
- const k = p(t.preferencesStorageKey);
3519
+ }), I = (C) => {
3520
+ n("sort", C);
3521
+ }, { setTablePreferences: v, getTablePreferences: p } = Tr(), S = T(() => {
3522
+ const C = p(t.preferencesStorageKey);
3449
3523
  return {
3450
3524
  ...t.initialFetcherParams,
3451
- ...k
3525
+ ...C
3452
3526
  };
3453
- }), b = (k) => {
3454
- t.preferencesStorageKey && v(t.preferencesStorageKey, k);
3527
+ }), b = (C) => {
3528
+ t.preferencesStorageKey && v(t.preferencesStorageKey, C);
3455
3529
  };
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, {
3530
+ return (C, A) => {
3531
+ const ne = q("KIcon"), pe = q("KButton"), H = q("KDropdown"), w = q("KTable"), K = q("KCard");
3532
+ return m(), R(K, {
3459
3533
  class: "kong-ui-entity-base-table",
3460
3534
  title: e.title
3461
3535
  }, {
@@ -3492,28 +3566,28 @@ const Wi = {
3492
3566
  "onUpdate:tablePreferences": b
3493
3567
  }, Te({
3494
3568
  toolbar: h(({ state: B }) => [
3495
- et(R("div", As, [
3496
- Y(k.$slots, "toolbar-filter", {}, void 0, !0),
3497
- k.$slots["toolbar-button"] ? (g(), M("div", Ss, [
3498
- Y(k.$slots, "toolbar-button", {}, void 0, !0)
3569
+ et(V("div", Fs, [
3570
+ W(C.$slots, "toolbar-filter", {}, void 0, !0),
3571
+ C.$slots["toolbar-button"] ? (m(), $("div", Ks, [
3572
+ W(C.$slots, "toolbar-button", {}, void 0, !0)
3499
3573
  ])) : G("", !0)
3500
3574
  ], 512), [
3501
3575
  [tt, a(B)]
3502
3576
  ])
3503
3577
  ]),
3504
- actions: h(({ row: B, rowKey: C, rowValue: x }) => [
3505
- R("div", {
3578
+ actions: h(({ row: B, rowKey: k, rowValue: x }) => [
3579
+ V("div", {
3506
3580
  class: "actions-container",
3507
3581
  "data-testid": B.name
3508
3582
  }, [
3509
- F(z, {
3583
+ F(H, {
3510
3584
  "kpop-attributes": { placement: "bottomEnd" },
3511
3585
  width: e.dropdownMenuWidth
3512
3586
  }, {
3513
3587
  items: h(() => [
3514
- Y(k.$slots, "actions", {
3588
+ W(C.$slots, "actions", {
3515
3589
  row: B,
3516
- rowKey: C,
3590
+ rowKey: k,
3517
3591
  rowValue: x
3518
3592
  }, void 0, !0)
3519
3593
  ]),
@@ -3525,7 +3599,7 @@ const Wi = {
3525
3599
  }, {
3526
3600
  icon: h(() => [
3527
3601
  F(ne, {
3528
- color: y(mo),
3602
+ color: y(Io),
3529
3603
  icon: "more",
3530
3604
  size: "16"
3531
3605
  }, null, 8, ["color"])
@@ -3535,24 +3609,24 @@ const Wi = {
3535
3609
  ]),
3536
3610
  _: 2
3537
3611
  }, 1032, ["width"])
3538
- ], 8, xs)
3612
+ ], 8, Bs)
3539
3613
  ]),
3540
3614
  _: 2
3541
3615
  }, [
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),
3616
+ ye(e.tableHeaders, (B, k) => ({
3617
+ name: k,
3618
+ fn: h(({ row: x, rowKey: M, rowValue: P }) => [
3619
+ F(Ns, {
3620
+ "key-name": String(k),
3547
3621
  "row-el": c(x)
3548
3622
  }, {
3549
3623
  default: h(() => [
3550
- Y(k.$slots, C, {
3624
+ W(C.$slots, k, {
3551
3625
  row: x,
3552
- rowKey: T,
3626
+ rowKey: M,
3553
3627
  rowValue: P
3554
3628
  }, () => [
3555
- Z(K(P), 1)
3629
+ Z(N(P), 1)
3556
3630
  ], !0)
3557
3631
  ]),
3558
3632
  _: 2
@@ -3565,13 +3639,13 @@ const Wi = {
3565
3639
  }, 8, ["title"]);
3566
3640
  };
3567
3641
  }
3568
- }), $s = /* @__PURE__ */ Ce(Ts, [["__scopeId", "data-v-6bf92df6"]]), js = {
3642
+ }), Ls = /* @__PURE__ */ ke(Ps, [["__scopeId", "data-v-86d2d2a3"]]), qs = {
3569
3643
  key: 0,
3570
3644
  class: "kong-ui-entity-delete-error"
3571
- }, Ms = {
3645
+ }, Us = {
3572
3646
  key: 1,
3573
3647
  class: "description"
3574
- }, Os = /* @__PURE__ */ ae({
3648
+ }, Vs = /* @__PURE__ */ re({
3575
3649
  __name: "EntityDeleteModal",
3576
3650
  props: {
3577
3651
  visible: {
@@ -3610,14 +3684,14 @@ const Wi = {
3610
3684
  },
3611
3685
  emits: ["cancel", "proceed"],
3612
3686
  setup(e, { emit: n }) {
3613
- const t = e, { i18nT: r } = ue.useI18n(), o = j(() => t.needConfirm ? t.entityName : ""), a = () => {
3687
+ const t = e, { i18nT: r } = ue.useI18n(), o = T(() => t.needConfirm ? t.entityName : ""), a = () => {
3614
3688
  n("cancel");
3615
3689
  }, i = () => {
3616
3690
  n("proceed");
3617
3691
  };
3618
3692
  return (s, l) => {
3619
3693
  const c = q("KAlert"), d = q("KPrompt");
3620
- return g(), V(d, {
3694
+ return m(), R(d, {
3621
3695
  "action-button-text": "Yes, delete",
3622
3696
  "action-pending": e.actionPending,
3623
3697
  class: "kong-ui-entity-delete-modal",
@@ -3629,10 +3703,10 @@ const Wi = {
3629
3703
  onProceed: i
3630
3704
  }, {
3631
3705
  "body-content": h(() => [
3632
- e.error ? (g(), M("div", js, [
3706
+ e.error ? (m(), $("div", qs, [
3633
3707
  F(c, { appearance: "danger" }, {
3634
3708
  alertMessage: h(() => [
3635
- Z(K(e.error), 1)
3709
+ Z(N(e.error), 1)
3636
3710
  ]),
3637
3711
  _: 1
3638
3712
  })
@@ -3643,21 +3717,21 @@ const Wi = {
3643
3717
  tag: "p"
3644
3718
  }, Te({
3645
3719
  entityType: h(() => [
3646
- Z(K(t.entityType), 1)
3720
+ Z(N(t.entityType), 1)
3647
3721
  ]),
3648
3722
  _: 2
3649
3723
  }, [
3650
3724
  t.entityName ? {
3651
3725
  name: "entityName",
3652
3726
  fn: h(() => [
3653
- R("strong", null, K(t.entityName), 1)
3727
+ V("strong", null, N(t.entityName), 1)
3654
3728
  ]),
3655
3729
  key: "0"
3656
3730
  } : void 0
3657
3731
  ]), 1032, ["keypath"]),
3658
- t.description || s.$slots.description ? (g(), M("div", Ms, [
3659
- Y(s.$slots, "description", {}, () => [
3660
- R("p", null, K(t.description), 1)
3732
+ t.description || s.$slots.description ? (m(), $("div", Us, [
3733
+ W(s.$slots, "description", {}, () => [
3734
+ V("p", null, N(t.description), 1)
3661
3735
  ], !0)
3662
3736
  ])) : G("", !0)
3663
3737
  ]),
@@ -3665,13 +3739,13 @@ const Wi = {
3665
3739
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
3666
3740
  };
3667
3741
  }
3668
- }), Es = /* @__PURE__ */ Ce(Os, [["__scopeId", "data-v-1c9a2a07"]]), Ks = {
3742
+ }), Rs = /* @__PURE__ */ ke(Vs, [["__scopeId", "data-v-1c9a2a07"]]), Ds = {
3669
3743
  fill: "none",
3670
3744
  height: "20",
3671
3745
  viewBox: "0 0 20 20",
3672
3746
  width: "20",
3673
3747
  xmlns: "http://www.w3.org/2000/svg"
3674
- }, Fs = {
3748
+ }, Gs = {
3675
3749
  id: "mask0_180_20349",
3676
3750
  height: "20",
3677
3751
  maskUnits: "userSpaceOnUse",
@@ -3679,35 +3753,35 @@ const Wi = {
3679
3753
  width: "20",
3680
3754
  x: "0",
3681
3755
  y: "0"
3682
- }, Ns = ["fill"], Bs = { mask: "url(#mask0_180_20349)" }, Ps = ["fill"], Ls = /* @__PURE__ */ ae({
3756
+ }, Hs = ["fill"], zs = { mask: "url(#mask0_180_20349)" }, Js = ["fill"], cn = /* @__PURE__ */ re({
3683
3757
  __name: "IconFilter",
3684
3758
  props: {
3685
3759
  color: {
3686
3760
  type: String,
3687
- default: `var(--kong-ui-entity-filter-color, ${po})`
3761
+ default: `var(--kong-ui-entity-filter-color, ${_o})`
3688
3762
  }
3689
3763
  },
3690
3764
  setup(e) {
3691
- return (n, t) => (g(), M("svg", Ks, [
3692
- R("mask", Fs, [
3693
- R("rect", {
3765
+ return (n, t) => (m(), $("svg", Ds, [
3766
+ V("mask", Gs, [
3767
+ V("rect", {
3694
3768
  fill: e.color,
3695
3769
  height: "20",
3696
3770
  width: "20"
3697
- }, null, 8, Ns)
3771
+ }, null, 8, Hs)
3698
3772
  ]),
3699
- R("g", Bs, [
3700
- R("path", {
3773
+ V("g", zs, [
3774
+ V("path", {
3701
3775
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
3702
3776
  fill: e.color
3703
- }, null, 8, Ps)
3777
+ }, null, 8, Js)
3704
3778
  ])
3705
3779
  ]));
3706
3780
  }
3707
- }), qs = {
3781
+ }), Ys = {
3708
3782
  key: 1,
3709
3783
  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({
3784
+ }, Ws = { class: "menu-item-title" }, Zs = { class: "menu-item-indicator" }, Qs = { class: "menu-item-body" }, Xs = ["for"], el = { class: "menu-item-buttons" }, tl = { class: "filter-clear-button-container" }, nl = /* @__PURE__ */ re({
3711
3785
  __name: "EntityFilter",
3712
3786
  props: {
3713
3787
  // filter config, either exact match or fuzzy match
@@ -3727,12 +3801,12 @@ const Wi = {
3727
3801
  },
3728
3802
  emits: ["update:modelValue"],
3729
3803
  setup(e, { emit: n }) {
3730
- const t = e, { i18n: { t: r } } = ue.useI18n(), o = E(!1), a = E({}), i = j(() => {
3804
+ const t = e, { i18n: { t: r } } = ue.useI18n(), o = O(!1), a = O({}), i = T(() => {
3731
3805
  const p = [];
3732
3806
  return new URLSearchParams(t.modelValue).forEach((S, b) => {
3733
3807
  S !== "" && p.push(b);
3734
3808
  }), p;
3735
- }), s = j(() => {
3809
+ }), s = T(() => {
3736
3810
  const p = t.config.fields;
3737
3811
  return Object.keys(p).filter((S) => p[S].searchable).map((S) => ({
3738
3812
  label: p[S].label || S,
@@ -3750,11 +3824,11 @@ const Wi = {
3750
3824
  n("update:modelValue", p);
3751
3825
  }, d = (p) => `filter-${p}`, u = (p) => {
3752
3826
  var S, b;
3753
- return (((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.values) ?? []).map((k) => ({
3754
- value: k,
3755
- label: k
3827
+ return (((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.values) ?? []).map((C) => ({
3828
+ value: C,
3829
+ label: C
3756
3830
  }));
3757
- }, m = (p) => {
3831
+ }, g = (p) => {
3758
3832
  var S, b;
3759
3833
  return ((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.type) ?? "text";
3760
3834
  }, f = (p) => {
@@ -3765,12 +3839,12 @@ const Wi = {
3765
3839
  }, I = () => {
3766
3840
  a.value = {}, v(!0);
3767
3841
  }, v = (p = !1) => {
3768
- const S = Object.keys(a.value).reduce((b, k) => (a.value[k] && (b[k] = `${a.value[k]}`), b), {});
3842
+ const S = Object.keys(a.value).reduce((b, C) => (a.value[C] && (b[C] = `${a.value[C]}`), b), {});
3769
3843
  p && (o.value = !1), n("update:modelValue", new URLSearchParams(S).toString());
3770
3844
  };
3771
3845
  return (p, S) => {
3772
- const b = q("KInput"), k = q("KButton"), A = q("KSelect"), ne = q("KMenuItem"), pe = q("KMenu");
3773
- return e.config.isExactMatch ? (g(), V(b, {
3846
+ const b = q("KInput"), C = q("KButton"), A = q("KSelect"), ne = q("KMenuItem"), pe = q("KMenu");
3847
+ return e.config.isExactMatch ? (m(), R(b, {
3774
3848
  key: 0,
3775
3849
  autocomplete: "off",
3776
3850
  class: "kong-ui-entity-filter-input",
@@ -3779,23 +3853,23 @@ const Wi = {
3779
3853
  placeholder: e.config.placeholder,
3780
3854
  "onUpdate:modelValue": c
3781
3855
  }, {
3782
- icon: h(() => [
3783
- F(Ls)
3856
+ before: h(() => [
3857
+ F(cn)
3784
3858
  ]),
3785
3859
  _: 1
3786
- }, 8, ["model-value", "placeholder"])) : (g(), M("div", qs, [
3787
- F(k, {
3788
- appearance: "btn-link",
3860
+ }, 8, ["model-value", "placeholder"])) : (m(), $("div", Ys, [
3861
+ F(C, {
3862
+ appearance: "tertiary",
3789
3863
  "data-testid": "filter-button",
3790
- icon: "filter",
3791
3864
  onClick: l
3792
3865
  }, {
3793
3866
  default: h(() => [
3794
- Z(K(y(r)("filter.filterButtonText")) + " " + K(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
3867
+ F(cn),
3868
+ Z(" " + N(y(r)("filter.filterButtonText")) + " " + N(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
3795
3869
  ]),
3796
3870
  _: 1
3797
3871
  }),
3798
- et(R("div", {
3872
+ et(V("div", {
3799
3873
  class: "kong-ui-entity-filter-backdrop",
3800
3874
  onClick: l
3801
3875
  }, null, 512), [
@@ -3803,67 +3877,66 @@ const Wi = {
3803
3877
  ]),
3804
3878
  et(F(pe, { class: "kong-ui-entity-filter-menu" }, {
3805
3879
  body: h(() => [
3806
- (g(!0), M(ve, null, ye(s.value, (z, w) => (g(), V(ne, {
3807
- key: z.value,
3808
- "data-testid": z.value,
3880
+ (m(!0), $(ve, null, ye(s.value, (H, w) => (m(), R(ne, {
3881
+ key: H.value,
3882
+ "data-testid": H.value,
3809
3883
  expandable: "",
3810
3884
  "last-menu-item": w === s.value.length - 1
3811
3885
  }, {
3812
3886
  itemTitle: h(() => [
3813
- R("span", Us, [
3814
- Z(K(z.label) + " ", 1),
3815
- et(R("span", Rs, null, 512), [
3816
- [tt, i.value.includes(z.value)]
3887
+ V("span", Ws, [
3888
+ Z(N(H.label) + " ", 1),
3889
+ et(V("span", Zs, null, 512), [
3890
+ [tt, i.value.includes(H.value)]
3817
3891
  ])
3818
3892
  ])
3819
3893
  ]),
3820
3894
  itemBody: h(() => {
3821
- var N, B;
3895
+ var K, B;
3822
3896
  return [
3823
- R("div", Vs, [
3824
- R("label", {
3897
+ V("div", Qs, [
3898
+ V("label", {
3825
3899
  class: "menu-item-label",
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, {
3900
+ for: d(H.value)
3901
+ }, N(y(r)("filter.fieldLabel")), 9, Xs),
3902
+ ((B = (K = e.config.schema) == null ? void 0 : K[H.value]) == null ? void 0 : B.type) === "select" ? (m(), R(A, {
3829
3903
  key: 0,
3830
- id: d(z.value),
3831
- modelValue: a.value[z.value],
3832
- "onUpdate:modelValue": (C) => a.value[z.value] = C,
3904
+ id: d(H.value),
3905
+ modelValue: a.value[H.value],
3906
+ "onUpdate:modelValue": (k) => a.value[H.value] = k,
3833
3907
  appearance: "select",
3834
- items: u(z.value),
3908
+ items: u(H.value),
3835
3909
  placeholder: y(r)("filter.selectPlaceholder")
3836
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (g(), V(b, {
3910
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), R(b, {
3837
3911
  key: 1,
3838
- id: d(z.value),
3839
- modelValue: a.value[z.value],
3840
- "onUpdate:modelValue": (C) => a.value[z.value] = C,
3912
+ id: d(H.value),
3913
+ modelValue: a.value[H.value],
3914
+ "onUpdate:modelValue": (k) => a.value[H.value] = k,
3841
3915
  autocomplete: "off",
3842
3916
  placeholder: y(r)("filter.inputPlaceholder"),
3843
- size: "small",
3844
- type: m(z.value)
3917
+ type: g(H.value)
3845
3918
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
3846
3919
  ]),
3847
- R("div", Gs, [
3848
- F(k, {
3849
- appearance: "btn-link",
3920
+ V("div", el, [
3921
+ F(C, {
3922
+ appearance: "tertiary",
3850
3923
  "data-testid": "apply-filter",
3851
3924
  size: "small",
3852
- onClick: S[0] || (S[0] = (C) => v(!0))
3925
+ onClick: S[0] || (S[0] = (k) => v(!0))
3853
3926
  }, {
3854
3927
  default: h(() => [
3855
- Z(K(y(r)("filter.applyButtonText")), 1)
3928
+ Z(N(y(r)("filter.applyButtonText")), 1)
3856
3929
  ]),
3857
3930
  _: 1
3858
3931
  }),
3859
- F(k, {
3860
- appearance: "btn-link",
3932
+ F(C, {
3933
+ appearance: "tertiary",
3861
3934
  "data-testid": "clear-filter",
3862
3935
  size: "small",
3863
- onClick: (C) => f(z.value)
3936
+ onClick: (k) => f(H.value)
3864
3937
  }, {
3865
3938
  default: h(() => [
3866
- Z(K(y(r)("filter.clearButtonText")), 1)
3939
+ Z(N(y(r)("filter.clearButtonText")), 1)
3867
3940
  ]),
3868
3941
  _: 2
3869
3942
  }, 1032, ["onClick"])
@@ -3874,12 +3947,17 @@ const Wi = {
3874
3947
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
3875
3948
  ]),
3876
3949
  actionButton: h(() => [
3877
- F(k, { onClick: I }, {
3878
- default: h(() => [
3879
- Z(K(y(r)("filter.clearAllButtonText")), 1)
3880
- ]),
3881
- _: 1
3882
- })
3950
+ V("div", tl, [
3951
+ F(C, {
3952
+ size: "small",
3953
+ onClick: I
3954
+ }, {
3955
+ default: h(() => [
3956
+ Z(N(y(r)("filter.clearAllButtonText")), 1)
3957
+ ]),
3958
+ _: 1
3959
+ })
3960
+ ])
3883
3961
  ]),
3884
3962
  _: 1
3885
3963
  }, 512), [
@@ -3888,7 +3966,7 @@ const Wi = {
3888
3966
  ]));
3889
3967
  };
3890
3968
  }
3891
- }), Hs = /* @__PURE__ */ Ce(zs, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ae({
3969
+ }), rl = /* @__PURE__ */ ke(nl, [["__scopeId", "data-v-4ea260f0"]]), Xe = /* @__PURE__ */ re({
3892
3970
  __name: "PermissionsWrapper",
3893
3971
  props: {
3894
3972
  /**
@@ -3910,24 +3988,24 @@ const Wi = {
3910
3988
  }
3911
3989
  },
3912
3990
  setup(e) {
3913
- const n = e, t = E(void 0), r = j(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3991
+ const n = e, t = O(void 0), r = T(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3914
3992
  return xe(() => n.authFunction, async () => {
3915
3993
  t.value = await n.authFunction();
3916
- }, { immediate: !0 }), (o, a) => r.value ? Y(o.$slots, "default", {
3994
+ }, { immediate: !0 }), (o, a) => r.value ? W(o.$slots, "default", {
3917
3995
  key: 0,
3918
3996
  isAllowed: t.value
3919
3997
  }) : G("", !0);
3920
3998
  }
3921
- }), Js = { class: "form-section-wrapper" }, Ws = {
3999
+ }), ol = { class: "form-section-wrapper" }, al = {
3922
4000
  key: 0,
3923
4001
  class: "form-section-title"
3924
- }, Ys = {
4002
+ }, il = {
3925
4003
  key: 1,
3926
4004
  class: "form-section-description"
3927
- }, Zs = {
4005
+ }, sl = {
3928
4006
  key: 2,
3929
4007
  class: "form-section-footer"
3930
- }, Qs = { class: "form-section-content" }, Xs = /* @__PURE__ */ ae({
4008
+ }, ll = { class: "form-section-content" }, ul = /* @__PURE__ */ re({
3931
4009
  __name: "EntityFormSection",
3932
4010
  props: {
3933
4011
  title: {
@@ -3953,35 +4031,35 @@ const Wi = {
3953
4031
  },
3954
4032
  setup(e) {
3955
4033
  const n = ut();
3956
- return (t, r) => (g(), M("fieldset", {
4034
+ return (t, r) => (m(), $("fieldset", {
3957
4035
  class: Fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
3958
4036
  }, [
3959
- R("div", Js, [
3960
- e.hideInfoHeader ? G("", !0) : (g(), M("div", {
4037
+ V("div", ol, [
4038
+ e.hideInfoHeader ? G("", !0) : (m(), $("div", {
3961
4039
  key: 0,
3962
4040
  class: Fe(["form-section-info", { sticky: e.stickyInfoHeader }])
3963
4041
  }, [
3964
- e.title ? (g(), M("h4", Ws, K(e.title), 1)) : G("", !0),
3965
- e.description || y(n).description ? (g(), M("div", Ys, [
3966
- Y(t.$slots, "description", {}, () => [
3967
- R("p", null, K(e.description), 1)
4042
+ e.title ? (m(), $("h4", al, N(e.title), 1)) : G("", !0),
4043
+ e.description || y(n).description ? (m(), $("div", il, [
4044
+ W(t.$slots, "description", {}, () => [
4045
+ V("p", null, N(e.description), 1)
3968
4046
  ], !0)
3969
4047
  ])) : G("", !0),
3970
- y(n).footer ? (g(), M("div", Zs, [
3971
- Y(t.$slots, "footer", {}, void 0, !0)
4048
+ y(n).footer ? (m(), $("div", sl, [
4049
+ W(t.$slots, "footer", {}, void 0, !0)
3972
4050
  ])) : G("", !0)
3973
4051
  ], 2)),
3974
- R("div", Qs, [
3975
- Y(t.$slots, "default", {}, void 0, !0)
4052
+ V("div", ll, [
4053
+ W(t.$slots, "default", {}, void 0, !0)
3976
4054
  ])
3977
4055
  ])
3978
4056
  ], 2));
3979
4057
  }
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 = {
4058
+ }), dn = /* @__PURE__ */ ke(ul, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Nt, useDeleteUrlBuilder: cl, useErrors: dl, useExternalLinkCreator: jl, useFetchUrlBuilder: Ol, useFetcher: pl, useDebouncedFilter: cr, useStringHelpers: Nl, useHelpers: Fl, useGatewayFeatureSupported: Kl, useTruncationDetector: Bl } = ue;
4059
+ const fl = { class: "add-to-group-form-container" }, ml = { class: "add-to-group-cta-text" }, gl = {
3982
4060
  key: 0,
3983
4061
  class: "kong-ui-entity-add-to-groups-error"
3984
- }, il = { key: 0 }, sl = /* @__PURE__ */ ae({
4062
+ }, yl = { key: 0 }, hl = /* @__PURE__ */ re({
3985
4063
  __name: "AddToGroupModal",
3986
4064
  props: {
3987
4065
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3999,16 +4077,16 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
3999
4077
  emits: ["cancel", "add:success", "add:partial-success", "error"],
4000
4078
  setup(e, { emit: n }) {
4001
4079
  var B;
4002
- const t = e, { i18n: { t: r } } = ct.useI18n(), { axiosInstance: o } = Kt({
4080
+ const t = e, { i18n: { t: r } } = ct.useI18n(), { axiosInstance: o } = Nt({
4003
4081
  headers: (B = t.config) == null ? void 0 : B.requestHeaders
4004
- }), a = E([]), {
4082
+ }), a = O([]), {
4005
4083
  debouncedQueryChange: i,
4006
4084
  loading: s,
4007
4085
  allRecords: l,
4008
4086
  error: c,
4009
4087
  loadItems: d,
4010
4088
  results: u
4011
- } = ar(
4089
+ } = cr(
4012
4090
  t.config,
4013
4091
  $e.list[t.config.app].all,
4014
4092
  "",
@@ -4016,64 +4094,64 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
4016
4094
  fetchedItemsKey: "data",
4017
4095
  searchKeys: ["name", "id"]
4018
4096
  }
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
4097
+ ), g = T(() => c.value ? r("consumer_groups.errors.general") : ""), f = O(0), I = T(() => l.value === void 0), v = T(() => u.value.map((k) => ({
4098
+ label: k.name,
4099
+ value: k.id,
4100
+ selected: a.value.includes(k.id),
4101
+ data: k
4024
4102
  // 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;
4103
+ }))), p = (k) => {
4104
+ var M;
4105
+ const x = I.value ? u.value.find((P) => P.id === k) : (M = l.value) == null ? void 0 : M.find((P) => P.id === k);
4106
+ return x ? x.name : k;
4029
4107
  }, S = () => {
4030
4108
  A.value = "", b.value = [], w.value = [], n("cancel");
4031
- }, b = E([]), k = E(!1), A = E(""), ne = async () => {
4109
+ }, b = O([]), C = O(!1), A = O(""), ne = async () => {
4032
4110
  if (!a.value.length) {
4033
4111
  A.value = "", w.value = [], n("cancel");
4034
4112
  return;
4035
4113
  }
4036
- k.value = !0, A.value = "", b.value = [], w.value = [];
4114
+ C.value = !0, A.value = "", b.value = [], w.value = [];
4037
4115
  try {
4038
- const C = a.value.map((P) => z(P)), x = await Promise.allSettled(C);
4039
- let T = !0;
4116
+ const k = a.value.map((P) => H(P)), x = await Promise.allSettled(k);
4117
+ let M = !0;
4040
4118
  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));
4119
+ P.status !== "fulfilled" && (M = !1);
4120
+ }), M ? (b.value = [], w.value = [], n("add:success", a.value), a.value = []) : (b.value.length && n("add:partial-success", b.value), a.value = [], K(x));
4043
4121
  } catch {
4044
4122
  A.value = r("consumer_groups.errors.add"), n("error", A.value);
4045
4123
  } finally {
4046
- k.value = !1;
4124
+ C.value = !1;
4047
4125
  }
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) => {
4126
+ }, pe = T(() => {
4127
+ var x, M, P, J;
4128
+ let k = `${t.config.apiBaseUrl}${$e.list[t.config.app].forConsumer}`;
4129
+ return t.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "").replace(/{consumerId}/gi, ((M = t.config) == null ? void 0 : M.consumerId) || "") : t.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (P = t.config) != null && P.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), k;
4130
+ }), H = async (k) => {
4053
4131
  const x = {
4054
- group: C
4132
+ group: k
4055
4133
  };
4056
4134
  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));
4135
+ const M = await o.post(pe.value, x);
4136
+ return b.value.push(k), M;
4137
+ } catch (M) {
4138
+ let P = `${p(k)} - ${M.message}`;
4139
+ return M.response.status === 409 && (P = `${p(k)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(P));
4062
4140
  }
4063
- }, w = E([]), N = (C) => {
4064
- w.value = C.map((x) => {
4065
- var T;
4066
- return (T = x.reason) == null ? void 0 : T.message;
4141
+ }, w = O([]), K = (k) => {
4142
+ w.value = k.map((x) => {
4143
+ var M;
4144
+ return (M = x.reason) == null ? void 0 : M.message;
4067
4145
  }).filter(Boolean);
4068
4146
  };
4069
4147
  return xe(v, () => {
4070
4148
  f.value++;
4071
4149
  }, { immediate: !0, deep: !0 }), Qe(async () => {
4072
4150
  await d();
4073
- }), (C, x) => {
4074
- const T = q("KMultiselect"), P = q("KAlert"), J = q("KPrompt");
4075
- return g(), V(J, {
4076
- "action-pending": k.value,
4151
+ }), (k, x) => {
4152
+ const M = q("KMultiselect"), P = q("KAlert"), J = q("KPrompt");
4153
+ return m(), R(J, {
4154
+ "action-pending": C.value,
4077
4155
  class: "kong-ui-entities-add-to-groups-modal",
4078
4156
  "data-testid": "add-to-group-modal",
4079
4157
  "is-visible": e.visible,
@@ -4082,9 +4160,9 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
4082
4160
  onProceed: ne
4083
4161
  }, {
4084
4162
  "body-content": h(() => [
4085
- R("div", rl, [
4086
- R("p", ol, K(y(r)("consumer_groups.consumers.add.ctaText")), 1),
4087
- F(T, {
4163
+ V("div", fl, [
4164
+ V("p", ml, N(y(r)("consumer_groups.consumers.add.ctaText")), 1),
4165
+ F(M, {
4088
4166
  modelValue: a.value,
4089
4167
  "onUpdate:modelValue": x[0] || (x[0] = (Q) => a.value = Q),
4090
4168
  autosuggest: "",
@@ -4094,19 +4172,19 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
4094
4172
  label: y(r)("consumer_groups.consumers.add.consumer_groups_label"),
4095
4173
  loading: y(s),
4096
4174
  placeholder: y(r)("consumer_groups.consumers.add.consumer_group_placeholder"),
4097
- readonly: k.value,
4175
+ readonly: C.value,
4098
4176
  required: "",
4099
4177
  width: "100%",
4100
4178
  onQueryChange: y(i)
4101
4179
  }, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
4102
- A.value || m.value || w.value.length ? (g(), M("div", al, [
4180
+ A.value || g.value || w.value.length ? (m(), $("div", gl, [
4103
4181
  F(P, { appearance: "danger" }, {
4104
4182
  alertMessage: h(() => [
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))
4183
+ V("p", null, N(y(r)("consumer_groups.errors.add")), 1),
4184
+ w.value.length ? (m(), $("ul", yl, [
4185
+ (m(!0), $(ve, null, ye(w.value, (Q, X) => (m(), $("li", { key: X }, N(Q), 1))), 128))
4108
4186
  ])) : G("", !0),
4109
- R("div", null, K(A.value || m.value), 1)
4187
+ V("div", null, N(A.value || g.value), 1)
4110
4188
  ]),
4111
4189
  _: 1
4112
4190
  })
@@ -4123,7 +4201,7 @@ const Ft = (e, n) => {
4123
4201
  for (const [r, o] of n)
4124
4202
  t[r] = o;
4125
4203
  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({
4204
+ }, vl = /* @__PURE__ */ Ft(hl, [["__scopeId", "data-v-4d30f3c5"]]), bl = { class: "kong-ui-entities-consumer-groups-list" }, Cl = { key: 1 }, kl = /* @__PURE__ */ re({
4127
4205
  __name: "ConsumerGroupList",
4128
4206
  props: {
4129
4207
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4164,129 +4242,129 @@ const Ft = (e, n) => {
4164
4242
  },
4165
4243
  emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
4166
4244
  setup(e, { emit: n }) {
4167
- var Nt;
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 = {
4245
+ var Kt;
4246
+ const t = e, { i18nT: r, i18n: { t: o } } = ct.useI18n(), a = wt(), { axiosInstance: i } = Nt({
4247
+ headers: (Kt = t.config) == null ? void 0 : Kt.requestHeaders
4248
+ }), s = O(1), l = T(() => !!t.config.consumerId), c = T(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
4171
4249
  name: { label: o("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
4172
4250
  };
4173
4251
  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(() => {
4177
- 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,
4252
+ const u = d, g = (j) => ({
4253
+ "data-testid": j.username ?? j.custom_id ?? j.id
4254
+ }), f = T(() => {
4255
+ var z, le, Ce, je;
4256
+ let j = `${t.config.apiBaseUrl}${$e.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
4257
+ return t.config.app === "konnect" ? j = j.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (j = j.replace(/\/{workspace}/gi, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((je = t.config) == null ? void 0 : je.consumerId) || "")), j;
4258
+ }), I = O(""), v = T(() => {
4259
+ const j = t.config.app === "konnect" || t.config.isExactMatch;
4260
+ return j ? {
4261
+ isExactMatch: j,
4184
4262
  fields: {
4185
4263
  username: d.name,
4186
4264
  id: { label: o("consumer_groups.list.table_headers.id") }
4187
4265
  },
4188
4266
  placeholder: o("consumer_groups.search.placeholder")
4189
4267
  } : {
4190
- isExactMatch: O,
4268
+ isExactMatch: j,
4191
4269
  fields: {
4192
4270
  name: d.name
4193
4271
  },
4194
4272
  schema: t.config.filterSchema
4195
4273
  };
4196
- }), p = j(() => l.value ? "consumer_groups" : void 0), { fetcher: S, fetcherState: b } = nl(t.config, f.value, p.value), k = () => {
4274
+ }), p = T(() => l.value ? "consumer_groups" : void 0), { fetcher: S, fetcherState: b } = pl(t.config, f.value, p.value), C = () => {
4197
4275
  I.value = "";
4198
4276
  }, A = () => {
4199
4277
  s.value++;
4200
- }, ne = E(""), pe = (O, H) => {
4201
- const le = O.id;
4202
- if (!H(le)) {
4278
+ }, ne = O(""), pe = (j, z) => {
4279
+ const le = j.id;
4280
+ if (!z(le)) {
4203
4281
  n("copy:error", {
4204
- entity: O,
4282
+ entity: j,
4205
4283
  field: "id",
4206
4284
  message: o("consumer_groups.errors.copy")
4207
4285
  });
4208
4286
  return;
4209
4287
  }
4210
4288
  n("copy:success", {
4211
- entity: O,
4289
+ entity: j,
4212
4290
  field: "id",
4213
4291
  message: o("consumer_groups.copy.success", { val: le })
4214
4292
  });
4215
- }, z = (O, H) => {
4216
- const le = JSON.stringify(O);
4217
- if (!H(le)) {
4293
+ }, H = (j, z) => {
4294
+ const le = JSON.stringify(j);
4295
+ if (!z(le)) {
4218
4296
  n("copy:error", {
4219
- entity: O,
4297
+ entity: j,
4220
4298
  message: o("consumer_groups.errors.copy")
4221
4299
  });
4222
4300
  return;
4223
4301
  }
4224
4302
  n("copy:success", {
4225
- entity: O,
4303
+ entity: j,
4226
4304
  message: o("consumer_groups.copy.success_brief")
4227
4305
  });
4228
- }, w = async (O) => {
4306
+ }, w = async (j) => {
4229
4307
  var le;
4230
- await ((le = t.canRetrieve) == null ? void 0 : le.call(t, O)) && a.push(t.config.getViewRoute(O.id));
4231
- }, N = (O) => ({
4308
+ await ((le = t.canRetrieve) == null ? void 0 : le.call(t, j)) && a.push(t.config.getViewRoute(j.id));
4309
+ }, K = (j) => ({
4232
4310
  label: o("consumer_groups.actions.view"),
4233
- to: t.config.getViewRoute(O)
4234
- }), B = (O) => ({
4311
+ to: t.config.getViewRoute(j)
4312
+ }), B = (j) => ({
4235
4313
  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;
4314
+ to: t.config.getEditRoute(j)
4315
+ }), k = O(void 0), x = O(!1), M = O(!1), P = O(""), J = cl(t.config, f.value), Q = (j) => {
4316
+ k.value = j, x.value = !0;
4239
4317
  }, X = () => {
4240
4318
  x.value = !1;
4241
4319
  }, ee = async () => {
4242
- var O, H, le;
4243
- if ((O = C.value) != null && O.id) {
4244
- T.value = !0;
4320
+ var j, z, le;
4321
+ if ((j = k.value) != null && j.id) {
4322
+ M.value = !0;
4245
4323
  try {
4246
- await i.delete(J(C.value.id)), T.value = !1, x.value = !1, s.value++, n("delete:success", C.value);
4247
- } 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);
4324
+ await i.delete(J(k.value.id)), M.value = !1, x.value = !1, s.value++, n("delete:success", k.value);
4325
+ } catch (Ce) {
4326
+ P.value = ((le = (z = Ce.response) == null ? void 0 : z.data) == null ? void 0 : le.message) || Ce.message || o("consumer_groups.errors.delete"), n("error", Ce);
4249
4327
  } finally {
4250
- T.value = !1;
4328
+ M.value = !1;
4251
4329
  }
4252
4330
  }
4253
- }, ie = E(!1), Ve = () => {
4331
+ }, ie = O(!1), De = () => {
4254
4332
  ie.value = !0;
4255
4333
  }, _ = () => {
4256
4334
  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;
4335
+ }, L = (j, z) => {
4336
+ z || _(), s.value++, n("add:success", j);
4337
+ }, oe = () => {
4338
+ l.value && De();
4339
+ }, U = O(void 0), D = O(!1), ge = O(""), _e = (j) => {
4340
+ U.value = j, D.value = !0;
4263
4341
  }, ce = () => {
4264
4342
  D.value = !1, U.value = void 0;
4265
- }, Ne = j(() => {
4266
- 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 () => {
4343
+ }, Ke = T(() => {
4344
+ var z, le, Ce, je;
4345
+ let j = `${t.config.apiBaseUrl}${$e.list[t.config.app].oneForConsumer}`;
4346
+ return t.config.app === "konnect" ? j = j.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (j = j.replace(/\/{workspace}/gi, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((je = t.config) == null ? void 0 : je.consumerId) || "")), j;
4347
+ }), Ge = O(!1), dr = async () => {
4270
4348
  if (U.value) {
4271
- De.value = !0;
4349
+ Ge.value = !0;
4272
4350
  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);
4351
+ const j = Ke.value.replace(/{consumerGroupId}/gi, U.value.id);
4352
+ await i.delete(j), n("remove:success", U.value), ce(), s.value++;
4353
+ } catch (j) {
4354
+ ge.value = j.message || o("consumer_groups.errors.delete"), n("error", j);
4277
4355
  } finally {
4278
- De.value = !1;
4356
+ Ge.value = !1;
4279
4357
  }
4280
4358
  }
4281
4359
  };
4282
- xe(b, (O) => {
4283
- if (O.status === Ee.Error) {
4284
- ne.value = o("consumer_groups.errors.general"), n("error", O.error);
4360
+ xe(b, (j) => {
4361
+ if (j.status === Oe.Error) {
4362
+ ne.value = o("consumer_groups.errors.general"), n("error", j.error);
4285
4363
  return;
4286
4364
  }
4287
4365
  ne.value = "";
4288
4366
  });
4289
- const pt = E({
4367
+ const pt = O({
4290
4368
  ctaPath: l.value ? void 0 : t.config.createRoute,
4291
4369
  ctaText: void 0,
4292
4370
  message: o("consumer_groups.list.empty_state.description"),
@@ -4294,10 +4372,10 @@ const Ft = (e, n) => {
4294
4372
  });
4295
4373
  return Qe(async () => {
4296
4374
  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), {
4375
+ }), (j, z) => {
4376
+ const le = q("KButton"), Ce = q("KBadge"), je = q("KTruncate"), He = q("KDropdownItem"), Bt = q("KClipboardProvider"), pr = q("KPrompt");
4377
+ return m(), $("div", bl, [
4378
+ F(y(Ls), {
4301
4379
  "cache-identifier": e.cacheIdentifier,
4302
4380
  "disable-pagination": l.value,
4303
4381
  "disable-pagination-page-jump": "",
@@ -4310,18 +4388,18 @@ const Ft = (e, n) => {
4310
4388
  "pagination-type": "offset",
4311
4389
  "preferences-storage-key": "kong-ui-entities-consumer-groups-list",
4312
4390
  query: I.value,
4313
- "row-attributes": m,
4391
+ "row-attributes": g,
4314
4392
  "table-headers": y(u),
4315
- onClearSearchInput: k,
4316
- "onClick:row": H[3] || (H[3] = (W) => w(W)),
4317
- onEmptyStateCtaClicked: re,
4393
+ onClearSearchInput: C,
4394
+ "onClick:row": z[3] || (z[3] = (Y) => w(Y)),
4395
+ onEmptyStateCtaClicked: oe,
4318
4396
  onSort: A
4319
4397
  }, {
4320
4398
  "toolbar-filter": h(() => [
4321
- l.value ? G("", !0) : (g(), V(y(Hs), {
4399
+ l.value ? G("", !0) : (m(), R(y(rl), {
4322
4400
  key: 0,
4323
4401
  modelValue: I.value,
4324
- "onUpdate:modelValue": H[0] || (H[0] = (W) => I.value = W),
4402
+ "onUpdate:modelValue": z[0] || (z[0] = (Y) => I.value = Y),
4325
4403
  config: v.value
4326
4404
  }, null, 8, ["modelValue", "config"]))
4327
4405
  ]),
@@ -4335,10 +4413,10 @@ const Ft = (e, n) => {
4335
4413
  "data-testid": "toolbar-add-consumer-group",
4336
4414
  icon: "plus",
4337
4415
  to: e.config.consumerId ? void 0 : e.config.createRoute,
4338
- onClick: H[1] || (H[1] = () => e.config.consumerId ? Ve() : void 0)
4416
+ onClick: z[1] || (z[1] = () => e.config.consumerId ? De() : void 0)
4339
4417
  }, {
4340
4418
  default: h(() => [
4341
- Z(K(e.config.consumerId ? y(o)("consumer_groups.actions.add_to_group") : y(o)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
4419
+ Z(N(e.config.consumerId ? y(o)("consumer_groups.actions.add_to_group") : y(o)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
4342
4420
  ]),
4343
4421
  _: 1
4344
4422
  }, 8, ["to"])
@@ -4346,38 +4424,38 @@ const Ft = (e, n) => {
4346
4424
  _: 1
4347
4425
  }, 8, ["auth-function"])
4348
4426
  ]),
4349
- name: h(({ rowValue: W }) => [
4350
- R("b", null, K(W ?? "-"), 1)
4427
+ name: h(({ rowValue: Y }) => [
4428
+ V("b", null, N(Y ?? "-"), 1)
4351
4429
  ]),
4352
- consumers_count: h(({ rowValue: W }) => [
4353
- Z(K(W ?? "-"), 1)
4430
+ consumers_count: h(({ rowValue: Y }) => [
4431
+ Z(N(Y ?? "-"), 1)
4354
4432
  ]),
4355
- tags: h(({ rowValue: W }) => [
4356
- (W == null ? void 0 : W.length) > 0 ? (g(), V(Oe, { key: 0 }, {
4433
+ tags: h(({ rowValue: Y }) => [
4434
+ (Y == null ? void 0 : Y.length) > 0 ? (m(), R(je, { key: 0 }, {
4357
4435
  default: h(() => [
4358
- (g(!0), M(ve, null, ye(W, (Be) => (g(), V(ke, {
4436
+ (m(!0), $(ve, null, ye(Y, (Be) => (m(), R(Ce, {
4359
4437
  key: Be,
4360
- onClick: H[2] || (H[2] = rt(() => {
4438
+ onClick: z[2] || (z[2] = rt(() => {
4361
4439
  }, ["stop"]))
4362
4440
  }, {
4363
4441
  default: h(() => [
4364
- Z(K(Be), 1)
4442
+ Z(N(Be), 1)
4365
4443
  ]),
4366
4444
  _: 2
4367
4445
  }, 1024))), 128))
4368
4446
  ]),
4369
4447
  _: 2
4370
- }, 1024)) : (g(), M("span", cl, "-"))
4448
+ }, 1024)) : (m(), $("span", Cl, "-"))
4371
4449
  ]),
4372
- actions: h(({ row: W }) => [
4450
+ actions: h(({ row: Y }) => [
4373
4451
  F(Bt, null, {
4374
4452
  default: h(({ copyToClipboard: Be }) => [
4375
- F(Ge, {
4453
+ F(He, {
4376
4454
  "data-testid": "action-entity-copy-id",
4377
- onClick: (lr) => pe(W, Be)
4455
+ onClick: (fr) => pe(Y, Be)
4378
4456
  }, {
4379
4457
  default: h(() => [
4380
- Z(K(y(o)("consumer_groups.actions.copy_id")), 1)
4458
+ Z(N(y(o)("consumer_groups.actions.copy_id")), 1)
4381
4459
  ]),
4382
4460
  _: 2
4383
4461
  }, 1032, ["onClick"])
@@ -4386,12 +4464,12 @@ const Ft = (e, n) => {
4386
4464
  }, 1024),
4387
4465
  F(Bt, null, {
4388
4466
  default: h(({ copyToClipboard: Be }) => [
4389
- F(Ge, {
4467
+ F(He, {
4390
4468
  "data-testid": "action-entity-copy-json",
4391
- onClick: (lr) => z(W, Be)
4469
+ onClick: (fr) => H(Y, Be)
4392
4470
  }, {
4393
4471
  default: h(() => [
4394
- Z(K(y(o)("consumer_groups.actions.copy_json")), 1)
4472
+ Z(N(y(o)("consumer_groups.actions.copy_json")), 1)
4395
4473
  ]),
4396
4474
  _: 2
4397
4475
  }, 1032, ["onClick"])
@@ -4399,40 +4477,40 @@ const Ft = (e, n) => {
4399
4477
  _: 2
4400
4478
  }, 1024),
4401
4479
  F(y(Xe), {
4402
- "auth-function": () => e.canRetrieve(W)
4480
+ "auth-function": () => e.canRetrieve(Y)
4403
4481
  }, {
4404
4482
  default: h(() => [
4405
- F(Ge, {
4483
+ F(He, {
4406
4484
  "data-testid": "action-entity-view",
4407
4485
  "has-divider": "",
4408
- item: N(W.id)
4486
+ item: K(Y.id)
4409
4487
  }, null, 8, ["item"])
4410
4488
  ]),
4411
4489
  _: 2
4412
4490
  }, 1032, ["auth-function"]),
4413
4491
  F(y(Xe), {
4414
- "auth-function": () => e.canEdit(W)
4492
+ "auth-function": () => e.canEdit(Y)
4415
4493
  }, {
4416
4494
  default: h(() => [
4417
- F(Ge, {
4495
+ F(He, {
4418
4496
  "data-testid": "action-entity-edit",
4419
- item: B(W.id)
4497
+ item: B(Y.id)
4420
4498
  }, null, 8, ["item"])
4421
4499
  ]),
4422
4500
  _: 2
4423
4501
  }, 1032, ["auth-function"]),
4424
4502
  F(y(Xe), {
4425
- "auth-function": () => e.canDelete(W)
4503
+ "auth-function": () => e.canDelete(Y)
4426
4504
  }, {
4427
4505
  default: h(() => [
4428
- F(Ge, {
4506
+ F(He, {
4507
+ danger: "",
4429
4508
  "data-testid": "action-entity-delete",
4430
4509
  "has-divider": "",
4431
- "is-dangerous": "",
4432
- onClick: () => e.config.consumerId ? _e(W) : Q(W)
4510
+ onClick: () => e.config.consumerId ? _e(Y) : Q(Y)
4433
4511
  }, {
4434
4512
  default: h(() => [
4435
- Z(K(e.config.consumerId ? y(o)("consumer_groups.actions.exit") : y(o)("consumer_groups.actions.delete")), 1)
4513
+ Z(N(e.config.consumerId ? y(o)("consumer_groups.actions.exit") : y(o)("consumer_groups.actions.delete")), 1)
4436
4514
  ]),
4437
4515
  _: 2
4438
4516
  }, 1032, ["onClick"])
@@ -4442,35 +4520,35 @@ const Ft = (e, n) => {
4442
4520
  ]),
4443
4521
  _: 1
4444
4522
  }, 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,
4523
+ F(y(Rs), {
4524
+ "action-pending": M.value,
4447
4525
  "data-testid": "delete-consumer-group-modal",
4448
4526
  description: y(o)("consumer_groups.delete.description"),
4449
- "entity-name": C.value && (C.value.name || C.value.id),
4450
- "entity-type": y(dn).ConsumerGroup,
4527
+ "entity-name": k.value && (k.value.name || k.value.id),
4528
+ "entity-type": y(yn).ConsumerGroup,
4451
4529
  error: P.value,
4452
4530
  title: y(o)("consumer_groups.delete.title"),
4453
4531
  visible: x.value,
4454
4532
  onCancel: X,
4455
4533
  onProceed: ee
4456
4534
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
4457
- e.config.consumerId ? (g(), V(ll, {
4535
+ e.config.consumerId ? (m(), R(vl, {
4458
4536
  key: 0,
4459
4537
  config: e.config,
4460
4538
  "data-testid": "add-to-group-modal",
4461
4539
  visible: ie.value,
4462
- "onAdd:partialSuccess": H[4] || (H[4] = (W) => L(W, !0)),
4463
- "onAdd:success": H[5] || (H[5] = (W) => L(W)),
4540
+ "onAdd:partialSuccess": z[4] || (z[4] = (Y) => L(Y, !0)),
4541
+ "onAdd:success": z[5] || (z[5] = (Y) => L(Y)),
4464
4542
  onCancel: _
4465
4543
  }, null, 8, ["config", "visible"])) : G("", !0),
4466
- e.config.consumerId && U.value ? (g(), V(sr, {
4544
+ e.config.consumerId && U.value ? (m(), R(pr, {
4467
4545
  key: 1,
4468
4546
  "data-testid": "exit-group-modal",
4469
4547
  "is-visible": D.value,
4470
4548
  title: y(o)("consumer_groups.consumers.exit.title"),
4471
4549
  type: "danger",
4472
4550
  onCanceled: ce,
4473
- onProceed: ir
4551
+ onProceed: dr
4474
4552
  }, {
4475
4553
  "body-content": h(() => [
4476
4554
  F(y(r), {
@@ -4479,19 +4557,19 @@ const Ft = (e, n) => {
4479
4557
  tag: "p"
4480
4558
  }, Te({
4481
4559
  consumerGroup: h(() => [
4482
- R("strong", null, K(U.value.name || U.value.id), 1)
4560
+ V("strong", null, N(U.value.name || U.value.id), 1)
4483
4561
  ]),
4484
4562
  _: 2
4485
4563
  }, [
4486
4564
  e.config.consumerUsername ? {
4487
4565
  name: "consumer",
4488
4566
  fn: h(() => [
4489
- R("strong", null, K(e.config.consumerUsername), 1)
4567
+ V("strong", null, N(e.config.consumerUsername), 1)
4490
4568
  ]),
4491
4569
  key: "0"
4492
4570
  } : void 0
4493
4571
  ]), 1032, ["keypath"]),
4494
- R("p", null, K(y(o)("consumer_groups.consumers.exit.description")), 1)
4572
+ V("p", null, N(y(o)("consumer_groups.consumers.exit.description")), 1)
4495
4573
  ]),
4496
4574
  _: 1
4497
4575
  }, 8, ["is-visible", "title"])) : G("", !0)
@@ -4499,10 +4577,10 @@ const Ft = (e, n) => {
4499
4577
  };
4500
4578
  }
4501
4579
  });
4502
- const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { class: "kong-ui-entities-consumer-group-form" }, fl = { class: "select-item-label" }, ml = {
4580
+ const Pl = /* @__PURE__ */ Ft(kl, [["__scopeId", "data-v-e2fa781a"]]), _l = { class: "kong-ui-entities-consumer-group-form" }, wl = { class: "select-item-label" }, Il = {
4503
4581
  key: 0,
4504
4582
  class: "select-item-desc"
4505
- }, gl = /* @__PURE__ */ ae({
4583
+ }, Al = /* @__PURE__ */ re({
4506
4584
  __name: "ConsumerGroupForm",
4507
4585
  props: {
4508
4586
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4520,7 +4598,7 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4520
4598
  },
4521
4599
  emits: ["update", "error", "loading"],
4522
4600
  setup(e, { emit: n }) {
4523
- var ee, ie, Ve;
4601
+ var ee, ie, De;
4524
4602
  const t = e, { i18n: { t: r } } = ct.useI18n(), o = wt(), a = Pt({
4525
4603
  fields: {
4526
4604
  name: "",
@@ -4539,24 +4617,24 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4539
4617
  error: c,
4540
4618
  loadItems: d,
4541
4619
  results: u
4542
- } = ar(t.config, (ie = $e.form[(ee = t.config) == null ? void 0 : ee.app]) == null ? void 0 : ie.consumersList, "", {
4620
+ } = cr(t.config, (ie = $e.form[(ee = t.config) == null ? void 0 : ee.app]) == null ? void 0 : ie.consumersList, "", {
4543
4621
  fetchedItemsKey: "data",
4544
4622
  searchKeys: ["username", "custom_id", "id"]
4545
- }), { axiosInstance: m } = Kt({
4546
- headers: (Ve = t.config) == null ? void 0 : Ve.requestHeaders
4547
- }), { getMessageFromError: f } = tl(), I = j(() => u.value.map((_) => ({
4623
+ }), { axiosInstance: g } = Nt({
4624
+ headers: (De = t.config) == null ? void 0 : De.requestHeaders
4625
+ }), { getMessageFromError: f } = dl(), I = T(() => u.value.map((_) => ({
4548
4626
  label: _.username || _.custom_id,
4549
4627
  value: _.id,
4550
4628
  selected: a.fields.consumers.includes(_.id),
4551
4629
  data: _
4552
4630
  // we need this to determine whether or not to show the description text
4553
- }))), v = j(() => {
4631
+ }))), v = T(() => {
4554
4632
  var _, L;
4555
4633
  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;
4634
+ }), p = T(() => t.consumerGroupId ? nt.Edit : nt.Create), S = T(() => !!a.fields.name && !w.value), b = T(() => JSON.stringify(a.fields) !== JSON.stringify(i)), C = (_, L = "", oe = "") => {
4635
+ var D, ge, _e, ce, Ke, Ge;
4558
4636
  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;
4637
+ return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Ke = t.config) == null ? void 0 : Ke.app) === "kongManager" && (U = U.replace(/\/{workspace}/gi, (Ge = t.config) != null && Ge.workspace ? `/${t.config.workspace}` : "")), U = U.replace(/{id}/gi, L || t.consumerGroupId), (_ === "addConsumer" || _ === "removeConsumer") && (U = U.replace(/{consumerId}/gi, oe)), U;
4560
4638
  }, A = () => {
4561
4639
  var _;
4562
4640
  o.push(((_ = t.config) == null ? void 0 : _.cancelRoute) || { name: "consumer-group-list" });
@@ -4564,67 +4642,67 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4564
4642
  n("error", _);
4565
4643
  }, pe = (_) => {
4566
4644
  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) || "";
4645
+ }, H = async (_) => {
4646
+ var oe, U, D, ge, _e;
4647
+ a.fields.name = ((oe = _ == null ? void 0 : _.item) == null ? void 0 : oe.name) || ((U = _ == null ? void 0 : _.consumer_group) == null ? void 0 : U.name) || (_ == null ? void 0 : _.name) || "";
4570
4648
  const L = ((D = _ == null ? void 0 : _.item) == null ? void 0 : D.tags) || (_ == null ? void 0 : _.consumer_group.tags) || (_ == null ? void 0 : _.tags) || [];
4571
4649
  if (a.fields.tags = (L == null ? void 0 : L.join(", ")) || "", "consumers" in _)
4572
4650
  a.fields.consumers = ((ge = _ == null ? void 0 : _.consumers) == null ? void 0 : ge.map((ce) => ce.id)) || [];
4573
4651
  else
4574
4652
  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) : [];
4653
+ const { data: ce } = await g.get(C("getConsumers"));
4654
+ a.fields.consumers = "consumers" in ce ? (_e = ce == null ? void 0 : ce.consumers) == null ? void 0 : _e.map((Ke) => Ke.id) : [];
4577
4655
  } catch (ce) {
4578
4656
  x(ce);
4579
4657
  }
4580
4658
  Object.assign(i, a.fields);
4581
- }, w = j(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), N = () => {
4659
+ }, w = T(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), K = () => {
4582
4660
  var _, L;
4583
4661
  return {
4584
4662
  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 !== "")
4663
+ tags: (L = (_ = a.fields.tags.split(",")) == null ? void 0 : _.map((oe) => String(oe || "").trim())) == null ? void 0 : L.filter((oe) => oe !== "")
4586
4664
  };
4587
- }, B = async (_, L = "") => await m.post(k("addConsumer", L, _), { consumer: _ }), C = async (_, L = "") => await m.delete(k("removeConsumer", L, _)), x = (_) => {
4665
+ }, B = async (_, L = "") => await g.post(C("addConsumer", L, _), { consumer: _ }), k = async (_, L = "") => await g.delete(C("removeConsumer", L, _)), x = (_) => {
4588
4666
  a.errorMessage = f(_), n("error", _);
4589
- }, T = (_ = t.consumerGroupId) => {
4667
+ }, M = (_ = t.consumerGroupId) => {
4590
4668
  Object.assign(i, a.fields), n("update", { ...a.fields, id: _ });
4591
- }, P = (_, L, re = t.consumerGroupId) => {
4669
+ }, P = (_, L, oe = t.consumerGroupId) => {
4592
4670
  const U = _ == null ? void 0 : _.find((D) => D.status !== "fulfilled");
4593
4671
  U ? x({
4594
4672
  code: U.status,
4595
4673
  message: L
4596
- }) : T(re);
4674
+ }) : M(oe);
4597
4675
  }, J = async () => {
4598
4676
  let _ = "";
4599
4677
  try {
4600
- const { data: L } = await m.post(k("create"), N());
4678
+ const { data: L } = await g.post(C("create"), K());
4601
4679
  _ = "item" in L ? L.item.id : L.id;
4602
4680
  } catch (L) {
4603
4681
  x(L);
4604
4682
  }
4605
4683
  if (a.fields.consumers.length > 0 && _)
4606
4684
  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"), _);
4685
+ const L = a.fields.consumers.map((U) => B(U, _)), oe = await Promise.allSettled(L);
4686
+ P(oe, r("consumer_groups.errors.add_consumer"), _);
4609
4687
  } catch (L) {
4610
4688
  x(L);
4611
4689
  }
4612
4690
  else
4613
- a.fields.consumers.length === 0 && _ && T(_);
4691
+ a.fields.consumers.length === 0 && _ && M(_);
4614
4692
  }, Q = async () => {
4615
- var re;
4693
+ var oe;
4616
4694
  try {
4617
- ((re = t.config) == null ? void 0 : re.app) === "konnect" ? await m.put(k("edit"), N()) : await m.patch(k("edit"), N());
4695
+ ((oe = t.config) == null ? void 0 : oe.app) === "konnect" ? await g.put(C("edit"), K()) : await g.patch(C("edit"), K());
4618
4696
  } catch (U) {
4619
4697
  x(U);
4620
4698
  }
4621
4699
  const _ = a.fields.consumers.filter((U) => !i.consumers.includes(U)), L = i.consumers.filter((U) => !a.fields.consumers.includes(U));
4622
4700
  if (L.length === 0 && _.length === 0)
4623
- T();
4701
+ M();
4624
4702
  else {
4625
4703
  if (L.length > 0)
4626
4704
  try {
4627
- const U = L.map((ge) => C(ge)), D = await Promise.allSettled(U);
4705
+ const U = L.map((ge) => k(ge)), D = await Promise.allSettled(U);
4628
4706
  P(D, r("consumer_groups.errors.remove_consumer"));
4629
4707
  } catch (U) {
4630
4708
  x(U);
@@ -4647,9 +4725,9 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4647
4725
  return Qe(async () => {
4648
4726
  await d();
4649
4727
  }), (_, L) => {
4650
- const re = q("KInput"), U = q("KMultiselect");
4651
- return g(), M("div", pl, [
4652
- F(y(Cs), {
4728
+ const oe = q("KInput"), U = q("KMultiselect");
4729
+ return m(), $("div", _l, [
4730
+ F(y(Es), {
4653
4731
  "can-submit": S.value && b.value,
4654
4732
  config: e.config,
4655
4733
  "edit-id": e.consumerGroupId,
@@ -4658,17 +4736,17 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4658
4736
  "is-readonly": a.readonly,
4659
4737
  onCancel: A,
4660
4738
  "onFetch:error": L[3] || (L[3] = (D) => ne(D)),
4661
- "onFetch:success": z,
4739
+ "onFetch:success": H,
4662
4740
  onLoading: L[4] || (L[4] = (D) => pe(D)),
4663
4741
  onSubmit: X
4664
4742
  }, {
4665
4743
  default: h(() => [
4666
- F(y(un), {
4744
+ F(y(dn), {
4667
4745
  description: y(r)("consumer_groups.form.general_info.description"),
4668
4746
  title: y(r)("consumer_groups.form.general_info.title")
4669
4747
  }, {
4670
4748
  default: h(() => [
4671
- F(re, {
4749
+ F(oe, {
4672
4750
  modelValue: a.fields.name,
4673
4751
  "onUpdate:modelValue": L[0] || (L[0] = (D) => a.fields.name = D),
4674
4752
  modelModifiers: { trim: !0 },
@@ -4679,7 +4757,7 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4679
4757
  required: "",
4680
4758
  type: "text"
4681
4759
  }, null, 8, ["modelValue", "label", "placeholder"]),
4682
- F(re, {
4760
+ F(oe, {
4683
4761
  modelValue: a.fields.tags,
4684
4762
  "onUpdate:modelValue": L[1] || (L[1] = (D) => a.fields.tags = D),
4685
4763
  modelModifiers: { trim: !0 },
@@ -4697,7 +4775,7 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4697
4775
  ]),
4698
4776
  _: 1
4699
4777
  }, 8, ["description", "title"]),
4700
- F(y(un), {
4778
+ F(y(dn), {
4701
4779
  description: y(r)("consumer_groups.form.consumers.description"),
4702
4780
  "has-divider": "",
4703
4781
  title: y(r)("consumer_groups.form.consumers.title")
@@ -4719,8 +4797,8 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4719
4797
  "item-template": h(({ item: D }) => {
4720
4798
  var ge, _e, ce;
4721
4799
  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)
4800
+ V("div", wl, N(D.label), 1),
4801
+ (ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (m(), $("div", Il, N((ce = D == null ? void 0 : D.data) == null ? void 0 : ce.custom_id), 1)) : G("", !0)
4724
4802
  ];
4725
4803
  }),
4726
4804
  _: 1
@@ -4735,7 +4813,7 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4735
4813
  };
4736
4814
  }
4737
4815
  });
4738
- const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { class: "kong-ui-consumer-group-entity-config-card" }, jl = /* @__PURE__ */ ae({
4816
+ const Ll = /* @__PURE__ */ Ft(Al, [["__scopeId", "data-v-102d40d2"]]), Sl = { class: "kong-ui-consumer-group-entity-config-card" }, ql = /* @__PURE__ */ re({
4739
4817
  __name: "ConsumerGroupConfigCard",
4740
4818
  props: {
4741
4819
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4762,7 +4840,7 @@ const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { cl
4762
4840
  },
4763
4841
  emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
4764
4842
  setup(e) {
4765
- const n = e, { i18n: { t } } = ct.useI18n(), r = j(() => $e.form[n.config.app].edit), o = E({
4843
+ const n = e, { i18n: { t } } = ct.useI18n(), r = T(() => $e.form[n.config.app].edit), o = O({
4766
4844
  id: {},
4767
4845
  name: {},
4768
4846
  created_at: {},
@@ -4771,8 +4849,8 @@ const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { cl
4771
4849
  tooltip: t("consumer_groups.form.fields.tags.tooltip")
4772
4850
  }
4773
4851
  });
4774
- return (a, i) => (g(), M("div", yl, [
4775
- F(y(hs), {
4852
+ return (a, i) => (m(), $("div", Sl, [
4853
+ F(y(xs), {
4776
4854
  config: e.config,
4777
4855
  "config-card-doc": e.configCardDoc,
4778
4856
  "config-schema": o.value,
@@ -4788,7 +4866,7 @@ const $l = /* @__PURE__ */ Ft(gl, [["__scopeId", "data-v-102d40d2"]]), yl = { cl
4788
4866
  }
4789
4867
  });
4790
4868
  export {
4791
- jl as ConsumerGroupConfigCard,
4792
- $l as ConsumerGroupForm,
4793
- Tl as ConsumerGroupList
4869
+ ql as ConsumerGroupConfigCard,
4870
+ Ll as ConsumerGroupForm,
4871
+ Pl as ConsumerGroupList
4794
4872
  };