@kong-ui-public/entities-consumer-groups 1.3.4-pr.906.d557b5ac.0 → 1.3.4

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