@kong-ui-public/entities-shared 3.33.2-pr.2665.c4241e722.0 → 3.33.2

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,36 +1,21 @@
1
- import { inject as Pt, ref as N, computed as $, unref as T, toValue as ye, watch as be, toRef as Jn, provide as Dt, defineComponent as z, createBlock as j, openBlock as m, resolveDynamicComponent as Pe, normalizeClass as fe, withCtx as k, createElementBlock as S, createCommentVNode as M, createElementVNode as B, toDisplayString as L, Fragment as ue, renderList as ce, resolveComponent as D, createVNode as K, createTextVNode as U, useCssVars as Ut, useId as Gn, useSlots as De, renderSlot as P, createSlots as Se, normalizeProps as zn, guardReactiveProps as Qn, mergeProps as qt, onMounted as nt, onBeforeMount as it, withModifiers as Be, Teleport as Ht, onUnmounted as Zn, withDirectives as xe, vShow as Ce, withKeys as Xn, warn as ei } from "vue";
1
+ import { inject as Dt, ref as K, computed as F, unref as $, toValue as he, watch as be, toRef as Yn, provide as Pt, defineComponent as z, createBlock as j, openBlock as m, resolveDynamicComponent as je, normalizeClass as fe, withCtx as w, createElementBlock as S, createCommentVNode as N, createElementVNode as R, toDisplayString as L, Fragment as ue, renderList as ce, resolveComponent as P, createVNode as M, createTextVNode as q, useCssVars as Ut, useId as Wn, useSlots as De, renderSlot as D, createSlots as Se, normalizeProps as Jn, guardReactiveProps as Gn, mergeProps as qt, onMounted as tt, onBeforeMount as nt, withModifiers as Le, Teleport as Ht, onUnmounted as zn, withDirectives as xe, vShow as Ce, withKeys as Qn, warn as Zn } from "vue";
2
2
  import pt from "axios";
