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