apiuikit 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ var tu = Object.defineProperty;
2
2
  var nu = (e, t, n) => t in e ? tu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var we = (e, t, n) => nu(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsxs as b, jsx as l, Fragment as te } from "react/jsx-runtime";
5
- import ru, { Component as su, useContext as ua, createContext as ou, useState as X, useMemo as ye, useId as Rn, useRef as Pe, useEffect as le, useLayoutEffect as iu, useCallback as fi, useSyncExternalStore as au, Suspense as Vs, lazy as qs, forwardRef as lu, Fragment as da } from "react";
5
+ import ru, { Component as su, useContext as ua, createContext as ou, useState as Z, useMemo as ye, useId as Rn, useRef as Pe, useEffect as le, useLayoutEffect as iu, useCallback as fi, useSyncExternalStore as au, Suspense as Vs, lazy as qs, forwardRef as lu, Fragment as da } from "react";
6
6
  import { createPortal as Mn } from "react-dom";
7
7
  const Ys = [
8
8
  "#14b8a6",
@@ -17,7 +17,7 @@ const Ys = [
17
17
  // cyan-500
18
18
  "#8b5cf6"
19
19
  // violet-500
20
- ], Zs = (e, t) => {
20
+ ], Xs = (e, t) => {
21
21
  const n = t.length > 0 ? t : Ys, r = (e % n.length + n.length) % n.length;
22
22
  return n[r];
23
23
  }, $n = {
@@ -71,7 +71,7 @@ const Ys = [
71
71
  sidebar: {
72
72
  useChannelAddressAsIdentifier: !0
73
73
  }
74
- }, Xs = (e) => typeof e == "object" && e !== null && "$ref" in e && typeof e.$ref == "string", cu = (e) => typeof e == "object" && e !== null;
74
+ }, Zs = (e) => typeof e == "object" && e !== null && "$ref" in e && typeof e.$ref == "string", cu = (e) => typeof e == "object" && e !== null;
75
75
  function uu(e) {
76
76
  try {
77
77
  return decodeURIComponent(e).replace(/~1/g, "/").replace(/~0/g, "~");
@@ -98,11 +98,11 @@ function Ln(e) {
98
98
  return t.set(n, r), r;
99
99
  };
100
100
  }
101
- const us = (e) => typeof e == "object" && e !== null, du = (e) => e.replace(/^#\//, "").split("/").pop() ?? e, Qs = (e, t = /* @__PURE__ */ new Set()) => typeof e != "object" || e === null || t.has(e) ? !1 : (t.add(e), Xs(e) ? !0 : (Array.isArray(e) ? e : Object.values(e)).some((r) => Qs(r, t))), pa = (e, t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set()) => {
101
+ const us = (e) => typeof e == "object" && e !== null, du = (e) => e.replace(/^#\//, "").split("/").pop() ?? e, Qs = (e, t = /* @__PURE__ */ new Set()) => typeof e != "object" || e === null || t.has(e) ? !1 : (t.add(e), Zs(e) ? !0 : (Array.isArray(e) ? e : Object.values(e)).some((r) => Qs(r, t))), pa = (e, t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set()) => {
102
102
  if (typeof e != "object" || e === null) return !1;
103
103
  if (t.has(e)) return !0;
104
104
  if (n.has(e)) return !1;
105
- if (n.add(e), Xs(e)) return !0;
105
+ if (n.add(e), Zs(e)) return !0;
106
106
  t.add(e);
107
107
  try {
108
108
  return (Array.isArray(e) ? e : Object.values(e)).some((s) => pa(s, t, n));
@@ -126,7 +126,7 @@ function Pn(e) {
126
126
  }
127
127
  return c;
128
128
  }
129
- if (Xs(o)) {
129
+ if (Zs(o)) {
130
130
  const a = fa(e, o.$ref), c = us(a) || Array.isArray(a);
131
131
  if (c && !n.has(a)) {
132
132
  const u = s(a, i);
@@ -306,7 +306,7 @@ function Ou(e) {
306
306
  }
307
307
  function ya(e, t, n = $n) {
308
308
  var v, A, _, j, S, R;
309
- const [r, s] = X(null), [o, i] = X(null), a = ye(() => Ln(t), [t]), c = ((v = n.expand) == null ? void 0 : v.schemas) === !0, u = (_ = (A = n.theme) == null ? void 0 : A.depthColors) != null && _.length ? n.theme.depthColors : Ys, d = ((j = n.show) == null ? void 0 : j.extensions) !== !1, p = ((S = n.show) == null ? void 0 : S.codeSamples) !== !1, f = (R = n.markdown) == null ? void 0 : R.url, g = ye(() => {
309
+ const [r, s] = Z(null), [o, i] = Z(null), a = ye(() => Ln(t), [t]), c = ((v = n.expand) == null ? void 0 : v.schemas) === !0, u = (_ = (A = n.theme) == null ? void 0 : A.depthColors) != null && _.length ? n.theme.depthColors : Ys, d = ((j = n.show) == null ? void 0 : j.extensions) !== !1, p = ((S = n.show) == null ? void 0 : S.codeSamples) !== !1, f = (R = n.markdown) == null ? void 0 : R.url, g = ye(() => {
310
310
  if (typeof f == "function") return f;
311
311
  if (typeof f == "string") return () => f;
312
312
  }, [f]), m = ye(
@@ -536,7 +536,7 @@ function $u(e) {
536
536
  return r < e.length && t.push({ type: "text", value: e.slice(r) }), t;
537
537
  }
538
538
  function Rt({ address: e, parameters: t, className: n = "text-xs", truncate: r = !1, padded: s = !0 }) {
539
- const { portalHost: o } = He(), [i, a] = X(null), [c, u] = X({ top: 0, left: 0, placement: "top" }), [d, p] = X(!1), f = Pe(null), g = $u(e);
539
+ const { portalHost: o } = He(), [i, a] = Z(null), [c, u] = Z({ top: 0, left: 0, placement: "top" }), [d, p] = Z(!1), f = Pe(null), g = $u(e);
540
540
  let m = 0;
541
541
  const y = 40;
542
542
  le(() => {
@@ -631,7 +631,7 @@ function Mt({ method: e, size: t = "sm", className: n = "" }) {
631
631
  ) : null;
632
632
  }
633
633
  function Or(e, t) {
634
- const [n, r] = X(null);
634
+ const [n, r] = Z(null);
635
635
  return iu(() => {
636
636
  if (!e || !t) {
637
637
  r(null);
@@ -671,7 +671,7 @@ function zu({
671
671
  onItemSelect: r,
672
672
  selectedItem: s
673
673
  }) {
674
- const [o, i] = X(!1), [a, c] = X(!1), u = o || a, { rootElement: d, portalHost: p } = He(), f = Pe(null), g = Pe(null), m = ye(
674
+ const [o, i] = Z(!1), [a, c] = Z(!1), u = o || a, { rootElement: d, portalHost: p } = He(), f = Pe(null), g = Pe(null), m = ye(
675
675
  () => e.filter((Y) => Y.items.length > 0),
676
676
  [e]
677
677
  ), y = ye(
@@ -680,7 +680,7 @@ function zu({
680
680
  ), v = ye(
681
681
  () => m.filter((Y) => Y.showInPopover !== !1),
682
682
  [m]
683
- ), [A, _] = X(null), j = Pe(null), S = Pe(null), R = fi((Y, F) => {
683
+ ), [A, _] = Z(null), j = Pe(null), S = Pe(null), R = fi((Y, F) => {
684
684
  _({ section: Y, key: F }), j.current = { section: Y, key: F }, S.current && clearTimeout(S.current), S.current = setTimeout(() => {
685
685
  j.current = null;
686
686
  }, 600);
@@ -1272,7 +1272,7 @@ const qu = (e) => /* @__PURE__ */ b(
1272
1272
  }
1273
1273
  );
1274
1274
  function Na(e, t) {
1275
- const [n, r] = X("docked"), s = Pe(t);
1275
+ const [n, r] = Z("docked"), s = Pe(t);
1276
1276
  return s.current = t, le(() => {
1277
1277
  if (!e) return;
1278
1278
  let o = null, i = null;
@@ -1319,7 +1319,7 @@ function _a({
1319
1319
  results: n,
1320
1320
  onSelectResult: r
1321
1321
  }) {
1322
- const s = Pe(null), o = Pe(null), [i, a] = X(!1), [c, u] = X(-1), d = "asyncapi-search-results", { portalHost: p, rootElement: f } = He(), g = Na(f, i), m = g !== "docked", y = Or(f, m), v = {
1322
+ const s = Pe(null), o = Pe(null), [i, a] = Z(!1), [c, u] = Z(-1), d = "asyncapi-search-results", { portalHost: p, rootElement: f } = He(), g = Na(f, i), m = g !== "docked", y = Or(f, m), v = {
1323
1323
  left: m ? ((y == null ? void 0 : y.left) ?? 0) + vi : vi,
1324
1324
  transform: `translateY(${g === "hidden" ? "-150%" : "0px"})`,
1325
1325
  // Below SidePanel's z-50 (unlike the sidebar's own toggle, this button
@@ -1544,7 +1544,7 @@ function Dn({ className: e }) {
1544
1544
  );
1545
1545
  }
1546
1546
  function Ca({ serialize: e, leftOffset: t }) {
1547
- const [n, r] = X(!1), [s, o] = X(!1), i = Pe(null), a = Pe(void 0), { portalHost: c, rootElement: u, deref: d, document: p, markdownUrl: f } = He(), g = () => e(d), m = Na(u, n), y = m !== "docked", v = Or(u, y), A = {
1547
+ const [n, r] = Z(!1), [s, o] = Z(!1), i = Pe(null), a = Pe(void 0), { portalHost: c, rootElement: u, deref: d, document: p, markdownUrl: f } = He(), g = () => e(d), m = Na(u, n), y = m !== "docked", v = Or(u, y), A = {
1548
1548
  left: y ? ((v == null ? void 0 : v.left) ?? 0) + t : t,
1549
1549
  transform: `translateY(${m === "hidden" ? "-150%" : "0px"})`,
1550
1550
  zIndex: 40,
@@ -1674,7 +1674,7 @@ function Ca({ serialize: e, leftOffset: t }) {
1674
1674
  )
1675
1675
  ] });
1676
1676
  }
1677
- const vt = (e) => typeof e == "object" && e !== null && !Array.isArray(e), pr = (e, t = /* @__PURE__ */ new Set()) => e == null ? "" : typeof e == "string" || typeof e == "number" || typeof e == "boolean" ? String(e) : Array.isArray(e) ? e.map((n) => pr(n, t)).join(" ") : e instanceof Map ? Array.from(e.entries()).flatMap(([n, r]) => [n, pr(r, t)]).join(" ") : vt(e) ? t.has(e) ? "" : (t.add(e), Object.entries(e).flatMap(([n, r]) => [n, pr(r, t)]).join(" ")) : "", Ze = (e) => pr(e).trim().replace(/\s+/g, " "), Zu = (e, t) => t.length ? `schema-${e}-${t.join("-")}` : `schema-${e}`, Xu = /* @__PURE__ */ new Set([
1677
+ const vt = (e) => typeof e == "object" && e !== null && !Array.isArray(e), pr = (e, t = /* @__PURE__ */ new Set()) => e == null ? "" : typeof e == "string" || typeof e == "number" || typeof e == "boolean" ? String(e) : Array.isArray(e) ? e.map((n) => pr(n, t)).join(" ") : e instanceof Map ? Array.from(e.entries()).flatMap(([n, r]) => [n, pr(r, t)]).join(" ") : vt(e) ? t.has(e) ? "" : (t.add(e), Object.entries(e).flatMap(([n, r]) => [n, pr(r, t)]).join(" ")) : "", Xe = (e) => pr(e).trim().replace(/\s+/g, " "), Xu = (e, t) => t.length ? `schema-${e}-${t.join("-")}` : `schema-${e}`, Zu = /* @__PURE__ */ new Set([
1678
1678
  "properties",
1679
1679
  "items",
1680
1680
  "allOf",
@@ -1696,14 +1696,14 @@ const vt = (e) => typeof e == "object" && e !== null && !Array.isArray(e), pr =
1696
1696
  if (!vt(e)) return e;
1697
1697
  const t = {};
1698
1698
  for (const [n, r] of Object.entries(e))
1699
- Xu.has(n) || (t[n] = r);
1699
+ Zu.has(n) || (t[n] = r);
1700
1700
  return t;
1701
1701
  }, Ia = (e, t, n, r) => {
1702
1702
  const s = `schema-${n}`, o = (a, c, u, d) => {
1703
1703
  const p = `components.schemas.${n}${c.length ? `.${c.join(".")}` : ""}`, f = `Schemas > ${r}${u.length ? ` > ${u.join(" > ")}` : ""}`, g = vt(a) ? a.description : void 0, m = c.length ? `${r}.${c.join(".")}` : r;
1704
1704
  e.push({
1705
1705
  id: `schema-${n}-${c.join("-") || "root"}`,
1706
- targetId: d ? Zu(n, d) : s,
1706
+ targetId: d ? Xu(n, d) : s,
1707
1707
  type: "schema",
1708
1708
  tab: "schemas",
1709
1709
  key: n,
@@ -1711,7 +1711,7 @@ const vt = (e) => typeof e == "object" && e !== null && !Array.isArray(e), pr =
1711
1711
  path: p,
1712
1712
  location: f,
1713
1713
  subtitle: g,
1714
- text: Ze([Qu(a)]),
1714
+ text: Xe([Qu(a)]),
1715
1715
  schemaFocusTokens: d && d.length > 0 ? d : void 0
1716
1716
  });
1717
1717
  }, i = (a, c = [], u = [], d = [], p = /* @__PURE__ */ new Set()) => {
@@ -1772,7 +1772,7 @@ function Ju(e) {
1772
1772
  path: "info",
1773
1773
  location: "Info",
1774
1774
  subtitle: o,
1775
- text: Ze([
1775
+ text: Xe([
1776
1776
  e.info,
1777
1777
  e.info.title,
1778
1778
  e.info.description,
@@ -1796,7 +1796,7 @@ function Ju(e) {
1796
1796
  path: `servers.${s}`,
1797
1797
  location: `Servers > ${s}`,
1798
1798
  subtitle: c,
1799
- text: Ze([
1799
+ text: Xe([
1800
1800
  s,
1801
1801
  a,
1802
1802
  c,
@@ -1819,7 +1819,7 @@ function Ju(e) {
1819
1819
  path: `servers.${s}.security`,
1820
1820
  location: `Servers > ${s} > Authorization`,
1821
1821
  focusSection: "security",
1822
- text: Ze(u)
1822
+ text: Xe(u)
1823
1823
  });
1824
1824
  const d = i.bindings, p = vt(d) && i.protocol ? d[i.protocol] : void 0;
1825
1825
  p != null && t.push({
@@ -1832,7 +1832,7 @@ function Ju(e) {
1832
1832
  path: `servers.${s}.bindings.${i.protocol}`,
1833
1833
  location: `Servers > ${s} > ${i.protocol} configuration`,
1834
1834
  focusSection: `binding:${i.protocol}`,
1835
- text: Ze(p)
1835
+ text: Xe(p)
1836
1836
  });
1837
1837
  }
1838
1838
  if (e.operations)
@@ -1851,7 +1851,7 @@ function Ju(e) {
1851
1851
  path: `operations.${s}`,
1852
1852
  location: `Operations > ${i}`,
1853
1853
  subtitle: a,
1854
- text: Ze([
1854
+ text: Xe([
1855
1855
  s,
1856
1856
  i,
1857
1857
  a,
@@ -1876,7 +1876,7 @@ function Ju(e) {
1876
1876
  path: `operations.${s}.security`,
1877
1877
  location: `Operations > ${i} > Authorization`,
1878
1878
  focusSection: "security",
1879
- text: Ze(c)
1879
+ text: Xe(c)
1880
1880
  });
1881
1881
  const u = o.bindings;
1882
1882
  if (vt(u))
@@ -1891,7 +1891,7 @@ function Ju(e) {
1891
1891
  path: `operations.${s}.bindings.${d}`,
1892
1892
  location: `Operations > ${i} > ${d} configuration`,
1893
1893
  focusSection: `binding:${d}`,
1894
- text: Ze(p)
1894
+ text: Xe(p)
1895
1895
  });
1896
1896
  }
1897
1897
  if ((n = e.components) != null && n.messages)
@@ -1907,7 +1907,7 @@ function Ju(e) {
1907
1907
  path: `components.messages.${s}`,
1908
1908
  location: `Messages > ${i}`,
1909
1909
  subtitle: a,
1910
- text: Ze([
1910
+ text: Xe([
1911
1911
  s,
1912
1912
  i,
1913
1913
  a,
@@ -1929,7 +1929,7 @@ function Ju(e) {
1929
1929
  path: `components.messages.${s}.payload`,
1930
1930
  location: `Messages > ${i} > Payload`,
1931
1931
  focusSection: "payload",
1932
- text: Ze(o.payload)
1932
+ text: Xe(o.payload)
1933
1933
  }), o.headers && t.push({
1934
1934
  id: `message-${s}-headers`,
1935
1935
  targetId: `message-${s}`,
@@ -1940,7 +1940,7 @@ function Ju(e) {
1940
1940
  path: `components.messages.${s}.headers`,
1941
1941
  location: `Messages > ${i} > Headers`,
1942
1942
  focusSection: "headers",
1943
- text: Ze(o.headers)
1943
+ text: Xe(o.headers)
1944
1944
  });
1945
1945
  }
1946
1946
  if ((r = e.components) != null && r.schemas)
@@ -3177,7 +3177,7 @@ Pt.use = function(...e) {
3177
3177
  };
3178
3178
  var Ud = Pt;
3179
3179
  function Ba(e, t, n = {}) {
3180
- const [r, s] = X(""), [o, i] = X(""), a = n.debounceMs ?? 150;
3180
+ const [r, s] = Z(""), [o, i] = Z(""), a = n.debounceMs ?? 150;
3181
3181
  le(() => {
3182
3182
  const p = setTimeout(() => i(r), a);
3183
3183
  return () => clearTimeout(p);
@@ -3288,12 +3288,12 @@ function ja({
3288
3288
  searchQuery: s
3289
3289
  }) {
3290
3290
  var $;
3291
- const o = (($ = e[0]) == null ? void 0 : $.id) ?? t, [i, a] = X(o), [c, u] = X(null), d = (N) => {
3291
+ const o = (($ = e[0]) == null ? void 0 : $.id) ?? t, [i, a] = Z(o), [c, u] = Z(null), d = (N) => {
3292
3292
  a(N), u(N);
3293
- }, [p, f] = X({}), g = e.some((N) => N.id === i) ? i : o, m = {};
3293
+ }, [p, f] = Z({}), g = e.some((N) => N.id === i) ? i : o, m = {};
3294
3294
  for (const N of r)
3295
3295
  m[N.id] = N.visible ? p[N.id] ?? null : null;
3296
- const y = (N, W) => f((oe) => ({ ...oe, [N]: W })), [v, A] = X(null), [_, j] = X(null), [S, R] = X(null), T = (N) => {
3296
+ const y = (N, W) => f((oe) => ({ ...oe, [N]: W })), [v, A] = Z(null), [_, j] = Z(null), [S, R] = Z(null), T = (N) => {
3297
3297
  n(N.tab) ? d(N.tab) : N.tab === "servers" && u("servers");
3298
3298
  const W = {};
3299
3299
  for (const oe of r)
@@ -3347,7 +3347,7 @@ function ja({
3347
3347
  schemaFocusTarget: _
3348
3348
  };
3349
3349
  }
3350
- const re = (e) => typeof e == "object" && e !== null && !Array.isArray(e), xt = (e) => re(e) ? e : null, Ci = "^[\0-ÿ]*$", Vd = Math.pow(-2, 31), qd = Math.pow(2, 31) - 1, Yd = Math.pow(-2, 63), Zd = Math.pow(2, 63) - 1, Xd = {
3350
+ const re = (e) => typeof e == "object" && e !== null && !Array.isArray(e), xt = (e) => re(e) ? e : null, Ci = "^[\0-ÿ]*$", Vd = Math.pow(-2, 31), qd = Math.pow(2, 31) - 1, Yd = Math.pow(-2, 63), Xd = Math.pow(2, 63) - 1, Zd = {
3351
3351
  null: "null",
3352
3352
  boolean: "boolean",
3353
3353
  int: "integer",
@@ -3446,13 +3446,13 @@ function _n(e, t) {
3446
3446
  if (Array.isArray(e))
3447
3447
  return tf(n, e, t);
3448
3448
  const r = co(e), s = typeof e == "string" ? e : r.type;
3449
- switch (n.type = Xd[s], s) {
3449
+ switch (n.type = Zd[s], s) {
3450
3450
  case "int": {
3451
3451
  n.minimum = Vd, n.maximum = qd;
3452
3452
  break;
3453
3453
  }
3454
3454
  case "long": {
3455
- n.minimum = Yd, n.maximum = Zd;
3455
+ n.minimum = Yd, n.maximum = Xd;
3456
3456
  break;
3457
3457
  }
3458
3458
  case "bytes": {
@@ -3609,7 +3609,7 @@ function nn(e, t, n, r) {
3609
3609
  let kr = null, hs = null;
3610
3610
  const js = /* @__PURE__ */ new Set();
3611
3611
  function rf() {
3612
- return hs || (hs = import("./protoToJsonSchema-Btyc_WLL.js").then((e) => {
3612
+ return hs || (hs = import("./protoToJsonSchema-BiGedOci.js").then((e) => {
3613
3613
  kr = e.protoToJsonSchema, js.forEach((t) => t());
3614
3614
  })), hs;
3615
3615
  }
@@ -4065,7 +4065,7 @@ function Ya(e, t = Ln(e)) {
4065
4065
 
4066
4066
  `);
4067
4067
  }
4068
- function Za(e, t, n, r = Ln(e)) {
4068
+ function Xa(e, t, n, r = Ln(e)) {
4069
4069
  var a, c, u, d;
4070
4070
  const s = (c = (a = e.paths) == null ? void 0 : a[n]) == null ? void 0 : c[t];
4071
4071
  if (!s) return "";
@@ -4081,7 +4081,7 @@ function Za(e, t, n, r = Ln(e)) {
4081
4081
 
4082
4082
  `);
4083
4083
  }
4084
- const Xa = {
4084
+ const Za = {
4085
4085
  "x-x": () => import("./XExtension-GyRtdHLL.js"),
4086
4086
  "x-linkedin": () => import("./LinkedInExtension-BL-4T9tt.js")
4087
4087
  }, xf = () => import("./LogoExtension-HOlSsQf-.js");
@@ -4265,7 +4265,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4265
4265
  return !1;
4266
4266
  }
4267
4267
  }
4268
- const pe = p(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ae = p(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ae = p(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), ke = p(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ee = p(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Xe = p(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Se = p(["#text"]), at = p(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), je = p(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Z = p(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Te = p(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Re = f(/{{[\w\W]*|^[\w\W]*}}/g), be = f(/<%[\w\W]*|^[\w\W]*%>/g), bt = f(/\${[\w\W]*/g), st = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), Dt = f(/^aria-[\-\w]+$/), ot = f(
4268
+ const pe = p(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ae = p(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Ae = p(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), ke = p(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Ee = p(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ze = p(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Se = p(["#text"]), at = p(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), je = p(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), X = p(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Te = p(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Re = f(/{{[\w\W]*|^[\w\W]*}}/g), be = f(/<%[\w\W]*|^[\w\W]*%>/g), bt = f(/\${[\w\W]*/g), st = f(/^data-[\-\w.\u00B7-\uFFFF]+$/), Dt = f(/^aria-[\-\w]+$/), ot = f(
4269
4269
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
4270
4270
  // eslint-disable-line no-useless-escape
4271
4271
  ), D = f(/^(?:\w+script|data):/i), U = f(
@@ -4358,14 +4358,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4358
4358
  }
4359
4359
  }, _c = function() {
4360
4360
  return Do || (Wr = Ec(Yn, he), Do = !0), Wr;
4361
- }, Zn = V, Kr = Zn.implementation, Fo = Zn.createNodeIterator, Cc = Zn.createDocumentFragment, Ic = Zn.getElementsByTagName, Oc = ne.importNode;
4361
+ }, Xn = V, Kr = Xn.implementation, Fo = Xn.createNodeIterator, Cc = Xn.createDocumentFragment, Ic = Xn.getElementsByTagName, Oc = ne.importNode;
4362
4362
  let $e = Mo();
4363
4363
  M.isSupported = typeof i == "function" && typeof pn == "function" && Kr && Kr.createHTMLDocument !== void 0;
4364
4364
  const Rc = Re, Mc = be, $c = bt, Lc = st, Pc = Dt, Dc = D, jo = U, Bc = fe;
4365
4365
  let zo = ot, _e = null;
4366
4366
  const Uo = F({}, [...pe, ...ae, ...Ae, ...Ee, ...Se]);
4367
4367
  let Ce = null;
4368
- const Ho = F({}, [...at, ...je, ...Z, ...Te]);
4368
+ const Ho = F({}, [...at, ...je, ...X, ...Te]);
4369
4369
  let Ie = Object.seal(g(null, {
4370
4370
  tagNameCheck: {
4371
4371
  writable: !0,
@@ -4400,9 +4400,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4400
4400
  value: null
4401
4401
  }
4402
4402
  }));
4403
- let Wo = !0, Vr = !0, Ko = !1, Vo = !0, _t = !1, gn = !0, jt = !1, qr = !1, Yr = null, Zr = null, Xr = !1, Yt = !1, Xn = !1, Qn = !1, qo = !0, Yo = !1;
4404
- const Zo = "user-content-";
4405
- let Qr = !0, Jr = !1, Zt = {}, ht = null;
4403
+ let Wo = !0, Vr = !0, Ko = !1, Vo = !0, _t = !1, gn = !0, jt = !1, qr = !1, Yr = null, Xr = null, Zr = !1, Yt = !1, Zn = !1, Qn = !1, qo = !0, Yo = !1;
4404
+ const Xo = "user-content-";
4405
+ let Qr = !0, Jr = !1, Xt = {}, ht = null;
4406
4406
  const es = F({}, [
4407
4407
  "annotation-xml",
4408
4408
  "audio",
@@ -4440,11 +4440,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4440
4440
  "video",
4441
4441
  "xmp"
4442
4442
  ]);
4443
- let Xo = null;
4443
+ let Zo = null;
4444
4444
  const Qo = F({}, ["audio", "video", "img", "source", "image", "track"]);
4445
4445
  let ts = null;
4446
4446
  const Jo = F({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Jn = "http://www.w3.org/1998/Math/MathML", er = "http://www.w3.org/2000/svg", mt = "http://www.w3.org/1999/xhtml";
4447
- let Xt = mt, ns = !1, rs = null;
4447
+ let Zt = mt, ns = !1, rs = null;
4448
4448
  const Fc = F({}, [Jn, er, mt], H), ei = p(["mi", "mo", "mn", "ms", "mtext"]);
4449
4449
  let ss = F({}, ei);
4450
4450
  const ti = p(["annotation-xml"]);
@@ -4469,7 +4469,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4469
4469
  }), ts = Nt(h, "ADD_URI_SAFE_ATTR", Jo, {
4470
4470
  transform: Oe,
4471
4471
  base: Jo
4472
- }), Xo = Nt(h, "ADD_DATA_URI_TAGS", Qo, {
4472
+ }), Zo = Nt(h, "ADD_DATA_URI_TAGS", Qo, {
4473
4473
  transform: Oe,
4474
4474
  base: Qo
4475
4475
  }), ht = Nt(h, "FORBID_CONTENTS", es, {
@@ -4478,9 +4478,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4478
4478
  transform: Oe
4479
4479
  }), Go = Nt(h, "FORBID_ATTR", ce({}), {
4480
4480
  transform: Oe
4481
- }), Zt = C(h, "USE_PROFILES") ? h.USE_PROFILES && typeof h.USE_PROFILES == "object" ? ce(h.USE_PROFILES) : h.USE_PROFILES : !1, Wo = h.ALLOW_ARIA_ATTR !== !1, Vr = h.ALLOW_DATA_ATTR !== !1, Ko = h.ALLOW_UNKNOWN_PROTOCOLS || !1, Vo = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, _t = h.SAFE_FOR_TEMPLATES || !1, gn = h.SAFE_FOR_XML !== !1, jt = h.WHOLE_DOCUMENT || !1, Yt = h.RETURN_DOM || !1, Xn = h.RETURN_DOM_FRAGMENT || !1, Qn = h.RETURN_TRUSTED_TYPE || !1, Xr = h.FORCE_BODY || !1, qo = h.SANITIZE_DOM !== !1, Yo = h.SANITIZE_NAMED_PROPS || !1, Qr = h.KEEP_CONTENT !== !1, Jr = h.IN_PLACE || !1, zo = ee(h.ALLOWED_URI_REGEXP) ? h.ALLOWED_URI_REGEXP : ot, Xt = typeof h.NAMESPACE == "string" ? h.NAMESPACE : mt, ss = C(h, "MATHML_TEXT_INTEGRATION_POINTS") && h.MATHML_TEXT_INTEGRATION_POINTS && typeof h.MATHML_TEXT_INTEGRATION_POINTS == "object" ? ce(h.MATHML_TEXT_INTEGRATION_POINTS) : F({}, ei), os = C(h, "HTML_INTEGRATION_POINTS") && h.HTML_INTEGRATION_POINTS && typeof h.HTML_INTEGRATION_POINTS == "object" ? ce(h.HTML_INTEGRATION_POINTS) : F({}, ti);
4481
+ }), Xt = C(h, "USE_PROFILES") ? h.USE_PROFILES && typeof h.USE_PROFILES == "object" ? ce(h.USE_PROFILES) : h.USE_PROFILES : !1, Wo = h.ALLOW_ARIA_ATTR !== !1, Vr = h.ALLOW_DATA_ATTR !== !1, Ko = h.ALLOW_UNKNOWN_PROTOCOLS || !1, Vo = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, _t = h.SAFE_FOR_TEMPLATES || !1, gn = h.SAFE_FOR_XML !== !1, jt = h.WHOLE_DOCUMENT || !1, Yt = h.RETURN_DOM || !1, Zn = h.RETURN_DOM_FRAGMENT || !1, Qn = h.RETURN_TRUSTED_TYPE || !1, Zr = h.FORCE_BODY || !1, qo = h.SANITIZE_DOM !== !1, Yo = h.SANITIZE_NAMED_PROPS || !1, Qr = h.KEEP_CONTENT !== !1, Jr = h.IN_PLACE || !1, zo = ee(h.ALLOWED_URI_REGEXP) ? h.ALLOWED_URI_REGEXP : ot, Zt = typeof h.NAMESPACE == "string" ? h.NAMESPACE : mt, ss = C(h, "MATHML_TEXT_INTEGRATION_POINTS") && h.MATHML_TEXT_INTEGRATION_POINTS && typeof h.MATHML_TEXT_INTEGRATION_POINTS == "object" ? ce(h.MATHML_TEXT_INTEGRATION_POINTS) : F({}, ei), os = C(h, "HTML_INTEGRATION_POINTS") && h.HTML_INTEGRATION_POINTS && typeof h.HTML_INTEGRATION_POINTS == "object" ? ce(h.HTML_INTEGRATION_POINTS) : F({}, ti);
4482
4482
  const x = C(h, "CUSTOM_ELEMENT_HANDLING") && h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING == "object" ? ce(h.CUSTOM_ELEMENT_HANDLING) : g(null);
4483
- if (Ie = g(null), C(x, "tagNameCheck") && ni(x.tagNameCheck) && (Ie.tagNameCheck = x.tagNameCheck), C(x, "attributeNameCheck") && ni(x.attributeNameCheck) && (Ie.attributeNameCheck = x.attributeNameCheck), C(x, "allowCustomizedBuiltInElements") && typeof x.allowCustomizedBuiltInElements == "boolean" && (Ie.allowCustomizedBuiltInElements = x.allowCustomizedBuiltInElements), f(Ie), _t && (Vr = !1), Xn && (Yt = !0), Zt && (_e = F({}, Se), Ce = g(null), Zt.html === !0 && (F(_e, pe), F(Ce, at)), Zt.svg === !0 && (F(_e, ae), F(Ce, je), F(Ce, Te)), Zt.svgFilters === !0 && (F(_e, Ae), F(Ce, je), F(Ce, Te)), Zt.mathMl === !0 && (F(_e, Ee), F(Ce, Z), F(Ce, Te))), Tt.tagCheck = null, Tt.attributeCheck = null, C(h, "ADD_TAGS") && (typeof h.ADD_TAGS == "function" ? Tt.tagCheck = h.ADD_TAGS : T(h.ADD_TAGS) && (_e === Uo && (_e = ce(_e)), F(_e, h.ADD_TAGS, Oe))), C(h, "ADD_ATTR") && (typeof h.ADD_ATTR == "function" ? Tt.attributeCheck = h.ADD_ATTR : T(h.ADD_ATTR) && (Ce === Ho && (Ce = ce(Ce)), F(Ce, h.ADD_ATTR, Oe))), C(h, "ADD_URI_SAFE_ATTR") && T(h.ADD_URI_SAFE_ATTR) && F(ts, h.ADD_URI_SAFE_ATTR, Oe), C(h, "FORBID_CONTENTS") && T(h.FORBID_CONTENTS) && (ht === es && (ht = ce(ht)), F(ht, h.FORBID_CONTENTS, Oe)), C(h, "ADD_FORBID_CONTENTS") && T(h.ADD_FORBID_CONTENTS) && (ht === es && (ht = ce(ht)), F(ht, h.ADD_FORBID_CONTENTS, Oe)), Qr && (_e["#text"] = !0), jt && F(_e, ["html", "head", "body"]), _e.table && (F(_e, ["tbody"]), delete mn.tbody), h.TRUSTED_TYPES_POLICY) {
4483
+ if (Ie = g(null), C(x, "tagNameCheck") && ni(x.tagNameCheck) && (Ie.tagNameCheck = x.tagNameCheck), C(x, "attributeNameCheck") && ni(x.attributeNameCheck) && (Ie.attributeNameCheck = x.attributeNameCheck), C(x, "allowCustomizedBuiltInElements") && typeof x.allowCustomizedBuiltInElements == "boolean" && (Ie.allowCustomizedBuiltInElements = x.allowCustomizedBuiltInElements), f(Ie), _t && (Vr = !1), Zn && (Yt = !0), Xt && (_e = F({}, Se), Ce = g(null), Xt.html === !0 && (F(_e, pe), F(Ce, at)), Xt.svg === !0 && (F(_e, ae), F(Ce, je), F(Ce, Te)), Xt.svgFilters === !0 && (F(_e, Ae), F(Ce, je), F(Ce, Te)), Xt.mathMl === !0 && (F(_e, Ee), F(Ce, X), F(Ce, Te))), Tt.tagCheck = null, Tt.attributeCheck = null, C(h, "ADD_TAGS") && (typeof h.ADD_TAGS == "function" ? Tt.tagCheck = h.ADD_TAGS : T(h.ADD_TAGS) && (_e === Uo && (_e = ce(_e)), F(_e, h.ADD_TAGS, Oe))), C(h, "ADD_ATTR") && (typeof h.ADD_ATTR == "function" ? Tt.attributeCheck = h.ADD_ATTR : T(h.ADD_ATTR) && (Ce === Ho && (Ce = ce(Ce)), F(Ce, h.ADD_ATTR, Oe))), C(h, "ADD_URI_SAFE_ATTR") && T(h.ADD_URI_SAFE_ATTR) && F(ts, h.ADD_URI_SAFE_ATTR, Oe), C(h, "FORBID_CONTENTS") && T(h.FORBID_CONTENTS) && (ht === es && (ht = ce(ht)), F(ht, h.FORBID_CONTENTS, Oe)), C(h, "ADD_FORBID_CONTENTS") && T(h.ADD_FORBID_CONTENTS) && (ht === es && (ht = ce(ht)), F(ht, h.ADD_FORBID_CONTENTS, Oe)), Qr && (_e["#text"] = !0), jt && F(_e, ["html", "head", "body"]), _e.table && (F(_e, ["tbody"]), delete mn.tbody), h.TRUSTED_TYPES_POLICY) {
4484
4484
  if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
4485
4485
  throw de('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
4486
4486
  if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -4494,7 +4494,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4494
4494
  }
4495
4495
  } else h.TRUSTED_TYPES_POLICY === null ? (Ve = void 0, Ft = "") : (Ve === void 0 && (Ve = _c()), Ve && typeof Ft == "string" && (Ft = qt("")));
4496
4496
  p && p(h), Qt = h;
4497
- }, ri = F({}, [...ae, ...Ae, ...ke]), si = F({}, [...Ee, ...Xe]), Gc = function(h, x, L) {
4497
+ }, ri = F({}, [...ae, ...Ae, ...ke]), si = F({}, [...Ee, ...Ze]), Gc = function(h, x, L) {
4498
4498
  return x.namespaceURI === mt ? h === "svg" : x.namespaceURI === Jn ? h === "svg" && (L === "annotation-xml" || ss[L]) : !!ri[h];
4499
4499
  }, Wc = function(h, x, L) {
4500
4500
  return x.namespaceURI === mt ? h === "math" : x.namespaceURI === er ? h === "math" && os[L] : !!si[h];
@@ -4503,7 +4503,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4503
4503
  }, Vc = function(h) {
4504
4504
  let x = pn(h);
4505
4505
  (!x || !x.tagName) && (x = {
4506
- namespaceURI: Xt,
4506
+ namespaceURI: Zt,
4507
4507
  tagName: "template"
4508
4508
  });
4509
4509
  const L = B(h.tagName), K = B(x.tagName);
@@ -4554,7 +4554,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4554
4554
  });
4555
4555
  }
4556
4556
  if (x.removeAttribute(h), h === "is")
4557
- if (Yt || Xn)
4557
+ if (Yt || Zn)
4558
4558
  try {
4559
4559
  Ct(x);
4560
4560
  } catch {
@@ -4587,28 +4587,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4587
4587
  }
4588
4588
  }, ii = function(h) {
4589
4589
  let x = null, L = null;
4590
- if (Xr)
4590
+ if (Zr)
4591
4591
  h = "<remove></remove>" + h;
4592
4592
  else {
4593
4593
  const me = E(h, /^[\r\n\t ]+/);
4594
4594
  L = me && me[0];
4595
4595
  }
4596
- bn === "application/xhtml+xml" && Xt === mt && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
4596
+ bn === "application/xhtml+xml" && Zt === mt && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
4597
4597
  const K = Ve ? qt(h) : h;
4598
- if (Xt === mt)
4598
+ if (Zt === mt)
4599
4599
  try {
4600
4600
  x = new Hr().parseFromString(K, bn);
4601
4601
  } catch {
4602
4602
  }
4603
4603
  if (!x || !x.documentElement) {
4604
- x = Kr.createDocument(Xt, "template", null);
4604
+ x = Kr.createDocument(Zt, "template", null);
4605
4605
  try {
4606
4606
  x.documentElement.innerHTML = ns ? Ft : K;
4607
4607
  } catch {
4608
4608
  }
4609
4609
  }
4610
4610
  const ue = x.body || x.documentElement;
4611
- return h && L && ue.insertBefore(V.createTextNode(L), ue.childNodes[0] || null), Xt === mt ? Ic.call(x, jt ? "html" : "body")[0] : jt ? x.documentElement : ue;
4611
+ return h && L && ue.insertBefore(V.createTextNode(L), ue.childNodes[0] || null), Zt === mt ? Ic.call(x, jt ? "html" : "body")[0] : jt ? x.documentElement : ue;
4612
4612
  }, ai = function(h) {
4613
4613
  return Fo.call(
4614
4614
  h.ownerDocument || h,
@@ -4684,9 +4684,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4684
4684
  L.call(M, h, x, Qt);
4685
4685
  });
4686
4686
  }
4687
- const Zc = function(h, x) {
4687
+ const Xc = function(h, x) {
4688
4688
  return !!(gn && h.hasChildNodes() && !yn(h.firstElementChild) && q(Me, h.textContent) && q(Me, h.innerHTML) || gn && h.namespaceURI === mt && x === "style" && yn(h.firstElementChild) || h.nodeType === pt.processingInstruction || gn && h.nodeType === pt.comment && q(lt, h.data));
4689
- }, Xc = function(h, x) {
4689
+ }, Zc = function(h, x) {
4690
4690
  if (!mn[x] && ui(x) && (Ie.tagNameCheck instanceof RegExp && q(Ie.tagNameCheck, x) || Ie.tagNameCheck instanceof Function && Ie.tagNameCheck(x)))
4691
4691
  return !1;
4692
4692
  if (Qr && !ht[x]) {
@@ -4707,10 +4707,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4707
4707
  if (yt($e.uponSanitizeElement, h, {
4708
4708
  tagName: x,
4709
4709
  allowedTags: _e
4710
- }), Zc(h, x))
4710
+ }), Xc(h, x))
4711
4711
  return Ct(h), !0;
4712
4712
  if (mn[x] || !(Tt.tagCheck instanceof Function && Tt.tagCheck(x)) && !_e[x])
4713
- return Xc(h, x);
4713
+ return Zc(h, x);
4714
4714
  if ((Je ? Je(h) : h.nodeType) === pt.element && !Vc(h) || (x === "noscript" || x === "noembed" || x === "noframes") && q(zr, h.innerHTML))
4715
4715
  return Ct(h), !0;
4716
4716
  if (_t && h.nodeType === pt.text) {
@@ -4729,7 +4729,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4729
4729
  if (K) {
4730
4730
  if (!ts[x]) {
4731
4731
  if (!q(zo, w(L, jo, ""))) {
4732
- if (!((x === "src" || x === "xlink:href" || x === "href") && h !== "script" && $(L, "data:") === 0 && Xo[h])) {
4732
+ if (!((x === "src" || x === "xlink:href" || x === "href") && h !== "script" && $(L, "data:") === 0 && Zo[h])) {
4733
4733
  if (!(Ko && !q(Dc, w(L, jo, "")))) {
4734
4734
  if (L)
4735
4735
  return !1;
@@ -4782,7 +4782,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4782
4782
  for (; K--; ) {
4783
4783
  const me = x[K], Fe = me.name, De = me.namespaceURI, it = me.value, ct = Oe(Fe), cs = it;
4784
4784
  let Ge = Fe === "value" ? cs : N(cs);
4785
- if (L.attrName = ct, L.attrValue = Ge, L.keepAttr = !0, L.forceKeepAttr = void 0, yt($e.uponSanitizeAttribute, h, L), Ge = L.attrValue, Yo && (ct === "id" || ct === "name") && $(Ge, Zo) !== 0 && (zt(Fe, h), Ge = Zo + Ge), gn && q(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Ge)) {
4785
+ if (L.attrName = ct, L.attrValue = Ge, L.keepAttr = !0, L.forceKeepAttr = void 0, yt($e.uponSanitizeAttribute, h, L), Ge = L.attrValue, Yo && (ct === "id" || ct === "name") && $(Ge, Xo) !== 0 && (zt(Fe, h), Ge = Xo + Ge), gn && q(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Ge)) {
4786
4786
  zt(Fe, h);
4787
4787
  continue;
4788
4788
  }
@@ -4862,7 +4862,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4862
4862
  throw de("dirty is not a string, aborting");
4863
4863
  if (!M.isSupported)
4864
4864
  return P;
4865
- qr ? (_e = Yr, Ce = Zr) : is(h), ($e.uponSanitizeElement.length > 0 || $e.uponSanitizeAttribute.length > 0) && (_e = ce(_e)), $e.uponSanitizeAttribute.length > 0 && (Ce = ce(Ce)), M.removed = [];
4865
+ qr ? (_e = Yr, Ce = Xr) : is(h), ($e.uponSanitizeElement.length > 0 || $e.uponSanitizeAttribute.length > 0) && (_e = ce(_e)), $e.uponSanitizeAttribute.length > 0 && (Ce = ce(Ce)), M.removed = [];
4866
4866
  const me = Jr && typeof P != "string" && yn(P);
4867
4867
  if (me) {
4868
4868
  const it = St ? St(P) : P.nodeName;
@@ -4887,7 +4887,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4887
4887
  if (x = ii(P), !x)
4888
4888
  return Yt ? null : Qn ? Ft : "";
4889
4889
  }
4890
- x && Xr && Ct(x.firstChild);
4890
+ x && Zr && Ct(x.firstChild);
4891
4891
  const Fe = ai(me ? P : x);
4892
4892
  try {
4893
4893
  for (; K = Fe.nextNode(); )
@@ -4900,7 +4900,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4900
4900
  it.element && Yc(it.element);
4901
4901
  }), _t && as(P), P;
4902
4902
  if (Yt) {
4903
- if (_t && as(x), Xn)
4903
+ if (_t && as(x), Zn)
4904
4904
  for (ue = Cc.call(x.ownerDocument); x.firstChild; )
4905
4905
  ue.appendChild(x.firstChild);
4906
4906
  else
@@ -4912,9 +4912,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4912
4912
  ` + De), _t && (De = tr(De)), Ve && Qn ? qt(De) : De;
4913
4913
  }, M.setConfig = function() {
4914
4914
  let P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4915
- is(P), qr = !0, Yr = _e, Zr = Ce;
4915
+ is(P), qr = !0, Yr = _e, Xr = Ce;
4916
4916
  }, M.clearConfig = function() {
4917
- Qt = null, qr = !1, Yr = null, Zr = null, Ve = Wr, Ft = "";
4917
+ Qt = null, qr = !1, Yr = null, Xr = null, Ve = Wr, Ft = "";
4918
4918
  }, M.isValidAttribute = function(P, h, x) {
4919
4919
  Qt || is({});
4920
4920
  const L = Oe(P), K = Oe(h);
@@ -5068,7 +5068,7 @@ var Ke = {
5068
5068
  "gu"
5069
5069
  ).replace(/notPunctSpace/g, ol).replace(/punctSpace/g, wo).replace(/punct/g, Dr).getRegex(), Wf = xe(/\\(punct)/, "gu").replace(/punct/g, Dr).getRegex(), Kf = xe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Vf = xe(yo).replace("(?:-->|$)", "-->").getRegex(), qf = xe(
5070
5070
  "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
5071
- ).replace("comment", Vf).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ar = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Yf = xe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Ar).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), cl = xe(/^!?\[(label)\]\[(ref)\]/).replace("label", Ar).replace("ref", bo).getRegex(), ul = xe(/^!?\[(ref)\](?:\[\])?/).replace("ref", bo).getRegex(), Zf = xe("reflink|nolink(?!\\()", "g").replace("reflink", cl).replace("nolink", ul).getRegex(), vo = {
5071
+ ).replace("comment", Vf).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Ar = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Yf = xe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Ar).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), cl = xe(/^!?\[(label)\]\[(ref)\]/).replace("label", Ar).replace("ref", bo).getRegex(), ul = xe(/^!?\[(ref)\](?:\[\])?/).replace("ref", bo).getRegex(), Xf = xe("reflink|nolink(?!\\()", "g").replace("reflink", cl).replace("nolink", ul).getRegex(), vo = {
5072
5072
  _backpedal: An,
5073
5073
  // only used for GFM url
5074
5074
  anyPunctuation: Wf,
@@ -5085,11 +5085,11 @@ var Ke = {
5085
5085
  nolink: ul,
5086
5086
  punctuation: Pf,
5087
5087
  reflink: cl,
5088
- reflinkSearch: Zf,
5088
+ reflinkSearch: Xf,
5089
5089
  tag: qf,
5090
5090
  text: Lf,
5091
5091
  url: An
5092
- }, Xf = {
5092
+ }, Zf = {
5093
5093
  ...vo,
5094
5094
  link: xe(/^!?\[(label)\]\((.*?)\)/).replace("label", Ar).getRegex(),
5095
5095
  reflink: xe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Ar).getRegex()
@@ -5113,7 +5113,7 @@ var Ke = {
5113
5113
  normal: vo,
5114
5114
  gfm: Us,
5115
5115
  breaks: Qf,
5116
- pedantic: Xf
5116
+ pedantic: Zf
5117
5117
  }, Jf = {
5118
5118
  "&": "&amp;",
5119
5119
  "<": "&lt;",
@@ -7191,12 +7191,12 @@ function qp(e) {
7191
7191
  })), e.cachedVariants ? e.cachedVariants : Al(e) ? Ot(e, { starts: e.starts ? Ot(e.starts) : null }) : Object.isFrozen(e) ? Ot(e) : e;
7192
7192
  }
7193
7193
  var Yp = "11.11.1";
7194
- class Zp extends Error {
7194
+ class Xp extends Error {
7195
7195
  constructor(t, n) {
7196
7196
  super(t), this.name = "HTMLInjectionError", this.html = n;
7197
7197
  }
7198
7198
  }
7199
- const gs = ml, Zi = Ot, Xi = Symbol("nomatch"), Xp = 7, Nl = function(e) {
7199
+ const gs = ml, Xi = Ot, Zi = Symbol("nomatch"), Zp = 7, Nl = function(e) {
7200
7200
  const t = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), r = [];
7201
7201
  let s = !0;
7202
7202
  const o = "Could not find the language '{}', did you forget to load/include a language module?", i = { disableAutodetect: !0, name: "Plain text", contains: [] };
@@ -7243,19 +7243,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = k, q = C), G ===
7243
7243
  return D.keywords[U];
7244
7244
  }
7245
7245
  function Y() {
7246
- if (!Z.keywords) {
7246
+ if (!X.keywords) {
7247
7247
  Re.addText(be);
7248
7248
  return;
7249
7249
  }
7250
7250
  let D = 0;
7251
- Z.keywordPatternRe.lastIndex = 0;
7252
- let U = Z.keywordPatternRe.exec(be), Q = "";
7251
+ X.keywordPatternRe.lastIndex = 0;
7252
+ let U = X.keywordPatternRe.exec(be), Q = "";
7253
7253
  for (; U; ) {
7254
7254
  Q += be.substring(D, U.index);
7255
- const fe = Se.case_insensitive ? U[0].toLowerCase() : U[0], Me = se(Z, fe);
7255
+ const fe = Se.case_insensitive ? U[0].toLowerCase() : U[0], Me = se(X, fe);
7256
7256
  if (Me) {
7257
7257
  const [lt, zr] = Me;
7258
- if (Re.addText(Q), Q = "", de[fe] = (de[fe] || 0) + 1, de[fe] <= Xp && (bt += zr), lt.startsWith("_"))
7258
+ if (Re.addText(Q), Q = "", de[fe] = (de[fe] || 0) + 1, de[fe] <= Zp && (bt += zr), lt.startsWith("_"))
7259
7259
  Q += U[0];
7260
7260
  else {
7261
7261
  const Ur = Se.classNameAliases[lt] || lt;
@@ -7263,26 +7263,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = k, q = C), G ===
7263
7263
  }
7264
7264
  } else
7265
7265
  Q += U[0];
7266
- D = Z.keywordPatternRe.lastIndex, U = Z.keywordPatternRe.exec(be);
7266
+ D = X.keywordPatternRe.lastIndex, U = X.keywordPatternRe.exec(be);
7267
7267
  }
7268
7268
  Q += be.substring(D), Re.addText(Q);
7269
7269
  }
7270
7270
  function F() {
7271
7271
  if (be === "") return;
7272
7272
  let D = null;
7273
- if (typeof Z.subLanguage == "string") {
7274
- if (!t[Z.subLanguage]) {
7273
+ if (typeof X.subLanguage == "string") {
7274
+ if (!t[X.subLanguage]) {
7275
7275
  Re.addText(be);
7276
7276
  return;
7277
7277
  }
7278
- D = p(Z.subLanguage, be, !0, Te[Z.subLanguage]), Te[Z.subLanguage] = /** @type {CompiledMode} */
7278
+ D = p(X.subLanguage, be, !0, Te[X.subLanguage]), Te[X.subLanguage] = /** @type {CompiledMode} */
7279
7279
  D._top;
7280
7280
  } else
7281
- D = g(be, Z.subLanguage.length ? Z.subLanguage : null);
7282
- Z.relevance > 0 && (bt += D.relevance), Re.__addSublanguage(D._emitter, D.language);
7281
+ D = g(be, X.subLanguage.length ? X.subLanguage : null);
7282
+ X.relevance > 0 && (bt += D.relevance), Re.__addSublanguage(D._emitter, D.language);
7283
7283
  }
7284
7284
  function ge() {
7285
- Z.subLanguage != null ? F() : Y(), be = "";
7285
+ X.subLanguage != null ? F() : Y(), be = "";
7286
7286
  }
7287
7287
  function ce(D, U) {
7288
7288
  D !== "" && (Re.startScope(U), Re.addText(D), Re.endScope());
@@ -7300,7 +7300,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = k, q = C), G ===
7300
7300
  }
7301
7301
  }
7302
7302
  function I(D, U) {
7303
- return D.scope && typeof D.scope == "string" && Re.openNode(Se.classNameAliases[D.scope] || D.scope), D.beginScope && (D.beginScope._wrap ? (ce(be, Se.classNameAliases[D.beginScope._wrap] || D.beginScope._wrap), be = "") : D.beginScope._multi && (Be(D.beginScope, U), be = "")), Z = Object.create(D, { parent: { value: Z } }), Z;
7303
+ return D.scope && typeof D.scope == "string" && Re.openNode(Se.classNameAliases[D.scope] || D.scope), D.beginScope && (D.beginScope._wrap ? (ce(be, Se.classNameAliases[D.beginScope._wrap] || D.beginScope._wrap), be = "") : D.beginScope._multi && (Be(D.beginScope, U), be = "")), X = Object.create(D, { parent: { value: X } }), X;
7304
7304
  }
7305
7305
  function ee(D, U, Q) {
7306
7306
  let fe = pp(D.endRe, Q);
@@ -7319,7 +7319,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = k, q = C), G ===
7319
7319
  return ee(D.parent, U, Q);
7320
7320
  }
7321
7321
  function pe(D) {
7322
- return Z.matcher.regexIndex === 0 ? (be += D[0], 1) : (ot = !0, 0);
7322
+ return X.matcher.regexIndex === 0 ? (be += D[0], 1) : (ot = !0, 0);
7323
7323
  }
7324
7324
  function ae(D) {
7325
7325
  const U = D[0], Q = D.rule, fe = new Wi(Q), Me = [Q.__beforeBegin, Q["on:begin"]];
@@ -7329,24 +7329,24 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = k, q = C), G ===
7329
7329
  return Q.skip ? be += U : (Q.excludeBegin && (be += U), ge(), !Q.returnBegin && !Q.excludeBegin && (be = U)), I(Q, D), Q.returnBegin ? 0 : U.length;
7330
7330
  }
7331
7331
  function Ae(D) {
7332
- const U = D[0], Q = C.substring(D.index), fe = ee(Z, D, Q);
7332
+ const U = D[0], Q = C.substring(D.index), fe = ee(X, D, Q);
7333
7333
  if (!fe)
7334
- return Xi;
7335
- const Me = Z;
7336
- Z.endScope && Z.endScope._wrap ? (ge(), ce(U, Z.endScope._wrap)) : Z.endScope && Z.endScope._multi ? (ge(), Be(Z.endScope, D)) : Me.skip ? be += U : (Me.returnEnd || Me.excludeEnd || (be += U), ge(), Me.excludeEnd && (be = U));
7334
+ return Zi;
7335
+ const Me = X;
7336
+ X.endScope && X.endScope._wrap ? (ge(), ce(U, X.endScope._wrap)) : X.endScope && X.endScope._multi ? (ge(), Be(X.endScope, D)) : Me.skip ? be += U : (Me.returnEnd || Me.excludeEnd || (be += U), ge(), Me.excludeEnd && (be = U));
7337
7337
  do
7338
- Z.scope && Re.closeNode(), !Z.skip && !Z.subLanguage && (bt += Z.relevance), Z = Z.parent;
7339
- while (Z !== fe.parent);
7338
+ X.scope && Re.closeNode(), !X.skip && !X.subLanguage && (bt += X.relevance), X = X.parent;
7339
+ while (X !== fe.parent);
7340
7340
  return fe.starts && I(fe.starts, D), Me.returnEnd ? 0 : U.length;
7341
7341
  }
7342
7342
  function ke() {
7343
7343
  const D = [];
7344
- for (let U = Z; U !== Se; U = U.parent)
7344
+ for (let U = X; U !== Se; U = U.parent)
7345
7345
  U.scope && D.unshift(U.scope);
7346
7346
  D.forEach((U) => Re.openNode(U));
7347
7347
  }
7348
7348
  let Ee = {};
7349
- function Xe(D, U) {
7349
+ function Ze(D, U) {
7350
7350
  const Q = U && U[0];
7351
7351
  if (be += D, Q == null)
7352
7352
  return ge(), 0;
@@ -7360,11 +7360,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = k, q = C), G ===
7360
7360
  if (Ee = U, U.type === "begin")
7361
7361
  return ae(U);
7362
7362
  if (U.type === "illegal" && !G) {
7363
- const fe = new Error('Illegal lexeme "' + Q + '" for mode "' + (Z.scope || "<unnamed>") + '"');
7364
- throw fe.mode = Z, fe;
7363
+ const fe = new Error('Illegal lexeme "' + Q + '" for mode "' + (X.scope || "<unnamed>") + '"');
7364
+ throw fe.mode = X, fe;
7365
7365
  } else if (U.type === "end") {
7366
7366
  const fe = Ae(U);
7367
- if (fe !== Xi)
7367
+ if (fe !== Zi)
7368
7368
  return fe;
7369
7369
  }
7370
7370
  if (U.type === "illegal" && Q === "")
@@ -7378,7 +7378,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = k, q = C), G ===
7378
7378
  if (!Se)
7379
7379
  throw Ht(o.replace("{}", k)), new Error('Unknown language: "' + k + '"');
7380
7380
  const at = Vp(Se);
7381
- let je = "", Z = q || at;
7381
+ let je = "", X = q || at;
7382
7382
  const Te = {}, Re = new a.__emitter(a);
7383
7383
  ke();
7384
7384
  let be = "", bt = 0, st = 0, Dt = 0, ot = !1;
@@ -7386,14 +7386,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = k, q = C), G ===
7386
7386
  if (Se.__emitTokens)
7387
7387
  Se.__emitTokens(C, Re);
7388
7388
  else {
7389
- for (Z.matcher.considerAll(); ; ) {
7390
- Dt++, ot ? ot = !1 : Z.matcher.considerAll(), Z.matcher.lastIndex = st;
7391
- const D = Z.matcher.exec(C);
7389
+ for (X.matcher.considerAll(); ; ) {
7390
+ Dt++, ot ? ot = !1 : X.matcher.considerAll(), X.matcher.lastIndex = st;
7391
+ const D = X.matcher.exec(C);
7392
7392
  if (!D) break;
7393
- const U = C.substring(st, D.index), Q = Xe(U, D);
7393
+ const U = C.substring(st, D.index), Q = Ze(U, D);
7394
7394
  st = D.index + Q;
7395
7395
  }
7396
- Xe(C.substring(st));
7396
+ Ze(C.substring(st));
7397
7397
  }
7398
7398
  return Re.finalize(), je = Re.toHTML(), {
7399
7399
  language: k,
@@ -7401,7 +7401,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = k, q = C), G ===
7401
7401
  relevance: bt,
7402
7402
  illegal: !1,
7403
7403
  _emitter: Re,
7404
- _top: Z
7404
+ _top: X
7405
7405
  };
7406
7406
  } catch (D) {
7407
7407
  if (D.message && D.message.includes("Illegal"))
@@ -7427,7 +7427,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = k, q = C), G ===
7427
7427
  relevance: 0,
7428
7428
  errorRaised: D,
7429
7429
  _emitter: Re,
7430
- _top: Z
7430
+ _top: X
7431
7431
  };
7432
7432
  throw D;
7433
7433
  }
@@ -7476,7 +7476,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = k, q = C), G ===
7476
7476
  return;
7477
7477
  }
7478
7478
  if (k.children.length > 0 && (a.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(k)), a.throwUnescapedHTML))
7479
- throw new Zp(
7479
+ throw new Xp(
7480
7480
  "One of your code blocks includes unescaped HTML.",
7481
7481
  k.innerHTML
7482
7482
  );
@@ -7493,7 +7493,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = k, q = C), G ===
7493
7493
  }), oe("after:highlightElement", { el: k, result: de, text: q });
7494
7494
  }
7495
7495
  function v(k) {
7496
- a = Zi(a, k);
7496
+ a = Xi(a, k);
7497
7497
  }
7498
7498
  const A = () => {
7499
7499
  S(), en("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
@@ -7588,7 +7588,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), de = k, q = C), G ===
7588
7588
  getLanguage: H,
7589
7589
  registerAliases: E,
7590
7590
  autoDetection: w,
7591
- inherit: Zi,
7591
+ inherit: Xi,
7592
7592
  addPlugin: N,
7593
7593
  removePlugin: W
7594
7594
  }), e.debugMode = function() {
@@ -9434,14 +9434,14 @@ function mh(e) {
9434
9434
  const Ji = /* @__PURE__ */ new Map();
9435
9435
  function gh(e) {
9436
9436
  let t = Ji.get(e);
9437
- return t || (t = qs(Xa[e]), Ji.set(e, t)), t;
9437
+ return t || (t = qs(Za[e]), Ji.set(e, t)), t;
9438
9438
  }
9439
9439
  const bh = (e) => e.startsWith("x-"), Il = (e, t) => e ? e[t] : void 0;
9440
9440
  function yh({ source: e, pathPrefix: t }) {
9441
9441
  const { showExtensions: n } = He();
9442
9442
  if (!n || !e) return null;
9443
9443
  const r = Object.keys(e).filter(
9444
- (s) => bh(s) && !mh(s) && Object.prototype.hasOwnProperty.call(Xa, s)
9444
+ (s) => bh(s) && !mh(s) && Object.prototype.hasOwnProperty.call(Za, s)
9445
9445
  );
9446
9446
  return r.length === 0 ? null : /* @__PURE__ */ l(te, { children: r.map((s) => {
9447
9447
  const o = gh(s);
@@ -9514,7 +9514,7 @@ function Ml({
9514
9514
  language: n = "json",
9515
9515
  collapsedMaxHeight: r = vh
9516
9516
  }) {
9517
- const [s, o] = X("idle"), i = Pe(void 0), [a, c] = X(!1), [u, d] = X(!1), [p, f] = X(0), g = Pe(null), m = Pe(null), y = Rn();
9517
+ const [s, o] = Z("idle"), i = Pe(void 0), [a, c] = Z(!1), [u, d] = Z(!1), [p, f] = Z(0), g = Pe(null), m = Pe(null), y = Rn();
9518
9518
  le(() => () => clearTimeout(i.current), []), le(() => {
9519
9519
  const B = m.current;
9520
9520
  if (!B) return;
@@ -10188,13 +10188,13 @@ function Ut({
10188
10188
  "div",
10189
10189
  {
10190
10190
  className: "pl-3 border-l-2 ml-1.5",
10191
- style: { borderColor: Zs(e, r) },
10191
+ style: { borderColor: Xs(e, r) },
10192
10192
  children: t
10193
10193
  }
10194
10194
  );
10195
10195
  }
10196
10196
  function Wh({ depth: e, expanded: t, onToggle: n }) {
10197
- const { depthColors: r } = He(), s = Zs(e, r);
10197
+ const { depthColors: r } = He(), s = Xs(e, r);
10198
10198
  return /* @__PURE__ */ b(
10199
10199
  "button",
10200
10200
  {
@@ -10234,7 +10234,7 @@ function qe({
10234
10234
  onToggle: p,
10235
10235
  showBorder: f = !0
10236
10236
  }) {
10237
- const { depthColors: g } = He(), m = Zs(n, g), y = r && zh(r, s), v = u ? Kh : "";
10237
+ const { depthColors: g } = He(), m = Xs(n, g), y = r && zh(r, s), v = u ? Kh : "";
10238
10238
  let A = "", _ = t;
10239
10239
  if (t.endsWith("[]")) {
10240
10240
  const j = t.slice(0, -2), S = j.lastIndexOf(".");
@@ -10347,11 +10347,11 @@ function ut({
10347
10347
  focusId: p = null
10348
10348
  }) {
10349
10349
  var Be;
10350
- const f = qh(a), g = d != null, y = g && d.length === 0 ? p ?? void 0 : void 0, [v, A] = X(c || g), [_, j] = X(c);
10350
+ const f = qh(a), g = d != null, y = g && d.length === 0 ? p ?? void 0 : void 0, [v, A] = Z(c || g), [_, j] = Z(c);
10351
10351
  _ !== c && (j(c), A(c || g)), le(() => {
10352
10352
  g && A(!0);
10353
10353
  }, [g]);
10354
- const [S, R] = X(0), T = (Be = d == null ? void 0 : d[0]) == null ? void 0 : Be.match(/^(?:oneOf|anyOf)\[(\d+)\]$/), B = T ? Number(T[1]) : -1;
10354
+ const [S, R] = Z(0), T = (Be = d == null ? void 0 : d[0]) == null ? void 0 : Be.match(/^(?:oneOf|anyOf)\[(\d+)\]$/), B = T ? Number(T[1]) : -1;
10355
10355
  le(() => {
10356
10356
  B >= 0 && R(B);
10357
10357
  }, [B]);
@@ -10499,8 +10499,8 @@ function ut({
10499
10499
  const q = jn(W), de = zn(W), se = q ?? de, Y = q ? "oneOf" : "anyOf";
10500
10500
  if (se) {
10501
10501
  const I = se.map(
10502
- (je, Z) => typeof je.title == "string" ? je.title : `case ${Z + 1}`
10503
- ), ee = i ? 1 : n + 1, pe = se[S], ae = wt(pe, o, s), Ae = ae.circular ? ae.schema : We(ae.schema, o, s), ke = !ae.circular && dt(Ae), Ee = d && B === S ? d.slice(1) : null, Xe = ke ? /* @__PURE__ */ l(cr, { schema: Ae, showBorder: !1 }) : /* @__PURE__ */ l(
10502
+ (je, X) => typeof je.title == "string" ? je.title : `case ${X + 1}`
10503
+ ), ee = i ? 1 : n + 1, pe = se[S], ae = wt(pe, o, s), Ae = ae.circular ? ae.schema : We(ae.schema, o, s), ke = !ae.circular && dt(Ae), Ee = d && B === S ? d.slice(1) : null, Ze = ke ? /* @__PURE__ */ l(cr, { schema: Ae, showBorder: !1 }) : /* @__PURE__ */ l(
10504
10504
  ut,
10505
10505
  {
10506
10506
  schema: pe,
@@ -10524,7 +10524,7 @@ function ut({
10524
10524
  caseLabels: I,
10525
10525
  selectedCase: S,
10526
10526
  onSelectCase: R,
10527
- children: Xe
10527
+ children: Ze
10528
10528
  }
10529
10529
  ), at = /* @__PURE__ */ b(te, { children: [
10530
10530
  Se,
@@ -10584,13 +10584,13 @@ function ut({
10584
10584
  }, ge = (I) => {
10585
10585
  const ee = W.properties ?? {}, pe = new Set(W.required ?? []), ae = Un(W), Ae = cn(W), ke = Co(W);
10586
10586
  return /* @__PURE__ */ b(te, { children: [
10587
- Object.entries(ee).map(([Ee, Xe]) => {
10588
- if (!re(Xe)) return null;
10587
+ Object.entries(ee).map(([Ee, Ze]) => {
10588
+ if (!re(Ze)) return null;
10589
10589
  const Se = d && d[0] === "properties" && d[1] === Ee ? d.slice(2) : null;
10590
10590
  return /* @__PURE__ */ l(
10591
10591
  ut,
10592
10592
  {
10593
- schema: Xe,
10593
+ schema: Ze,
10594
10594
  path: `${t}.${Ee}`,
10595
10595
  depth: I,
10596
10596
  required: pe.has(Ee),
@@ -10610,10 +10610,10 @@ function ut({
10610
10610
  `${t}.[propertyName]`,
10611
10611
  I
10612
10612
  ) }),
10613
- ke.map(([Ee, Xe]) => /* @__PURE__ */ l(
10613
+ ke.map(([Ee, Ze]) => /* @__PURE__ */ l(
10614
10614
  ut,
10615
10615
  {
10616
- schema: Xe,
10616
+ schema: Ze,
10617
10617
  path: Rh(t, Ee),
10618
10618
  depth: I,
10619
10619
  refStack: s,
@@ -10654,8 +10654,8 @@ function ut({
10654
10654
  v && /* @__PURE__ */ l(Ut, { depth: n, lineVariant: a, children: ge(n + 1) })
10655
10655
  ] });
10656
10656
  if (W.type === "array" || W.items) {
10657
- const I = Ll(W), ee = I !== null, pe = ee ? _h(W) : null, ae = Ch(W), Ae = ae !== null, ke = ee ? null : Wt(W), Ee = ke !== null, Xe = ee || Ee || Ae || Ye(E) || et(E) || tt(E), Se = `${t}[]`, at = i ? t : Se, je = Ee ? wt(ke, o, s) : null, Z = (je == null ? void 0 : je.schema) ?? null, Te = Z ? We(Z, o, s) : null, Re = Z !== null && (N.objects.has(Z) || typeof (ke == null ? void 0 : ke.$ref) == "string" && N.refs.has(ke.$ref)), be = Z !== null ? {
10658
- objects: new Set(N.objects).add(Z),
10657
+ const I = Ll(W), ee = I !== null, pe = ee ? _h(W) : null, ae = Ch(W), Ae = ae !== null, ke = ee ? null : Wt(W), Ee = ke !== null, Ze = ee || Ee || Ae || Ye(E) || et(E) || tt(E), Se = `${t}[]`, at = i ? t : Se, je = Ee ? wt(ke, o, s) : null, X = (je == null ? void 0 : je.schema) ?? null, Te = X ? We(X, o, s) : null, Re = X !== null && (N.objects.has(X) || typeof (ke == null ? void 0 : ke.$ref) == "string" && N.refs.has(ke.$ref)), be = X !== null ? {
10658
+ objects: new Set(N.objects).add(X),
10659
10659
  refs: typeof (ke == null ? void 0 : ke.$ref) == "string" ? new Set(N.refs).add(ke.$ref) : N.refs
10660
10660
  } : N, bt = !ee && !Ae && Te !== null && dt(Te), st = Te != null && Te.properties ? Object.entries(Te.properties).filter(
10661
10661
  ([, U]) => re(U)
@@ -10688,7 +10688,7 @@ function ut({
10688
10688
  {
10689
10689
  path: at,
10690
10690
  depth: U,
10691
- typeLabelOverride: `↩ ${ke.$ref ?? Ks(Z) ?? "circular"}`,
10691
+ typeLabelOverride: `↩ ${ke.$ref ?? Ks(X) ?? "circular"}`,
10692
10692
  expandable: !1,
10693
10693
  expanded: !1,
10694
10694
  onToggle: () => {
@@ -10778,7 +10778,7 @@ function ut({
10778
10778
  et(E) && C(E),
10779
10779
  tt(E) && G()
10780
10780
  ] })
10781
- ] }) : i ? Xe ? D(n + 1) : null : /* @__PURE__ */ b(te, { children: [
10781
+ ] }) : i ? Ze ? D(n + 1) : null : /* @__PURE__ */ b(te, { children: [
10782
10782
  /* @__PURE__ */ l(
10783
10783
  qe,
10784
10784
  {
@@ -10945,8 +10945,8 @@ function rn(e, t = () => {
10945
10945
  }
10946
10946
  return e;
10947
10947
  }
10948
- function Zh({ schema: e, providedExample: t }) {
10949
- const n = t !== void 0, [r, s] = X(n ? t : null), { deref: o } = He();
10948
+ function Xh({ schema: e, providedExample: t }) {
10949
+ const n = t !== void 0, [r, s] = Z(n ? t : null), { deref: o } = He();
10950
10950
  if (le(() => {
10951
10951
  if (n) {
10952
10952
  s(t);
@@ -10981,7 +10981,7 @@ function an({
10981
10981
  example: c,
10982
10982
  defaultView: u = "example"
10983
10983
  }) {
10984
- const d = Ua(s), p = !a && uf(s, i), [f, g] = X(
10984
+ const d = Ua(s), p = !a && uf(s, i), [f, g] = Z(
10985
10985
  p && u === "example" ? "example" : "schema"
10986
10986
  );
10987
10987
  return le(() => {
@@ -11025,7 +11025,7 @@ function an({
11025
11025
  a ? /* @__PURE__ */ l("p", { className: "text-xs text-foreground-muted", children: "Loading Protobuf definition…" }) : /* @__PURE__ */ b(te, { children: [
11026
11026
  f === "schema" && /* @__PURE__ */ l(ql, { schema: e, rootName: n ?? (typeof t == "string" ? t : void 0) }),
11027
11027
  f === "json" && /* @__PURE__ */ l($l, { schema: o ?? e }),
11028
- f === "example" && p && /* @__PURE__ */ l(Zh, { schema: e, providedExample: c })
11028
+ f === "example" && p && /* @__PURE__ */ l(Xh, { schema: e, providedExample: c })
11029
11029
  ] })
11030
11030
  ] });
11031
11031
  }
@@ -11037,7 +11037,7 @@ function Yl({
11037
11037
  focusSection: s = null
11038
11038
  }) {
11039
11039
  var g;
11040
- const [o, i] = X("payload");
11040
+ const [o, i] = Z("payload");
11041
11041
  le(() => {
11042
11042
  (s === "headers" || s === "payload") && i(s);
11043
11043
  }, [s]);
@@ -11123,8 +11123,8 @@ function Yl({
11123
11123
  )
11124
11124
  ] });
11125
11125
  }
11126
- function Xh({ messageKey: e, message: t, first: n, isSelected: r, focusSection: s }) {
11127
- const [o, i] = X(!1);
11126
+ function Zh({ messageKey: e, message: t, first: n, isSelected: r, focusSection: s }) {
11127
+ const [o, i] = Z(!1);
11128
11128
  return le(() => {
11129
11129
  r && i(!0);
11130
11130
  }, [r]), /* @__PURE__ */ b(
@@ -11172,18 +11172,18 @@ function Xh({ messageKey: e, message: t, first: n, isSelected: r, focusSection:
11172
11172
  }
11173
11173
  );
11174
11174
  }
11175
- function Zl({ messages: e, selectedKey: t, focusSection: n }) {
11175
+ function Xl({ messages: e, selectedKey: t, focusSection: n }) {
11176
11176
  const r = Object.entries(e), s = r.length ? /* @__PURE__ */ l("div", { className: "bg-surface rounded-lg border border-border overflow-hidden", children: /* @__PURE__ */ b("table", { className: "w-full", children: [
11177
11177
  /* @__PURE__ */ l("thead", { className: "bg-neutral-100", children: /* @__PURE__ */ b("tr", { children: [
11178
11178
  /* @__PURE__ */ l("th", { className: "px-6 py-5 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider", children: "Message" }),
11179
11179
  /* @__PURE__ */ l("th", { className: "px-6 py-5 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider", children: "Summary" }),
11180
11180
  /* @__PURE__ */ l("th", { className: "px-6 py-5 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider", children: "Details" })
11181
11181
  ] }) }),
11182
- r.map(([o, i], a) => /* @__PURE__ */ l(Xh, { messageKey: o, message: i, first: a === 0, isSelected: t === o, focusSection: n }, o))
11182
+ r.map(([o, i], a) => /* @__PURE__ */ l(Zh, { messageKey: o, message: i, first: a === 0, isSelected: t === o, focusSection: n }, o))
11183
11183
  ] }) }) : /* @__PURE__ */ l("div", { className: "mt-10 rounded-xl border border-dashed border-neutral-300 bg-surface p-8 text-center text-sm text-foreground-muted", children: "No messages defined in this AsyncAPI document." });
11184
11184
  return /* @__PURE__ */ l("div", { className: "flex justify-center w-full", children: /* @__PURE__ */ l($t, { content: s, stickySideContent: !1 }) });
11185
11185
  }
11186
- function Xl({ serverNames: e = [], current: t, setCurrent: n }) {
11186
+ function Zl({ serverNames: e = [], current: t, setCurrent: n }) {
11187
11187
  return /* @__PURE__ */ l("nav", { className: "space-y-1 w-max mt-10 @lg:mt-0", "aria-label": "Sidebar", children: e.map((r) => /* @__PURE__ */ l(
11188
11188
  "button",
11189
11189
  {
@@ -11241,7 +11241,7 @@ function Gn({
11241
11241
  ariaLabelledBy: s,
11242
11242
  className: o = ""
11243
11243
  }) {
11244
- const [i, a] = X(n), c = Rn();
11244
+ const [i, a] = Z(n), c = Rn();
11245
11245
  return le(() => {
11246
11246
  r && a(!0);
11247
11247
  }, [r]), /* @__PURE__ */ b("div", { className: `rounded-lg border border-border overflow-hidden ${o}`, children: [
@@ -11310,7 +11310,7 @@ function em(e) {
11310
11310
  }
11311
11311
  function Io({ securities: e }) {
11312
11312
  var u;
11313
- const t = ye(() => em(e), [e]), n = t.length > 1, [r, s] = X(
11313
+ const t = ye(() => em(e), [e]), n = t.length > 1, [r, s] = Z(
11314
11314
  n ? null : ((u = t[0]) == null ? void 0 : u.id) ?? null
11315
11315
  );
11316
11316
  le(() => {
@@ -11607,7 +11607,7 @@ function im({
11607
11607
  ] });
11608
11608
  }
11609
11609
  function sc({ servers: e, selectedServer: t, onSelectServer: n, focusSection: r = null }) {
11610
- const s = Object.keys(e), [o, i] = X(void 0), a = [t, o].find(
11610
+ const s = Object.keys(e), [o, i] = Z(void 0), a = [t, o].find(
11611
11611
  (d) => !!d && s.includes(d)
11612
11612
  ) ?? s[0], c = (d) => {
11613
11613
  i(d), n == null || n(d);
@@ -11625,7 +11625,7 @@ function sc({ servers: e, selectedServer: t, onSelectServer: n, focusSection: r
11625
11625
  title: ga,
11626
11626
  content: u,
11627
11627
  sideContent: /* @__PURE__ */ l(
11628
- Xl,
11628
+ Zl,
11629
11629
  {
11630
11630
  serverNames: s,
11631
11631
  current: a,
@@ -11644,7 +11644,7 @@ const oc = lu(function({ isOpen: t, side: n, onClose: r, title: s, headerActions
11644
11644
  };
11645
11645
  return document.addEventListener("keydown", y), () => document.removeEventListener("keydown", y);
11646
11646
  }, [r]);
11647
- const u = n === "right" ? "translate-x-full" : "-translate-x-full", d = n === "right" ? "right-0" : "left-0", { portalHost: p, rootElement: f } = He();
11647
+ const u = n === "right" ? "right-0" : "left-0", d = n === "right" ? "translateX(100%)" : "translateX(-100%)", { portalHost: p, rootElement: f } = He();
11648
11648
  le(() => {
11649
11649
  if (!(!t || !p))
11650
11650
  return Ta(Sa(p));
@@ -11669,7 +11669,8 @@ const oc = lu(function({ isOpen: t, side: n, onClose: r, title: s, headerActions
11669
11669
  "div",
11670
11670
  {
11671
11671
  ref: c,
11672
- className: `absolute top-0 ${d} h-full ${a} max-w-[100cqw] bg-background shadow-xl flex flex-col transition-transform duration-300 ease-in-out ${t ? "translate-x-0" : u}`,
11672
+ className: `absolute top-0 ${u} h-full ${a} max-w-[100cqw] bg-background shadow-xl flex flex-col transition-transform duration-300 ease-in-out`,
11673
+ style: { transform: t ? "translateX(0)" : d },
11673
11674
  children: [
11674
11675
  s && /* @__PURE__ */ b("div", { className: "flex items-center justify-between px-5 py-4 border-b border-border", children: [
11675
11676
  /* @__PURE__ */ l("div", { className: "text-sm font-semibold text-foreground min-w-0 flex-1 overflow-hidden", children: typeof s == "string" ? /* @__PURE__ */ l("span", { className: "truncate block", children: s }) : s }),
@@ -11705,7 +11706,7 @@ const oc = lu(function({ isOpen: t, side: n, onClose: r, title: s, headerActions
11705
11706
  ) : null;
11706
11707
  });
11707
11708
  function ic({ getMarkdown: e, label: t }) {
11708
- const [n, r] = X(!1), s = Pe(void 0);
11709
+ const [n, r] = Z(!1), s = Pe(void 0);
11709
11710
  return le(() => () => {
11710
11711
  s.current && clearTimeout(s.current);
11711
11712
  }, []), /* @__PURE__ */ l(
@@ -11727,7 +11728,7 @@ function ic({ getMarkdown: e, label: t }) {
11727
11728
  );
11728
11729
  }
11729
11730
  function ac({ message: e, messageId: t, i: n }) {
11730
- const [r, s] = X(!1);
11731
+ const [r, s] = Z(!1);
11731
11732
  return /* @__PURE__ */ b("div", { className: "border border-border rounded-lg overflow-hidden", children: [
11732
11733
  /* @__PURE__ */ b("div", { className: "px-4 py-3", children: [
11733
11734
  /* @__PURE__ */ b("div", { className: "flex items-start justify-between gap-3", children: [
@@ -11759,7 +11760,7 @@ function ac({ message: e, messageId: t, i: n }) {
11759
11760
  ] });
11760
11761
  }
11761
11762
  function am({ requestMessages: e, reply: t, isSend: n, operationId: r }) {
11762
- const [s, o] = X("request"), i = t.messages ?? [], a = t.channel, c = t.address, u = s === "request" ? e : i, d = s === "request" ? n ? "accepts" : "expects" : /* @__PURE__ */ b(te, { children: [
11763
+ const [s, o] = Z("request"), i = t.messages ?? [], a = t.channel, c = t.address, u = s === "request" ? e : i, d = s === "request" ? n ? "accepts" : "expects" : /* @__PURE__ */ b(te, { children: [
11763
11764
  "replies to",
11764
11765
  " ",
11765
11766
  c ? /* @__PURE__ */ b(te, { children: [
@@ -12081,7 +12082,7 @@ function um({ asyncapi: e, config: t }) {
12081
12082
  showCopyMarkdown: n.copyMarkdown !== !1
12082
12083
  }
12083
12084
  ) : a === "messages" ? /* @__PURE__ */ l(
12084
- Zl,
12085
+ Xl,
12085
12086
  {
12086
12087
  messages: ((R = e.components) == null ? void 0 : R.messages) ?? {},
12087
12088
  selectedKey: d.messages,
@@ -12201,7 +12202,7 @@ function fm(e) {
12201
12202
  path: "info",
12202
12203
  location: "Info",
12203
12204
  subtitle: e.info.description,
12204
- text: Ze([e.info, e.tags, e.externalDocs])
12205
+ text: Xe([e.info, e.tags, e.externalDocs])
12205
12206
  });
12206
12207
  }
12207
12208
  e.servers && e.servers.forEach((s, o) => {
@@ -12216,7 +12217,7 @@ function fm(e) {
12216
12217
  path: `servers[${o}]`,
12217
12218
  location: `Servers > ${s.url ?? i}`,
12218
12219
  subtitle: s.url,
12219
- text: Ze([s.url, s.description, s.variables])
12220
+ text: Xe([s.url, s.description, s.variables])
12220
12221
  });
12221
12222
  });
12222
12223
  const n = (s, {
@@ -12243,7 +12244,7 @@ function fm(e) {
12243
12244
  path: `${c}.${d}.${f}`,
12244
12245
  location: `${u} > ${f.toUpperCase()} ${d}`,
12245
12246
  subtitle: g.description,
12246
- text: Ze([
12247
+ text: Xe([
12247
12248
  f,
12248
12249
  d,
12249
12250
  g.summary,
@@ -12300,7 +12301,7 @@ function hm({ url: e, description: t, variables: n }) {
12300
12301
  }
12301
12302
  const ks = (e) => `server-${e}`, Es = (e) => Number(e.slice(7));
12302
12303
  function dc({ servers: e, selectedServer: t, onSelectServer: n }) {
12303
- const r = e.map((p, f) => p.url || ks(f)), [s, o] = X(void 0), i = (p) => !!p && Es(p) >= 0 && Es(p) < e.length, a = i(t) ? t : i(s) ? s : ks(0), c = e[Es(a)], u = (p) => {
12304
+ const r = e.map((p, f) => p.url || ks(f)), [s, o] = Z(void 0), i = (p) => !!p && Es(p) >= 0 && Es(p) < e.length, a = i(t) ? t : i(s) ? s : ks(0), c = e[Es(a)], u = (p) => {
12304
12305
  o(p), n == null || n(p);
12305
12306
  }, d = c ? /* @__PURE__ */ l(hm, { ...c }) : null;
12306
12307
  return /* @__PURE__ */ l("div", { className: "flex justify-center w-full", children: /* @__PURE__ */ l(
@@ -12309,7 +12310,7 @@ function dc({ servers: e, selectedServer: t, onSelectServer: n }) {
12309
12310
  title: ga,
12310
12311
  content: d,
12311
12312
  sideContent: /* @__PURE__ */ l(
12312
- Xl,
12313
+ Zl,
12313
12314
  {
12314
12315
  serverNames: r,
12315
12316
  current: (c == null ? void 0 : c.url) || a,
@@ -12440,7 +12441,7 @@ function vm({
12440
12441
  ] });
12441
12442
  }
12442
12443
  const km = qs(
12443
- () => import("./CodeSamples-CXtSA6EK.js").then(({ CodeSamples: e }) => ({ default: e }))
12444
+ () => import("./CodeSamples-6zm8Tjnl.js").then(({ CodeSamples: e }) => ({ default: e }))
12444
12445
  );
12445
12446
  function Em(e) {
12446
12447
  return e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2");
@@ -12482,7 +12483,7 @@ function Nm({
12482
12483
  isOperationKnown: n
12483
12484
  }) {
12484
12485
  var T, B;
12485
- const r = Object.keys(e), [s, o] = X(r[0]), i = e[s], a = Object.keys((i == null ? void 0 : i.content) ?? {}), [c, u] = X(a[0]), d = c ? (T = i == null ? void 0 : i.content) == null ? void 0 : T[c] : void 0, p = (i == null ? void 0 : i.headers) ?? {}, f = (i == null ? void 0 : i.links) ?? {}, [g, m] = X("body"), y = a.length > 0 && !!d, v = Object.keys(p).length > 0, A = Object.keys(f).length > 0, _ = [
12486
+ const r = Object.keys(e), [s, o] = Z(r[0]), i = e[s], a = Object.keys((i == null ? void 0 : i.content) ?? {}), [c, u] = Z(a[0]), d = c ? (T = i == null ? void 0 : i.content) == null ? void 0 : T[c] : void 0, p = (i == null ? void 0 : i.headers) ?? {}, f = (i == null ? void 0 : i.links) ?? {}, [g, m] = Z("body"), y = a.length > 0 && !!d, v = Object.keys(p).length > 0, A = Object.keys(f).length > 0, _ = [
12486
12487
  ...y ? [{ id: "body", name: "Body" }] : [],
12487
12488
  ...v ? [{ id: "headers", name: "Headers" }] : []
12488
12489
  ], j = _.length > 1, S = _.some((H) => H.id === g) ? g : (B = _[0]) == null ? void 0 : B.id, R = _.length > 0;
@@ -12562,7 +12563,7 @@ function mc(e) {
12562
12563
  const Sm = (e) => mc(e), Tm = (e) => mc(Object.entries(e).map(([t, n]) => ({ name: t, ...n })));
12563
12564
  function _m({ parameters: e }) {
12564
12565
  var a;
12565
- const t = Tu.filter(({ location: c }) => e.some((u) => u.in === c)), [n, r] = X(((a = t[0]) == null ? void 0 : a.location) ?? null);
12566
+ const t = Tu.filter(({ location: c }) => e.some((u) => u.in === c)), [n, r] = Z(((a = t[0]) == null ? void 0 : a.location) ?? null);
12566
12567
  if (t.length === 0) return null;
12567
12568
  const s = t.some((c) => c.location === n) ? n : t[0].location, o = t.find((c) => c.location === s), i = Sm(e.filter((c) => c.in === s));
12568
12569
  return /* @__PURE__ */ b("div", { children: [
@@ -12591,7 +12592,7 @@ function Cm({
12591
12592
  requestBodyContent: n,
12592
12593
  requestBodyDescription: r
12593
12594
  }) {
12594
- const s = t.length > 0, o = Object.keys(n), i = o.length > 0, [a, c] = X(s ? "parameters" : "body"), [u, d] = X(o[0]), p = u ? n[u] : void 0;
12595
+ const s = t.length > 0, o = Object.keys(n), i = o.length > 0, [a, c] = Z(s ? "parameters" : "body"), [u, d] = Z(o[0]), p = u ? n[u] : void 0;
12595
12596
  if (!s && !i)
12596
12597
  return /* @__PURE__ */ l("p", { className: "text-xs text-foreground-muted italic", children: "No request body or parameters." });
12597
12598
  const f = [
@@ -12660,7 +12661,7 @@ function Om({
12660
12661
  ...p ? ["request"] : [],
12661
12662
  ...f ? ["response"] : [],
12662
12663
  ...g ? ["callbacks"] : []
12663
- ], [y, v] = X(m[0] ?? "request");
12664
+ ], [y, v] = Z(m[0] ?? "request");
12664
12665
  if (m.length === 0) return null;
12665
12666
  const A = m.includes(y) ? y : m[0];
12666
12667
  return /* @__PURE__ */ b("div", { className: c ? "flex-1 flex flex-col min-h-0" : void 0, children: [
@@ -12846,7 +12847,7 @@ function Cr({
12846
12847
  k.push(oe), w.set(ie, k);
12847
12848
  }
12848
12849
  return Array.from(w, ([oe, ie]) => ({ label: oe, items: ie }));
12849
- }, [f, e]), [m, y] = X(() => /* @__PURE__ */ new Set()), v = m.size === 0;
12850
+ }, [f, e]), [m, y] = Z(() => /* @__PURE__ */ new Set()), v = m.size === 0;
12850
12851
  le(() => {
12851
12852
  if (!r) return;
12852
12853
  const w = g.find(({ items: $ }) => $.some(({ key: N }) => N === r));
@@ -12981,7 +12982,7 @@ function Cr({
12981
12982
  headerActions: _ && j && o ? /* @__PURE__ */ l(
12982
12983
  ic,
12983
12984
  {
12984
- getMarkdown: () => Za(p, _.method, _.path, d),
12985
+ getMarkdown: () => Xa(p, _.method, _.path, d),
12985
12986
  label: "Copy endpoint for LLM"
12986
12987
  }
12987
12988
  ) : void 0,
@@ -13174,7 +13175,7 @@ const sn = (e) => {
13174
13175
  if (!t || t.kind === "document") return Ya(e);
13175
13176
  if (typeof t.path != "string" || !Dm(t.method))
13176
13177
  throw new Error("[apiuikit] An OpenAPI operation target requires a valid method and path.");
13177
- return Za(e, t.method, t.path);
13178
+ return Xa(e, t.method, t.path);
13178
13179
  }
13179
13180
  }), Fm = yc({
13180
13181
  name: "AsyncAPI",
@@ -13289,7 +13290,7 @@ function Km(e) {
13289
13290
  }
13290
13291
  async function Vm() {
13291
13292
  try {
13292
- const e = await import("./index-ib-tk7y5.js").then((n) => n.i), t = e.default ?? e;
13293
+ const e = await import("./index-DNLwvW38.js").then((n) => n.i), t = e.default ?? e;
13293
13294
  if (typeof t != "function")
13294
13295
  throw new Error("Unexpected export shape from '@asyncapi/parser/browser'.");
13295
13296
  return t;
@@ -13303,7 +13304,7 @@ async function xc(e) {
13303
13304
  try {
13304
13305
  const t = await Vm(), n = new t();
13305
13306
  Gm(n);
13306
- const { registerProtobufSchemaParser: r } = await import("./protobufSchemaParser-9KjS7p8W.js");
13307
+ const { registerProtobufSchemaParser: r } = await import("./protobufSchemaParser-Bq5Fy-MT.js");
13307
13308
  r(n);
13308
13309
  const { document: s, diagnostics: o } = await n.parse(e);
13309
13310
  return {
@@ -13334,7 +13335,7 @@ function qm(e) {
13334
13335
  return e.json();
13335
13336
  }
13336
13337
  function gg({ raw: e, config: t, onDiagnostics: n, errorFallback: r, onError: s }) {
13337
- const [o, i] = X(null), a = Pe(n);
13338
+ const [o, i] = Z(null), a = Pe(n);
13338
13339
  return a.current = n, le(() => {
13339
13340
  let c = !0;
13340
13341
  return xc(e).then(({ document: u, diagnostics: d }) => {
@@ -13356,7 +13357,7 @@ function gg({ raw: e, config: t, onDiagnostics: n, errorFallback: r, onError: s
13356
13357
  }
13357
13358
  async function Ym() {
13358
13359
  try {
13359
- return await import("./index-BMRPdMaB.js");
13360
+ return await import("./index-CdicOrT3.js");
13360
13361
  } catch (e) {
13361
13362
  throw console.error("[apiuikit] Failed to load '@scalar/openapi-parser':", e), new Error(
13362
13363
  "[apiuikit] The parsed entry requires '@scalar/openapi-parser'. Install it (`npm i @scalar/openapi-parser`), or use the `OpenAPI` component with a pre-resolved document instead."
@@ -13393,7 +13394,7 @@ async function bg(e, t) {
13393
13394
  };
13394
13395
  }
13395
13396
  function yg({ raw: e, config: t, onDiagnostics: n, errorFallback: r, onError: s }) {
13396
- const [o, i] = X(null), a = Pe(n);
13397
+ const [o, i] = Z(null), a = Pe(n);
13397
13398
  return a.current = n, le(() => {
13398
13399
  let c = !0;
13399
13400
  return wc(e).then(({ document: u, diagnostics: d }) => {
@@ -13450,15 +13451,15 @@ function Kn() {
13450
13451
  const e = He();
13451
13452
  return e.specType === "asyncapi", e.document;
13452
13453
  }
13453
- function Zm() {
13454
+ function Xm() {
13454
13455
  const e = Kn();
13455
13456
  return !e.servers || Object.keys(e.servers).length === 0 ? null : /* @__PURE__ */ l(sc, { servers: e.servers });
13456
13457
  }
13457
13458
  function wg(e) {
13458
- return /* @__PURE__ */ l(Wn, { ...e, children: /* @__PURE__ */ l(Zm, {}) });
13459
+ return /* @__PURE__ */ l(Wn, { ...e, children: /* @__PURE__ */ l(Xm, {}) });
13459
13460
  }
13460
- function Xm() {
13461
- const e = Kn(), [t, n] = X(null);
13461
+ function Zm() {
13462
+ const e = Kn(), [t, n] = Z(null);
13462
13463
  return /* @__PURE__ */ l(
13463
13464
  lc,
13464
13465
  {
@@ -13469,13 +13470,13 @@ function Xm() {
13469
13470
  );
13470
13471
  }
13471
13472
  function vg(e) {
13472
- return /* @__PURE__ */ l(Wn, { ...e, children: /* @__PURE__ */ l(Xm, {}) });
13473
+ return /* @__PURE__ */ l(Wn, { ...e, children: /* @__PURE__ */ l(Zm, {}) });
13473
13474
  }
13474
13475
  function Qm() {
13475
13476
  var t;
13476
13477
  const e = Kn();
13477
13478
  return /* @__PURE__ */ l(
13478
- Zl,
13479
+ Xl,
13479
13480
  {
13480
13481
  messages: ((t = e.components) == null ? void 0 : t.messages) ?? {}
13481
13482
  }
@@ -13521,7 +13522,7 @@ function Sg(e) {
13521
13522
  }
13522
13523
  function ng() {
13523
13524
  var r;
13524
- const e = qn(), [t, n] = X(null);
13525
+ const e = qn(), [t, n] = Z(null);
13525
13526
  return /* @__PURE__ */ l(
13526
13527
  Cr,
13527
13528
  {
@@ -13538,7 +13539,7 @@ function Tg(e) {
13538
13539
  }
13539
13540
  function rg() {
13540
13541
  var s;
13541
- const e = qn(), [t, n] = X(null), r = e.webhooks ?? {};
13542
+ const e = qn(), [t, n] = Z(null), r = e.webhooks ?? {};
13542
13543
  return Object.keys(r).length === 0 ? null : /* @__PURE__ */ l(
13543
13544
  Cr,
13544
13545
  {
@@ -13610,5 +13611,5 @@ export {
13610
13611
  hg as w,
13611
13612
  pg as x,
13612
13613
  fg as y,
13613
- Za as z
13614
+ Xa as z
13614
13615
  };