3
- import { createI18n as ti, i18nTComponent as ni } from "@kong-ui-public/i18n";
4
- import { BadgeMethodAppearances as ii, KButton as mt, KTruncate as ri, KBadge as ai } from "@kong/kongponents";
5
- import { BookIcon as Vt, AddIcon as Yt, CloseIcon as oi, ChevronDownIcon as li, CopyIcon as si } from "@kong/icons";
6
- import { useRouter as ci } from "vue-router";
7
- var ui = /* @__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.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(ui || {}), di = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(di || {}), me = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(me || {}), Ee = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Partial = "partial", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.ProducePolicy = "produce_policy", e.ConsumePolicy = "consume_policy", e.ClusterPolicy = "cluster_policy", e.ListenerPolicy = "listener_policy", e.SchemaRegistry = "schema_registry", e.StaticKey = "static_key", e.Other = "other", e))(Ee || {});
8
- const Ue = Object.values(Ee), fi = [
9
- "ca_certificate",
10
- "certificate",
11
- "consumer",
12
- "consumer_group",
13
- "service",
14
- "key",
15
- "set",
16
- "plugin",
17
- "route",
18
- "upstream",
19
- "target",
20
- "vault",
21
- "partial"
22
- /* Partial */
23
- ], pi = ["backend_cluster", "virtual_cluster", "listener", "produce_policy", "consume_policy", "cluster_policy", "listener_policy", "schema_registry", "static_key"];
3
+ import { createI18n as Xn, i18nTComponent as ei } from "@kong-ui-public/i18n";
4
+ import { BadgeMethodAppearances as ti, KButton as mt, KTruncate as ni, KBadge as ii } from "@kong/kongponents";
5
+ import { BookIcon as Vt, AddIcon as Yt, CloseIcon as ri, ChevronDownIcon as ai, CopyIcon as oi } from "@kong/icons";
6
+ import { useRouter as li } from "vue-router";
7
+ var si = /* @__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.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(si || {}), ci = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(ci || {}), me = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(me || {}), it = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Partial = "partial", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.ProducePolicy = "produce_policy", e.ConsumePolicy = "consume_policy", e.ClusterPolicy = "cluster_policy", e.ListenerPolicy = "listener_policy", e.SchemaRegistry = "schema_registry", e.StaticKey = "static_key", e.Other = "other", e))(it || {});
8
+ const Pe = Object.values(it), ui = ["backend_cluster", "virtual_cluster", "listener", "produce_policy", "consume_policy", "cluster_policy", "listener_policy", "schema_registry", "static_key"];
24
9
  var V = /* @__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.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(V || {}), ae = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e.Policy = "policy", e))(ae || {});
25
- const yt = [
10
+ const ht = [
26
11
  "primary",
27
12
  "secondary"
28
13
  ];
29
- function mi() {
14
+ function di() {
30
15
  return {
31
16
  getAxiosInstance: (e = {}) => {
32
17
  try {
33
- const t = Pt("get-axios-instance", void 0);
18
+ const t = Dt("get-axios-instance", void 0);
34
19
  return typeof t == "function" ? t(e) : pt.create({
35
20
  withCredentials: !0,
36
21
  timeout: 3e4,
@@ -50,7 +35,7 @@ function mi() {
50
35
  }
51
36
  };
52
37
  }
53
- function yi() {
38
+ function fi() {
54
39
  return {
55
40
  debounce: (e, t) => {
56
41
  let n;
@@ -62,13 +47,13 @@ function yi() {
62
47
  }
63
48
  };
64
49
  }
65
- const Ve = "khcp-user-table-preferences", gi = {
50
+ const He = "khcp-user-table-preferences", pi = {
66
51
  pageSize: 30,
67
52
  sortColumnKey: void 0,
68
53
  sortColumnOrder: void 0,
69
54
  columnVisibility: {}
70
55
  };
71
- function hi() {
56
+ function mi() {
72
57
  const e = (n) => {
73
58
  if (typeof n == "string")
74
59
  try {
@@ -78,44 +63,44 @@ function hi() {
78
63
  return;
79
64
  }
80
65
  }, t = () => {
81
- const n = e(localStorage.getItem(Ve));
66
+ const n = e(localStorage.getItem(He));
82
67
  return !n || !Object.keys(n).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(n));
83
68
  };
84
69
  return {
85
70
  setTablePreferences: (n, i) => {
86
71
  try {
87
72
  const r = t();
88
- r.set(n, i), localStorage.setItem(Ve, JSON.stringify(Object.fromEntries(r.entries())));
73
+ r.set(n, i), localStorage.setItem(He, JSON.stringify(Object.fromEntries(r.entries())));
89
74
  } catch (r) {
90
75
  console.error("useTablePreferences(setTablePreferences)", r);
91
76
  }
92
77
  },
93
78
  getTablePreferences: (n, i) => {
94
79
  const r = t();
95
- return (r == null ? void 0 : r.get(n)) || void 0 || i || gi;
80
+ return (r == null ? void 0 : r.get(n)) || void 0 || i || pi;
96
81
  },
97
82
  deleteAllTablePreferences: () => {
98
- localStorage.removeItem(Ve);
83
+ localStorage.removeItem(He);
99
84
  }
100
85
  };
101
86
  }
102
87
  function rt(e = {}) {
103
- const { getAxiosInstance: t } = mi();
88
+ const { getAxiosInstance: t } = di();
104
89
  return {
105
90
  axiosInstance: t(e)
106
91
  };
107
92
  }
108
- const vi = {
93
+ const hi = {
109
94
  actions: {
110
95
  copyId: "Copy ID",
111
96
  copied_id: 'Copied "{id}" to the clipboard',
112
97
  copyToClipboard: "Copied successfully!",
113
98
  copyToClipboardFailed: "Failed to copy to the clipboard"
114
99
  }
115
- }, bi = {
100
+ }, gi = {
116
101
  message: "Are you sure you want to delete this {entityType}?",
117
102
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
118
- }, xi = {
103
+ }, yi = {
119
104
  actions: {
120
105
  viewConfiguration: "View Configuration",
121
106
  save: "Save",
@@ -127,19 +112,18 @@ const vi = {
127
112
  message: "Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML or JSON. This allows for straightforward importing into APIOps tools like decK with YAML, or Insomnia and cURL with JSON.",
128
113
  yaml: "YAML",
129
114
  json: "JSON",
130
- terraform: "Terraform",
131
- deck: "decK"
115
+ terraform: "Terraform"
132
116
  },
133
117
  errors: {
134
118
  edit: "The entity could not be edited at this time."
135
119
  }
136
- }, Ci = {
120
+ }, vi = {
137
121
  emptyState: {
138
122
  noSearchResultsTitle: "No results found",
139
123
  noSearchResultsMessage: "Please adjust the criteria and try again.",
140
124
  noSearchResultsCtaText: "Clear"
141
125
  }
142
- }, ki = {
126
+ }, bi = {
143
127
  title: "Configuration",
144
128
  actions: {
145
129
  copy: "Copy JSON"
@@ -176,10 +160,10 @@ const vi = {
176
160
  entryTitle: "Entry {index}",
177
161
  structuredFormat: "Structured"
178
162
  }
179
- }, Ai = {
163
+ }, xi = {
180
164
  learnMore: "Learn more",
181
165
  pricingTitle: "Pricing: "
182
- }, _i = {
166
+ }, Ci = {
183
167
  filterButtonText: "Filter",
184
168
  fieldLabel: "Filter by:",
185
169
  inputPlaceholder: "Enter a value",
@@ -187,17 +171,17 @@ const vi = {
187
171
  applyButtonText: "Apply",
188
172
  clearButtonText: "Clear",
189
173
  clearAllButtonText: "Clear all filters"
190
- }, wi = {
174
+ }, ki = {
191
175
  errors: {
192
176
  fetch: "Could not fetch available items",
193
177
  invalid: "Please select a valid value"
194
178
  }
195
- }, Si = {
179
+ }, Ai = {
196
180
  unexpected: "An unexpected error has occurred",
197
181
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
198
- }, $i = {
182
+ }, _i = {
199
183
  utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
200
- }, Ti = {
184
+ }, wi = {
201
185
  enable: {
202
186
  title: "Enable {entityType}",
203
187
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -208,24 +192,24 @@ const vi = {
208
192
  message: "Are you sure you want to disable the {entityType} {entityName}?",
209
193
  confirmText: "Yes, disable"
210
194
  }
211
- }, Ei = {
212
- global: vi,
213
- deleteModal: bi,
214
- baseForm: xi,
215
- baseTable: Ci,
216
- baseConfigCard: ki,
217
- emptyState: Ai,
218
- filter: _i,
219
- debouncedFilter: wi,
220
- errors: Si,
221
- validationErrors: $i,
222
- toggleModal: Ti
195
+ }, Si = {
196
+ global: hi,
197
+ deleteModal: gi,
198
+ baseForm: yi,
199
+ baseTable: vi,
200
+ baseConfigCard: bi,
201
+ emptyState: xi,
202
+ filter: Ci,
203
+ debouncedFilter: ki,
204
+ errors: Ai,
205
+ validationErrors: _i,
206
+ toggleModal: wi
223
207
  };
224
- function qe() {
225
- const e = ti("en-us", Ei);
208
+ function Ue() {
209
+ const e = Xn("en-us", Si);
226
210
  return {
227
211
  i18n: e,
228
- i18nT: ni(e)
212
+ i18nT: ei(e)
229
213
  // Translation component <i18n-t>
230
214
  };
231
215
  }
@@ -271,69 +255,69 @@ function Wt() {
271
255
  isValidUuid: (o) => o ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(o) : !1
272
256
  };
273
257
  }
274
- function Ii(e, t, n, i = {
258
+ function $i(e, t, n, i = {
275
259
  fetchedItemsKey: "data",
276
260
  searchKeys: ["id"]
277
261
  }) {
278
262
  n || (n = "1000");
279
- const { axiosInstance: r } = rt(e.axiosRequestConfig), { i18n: { t: o } } = qe(), { debounce: a } = yi(), s = a(async (E) => {
280
- await C(E);
281
- }, 200), l = N(!1), c = N(""), d = N(""), u = N([]), p = N([]), g = N(void 0), y = $(() => {
282
- const E = `${e.apiBaseUrl}${T(t)}`;
283
- return e.app === "konnect" ? E.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? E.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : E;
284
- }), { isValidUuid: x } = Wt(), h = async () => {
263
+ const { axiosInstance: r } = rt(e.axiosRequestConfig), { i18n: { t: o } } = Ue(), { debounce: a } = fi(), s = a(async (T) => {
264
+ await C(T);
265
+ }, 200), l = K(!1), c = K(""), d = K(""), u = K([]), p = K([]), g = K(void 0), h = F(() => {
266
+ const T = `${e.apiBaseUrl}${$(t)}`;
267
+ return e.app === "konnect" ? T.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? T.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : T;
268
+ }), { isValidUuid: x } = Wt(), y = async () => {
285
269
  try {
286
270
  l.value = !0;
287
- const { data: E } = await r.get(`${y.value}?size=${n}`);
288
- E != null && E.next || (g.value = i.fetchedItemsKey in E ? E[i.fetchedItemsKey] : []), p.value = i.fetchedItemsKey in E ? E[i.fetchedItemsKey] : [], u.value = p.value;
271
+ const { data: T } = await r.get(`${h.value}?size=${n}`);
272
+ T != null && T.next || (g.value = i.fetchedItemsKey in T ? T[i.fetchedItemsKey] : []), p.value = i.fetchedItemsKey in T ? T[i.fetchedItemsKey] : [], u.value = p.value;
289
273
  } catch {
290
274
  u.value = [], c.value = o("debouncedFilter.errors.fetch");
291
275
  } finally {
292
276
  l.value = !1;
293
277
  }
294
- }, A = N(""), C = async (E) => {
295
- var Y, X, w;
296
- if (A.value !== E) {
297
- if (A.value = E ?? "", !E) {
278
+ }, k = K(""), C = async (T) => {
279
+ var W, X, _;
280
+ if (k.value !== T) {
281
+ if (k.value = T ?? "", !T) {
298
282
  u.value = p.value;
299
283
  return;
300
284
  }
301
285
  if (g.value === void 0)
302
286
  try {
303
287
  if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
304
- const _ = `${y.value}/${E}`, { data: O } = await r.get(`${_}?size=${n}`);
288
+ const A = `${h.value}/${T}`, { data: O } = await r.get(`${A}?size=${n}`);
305
289
  i.fetchedItemsKey in O ? u.value = O[i.fetchedItemsKey] : O != null && O[i.exactMatchKey ?? "id"] ? u.value = [O] : u.value = [];
306
290
  } else {
307
- const _ = [];
308
- x(E) && i.searchKeys.includes("id") ? _.push((async () => {
309
- const { data: v } = await r.get(`${y.value}/${E}`);
291
+ const A = [];
292
+ x(T) && i.searchKeys.includes("id") ? A.push((async () => {
293
+ const { data: v } = await r.get(`${h.value}/${T}`);
310
294
  return [v[i.fetchedItemsKey] ?? v];
311
- })()) : _.push(
295
+ })()) : A.push(
312
296
  ...i.searchKeys.filter((v) => v !== "id").map(async (v) => {
313
- const { data: b } = await r.get(`${y.value}?${v}=${E}`);
297
+ const { data: b } = await r.get(`${h.value}?${v}=${T}`);
314
298
  return b[i.fetchedItemsKey];
315
299
  })
316
300
  );
317
- const O = await Promise.all(_), f = /* @__PURE__ */ new Set();
318
- u.value = [], (Y = O == null ? void 0 : O.forEach) == null || Y.call(O, (v) => {
301
+ const O = await Promise.all(A), f = /* @__PURE__ */ new Set();
302
+ u.value = [], (W = O == null ? void 0 : O.forEach) == null || W.call(O, (v) => {
319
303
  var b;
320
304
  (b = v == null ? void 0 : v.forEach) == null || b.call(v, (H) => {
321
305
  f.has(H.id) || (f.add(H.id), u.value.push(H));
322
306
  });
323
307
  });
324
308
  }
325
- } catch (_) {
326
- ((X = _ == null ? void 0 : _.response) == null ? void 0 : X.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
309
+ } catch (A) {
310
+ ((X = A == null ? void 0 : A.response) == null ? void 0 : X.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
327
311
  } finally {
328
312
  l.value = !1;
329
313
  }
330
314
  else
331
- l.value = !0, d.value = "", u.value = (w = g.value) == null ? void 0 : w.filter((_) => {
315
+ l.value = !0, d.value = "", u.value = (_ = g.value) == null ? void 0 : _.filter((A) => {
332
316
  var f;
333
317
  let O = !1;
334
318
  for (const v of i.searchKeys) {
335
- const b = typeof _[v] == "string" ? (f = _[v]) == null ? void 0 : f.toLowerCase() : _[v];
336
- b != null && b.includes(E.toLowerCase()) && (O = !0);
319
+ const b = typeof A[v] == "string" ? (f = A[v]) == null ? void 0 : f.toLowerCase() : A[v];
320
+ b != null && b.includes(T.toLowerCase()) && (O = !0);
337
321
  }
338
322
  return O;
339
323
  }), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid")), l.value = !1;
@@ -345,18 +329,18 @@ function Ii(e, t, n, i = {
345
329
  validationError: d,
346
330
  results: u,
347
331
  allRecords: g,
348
- loadItems: h,
332
+ loadItems: y,
349
333
  debouncedQueryChange: s
350
334
  };
351
335
  }
352
- function Fi(e, t) {
353
- const n = T(t), i = $(
336
+ function Ti(e, t) {
337
+ const n = $(t), i = F(
354
338
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
355
339
  );
356
340
  return i.value.search = "", (r) => `${i.value.href}/${r}`;
357
341
  }
358
- function Oi() {
359
- const { i18n: { t: e } } = qe();
342
+ function Ii() {
343
+ const { i18n: { t: e } } = Ue();
360
344
  return {
361
345
  getErrorFieldsFromError: (i) => {
362
346
  var a, s, l;
@@ -427,7 +411,7 @@ function Oi() {
427
411
  }
428
412
  };
429
413
  }
430
- function Li(e) {
414
+ function Ei(e) {
431
415
  const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
432
416
  try {
433
417
  const i = e.join("/"), r = `${n}${i}`, o = e.some((s) => s.trim() === "");
@@ -439,71 +423,71 @@ function Li(e) {
439
423
  }
440
424
  }
441
425
  function Jt(e, t) {
442
- const n = $(() => {
443
- const r = ye(e);
426
+ const n = F(() => {
427
+ const r = he(e);
444
428
  return r.app === "konnect" || !!r.isExactMatch;
445
- }), i = $(() => {
446
- const r = ye(t);
429
+ }), i = F(() => {
430
+ const r = he(t);
447
431
  return r.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r);
448
432
  });
449
433
  return (r) => {
450
434
  const { page: o, pageSize: a, offset: s, sortColumnKey: l, sortColumnOrder: c, query: d } = r;
451
435
  try {
452
436
  let u = new URL(i.value.href);
453
- return n.value && d ? (u.search = "", u = ye(e).isExactMatch ? new URL(`${u.href}/${d}`) : new URL(`${u.href}?filter[name][contains]=${d}`)) : (n.value || new URLSearchParams(d).forEach((p, g) => {
437
+ return n.value && d ? (u.search = "", u = he(e).isExactMatch ? new URL(`${u.href}/${d}`) : new URL(`${u.href}?filter[name][contains]=${d}`)) : (n.value || new URLSearchParams(d).forEach((p, g) => {
454
438
  u.searchParams.append(g, p);
455
439
  }), l && u.searchParams.append("sort_by", l), c === "desc" && u.searchParams.append("sort_desc", "1"), u.searchParams.append("size", String(a))), s && o !== 1 && u.searchParams.append("offset", String(s)), u.href;
456
440
  } catch (u) {
457
- return console.error("RouteList(fetcher)", u), ye(t);
441
+ return console.error("RouteList(fetcher)", u), he(t);
458
442
  }
459
443
  };
460
444
  }
461
445
  const gt = /* @__PURE__ */ new Map();
462
- function Bi(e, t, n) {
463
- const i = N(!0), r = ye(e), { axiosInstance: o } = rt(r.axiosRequestConfig), a = Jt(e, t), s = N({
446
+ function Fi(e, t, n) {
447
+ const i = K(!0), r = he(e), { axiosInstance: o } = rt(r.axiosRequestConfig), a = Jt(e, t), s = K({
464
448
  status: me.Idle
465
449
  }), l = async (u) => {
466
450
  var g;
467
- const p = ye(n) || "data";
451
+ const p = he(n) || "data";
468
452
  try {
469
453
  s.value = i.value ? { status: me.InitialLoad } : { status: me.Loading }, i.value = !1;
470
- let y = a(u);
471
- y.includes("filter[name]") && (y = `${y}&page[size]=${u.pageSize}&page[number]=${u.page}`);
472
- const x = await o.get(y);
454
+ let h = a(u);
455
+ h.includes("filter[name]") && (h = `${h}&page[size]=${u.pageSize}&page[number]=${u.page}`);
456
+ const x = await o.get(h);
473
457
  if (x.status >= 400)
474
458
  throw x;
475
- const h = x.data, A = p && p.replace(/[^\w-_]/gi, "");
459
+ const y = x.data, k = p && p.replace(/[^\w-_]/gi, "");
476
460
  let C;
477
- h[A] ? C = Array.isArray(h[A]) ? h[A] : [h[A]] : Array.isArray(h) ? C = h : C = Object.keys(h).length ? [h] : [];
478
- const E = {
461
+ y[k] ? C = Array.isArray(y[k]) ? y[k] : [y[k]] : Array.isArray(y) ? C = y : C = Object.keys(y).length ? [y] : [];
462
+ const T = {
479
463
  data: C,
480
464
  total: C.length,
481
- ...h.offset ? {
465
+ ...y.offset ? {
482
466
  pagination: {
483
- offset: h.offset
467
+ offset: y.offset
484
468
  }
485
469
  } : null
486
470
  };
487
- return E.data.length === 0 && !u.query ? s.value = {
471
+ return T.data.length === 0 && !u.query ? s.value = {
488
472
  status: me.NoRecords,
489
- response: E
473
+ response: T
490
474
  } : s.value = {
491
475
  status: me.Idle,
492
- response: E
493
- }, E;
494
- } catch (y) {
476
+ response: T
477
+ }, T;
478
+ } catch (h) {
495
479
  const x = {
496
480
  data: [],
497
481
  total: 0
498
482
  };
499
- return u.query && (((g = y.response) == null ? void 0 : g.status) === 404 || y.status === 404) ? (s.value = {
483
+ return u.query && (((g = h.response) == null ? void 0 : g.status) === 404 || h.status === 404) ? (s.value = {
500
484
  status: me.NoResults,
501
485
  response: x,
502
- error: y.response ? y : { response: y }
486
+ error: h.response ? h : { response: h }
503
487
  }, x) : (s.value = {
504
488
  status: me.Error,
505
489
  response: x,
506
- error: y.response ? y : { response: y }
490
+ error: h.response ? h : { response: h }
507
491
  }, x);
508
492
  }
509
493
  }, c = r.cacheIdentifier, d = Gt(c);
@@ -512,18 +496,18 @@ function Bi(e, t, n) {
512
496
  function Gt(e) {
513
497
  if (e) {
514
498
  let t = gt.get(e);
515
- return t || (t = N(1), gt.set(e, t)), t;
499
+ return t || (t = K(1), gt.set(e, t)), t;
516
500
  }
517
- return N(1);
501
+ return K(1);
518
502
  }
519
- function Ri() {
503
+ function Oi() {
520
504
  const e = (i, r = "_") => i ? i.split(r).map((o) => o.toLowerCase() === "id" ? o.toUpperCase() : o.charAt(0).toUpperCase() + o.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
521
505
  return {
522
506
  capitalize: (i) => i ? i.replace(t, (r) => r.toUpperCase()) : "",
523
507
  convertKeyToTitle: e
524
508
  };
525
509
  }
526
- const zt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ht = (e) => {
510
+ const zt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, yt = (e) => {
527
511
  if (typeof e != "string")
528
512
  throw new TypeError("Invalid argument expected string");
529
513
  const t = e.match(zt);
@@ -533,24 +517,24 @@ const zt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
533
517
  }, vt = (e) => e === "*" || e === "x" || e === "X", bt = (e) => {
534
518
  const t = parseInt(e, 10);
535
519
  return isNaN(t) ? e : t;
536
- }, Ki = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Ni = (e, t) => {
520
+ }, Li = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Bi = (e, t) => {
537
521
  if (vt(e) || vt(t))
538
522
  return 0;
539
- const [n, i] = Ki(bt(e), bt(t));
523
+ const [n, i] = Li(bt(e), bt(t));
540
524
  return n > i ? 1 : n < i ? -1 : 0;
541
525
  }, xt = (e, t) => {
542
526
  for (let n = 0; n < Math.max(e.length, t.length); n++) {
543
- const i = Ni(e[n] || "0", t[n] || "0");
527
+ const i = Bi(e[n] || "0", t[n] || "0");
544
528
  if (i !== 0)
545
529
  return i;
546
530
  }
547
531
  return 0;
548
- }, Mi = (e, t) => {
549
- const n = ht(e), i = ht(t), r = n.pop(), o = i.pop(), a = xt(n, i);
532
+ }, Ri = (e, t) => {
533
+ const n = yt(e), i = yt(t), r = n.pop(), o = i.pop(), a = xt(n, i);
550
534
  return a !== 0 ? a : r && o ? xt(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
551
535
  }, Ct = (e, t, n) => {
552
- ji(n);
553
- const i = Mi(e, t);
536
+ Ki(n);
537
+ const i = Ri(e, t);
554
538
  return Qt[n].includes(i);
555
539
  }, Qt = {
556
540
  ">": [1],
@@ -559,18 +543,18 @@ const zt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
559
543
  "<=": [-1, 0],
560
544
  "<": [-1],
561
545
  "!=": [-1, 1]
562
- }, kt = Object.keys(Qt), ji = (e) => {
546
+ }, kt = Object.keys(Qt), Ki = (e) => {
563
547
  if (typeof e != "string")
564
548
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
565
549
  if (kt.indexOf(e) === -1)
566
550
  throw new Error(`Invalid operator, expected one of ${kt.join("|")}`);
567
- }, Pi = (e) => typeof e == "string" && /^[v\d]/.test(e) && zt.test(e);
568
- function Di(e) {
551
+ }, Ni = (e) => typeof e == "string" && /^[v\d]/.test(e) && zt.test(e);
552
+ function Mi(e) {
569
553
  const { gatewayInfo: t, supportedRange: n } = e;
570
554
  if (!t)
571
555
  return !0;
572
556
  const { edition: i, version: r } = t;
573
- if (!Pi(r))
557
+ if (!Ni(r))
574
558
  return console.error("Invalid version"), !1;
575
559
  const o = n[i];
576
560
  if (!o)
@@ -578,64 +562,64 @@ function Di(e) {
578
562
  const [a, s] = o;
579
563
  return !(a && Ct(r, a, "<") || s && Ct(r, s, ">"));
580
564
  }
581
- function Ui(e) {
582
- const t = N(0), n = N(0), i = N(!1);
565
+ function ji(e) {
566
+ const t = K(0), n = K(0), i = K(!1);
583
567
  return be(e, (o) => {
584
568
  o && !i.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, i.value = !0);
585
569
  }), {
586
- isTruncated: $(() => t.value < n.value)
570
+ isTruncated: F(() => t.value < n.value)
587
571
  };
588
572
  }
589
- function qi() {
590
- const { i18n: { t: e } } = qe();
573
+ function Di() {
574
+ const { i18n: { t: e } } = Ue();
591
575
  return {
592
576
  utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
593
577
  };
594
578
  }
595
- const ze = Symbol("schema"), Hi = (e) => {
596
- Dt(ze, e);
597
- }, Vi = (e) => {
579
+ const Ge = Symbol("schema"), Pi = (e) => {
580
+ Pt(Ge, e);
581
+ }, Ui = (e) => {
598
582
  var r, o;
599
- const t = Pt(ze, void 0), n = (o = (r = t == null ? void 0 : t.value) == null ? void 0 : r.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), i = Jn(n == null ? void 0 : n[e]);
600
- return Dt(ze, i), i;
583
+ const t = Dt(Ge, void 0), n = (o = (r = t == null ? void 0 : t.value) == null ? void 0 : r.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), i = Yn(n == null ? void 0 : n[e]);
584
+ return Pt(Ge, i), i;
601
585
  };
602
- function Yi(e) {
586
+ function qi(e) {
603
587
  let t = "";
604
- const n = N(!1), i = N(null), r = $(() => {
588
+ const n = K(!1), i = K(null), r = F(() => {
605
589
  let a;
606
- return n.value ? a = !0 : i.value ? a = i.value.hasData || e && ye(e) : a = !1, !a;
590
+ return n.value ? a = !0 : i.value ? a = i.value.hasData || e && he(e) : a = !1, !a;
607
591
  });
608
592
  return {
609
593
  tableState: i,
610
594
  hasRecords: n,
611
595
  hideTableToolbar: r,
612
596
  handleStateChange: (a) => {
613
- a.hasData ? n.value = !0 : a.state === "success" && !a.hasData && (!e || !t) && (n.value = !1), e && (t = ye(e)), i.value = { ...a };
597
+ a.hasData ? n.value = !0 : a.state === "success" && !a.hasData && (!e || !t) && (n.value = !1), e && (t = he(e)), i.value = { ...a };
614
598
  }
615
599
  };
616
600
  }
617
- const W = {
601
+ const Y = {
618
602
  useAxios: rt,
619
- useDebouncedFilter: Ii,
620
- useDeleteUrlBuilder: Fi,
621
- useErrors: Oi,
622
- useExternalLinkCreator: Li,
623
- useFetcher: Bi,
603
+ useDebouncedFilter: $i,
604
+ useDeleteUrlBuilder: Ti,
605
+ useErrors: Ii,
606
+ useExternalLinkCreator: Ei,
607
+ useFetcher: Fi,
624
608
  useFetcherCacheKey: Gt,
625
609
  useFetchUrlBuilder: Jt,
626
610
  useHelpers: Wt,
627
- useStringHelpers: Ri,
628
- useI18n: qe,
629
- useGatewayFeatureSupported: Di,
630
- useTruncationDetector: Ui,
631
- useValidators: qi,
632
- useSchemaProvider: Hi,
633
- useSubSchema: Vi,
634
- useTableState: Yi
635
- }, Wi = {
611
+ useStringHelpers: Oi,
612
+ useI18n: Ue,
613
+ useGatewayFeatureSupported: Mi,
614
+ useTruncationDetector: ji,
615
+ useValidators: Di,
616
+ useSchemaProvider: Pi,
617
+ useSubSchema: Ui,
618
+ useTableState: qi
619
+ }, Hi = {
636
620
  key: 0,
637
621
  class: "config-card-fieldset-title"
638
- }, Ji = /* @__PURE__ */ z({
622
+ }, Vi = /* @__PURE__ */ z({
639
623
  __name: "JsonCardItem",
640
624
  props: {
641
625
  item: {
@@ -652,25 +636,25 @@ const W = {
652
636
  }
653
637
  },
654
638
  setup(e) {
655
- const t = e, { i18n: { t: n } } = W.useI18n(), { convertKeyToTitle: i } = W.useStringHelpers(), r = $(() => t.item.key ?? "json-array-item"), o = $(() => t.item.value ?? t.item), a = $(() => {
639
+ const t = e, { i18n: { t: n } } = Y.useI18n(), { convertKeyToTitle: i } = Y.useStringHelpers(), r = F(() => t.item.key ?? "json-array-item"), o = F(() => t.item.value ?? t.item), a = F(() => {
656
640
  const l = JSON.parse(JSON.stringify(o.value));
657
641
  return t.isArrayItem && delete l.name, l;
658
- }), s = $(() => {
642
+ }), s = F(() => {
659
643
  var l;
660
644
  return t.isArrayItem ? (l = o.value) != null && l.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
661
645
  });
662
- return (l, c) => (m(), j(Pe(e.isArrayItem ? "fieldset" : "div"), {
646
+ return (l, c) => (m(), j(je(e.isArrayItem ? "fieldset" : "div"), {
663
647
  class: fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
664
648
  }, {
665
- default: k(() => [
666
- e.isArrayItem ? (m(), S("legend", Wi, [
667
- B("b", null, L(s.value), 1)
668
- ])) : M("", !0),
649
+ default: w(() => [
650
+ e.isArrayItem ? (m(), S("legend", Hi, [
651
+ R("b", null, L(s.value), 1)
652
+ ])) : N("", !0),
669
653
  (m(!0), S(ue, null, ce(Object.keys(a.value), (d, u) => (m(), j(Xt, {
670
654
  key: `${r.value}-property-${u}`,
671
655
  item: {
672
656
  key: d,
673
- label: T(i)(d),
657
+ label: $(i)(d),
674
658
  value: a.value[d]
675
659
  }
676
660
  }, null, 8, ["item"]))), 128))
@@ -683,7 +667,7 @@ const W = {
683
667
  for (const [i, r] of t)
684
668
  n[i] = r;
685
669
  return n;
686
- }, Zt = /* @__PURE__ */ se(Ji, [["__scopeId", "data-v-dc1e39a1"]]), Gi = /* @__PURE__ */ z({
670
+ }, Zt = /* @__PURE__ */ se(Vi, [["__scopeId", "data-v-dc1e39a1"]]), Yi = /* @__PURE__ */ z({
687
671
  __name: "InternalLinkItem",
688
672
  props: {
689
673
  item: {
@@ -693,24 +677,24 @@ const W = {
693
677
  },
694
678
  emits: ["navigation-click"],
695
679
  setup(e) {
696
- const { i18n: { t } } = W.useI18n();
680
+ const { i18n: { t } } = Y.useI18n();
697
681
  return (n, i) => {
698
- const r = D("KButton");
682
+ const r = P("KButton");
699
683
  return m(), S("div", null, [
700
- K(r, {
684
+ M(r, {
701
685
  appearance: "tertiary",
702
686
  class: "navigation-button",
703
687
  onClick: i[0] || (i[0] = (o) => n.$emit("navigation-click", e.item))
704
688
  }, {
705
- default: k(() => [
706
- U(L(e.item.value || T(t)("baseConfigCard.commonFields.link")), 1)
689
+ default: w(() => [
690
+ q(L(e.item.value || $(t)("baseConfigCard.commonFields.link")), 1)
707
691
  ]),
708
692
  _: 1
709
693
  })
710
694
  ]);
711
695
  };
712
696
  }
713
- }), zi = /* @__PURE__ */ se(Gi, [["__scopeId", "data-v-2feb8c2e"]]), Qi = /* @__PURE__ */ z({
697
+ }), Wi = /* @__PURE__ */ se(Yi, [["__scopeId", "data-v-2feb8c2e"]]), Ji = /* @__PURE__ */ z({
714
698
  __name: "StatusBadge",
715
699
  props: {
716
700
  status: {
@@ -719,24 +703,24 @@ const W = {
719
703
  }
720
704
  },
721
705
  setup(e) {
722
- const { i18n: { t } } = W.useI18n();
706
+ const { i18n: { t } } = Y.useI18n();
723
707
  return (n, i) => {
724
- const r = D("KBadge");
708
+ const r = P("KBadge");
725
709
  return m(), j(r, {
726
710
  appearance: e.status ? "success" : "neutral"
727
711
  }, {
728
- default: k(() => [
729
- U(L(e.status ? T(t)("baseConfigCard.statusBadge.enabledLabel") : T(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
712
+ default: w(() => [
713
+ q(L(e.status ? $(t)("baseConfigCard.statusBadge.enabledLabel") : $(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
730
714
  ]),
731
715
  _: 1
732
716
  }, 8, ["appearance"]);
733
717
  };
734
718
  }
735
- }), Zi = "#0044f4", Xi = "#e0e4ea", er = "#afb7c5", tr = "#0044f4", nr = "1px", ir = "16px", rr = "20px", ar = { class: "config-card-details-row" }, or = ["data-testid"], lr = ["data-testid"], sr = ["data-testid"], cr = ["data-testid"], ur = { key: 1 }, dr = ["data-testid"], fr = ["data-testid"], pr = ["data-testid"], mr = ["data-testid"], yr = {
719
+ }), Gi = "#0044f4", zi = "#e0e4ea", Qi = "#afb7c5", Zi = "#0044f4", Xi = "1px", er = "16px", tr = "20px", nr = { class: "config-card-details-row" }, ir = ["data-testid"], rr = ["data-testid"], ar = ["data-testid"], or = ["data-testid"], lr = { key: 1 }, sr = ["data-testid"], cr = ["data-testid"], ur = ["data-testid"], dr = ["data-testid"], fr = {
736
720
  name: "ConfigCardItem",
737
- components: { JsonCardItem: Zt, StatusBadge: Qi, InternalLinkItem: zi }
738
- }, gr = /* @__PURE__ */ z({
739
- ...yr,
721
+ components: { JsonCardItem: Zt, StatusBadge: Ji, InternalLinkItem: Wi }
722
+ }, pr = /* @__PURE__ */ z({
723
+ ...fr,
740
724
  props: {
741
725
  item: {
742
726
  type: Object,
@@ -755,17 +739,17 @@ const W = {
755
739
  },
756
740
  emits: ["navigation-click"],
757
741
  setup(e, { emit: t }) {
758
- Ut((Y) => ({
759
- v70f369b3: p.value ? "none" : `solid ${T(nr)} ${T(Xi)}`,
742
+ Ut((W) => ({
743
+ v70f369b3: p.value ? "none" : `solid ${$(Xi)} ${$(zi)}`,
760
744
  v67c2fae6: u.value && c.value ? "block" : "flex",
761
745
  v847b138c: u.value && c.value ? "100%" : n.slim ? "50%" : "25%",
762
746
  v847687d6: u.value && c.value ? "100%" : n.slim ? "50%" : "75%"
763
747
  }));
764
- const n = e, i = t, r = Gn(), o = De(), { i18n: { t: a, formatIsoDate: s, formatUnixTimeStamp: l } } = W.useI18n(), c = $(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = $(() => !!(n.item.tooltip || o["label-tooltip"])), u = $(() => n.item.type === V.Json || n.item.type === V.JsonArray), p = $(() => n.item.type === V.JsonArray), g = W.useSubSchema(n.item.key), y = $(() => {
765
- var Y;
766
- return n.item.type ? n.item.type : (Y = g == null ? void 0 : g.value) != null && Y.encrypted ? V.Redacted : void 0;
767
- }), x = $(() => {
768
- switch (y.value) {
748
+ const n = e, i = t, r = Wn(), o = De(), { i18n: { t: a, formatIsoDate: s, formatUnixTimeStamp: l } } = Y.useI18n(), c = F(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = F(() => !!(n.item.tooltip || o["label-tooltip"])), u = F(() => n.item.type === V.Json || n.item.type === V.JsonArray), p = F(() => n.item.type === V.JsonArray), g = Y.useSubSchema(n.item.key), h = F(() => {
749
+ var W;
750
+ return n.item.type ? n.item.type : (W = g == null ? void 0 : g.value) != null && W.encrypted ? V.Redacted : void 0;
751
+ }), x = F(() => {
752
+ switch (h.value) {
769
753
  case V.ID:
770
754
  return {
771
755
  tag: "KCopy",
@@ -845,8 +829,8 @@ const W = {
845
829
  attrs: {
846
830
  "data-testid": `${n.item.key}-internal-link`,
847
831
  item: n.item,
848
- onNavigationClick: (Y) => {
849
- i("navigation-click", Y);
832
+ onNavigationClick: (W) => {
833
+ i("navigation-click", W);
850
834
  }
851
835
  }
852
836
  };
@@ -895,24 +879,24 @@ const W = {
895
879
  text: n.item.value
896
880
  };
897
881
  }
898
- }), h = N(), A = N(), { isTruncated: C } = W.useTruncationDetector(h), { isTruncated: E } = W.useTruncationDetector(A);
899
- return (Y, X) => {
900
- const w = D("KTooltip"), _ = D("KLabel"), O = D("KBadge"), f = D("KCopy");
901
- return m(), S("div", ar, [
902
- B("div", {
882
+ }), y = K(), k = K(), { isTruncated: C } = Y.useTruncationDetector(y), { isTruncated: T } = Y.useTruncationDetector(k);
883
+ return (W, X) => {
884
+ const _ = P("KTooltip"), A = P("KLabel"), O = P("KBadge"), f = P("KCopy");
885
+ return m(), S("div", nr, [
886
+ R("div", {
903
887
  class: "config-card-details-label",
904
888
  "data-testid": `${e.item.key}-label`
905
889
  }, [
906
- P(Y.$slots, "label", { item: e.item }, () => [
907
- K(_, { "tooltip-attributes": { maxWidth: "500px" } }, Se({
908
- default: k(() => [
909
- K(w, {
910
- text: T(C) ? e.item.label : ""
890
+ D(W.$slots, "label", { item: e.item }, () => [
891
+ M(A, { "tooltip-attributes": { maxWidth: "500px" } }, Se({
892
+ default: w(() => [
893
+ M(_, {
894
+ text: $(C) ? e.item.label : ""
911
895
  }, {
912
- default: k(() => [
913
- B("span", {
896
+ default: w(() => [
897
+ R("span", {
914
898
  ref_key: "labelContent",
915
- ref: h,
899
+ ref: y,
916
900
  class: "label-content"
917
901
  }, L(e.item.label), 513)
918
902
  ]),
@@ -923,30 +907,30 @@ const W = {
923
907
  }, [
924
908
  d.value ? {
925
909
  name: "tooltip",
926
- fn: k(() => [
927
- B("div", {
910
+ fn: w(() => [
911
+ R("div", {
928
912
  "data-testid": `${e.item.key}-label-tooltip`
929
913
  }, [
930
- P(Y.$slots, "label-tooltip", {}, () => [
931
- U(L(e.item.tooltip), 1)
914
+ D(W.$slots, "label-tooltip", {}, () => [
915
+ q(L(e.item.tooltip), 1)
932
916
  ], !0)
933
- ], 8, lr)
917
+ ], 8, rr)
934
918
  ]),
935
919
  key: "0"
936
920
  } : void 0
937
921
  ]), 1024)
938
922
  ], !0)
939
- ], 8, or),
940
- B("div", {
923
+ ], 8, ir),
924
+ R("div", {
941
925
  class: "config-card-details-value",
942
926
  "data-testid": `${e.item.key}-property-value`
943
927
  }, [
944
- P(Y.$slots, e.item.key, {
928
+ D(W.$slots, e.item.key, {
945
929
  rowValue: e.item.value
946
930
  }, () => [
947
- c.value ? (m(), S("div", ur, [
948
- (m(), j(Pe(x.value.tag), zn(Qn(x.value.attrs)), {
949
- default: k(() => [
931
+ c.value ? (m(), S("div", lr, [
932
+ (m(), j(je(x.value.tag), Jn(Gn(x.value.attrs)), {
933
+ default: w(() => [
950
934
  x.value.additionalComponent === "KBadge" ? (m(), S("div", {
951
935
  key: 0,
952
936
  "data-testid": `${e.item.key}-badge-tags`
@@ -958,12 +942,12 @@ const W = {
958
942
  tooltip: v,
959
943
  "truncation-tooltip": ""
960
944
  }, {
961
- default: k(() => [
962
- U(L(v), 1)
945
+ default: w(() => [
946
+ q(L(v), 1)
963
947
  ]),
964
948
  _: 2
965
949
  }, 1032, ["data-testid", "tooltip"]))), 128))
966
- ], 8, dr)) : x.value.additionalComponent === "KCopy" ? (m(), S("div", {
950
+ ], 8, sr)) : x.value.additionalComponent === "KCopy" ? (m(), S("div", {
967
951
  key: 1,
968
952
  class: "copy-uuid-array",
969
953
  "data-testid": `${e.item.key}-copy-uuid-array`
@@ -973,23 +957,23 @@ const W = {
973
957
  "data-testid": `${e.item.key}-copy-uuid-${b}`,
974
958
  text: v
975
959
  }), null, 16, ["data-testid", "text"]))), 128))
976
- ], 8, fr)) : x.value.additionalComponent === "KMethodBadge" ? (m(), S("div", {
960
+ ], 8, cr)) : x.value.additionalComponent === "KMethodBadge" ? (m(), S("div", {
977
961
  key: 2,
978
962
  class: "method-badge-array",
979
963
  "data-testid": `${e.item.key}-badge-methods`
980
964
  }, [
981
965
  (m(!0), S(ue, null, ce(e.item.value, (v, b) => (m(), j(O, {
982
966
  key: `${e.item.key}-badge-method-${b}`,
983
- appearance: Object.values(T(ii)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
967
+ appearance: Object.values($(ti)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
984
968
  class: "config-badge",
985
969
  "data-testid": `${e.item.key}-badge-method-${b}`
986
970
  }, {
987
- default: k(() => [
988
- U(L(v), 1)
971
+ default: w(() => [
972
+ q(L(v), 1)
989
973
  ]),
990
974
  _: 2
991
975
  }, 1032, ["appearance", "data-testid"]))), 128))
992
- ], 8, pr)) : x.value.additionalComponent === "JsonCardItem" ? (m(), S("div", {
976
+ ], 8, ur)) : x.value.additionalComponent === "JsonCardItem" ? (m(), S("div", {
993
977
  key: 3,
994
978
  "data-testid": `${n.item.key}-json-array-content`
995
979
  }, [
@@ -999,14 +983,14 @@ const W = {
999
983
  "is-array-item": "",
1000
984
  item: v
1001
985
  }, null, 8, ["index", "item"]))), 128))
1002
- ], 8, mr)) : (m(), j(w, {
986
+ ], 8, dr)) : (m(), j(_, {
1003
987
  key: 4,
1004
- text: T(E) ? e.item.value : ""
988
+ text: $(T) ? e.item.value : ""
1005
989
  }, {
1006
- default: k(() => [
1007
- B("span", {
990
+ default: w(() => [
991
+ R("span", {
1008
992
  ref_key: "textContent",
1009
- ref: A,
993
+ ref: k,
1010
994
  class: fe(["attrs-data-text", { truncated: e.truncated }])
1011
995
  }, L(x.value.text), 3)
1012
996
  ]),
@@ -1018,13 +1002,13 @@ const W = {
1018
1002
  ])) : (m(), S("div", {
1019
1003
  key: 0,
1020
1004
  "data-testid": `${e.item.key}-no-value`
1021
- }, " – ", 8, cr))
1005
+ }, " – ", 8, or))
1022
1006
  ], !0)
1023
- ], 8, sr)
1007
+ ], 8, ar)
1024
1008
  ]);
1025
1009
  };
1026
1010
  }
1027
- }), Xt = /* @__PURE__ */ se(gr, [["__scopeId", "data-v-66d61bea"]]), hr = { class: "json-config config-card-code-block" }, vr = {
1011
+ }), Xt = /* @__PURE__ */ se(pr, [["__scopeId", "data-v-66d61bea"]]), mr = { class: "json-config config-card-code-block" }, hr = {
1028
1012
  key: 0,
1029
1013
  class: "json-endpoint"
1030
1014
  }, en = /* @__PURE__ */ z({
@@ -1058,7 +1042,7 @@ const W = {
1058
1042
  Ut((r) => ({
1059
1043
  eca0976a: `${i.value}ch`
1060
1044
  }));
1061
- const t = e, n = $(() => t.entityRecord), i = $(() => {
1045
+ const t = e, n = F(() => t.entityRecord), i = F(() => {
1062
1046
  var a;
1063
1047
  if (!t.fetcherUrl)
1064
1048
  return 0;
@@ -1066,25 +1050,25 @@ const W = {
1066
1050
  return r.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? r[r.length - 1] : r[r.length - 2]).length;
1067
1051
  });
1068
1052
  return (r, o) => {
1069
- const a = D("KBadge"), s = D("KCodeBlock");
1070
- return m(), S("div", hr, [
1071
- t.fetcherUrl ? (m(), S("div", vr, [
1072
- K(a, {
1053
+ const a = P("KBadge"), s = P("KCodeBlock");
1054
+ return m(), S("div", mr, [
1055
+ t.fetcherUrl ? (m(), S("div", hr, [
1056
+ M(a, {
1073
1057
  appearance: t.requestMethod
1074
1058
  }, {
1075
- default: k(() => [
1076
- U(L(t.requestMethod), 1)
1059
+ default: w(() => [
1060
+ q(L(t.requestMethod), 1)
1077
1061
  ]),
1078
1062
  _: 1
1079
1063
  }, 8, ["appearance"]),
1080
- K(s, {
1064
+ M(s, {
1081
1065
  id: "json-endpoint-codeblock",
1082
1066
  code: t.fetcherUrl,
1083
1067
  language: "json",
1084
1068
  "single-line": "",
1085
1069
  theme: "dark"
1086
1070
  }, null, 8, ["code"])
1087
- ])) : M("", !0),
1071
+ ])) : N("", !0),
1088
1072
  t.entityRecord ? (m(), j(s, {
1089
1073
  key: 1,
1090
1074
  id: "json-codeblock",
@@ -1092,7 +1076,7 @@ const W = {
1092
1076
  code: JSON.stringify(n.value, null, 2),
1093
1077
  language: "json",
1094
1078
  theme: "dark"
1095
- }, null, 8, ["class", "code"])) : M("", !0)
1079
+ }, null, 8, ["class", "code"])) : N("", !0)
1096
1080
  ]);
1097
1081
  };
1098
1082
  }
@@ -1101,35 +1085,35 @@ const W = {
1101
1085
  function tn(e) {
1102
1086
  return typeof e > "u" || e === null;
1103
1087
  }
1104
- function br(e) {
1088
+ function gr(e) {
1105
1089
  return typeof e == "object" && e !== null;
1106
1090
  }
1107
- function xr(e) {
1091
+ function yr(e) {
1108
1092
  return Array.isArray(e) ? e : tn(e) ? [] : [e];
1109
1093
  }
1110
- function Cr(e, t) {
1094
+ function vr(e, t) {
1111
1095
  var n, i, r, o;
1112
1096
  if (t)
1113
1097
  for (o = Object.keys(t), n = 0, i = o.length; n < i; n += 1)
1114
1098
  r = o[n], e[r] = t[r];
1115
1099
  return e;
1116
1100
  }
1117
- function kr(e, t) {
1101
+ function br(e, t) {
1118
1102
  var n = "", i;
1119
1103
  for (i = 0; i < t; i += 1)
1120
1104
  n += e;
1121
1105
  return n;
1122
1106
  }
1123
- function Ar(e) {
1107
+ function xr(e) {
1124
1108
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1125
1109
  }
1126
- var _r = tn, wr = br, Sr = xr, $r = kr, Tr = Ar, Er = Cr, ee = {
1127
- isNothing: _r,
1128
- isObject: wr,
1129
- toArray: Sr,
1130
- repeat: $r,
1131
- isNegativeZero: Tr,
1132
- extend: Er
1110
+ var Cr = tn, kr = gr, Ar = yr, _r = br, wr = xr, Sr = vr, ee = {
1111
+ isNothing: Cr,
1112
+ isObject: kr,
1113
+ toArray: Ar,
1114
+ repeat: _r,
1115
+ isNegativeZero: wr,
1116
+ extend: Sr
1133
1117
  };
1134
1118
  function nn(e, t) {
1135
1119
  var n = "", i = e.reason || "(unknown reason)";
@@ -1146,7 +1130,7 @@ Ie.prototype.toString = function(t) {
1146
1130
  return this.name + ": " + nn(this, t);
1147
1131
  };
1148
1132
  var oe = Ie;
1149
- function Ye(e, t, n, i, r) {
1133
+ function Ve(e, t, n, i, r) {
1150
1134
  var o = "", a = "", s = Math.floor(r / 2) - 1;
1151
1135
  return i - t > s && (o = " ... ", t = i - s + o.length), n - i > s && (a = " ...", n = i + s - a.length), {
1152
1136
  str: o + e.slice(t, n).replace(/\t/g, "→") + a,
@@ -1154,10 +1138,10 @@ function Ye(e, t, n, i, r) {
1154
1138
  // relative position
1155
1139
  };
1156
1140
  }
1157
- function We(e, t) {
1141
+ function Ye(e, t) {
1158
1142
  return ee.repeat(" ", t - e.length) + e;
1159
1143
  }
1160
- function Ir(e, t) {
1144
+ function $r(e, t) {
1161
1145
  if (t = Object.create(t || null), !e.buffer) return null;
1162
1146
  t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
1163
1147
  for (var n = /\r?\n|\r|\0/g, i = [0], r = [], o, a = -1; o = n.exec(e.buffer); )
@@ -1165,28 +1149,28 @@ function Ir(e, t) {
1165
1149
  a < 0 && (a = i.length - 1);
1166
1150
  var s = "", l, c, d = Math.min(e.line + t.linesAfter, r.length).toString().length, u = t.maxLength - (t.indent + d + 3);
1167
1151
  for (l = 1; l <= t.linesBefore && !(a - l < 0); l++)
1168
- c = Ye(
1152
+ c = Ve(
1169
1153
  e.buffer,
1170
1154
  i[a - l],
1171
1155
  r[a - l],
1172
1156
  e.position - (i[a] - i[a - l]),
1173
1157
  u
1174
- ), s = ee.repeat(" ", t.indent) + We((e.line - l + 1).toString(), d) + " | " + c.str + `
1158
+ ), s = ee.repeat(" ", t.indent) + Ye((e.line - l + 1).toString(), d) + " | " + c.str + `
1175
1159
  ` + s;
1176
- for (c = Ye(e.buffer, i[a], r[a], e.position, u), s += ee.repeat(" ", t.indent) + We((e.line + 1).toString(), d) + " | " + c.str + `
1160
+ for (c = Ve(e.buffer, i[a], r[a], e.position, u), s += ee.repeat(" ", t.indent) + Ye((e.line + 1).toString(), d) + " | " + c.str + `
1177
1161
  `, s += ee.repeat("-", t.indent + d + 3 + c.pos) + `^
1178
1162
  `, l = 1; l <= t.linesAfter && !(a + l >= r.length); l++)
1179
- c = Ye(
1163
+ c = Ve(
1180
1164
  e.buffer,
1181
1165
  i[a + l],
1182
1166
  r[a + l],
1183
1167
  e.position - (i[a] - i[a + l]),
1184
1168
  u
1185
- ), s += ee.repeat(" ", t.indent) + We((e.line + l + 1).toString(), d) + " | " + c.str + `
1169
+ ), s += ee.repeat(" ", t.indent) + Ye((e.line + l + 1).toString(), d) + " | " + c.str + `
1186
1170
  `;
1187
1171
  return s.replace(/\n$/, "");
1188
1172
  }
1189
- var Fr = Ir, Or = [
1173
+ var Tr = $r, Ir = [
1190
1174
  "kind",
1191
1175
  "multi",
1192
1176
  "resolve",
@@ -1197,12 +1181,12 @@ var Fr = Ir, Or = [
1197
1181
  "representName",
1198
1182
  "defaultStyle",
1199
1183
  "styleAliases"
1200
- ], Lr = [
1184
+ ], Er = [
1201
1185
  "scalar",
1202
1186
  "sequence",
1203
1187
  "mapping"
1204
1188
  ];
1205
- function Br(e) {
1189
+ function Fr(e) {
1206
1190
  var t = {};
1207
1191
  return e !== null && Object.keys(e).forEach(function(n) {
1208
1192
  e[n].forEach(function(i) {
@@ -1210,18 +1194,18 @@ function Br(e) {
1210
1194
  });
1211
1195
  }), t;
1212
1196
  }
1213
- function Rr(e, t) {
1197
+ function Or(e, t) {
1214
1198
  if (t = t || {}, Object.keys(t).forEach(function(n) {
1215
- if (Or.indexOf(n) === -1)
1199
+ if (Ir.indexOf(n) === -1)
1216
1200
  throw new oe('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
1217
1201
  }), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
1218
1202
  return !0;
1219
1203
  }, this.construct = t.construct || function(n) {
1220
1204
  return n;
1221
- }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Br(t.styleAliases || null), Lr.indexOf(this.kind) === -1)
1205
+ }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Fr(t.styleAliases || null), Er.indexOf(this.kind) === -1)
1222
1206
  throw new oe('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1223
1207
  }
1224
- var ne = Rr;
1208
+ var ne = Or;
1225
1209
  function At(e, t) {
1226
1210
  var n = [];
1227
1211
  return e[t].forEach(function(i) {
@@ -1231,7 +1215,7 @@ function At(e, t) {
1231
1215
  }), n[r] = i;
1232
1216
  }), n;
1233
1217
  }
1234
- function Kr() {
1218
+ function Lr() {
1235
1219
  var e = {
1236
1220
  scalar: {},
1237
1221
  sequence: {},
@@ -1251,10 +1235,10 @@ function Kr() {
1251
1235
  arguments[t].forEach(i);
1252
1236
  return e;
1253
1237
  }
1254
- function Qe(e) {
1238
+ function ze(e) {
1255
1239
  return this.extend(e);
1256
1240
  }
1257
- Qe.prototype.extend = function(t) {
1241
+ ze.prototype.extend = function(t) {
1258
1242
  var n = [], i = [];
1259
1243
  if (t instanceof ne)
1260
1244
  i.push(t);
@@ -1275,10 +1259,10 @@ Qe.prototype.extend = function(t) {
1275
1259
  if (!(o instanceof ne))
1276
1260
  throw new oe("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1277
1261
  });
1278
- var r = Object.create(Qe.prototype);
1279
- return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = At(r, "implicit"), r.compiledExplicit = At(r, "explicit"), r.compiledTypeMap = Kr(r.compiledImplicit, r.compiledExplicit), r;
1262
+ var r = Object.create(ze.prototype);
1263
+ return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = At(r, "implicit"), r.compiledExplicit = At(r, "explicit"), r.compiledTypeMap = Lr(r.compiledImplicit, r.compiledExplicit), r;
1280
1264
  };
1281
- var rn = Qe, an = new ne("tag:yaml.org,2002:str", {
1265
+ var rn = ze, an = new ne("tag:yaml.org,2002:str", {
1282
1266
  kind: "scalar",
1283
1267
  construct: function(e) {
1284
1268
  return e !== null ? e : "";
@@ -1300,22 +1284,22 @@ var rn = Qe, an = new ne("tag:yaml.org,2002:str", {
1300
1284
  ln
1301
1285
  ]
1302
1286
  });
1303
- function Nr(e) {
1287
+ function Br(e) {
1304
1288
  if (e === null) return !0;
1305
1289
  var t = e.length;
1306
1290
  return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
1307
1291
  }
1308
- function Mr() {
1292
+ function Rr() {
1309
1293
  return null;
1310
1294
  }
1311
- function jr(e) {
1295
+ function Kr(e) {
1312
1296
  return e === null;
1313
1297
  }
1314
1298
  var cn = new ne("tag:yaml.org,2002:null", {
1315
1299
  kind: "scalar",
1316
- resolve: Nr,
1317
- construct: Mr,
1318
- predicate: jr,
1300
+ resolve: Br,
1301
+ construct: Rr,
1302
+ predicate: Kr,
1319
1303
  represent: {
1320
1304
  canonical: function() {
1321
1305
  return "~";
@@ -1335,22 +1319,22 @@ var cn = new ne("tag:yaml.org,2002:null", {
1335
1319
  },
1336
1320
  defaultStyle: "lowercase"
1337
1321
  });
1338
- function Pr(e) {
1322
+ function Nr(e) {
1339
1323
  if (e === null) return !1;
1340
1324
  var t = e.length;
1341
1325
  return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
1342
1326
  }
1343
- function Dr(e) {
1327
+ function Mr(e) {
1344
1328
  return e === "true" || e === "True" || e === "TRUE";
1345
1329
  }
1346
- function Ur(e) {
1330
+ function jr(e) {
1347
1331
  return Object.prototype.toString.call(e) === "[object Boolean]";
1348
1332
  }
1349
1333
  var un = new ne("tag:yaml.org,2002:bool", {
1350
1334
  kind: "scalar",
1351
- resolve: Pr,
1352
- construct: Dr,
1353
- predicate: Ur,
1335
+ resolve: Nr,
1336
+ construct: Mr,
1337
+ predicate: jr,
1354
1338
  represent: {
1355
1339
  lowercase: function(e) {
1356
1340
  return e ? "true" : "false";
@@ -1364,16 +1348,16 @@ var un = new ne("tag:yaml.org,2002:bool", {
1364
1348
  },
1365
1349
  defaultStyle: "lowercase"
1366
1350
  });
1367
- function qr(e) {
1351
+ function Dr(e) {
1368
1352
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1369
1353
  }
1370
- function Hr(e) {
1354
+ function Pr(e) {
1371
1355
  return 48 <= e && e <= 55;
1372
1356
  }
1373
- function Vr(e) {
1357
+ function Ur(e) {
1374
1358
  return 48 <= e && e <= 57;
1375
1359
  }
1376
- function Yr(e) {
1360
+ function qr(e) {
1377
1361
  if (e === null) return !1;
1378
1362
  var t = e.length, n = 0, i = !1, r;
1379
1363
  if (!t) return !1;
@@ -1390,7 +1374,7 @@ function Yr(e) {
1390
1374
  if (r === "x") {
1391
1375
  for (n++; n < t; n++)
1392
1376
  if (r = e[n], r !== "_") {
1393
- if (!qr(e.charCodeAt(n))) return !1;
1377
+ if (!Dr(e.charCodeAt(n))) return !1;
1394
1378
  i = !0;
1395
1379
  }
1396
1380
  return i && r !== "_";
@@ -1398,7 +1382,7 @@ function Yr(e) {
1398
1382
  if (r === "o") {
1399
1383
  for (n++; n < t; n++)
1400
1384
  if (r = e[n], r !== "_") {
1401
- if (!Hr(e.charCodeAt(n))) return !1;
1385
+ if (!Pr(e.charCodeAt(n))) return !1;
1402
1386
  i = !0;
1403
1387
  }
1404
1388
  return i && r !== "_";
@@ -1407,13 +1391,13 @@ function Yr(e) {
1407
1391
  if (r === "_") return !1;
1408
1392
  for (; n < t; n++)
1409
1393
  if (r = e[n], r !== "_") {
1410
- if (!Vr(e.charCodeAt(n)))
1394
+ if (!Ur(e.charCodeAt(n)))
1411
1395
  return !1;
1412
1396
  i = !0;
1413
1397
  }
1414
1398
  return !(!i || r === "_");
1415
1399
  }
1416
- function Wr(e) {
1400
+ function Hr(e) {
1417
1401
  var t = e, n = 1, i;
1418
1402
  if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), i = t[0], (i === "-" || i === "+") && (i === "-" && (n = -1), t = t.slice(1), i = t[0]), t === "0") return 0;
1419
1403
  if (i === "0") {
@@ -1423,14 +1407,14 @@ function Wr(e) {
1423
1407
  }
1424
1408
  return n * parseInt(t, 10);
1425
1409
  }
1426
- function Jr(e) {
1410
+ function Vr(e) {
1427
1411
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ee.isNegativeZero(e);
1428
1412
  }
1429
1413
  var dn = new ne("tag:yaml.org,2002:int", {
1430
1414
  kind: "scalar",
1431
- resolve: Yr,
1432
- construct: Wr,
1433
- predicate: Jr,
1415
+ resolve: qr,
1416
+ construct: Hr,
1417
+ predicate: Vr,
1434
1418
  represent: {
1435
1419
  binary: function(e) {
1436
1420
  return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
@@ -1453,21 +1437,21 @@ var dn = new ne("tag:yaml.org,2002:int", {
1453
1437
  decimal: [10, "dec"],
1454
1438
  hexadecimal: [16, "hex"]
1455
1439
  }
1456
- }), Gr = new RegExp(
1440
+ }), Yr = new RegExp(
1457
1441
  // 2.5e4, 2.5 and integers
1458
1442
  "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
1459
1443
  );
1460
- function zr(e) {
1461
- return !(e === null || !Gr.test(e) || // Quick hack to not allow integers end with `_`
1444
+ function Wr(e) {
1445
+ return !(e === null || !Yr.test(e) || // Quick hack to not allow integers end with `_`
1462
1446
  // Probably should update regexp & check speed
1463
1447
  e[e.length - 1] === "_");
1464
1448
  }
1465
- function Qr(e) {
1449
+ function Jr(e) {
1466
1450
  var t, n;
1467
1451
  return t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : n * parseFloat(t, 10);
1468
1452
  }
1469
- var Zr = /^[-+]?[0-9]+e/;
1470
- function Xr(e, t) {
1453
+ var Gr = /^[-+]?[0-9]+e/;
1454
+ function zr(e, t) {
1471
1455
  var n;
1472
1456
  if (isNaN(e))
1473
1457
  switch (t) {
@@ -1498,17 +1482,17 @@ function Xr(e, t) {
1498
1482
  }
1499
1483
  else if (ee.isNegativeZero(e))
1500
1484
  return "-0.0";
1501
- return n = e.toString(10), Zr.test(n) ? n.replace("e", ".e") : n;
1485
+ return n = e.toString(10), Gr.test(n) ? n.replace("e", ".e") : n;
1502
1486
  }
1503
- function ea(e) {
1487
+ function Qr(e) {
1504
1488
  return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ee.isNegativeZero(e));
1505
1489
  }
1506
1490
  var fn = new ne("tag:yaml.org,2002:float", {
1507
1491
  kind: "scalar",
1508
- resolve: zr,
1509
- construct: Qr,
1510
- predicate: ea,
1511
- represent: Xr,
1492
+ resolve: Wr,
1493
+ construct: Jr,
1494
+ predicate: Qr,
1495
+ represent: zr,
1512
1496
  defaultStyle: "lowercase"
1513
1497
  }), pn = sn.extend({
1514
1498
  implicit: [
@@ -1517,17 +1501,17 @@ var fn = new ne("tag:yaml.org,2002:float", {
1517
1501
  dn,
1518
1502
  fn
1519
1503
  ]
1520
- }), mn = pn, yn = new RegExp(
1504
+ }), mn = pn, hn = new RegExp(
1521
1505
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1522
1506
  ), gn = new RegExp(
1523
1507
  "^([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]))?))?$"
1524
1508
  );
1525
- function ta(e) {
1526
- return e === null ? !1 : yn.exec(e) !== null || gn.exec(e) !== null;
1509
+ function Zr(e) {
1510
+ return e === null ? !1 : hn.exec(e) !== null || gn.exec(e) !== null;
1527
1511
  }
1528
- function na(e) {
1512
+ function Xr(e) {
1529
1513
  var t, n, i, r, o, a, s, l = 0, c = null, d, u, p;
1530
- if (t = yn.exec(e), t === null && (t = gn.exec(e)), t === null) throw new Error("Date resolve error");
1514
+ if (t = hn.exec(e), t === null && (t = gn.exec(e)), t === null) throw new Error("Date resolve error");
1531
1515
  if (n = +t[1], i = +t[2] - 1, r = +t[3], !t[4])
1532
1516
  return new Date(Date.UTC(n, i, r));
1533
1517
  if (o = +t[4], a = +t[5], s = +t[6], t[7]) {
@@ -1537,25 +1521,25 @@ function na(e) {
1537
1521
  }
1538
1522
  return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)), p = new Date(Date.UTC(n, i, r, o, a, s, l)), c && p.setTime(p.getTime() - c), p;
1539
1523
  }
1540
- function ia(e) {
1524
+ function ea(e) {
1541
1525
  return e.toISOString();
1542
1526
  }
1543
- var hn = new ne("tag:yaml.org,2002:timestamp", {
1527
+ var yn = new ne("tag:yaml.org,2002:timestamp", {
1544
1528
  kind: "scalar",
1545
- resolve: ta,
1546
- construct: na,
1529
+ resolve: Zr,
1530
+ construct: Xr,
1547
1531
  instanceOf: Date,
1548
- represent: ia
1532
+ represent: ea
1549
1533
  });
1550
- function ra(e) {
1534
+ function ta(e) {
1551
1535
  return e === "<<" || e === null;
1552
1536
  }
1553
1537
  var vn = new ne("tag:yaml.org,2002:merge", {
1554
1538
  kind: "scalar",
1555
- resolve: ra
1539
+ resolve: ta
1556
1540
  }), at = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1557
1541
  \r`;
1558
- function aa(e) {
1542
+ function na(e) {
1559
1543
  if (e === null) return !1;
1560
1544
  var t, n, i = 0, r = e.length, o = at;
1561
1545
  for (n = 0; n < r; n++)
@@ -1565,35 +1549,35 @@ function aa(e) {
1565
1549
  }
1566
1550
  return i % 8 === 0;
1567
1551
  }
1568
- function oa(e) {
1552
+ function ia(e) {
1569
1553
  var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o = at, a = 0, s = [];
1570
1554
  for (t = 0; t < r; t++)
1571
1555
  t % 4 === 0 && t && (s.push(a >> 16 & 255), s.push(a >> 8 & 255), s.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t));
1572
1556
  return n = r % 4 * 6, n === 0 ? (s.push(a >> 16 & 255), s.push(a >> 8 & 255), s.push(a & 255)) : n === 18 ? (s.push(a >> 10 & 255), s.push(a >> 2 & 255)) : n === 12 && s.push(a >> 4 & 255), new Uint8Array(s);
1573
1557
  }
1574
- function la(e) {
1558
+ function ra(e) {
1575
1559
  var t = "", n = 0, i, r, o = e.length, a = at;
1576
1560
  for (i = 0; i < o; i++)
1577
1561
  i % 3 === 0 && i && (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]), n = (n << 8) + e[i];
1578
1562
  return r = o % 3, r === 0 ? (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]) : r === 2 ? (t += a[n >> 10 & 63], t += a[n >> 4 & 63], t += a[n << 2 & 63], t += a[64]) : r === 1 && (t += a[n >> 2 & 63], t += a[n << 4 & 63], t += a[64], t += a[64]), t;
1579
1563
  }
1580
- function sa(e) {
1564
+ function aa(e) {
1581
1565
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1582
1566
  }
1583
1567
  var bn = new ne("tag:yaml.org,2002:binary", {
1584
1568
  kind: "scalar",
1585
- resolve: aa,
1586
- construct: oa,
1587
- predicate: sa,
1588
- represent: la
1589
- }), ca = Object.prototype.hasOwnProperty, ua = Object.prototype.toString;
1590
- function da(e) {
1569
+ resolve: na,
1570
+ construct: ia,
1571
+ predicate: aa,
1572
+ represent: ra
1573
+ }), oa = Object.prototype.hasOwnProperty, la = Object.prototype.toString;
1574
+ function sa(e) {
1591
1575
  if (e === null) return !0;
1592
1576
  var t = [], n, i, r, o, a, s = e;
1593
1577
  for (n = 0, i = s.length; n < i; n += 1) {
1594
- if (r = s[n], a = !1, ua.call(r) !== "[object Object]") return !1;
1578
+ if (r = s[n], a = !1, la.call(r) !== "[object Object]") return !1;
1595
1579
  for (o in r)
1596
- if (ca.call(r, o))
1580
+ if (oa.call(r, o))
1597
1581
  if (!a) a = !0;
1598
1582
  else return !1;
1599
1583
  if (!a) return !1;
@@ -1602,24 +1586,24 @@ function da(e) {
1602
1586
  }
1603
1587
  return !0;
1604
1588
  }
1605
- function fa(e) {
1589
+ function ca(e) {
1606
1590
  return e !== null ? e : [];
1607
1591
  }
1608
1592
  var xn = new ne("tag:yaml.org,2002:omap", {
1609
1593
  kind: "sequence",
1610
- resolve: da,
1611
- construct: fa
1612
- }), pa = Object.prototype.toString;
1613
- function ma(e) {
1594
+ resolve: sa,
1595
+ construct: ca
1596
+ }), ua = Object.prototype.toString;
1597
+ function da(e) {
1614
1598
  if (e === null) return !0;
1615
1599
  var t, n, i, r, o, a = e;
1616
1600
  for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1) {
1617
- if (i = a[t], pa.call(i) !== "[object Object]" || (r = Object.keys(i), r.length !== 1)) return !1;
1601
+ if (i = a[t], ua.call(i) !== "[object Object]" || (r = Object.keys(i), r.length !== 1)) return !1;
1618
1602
  o[t] = [r[0], i[r[0]]];
1619
1603
  }
1620
1604
  return !0;
1621
1605
  }
1622
- function ya(e) {
1606
+ function fa(e) {
1623
1607
  if (e === null) return [];
1624
1608
  var t, n, i, r, o, a = e;
1625
1609
  for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1)
@@ -1628,27 +1612,27 @@ function ya(e) {
1628
1612
  }
1629
1613
  var Cn = new ne("tag:yaml.org,2002:pairs", {
1630
1614
  kind: "sequence",
1631
- resolve: ma,
1632
- construct: ya
1633
- }), ga = Object.prototype.hasOwnProperty;
1634
- function ha(e) {
1615
+ resolve: da,
1616
+ construct: fa
1617
+ }), pa = Object.prototype.hasOwnProperty;
1618
+ function ma(e) {
1635
1619
  if (e === null) return !0;
1636
1620
  var t, n = e;
1637
1621
  for (t in n)
1638
- if (ga.call(n, t) && n[t] !== null)
1622
+ if (pa.call(n, t) && n[t] !== null)
1639
1623
  return !1;
1640
1624
  return !0;
1641
1625
  }
1642
- function va(e) {
1626
+ function ha(e) {
1643
1627
  return e !== null ? e : {};
1644
1628
  }
1645
1629
  var kn = new ne("tag:yaml.org,2002:set", {
1646
1630
  kind: "mapping",
1647
- resolve: ha,
1648
- construct: va
1631
+ resolve: ma,
1632
+ construct: ha
1649
1633
  }), ot = mn.extend({
1650
1634
  implicit: [
1651
- hn,
1635
+ yn,
1652
1636
  vn
1653
1637
  ],
1654
1638
  explicit: [
@@ -1657,7 +1641,7 @@ var kn = new ne("tag:yaml.org,2002:set", {
1657
1641
  Cn,
1658
1642
  kn
1659
1643
  ]
1660
- }), he = Object.prototype.hasOwnProperty, Re = 1, An = 2, _n = 3, Ke = 4, Je = 1, ba = 2, _t = 3, xa = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ca = /[\x85\u2028\u2029]/, ka = /[,\[\]\{\}]/, wn = /^(?:!|!!|![a-z\-]+!)$/i, Sn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1644
+ }), ye = Object.prototype.hasOwnProperty, Be = 1, An = 2, _n = 3, Re = 4, We = 1, ga = 2, _t = 3, ya = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, va = /[\x85\u2028\u2029]/, ba = /[,\[\]\{\}]/, wn = /^(?:!|!!|![a-z\-]+!)$/i, Sn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1661
1645
  function wt(e) {
1662
1646
  return Object.prototype.toString.call(e);
1663
1647
  }
@@ -1673,21 +1657,21 @@ function le(e) {
1673
1657
  function _e(e) {
1674
1658
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1675
1659
  }
1676
- function Aa(e) {
1660
+ function xa(e) {
1677
1661
  var t;
1678
1662
  return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
1679
1663
  }
1680
- function _a(e) {
1664
+ function Ca(e) {
1681
1665
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1682
1666
  }
1683
- function wa(e) {
1667
+ function ka(e) {
1684
1668
  return 48 <= e && e <= 57 ? e - 48 : -1;
1685
1669
  }
1686
1670
  function St(e) {
1687
1671
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1688
1672
  ` : 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" : "";
1689
1673
  }
1690
- function Sa(e) {
1674
+ function Aa(e) {
1691
1675
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
1692
1676
  (e - 65536 >> 10) + 55296,
1693
1677
  (e - 65536 & 1023) + 56320
@@ -1701,13 +1685,13 @@ function $n(e, t, n) {
1701
1685
  value: n
1702
1686
  }) : e[t] = n;
1703
1687
  }
1704
- var Tn = new Array(256), En = new Array(256);
1688
+ var Tn = new Array(256), In = new Array(256);
1705
1689
  for (var ke = 0; ke < 256; ke++)
1706
- Tn[ke] = St(ke) ? 1 : 0, En[ke] = St(ke);
1707
- function $a(e, t) {
1690
+ Tn[ke] = St(ke) ? 1 : 0, In[ke] = St(ke);
1691
+ function _a(e, t) {
1708
1692
  this.input = e, this.filename = t.filename || null, this.schema = t.schema || ot, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
1709
1693
  }
1710
- function In(e, t) {
1694
+ function En(e, t) {
1711
1695
  var n = {
1712
1696
  name: e.filename,
1713
1697
  buffer: e.input.slice(0, -1),
@@ -1716,26 +1700,26 @@ function In(e, t) {
1716
1700
  line: e.line,
1717
1701
  column: e.position - e.lineStart
1718
1702
  };
1719
- return n.snippet = Fr(n), new oe(t, n);
1703
+ return n.snippet = Tr(n), new oe(t, n);
1720
1704
  }
1721
- function F(e, t) {
1722
- throw In(e, t);
1705
+ function E(e, t) {
1706
+ throw En(e, t);
1723
1707
  }
1724
- function Ne(e, t) {
1725
- e.onWarning && e.onWarning.call(null, In(e, t));
1708
+ function Ke(e, t) {
1709
+ e.onWarning && e.onWarning.call(null, En(e, t));
1726
1710
  }
1727
1711
  var $t = {
1728
1712
  YAML: function(t, n, i) {
1729
1713
  var r, o, a;
1730
- t.version !== null && F(t, "duplication of %YAML directive"), i.length !== 1 && F(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && F(t, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && F(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Ne(t, "unsupported YAML version of the document");
1714
+ t.version !== null && E(t, "duplication of %YAML directive"), i.length !== 1 && E(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && E(t, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && E(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Ke(t, "unsupported YAML version of the document");
1731
1715
  },
1732
1716
  TAG: function(t, n, i) {
1733
1717
  var r, o;
1734
- i.length !== 2 && F(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], wn.test(r) || F(t, "ill-formed tag handle (first argument) of the TAG directive"), he.call(t.tagMap, r) && F(t, 'there is a previously declared suffix for "' + r + '" tag handle'), Sn.test(o) || F(t, "ill-formed tag prefix (second argument) of the TAG directive");
1718
+ i.length !== 2 && E(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], wn.test(r) || E(t, "ill-formed tag handle (first argument) of the TAG directive"), ye.call(t.tagMap, r) && E(t, 'there is a previously declared suffix for "' + r + '" tag handle'), Sn.test(o) || E(t, "ill-formed tag prefix (second argument) of the TAG directive");
1735
1719
  try {
1736
1720
  o = decodeURIComponent(o);
1737
1721
  } catch {
1738
- F(t, "tag prefix is malformed: " + o);
1722
+ E(t, "tag prefix is malformed: " + o);
1739
1723
  }
1740
1724
  t.tagMap[r] = o;
1741
1725
  }
@@ -1745,21 +1729,21 @@ function ge(e, t, n, i) {
1745
1729
  if (t < n) {
1746
1730
  if (s = e.input.slice(t, n), i)
1747
1731
  for (r = 0, o = s.length; r < o; r += 1)
1748
- a = s.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || F(e, "expected valid JSON character");
1749
- else xa.test(s) && F(e, "the stream contains non-printable characters");
1732
+ a = s.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || E(e, "expected valid JSON character");
1733
+ else ya.test(s) && E(e, "the stream contains non-printable characters");
1750
1734
  e.result += s;
1751
1735
  }
1752
1736
  }
1753
1737
  function Tt(e, t, n, i) {
1754
1738
  var r, o, a, s;
1755
- for (ee.isObject(n) || F(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, s = r.length; a < s; a += 1)
1756
- o = r[a], he.call(t, o) || ($n(t, o, n[o]), i[o] = !0);
1739
+ for (ee.isObject(n) || E(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, s = r.length; a < s; a += 1)
1740
+ o = r[a], ye.call(t, o) || ($n(t, o, n[o]), i[o] = !0);
1757
1741
  }
1758
1742
  function we(e, t, n, i, r, o, a, s, l) {
1759
1743
  var c, d;
1760
1744
  if (Array.isArray(r))
1761
1745
  for (r = Array.prototype.slice.call(r), c = 0, d = r.length; c < d; c += 1)
1762
- Array.isArray(r[c]) && F(e, "nested arrays are not supported inside keys"), typeof r == "object" && wt(r[c]) === "[object Object]" && (r[c] = "[object Object]");
1746
+ Array.isArray(r[c]) && E(e, "nested arrays are not supported inside keys"), typeof r == "object" && wt(r[c]) === "[object Object]" && (r[c] = "[object Object]");
1763
1747
  if (typeof r == "object" && wt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
1764
1748
  if (Array.isArray(o))
1765
1749
  for (c = 0, d = o.length; c < d; c += 1)
@@ -1767,12 +1751,12 @@ function we(e, t, n, i, r, o, a, s, l) {
1767
1751
  else
1768
1752
  Tt(e, t, o, n);
1769
1753
  else
1770
- !e.json && !he.call(n, r) && he.call(t, r) && (e.line = a || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, F(e, "duplicated mapping key")), $n(t, r, o), delete n[r];
1754
+ !e.json && !ye.call(n, r) && ye.call(t, r) && (e.line = a || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, E(e, "duplicated mapping key")), $n(t, r, o), delete n[r];
1771
1755
  return t;
1772
1756
  }
1773
1757
  function lt(e) {
1774
1758
  var t;
1775
- t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : F(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1759
+ t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : E(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1776
1760
  }
1777
1761
  function Z(e, t, n) {
1778
1762
  for (var i = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
@@ -1788,9 +1772,9 @@ function Z(e, t, n) {
1788
1772
  else
1789
1773
  break;
1790
1774
  }
1791
- return n !== -1 && i !== 0 && e.lineIndent < n && Ne(e, "deficient indentation"), i;
1775
+ return n !== -1 && i !== 0 && e.lineIndent < n && Ke(e, "deficient indentation"), i;
1792
1776
  }
1793
- function He(e) {
1777
+ function qe(e) {
1794
1778
  var t = e.position, n;
1795
1779
  return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || le(n)));
1796
1780
  }
@@ -1798,7 +1782,7 @@ function st(e, t) {
1798
1782
  t === 1 ? e.result += " " : t > 1 && (e.result += ee.repeat(`
1799
1783
  `, t - 1));
1800
1784
  }
1801
- function Ta(e, t, n) {
1785
+ function wa(e, t, n) {
1802
1786
  var i, r, o, a, s, l, c, d, u = e.kind, p = e.result, g;
1803
1787
  if (g = e.input.charCodeAt(e.position), le(g) || _e(g) || g === 35 || g === 38 || g === 42 || g === 33 || g === 124 || g === 62 || g === 39 || g === 34 || g === 37 || g === 64 || g === 96 || (g === 63 || g === 45) && (r = e.input.charCodeAt(e.position + 1), le(r) || n && _e(r)))
1804
1788
  return !1;
@@ -1810,7 +1794,7 @@ function Ta(e, t, n) {
1810
1794
  if (i = e.input.charCodeAt(e.position - 1), le(i))
1811
1795
  break;
1812
1796
  } else {
1813
- if (e.position === e.lineStart && He(e) || n && _e(g))
1797
+ if (e.position === e.lineStart && qe(e) || n && _e(g))
1814
1798
  break;
1815
1799
  if (de(g))
1816
1800
  if (l = e.line, c = e.lineStart, d = e.lineIndent, Z(e, !1, -1), e.lineIndent >= t) {
@@ -1825,7 +1809,7 @@ function Ta(e, t, n) {
1825
1809
  }
1826
1810
  return ge(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = p, !1);
1827
1811
  }
1828
- function Ea(e, t) {
1812
+ function Sa(e, t) {
1829
1813
  var n, i, r;
1830
1814
  if (n = e.input.charCodeAt(e.position), n !== 39)
1831
1815
  return !1;
@@ -1835,10 +1819,10 @@ function Ea(e, t) {
1835
1819
  i = e.position, e.position++, r = e.position;
1836
1820
  else
1837
1821
  return !0;
1838
- else de(n) ? (ge(e, i, r, !0), st(e, Z(e, !1, t)), i = r = e.position) : e.position === e.lineStart && He(e) ? F(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
1839
- F(e, "unexpected end of the stream within a single quoted scalar");
1822
+ else de(n) ? (ge(e, i, r, !0), st(e, Z(e, !1, t)), i = r = e.position) : e.position === e.lineStart && qe(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
1823
+ E(e, "unexpected end of the stream within a single quoted scalar");
1840
1824
  }
1841
- function Ia(e, t) {
1825
+ function $a(e, t) {
1842
1826
  var n, i, r, o, a, s;
1843
1827
  if (s = e.input.charCodeAt(e.position), s !== 34)
1844
1828
  return !1;
@@ -1849,20 +1833,20 @@ function Ia(e, t) {
1849
1833
  if (ge(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), de(s))
1850
1834
  Z(e, !1, t);
1851
1835
  else if (s < 256 && Tn[s])
1852
- e.result += En[s], e.position++;
1853
- else if ((a = _a(s)) > 0) {
1836
+ e.result += In[s], e.position++;
1837
+ else if ((a = Ca(s)) > 0) {
1854
1838
  for (r = a, o = 0; r > 0; r--)
1855
- s = e.input.charCodeAt(++e.position), (a = Aa(s)) >= 0 ? o = (o << 4) + a : F(e, "expected hexadecimal character");
1856
- e.result += Sa(o), e.position++;
1839
+ s = e.input.charCodeAt(++e.position), (a = xa(s)) >= 0 ? o = (o << 4) + a : E(e, "expected hexadecimal character");
1840
+ e.result += Aa(o), e.position++;
1857
1841
  } else
1858
- F(e, "unknown escape sequence");
1842
+ E(e, "unknown escape sequence");
1859
1843
  n = i = e.position;
1860
- } else de(s) ? (ge(e, n, i, !0), st(e, Z(e, !1, t)), n = i = e.position) : e.position === e.lineStart && He(e) ? F(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
1844
+ } else de(s) ? (ge(e, n, i, !0), st(e, Z(e, !1, t)), n = i = e.position) : e.position === e.lineStart && qe(e) ? E(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
1861
1845
  }
1862
- F(e, "unexpected end of the stream within a double quoted scalar");
1846
+ E(e, "unexpected end of the stream within a double quoted scalar");
1863
1847
  }
1864
- function Fa(e, t) {
1865
- var n = !0, i, r, o, a = e.tag, s, l = e.anchor, c, d, u, p, g, y = /* @__PURE__ */ Object.create(null), x, h, A, C;
1848
+ function Ta(e, t) {
1849
+ var n = !0, i, r, o, a = e.tag, s, l = e.anchor, c, d, u, p, g, h = /* @__PURE__ */ Object.create(null), x, y, k, C;
1866
1850
  if (C = e.input.charCodeAt(e.position), C === 91)
1867
1851
  d = 93, g = !1, s = [];
1868
1852
  else if (C === 123)
@@ -1872,12 +1856,12 @@ function Fa(e, t) {
1872
1856
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), C = e.input.charCodeAt(++e.position); C !== 0; ) {
1873
1857
  if (Z(e, !0, t), C = e.input.charCodeAt(e.position), C === d)
1874
1858
  return e.position++, e.tag = a, e.anchor = l, e.kind = g ? "mapping" : "sequence", e.result = s, !0;
1875
- n ? C === 44 && F(e, "expected the node content, but found ','") : F(e, "missed comma between flow collection entries"), h = x = A = null, u = p = !1, C === 63 && (c = e.input.charCodeAt(e.position + 1), le(c) && (u = p = !0, e.position++, Z(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, $e(e, t, Re, !1, !0), h = e.tag, x = e.result, Z(e, !0, t), C = e.input.charCodeAt(e.position), (p || e.line === i) && C === 58 && (u = !0, C = e.input.charCodeAt(++e.position), Z(e, !0, t), $e(e, t, Re, !1, !0), A = e.result), g ? we(e, s, y, h, x, A, i, r, o) : u ? s.push(we(e, null, y, h, x, A, i, r, o)) : s.push(x), Z(e, !0, t), C = e.input.charCodeAt(e.position), C === 44 ? (n = !0, C = e.input.charCodeAt(++e.position)) : n = !1;
1859
+ n ? C === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), y = x = k = null, u = p = !1, C === 63 && (c = e.input.charCodeAt(e.position + 1), le(c) && (u = p = !0, e.position++, Z(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, $e(e, t, Be, !1, !0), y = e.tag, x = e.result, Z(e, !0, t), C = e.input.charCodeAt(e.position), (p || e.line === i) && C === 58 && (u = !0, C = e.input.charCodeAt(++e.position), Z(e, !0, t), $e(e, t, Be, !1, !0), k = e.result), g ? we(e, s, h, y, x, k, i, r, o) : u ? s.push(we(e, null, h, y, x, k, i, r, o)) : s.push(x), Z(e, !0, t), C = e.input.charCodeAt(e.position), C === 44 ? (n = !0, C = e.input.charCodeAt(++e.position)) : n = !1;
1876
1860
  }
1877
- F(e, "unexpected end of the stream within a flow collection");
1861
+ E(e, "unexpected end of the stream within a flow collection");
1878
1862
  }
1879
- function Oa(e, t) {
1880
- var n, i, r = Je, o = !1, a = !1, s = t, l = 0, c = !1, d, u;
1863
+ function Ia(e, t) {
1864
+ var n, i, r = We, o = !1, a = !1, s = t, l = 0, c = !1, d, u;
1881
1865
  if (u = e.input.charCodeAt(e.position), u === 124)
1882
1866
  i = !1;
1883
1867
  else if (u === 62)
@@ -1886,9 +1870,9 @@ function Oa(e, t) {
1886
1870
  return !1;
1887
1871
  for (e.kind = "scalar", e.result = ""; u !== 0; )
1888
1872
  if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
1889
- Je === r ? r = u === 43 ? _t : ba : F(e, "repeat of a chomping mode identifier");
1890
- else if ((d = wa(u)) >= 0)
1891
- d === 0 ? F(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? F(e, "repeat of an indentation width identifier") : (s = t + d - 1, a = !0);
1873
+ We === r ? r = u === 43 ? _t : ga : E(e, "repeat of a chomping mode identifier");
1874
+ else if ((d = ka(u)) >= 0)
1875
+ d === 0 ? E(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? E(e, "repeat of an indentation width identifier") : (s = t + d - 1, a = !0);
1892
1876
  else
1893
1877
  break;
1894
1878
  if (ve(u)) {
@@ -1909,7 +1893,7 @@ function Oa(e, t) {
1909
1893
  }
1910
1894
  if (e.lineIndent < s) {
1911
1895
  r === _t ? e.result += ee.repeat(`
1912
- `, o ? 1 + l : l) : r === Je && o && (e.result += `
1896
+ `, o ? 1 + l : l) : r === We && o && (e.result += `
1913
1897
  `);
1914
1898
  break;
1915
1899
  }
@@ -1923,27 +1907,27 @@ function Oa(e, t) {
1923
1907
  }
1924
1908
  return !0;
1925
1909
  }
1926
- function Et(e, t) {
1910
+ function It(e, t) {
1927
1911
  var n, i = e.tag, r = e.anchor, o = [], a, s = !1, l;
1928
1912
  if (e.firstTabInLine !== -1) return !1;
1929
- for (e.anchor !== null && (e.anchorMap[e.anchor] = o), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, F(e, "tab characters must not be used in indentation")), !(l !== 45 || (a = e.input.charCodeAt(e.position + 1), !le(a)))); ) {
1913
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = o), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), !(l !== 45 || (a = e.input.charCodeAt(e.position + 1), !le(a)))); ) {
1930
1914
  if (s = !0, e.position++, Z(e, !0, -1) && e.lineIndent <= t) {
1931
1915
  o.push(null), l = e.input.charCodeAt(e.position);
1932
1916
  continue;
1933
1917
  }
1934
1918
  if (n = e.line, $e(e, t, _n, !1, !0), o.push(e.result), Z(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && l !== 0)
1935
- F(e, "bad indentation of a sequence entry");
1919
+ E(e, "bad indentation of a sequence entry");
1936
1920
  else if (e.lineIndent < t)
1937
1921
  break;
1938
1922
  }
1939
1923
  return s ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
1940
1924
  }
1941
- function La(e, t, n) {
1942
- var i, r, o, a, s, l, c = e.tag, d = e.anchor, u = {}, p = /* @__PURE__ */ Object.create(null), g = null, y = null, x = null, h = !1, A = !1, C;
1925
+ function Ea(e, t, n) {
1926
+ var i, r, o, a, s, l, c = e.tag, d = e.anchor, u = {}, p = /* @__PURE__ */ Object.create(null), g = null, h = null, x = null, y = !1, k = !1, C;
1943
1927
  if (e.firstTabInLine !== -1) return !1;
1944
1928
  for (e.anchor !== null && (e.anchorMap[e.anchor] = u), C = e.input.charCodeAt(e.position); C !== 0; ) {
1945
- if (!h && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, F(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (C === 63 || C === 58) && le(i))
1946
- C === 63 ? (h && (we(e, u, p, g, y, null, a, s, l), g = y = x = null), A = !0, h = !0, r = !0) : h ? (h = !1, r = !0) : F(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, C = i;
1929
+ if (!y && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (C === 63 || C === 58) && le(i))
1930
+ C === 63 ? (y && (we(e, u, p, g, h, null, a, s, l), g = h = x = null), k = !0, y = !0, r = !0) : y ? (y = !1, r = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, C = i;
1947
1931
  else {
1948
1932
  if (a = e.line, s = e.lineStart, l = e.position, !$e(e, n, An, !1, !0))
1949
1933
  break;
@@ -1951,90 +1935,90 @@ function La(e, t, n) {
1951
1935
  for (C = e.input.charCodeAt(e.position); ve(C); )
1952
1936
  C = e.input.charCodeAt(++e.position);
1953
1937
  if (C === 58)
1954
- C = e.input.charCodeAt(++e.position), le(C) || F(e, "a whitespace character is expected after the key-value separator within a block mapping"), h && (we(e, u, p, g, y, null, a, s, l), g = y = x = null), A = !0, h = !1, r = !1, g = e.tag, y = e.result;
1955
- else if (A)
1956
- F(e, "can not read an implicit mapping pair; a colon is missed");
1938
+ C = e.input.charCodeAt(++e.position), le(C) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), y && (we(e, u, p, g, h, null, a, s, l), g = h = x = null), k = !0, y = !1, r = !1, g = e.tag, h = e.result;
1939
+ else if (k)
1940
+ E(e, "can not read an implicit mapping pair; a colon is missed");
1957
1941
  else
1958
1942
  return e.tag = c, e.anchor = d, !0;
1959
- } else if (A)
1960
- F(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1943
+ } else if (k)
1944
+ E(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1961
1945
  else
1962
1946
  return e.tag = c, e.anchor = d, !0;
1963
1947
  }
1964
- if ((e.line === o || e.lineIndent > t) && (h && (a = e.line, s = e.lineStart, l = e.position), $e(e, t, Ke, !0, r) && (h ? y = e.result : x = e.result), h || (we(e, u, p, g, y, x, a, s, l), g = y = x = null), Z(e, !0, -1), C = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && C !== 0)
1965
- F(e, "bad indentation of a mapping entry");
1948
+ if ((e.line === o || e.lineIndent > t) && (y && (a = e.line, s = e.lineStart, l = e.position), $e(e, t, Re, !0, r) && (y ? h = e.result : x = e.result), y || (we(e, u, p, g, h, x, a, s, l), g = h = x = null), Z(e, !0, -1), C = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && C !== 0)
1949
+ E(e, "bad indentation of a mapping entry");
1966
1950
  else if (e.lineIndent < t)
1967
1951
  break;
1968
1952
  }
1969
- return h && we(e, u, p, g, y, null, a, s, l), A && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), A;
1953
+ return y && we(e, u, p, g, h, null, a, s, l), k && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), k;
1970
1954
  }
1971
- function Ba(e) {
1955
+ function Fa(e) {
1972
1956
  var t, n = !1, i = !1, r, o, a;
1973
1957
  if (a = e.input.charCodeAt(e.position), a !== 33) return !1;
1974
- if (e.tag !== null && F(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, n) {
1958
+ if (e.tag !== null && E(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, n) {
1975
1959
  do
1976
1960
  a = e.input.charCodeAt(++e.position);
1977
1961
  while (a !== 0 && a !== 62);
1978
- e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : F(e, "unexpected end of the stream within a verbatim tag");
1962
+ e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : E(e, "unexpected end of the stream within a verbatim tag");
1979
1963
  } else {
1980
1964
  for (; a !== 0 && !le(a); )
1981
- a === 33 && (i ? F(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), wn.test(r) || F(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
1982
- o = e.input.slice(t, e.position), ka.test(o) && F(e, "tag suffix cannot contain flow indicator characters");
1965
+ a === 33 && (i ? E(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), wn.test(r) || E(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
1966
+ o = e.input.slice(t, e.position), ba.test(o) && E(e, "tag suffix cannot contain flow indicator characters");
1983
1967
  }
1984
- o && !Sn.test(o) && F(e, "tag name cannot contain such characters: " + o);
1968
+ o && !Sn.test(o) && E(e, "tag name cannot contain such characters: " + o);
1985
1969
  try {
1986
1970
  o = decodeURIComponent(o);
1987
1971
  } catch {
1988
- F(e, "tag name is malformed: " + o);
1972
+ E(e, "tag name is malformed: " + o);
1989
1973
  }
1990
- return n ? e.tag = o : he.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : F(e, 'undeclared tag handle "' + r + '"'), !0;
1974
+ return n ? e.tag = o : ye.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : E(e, 'undeclared tag handle "' + r + '"'), !0;
1991
1975
  }
1992
- function Ra(e) {
1976
+ function Oa(e) {
1993
1977
  var t, n;
1994
1978
  if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
1995
- for (e.anchor !== null && F(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !le(n) && !_e(n); )
1979
+ for (e.anchor !== null && E(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !le(n) && !_e(n); )
1996
1980
  n = e.input.charCodeAt(++e.position);
1997
- return e.position === t && F(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
1981
+ return e.position === t && E(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
1998
1982
  }
1999
- function Ka(e) {
1983
+ function La(e) {
2000
1984
  var t, n, i;
2001
1985
  if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
2002
1986
  for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !le(i) && !_e(i); )
2003
1987
  i = e.input.charCodeAt(++e.position);
2004
- return e.position === t && F(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), he.call(e.anchorMap, n) || F(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], Z(e, !0, -1), !0;
1988
+ return e.position === t && E(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), ye.call(e.anchorMap, n) || E(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], Z(e, !0, -1), !0;
2005
1989
  }
2006
1990
  function $e(e, t, n, i, r) {
2007
- var o, a, s, l = 1, c = !1, d = !1, u, p, g, y, x, h;
2008
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = s = Ke === n || _n === n, i && Z(e, !0, -1) && (c = !0, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)), l === 1)
2009
- for (; Ba(e) || Ra(e); )
1991
+ var o, a, s, l = 1, c = !1, d = !1, u, p, g, h, x, y;
1992
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = s = Re === n || _n === n, i && Z(e, !0, -1) && (c = !0, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)), l === 1)
1993
+ for (; Fa(e) || Oa(e); )
2010
1994
  Z(e, !0, -1) ? (c = !0, s = o, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)) : s = !1;
2011
- if (s && (s = c || r), (l === 1 || Ke === n) && (Re === n || An === n ? x = t : x = t + 1, h = e.position - e.lineStart, l === 1 ? s && (Et(e, h) || La(e, h, x)) || Fa(e, x) ? d = !0 : (a && Oa(e, x) || Ea(e, x) || Ia(e, x) ? d = !0 : Ka(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && F(e, "alias node should not have any properties")) : Ta(e, x, Re === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Et(e, h))), e.tag === null)
1995
+ if (s && (s = c || r), (l === 1 || Re === n) && (Be === n || An === n ? x = t : x = t + 1, y = e.position - e.lineStart, l === 1 ? s && (It(e, y) || Ea(e, y, x)) || Ta(e, x) ? d = !0 : (a && Ia(e, x) || Sa(e, x) || $a(e, x) ? d = !0 : La(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : wa(e, x, Be === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && It(e, y))), e.tag === null)
2012
1996
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2013
1997
  else if (e.tag === "?") {
2014
- for (e.result !== null && e.kind !== "scalar" && F(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, p = e.implicitTypes.length; u < p; u += 1)
2015
- if (y = e.implicitTypes[u], y.resolve(e.result)) {
2016
- e.result = y.construct(e.result), e.tag = y.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1998
+ for (e.result !== null && e.kind !== "scalar" && E(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, p = e.implicitTypes.length; u < p; u += 1)
1999
+ if (h = e.implicitTypes[u], h.resolve(e.result)) {
2000
+ e.result = h.construct(e.result), e.tag = h.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2017
2001
  break;
2018
2002
  }
2019
2003
  } else if (e.tag !== "!") {
2020
- if (he.call(e.typeMap[e.kind || "fallback"], e.tag))
2021
- y = e.typeMap[e.kind || "fallback"][e.tag];
2004
+ if (ye.call(e.typeMap[e.kind || "fallback"], e.tag))
2005
+ h = e.typeMap[e.kind || "fallback"][e.tag];
2022
2006
  else
2023
- for (y = null, g = e.typeMap.multi[e.kind || "fallback"], u = 0, p = g.length; u < p; u += 1)
2007
+ for (h = null, g = e.typeMap.multi[e.kind || "fallback"], u = 0, p = g.length; u < p; u += 1)
2024
2008
  if (e.tag.slice(0, g[u].tag.length) === g[u].tag) {
2025
- y = g[u];
2009
+ h = g[u];
2026
2010
  break;
2027
2011
  }
2028
- y || F(e, "unknown tag !<" + e.tag + ">"), e.result !== null && y.kind !== e.kind && F(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + y.kind + '", not "' + e.kind + '"'), y.resolve(e.result, e.tag) ? (e.result = y.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : F(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2012
+ h || E(e, "unknown tag !<" + e.tag + ">"), e.result !== null && h.kind !== e.kind && E(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + h.kind + '", not "' + e.kind + '"'), h.resolve(e.result, e.tag) ? (e.result = h.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : E(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2029
2013
  }
2030
2014
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2031
2015
  }
2032
- function Na(e) {
2016
+ function Ba(e) {
2033
2017
  var t = e.position, n, i, r, o = !1, a;
2034
2018
  for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (Z(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
2035
2019
  for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !le(a); )
2036
2020
  a = e.input.charCodeAt(++e.position);
2037
- for (i = e.input.slice(n, e.position), r = [], i.length < 1 && F(e, "directive name must not be less than one character in length"); a !== 0; ) {
2021
+ for (i = e.input.slice(n, e.position), r = [], i.length < 1 && E(e, "directive name must not be less than one character in length"); a !== 0; ) {
2038
2022
  for (; ve(a); )
2039
2023
  a = e.input.charCodeAt(++e.position);
2040
2024
  if (a === 35) {
@@ -2048,28 +2032,28 @@ function Na(e) {
2048
2032
  a = e.input.charCodeAt(++e.position);
2049
2033
  r.push(e.input.slice(n, e.position));
2050
2034
  }
2051
- a !== 0 && lt(e), he.call($t, i) ? $t[i](e, i, r) : Ne(e, 'unknown document directive "' + i + '"');
2035
+ a !== 0 && lt(e), ye.call($t, i) ? $t[i](e, i, r) : Ke(e, 'unknown document directive "' + i + '"');
2052
2036
  }
2053
- if (Z(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, Z(e, !0, -1)) : o && F(e, "directives end mark is expected"), $e(e, e.lineIndent - 1, Ke, !1, !0), Z(e, !0, -1), e.checkLineBreaks && Ca.test(e.input.slice(t, e.position)) && Ne(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && He(e)) {
2037
+ if (Z(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, Z(e, !0, -1)) : o && E(e, "directives end mark is expected"), $e(e, e.lineIndent - 1, Re, !1, !0), Z(e, !0, -1), e.checkLineBreaks && va.test(e.input.slice(t, e.position)) && Ke(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && qe(e)) {
2054
2038
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, Z(e, !0, -1));
2055
2039
  return;
2056
2040
  }
2057
2041
  if (e.position < e.length - 1)
2058
- F(e, "end of the stream or a document separator is expected");
2042
+ E(e, "end of the stream or a document separator is expected");
2059
2043
  else
2060
2044
  return;
2061
2045
  }
2062
2046
  function Fn(e, t) {
2063
2047
  e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2064
2048
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2065
- var n = new $a(e, t), i = e.indexOf("\0");
2066
- for (i !== -1 && (n.position = i, F(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
2049
+ var n = new _a(e, t), i = e.indexOf("\0");
2050
+ for (i !== -1 && (n.position = i, E(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
2067
2051
  n.lineIndent += 1, n.position += 1;
2068
2052
  for (; n.position < n.length - 1; )
2069
- Na(n);
2053
+ Ba(n);
2070
2054
  return n.documents;
2071
2055
  }
2072
- function Ma(e, t, n) {
2056
+ function Ra(e, t, n) {
2073
2057
  t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
2074
2058
  var i = Fn(e, n);
2075
2059
  if (typeof t != "function")
@@ -2077,7 +2061,7 @@ function Ma(e, t, n) {
2077
2061
  for (var r = 0, o = i.length; r < o; r += 1)
2078
2062
  t(i[r]);
2079
2063
  }
2080
- function ja(e, t) {
2064
+ function Ka(e, t) {
2081
2065
  var n = Fn(e, t);
2082
2066
  if (n.length !== 0) {
2083
2067
  if (n.length === 1)
@@ -2085,10 +2069,10 @@ function ja(e, t) {
2085
2069
  throw new oe("expected a single document in the stream, but found more");
2086
2070
  }
2087
2071
  }
2088
- var Pa = Ma, Da = ja, On = {
2089
- loadAll: Pa,
2090
- load: Da
2091
- }, Ln = Object.prototype.toString, Bn = Object.prototype.hasOwnProperty, ct = 65279, Ua = 9, Fe = 10, qa = 13, Ha = 32, Va = 33, Ya = 34, Ze = 35, Wa = 37, Ja = 38, Ga = 39, za = 42, Rn = 44, Qa = 45, Me = 58, Za = 61, Xa = 62, eo = 63, to = 64, Kn = 91, Nn = 93, no = 96, Mn = 123, io = 124, jn = 125, re = {};
2072
+ var Na = Ra, Ma = Ka, On = {
2073
+ loadAll: Na,
2074
+ load: Ma
2075
+ }, Ln = Object.prototype.toString, Bn = Object.prototype.hasOwnProperty, ct = 65279, ja = 9, Ee = 10, Da = 13, Pa = 32, Ua = 33, qa = 34, Qe = 35, Ha = 37, Va = 38, Ya = 39, Wa = 42, Rn = 44, Ja = 45, Ne = 58, Ga = 61, za = 62, Qa = 63, Za = 64, Kn = 91, Nn = 93, Xa = 96, Mn = 123, eo = 124, jn = 125, re = {};
2092
2076
  re[0] = "\\0";
2093
2077
  re[7] = "\\a";
2094
2078
  re[8] = "\\b";
@@ -2104,7 +2088,7 @@ re[133] = "\\N";
2104
2088
  re[160] = "\\_";
2105
2089
  re[8232] = "\\L";
2106
2090
  re[8233] = "\\P";
2107
- var ro = [
2091
+ var to = [
2108
2092
  "y",
2109
2093
  "Y",
2110
2094
  "yes",
@@ -2121,15 +2105,15 @@ var ro = [
2121
2105
  "off",
2122
2106
  "Off",
2123
2107
  "OFF"
2124
- ], ao = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2125
- function oo(e, t) {
2108
+ ], no = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2109
+ function io(e, t) {
2126
2110
  var n, i, r, o, a, s, l;
2127
2111
  if (t === null) return {};
2128
2112
  for (n = {}, i = Object.keys(t), r = 0, o = i.length; r < o; r += 1)
2129
2113
  a = i[r], s = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = e.compiledTypeMap.fallback[a], l && Bn.call(l.styleAliases, s) && (s = l.styleAliases[s]), n[a] = s;
2130
2114
  return n;
2131
2115
  }
2132
- function lo(e) {
2116
+ function ro(e) {
2133
2117
  var t, n, i;
2134
2118
  if (t = e.toString(16).toUpperCase(), e <= 255)
2135
2119
  n = "x", i = 2;
@@ -2141,94 +2125,94 @@ function lo(e) {
2141
2125
  throw new oe("code point within a string may not be greater than 0xFFFFFFFF");
2142
2126
  return "\\" + n + ee.repeat("0", i - t.length) + t;
2143
2127
  }
2144
- var so = 1, Oe = 2;
2145
- function co(e) {
2146
- this.schema = e.schema || ot, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ee.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = oo(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 === '"' ? Oe : so, 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;
2128
+ var ao = 1, Fe = 2;
2129
+ function oo(e) {
2130
+ this.schema = e.schema || ot, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ee.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = io(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 === '"' ? Fe : ao, 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;
2147
2131
  }
2148
- function It(e, t) {
2132
+ function Et(e, t) {
2149
2133
  for (var n = ee.repeat(" ", t), i = 0, r = -1, o = "", a, s = e.length; i < s; )
2150
2134
  r = e.indexOf(`
2151
2135
  `, i), r === -1 ? (a = e.slice(i), i = s) : (a = e.slice(i, r + 1), i = r + 1), a.length && a !== `
2152
2136
  ` && (o += n), o += a;
2153
2137
  return o;
2154
2138
  }
2155
- function Xe(e, t) {
2139
+ function Ze(e, t) {
2156
2140
  return `
2157
2141
  ` + ee.repeat(" ", e.indent * t);
2158
2142
  }
2159
- function uo(e, t) {
2143
+ function lo(e, t) {
2160
2144
  var n, i, r;
2161
2145
  for (n = 0, i = e.implicitTypes.length; n < i; n += 1)
2162
2146
  if (r = e.implicitTypes[n], r.resolve(t))
2163
2147
  return !0;
2164
2148
  return !1;
2165
2149
  }
2166
- function je(e) {
2167
- return e === Ha || e === Ua;
2150
+ function Me(e) {
2151
+ return e === Pa || e === ja;
2168
2152
  }
2169
- function Le(e) {
2153
+ function Oe(e) {
2170
2154
  return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== ct || 65536 <= e && e <= 1114111;
2171
2155
  }
2172
2156
  function Ft(e) {
2173
- return Le(e) && e !== ct && e !== qa && e !== Fe;
2157
+ return Oe(e) && e !== ct && e !== Da && e !== Ee;
2174
2158
  }
2175
2159
  function Ot(e, t, n) {
2176
- var i = Ft(e), r = i && !je(e);
2160
+ var i = Ft(e), r = i && !Me(e);
2177
2161
  return (
2178
2162
  // ns-plain-safe
2179
2163
  (n ? (
2180
2164
  // c = flow-in
2181
2165
  i
2182
- ) : i && e !== Rn && e !== Kn && e !== Nn && e !== Mn && e !== jn) && e !== Ze && !(t === Me && !r) || Ft(t) && !je(t) && e === Ze || t === Me && r
2166
+ ) : i && e !== Rn && e !== Kn && e !== Nn && e !== Mn && e !== jn) && e !== Qe && !(t === Ne && !r) || Ft(t) && !Me(t) && e === Qe || t === Ne && r
2183
2167
  );
2184
2168
  }
2185
- function fo(e) {
2186
- return Le(e) && e !== ct && !je(e) && e !== Qa && e !== eo && e !== Me && e !== Rn && e !== Kn && e !== Nn && e !== Mn && e !== jn && e !== Ze && e !== Ja && e !== za && e !== Va && e !== io && e !== Za && e !== Xa && e !== Ga && e !== Ya && e !== Wa && e !== to && e !== no;
2169
+ function so(e) {
2170
+ return Oe(e) && e !== ct && !Me(e) && e !== Ja && e !== Qa && e !== Ne && e !== Rn && e !== Kn && e !== Nn && e !== Mn && e !== jn && e !== Qe && e !== Va && e !== Wa && e !== Ua && e !== eo && e !== Ga && e !== za && e !== Ya && e !== qa && e !== Ha && e !== Za && e !== Xa;
2187
2171
  }
2188
- function po(e) {
2189
- return !je(e) && e !== Me;
2172
+ function co(e) {
2173
+ return !Me(e) && e !== Ne;
2190
2174
  }
2191
2175
  function Te(e, t) {
2192
2176
  var n = e.charCodeAt(t), i;
2193
2177
  return n >= 55296 && n <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (n - 55296) * 1024 + i - 56320 + 65536 : n;
2194
2178
  }
2195
- function Pn(e) {
2179
+ function Dn(e) {
2196
2180
  var t = /^\n* /;
2197
2181
  return t.test(e);
2198
2182
  }
2199
- var Dn = 1, et = 2, Un = 3, qn = 4, Ae = 5;
2200
- function mo(e, t, n, i, r, o, a, s) {
2201
- var l, c = 0, d = null, u = !1, p = !1, g = i !== -1, y = -1, x = fo(Te(e, 0)) && po(Te(e, e.length - 1));
2183
+ var Pn = 1, Xe = 2, Un = 3, qn = 4, Ae = 5;
2184
+ function uo(e, t, n, i, r, o, a, s) {
2185
+ var l, c = 0, d = null, u = !1, p = !1, g = i !== -1, h = -1, x = so(Te(e, 0)) && co(Te(e, e.length - 1));
2202
2186
  if (t || a)
2203
2187
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2204
- if (c = Te(e, l), !Le(c))
2188
+ if (c = Te(e, l), !Oe(c))
2205
2189
  return Ae;
2206
2190
  x = x && Ot(c, d, s), d = c;
2207
2191
  }
2208
2192
  else {
2209
2193
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2210
- if (c = Te(e, l), c === Fe)
2194
+ if (c = Te(e, l), c === Ee)
2211
2195
  u = !0, g && (p = p || // Foldable line = too long, and not more-indented.
2212
- l - y - 1 > i && e[y + 1] !== " ", y = l);
2213
- else if (!Le(c))
2196
+ l - h - 1 > i && e[h + 1] !== " ", h = l);
2197
+ else if (!Oe(c))
2214
2198
  return Ae;
2215
2199
  x = x && Ot(c, d, s), d = c;
2216
2200
  }
2217
- p = p || g && l - y - 1 > i && e[y + 1] !== " ";
2201
+ p = p || g && l - h - 1 > i && e[h + 1] !== " ";
2218
2202
  }
2219
- return !u && !p ? x && !a && !r(e) ? Dn : o === Oe ? Ae : et : n > 9 && Pn(e) ? Ae : a ? o === Oe ? Ae : et : p ? qn : Un;
2203
+ return !u && !p ? x && !a && !r(e) ? Pn : o === Fe ? Ae : Xe : n > 9 && Dn(e) ? Ae : a ? o === Fe ? Ae : Xe : p ? qn : Un;
2220
2204
  }
2221
- function yo(e, t, n, i, r) {
2205
+ function fo(e, t, n, i, r) {
2222
2206
  e.dump = function() {
2223
2207
  if (t.length === 0)
2224
- return e.quotingType === Oe ? '""' : "''";
2225
- if (!e.noCompatMode && (ro.indexOf(t) !== -1 || ao.test(t)))
2226
- return e.quotingType === Oe ? '"' + t + '"' : "'" + t + "'";
2208
+ return e.quotingType === Fe ? '""' : "''";
2209
+ if (!e.noCompatMode && (to.indexOf(t) !== -1 || no.test(t)))
2210
+ return e.quotingType === Fe ? '"' + t + '"' : "'" + t + "'";
2227
2211
  var o = e.indent * Math.max(1, n), a = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), s = i || e.flowLevel > -1 && n >= e.flowLevel;
2228
2212
  function l(c) {
2229
- return uo(e, c);
2213
+ return lo(e, c);
2230
2214
  }
2231
- switch (mo(
2215
+ switch (uo(
2232
2216
  t,
2233
2217
  s,
2234
2218
  e.indent,
@@ -2238,23 +2222,23 @@ function yo(e, t, n, i, r) {
2238
2222
  e.forceQuotes && !i,
2239
2223
  r
2240
2224
  )) {
2241
- case Dn:
2225
+ case Pn:
2242
2226
  return t;
2243
- case et:
2227
+ case Xe:
2244
2228
  return "'" + t.replace(/'/g, "''") + "'";
2245
2229
  case Un:
2246
- return "|" + Lt(t, e.indent) + Bt(It(t, o));
2230
+ return "|" + Lt(t, e.indent) + Bt(Et(t, o));
2247
2231
  case qn:
2248
- return ">" + Lt(t, e.indent) + Bt(It(go(t, a), o));
2232
+ return ">" + Lt(t, e.indent) + Bt(Et(po(t, a), o));
2249
2233
  case Ae:
2250
- return '"' + ho(t) + '"';
2234
+ return '"' + mo(t) + '"';
2251
2235
  default:
2252
2236
  throw new oe("impossible error: invalid scalar style");
2253
2237
  }
2254
2238
  }();
2255
2239
  }
2256
2240
  function Lt(e, t) {
2257
- var n = Pn(e) ? String(t) : "", i = e[e.length - 1] === `
2241
+ var n = Dn(e) ? String(t) : "", i = e[e.length - 1] === `
2258
2242
  `, r = i && (e[e.length - 2] === `
2259
2243
  ` || e === `
2260
2244
  `), o = r ? "+" : i ? "" : "-";
@@ -2265,7 +2249,7 @@ function Bt(e) {
2265
2249
  return e[e.length - 1] === `
2266
2250
  ` ? e.slice(0, -1) : e;
2267
2251
  }
2268
- function go(e, t) {
2252
+ function po(e, t) {
2269
2253
  for (var n = /(\n+)([^\n]*)/g, i = function() {
2270
2254
  var c = e.indexOf(`
2271
2255
  `);
@@ -2287,12 +2271,12 @@ function Rt(e, t) {
2287
2271
  `, e.length - r > t && a > r ? l += e.slice(r, a) + `
2288
2272
  ` + e.slice(a + 1) : l += e.slice(r), l.slice(1);
2289
2273
  }
2290
- function ho(e) {
2274
+ function mo(e) {
2291
2275
  for (var t = "", n = 0, i, r = 0; r < e.length; n >= 65536 ? r += 2 : r++)
2292
- n = Te(e, r), i = re[n], !i && Le(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || lo(n);
2276
+ n = Te(e, r), i = re[n], !i && Oe(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || ro(n);
2293
2277
  return t;
2294
2278
  }
2295
- function vo(e, t, n) {
2279
+ function ho(e, t, n) {
2296
2280
  var i = "", r = e.tag, o, a, s;
2297
2281
  for (o = 0, a = n.length; o < a; o += 1)
2298
2282
  s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (pe(e, t, s, !1, !1) || typeof s > "u" && pe(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
@@ -2301,16 +2285,16 @@ function vo(e, t, n) {
2301
2285
  function Kt(e, t, n, i) {
2302
2286
  var r = "", o = e.tag, a, s, l;
2303
2287
  for (a = 0, s = n.length; a < s; a += 1)
2304
- l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (pe(e, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && pe(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += Xe(e, t)), e.dump && Fe === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
2288
+ l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (pe(e, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && pe(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += Ze(e, t)), e.dump && Ee === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
2305
2289
  e.tag = o, e.dump = r || "[]";
2306
2290
  }
2307
- function bo(e, t, n) {
2291
+ function go(e, t, n) {
2308
2292
  var i = "", r = e.tag, o = Object.keys(n), a, s, l, c, d;
2309
2293
  for (a = 0, s = o.length; a < s; a += 1)
2310
2294
  d = "", i !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = o[a], c = n[l], e.replacer && (c = e.replacer.call(n, l, c)), pe(e, t, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), pe(e, t, c, !1, !1) && (d += e.dump, i += d));
2311
2295
  e.tag = r, e.dump = "{" + i + "}";
2312
2296
  }
2313
- function xo(e, t, n, i) {
2297
+ function yo(e, t, n, i) {
2314
2298
  var r = "", o = e.tag, a = Object.keys(n), s, l, c, d, u, p;
2315
2299
  if (e.sortKeys === !0)
2316
2300
  a.sort();
@@ -2319,7 +2303,7 @@ function xo(e, t, n, i) {
2319
2303
  else if (e.sortKeys)
2320
2304
  throw new oe("sortKeys must be a boolean or a function");
2321
2305
  for (s = 0, l = a.length; s < l; s += 1)
2322
- p = "", (!i || r !== "") && (p += Xe(e, t)), c = a[s], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), pe(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Fe === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, u && (p += Xe(e, t)), pe(e, t + 1, d, !0, u) && (e.dump && Fe === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, r += p));
2306
+ p = "", (!i || r !== "") && (p += Ze(e, t)), c = a[s], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), pe(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Ee === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, u && (p += Ze(e, t)), pe(e, t + 1, d, !0, u) && (e.dump && Ee === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, r += p));
2323
2307
  e.tag = o, e.dump = r || "{}";
2324
2308
  }
2325
2309
  function Nt(e, t, n) {
@@ -2348,11 +2332,11 @@ function pe(e, t, n, i, r, o, a) {
2348
2332
  e.dump = "*ref_" + u;
2349
2333
  else {
2350
2334
  if (d && p && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
2351
- i && Object.keys(e.dump).length !== 0 ? (xo(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (bo(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
2335
+ i && Object.keys(e.dump).length !== 0 ? (yo(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (go(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
2352
2336
  else if (s === "[object Array]")
2353
- i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Kt(e, t - 1, e.dump, r) : Kt(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (vo(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
2337
+ i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Kt(e, t - 1, e.dump, r) : Kt(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (ho(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
2354
2338
  else if (s === "[object String]")
2355
- e.tag !== "?" && yo(e, e.dump, t, o, l);
2339
+ e.tag !== "?" && fo(e, e.dump, t, o, l);
2356
2340
  else {
2357
2341
  if (s === "[object Undefined]")
2358
2342
  return !1;
@@ -2365,71 +2349,71 @@ function pe(e, t, n, i, r, o, a) {
2365
2349
  }
2366
2350
  return !0;
2367
2351
  }
2368
- function Co(e, t) {
2352
+ function vo(e, t) {
2369
2353
  var n = [], i = [], r, o;
2370
- for (tt(e, n, i), r = 0, o = i.length; r < o; r += 1)
2354
+ for (et(e, n, i), r = 0, o = i.length; r < o; r += 1)
2371
2355
  t.duplicates.push(n[i[r]]);
2372
2356
  t.usedDuplicates = new Array(o);
2373
2357
  }
2374
- function tt(e, t, n) {
2358
+ function et(e, t, n) {
2375
2359
  var i, r, o;
2376
2360
  if (e !== null && typeof e == "object")
2377
2361
  if (r = t.indexOf(e), r !== -1)
2378
2362
  n.indexOf(r) === -1 && n.push(r);
2379
2363
  else if (t.push(e), Array.isArray(e))
2380
2364
  for (r = 0, o = e.length; r < o; r += 1)
2381
- tt(e[r], t, n);
2365
+ et(e[r], t, n);
2382
2366
  else
2383
2367
  for (i = Object.keys(e), r = 0, o = i.length; r < o; r += 1)
2384
- tt(e[i[r]], t, n);
2368
+ et(e[i[r]], t, n);
2385
2369
  }
2386
- function ko(e, t) {
2370
+ function bo(e, t) {
2387
2371
  t = t || {};
2388
- var n = new co(t);
2389
- n.noRefs || Co(e, n);
2372
+ var n = new oo(t);
2373
+ n.noRefs || vo(e, n);
2390
2374
  var i = e;
2391
2375
  return n.replacer && (i = n.replacer.call({ "": i }, "", i)), pe(n, 0, i, !0, !0) ? n.dump + `
2392
2376
  ` : "";
2393
2377
  }
2394
- var Ao = ko, _o = {
2395
- dump: Ao
2378
+ var xo = bo, Co = {
2379
+ dump: xo
2396
2380
  };
2397
2381
  function ut(e, t) {
2398
2382
  return function() {
2399
2383
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2400
2384
  };
2401
2385
  }
2402
- var wo = ne, So = rn, $o = sn, To = pn, Eo = mn, Io = ot, Fo = On.load, Oo = On.loadAll, Lo = _o.dump, Bo = oe, Ro = {
2386
+ var ko = ne, Ao = rn, _o = sn, wo = pn, So = mn, $o = ot, To = On.load, Io = On.loadAll, Eo = Co.dump, Fo = oe, Oo = {
2403
2387
  binary: bn,
2404
2388
  float: fn,
2405
2389
  map: ln,
2406
2390
  null: cn,
2407
2391
  pairs: Cn,
2408
2392
  set: kn,
2409
- timestamp: hn,
2393
+ timestamp: yn,
2410
2394
  bool: un,
2411
2395
  int: dn,
2412
2396
  merge: vn,
2413
2397
  omap: xn,
2414
2398
  seq: on,
2415
2399
  str: an
2416
- }, Ko = ut("safeLoad", "load"), No = ut("safeLoadAll", "loadAll"), Mo = ut("safeDump", "dump"), Hn = {
2417
- Type: wo,
2418
- Schema: So,
2419
- FAILSAFE_SCHEMA: $o,
2420
- JSON_SCHEMA: To,
2421
- CORE_SCHEMA: Eo,
2422
- DEFAULT_SCHEMA: Io,
2423
- load: Fo,
2424
- loadAll: Oo,
2425
- dump: Lo,
2426
- YAMLException: Bo,
2427
- types: Ro,
2428
- safeLoad: Ko,
2429
- safeLoadAll: No,
2430
- safeDump: Mo
2400
+ }, Lo = ut("safeLoad", "load"), Bo = ut("safeLoadAll", "loadAll"), Ro = ut("safeDump", "dump"), Ko = {
2401
+ Type: ko,
2402
+ Schema: Ao,
2403
+ FAILSAFE_SCHEMA: _o,
2404
+ JSON_SCHEMA: wo,
2405
+ CORE_SCHEMA: So,
2406
+ DEFAULT_SCHEMA: $o,
2407
+ load: To,
2408
+ loadAll: Io,
2409
+ dump: Eo,
2410
+ YAMLException: Fo,
2411
+ types: Oo,
2412
+ safeLoad: Lo,
2413
+ safeLoadAll: Bo,
2414
+ safeDump: Ro
2431
2415
  };
2432
- const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */ z({
2416
+ const No = { class: "yaml-config config-card-code-block" }, Hn = /* @__PURE__ */ z({
2433
2417
  __name: "YamlCodeBlock",
2434
2418
  props: {
2435
2419
  /** A record to indicate the entity's configuration, used to populate the YAML code block */
@@ -2439,24 +2423,24 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2439
2423
  }
2440
2424
  },
2441
2425
  setup(e) {
2442
- const t = e, n = $(() => {
2426
+ const t = e, n = F(() => {
2443
2427
  const i = Object.fromEntries(Object.entries(t.entityRecord).filter(([, r]) => r !== null && r !== "" && (Array.isArray(r) ? r.length !== 0 : !0)));
2444
- return Object.keys(i).length === 0 && i.constructor === Object ? "" : Hn.dump(i).trim();
2428
+ return Object.keys(i).length === 0 && i.constructor === Object ? "" : Ko.dump(i).trim();
2445
2429
  });
2446
2430
  return (i, r) => {
2447
- const o = D("KCodeBlock");
2448
- return m(), S("div", jo, [
2431
+ const o = P("KCodeBlock");
2432
+ return m(), S("div", No, [
2449
2433
  t.entityRecord ? (m(), j(o, {
2450
2434
  key: 0,
2451
2435
  id: "yaml-codeblock",
2452
2436
  code: n.value,
2453
2437
  language: "yaml",
2454
2438
  theme: "dark"
2455
- }, null, 8, ["code"])) : M("", !0)
2439
+ }, null, 8, ["code"])) : N("", !0)
2456
2440
  ]);
2457
2441
  };
2458
2442
  }
2459
- }), Po = { class: "terraform-config config-card-code-block" }, ie = " ", Yn = /* @__PURE__ */ z({
2443
+ }), Mo = { class: "terraform-config config-card-code-block" }, ie = " ", Vn = /* @__PURE__ */ z({
2460
2444
  __name: "TerraformCodeBlock",
2461
2445
  props: {
2462
2446
  /** A record to indicate the entity's configuration, used to populate the Terraform code block */
@@ -2467,7 +2451,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2467
2451
  entityType: {
2468
2452
  type: String,
2469
2453
  required: !0,
2470
- validator: (e) => Ue.includes(e)
2454
+ validator: (e) => Pe.includes(e)
2471
2455
  },
2472
2456
  credentialType: {
2473
2457
  type: String,
@@ -2480,7 +2464,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2480
2464
  }
2481
2465
  },
2482
2466
  setup(e) {
2483
- const t = e, n = $(() => pi.includes(t.entityType)), i = (l, c) => {
2467
+ const t = e, n = F(() => ui.includes(t.entityType)), i = (l, c) => {
2484
2468
  const d = ie;
2485
2469
  let u = "";
2486
2470
  return typeof l == "string" ? u += `${d}${c} = "${l}"
@@ -2495,11 +2479,11 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2495
2479
  `), l === null)
2496
2480
  return c ? p += `${u}}` : p = "{}", p;
2497
2481
  const g = Object.fromEntries(Object.entries(l).filter(([, x]) => x !== null));
2498
- let y = "";
2499
- for (const [x, h] of Object.entries(g))
2500
- Array.isArray(h) ? h.length === 0 ? y = "[]" : (y = `[
2501
- `, y += o(h, void 0, u), y += `${u}${ie}]`) : h && typeof h == "object" ? (y = `{
2502
- `, y += r(h, void 0, u), y += `${u}${ie}}`) : y = String(h ?? ""), typeof h == "string" && (y = `"${y}"`), p += `${u}${ie}${x} = ${y}
2482
+ let h = "";
2483
+ for (const [x, y] of Object.entries(g))
2484
+ Array.isArray(y) ? y.length === 0 ? h = "[]" : (h = `[
2485
+ `, h += o(y, void 0, u), h += `${u}${ie}]`) : y && typeof y == "object" ? (h = `{
2486
+ `, h += r(y, void 0, u), h += `${u}${ie}}`) : h = String(y ?? ""), typeof y == "string" && (h = `"${h}"`), p += `${u}${ie}${x} = ${h}
2503
2487
  `;
2504
2488
  return c ? p += `${u}}
2505
2489
  ` : p;
@@ -2511,9 +2495,9 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2511
2495
  c && (l.length === 0 ? p += `${u}${c} = [` : p += `${u}${c} = [
2512
2496
  `);
2513
2497
  for (let g = 0; g < l.length; g++) {
2514
- const y = l[g];
2515
- typeof y == "object" ? (p += `${u}${ie}{
2516
- `, p += r(y, void 0, u), p += `${u}${ie}}`) : typeof y == "string" ? p += `${u}${ie}"${y}"` : p += `${u}${ie}${String(y ?? "")}`, g < l.length - 1 && (p += ","), p += `
2498
+ const h = l[g];
2499
+ typeof h == "object" ? (p += `${u}${ie}{
2500
+ `, p += r(h, void 0, u), p += `${u}${ie}}`) : typeof h == "string" ? p += `${u}${ie}"${h}"` : p += `${u}${ie}${String(h ?? "")}`, g < l.length - 1 && (p += ","), p += `
2517
2501
  `;
2518
2502
  }
2519
2503
  return c && (l.length === 0 ? p += `]
@@ -2524,21 +2508,21 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2524
2508
  for (const [d, u] of Object.entries(l))
2525
2509
  Array.isArray(u) ? c += o(u, d) : typeof u == "object" ? c += r(u, d) : c += i(u, d);
2526
2510
  return c;
2527
- }, s = $(() => {
2528
- var p, g, y, x, h, A, C;
2529
- const l = Object.fromEntries(Object.entries(t.entityRecord).filter(([, E]) => E != null)), c = t.entityRecord.config ? Object.fromEntries(Object.entries((p = t.entityRecord) == null ? void 0 : p.config).filter(([, E]) => E != null)) : void 0;
2511
+ }, s = F(() => {
2512
+ var p, g, h, x, y, k, C;
2513
+ const l = Object.fromEntries(Object.entries(t.entityRecord).filter(([, T]) => T != null)), c = t.entityRecord.config ? Object.fromEntries(Object.entries((p = t.entityRecord) == null ? void 0 : p.config).filter(([, T]) => T != null)) : void 0;
2530
2514
  if (c && (l.config = c), Object.keys(l).length === 0)
2531
2515
  return "";
2532
2516
  delete l.id;
2533
2517
  let d = "", u = "";
2534
- if ((g = l.service) != null && g.id ? (u = "service", delete l.service) : (y = l.route) != null && y.id ? (u = "route", delete l.route) : (x = l.consumer) != null && x.id ? (u = "consumer", delete l.consumer) : (h = l.consumer_group) != null && h.id ? (u = "consumer_group", delete l.consumer_group) : (A = l.certificate) != null && A.id ? (u = "certificate", delete l.certificate) : (C = l.set) != null && C.id && (u = "set", delete l.set), n.value) {
2535
- const E = t.subEntityType ? `${t.entityType}_${t.subEntityType}` : t.entityType;
2536
- d += `resource "konnect_event_gateway_${E}" "my_eventgateway${E.replaceAll("_", "")}" {
2518
+ if ((g = l.service) != null && g.id ? (u = "service", delete l.service) : (h = l.route) != null && h.id ? (u = "route", delete l.route) : (x = l.consumer) != null && x.id ? (u = "consumer", delete l.consumer) : (y = l.consumer_group) != null && y.id ? (u = "consumer_group", delete l.consumer_group) : (k = l.certificate) != null && k.id ? (u = "certificate", delete l.certificate) : (C = l.set) != null && C.id && (u = "set", delete l.set), n.value) {
2519
+ const T = t.subEntityType ? `${t.entityType}_${t.subEntityType}` : t.entityType;
2520
+ d += `resource "konnect_event_gateway_${T}" "my_eventgateway${T.replaceAll("_", "")}" {
2537
2521
  `, d += `${ie}provider = konnect-beta
2538
2522
  `;
2539
2523
  } else if (t.entityType === "plugin") {
2540
- const E = t.credentialType.replace(/-/g, "_") || (l.name + "").replace(/-/g, "_");
2541
- delete l.name, d += `resource "konnect_gateway_plugin_${E}" "my_${E}" {
2524
+ const T = t.credentialType.replace(/-/g, "_") || (l.name + "").replace(/-/g, "_");
2525
+ delete l.name, d += `resource "konnect_gateway_plugin_${T}" "my_${T}" {
2542
2526
  `;
2543
2527
  } else
2544
2528
  d += `resource "konnect_gateway_${t.entityType}" "my_${t.entityType}" {
@@ -2551,92 +2535,25 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2551
2535
  `, d;
2552
2536
  });
2553
2537
  return (l, c) => {
2554
- const d = D("KCodeBlock");
2555
- return m(), S("div", Po, [
2538
+ const d = P("KCodeBlock");
2539
+ return m(), S("div", Mo, [
2556
2540
  t.entityRecord ? (m(), j(d, {
2557
2541
  key: 0,
2558
2542
  id: "terraform-codeblock",
2559
2543
  code: s.value,
2560
2544
  language: "terraform",
2561
2545
  theme: "dark"
2562
- }, null, 8, ["code"])) : M("", !0)
2546
+ }, null, 8, ["code"])) : N("", !0)
2563
2547
  ]);
2564
2548
  };
2565
2549
  }
2566
- }), Do = { class: "deck-config config-card-code-block" }, Wn = /* @__PURE__ */ z({
2567
- __name: "DeckCodeBlock",
2568
- props: {
2569
- entityRecord: {},
2570
- entityType: {},
2571
- geoServerUrl: {},
2572
- controlPlaneName: {}
2573
- },
2574
- setup(e) {
2575
- const t = e, n = $(() => {
2576
- const o = {
2577
- _format_version: "3.0"
2578
- };
2579
- return t.controlPlaneName && (o._konnect = {
2580
- control_plane_name: t.controlPlaneName
2581
- }), o;
2582
- }), i = $(() => {
2583
- var s, l, c, d, u;
2584
- const o = Object.fromEntries(Object.entries(t.entityRecord).filter(([, p]) => p !== null && p !== "" && (Array.isArray(p) ? p.length !== 0 : !0)));
2585
- t.entityType === Ee.Plugin ? ((s = o.service) != null && s.id && (o.service = o.service.id), (l = o.route) != null && l.id && (o.route = o.route.id), (c = o.consumer) != null && c.id && (o.consumer = o.consumer.id), (d = o.consumer_group) != null && d.id && (o.consumer_group = o.consumer_group.id)) : t.entityType === Ee.Key && (u = o.key_set) != null && u.id && (o.key_set = o.key_set.id);
2586
- const a = {
2587
- ...n.value,
2588
- [t.entityType + "s"]: [o]
2589
- };
2590
- return Hn.dump(a);
2591
- }), r = $(() => {
2592
- let o = "deck gatway apply -";
2593
- return t.geoServerUrl && (o += ` --konnect-addr ${t.geoServerUrl}`), `echo
2594
- '${i.value}
2595
- ' | ${o}`;
2596
- });
2597
- return (o, a) => {
2598
- const s = D("KBadge"), l = D("KCodeBlock");
2599
- return m(), S("div", Do, [
2600
- B("p", null, [
2601
- a[1] || (a[1] = U(" The ", -1)),
2602
- K(s, null, {
2603
- default: k(() => [...a[0] || (a[0] = [
2604
- U("DECK_KONNECT_TOKEN", -1)
2605
- ])]),
2606
- _: 1
2607
- }),
2608
- a[2] || (a[2] = U(" environment variable must be added first. See ", -1)),
2609
- a[3] || (a[3] = B("a", {
2610
- href: "https://developer.konghq.com/deck/get-started/",
2611
- target: "_blank"
2612
- }, "the documentation", -1)),
2613
- a[4] || (a[4] = U(" for details. ", -1))
2614
- ]),
2615
- K(l, {
2616
- id: "deck-env-codeblock",
2617
- code: "export DECK_KONNECT_TOKEN=<your_konnect_PAT>",
2618
- language: "shell",
2619
- "single-line": "",
2620
- style: { "margin-bottom": "28px" },
2621
- theme: "dark"
2622
- }),
2623
- t.entityRecord ? (m(), j(l, {
2624
- key: 0,
2625
- id: "deck-codeblock",
2626
- code: r.value,
2627
- language: "shell",
2628
- theme: "dark"
2629
- }, null, 8, ["code"])) : M("", !0)
2630
- ]);
2631
- };
2632
- }
2633
- }), Uo = {
2550
+ }), jo = {
2634
2551
  key: 0,
2635
2552
  class: "config-card-display-form"
2636
- }, qo = ["data-testid"], Ho = {
2553
+ }, Do = ["data-testid"], Po = {
2637
2554
  key: 0,
2638
2555
  class: "config-card-prop-section-title"
2639
- }, Vo = /* @__PURE__ */ z({
2556
+ }, Uo = /* @__PURE__ */ z({
2640
2557
  __name: "ConfigCardDisplay",
2641
2558
  props: {
2642
2559
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2648,7 +2565,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2648
2565
  entityType: {
2649
2566
  type: String,
2650
2567
  required: !0,
2651
- validator: (e) => Ue.includes(e)
2568
+ validator: (e) => Pe.includes(e)
2652
2569
  },
2653
2570
  subEntityType: {
2654
2571
  // only for event gateway entities
@@ -2693,32 +2610,32 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2693
2610
  }
2694
2611
  },
2695
2612
  setup(e) {
2696
- const t = e, n = De(), { i18n: { t: i } } = W.useI18n(), r = (s) => !!(s.tooltip || n[`${s.key}-label-tooltip`]), o = $(() => {
2613
+ const t = e, n = De(), { i18n: { t: i } } = Y.useI18n(), r = (s) => !!(s.tooltip || n[`${s.key}-label-tooltip`]), o = F(() => {
2697
2614
  if (!t.record)
2698
2615
  return t.record;
2699
2616
  let s = t.record;
2700
2617
  t.codeBlockRecordFormatter && (s = t.codeBlockRecordFormatter(s, t.format));
2701
2618
  const l = JSON.parse(JSON.stringify(s));
2702
2619
  return delete l.created_at, delete l.updated_at, l;
2703
- }), a = $(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
2620
+ }), a = F(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
2704
2621
  return (s, l) => (m(), S(ue, null, [
2705
- e.format === "structured" ? (m(), S("div", Uo, [
2622
+ e.format === "structured" ? (m(), S("div", jo, [
2706
2623
  (m(!0), S(ue, null, ce(e.propListTypes, (c) => (m(), S("div", {
2707
2624
  key: `config-card-details-${c}-props`,
2708
2625
  class: fe(`config-card-details-${c}-props`),
2709
2626
  "data-testid": `config-card-details-${c}-props`
2710
2627
  }, [
2711
- c !== "basic" ? (m(), S("div", Ho, L(c === "advanced" ? T(i)("baseConfigCard.sections.advanced") : c === "plugin" ? T(i)("baseConfigCard.sections.plugin") : T(i)("baseConfigCard.sections.policy")), 1)) : M("", !0),
2712
- (m(!0), S(ue, null, ce(e.propertyCollections[c], (d) => P(s.$slots, `config-card-item-${d.key}`, {
2628
+ c !== "basic" ? (m(), S("div", Po, L(c === "advanced" ? $(i)("baseConfigCard.sections.advanced") : c === "plugin" ? $(i)("baseConfigCard.sections.plugin") : $(i)("baseConfigCard.sections.policy")), 1)) : N("", !0),
2629
+ (m(!0), S(ue, null, ce(e.propertyCollections[c], (d) => D(s.$slots, `config-card-item-${d.key}`, {
2713
2630
  key: d.key,
2714
2631
  item: d
2715
2632
  }, () => [
2716
- K(Xt, { item: d }, Se({
2717
- label: k(() => [
2718
- P(s.$slots, `${d.key}-label`, { row: d }, void 0, !0)
2633
+ M(Xt, { item: d }, Se({
2634
+ label: w(() => [
2635
+ D(s.$slots, `${d.key}-label`, { row: d }, void 0, !0)
2719
2636
  ]),
2720
- [d.key]: k(({ rowValue: u }) => [
2721
- P(s.$slots, d.key, {
2637
+ [d.key]: w(({ rowValue: u }) => [
2638
+ D(s.$slots, d.key, {
2722
2639
  row: d,
2723
2640
  rowValue: u
2724
2641
  }, void 0, !0)
@@ -2727,45 +2644,38 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2727
2644
  }, [
2728
2645
  r(d) ? {
2729
2646
  name: "label-tooltip",
2730
- fn: k(() => [
2731
- P(s.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
2647
+ fn: w(() => [
2648
+ D(s.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
2732
2649
  ]),
2733
2650
  key: "0"
2734
2651
  } : void 0
2735
2652
  ]), 1032, ["item"])
2736
2653
  ], !0)), 128))
2737
- ], 10, qo))), 128))
2738
- ])) : M("", !0),
2654
+ ], 10, Do))), 128))
2655
+ ])) : N("", !0),
2739
2656
  e.format === "json" && o.value ? (m(), j(en, {
2740
2657
  key: 1,
2741
2658
  config: t.config,
2742
2659
  "entity-record": o.value,
2743
2660
  "fetcher-url": a.value,
2744
2661
  "request-method": "get"
2745
- }, null, 8, ["config", "entity-record", "fetcher-url"])) : M("", !0),
2746
- e.format === "yaml" && o.value ? (m(), j(Vn, {
2662
+ }, null, 8, ["config", "entity-record", "fetcher-url"])) : N("", !0),
2663
+ e.format === "yaml" && o.value ? (m(), j(Hn, {
2747
2664
  key: 2,
2748
2665
  "entity-record": o.value
2749
- }, null, 8, ["entity-record"])) : M("", !0),
2750
- e.format === "terraform" && o.value ? (m(), j(Yn, {
2666
+ }, null, 8, ["entity-record"])) : N("", !0),
2667
+ e.format === "terraform" && o.value ? (m(), j(Vn, {
2751
2668
  key: 3,
2752
2669
  "entity-record": o.value,
2753
2670
  "entity-type": t.entityType,
2754
2671
  "sub-entity-type": t.subEntityType
2755
- }, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) : M("", !0),
2756
- e.format === "deck" && o.value ? (m(), j(Wn, {
2757
- key: 4,
2758
- "control-plane-name": t.config.app === "konnect" ? t.config.controlPlaneName : void 0,
2759
- "entity-record": o.value,
2760
- "entity-type": t.entityType,
2761
- "geo-server-url": t.config.app === "konnect" ? t.config.geoServerUrl : void 0
2762
- }, null, 8, ["control-plane-name", "entity-record", "entity-type", "geo-server-url"])) : M("", !0)
2672
+ }, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) : N("", !0)
2763
2673
  ], 64));
2764
2674
  }
2765
- }), Yo = /* @__PURE__ */ se(Vo, [["__scopeId", "data-v-2104198c"]]), Wo = {
2675
+ }), qo = /* @__PURE__ */ se(Uo, [["__scopeId", "data-v-a7689049"]]), Ho = {
2766
2676
  class: "config-card-title",
2767
2677
  "data-testid": "config-card-title"
2768
- }, Jo = { class: "config-card-actions" }, Go = ["href"], zo = { class: "config-card-details-section" }, Qo = /* @__PURE__ */ z({
2678
+ }, Vo = { class: "config-card-actions" }, Yo = ["href"], Wo = { class: "config-card-details-section" }, Jo = /* @__PURE__ */ z({
2769
2679
  __name: "EntityBaseConfigCard",
2770
2680
  props: {
2771
2681
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2786,7 +2696,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2786
2696
  entityType: {
2787
2697
  type: String,
2788
2698
  required: !0,
2789
- validator: (e) => Ue.includes(e)
2699
+ validator: (e) => Pe.includes(e)
2790
2700
  },
2791
2701
  /**
2792
2702
  * Sub Entity type, required to generate terraform code for event gateway entities
@@ -2888,9 +2798,9 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2888
2798
  emits: ["loading", "fetch:success", "fetch:error", "configFormatChange"],
2889
2799
  setup(e, { emit: t }) {
2890
2800
  var O;
2891
- const n = t, i = e, { i18n: { t: r } } = W.useI18n(), { getMessageFromError: o } = W.useErrors(), { convertKeyToTitle: a } = W.useStringHelpers();
2892
- W.useSubSchema(i.pluginConfigKey);
2893
- const { axiosInstance: s } = W.useAxios((O = i.config) == null ? void 0 : O.axiosRequestConfig), l = [
2801
+ const n = t, i = e, { i18n: { t: r } } = Y.useI18n(), { getMessageFromError: o } = Y.useErrors(), { convertKeyToTitle: a } = Y.useStringHelpers();
2802
+ Y.useSubSchema(i.pluginConfigKey);
2803
+ const { axiosInstance: s } = Y.useAxios((O = i.config) == null ? void 0 : O.axiosRequestConfig), l = [
2894
2804
  {
2895
2805
  label: r("baseConfigCard.general.structuredFormat"),
2896
2806
  value: "structured",
@@ -2909,14 +2819,14 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2909
2819
  label: r("baseForm.configuration.terraform"),
2910
2820
  value: "terraform"
2911
2821
  });
2912
- const c = l[0].value, d = N(c), u = (f) => {
2822
+ const c = l[0].value, d = K(c), u = (f) => {
2913
2823
  d.value = f == null ? void 0 : f.value, n("configFormatChange", d.value);
2914
2824
  }, p = (f, v) => {
2915
2825
  localStorage.setItem(f, v);
2916
2826
  };
2917
2827
  be(d, (f) => {
2918
2828
  i.config.formatPreferenceKey && p(i.config.formatPreferenceKey, f);
2919
- }), nt(() => {
2829
+ }), tt(() => {
2920
2830
  if (i.config.formatPreferenceKey) {
2921
2831
  const f = localStorage.getItem(i.config.formatPreferenceKey);
2922
2832
  f && l.some((v) => v.value === f) ? d.value = f : d.value = c, p(i.config.formatPreferenceKey, d.value);
@@ -2963,140 +2873,140 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2963
2873
  // the last property displayed
2964
2874
  section: ae.Basic
2965
2875
  }
2966
- }, y = N(!1), x = N(!1), h = N(""), A = N({}), C = $(() => {
2876
+ }, h = K(!1), x = K(!1), y = K(""), k = K({}), C = F(() => {
2967
2877
  var b, H, J;
2968
- if (!A.value)
2878
+ if (!k.value)
2969
2879
  return [];
2970
- const f = [], v = Object.keys(A.value).length;
2971
- for (const I in A.value) {
2880
+ const f = [], v = Object.keys(k.value).length;
2881
+ for (const I in k.value) {
2972
2882
  if (I === "__ui_data") continue;
2973
- const R = (H = (b = i.configSchema) == null ? void 0 : b[I]) == null ? void 0 : H.order, G = (J = g[I]) == null ? void 0 : J.order;
2974
- let q = v;
2975
- (G || G === 0) && (q = G === -1 ? v + 1 : G), R && (q = R === -1 ? v + 1 : R), f.push([I, q]);
2883
+ const B = (H = (b = i.configSchema) == null ? void 0 : b[I]) == null ? void 0 : H.order, G = (J = g[I]) == null ? void 0 : J.order;
2884
+ let U = v;
2885
+ (G || G === 0) && (U = G === -1 ? v + 1 : G), B && (U = B === -1 ? v + 1 : B), f.push([I, U]);
2976
2886
  }
2977
- return f.sort(function(I, R) {
2978
- return I[1] - R[1];
2887
+ return f.sort(function(I, B) {
2888
+ return I[1] - B[1];
2979
2889
  }), f.map((I) => {
2980
2890
  var dt, ft;
2981
- const R = I[0], G = (dt = A.value) == null ? void 0 : dt[R], q = ((ft = i.configSchema) == null ? void 0 : ft[R]) || {}, Q = g[R];
2891
+ const B = I[0], G = (dt = k.value) == null ? void 0 : dt[B], U = ((ft = i.configSchema) == null ? void 0 : ft[B]) || {}, Q = g[B];
2982
2892
  return {
2983
- key: R,
2893
+ key: B,
2984
2894
  value: G,
2985
- hidden: q.hidden || !1,
2986
- type: q.type ?? ((Q == null ? void 0 : Q.type) || V.Text),
2987
- label: q.label ?? ((Q == null ? void 0 : Q.label) || a(R)),
2988
- tooltip: q.tooltip ?? ((Q == null ? void 0 : Q.tooltip) || void 0),
2989
- section: q.section ?? ((Q == null ? void 0 : Q.section) || ae.Advanced)
2895
+ hidden: U.hidden || !1,
2896
+ type: U.type ?? ((Q == null ? void 0 : Q.type) || V.Text),
2897
+ label: U.label ?? ((Q == null ? void 0 : Q.label) || a(B)),
2898
+ tooltip: U.tooltip ?? ((Q == null ? void 0 : Q.tooltip) || void 0),
2899
+ section: U.section ?? ((Q == null ? void 0 : Q.section) || ae.Advanced)
2990
2900
  };
2991
2901
  }).filter((I) => !I.hidden && I.key !== i.pluginConfigKey);
2992
- }), E = $(() => {
2902
+ }), T = F(() => {
2993
2903
  var H, J;
2994
- if (!A.value || !i.pluginConfigKey)
2904
+ if (!k.value || !i.pluginConfigKey)
2995
2905
  return [];
2996
- const f = A.value[i.pluginConfigKey] || {}, v = Object.keys(f).length, b = [];
2906
+ const f = k.value[i.pluginConfigKey] || {}, v = Object.keys(f).length, b = [];
2997
2907
  for (const I in f) {
2998
- const R = (J = (H = i.pluginConfigSchema) == null ? void 0 : H[I]) == null ? void 0 : J.order, G = f[I];
2999
- let q = G != null && G !== "" ? v - 1 : v;
3000
- R && (q = R === -1 ? v + 1 : R), b.push([I, q]);
2908
+ const B = (J = (H = i.pluginConfigSchema) == null ? void 0 : H[I]) == null ? void 0 : J.order, G = f[I];
2909
+ let U = G != null && G !== "" ? v - 1 : v;
2910
+ B && (U = B === -1 ? v + 1 : B), b.push([I, U]);
3001
2911
  }
3002
- return b.sort(function(I, R) {
3003
- return I[1] - R[1];
2912
+ return b.sort(function(I, B) {
2913
+ return I[1] - B[1];
3004
2914
  }), b.map((I) => {
3005
2915
  var Q;
3006
- const R = I[0], G = f[R], q = ((Q = i.pluginConfigSchema) == null ? void 0 : Q[R]) || {};
2916
+ const B = I[0], G = f[B], U = ((Q = i.pluginConfigSchema) == null ? void 0 : Q[B]) || {};
3007
2917
  return {
3008
- key: R,
2918
+ key: B,
3009
2919
  value: G,
3010
- hidden: q.hidden || !1,
3011
- type: q.type ?? V.Text,
3012
- label: q.label ?? a(R),
3013
- tooltip: q.tooltip ?? void 0,
2920
+ hidden: U.hidden || !1,
2921
+ type: U.type ?? V.Text,
2922
+ label: U.label ?? a(B),
2923
+ tooltip: U.tooltip ?? void 0,
3014
2924
  section: ae.Plugin
3015
2925
  };
3016
2926
  }).filter((I) => !I.hidden);
3017
- }), Y = $(() => {
2927
+ }), W = F(() => {
3018
2928
  var H, J;
3019
- if (!A.value || !i.policyConfigKey)
2929
+ if (!k.value || !i.policyConfigKey)
3020
2930
  return [];
3021
- const f = A.value[i.policyConfigKey] || {}, v = Object.keys(f).length, b = [];
2931
+ const f = k.value[i.policyConfigKey] || {}, v = Object.keys(f).length, b = [];
3022
2932
  for (const I in f) {
3023
- const R = (J = (H = i.policyConfigSchema) == null ? void 0 : H[I]) == null ? void 0 : J.order, G = f[I];
3024
- let q = G != null && G !== "" ? v - 1 : v;
3025
- R && (q = R === -1 ? v + 1 : R), b.push([I, q]);
2933
+ const B = (J = (H = i.policyConfigSchema) == null ? void 0 : H[I]) == null ? void 0 : J.order, G = f[I];
2934
+ let U = G != null && G !== "" ? v - 1 : v;
2935
+ B && (U = B === -1 ? v + 1 : B), b.push([I, U]);
3026
2936
  }
3027
- return b.sort(function(I, R) {
3028
- return I[1] - R[1];
2937
+ return b.sort(function(I, B) {
2938
+ return I[1] - B[1];
3029
2939
  }), b.map((I) => {
3030
2940
  var Q;
3031
- const R = I[0], G = f[R], q = ((Q = i.policyConfigSchema) == null ? void 0 : Q[R]) || {};
2941
+ const B = I[0], G = f[B], U = ((Q = i.policyConfigSchema) == null ? void 0 : Q[B]) || {};
3032
2942
  return {
3033
- key: R,
2943
+ key: B,
3034
2944
  value: G,
3035
- hidden: q.hidden || !1,
3036
- type: q.type ?? V.Text,
3037
- label: q.label ?? a(R),
3038
- tooltip: q.tooltip ?? void 0,
2945
+ hidden: U.hidden || !1,
2946
+ type: U.type ?? V.Text,
2947
+ label: U.label ?? a(B),
2948
+ tooltip: U.tooltip ?? void 0,
3039
2949
  section: ae.Policy
3040
2950
  };
3041
2951
  }).filter((I) => !I.hidden);
3042
- }), X = $(() => {
2952
+ }), X = F(() => {
3043
2953
  var f, v, b, H, J, I;
3044
2954
  return {
3045
- basic: (f = C.value) == null ? void 0 : f.filter((R) => R.section === ae.Basic),
3046
- advanced: (v = C.value) == null ? void 0 : v.filter((R) => R.section === ae.Advanced),
3047
- plugin: (H = E.value) == null ? void 0 : H.concat((b = C.value) == null ? void 0 : b.filter((R) => R.section === ae.Plugin)),
3048
- policy: (I = Y.value) == null ? void 0 : I.concat((J = C.value) == null ? void 0 : J.filter((R) => R.section === ae.Policy))
2955
+ basic: (f = C.value) == null ? void 0 : f.filter((B) => B.section === ae.Basic),
2956
+ advanced: (v = C.value) == null ? void 0 : v.filter((B) => B.section === ae.Advanced),
2957
+ plugin: (H = T.value) == null ? void 0 : H.concat((b = C.value) == null ? void 0 : b.filter((B) => B.section === ae.Plugin)),
2958
+ policy: (I = W.value) == null ? void 0 : I.concat((J = C.value) == null ? void 0 : J.filter((B) => B.section === ae.Policy))
3049
2959
  };
3050
- }), w = $(() => {
2960
+ }), _ = F(() => {
3051
2961
  const f = [];
3052
2962
  return X.value.basic.length && f.push("basic"), X.value.advanced.length && f.push("advanced"), X.value.plugin.length && f.push("plugin"), X.value.policy.length && f.push("policy"), f;
3053
- }), _ = $(() => {
2963
+ }), A = F(() => {
3054
2964
  var v, b;
3055
2965
  let f = `${i.config.apiBaseUrl}${i.fetchUrl}`;
3056
2966
  return i.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((v = i.config) == null ? void 0 : v.controlPlaneId) || "") : i.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (b = i.config) != null && b.workspace ? `/${i.config.workspace}` : "")), f = f.replace(/{id}/gi, i.config.entityId), f;
3057
2967
  });
3058
- return be(y, (f) => {
2968
+ return be(h, (f) => {
3059
2969
  n("loading", f);
3060
- }, { immediate: !0 }), it(async () => {
3061
- x.value = !1, y.value = !0;
2970
+ }, { immediate: !0 }), nt(async () => {
2971
+ x.value = !1, h.value = !0;
3062
2972
  try {
3063
- const { data: f } = await s.get(_.value);
2973
+ const { data: f } = await s.get(A.value);
3064
2974
  if (i.dataKey)
3065
2975
  if (typeof f[i.dataKey] < "u")
3066
- A.value = { ...f[i.dataKey] };
2976
+ k.value = { ...f[i.dataKey] };
3067
2977
  else
3068
2978
  throw new Error(r("errors.dataKeyUndefined", { dataKey: i.dataKey }));
3069
- else i.recordResolver ? A.value = { ...i.recordResolver(f) } : A.value = { ...f };
2979
+ else i.recordResolver ? k.value = { ...i.recordResolver(f) } : k.value = { ...f };
3070
2980
  Object.keys(i.configSchema).filter((b) => i.configSchema[b].forceShow).forEach((b) => {
3071
- A.value && typeof A.value[b] > "u" && (A.value[b] = null);
2981
+ k.value && typeof k.value[b] > "u" && (k.value[b] = null);
3072
2982
  }), n("fetch:success", f);
3073
2983
  } catch (f) {
3074
2984
  const v = o(f);
3075
- h.value = v.startsWith("code") ? r("baseConfigCard.errors.load") : v, x.value = !0, n("fetch:error", f);
2985
+ y.value = v.startsWith("code") ? r("baseConfigCard.errors.load") : v, x.value = !0, n("fetch:error", f);
3076
2986
  } finally {
3077
- y.value = !1;
2987
+ h.value = !1;
3078
2988
  }
3079
2989
  }), (f, v) => {
3080
- const b = D("KLabel"), H = D("KSelect"), J = D("KButton"), I = D("KSkeleton"), R = D("KEmptyState"), G = D("KCard");
2990
+ const b = P("KLabel"), H = P("KSelect"), J = P("KButton"), I = P("KSkeleton"), B = P("KEmptyState"), G = P("KCard");
3081
2991
  return m(), j(G, {
3082
2992
  class: "kong-ui-entity-base-config-card",
3083
2993
  "title-tag": e.titleTag
3084
2994
  }, Se({
3085
- actions: k(() => [
3086
- B("div", Jo, [
3087
- P(f.$slots, "actions", {}, void 0, !0),
3088
- K(b, {
2995
+ actions: w(() => [
2996
+ R("div", Vo, [
2997
+ D(f.$slots, "actions", {}, void 0, !0),
2998
+ M(b, {
3089
2999
  class: "config-format-select-label",
3090
3000
  "data-testid": "config-format-select-label"
3091
3001
  }, {
3092
- default: k(() => [
3093
- U(L(e.label), 1)
3002
+ default: w(() => [
3003
+ q(L(e.label), 1)
3094
3004
  ]),
3095
3005
  _: 1
3096
3006
  }),
3097
- K(H, {
3007
+ M(H, {
3098
3008
  modelValue: d.value,
3099
- "onUpdate:modelValue": v[0] || (v[0] = (q) => d.value = q),
3009
+ "onUpdate:modelValue": v[0] || (v[0] = (U) => d.value = U),
3100
3010
  "data-testid": "select-config-format",
3101
3011
  items: l,
3102
3012
  onChange: u
@@ -3107,51 +3017,51 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3107
3017
  class: "book-icon",
3108
3018
  "data-testid": "book-icon"
3109
3019
  }, {
3110
- default: k(() => [
3111
- B("a", {
3020
+ default: w(() => [
3021
+ R("a", {
3112
3022
  href: e.configCardDoc,
3113
3023
  rel: "noopener",
3114
3024
  target: "_blank"
3115
3025
  }, [
3116
- K(T(Vt), { size: T(rr) }, null, 8, ["size"])
3117
- ], 8, Go)
3026
+ M($(Vt), { size: $(tr) }, null, 8, ["size"])
3027
+ ], 8, Yo)
3118
3028
  ]),
3119
3029
  _: 1
3120
- })) : M("", !0)
3030
+ })) : N("", !0)
3121
3031
  ])
3122
3032
  ]),
3123
- default: k(() => [
3124
- y.value ? (m(), j(I, {
3033
+ default: w(() => [
3034
+ h.value ? (m(), j(I, {
3125
3035
  key: 0,
3126
3036
  "data-testid": "config-card-loader",
3127
3037
  "table-columns": 2,
3128
3038
  type: "table"
3129
- })) : x.value ? (m(), j(R, {
3039
+ })) : x.value ? (m(), j(B, {
3130
3040
  key: 1,
3131
3041
  "data-testid": "config-card-fetch-error",
3132
3042
  "icon-variant": "error"
3133
3043
  }, {
3134
- default: k(() => [
3135
- B("h3", null, L(h.value), 1)
3044
+ default: w(() => [
3045
+ R("h3", null, L(y.value), 1)
3136
3046
  ]),
3137
3047
  _: 1
3138
- })) : M("", !0),
3139
- B("div", zo, [
3140
- K(Yo, {
3048
+ })) : N("", !0),
3049
+ R("div", Wo, [
3050
+ M(qo, {
3141
3051
  "code-block-record-formatter": e.codeBlockRecordFormatter,
3142
3052
  config: e.config,
3143
3053
  "entity-type": e.entityType,
3144
- "fetcher-url": _.value,
3054
+ "fetcher-url": A.value,
3145
3055
  format: d.value,
3146
- "prop-list-types": w.value,
3056
+ "prop-list-types": _.value,
3147
3057
  "property-collections": X.value,
3148
- record: A.value,
3058
+ record: k.value,
3149
3059
  "sub-entity-type": e.subEntityType
3150
3060
  }, Se({ _: 2 }, [
3151
- ce(Object.keys(f.$slots), (q) => ({
3152
- name: q,
3153
- fn: k((Q) => [
3154
- P(f.$slots, q, qt({ record: A.value }, Q), void 0, !0)
3061
+ ce(Object.keys(f.$slots), (U) => ({
3062
+ name: U,
3063
+ fn: w((Q) => [
3064
+ D(f.$slots, U, qt({ record: k.value }, Q), void 0, !0)
3155
3065
  ])
3156
3066
  }))
3157
3067
  ]), 1032, ["code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "prop-list-types", "property-collections", "record", "sub-entity-type"])
@@ -3161,10 +3071,10 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3161
3071
  }, [
3162
3072
  e.hideTitle ? void 0 : {
3163
3073
  name: "title",
3164
- fn: k(() => [
3165
- B("span", Wo, [
3166
- P(f.$slots, "title", {}, () => [
3167
- U(L(T(r)("baseConfigCard.title")), 1)
3074
+ fn: w(() => [
3075
+ R("span", Ho, [
3076
+ D(f.$slots, "title", {}, () => [
3077
+ q(L($(r)("baseConfigCard.title")), 1)
3168
3078
  ], !0)
3169
3079
  ])
3170
3080
  ]),
@@ -3173,7 +3083,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3173
3083
  ]), 1032, ["title-tag"]);
3174
3084
  };
3175
3085
  }
3176
- }), hs = /* @__PURE__ */ se(Qo, [["__scopeId", "data-v-f2b42324"]]), Zo = ["novalidate"], Xo = /* @__PURE__ */ z({
3086
+ }), ms = /* @__PURE__ */ se(Jo, [["__scopeId", "data-v-f2b42324"]]), Go = ["novalidate"], zo = /* @__PURE__ */ z({
3177
3087
  __name: "EntityBaseForm",
3178
3088
  props: {
3179
3089
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3194,7 +3104,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3194
3104
  entityType: {
3195
3105
  type: String,
3196
3106
  required: !0,
3197
- validator: (e) => Ue.includes(e)
3107
+ validator: (e) => Pe.includes(e)
3198
3108
  },
3199
3109
  /**
3200
3110
  * Sub entity type, required for event gateway entities to generate terraform code
@@ -3297,19 +3207,19 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3297
3207
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
3298
3208
  setup(e, { expose: t, emit: n }) {
3299
3209
  var X;
3300
- const i = n, r = e, o = ci(), { i18n: { t: a } } = W.useI18n(), { getMessageFromError: s } = W.useErrors(), { axiosInstance: l } = W.useAxios((X = r.config) == null ? void 0 : X.axiosRequestConfig), c = N(!1), d = $(() => !!r.editId), u = N(!1), p = N(""), g = $(() => r.canSubmit === !1 || r.isReadonly), y = N(!1), x = $(() => {
3301
- var _, O;
3302
- let w = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3303
- return r.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((_ = r.config) == null ? void 0 : _.controlPlaneId) || "") : r.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), r.editId ? (w = w.replace(/{id}/gi, r.editId), w) : (w = w.replace(/\/{id}/gi, ""), w);
3304
- }), h = () => {
3305
- y.value = !y.value;
3306
- }, A = () => {
3210
+ const i = n, r = e, o = li(), { i18n: { t: a } } = Y.useI18n(), { getMessageFromError: s } = Y.useErrors(), { axiosInstance: l } = Y.useAxios((X = r.config) == null ? void 0 : X.axiosRequestConfig), c = K(!1), d = F(() => !!r.editId), u = K(!1), p = K(""), g = F(() => r.canSubmit === !1 || r.isReadonly), h = K(!1), x = F(() => {
3211
+ var A, O;
3212
+ let _ = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3213
+ return r.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((A = r.config) == null ? void 0 : A.controlPlaneId) || "") : r.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), r.editId ? (_ = _.replace(/{id}/gi, r.editId), _) : (_ = _.replace(/\/{id}/gi, ""), _);
3214
+ }), y = () => {
3215
+ h.value = !h.value;
3216
+ }, k = () => {
3307
3217
  r.config.cancelRoute ? o.push(r.config.cancelRoute) : C();
3308
3218
  }, C = () => {
3309
3219
  i("cancel");
3310
- }, E = () => {
3220
+ }, T = () => {
3311
3221
  g.value || i("submit");
3312
- }, Y = N([
3222
+ }, W = K([
3313
3223
  {
3314
3224
  title: a("baseForm.configuration.json"),
3315
3225
  hash: "#json"
@@ -3319,154 +3229,143 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3319
3229
  hash: "#yaml"
3320
3230
  }
3321
3231
  ]);
3322
- return r.config.app === "konnect" && r.entityType !== Ee.Other && Y.value.splice(1, 0, {
3232
+ return r.config.app === "konnect" && r.entityType !== it.Other && W.value.splice(1, 0, {
3323
3233
  title: a("baseForm.configuration.terraform"),
3324
3234
  hash: "#terraform"
3325
- }), fi.includes(r.entityType) && Y.value.push({
3326
- title: a("baseForm.configuration.deck"),
3327
- hash: "#deck"
3328
- }), be(() => c.value, (w) => {
3329
- i("loading", w);
3330
- }, { immediate: !0 }), it(async () => {
3235
+ }), be(() => c.value, (_) => {
3236
+ i("loading", _);
3237
+ }, { immediate: !0 }), nt(async () => {
3331
3238
  if (r.editId)
3332
3239
  try {
3333
3240
  u.value = !1, c.value = !0;
3334
- const { data: w } = await l.get(x.value);
3335
- i("fetch:success", w);
3336
- } catch (w) {
3337
- const _ = s(w);
3338
- p.value = _.startsWith("code") ? a("baseForm.errors.edit") : _, u.value = !0, i("fetch:error", w);
3241
+ const { data: _ } = await l.get(x.value);
3242
+ i("fetch:success", _);
3243
+ } catch (_) {
3244
+ const A = s(_);
3245
+ p.value = A.startsWith("code") ? a("baseForm.errors.edit") : A, u.value = !0, i("fetch:error", _);
3339
3246
  } finally {
3340
3247
  c.value = !1;
3341
3248
  }
3342
3249
  }), t({
3343
- viewConfig: h,
3250
+ viewConfig: y,
3344
3251
  formCancel: C,
3345
- formSubmit: E
3346
- }), (w, _) => {
3347
- const O = D("KSkeleton"), f = D("KEmptyState"), v = D("KAlert"), b = D("KButton"), H = D("KTabs"), J = D("KSlideout");
3348
- return m(), j(Pe(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3349
- default: k(() => [
3252
+ formSubmit: T
3253
+ }), (_, A) => {
3254
+ const O = P("KSkeleton"), f = P("KEmptyState"), v = P("KAlert"), b = P("KButton"), H = P("KTabs"), J = P("KSlideout");
3255
+ return m(), j(je(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3256
+ default: w(() => [
3350
3257
  c.value ? (m(), j(O, {
3351
3258
  key: 0,
3352
3259
  type: "form"
3353
3260
  })) : u.value ? (m(), j(f, {
3354
3261
  key: 1,
3355
- "action-button-text": T(a)("baseForm.actions.back"),
3262
+ "action-button-text": $(a)("baseForm.actions.back"),
3356
3263
  "data-testid": "form-fetch-error",
3357
3264
  "icon-variant": "error",
3358
- onClickAction: A
3265
+ onClickAction: k
3359
3266
  }, {
3360
- default: k(() => [
3361
- B("h3", null, L(p.value), 1)
3267
+ default: w(() => [
3268
+ R("h3", null, L(p.value), 1)
3362
3269
  ]),
3363
3270
  _: 1
3364
3271
  }, 8, ["action-button-text"])) : (m(), S("form", {
3365
3272
  key: 2,
3366
3273
  "data-testid": "form-content",
3367
3274
  novalidate: r.noValidate,
3368
- onReset: Be(C, ["prevent"]),
3369
- onSubmit: Be(E, ["prevent"])
3275
+ onReset: Le(C, ["prevent"]),
3276
+ onSubmit: Le(T, ["prevent"])
3370
3277
  }, [
3371
- P(w.$slots, "default", {}, void 0, !0),
3278
+ D(_.$slots, "default", {}, void 0, !0),
3372
3279
  e.errorMessage ? (m(), j(v, {
3373
3280
  key: 0,
3374
3281
  appearance: "danger",
3375
3282
  "data-testid": "form-error",
3376
3283
  message: e.errorMessage
3377
- }, null, 8, ["message"])) : M("", !0),
3378
- e.hideActions ? M("", !0) : (m(), j(Ht, {
3284
+ }, null, 8, ["message"])) : N("", !0),
3285
+ e.hideActions ? N("", !0) : (m(), j(Ht, {
3379
3286
  key: 1,
3380
3287
  disabled: !e.actionTeleportTarget,
3381
3288
  to: e.actionTeleportTarget
3382
3289
  }, [
3383
- B("div", {
3290
+ R("div", {
3384
3291
  class: fe(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
3385
3292
  "data-testid": "form-actions"
3386
3293
  }, [
3387
- P(w.$slots, "form-actions", {}, () => [
3388
- K(b, {
3294
+ D(_.$slots, "form-actions", {}, () => [
3295
+ M(b, {
3389
3296
  appearance: "tertiary",
3390
3297
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-view-configuration`,
3391
- onClick: _[0] || (_[0] = (I) => h())
3298
+ onClick: A[0] || (A[0] = (I) => y())
3392
3299
  }, {
3393
- default: k(() => [
3394
- U(L(T(a)("baseForm.actions.viewConfiguration")), 1)
3300
+ default: w(() => [
3301
+ q(L($(a)("baseForm.actions.viewConfiguration")), 1)
3395
3302
  ]),
3396
3303
  _: 1
3397
3304
  }, 8, ["data-testid"]),
3398
- K(b, {
3305
+ M(b, {
3399
3306
  appearance: "secondary",
3400
3307
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-cancel`,
3401
3308
  disabled: e.isReadonly,
3402
3309
  type: "reset",
3403
- onClick: _[1] || (_[1] = (I) => !!e.actionTeleportTarget && C())
3310
+ onClick: A[1] || (A[1] = (I) => !!e.actionTeleportTarget && C())
3404
3311
  }, {
3405
- default: k(() => [
3406
- U(L(e.cancelButtonText ?? T(a)("baseForm.actions.cancel")), 1)
3312
+ default: w(() => [
3313
+ q(L(e.cancelButtonText ?? $(a)("baseForm.actions.cancel")), 1)
3407
3314
  ]),
3408
3315
  _: 1
3409
3316
  }, 8, ["data-testid", "disabled"]),
3410
- K(b, {
3317
+ M(b, {
3411
3318
  appearance: "primary",
3412
3319
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-submit`,
3413
3320
  disabled: g.value,
3414
3321
  type: "submit",
3415
- onClick: _[2] || (_[2] = (I) => !!e.actionTeleportTarget && E())
3322
+ onClick: A[2] || (A[2] = (I) => !!e.actionTeleportTarget && T())
3416
3323
  }, {
3417
- default: k(() => [
3418
- U(L(e.saveButtonText ?? T(a)("baseForm.actions.save")), 1)
3324
+ default: w(() => [
3325
+ q(L(e.saveButtonText ?? $(a)("baseForm.actions.save")), 1)
3419
3326
  ]),
3420
3327
  _: 1
3421
3328
  }, 8, ["data-testid", "disabled"])
3422
3329
  ], !0)
3423
3330
  ], 2)
3424
3331
  ], 8, ["disabled", "to"]))
3425
- ], 40, Zo)),
3426
- K(J, {
3332
+ ], 40, Go)),
3333
+ M(J, {
3427
3334
  "close-on-blur": !1,
3428
3335
  "data-testid": "form-view-configuration-slideout",
3429
3336
  "has-overlay": !1,
3430
3337
  "offset-top": e.slidoutTopOffset,
3431
- title: T(a)("baseForm.configuration.title"),
3432
- visible: y.value,
3433
- onClose: _[4] || (_[4] = (I) => h())
3338
+ title: $(a)("baseForm.configuration.title"),
3339
+ visible: h.value,
3340
+ onClose: A[4] || (A[4] = (I) => y())
3434
3341
  }, {
3435
- default: k(() => [
3436
- B("div", null, L(T(a)("baseForm.configuration.message")), 1),
3437
- K(H, {
3342
+ default: w(() => [
3343
+ R("div", null, L($(a)("baseForm.configuration.message")), 1),
3344
+ M(H, {
3438
3345
  "data-testid": "form-view-configuration-slideout-tabs",
3439
- tabs: Y.value,
3440
- onChange: _[3] || (_[3] = (I) => i("codeBlockTabChange", I.replace("#", "")))
3346
+ tabs: W.value,
3347
+ onChange: A[3] || (A[3] = (I) => i("codeBlockTabChange", I.replace("#", "")))
3441
3348
  }, {
3442
- json: k(() => [
3443
- K(en, {
3349
+ json: w(() => [
3350
+ M(en, {
3444
3351
  config: e.config,
3445
3352
  "entity-record": r.formFields,
3446
3353
  "fetcher-url": x.value,
3447
3354
  "request-method": r.editId ? "put" : "post"
3448
3355
  }, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
3449
3356
  ]),
3450
- yaml: k(() => [
3451
- K(Vn, {
3357
+ yaml: w(() => [
3358
+ M(Hn, {
3452
3359
  "entity-record": r.formFields
3453
3360
  }, null, 8, ["entity-record"])
3454
3361
  ]),
3455
- terraform: k(() => [
3456
- K(Yn, {
3362
+ terraform: w(() => [
3363
+ M(Vn, {
3457
3364
  "entity-record": r.formFields,
3458
3365
  "entity-type": e.entityType,
3459
3366
  "sub-entity-type": e.subEntityType
3460
3367
  }, null, 8, ["entity-record", "entity-type", "sub-entity-type"])
3461
3368
  ]),
3462
- deck: k(() => [
3463
- K(Wn, {
3464
- "control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
3465
- "entity-record": r.formFields,
3466
- "entity-type": e.entityType,
3467
- "geo-server-url": e.config.app === "konnect" ? e.config.geoServerUrl : void 0
3468
- }, null, 8, ["control-plane-name", "entity-record", "entity-type", "geo-server-url"])
3469
- ]),
3470
3369
  _: 1
3471
3370
  }, 8, ["tabs"])
3472
3371
  ]),
@@ -3477,7 +3376,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3477
3376
  });
3478
3377
  };
3479
3378
  }
3480
- }), vs = /* @__PURE__ */ se(Xo, [["__scopeId", "data-v-b55da9e5"]]), el = ["data-truncate"], tl = /* @__PURE__ */ z({
3379
+ }), hs = /* @__PURE__ */ se(zo, [["__scopeId", "data-v-10f3d6b0"]]), Qo = ["data-truncate"], Zo = /* @__PURE__ */ z({
3481
3380
  __name: "EntityBaseTableCell",
3482
3381
  props: {
3483
3382
  keyName: {
@@ -3494,49 +3393,49 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3494
3393
  }
3495
3394
  },
3496
3395
  setup(e) {
3497
- const t = e, n = $(() => {
3498
- var h;
3499
- return ((h = t.rowEl) == null ? void 0 : h.querySelector(`[data-testid="${t.keyName}"]`)) || null;
3500
- }), i = $(() => {
3501
- var h;
3502
- return ((h = n.value) == null ? void 0 : h.querySelector('[data-truncate="true"]')) || null;
3503
- }), r = $(() => {
3504
- var A, C;
3505
- const h = (A = t.rowEl) == null ? void 0 : A.querySelectorAll("td");
3506
- return h ? ((C = h[0]) == null ? void 0 : C.getAttribute("data-testid")) === t.keyName : !0;
3507
- }), o = $(() => r.value || t.tooltip);
3396
+ const t = e, n = F(() => {
3397
+ var y;
3398
+ return ((y = t.rowEl) == null ? void 0 : y.querySelector(`[data-testid="${t.keyName}"]`)) || null;
3399
+ }), i = F(() => {
3400
+ var y;
3401
+ return ((y = n.value) == null ? void 0 : y.querySelector('[data-truncate="true"]')) || null;
3402
+ }), r = F(() => {
3403
+ var k, C;
3404
+ const y = (k = t.rowEl) == null ? void 0 : k.querySelectorAll("td");
3405
+ return y ? ((C = y[0]) == null ? void 0 : C.getAttribute("data-testid")) === t.keyName : !0;
3406
+ }), o = F(() => r.value || t.tooltip);
3508
3407
  let a;
3509
3408
  const s = () => {
3510
3409
  a && (a.disconnect(), a = void 0);
3511
3410
  }, l = () => {
3512
- var A, C, E;
3513
- let h = ((A = n.value) == null ? void 0 : A.clientWidth) || 0;
3411
+ var k, C, T;
3412
+ let y = ((k = n.value) == null ? void 0 : k.clientWidth) || 0;
3514
3413
  if (n.value && "getComputedStyle" in window) {
3515
- const Y = window.getComputedStyle(n.value);
3516
- h -= (parseFloat(Y.paddingLeft) || 0) + (parseFloat(Y.paddingRight) || 0);
3414
+ const W = window.getComputedStyle(n.value);
3415
+ y -= (parseFloat(W.paddingLeft) || 0) + (parseFloat(W.paddingRight) || 0);
3517
3416
  }
3518
- d.value = ((C = i.value) == null ? void 0 : C.getBoundingClientRect().width) || 0, u.value = h, p.value = ((E = c.value) == null ? void 0 : E.innerText) || "";
3519
- }, c = N({}), d = N(0), u = N(0), p = N(""), g = $(() => [i.value, n.value]), y = be(
3417
+ d.value = ((C = i.value) == null ? void 0 : C.getBoundingClientRect().width) || 0, u.value = y, p.value = ((T = c.value) == null ? void 0 : T.innerText) || "";
3418
+ }, c = K({}), d = K(0), u = K(0), p = K(""), g = F(() => [i.value, n.value]), h = be(
3520
3419
  g,
3521
- (h) => {
3420
+ (y) => {
3522
3421
  if (o.value && (s(), "ResizeObserver" in window && window)) {
3523
- a = new ResizeObserver((A) => {
3422
+ a = new ResizeObserver((k) => {
3524
3423
  window.requestAnimationFrame(() => {
3525
- !Array.isArray(A) || !A.length || l();
3424
+ !Array.isArray(k) || !k.length || l();
3526
3425
  });
3527
3426
  });
3528
- for (const A of h)
3529
- A && a.observe(A);
3427
+ for (const k of y)
3428
+ k && a.observe(k);
3530
3429
  }
3531
3430
  },
3532
3431
  { immediate: !0, flush: "post", deep: !0 }
3533
- ), x = $(() => o.value ? d.value > u.value : !1);
3534
- return nt(() => {
3432
+ ), x = F(() => o.value ? d.value > u.value : !1);
3433
+ return tt(() => {
3535
3434
  l();
3536
- }), Zn(() => {
3537
- y();
3538
- }), (h, A) => {
3539
- const C = D("KTooltip");
3435
+ }), zn(() => {
3436
+ h();
3437
+ }), (y, k) => {
3438
+ const C = P("KTooltip");
3540
3439
  return m(), S("span", {
3541
3440
  ref_key: "contentRef",
3542
3441
  ref: c,
@@ -3546,27 +3445,27 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3546
3445
  key: 0,
3547
3446
  "data-truncate": o.value || void 0
3548
3447
  }, [
3549
- K(C, {
3448
+ M(C, {
3550
3449
  "max-width": "300",
3551
3450
  placement: "bottom-start",
3552
3451
  text: x.value ? p.value : ""
3553
3452
  }, {
3554
- default: k(() => [
3555
- P(h.$slots, "default", {}, void 0, !0)
3453
+ default: w(() => [
3454
+ D(y.$slots, "default", {}, void 0, !0)
3556
3455
  ]),
3557
3456
  _: 3
3558
3457
  }, 8, ["text"])
3559
- ], 8, el)) : P(h.$slots, "default", { key: 1 }, void 0, !0)
3458
+ ], 8, Qo)) : D(y.$slots, "default", { key: 1 }, void 0, !0)
3560
3459
  ], 512);
3561
3460
  };
3562
3461
  }
3563
- }), nl = /* @__PURE__ */ se(tl, [["__scopeId", "data-v-a3a65cac"]]), il = { class: "toolbar-container" }, rl = {
3462
+ }), Xo = /* @__PURE__ */ se(Zo, [["__scopeId", "data-v-a3a65cac"]]), el = { class: "toolbar-container" }, tl = {
3564
3463
  key: 0,
3565
3464
  class: "toolbar-button-container"
3566
- }, al = {
3465
+ }, nl = {
3567
3466
  key: 0,
3568
3467
  class: "hidden"
3569
- }, ol = /* @__PURE__ */ z({
3468
+ }, il = /* @__PURE__ */ z({
3570
3469
  __name: "EntityBaseTable",
3571
3470
  props: {
3572
3471
  // table header configuration
@@ -3711,7 +3610,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3711
3610
  },
3712
3611
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked", "state"],
3713
3612
  setup(e, { emit: t }) {
3714
- const n = e, i = t, { i18n: { t: r } } = W.useI18n(), o = $(() => {
3613
+ const n = e, i = t, { i18n: { t: r } } = Y.useI18n(), o = F(() => {
3715
3614
  var f, v;
3716
3615
  return typeof n.errorMessage == "string" ? {
3717
3616
  hasError: !!n.errorMessage,
@@ -3722,7 +3621,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3722
3621
  title: (f = n.errorMessage) == null ? void 0 : f.title,
3723
3622
  message: (v = n.errorMessage) == null ? void 0 : v.message
3724
3623
  };
3725
- }), a = $(() => n.cacheIdentifier || n.preferencesStorageKey), s = $(() => {
3624
+ }), a = F(() => n.cacheIdentifier || n.preferencesStorageKey), s = F(() => {
3726
3625
  const f = [];
3727
3626
  return Object.keys(n.tableHeaders).forEach((b) => {
3728
3627
  const H = n.tableHeaders[b];
@@ -3740,7 +3639,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3740
3639
  "data-rowid": f.id,
3741
3640
  "data-testid": f.name,
3742
3641
  ...n.rowAttributes(f)
3743
- }), c = N({}), d = (f) => {
3642
+ }), c = K({}), d = (f) => {
3744
3643
  var v;
3745
3644
  return (v = c.value) == null ? void 0 : v.$el.querySelector(`[data-rowid="${f.id}"]`);
3746
3645
  }, u = (f) => {
@@ -3756,47 +3655,47 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3756
3655
  }, p = (f) => {
3757
3656
  C(f), i("state", f);
3758
3657
  }, g = () => {
3759
- i("empty-state-cta-clicked"), y();
3760
- }, y = () => {
3658
+ i("empty-state-cta-clicked"), h();
3659
+ }, h = () => {
3761
3660
  i("clear-search-input");
3762
- }, x = $(() => n.disableRowClick ? void 0 : (f, v) => {
3661
+ }, x = F(() => n.disableRowClick ? void 0 : (f, v) => {
3763
3662
  i("click:row", v);
3764
- }), h = (f) => {
3663
+ }), y = (f) => {
3765
3664
  i("sort", f);
3766
- }, { hideTableToolbar: A, handleStateChange: C } = W.useTableState(() => n.query), { setTablePreferences: E, getTablePreferences: Y } = hi(), X = N(Y(a.value, n.defaultTablePreferences)), w = $(() => {
3767
- const f = Y(a.value);
3665
+ }, { hideTableToolbar: k, handleStateChange: C } = Y.useTableState(() => n.query), { setTablePreferences: T, getTablePreferences: W } = mi(), X = K(W(a.value, n.defaultTablePreferences)), _ = F(() => {
3666
+ const f = W(a.value);
3768
3667
  return {
3769
3668
  ...n.initialFetcherParams,
3770
3669
  ...f
3771
3670
  };
3772
- }), _ = (f) => {
3671
+ }), A = (f) => {
3773
3672
  X.value = f, s.value.forEach((v) => {
3774
3673
  !("hidable" in v) || !X.value.columnVisibility || v.hidable === !1 && (X.value.columnVisibility[v.key] = !0);
3775
- }), a.value && E(a.value, f);
3776
- }, O = $(() => ({
3674
+ }), a.value && T(a.value, f);
3675
+ }, O = F(() => ({
3777
3676
  disablePageJump: n.disablePaginationPageJump,
3778
3677
  offset: n.paginationType === "offset",
3779
3678
  ...n.paginationAttributes
3780
3679
  }));
3781
3680
  return (f, v) => {
3782
- const b = D("KTableData"), H = D("KCard");
3681
+ const b = P("KTableData"), H = P("KCard");
3783
3682
  return m(), j(H, {
3784
3683
  class: "kong-ui-entity-base-table",
3785
3684
  title: e.title,
3786
3685
  "title-tag": e.titleTag
3787
3686
  }, {
3788
- default: k(() => [
3789
- K(b, {
3687
+ default: w(() => [
3688
+ M(b, {
3790
3689
  ref_key: "tableRefs",
3791
3690
  ref: c,
3792
3691
  "cache-identifier": a.value,
3793
3692
  "cell-attrs": u,
3794
3693
  "client-sort": e.enableClientSort,
3795
- "empty-state-action-message": e.query ? T(r)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
3694
+ "empty-state-action-message": e.query ? $(r)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
3796
3695
  "empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
3797
3696
  "empty-state-icon-variant": e.query ? "search" : "kong",
3798
- "empty-state-message": e.query ? T(r)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3799
- "empty-state-title": e.query ? T(r)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3697
+ "empty-state-message": e.query ? $(r)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3698
+ "empty-state-title": e.query ? $(r)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3800
3699
  error: o.value.hasError,
3801
3700
  "error-state-message": o.value.message,
3802
3701
  "error-state-title": o.value.title,
@@ -3805,8 +3704,8 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3805
3704
  headers: s.value,
3806
3705
  "hide-pagination": e.hidePagination,
3807
3706
  "hide-pagination-when-optional": e.hidePaginationWhenOptional,
3808
- "hide-toolbar": e.hideToolbar ?? T(A),
3809
- "initial-fetcher-params": w.value,
3707
+ "hide-toolbar": e.hideToolbar ?? $(k),
3708
+ "initial-fetcher-params": _.value,
3810
3709
  loading: e.isLoading,
3811
3710
  "pagination-attributes": O.value,
3812
3711
  "resize-columns": "",
@@ -3818,45 +3717,45 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3818
3717
  "table-preferences": X.value,
3819
3718
  onEmptyStateActionClick: g,
3820
3719
  "onRow:click": x.value,
3821
- onSort: v[0] || (v[0] = (J) => h(J)),
3720
+ onSort: v[0] || (v[0] = (J) => y(J)),
3822
3721
  onState: p,
3823
- "onUpdate:tablePreferences": _
3722
+ "onUpdate:tablePreferences": A
3824
3723
  }, Se({
3825
- toolbar: k(() => [
3826
- B("div", il, [
3827
- P(f.$slots, "toolbar-filter", {}, void 0, !0),
3828
- f.$slots["toolbar-button"] ? (m(), S("div", rl, [
3829
- P(f.$slots, "toolbar-button", {}, void 0, !0)
3830
- ])) : M("", !0)
3724
+ toolbar: w(() => [
3725
+ R("div", el, [
3726
+ D(f.$slots, "toolbar-filter", {}, void 0, !0),
3727
+ f.$slots["toolbar-button"] ? (m(), S("div", tl, [
3728
+ D(f.$slots, "toolbar-button", {}, void 0, !0)
3729
+ ])) : N("", !0)
3831
3730
  ])
3832
3731
  ]),
3833
- "action-items": k(({ row: J }) => [
3834
- P(f.$slots, "actions", { row: J }, void 0, !0)
3732
+ "action-items": w(({ row: J }) => [
3733
+ D(f.$slots, "actions", { row: J }, void 0, !0)
3835
3734
  ]),
3836
3735
  _: 2
3837
3736
  }, [
3838
3737
  f.$slots["empty-state"] ? {
3839
3738
  name: "empty-state",
3840
- fn: k(() => [
3841
- P(f.$slots, "empty-state", {}, void 0, !0)
3739
+ fn: w(() => [
3740
+ D(f.$slots, "empty-state", {}, void 0, !0)
3842
3741
  ]),
3843
3742
  key: "0"
3844
3743
  } : void 0,
3845
3744
  ce(e.tableHeaders, (J, I) => ({
3846
3745
  name: I,
3847
- fn: k(({ row: R, rowValue: G }) => [
3848
- K(nl, {
3746
+ fn: w(({ row: B, rowValue: G }) => [
3747
+ M(Xo, {
3849
3748
  "key-name": String(I),
3850
- "row-el": d(R),
3749
+ "row-el": d(B),
3851
3750
  tooltip: J.tooltip
3852
3751
  }, {
3853
- default: k(() => [
3854
- P(f.$slots, I, {
3855
- row: R,
3752
+ default: w(() => [
3753
+ D(f.$slots, I, {
3754
+ row: B,
3856
3755
  rowKey: e.rowKey,
3857
3756
  rowValue: G
3858
3757
  }, () => [
3859
- U(L(G), 1)
3758
+ q(L(G), 1)
3860
3759
  ], !0)
3861
3760
  ]),
3862
3761
  _: 2
@@ -3865,27 +3764,27 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3865
3764
  })),
3866
3765
  e.query ? void 0 : {
3867
3766
  name: "empty-state-action-icon",
3868
- fn: k(() => [
3869
- K(T(Yt))
3767
+ fn: w(() => [
3768
+ M($(Yt))
3870
3769
  ]),
3871
3770
  key: "1"
3872
3771
  }
3873
3772
  ]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-pagination-when-optional", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
3874
- f.$slots["outside-actions"] && T(A) ? (m(), S("div", al, [
3875
- P(f.$slots, "outside-actions", {}, void 0, !0)
3876
- ])) : M("", !0)
3773
+ f.$slots["outside-actions"] && $(k) ? (m(), S("div", nl, [
3774
+ D(f.$slots, "outside-actions", {}, void 0, !0)
3775
+ ])) : N("", !0)
3877
3776
  ]),
3878
3777
  _: 3
3879
3778
  }, 8, ["title", "title-tag"]);
3880
3779
  };
3881
3780
  }
3882
- }), bs = /* @__PURE__ */ se(ol, [["__scopeId", "data-v-44153100"]]), ll = {
3781
+ }), gs = /* @__PURE__ */ se(il, [["__scopeId", "data-v-44153100"]]), rl = {
3883
3782
  key: 0,
3884
3783
  class: "kong-ui-entity-delete-error"
3885
- }, sl = {
3784
+ }, al = {
3886
3785
  key: 1,
3887
3786
  class: "description"
3888
- }, cl = /* @__PURE__ */ z({
3787
+ }, ol = /* @__PURE__ */ z({
3889
3788
  __name: "EntityDeleteModal",
3890
3789
  props: {
3891
3790
  visible: {
@@ -3924,13 +3823,13 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3924
3823
  },
3925
3824
  emits: ["cancel", "proceed"],
3926
3825
  setup(e, { emit: t }) {
3927
- const { i18nT: n } = W.useI18n(), i = e, r = t, o = $(() => i.needConfirm ? i.entityName : ""), a = () => {
3826
+ const { i18nT: n } = Y.useI18n(), i = e, r = t, o = F(() => i.needConfirm ? i.entityName : ""), a = () => {
3928
3827
  r("cancel");
3929
3828
  }, s = () => {
3930
3829
  r("proceed");
3931
3830
  };
3932
3831
  return (l, c) => {
3933
- const d = D("KAlert"), u = D("KPrompt");
3832
+ const d = P("KAlert"), u = P("KPrompt");
3934
3833
  return m(), j(u, {
3935
3834
  "action-button-appearance": "danger",
3936
3835
  "action-button-disabled": e.actionPending,
@@ -3942,50 +3841,50 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3942
3841
  onCancel: a,
3943
3842
  onProceed: s
3944
3843
  }, {
3945
- default: k(() => [
3946
- e.error ? (m(), S("div", ll, [
3947
- K(d, { appearance: "danger" }, {
3948
- default: k(() => [
3949
- U(L(e.error), 1)
3844
+ default: w(() => [
3845
+ e.error ? (m(), S("div", rl, [
3846
+ M(d, { appearance: "danger" }, {
3847
+ default: w(() => [
3848
+ q(L(e.error), 1)
3950
3849
  ]),
3951
3850
  _: 1
3952
3851
  })
3953
- ])) : M("", !0),
3954
- K(T(n), {
3852
+ ])) : N("", !0),
3853
+ M($(n), {
3955
3854
  class: "message",
3956
3855
  keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3957
3856
  tag: "p"
3958
3857
  }, Se({
3959
- entityType: k(() => [
3960
- U(L(i.entityType), 1)
3858
+ entityType: w(() => [
3859
+ q(L(i.entityType), 1)
3961
3860
  ]),
3962
3861
  _: 2
3963
3862
  }, [
3964
3863
  i.entityName ? {
3965
3864
  name: "entityName",
3966
- fn: k(() => [
3967
- B("strong", null, L(i.entityName), 1)
3865
+ fn: w(() => [
3866
+ R("strong", null, L(i.entityName), 1)
3968
3867
  ]),
3969
3868
  key: "0"
3970
3869
  } : void 0
3971
3870
  ]), 1032, ["keypath"]),
3972
- i.description || l.$slots.description ? (m(), S("div", sl, [
3973
- P(l.$slots, "description", {}, () => [
3974
- B("p", null, L(i.description), 1)
3871
+ i.description || l.$slots.description ? (m(), S("div", al, [
3872
+ D(l.$slots, "description", {}, () => [
3873
+ R("p", null, L(i.description), 1)
3975
3874
  ], !0)
3976
- ])) : M("", !0)
3875
+ ])) : N("", !0)
3977
3876
  ]),
3978
3877
  _: 3
3979
3878
  }, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
3980
3879
  };
3981
3880
  }
3982
- }), xs = /* @__PURE__ */ se(cl, [["__scopeId", "data-v-4361d622"]]), ul = {
3881
+ }), ys = /* @__PURE__ */ se(ol, [["__scopeId", "data-v-4361d622"]]), ll = {
3983
3882
  fill: "none",
3984
3883
  height: "20",
3985
3884
  viewBox: "0 0 20 20",
3986
3885
  width: "20",
3987
3886
  xmlns: "http://www.w3.org/2000/svg"
3988
- }, dl = {
3887
+ }, sl = {
3989
3888
  id: "mask0_180_20349",
3990
3889
  height: "20",
3991
3890
  maskUnits: "userSpaceOnUse",
@@ -3993,35 +3892,35 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3993
3892
  width: "20",
3994
3893
  x: "0",
3995
3894
  y: "0"
3996
- }, fl = ["fill"], pl = { mask: "url(#mask0_180_20349)" }, ml = ["fill"], Mt = /* @__PURE__ */ z({
3895
+ }, cl = ["fill"], ul = { mask: "url(#mask0_180_20349)" }, dl = ["fill"], Mt = /* @__PURE__ */ z({
3997
3896
  __name: "IconFilter",
3998
3897
  props: {
3999
3898
  color: {
4000
3899
  type: String,
4001
- default: `var(--kong-ui-entity-filter-color, ${Zi})`
3900
+ default: `var(--kong-ui-entity-filter-color, ${Gi})`
4002
3901
  }
4003
3902
  },
4004
3903
  setup(e) {
4005
- return (t, n) => (m(), S("svg", ul, [
4006
- B("mask", dl, [
4007
- B("rect", {
3904
+ return (t, n) => (m(), S("svg", ll, [
3905
+ R("mask", sl, [
3906
+ R("rect", {
4008
3907
  fill: e.color,
4009
3908
  height: "20",
4010
3909
  width: "20"
4011
- }, null, 8, fl)
3910
+ }, null, 8, cl)
4012
3911
  ]),
4013
- B("g", pl, [
4014
- B("path", {
3912
+ R("g", ul, [
3913
+ R("path", {
4015
3914
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
4016
3915
  fill: e.color
4017
- }, null, 8, ml)
3916
+ }, null, 8, dl)
4018
3917
  ])
4019
3918
  ]));
4020
3919
  }
4021
- }), yl = {
3920
+ }), fl = {
4022
3921
  key: 1,
4023
3922
  class: "kong-ui-entity-filter"
4024
- }, gl = { class: "kong-ui-entity-filter-menu" }, hl = ["data-testid"], vl = ["onClick", "onKeydown"], bl = { class: "menu-item-indicator" }, xl = { class: "menu-item-body" }, Cl = ["for"], kl = { class: "menu-item-buttons" }, Al = { class: "filter-clear-button-container" }, _l = /* @__PURE__ */ z({
3923
+ }, pl = { class: "kong-ui-entity-filter-menu" }, ml = ["data-testid"], hl = ["onClick", "onKeydown"], gl = { class: "menu-item-indicator" }, yl = { class: "menu-item-body" }, vl = ["for"], bl = { class: "menu-item-buttons" }, xl = { class: "filter-clear-button-container" }, Cl = /* @__PURE__ */ z({
4025
3924
  __name: "EntityFilter",
4026
3925
  props: {
4027
3926
  // filter config, either exact match or fuzzy match
@@ -4041,61 +3940,61 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
4041
3940
  },
4042
3941
  emits: ["update:modelValue"],
4043
3942
  setup(e, { emit: t }) {
4044
- const { i18n: { t: n } } = W.useI18n(), i = e, r = t, o = N(!1), a = N({}), s = N(/* @__PURE__ */ new Set()), l = $(() => {
4045
- const w = [];
4046
- return new URLSearchParams(i.modelValue).forEach((_, O) => {
4047
- _ !== "" && w.push(O);
4048
- }), w;
4049
- }), c = $(() => {
4050
- const w = i.config.fields;
4051
- return Object.keys(w).filter((_) => {
3943
+ const { i18n: { t: n } } = Y.useI18n(), i = e, r = t, o = K(!1), a = K({}), s = K(/* @__PURE__ */ new Set()), l = F(() => {
3944
+ const _ = [];
3945
+ return new URLSearchParams(i.modelValue).forEach((A, O) => {
3946
+ A !== "" && _.push(O);
3947
+ }), _;
3948
+ }), c = F(() => {
3949
+ const _ = i.config.fields;
3950
+ return Object.keys(_).filter((A) => {
4052
3951
  var O;
4053
- return (O = w == null ? void 0 : w[_]) == null ? void 0 : O.searchable;
4054
- }).map((_) => ({
4055
- label: w[_].label || _,
4056
- value: _,
3952
+ return (O = _ == null ? void 0 : _[A]) == null ? void 0 : O.searchable;
3953
+ }).map((A) => ({
3954
+ label: _[A].label || A,
3955
+ value: A,
4057
3956
  expanded: !1
4058
3957
  }));
4059
3958
  });
4060
- be(() => i.modelValue, (w) => {
4061
- a.value = {}, new URLSearchParams(w).forEach((_, O) => {
4062
- a.value[O] = _;
3959
+ be(() => i.modelValue, (_) => {
3960
+ a.value = {}, new URLSearchParams(_).forEach((A, O) => {
3961
+ a.value[O] = A;
4063
3962
  });
4064
3963
  });
4065
3964
  const d = () => {
4066
3965
  o.value = !o.value;
4067
- }, u = (w) => {
4068
- s.value.has(w) ? s.value.delete(w) : s.value.add(w);
4069
- }, p = (w) => {
4070
- r("update:modelValue", w);
3966
+ }, u = (_) => {
3967
+ s.value.has(_) ? s.value.delete(_) : s.value.add(_);
3968
+ }, p = (_) => {
3969
+ r("update:modelValue", _);
4071
3970
  }, g = () => {
4072
3971
  p("");
4073
- }, y = (w) => `filter-${w}`, x = (w) => {
4074
- var _, O;
4075
- return (((O = (_ = i.config.schema) == null ? void 0 : _[w]) == null ? void 0 : O.values) ?? []).map((f) => typeof f == "string" ? { value: f, label: f } : f);
4076
- }, h = (w) => {
4077
- var _, O;
4078
- return ((O = (_ = i.config.schema) == null ? void 0 : _[w]) == null ? void 0 : O.type) ?? "text";
4079
- }, A = (w) => {
3972
+ }, h = (_) => `filter-${_}`, x = (_) => {
3973
+ var A, O;
3974
+ return (((O = (A = i.config.schema) == null ? void 0 : A[_]) == null ? void 0 : O.values) ?? []).map((f) => typeof f == "string" ? { value: f, label: f } : f);
3975
+ }, y = (_) => {
3976
+ var A, O;
3977
+ return ((O = (A = i.config.schema) == null ? void 0 : A[_]) == null ? void 0 : O.type) ?? "text";
3978
+ }, k = (_) => {
4080
3979
  a.value = {
4081
3980
  ...a.value,
4082
- [w]: ""
4083
- }, E();
3981
+ [_]: ""
3982
+ }, T();
4084
3983
  }, C = () => {
4085
- a.value = {}, E(!0);
4086
- }, E = (w = !1) => {
4087
- const _ = Object.keys(a.value).reduce((O, f) => (a.value[f] && (O[f] = `${a.value[f]}`), O), {});
4088
- w && (o.value = !1), r("update:modelValue", new URLSearchParams(_).toString());
4089
- }, Y = (w) => {
4090
- var _, O;
4091
- return !!((O = (_ = i.config.schema) == null ? void 0 : _[w]) != null && O.filterFunction);
4092
- }, X = (w, _) => {
3984
+ a.value = {}, T(!0);
3985
+ }, T = (_ = !1) => {
3986
+ const A = Object.keys(a.value).reduce((O, f) => (a.value[f] && (O[f] = `${a.value[f]}`), O), {});
3987
+ _ && (o.value = !1), r("update:modelValue", new URLSearchParams(A).toString());
3988
+ }, W = (_) => {
3989
+ var A, O;
3990
+ return !!((O = (A = i.config.schema) == null ? void 0 : A[_]) != null && O.filterFunction);
3991
+ }, X = (_, A) => {
4093
3992
  var f;
4094
- const O = (f = i.config.schema) == null ? void 0 : f[w];
4095
- return (O == null ? void 0 : O.filterFunction) === void 0 ? !0 : O.filterFunction(_);
3993
+ const O = (f = i.config.schema) == null ? void 0 : f[_];
3994
+ return (O == null ? void 0 : O.filterFunction) === void 0 ? !0 : O.filterFunction(A);
4096
3995
  };
4097
- return (w, _) => {
4098
- const O = D("KInput"), f = D("KButton"), v = D("KSelect");
3996
+ return (_, A) => {
3997
+ const O = P("KInput"), f = P("KButton"), v = P("KSelect");
4099
3998
  return e.config.isExactMatch ? (m(), j(O, {
4100
3999
  key: 0,
4101
4000
  autocomplete: "off",
@@ -4105,11 +4004,11 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
4105
4004
  placeholder: e.config.placeholder,
4106
4005
  "onUpdate:modelValue": p
4107
4006
  }, {
4108
- before: k(() => [
4109
- K(Mt)
4007
+ before: w(() => [
4008
+ M(Mt)
4110
4009
  ]),
4111
- after: k(() => [
4112
- xe(K(T(oi), {
4010
+ after: w(() => [
4011
+ xe(M($(ri), {
4113
4012
  class: "kong-ui-entity-filter-clear",
4114
4013
  role: "button",
4115
4014
  tabindex: "0",
@@ -4119,25 +4018,25 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
4119
4018
  ])
4120
4019
  ]),
4121
4020
  _: 1
4122
- }, 8, ["model-value", "placeholder"])) : (m(), S("div", yl, [
4123
- K(f, {
4021
+ }, 8, ["model-value", "placeholder"])) : (m(), S("div", fl, [
4022
+ M(f, {
4124
4023
  appearance: "tertiary",
4125
4024
  "data-testid": "filter-button",
4126
4025
  onClick: d
4127
4026
  }, {
4128
- default: k(() => [
4129
- K(Mt),
4130
- U(" " + L(T(n)("filter.filterButtonText")) + " " + L(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
4027
+ default: w(() => [
4028
+ M(Mt),
4029
+ q(" " + L($(n)("filter.filterButtonText")) + " " + L(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
4131
4030
  ]),
4132
4031
  _: 1
4133
4032
  }),
4134
- xe(B("div", {
4033
+ xe(R("div", {
4135
4034
  class: "kong-ui-entity-filter-backdrop",
4136
4035
  onClick: d
4137
4036
  }, null, 512), [
4138
4037
  [Ce, o.value]
4139
4038
  ]),
4140
- xe(B("div", gl, [
4039
+ xe(R("div", pl, [
4141
4040
  (m(!0), S(ue, null, ce(c.value, (b) => {
4142
4041
  var H, J;
4143
4042
  return m(), S("div", {
@@ -4145,84 +4044,84 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
4145
4044
  class: "kong-ui-entity-filter-menu-item",
4146
4045
  "data-testid": b.value
4147
4046
  }, [
4148
- B("span", {
4047
+ R("span", {
4149
4048
  class: fe(["menu-item-title", { expanded: s.value.has(b.value) }]),
4150
4049
  role: "button",
4151
4050
  tabindex: "0",
4152
4051
  onClick: (I) => u(b.value),
4153
- onKeydown: Xn((I) => u(b.value), ["enter"])
4052
+ onKeydown: Qn((I) => u(b.value), ["enter"])
4154
4053
  }, [
4155
- U(L(b.label) + " ", 1),
4156
- xe(B("span", bl, null, 512), [
4054
+ q(L(b.label) + " ", 1),
4055
+ xe(R("span", gl, null, 512), [
4157
4056
  [Ce, l.value.includes(b.value)]
4158
4057
  ]),
4159
- K(T(li), {
4058
+ M($(ai), {
4160
4059
  class: fe(["menu-item-expand-icon", { expanded: s.value.has(b.value) }]),
4161
- color: T(er)
4060
+ color: $(Qi)
4162
4061
  }, null, 8, ["class", "color"])
4163
- ], 42, vl),
4164
- xe(B("div", xl, [
4165
- B("label", {
4062
+ ], 42, hl),
4063
+ xe(R("div", yl, [
4064
+ R("label", {
4166
4065
  class: "menu-item-label",
4167
- for: y(b.value)
4168
- }, L(T(n)("filter.fieldLabel")), 9, Cl),
4066
+ for: h(b.value)
4067
+ }, L($(n)("filter.fieldLabel")), 9, vl),
4169
4068
  ((J = (H = e.config.schema) == null ? void 0 : H[b.value]) == null ? void 0 : J.type) === "select" ? (m(), j(v, {
4170
4069
  key: 0,
4171
- id: y(b.value),
4070
+ id: h(b.value),
4172
4071
  modelValue: a.value[b.value],
4173
4072
  "onUpdate:modelValue": (I) => a.value[b.value] = I,
4174
- "enable-filtering": Y(b.value),
4073
+ "enable-filtering": W(b.value),
4175
4074
  "filter-function": (I) => X(b.value, I),
4176
4075
  items: x(b.value),
4177
- placeholder: T(n)("filter.selectPlaceholder")
4076
+ placeholder: $(n)("filter.selectPlaceholder")
4178
4077
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (m(), j(O, {
4179
4078
  key: 1,
4180
- id: y(b.value),
4079
+ id: h(b.value),
4181
4080
  modelValue: a.value[b.value],
4182
4081
  "onUpdate:modelValue": (I) => a.value[b.value] = I,
4183
4082
  autocomplete: "off",
4184
- placeholder: T(n)("filter.inputPlaceholder"),
4185
- type: h(b.value)
4083
+ placeholder: $(n)("filter.inputPlaceholder"),
4084
+ type: y(b.value)
4186
4085
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
4187
4086
  ], 512), [
4188
4087
  [Ce, s.value.has(b.value)]
4189
4088
  ]),
4190
- xe(B("div", kl, [
4191
- K(f, {
4089
+ xe(R("div", bl, [
4090
+ M(f, {
4192
4091
  appearance: "tertiary",
4193
4092
  "data-testid": "apply-filter",
4194
4093
  size: "small",
4195
- onClick: _[0] || (_[0] = (I) => E(!0))
4094
+ onClick: A[0] || (A[0] = (I) => T(!0))
4196
4095
  }, {
4197
- default: k(() => [
4198
- U(L(T(n)("filter.applyButtonText")), 1)
4096
+ default: w(() => [
4097
+ q(L($(n)("filter.applyButtonText")), 1)
4199
4098
  ]),
4200
4099
  _: 1
4201
4100
  }),
4202
- K(f, {
4101
+ M(f, {
4203
4102
  appearance: "tertiary",
4204
4103
  "data-testid": "clear-filter",
4205
4104
  size: "small",
4206
- onClick: (I) => A(b.value)
4105
+ onClick: (I) => k(b.value)
4207
4106
  }, {
4208
- default: k(() => [
4209
- U(L(T(n)("filter.clearButtonText")), 1)
4107
+ default: w(() => [
4108
+ q(L($(n)("filter.clearButtonText")), 1)
4210
4109
  ]),
4211
4110
  _: 1
4212
4111
  }, 8, ["onClick"])
4213
4112
  ], 512), [
4214
4113
  [Ce, s.value.has(b.value)]
4215
4114
  ])
4216
- ], 8, hl);
4115
+ ], 8, ml);
4217
4116
  }), 128)),
4218
- B("div", Al, [
4219
- K(f, {
4117
+ R("div", xl, [
4118
+ M(f, {
4220
4119
  appearance: "tertiary",
4221
4120
  size: "small",
4222
4121
  onClick: C
4223
4122
  }, {
4224
- default: k(() => [
4225
- U(L(T(n)("filter.clearAllButtonText")), 1)
4123
+ default: w(() => [
4124
+ q(L($(n)("filter.clearAllButtonText")), 1)
4226
4125
  ]),
4227
4126
  _: 1
4228
4127
  })
@@ -4233,7 +4132,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
4233
4132
  ]));
4234
4133
  };
4235
4134
  }
4236
- }), Cs = /* @__PURE__ */ se(_l, [["__scopeId", "data-v-084f7978"]]), ks = /* @__PURE__ */ z({
4135
+ }), vs = /* @__PURE__ */ se(Cl, [["__scopeId", "data-v-084f7978"]]), bs = /* @__PURE__ */ z({
4237
4136
  __name: "EntityToggleModal",
4238
4137
  props: {
4239
4138
  visible: {
@@ -4265,9 +4164,9 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
4265
4164
  },
4266
4165
  emits: ["cancel", "proceed"],
4267
4166
  setup(e, { emit: t }) {
4268
- const { i18n: { t: n }, i18nT: i } = W.useI18n(), r = e, o = t, a = N(!1), s = $(
4167
+ const { i18n: { t: n }, i18nT: i } = Y.useI18n(), r = e, o = t, a = K(!1), s = F(
4269
4168
  () => r.action === "enable" ? n("toggleModal.enable.title", { entityType: r.entityType }) : n("toggleModal.disable.title", { entityType: r.entityType })
4270
- ), l = $(
4169
+ ), l = F(
4271
4170
  () => r.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
4272
4171
  ), c = () => o("cancel"), d = async () => {
4273
4172
  if (r.onConfirm) {
@@ -4282,9 +4181,9 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
4282
4181
  }
4283
4182
  };
4284
4183
  return (u, p) => {
4285
- const g = D("KPrompt");
4184
+ const g = P("KPrompt");
4286
4185
  return m(), j(Ht, { to: "body" }, [
4287
- K(g, {
4186
+ M(g, {
4288
4187
  "action-button-disabled": a.value,
4289
4188
  "action-button-text": l.value,
4290
4189
  "data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
@@ -4293,16 +4192,16 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
4293
4192
  onCancel: c,
4294
4193
  onProceed: d
4295
4194
  }, {
4296
- default: k(() => [
4297
- K(T(i), {
4195
+ default: w(() => [
4196
+ M($(i), {
4298
4197
  keypath: `toggleModal.${r.action}.message`,
4299
4198
  scope: "global"
4300
4199
  }, {
4301
- entityType: k(() => [
4302
- U(L(e.entityType), 1)
4200
+ entityType: w(() => [
4201
+ q(L(e.entityType), 1)
4303
4202
  ]),
4304
- entityName: k(() => [
4305
- B("strong", null, L(e.entityName), 1)
4203
+ entityName: w(() => [
4204
+ R("strong", null, L(e.entityName), 1)
4306
4205
  ]),
4307
4206
  _: 1
4308
4207
  }, 8, ["keypath"])
@@ -4312,7 +4211,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
4312
4211
  ]);
4313
4212
  };
4314
4213
  }
4315
- }), As = /* @__PURE__ */ z({
4214
+ }), xs = /* @__PURE__ */ z({
4316
4215
  __name: "PermissionsWrapper",
4317
4216
  props: {
4318
4217
  /**
@@ -4334,48 +4233,48 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
4334
4233
  }
4335
4234
  },
4336
4235
  setup(e) {
4337
- const t = e, n = N(void 0), i = $(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4236
+ const t = e, n = K(void 0), i = F(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4338
4237
  return be(() => t.authFunction, async () => {
4339
4238
  n.value = await t.authFunction();
4340
- }, { immediate: !0 }), (r, o) => i.value ? P(r.$slots, "default", {
4239
+ }, { immediate: !0 }), (r, o) => i.value ? D(r.$slots, "default", {
4341
4240
  key: 0,
4342
4241
  isAllowed: n.value
4343
- }) : M("", !0);
4242
+ }) : N("", !0);
4344
4243
  }
4345
4244
  }), te = [];
4346
4245
  for (let e = 0; e < 256; ++e)
4347
4246
  te.push((e + 256).toString(16).slice(1));
4348
- function wl(e, t = 0) {
4247
+ function kl(e, t = 0) {
4349
4248
  return (te[e[t + 0]] + te[e[t + 1]] + te[e[t + 2]] + te[e[t + 3]] + "-" + te[e[t + 4]] + te[e[t + 5]] + "-" + te[e[t + 6]] + te[e[t + 7]] + "-" + te[e[t + 8]] + te[e[t + 9]] + "-" + te[e[t + 10]] + te[e[t + 11]] + te[e[t + 12]] + te[e[t + 13]] + te[e[t + 14]] + te[e[t + 15]]).toLowerCase();
4350
4249
  }
4351
- let Ge;
4352
- const Sl = new Uint8Array(16);
4353
- function $l() {
4354
- if (!Ge) {
4250
+ let Je;
4251
+ const Al = new Uint8Array(16);
4252
+ function _l() {
4253
+ if (!Je) {
4355
4254
  if (typeof crypto > "u" || !crypto.getRandomValues)
4356
4255
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
4357
- Ge = crypto.getRandomValues.bind(crypto);
4256
+ Je = crypto.getRandomValues.bind(crypto);
4358
4257
  }
4359
- return Ge(Sl);
4258
+ return Je(Al);
4360
4259
  }
4361
- const Tl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), jt = { randomUUID: Tl };
4362
- function El(e, t, n) {
4260
+ const wl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), jt = { randomUUID: wl };
4261
+ function Sl(e, t, n) {
4363
4262
  var r;
4364
4263
  if (jt.randomUUID && !e)
4365
4264
  return jt.randomUUID();
4366
4265
  e = e || {};
4367
- const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? $l();
4266
+ const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? _l();
4368
4267
  if (i.length < 16)
4369
4268
  throw new Error("Random bytes length must be >= 16");
4370
- return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, wl(i);
4269
+ return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, kl(i);
4371
4270
  }
4372
- const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
4271
+ const $l = ["aria-labelledby"], Tl = { class: "form-section-wrapper" }, Il = {
4373
4272
  key: 1,
4374
4273
  class: "form-section-description"
4375
- }, Ll = {
4274
+ }, El = {
4376
4275
  key: 2,
4377
4276
  class: "form-section-footer"
4378
- }, Bl = { class: "form-section-content" }, Rl = /* @__PURE__ */ z({
4277
+ }, Fl = { class: "form-section-content" }, Ol = /* @__PURE__ */ z({
4379
4278
  __name: "EntityFormSection",
4380
4279
  props: {
4381
4280
  title: {
@@ -4404,52 +4303,52 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
4404
4303
  }
4405
4304
  },
4406
4305
  setup(e) {
4407
- const t = De(), n = El();
4306
+ const t = De(), n = Sl();
4408
4307
  return (i, r) => (m(), S("div", {
4409
- "aria-labelledby": e.title ? T(n) : void 0,
4308
+ "aria-labelledby": e.title ? $(n) : void 0,
4410
4309
  class: fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
4411
4310
  role: "group"
4412
4311
  }, [
4413
- B("div", Fl, [
4414
- e.hideInfoHeader ? M("", !0) : (m(), S("div", {
4312
+ R("div", Tl, [
4313
+ e.hideInfoHeader ? N("", !0) : (m(), S("div", {
4415
4314
  key: 0,
4416
4315
  class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
4417
4316
  }, [
4418
- e.title ? (m(), j(Pe(e.titleTag), {
4317
+ e.title ? (m(), j(je(e.titleTag), {
4419
4318
  key: 0,
4420
- id: T(n),
4319
+ id: $(n),
4421
4320
  class: "form-section-title"
4422
4321
  }, {
4423
- default: k(() => [
4424
- U(L(e.title), 1)
4322
+ default: w(() => [
4323
+ q(L(e.title), 1)
4425
4324
  ]),
4426
4325
  _: 1
4427
- }, 8, ["id"])) : M("", !0),
4428
- e.description || T(t).description ? (m(), S("div", Ol, [
4429
- P(i.$slots, "description", {}, () => [
4430
- B("p", null, L(e.description), 1)
4326
+ }, 8, ["id"])) : N("", !0),
4327
+ e.description || $(t).description ? (m(), S("div", Il, [
4328
+ D(i.$slots, "description", {}, () => [
4329
+ R("p", null, L(e.description), 1)
4431
4330
  ], !0)
4432
- ])) : M("", !0),
4433
- T(t).footer ? (m(), S("div", Ll, [
4434
- P(i.$slots, "footer", {}, void 0, !0)
4435
- ])) : M("", !0)
4331
+ ])) : N("", !0),
4332
+ $(t).footer ? (m(), S("div", El, [
4333
+ D(i.$slots, "footer", {}, void 0, !0)
4334
+ ])) : N("", !0)
4436
4335
  ], 2)),
4437
- B("div", Bl, [
4438
- P(i.$slots, "default", {}, void 0, !0)
4336
+ R("div", Fl, [
4337
+ D(i.$slots, "default", {}, void 0, !0)
4439
4338
  ])
4440
4339
  ])
4441
- ], 10, Il));
4340
+ ], 10, $l));
4442
4341
  }
4443
- }), _s = /* @__PURE__ */ se(Rl, [["__scopeId", "data-v-b1f74200"]]), Kl = { class: "ff-form-section" }, Nl = { class: "header" }, Ml = {
4342
+ }), Cs = /* @__PURE__ */ se(Ol, [["__scopeId", "data-v-b1f74200"]]), Ll = { class: "ff-form-section" }, Bl = { class: "header" }, Rl = {
4444
4343
  key: 0,
4445
4344
  class: "step"
4446
- }, jl = { class: "header-content" }, Pl = { class: "header-title" }, Dl = {
4345
+ }, Kl = { class: "header-content" }, Nl = { class: "header-title" }, Ml = {
4447
4346
  key: 0,
4448
4347
  class: "header-description"
4449
- }, Ul = {
4348
+ }, jl = {
4450
4349
  key: 1,
4451
4350
  class: "header-extra"
4452
- }, ql = { class: "content" }, Hl = /* @__PURE__ */ z({
4351
+ }, Dl = { class: "content" }, Pl = /* @__PURE__ */ z({
4453
4352
  __name: "EntityFormBlock",
4454
4353
  props: {
4455
4354
  step: {},
@@ -4458,37 +4357,37 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
4458
4357
  },
4459
4358
  setup(e) {
4460
4359
  const t = De();
4461
- return (n, i) => (m(), S("div", Kl, [
4462
- B("header", Nl, [
4463
- e.step != null ? (m(), S("div", Ml, L(e.step), 1)) : M("", !0),
4464
- B("div", jl, [
4465
- B("h2", Pl, [
4466
- P(n.$slots, "title", {}, () => [
4467
- U(L(e.title), 1)
4360
+ return (n, i) => (m(), S("div", Ll, [
4361
+ R("header", Bl, [
4362
+ e.step != null ? (m(), S("div", Rl, L(e.step), 1)) : N("", !0),
4363
+ R("div", Kl, [
4364
+ R("h2", Nl, [
4365
+ D(n.$slots, "title", {}, () => [
4366
+ q(L(e.title), 1)
4468
4367
  ], !0)
4469
4368
  ]),
4470
- e.description || t.description ? (m(), S("div", Dl, [
4471
- P(n.$slots, "description", {}, () => [
4472
- U(L(e.description), 1)
4369
+ e.description || t.description ? (m(), S("div", Ml, [
4370
+ D(n.$slots, "description", {}, () => [
4371
+ q(L(e.description), 1)
4473
4372
  ], !0)
4474
- ])) : M("", !0)
4373
+ ])) : N("", !0)
4475
4374
  ]),
4476
- t.extra ? (m(), S("div", Ul, [
4477
- P(n.$slots, "extra", {}, void 0, !0)
4478
- ])) : M("", !0)
4375
+ t.extra ? (m(), S("div", jl, [
4376
+ D(n.$slots, "extra", {}, void 0, !0)
4377
+ ])) : N("", !0)
4479
4378
  ]),
4480
- B("div", ql, [
4481
- P(n.$slots, "default", {}, void 0, !0)
4379
+ R("div", Dl, [
4380
+ D(n.$slots, "default", {}, void 0, !0)
4482
4381
  ])
4483
4382
  ]));
4484
4383
  }
4485
- }), ws = /* @__PURE__ */ se(Hl, [["__scopeId", "data-v-cb6d2e95"]]), Vl = {
4384
+ }), ks = /* @__PURE__ */ se(Pl, [["__scopeId", "data-v-cb6d2e95"]]), Ul = {
4486
4385
  class: "kong-ui-public-entity-link",
4487
4386
  "data-testid": "entity-link-parent"
4488
- }, Yl = {
4387
+ }, ql = {
4489
4388
  key: 0,
4490
4389
  class: "deleted-entity"
4491
- }, Wl = { key: 1 }, Jl = ["onClick"], Gl = /* @__PURE__ */ z({
4390
+ }, Hl = { key: 1 }, Vl = ["onClick"], Yl = /* @__PURE__ */ z({
4492
4391
  __name: "EntityLink",
4493
4392
  props: {
4494
4393
  entityLinkData: {
@@ -4512,10 +4411,10 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
4512
4411
  }
4513
4412
  },
4514
4413
  setup(e) {
4515
- const t = e, n = N(), { isTruncated: i } = W.useTruncationDetector(n), { i18n: { t: r } } = W.useI18n(), o = r("global.actions.copyId"), a = N(o), s = $(() => t.entityLinkData.deleted ?? !1), l = $(() => {
4414
+ const t = e, n = K(), { isTruncated: i } = Y.useTruncationDetector(n), { i18n: { t: r } } = Y.useI18n(), o = r("global.actions.copyId"), a = K(o), s = F(() => t.entityLinkData.deleted ?? !1), l = F(() => {
4516
4415
  var u;
4517
4416
  return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
4518
- }), c = $(() => {
4417
+ }), c = F(() => {
4519
4418
  var u;
4520
4419
  return `${(u = l.value) == null ? void 0 : u.toString().slice(0, 5)} (deleted)`;
4521
4420
  }), d = async (u) => {
@@ -4524,21 +4423,21 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
4524
4423
  }, 1800));
4525
4424
  };
4526
4425
  return (u, p) => {
4527
- const g = D("KTooltip"), y = D("KExternalLink"), x = D("KClipboardProvider");
4528
- return m(), S("div", Vl, [
4529
- s.value ? (m(), S("div", Yl, L(c.value), 1)) : l.value ? l.value ? (m(), j(y, {
4426
+ const g = P("KTooltip"), h = P("KExternalLink"), x = P("KClipboardProvider");
4427
+ return m(), S("div", Ul, [
4428
+ s.value ? (m(), S("div", ql, L(c.value), 1)) : l.value ? l.value ? (m(), j(h, {
4530
4429
  key: 2,
4531
4430
  class: "entity-link",
4532
4431
  "hide-icon": !e.newWindow,
4533
4432
  href: e.externalLink,
4534
4433
  target: e.newWindow ? "_blank" : "_self"
4535
4434
  }, {
4536
- default: k(() => [
4537
- K(g, {
4538
- text: T(i) && e.entityLinkData.label || ""
4435
+ default: w(() => [
4436
+ M(g, {
4437
+ text: $(i) && e.entityLinkData.label || ""
4539
4438
  }, {
4540
- default: k(() => [
4541
- B("span", {
4439
+ default: w(() => [
4440
+ R("span", {
4542
4441
  ref_key: "textContent",
4543
4442
  ref: n,
4544
4443
  class: "entity-link-label"
@@ -4548,7 +4447,7 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
4548
4447
  }, 8, ["text"])
4549
4448
  ]),
4550
4449
  _: 1
4551
- }, 8, ["hide-icon", "href", "target"])) : M("", !0) : (m(), S("div", Wl, L(" – "))),
4450
+ }, 8, ["hide-icon", "href", "target"])) : N("", !0) : (m(), S("div", Hl, L(" – "))),
4552
4451
  l.value && e.allowCopy ? (m(), j(g, {
4553
4452
  key: a.value,
4554
4453
  class: "copy-uuid-tooltip",
@@ -4556,63 +4455,63 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
4556
4455
  placement: "bottom-end",
4557
4456
  text: a.value
4558
4457
  }, {
4559
- default: k(() => [
4560
- K(x, null, {
4561
- default: k(({ copyToClipboard: h }) => [
4562
- B("span", {
4458
+ default: w(() => [
4459
+ M(x, null, {
4460
+ default: w(({ copyToClipboard: y }) => [
4461
+ R("span", {
4563
4462
  class: "entity-link-copy-id",
4564
- onClick: Be((A) => d(h), ["stop"])
4463
+ onClick: Le((k) => d(y), ["stop"])
4565
4464
  }, [
4566
- K(T(si), {
4465
+ M($(oi), {
4567
4466
  class: "copy-icon",
4568
- color: T(tr),
4467
+ color: $(Zi),
4569
4468
  "data-testid": "copy-id",
4570
- size: T(ir)
4469
+ size: $(er)
4571
4470
  }, null, 8, ["color", "size"])
4572
- ], 8, Jl)
4471
+ ], 8, Vl)
4573
4472
  ]),
4574
4473
  _: 1
4575
4474
  })
4576
4475
  ]),
4577
4476
  _: 1
4578
- }, 8, ["text"])) : M("", !0)
4477
+ }, 8, ["text"])) : N("", !0)
4579
4478
  ]);
4580
4479
  };
4581
4480
  }
4582
- }), Ss = /* @__PURE__ */ se(Gl, [["__scopeId", "data-v-96efdfa5"]]), zl = { class: "kong-ui-public-entity-empty-state" }, Ql = { class: "entity-empty-state-content" }, Zl = {
4481
+ }), As = /* @__PURE__ */ se(Yl, [["__scopeId", "data-v-96efdfa5"]]), Wl = { class: "kong-ui-public-entity-empty-state" }, Jl = { class: "entity-empty-state-content" }, Gl = {
4583
4482
  key: 0,
4584
4483
  class: "empty-state-image"
4585
- }, Xl = {
4484
+ }, zl = {
4586
4485
  key: 1,
4587
4486
  class: "entity-empty-state-title"
4588
- }, es = {
4487
+ }, Ql = {
4589
4488
  key: 2,
4590
4489
  class: "entity-empty-state-description"
4591
- }, ts = {
4490
+ }, Zl = {
4592
4491
  key: 3,
4593
4492
  class: "entity-empty-state-pricing"
4594
- }, ns = {
4493
+ }, Xl = {
4595
4494
  key: 0,
4596
4495
  class: "entity-empty-state-message"
4597
- }, is = {
4496
+ }, es = {
4598
4497
  key: 1,
4599
4498
  class: "entity-empty-state-action"
4600
- }, rs = {
4499
+ }, ts = {
4601
4500
  key: 2,
4602
4501
  class: "entity-empty-state-card-container"
4603
- }, as = {
4502
+ }, ns = {
4604
4503
  key: 0,
4605
4504
  class: "feature-icon"
4606
- }, os = { class: "card-header" }, ls = ["title"], ss = {
4505
+ }, is = { class: "card-header" }, rs = ["title"], as = {
4607
4506
  key: 3,
4608
4507
  class: "entity-empty-state-bottom-container"
4609
- }, cs = /* @__PURE__ */ z({
4508
+ }, os = /* @__PURE__ */ z({
4610
4509
  __name: "EntityEmptyState",
4611
4510
  props: {
4612
4511
  appearance: {
4613
4512
  type: String,
4614
4513
  default: () => "primary",
4615
- validator: (e) => yt.includes(e)
4514
+ validator: (e) => ht.includes(e)
4616
4515
  },
4617
4516
  title: {
4618
4517
  type: String,
@@ -4647,100 +4546,100 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
4647
4546
  },
4648
4547
  emits: ["click:create", "click:learn-more"],
4649
4548
  setup(e) {
4650
- const t = e, { i18n: { t: n } } = W.useI18n(), i = N(!1), r = $(() => i.value && !!t.actionButtonText), o = $(() => yt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
4651
- return it(async () => {
4549
+ const t = e, { i18n: { t: n } } = Y.useI18n(), i = K(!1), r = F(() => i.value && !!t.actionButtonText), o = F(() => ht.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
4550
+ return nt(async () => {
4652
4551
  i.value = await t.canCreate();
4653
- }), nt(() => ei(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
4552
+ }), tt(() => Zn(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
4654
4553
  Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) => {
4655
- const l = D("KCard");
4656
- return m(), S("div", zl, [
4657
- B("div", Ql, [
4658
- a.$slots.image ? (m(), S("div", Zl, [
4659
- P(a.$slots, "image", {}, void 0, !0)
4660
- ])) : M("", !0),
4661
- e.title || a.$slots.title ? (m(), S("div", Xl, [
4662
- B("h1", {
4554
+ const l = P("KCard");
4555
+ return m(), S("div", Wl, [
4556
+ R("div", Jl, [
4557
+ a.$slots.image ? (m(), S("div", Gl, [
4558
+ D(a.$slots, "image", {}, void 0, !0)
4559
+ ])) : N("", !0),
4560
+ e.title || a.$slots.title ? (m(), S("div", zl, [
4561
+ R("h1", {
4663
4562
  class: fe(o.value)
4664
4563
  }, [
4665
- P(a.$slots, "title", {}, () => [
4666
- U(L(e.title), 1)
4564
+ D(a.$slots, "title", {}, () => [
4565
+ q(L(e.title), 1)
4667
4566
  ], !0)
4668
4567
  ], 2)
4669
- ])) : M("", !0),
4670
- e.description || a.$slots.default ? (m(), S("div", es, [
4671
- P(a.$slots, "default", {}, () => [
4672
- B("p", null, L(e.description), 1)
4568
+ ])) : N("", !0),
4569
+ e.description || a.$slots.default ? (m(), S("div", Ql, [
4570
+ D(a.$slots, "default", {}, () => [
4571
+ R("p", null, L(e.description), 1)
4673
4572
  ], !0)
4674
- ])) : M("", !0),
4675
- e.pricing || a.$slots.pricing ? (m(), S("div", ts, [
4676
- B("p", null, [
4677
- B("b", null, L(T(n)("emptyState.pricingTitle")), 1),
4678
- s[2] || (s[2] = U()),
4679
- P(a.$slots, "pricing", {}, () => [
4680
- U(L(e.pricing), 1)
4573
+ ])) : N("", !0),
4574
+ e.pricing || a.$slots.pricing ? (m(), S("div", Zl, [
4575
+ R("p", null, [
4576
+ R("b", null, L($(n)("emptyState.pricingTitle")), 1),
4577
+ s[2] || (s[2] = q()),
4578
+ D(a.$slots, "pricing", {}, () => [
4579
+ q(L(e.pricing), 1)
4681
4580
  ], !0)
4682
4581
  ])
4683
- ])) : M("", !0)
4582
+ ])) : N("", !0)
4684
4583
  ]),
4685
- a.$slots.message ? (m(), S("div", ns, [
4686
- P(a.$slots, "message", {}, void 0, !0)
4687
- ])) : M("", !0),
4688
- r.value || e.learnMore || a.$slots.actions ? (m(), S("div", is, [
4689
- P(a.$slots, "actions", {}, () => [
4690
- r.value ? (m(), j(T(mt), {
4584
+ a.$slots.message ? (m(), S("div", Xl, [
4585
+ D(a.$slots, "message", {}, void 0, !0)
4586
+ ])) : N("", !0),
4587
+ r.value || e.learnMore || a.$slots.actions ? (m(), S("div", es, [
4588
+ D(a.$slots, "actions", {}, () => [
4589
+ r.value ? (m(), j($(mt), {
4691
4590
  key: 0,
4692
4591
  appearance: "primary",
4693
4592
  "data-testid": "entity-create-button",
4694
4593
  size: e.appearance === "secondary" ? "medium" : "large",
4695
4594
  onClick: s[0] || (s[0] = (c) => a.$emit("click:create"))
4696
4595
  }, {
4697
- default: k(() => [
4698
- K(T(Yt)),
4699
- U(" " + L(e.actionButtonText), 1)
4596
+ default: w(() => [
4597
+ M($(Yt)),
4598
+ q(" " + L(e.actionButtonText), 1)
4700
4599
  ]),
4701
4600
  _: 1
4702
- }, 8, ["size"])) : M("", !0),
4703
- e.learnMore ? (m(), j(T(mt), {
4601
+ }, 8, ["size"])) : N("", !0),
4602
+ e.learnMore ? (m(), j($(mt), {
4704
4603
  key: 1,
4705
4604
  appearance: "secondary",
4706
4605
  "data-testid": "entity-learn-more-button",
4707
4606
  size: e.appearance === "secondary" ? "medium" : "large",
4708
4607
  onClick: s[1] || (s[1] = (c) => a.$emit("click:learn-more"))
4709
4608
  }, {
4710
- default: k(() => [
4711
- K(T(Vt), { decorative: "" }),
4712
- U(" " + L(T(n)("emptyState.learnMore")), 1)
4609
+ default: w(() => [
4610
+ M($(Vt), { decorative: "" }),
4611
+ q(" " + L($(n)("emptyState.learnMore")), 1)
4713
4612
  ]),
4714
4613
  _: 1
4715
- }, 8, ["size"])) : M("", !0)
4614
+ }, 8, ["size"])) : N("", !0)
4716
4615
  ], !0)
4717
- ])) : M("", !0),
4718
- e.features.length ? (m(), S("div", rs, [
4616
+ ])) : N("", !0),
4617
+ e.features.length ? (m(), S("div", ts, [
4719
4618
  (m(!0), S(ue, null, ce(e.features, (c, d) => (m(), j(l, {
4720
4619
  key: c,
4721
4620
  class: "entity-empty-state-card"
4722
4621
  }, {
4723
- title: k(() => [
4724
- a.$slots[`feature-${d}-icon`] ? (m(), S("div", as, [
4725
- P(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
4726
- ])) : M("", !0),
4727
- B("div", os, L(c.title), 1)
4622
+ title: w(() => [
4623
+ a.$slots[`feature-${d}-icon`] ? (m(), S("div", ns, [
4624
+ D(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
4625
+ ])) : N("", !0),
4626
+ R("div", is, L(c.title), 1)
4728
4627
  ]),
4729
- default: k(() => [
4730
- B("div", {
4628
+ default: w(() => [
4629
+ R("div", {
4731
4630
  title: c.description
4732
- }, L(c.description), 9, ls)
4631
+ }, L(c.description), 9, rs)
4733
4632
  ]),
4734
4633
  _: 2
4735
4634
  }, 1024))), 128))
4736
- ])) : M("", !0),
4737
- a.$slots.bottom ? (m(), S("div", ss, [
4738
- P(a.$slots, "bottom", {}, void 0, !0)
4739
- ])) : M("", !0)
4635
+ ])) : N("", !0),
4636
+ a.$slots.bottom ? (m(), S("div", as, [
4637
+ D(a.$slots, "bottom", {}, void 0, !0)
4638
+ ])) : N("", !0)
4740
4639
  ]);
4741
4640
  };
4742
4641
  }
4743
- }), $s = /* @__PURE__ */ se(cs, [["__scopeId", "data-v-645aae54"]]), us = { key: 1 }, Ts = /* @__PURE__ */ z({
4642
+ }), _s = /* @__PURE__ */ se(os, [["__scopeId", "data-v-645aae54"]]), ls = { key: 1 }, ws = /* @__PURE__ */ z({
4744
4643
  __name: "TableTags",
4745
4644
  props: {
4746
4645
  /** The tags to display in the table */
@@ -4754,7 +4653,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
4754
4653
  }
4755
4654
  },
4756
4655
  setup(e) {
4757
- const t = e, n = $(() => {
4656
+ const t = e, n = F(() => {
4758
4657
  if (Array.isArray(t.tags))
4759
4658
  return t.tags;
4760
4659
  if (typeof t.tags == "string")
@@ -4768,68 +4667,66 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
4768
4667
  });
4769
4668
  return (i, r) => {
4770
4669
  var o;
4771
- return ((o = n.value) == null ? void 0 : o.length) > 0 ? (m(), j(T(ri), { key: 0 }, {
4772
- default: k(() => [
4773
- (m(!0), S(ue, null, ce(n.value, (a) => (m(), j(T(ai), {
4670
+ return ((o = n.value) == null ? void 0 : o.length) > 0 ? (m(), j($(ni), { key: 0 }, {
4671
+ default: w(() => [
4672
+ (m(!0), S(ue, null, ce(n.value, (a) => (m(), j($(ii), {
4774
4673
  key: a,
4775
4674
  "max-width": e.tagMaxWidth,
4776
- onClick: r[0] || (r[0] = Be(() => {
4675
+ onClick: r[0] || (r[0] = Le(() => {
4777
4676
  }, ["stop"]))
4778
4677
  }, {
4779
- default: k(() => [
4780
- U(L(a), 1)
4678
+ default: w(() => [
4679
+ q(L(a), 1)
4781
4680
  ]),
4782
4681
  _: 2
4783
4682
  }, 1032, ["max-width"]))), 128))
4784
4683
  ]),
4785
4684
  _: 1
4786
- })) : (m(), S("span", us, "-"));
4685
+ })) : (m(), S("span", ls, "-"));
4787
4686
  };
4788
4687
  }
4789
- }), { useAxios: Es, useDeleteUrlBuilder: Is, useErrors: Fs, useExternalLinkCreator: Os, useFetchUrlBuilder: Ls, useFetcher: Bs, useFetcherCacheKey: Rs, useDebouncedFilter: Ks, useStringHelpers: Ns, useHelpers: Ms, useGatewayFeatureSupported: js, useTruncationDetector: Ps, useValidators: Ds, useSchemaProvider: Us, useTableState: qs } = W;
4688
+ }), { useAxios: Ss, useDeleteUrlBuilder: $s, useErrors: Ts, useExternalLinkCreator: Is, useFetchUrlBuilder: Es, useFetcher: Fs, useFetcherCacheKey: Os, useDebouncedFilter: Ls, useStringHelpers: Bs, useHelpers: Rs, useGatewayFeatureSupported: Ks, useTruncationDetector: Ns, useValidators: Ms, useSchemaProvider: js, useTableState: Ds } = Y;
4790
4689
  export {
4791
- yt as Appearances,
4792
- Yo as ConfigCardDisplay,
4690
+ ht as Appearances,
4691
+ qo as ConfigCardDisplay,
4793
4692
  Xt as ConfigCardItem,
4794
4693
  ae as ConfigurationSchemaSection,
4795
4694
  V as ConfigurationSchemaType,
4796
- Wn as DeckCodeBlock,
4797
- hs as EntityBaseConfigCard,
4798
- vs as EntityBaseForm,
4799
- di as EntityBaseFormType,
4800
- bs as EntityBaseTable,
4801
- xs as EntityDeleteModal,
4802
- $s as EntityEmptyState,
4803
- Cs as EntityFilter,
4804
- ws as EntityFormBlock,
4805
- _s as EntityFormSection,
4806
- Ss as EntityLink,
4807
- ks as EntityToggleModal,
4808
- ui as EntityTypes,
4809
- pi as EventGatewayTypesArray,
4695
+ ms as EntityBaseConfigCard,
4696
+ hs as EntityBaseForm,
4697
+ ci as EntityBaseFormType,
4698
+ gs as EntityBaseTable,
4699
+ ys as EntityDeleteModal,
4700
+ _s as EntityEmptyState,
4701
+ vs as EntityFilter,
4702
+ ks as EntityFormBlock,
4703
+ Cs as EntityFormSection,
4704
+ As as EntityLink,
4705
+ bs as EntityToggleModal,
4706
+ si as EntityTypes,
4707
+ ui as EventGatewayTypesArray,
4810
4708
  me as FetcherStatus,
4811
- zi as InternalLinkItem,
4709
+ Wi as InternalLinkItem,
4812
4710
  en as JsonCodeBlock,
4813
- As as PermissionsWrapper,
4814
- fi as SupportedEntityDeckArray,
4815
- Ee as SupportedEntityType,
4816
- Ue as SupportedEntityTypesArray,
4817
- Ts as TableTags,
4818
- Yn as TerraformCodeBlock,
4819
- Vn as YamlCodeBlock,
4820
- Es as useAxios,
4821
- Ks as useDebouncedFilter,
4822
- Is as useDeleteUrlBuilder,
4823
- Fs as useErrors,
4824
- Os as useExternalLinkCreator,
4825
- Ls as useFetchUrlBuilder,
4826
- Bs as useFetcher,
4827
- Rs as useFetcherCacheKey,
4828
- js as useGatewayFeatureSupported,
4829
- Ms as useHelpers,
4830
- Us as useSchemaProvider,
4831
- Ns as useStringHelpers,
4832
- qs as useTableState,
4833
- Ps as useTruncationDetector,
4834
- Ds as useValidators
4711
+ xs as PermissionsWrapper,
4712
+ it as SupportedEntityType,
4713
+ Pe as SupportedEntityTypesArray,
4714
+ ws as TableTags,
4715
+ Vn as TerraformCodeBlock,
4716
+ Hn as YamlCodeBlock,
4717
+ Ss as useAxios,
4718
+ Ls as useDebouncedFilter,
4719
+ $s as useDeleteUrlBuilder,
4720
+ Ts as useErrors,
4721
+ Is as useExternalLinkCreator,
4722
+ Es as useFetchUrlBuilder,
4723
+ Fs as useFetcher,
4724
+ Os as useFetcherCacheKey,
4725
+ Ks as useGatewayFeatureSupported,
4726
+ Rs as useHelpers,
4727
+ js as useSchemaProvider,
4728
+ Bs as useStringHelpers,
4729
+ Ds as useTableState,
4730
+ Ns as useTruncationDetector,
4731
+ Ms as useValidators
4835
4732
  };