apiuikit 1.5.2 → 1.6.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 _u = Object.defineProperty;
2
2
  var Cu = (e, t, n) => t in e ? _u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ve = (e, t, n) => Cu(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsxs as b, jsx as l, Fragment as oe } from "react/jsx-runtime";
5
- import $u, { Component as Ou, useContext as Ra, createContext as Iu, useState as Y, useMemo as ge, useId as fn, useRef as Be, useEffect as ce, useLayoutEffect as Ru, useCallback as Oi, useSyncExternalStore as Mu, Suspense as co, lazy as uo, forwardRef as Lu, Fragment as Ma } from "react";
5
+ import $u, { Component as Ou, useContext as Ra, createContext as Iu, useState as Y, useMemo as ge, useId as fn, useRef as Be, useEffect as le, useLayoutEffect as Ru, useCallback as Oi, useSyncExternalStore as Mu, Suspense as co, lazy as uo, forwardRef as Lu, Fragment as Ma } from "react";
6
6
  import { createPortal as Fr } from "react-dom";
7
7
  const fo = [
8
8
  "#14b8a6",
@@ -20,7 +20,7 @@ const fo = [
20
20
  ], po = (e, t) => {
21
21
  const n = t.length > 0 ? t : fo, r = (e % n.length + n.length) % n.length;
22
22
  return n[r];
23
- }, Bn = {
23
+ }, jn = {
24
24
  show: {
25
25
  sidebar: !0,
26
26
  info: !0,
@@ -93,7 +93,7 @@ function La(e, t) {
93
93
  }
94
94
  return n;
95
95
  }
96
- function jn(e) {
96
+ function Fn(e) {
97
97
  const t = /* @__PURE__ */ new Map();
98
98
  return (n) => {
99
99
  if (t.has(n)) return t.get(n);
@@ -113,7 +113,7 @@ const ws = (e) => typeof e == "object" && e !== null, Bu = (e) => e.replace(/^#\
113
113
  t.delete(e);
114
114
  }
115
115
  }, ju = (e) => e.replace(/~/g, "~0").replace(/\//g, "~1"), Ii = (e) => e.length ? `#/${e.map(ju).join("/")}` : "#";
116
- function Fn(e) {
116
+ function zn(e) {
117
117
  if (!Pa(e)) return e;
118
118
  const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), s = (o, i) => {
119
119
  if (Array.isArray(o)) {
@@ -196,14 +196,14 @@ class Da extends Ou {
196
196
  );
197
197
  }
198
198
  }
199
- const zr = Iu(null), zn = () => {
199
+ const zr = Iu(null), Un = () => {
200
200
  const e = Ra(zr);
201
201
  if (!e)
202
202
  throw new Error(
203
203
  "useDocumentContext must be used within a document provider (AsyncAPIDocumentProvider or OpenAPIDocumentProvider)"
204
204
  );
205
205
  return e;
206
- }, Qe = zn;
206
+ }, Qe = Un;
207
207
  var Cr = /* @__PURE__ */ ((e) => (e.SEND = "send", e.RECEIVE = "receive", e))(Cr || {});
208
208
  const Fu = "Contact", zu = "Email", Ri = "License", Mi = "External Documentation", Uu = "Tags", Hu = "Implicit", Wu = `The Implicit flow is a simplified OAuth flow previously recommended
209
209
  for native apps and JavaScript apps where the access token is returned
@@ -307,9 +307,9 @@ function sd(e) {
307
307
  }
308
308
  return e.colors && (ks(e.colors.primary, "primary", t), ks(e.colors.secondary, "secondary", t), ks(e.colors.neutral, "neutral", t)), t;
309
309
  }
310
- function Fa(e, t, n = Bn) {
311
- var j, C, N, v, x, F, Q, T;
312
- const [r, s] = Y(null), [o, i] = Y(null), a = ge(() => jn(t), [t]), c = ((j = n.expand) == null ? void 0 : j.schemas) === !0, u = (N = (C = n.theme) == null ? void 0 : C.depthColors) != null && N.length ? n.theme.depthColors : fo, d = ((v = n.show) == null ? void 0 : v.extensions) !== !1, f = ((x = n.show) == null ? void 0 : x.codeSamples) !== !1, p = n.topOffset, m = typeof p == "number" && Number.isFinite(p) ? Math.max(0, p) : 0, h = ((F = n.sidePanel) == null ? void 0 : F.containment) ?? "viewport", y = (Q = n.sidePanel) == null ? void 0 : Q.topOffset, k = typeof y == "number" && Number.isFinite(y) ? Math.max(0, y) : m, S = (T = n.markdown) == null ? void 0 : T.url, $ = ge(() => {
310
+ function Fa(e, t, n = jn) {
311
+ var F, C, N, v, x, j, Q, T;
312
+ const [r, s] = Y(null), [o, i] = Y(null), a = ge(() => Fn(t), [t]), c = ((F = n.expand) == null ? void 0 : F.schemas) === !0, u = (N = (C = n.theme) == null ? void 0 : C.depthColors) != null && N.length ? n.theme.depthColors : fo, d = ((v = n.show) == null ? void 0 : v.extensions) !== !1, f = ((x = n.show) == null ? void 0 : x.codeSamples) !== !1, p = n.topOffset, m = typeof p == "number" && Number.isFinite(p) ? Math.max(0, p) : 0, h = ((j = n.sidePanel) == null ? void 0 : j.containment) ?? "viewport", y = (Q = n.sidePanel) == null ? void 0 : Q.topOffset, k = typeof y == "number" && Number.isFinite(y) ? Math.max(0, y) : m, S = (T = n.markdown) == null ? void 0 : T.url, $ = ge(() => {
313
313
  if (typeof S == "function") return S;
314
314
  if (typeof S == "string") return () => S;
315
315
  }, [S]), E = ge(
@@ -343,12 +343,12 @@ function Fa(e, t, n = Bn) {
343
343
  f,
344
344
  $
345
345
  ]
346
- ), M = n.theme ? sd(n.theme) : {};
347
- return { contextValue: E, themeVars: M, setPortalHost: s, setRootElement: i };
346
+ ), I = n.theme ? sd(n.theme) : {};
347
+ return { contextValue: E, themeVars: I, setPortalHost: s, setRootElement: i };
348
348
  }
349
349
  function go({
350
350
  document: e,
351
- config: t = Bn,
351
+ config: t = jn,
352
352
  className: n = "",
353
353
  children: r
354
354
  }) {
@@ -415,7 +415,21 @@ function Dt({
415
415
  function sn(...e) {
416
416
  return e.filter(Boolean).join(" ");
417
417
  }
418
- function pn({
418
+ function pn({ className: e }) {
419
+ return /* @__PURE__ */ l(
420
+ "svg",
421
+ {
422
+ className: e,
423
+ id: "Layer_1",
424
+ version: "1.1",
425
+ viewBox: "0 0 50 50",
426
+ xmlns: "http://www.w3.org/2000/svg",
427
+ fill: "currentColor",
428
+ children: /* @__PURE__ */ l("polygon", { points: "47.25,15 45.164,12.914 25,33.078 4.836,12.914 2.75,15 25,37.25 " })
429
+ }
430
+ );
431
+ }
432
+ function hn({
419
433
  tabs: e,
420
434
  current: t,
421
435
  onChange: n = () => {
@@ -436,7 +450,7 @@ function pn({
436
450
  }
437
451
  };
438
452
  return e.length ? /* @__PURE__ */ b("div", { children: [
439
- /* @__PURE__ */ b("div", { className: "@sm:hidden", children: [
453
+ /* @__PURE__ */ b("div", { className: sn("@sm:hidden relative", u ? "mt-0" : "mt-4"), children: [
440
454
  /* @__PURE__ */ l("label", { htmlFor: i, className: "sr-only", children: s }),
441
455
  /* @__PURE__ */ b(
442
456
  "select",
@@ -445,16 +459,14 @@ function pn({
445
459
  name: "tabs",
446
460
  value: c,
447
461
  onChange: (h) => n(h.target.value),
448
- className: sn(
449
- "block w-full rounded-md border-neutral-300 bg-neutral-200 focus:border-secondary-500 focus:ring-secondary-500",
450
- u ? "mt-0" : "mt-4"
451
- ),
462
+ className: "block w-full appearance-none rounded-md border border-border bg-surface py-2 pl-3 pr-9 text-sm text-foreground-secondary focus:border-secondary-500 focus:outline-none focus:ring-1 focus:ring-secondary-500",
452
463
  children: [
453
464
  o && /* @__PURE__ */ l("option", { value: "", children: o }),
454
465
  e.map((h) => /* @__PURE__ */ l("option", { value: h.id, children: h.name }, h.id))
455
466
  ]
456
467
  }
457
- )
468
+ ),
469
+ /* @__PURE__ */ l(pn, { className: "pointer-events-none absolute right-3 top-1/2 h-3 w-3 -translate-y-1/2 text-foreground-muted" })
458
470
  ] }),
459
471
  /* @__PURE__ */ l("div", { className: sn("hidden @sm:block", u ? "" : "mt-6"), children: u ? /* @__PURE__ */ l(
460
472
  "div",
@@ -573,7 +585,7 @@ function Ha(e) {
573
585
  };
574
586
  }
575
587
  function Wa({ tabs: e, current: t, onChange: n }) {
576
- const { rootElement: r, topOffset: s = 0 } = zn();
588
+ const { rootElement: r, topOffset: s = 0 } = Un();
577
589
  if (!e.length)
578
590
  return null;
579
591
  const o = typeof document < "u" && bo(r) === document.documentElement ? s : 0;
@@ -583,7 +595,7 @@ function Wa({ tabs: e, current: t, onChange: n }) {
583
595
  className: "sticky z-10 flex w-full justify-center bg-background",
584
596
  style: { top: o },
585
597
  children: /* @__PURE__ */ l(Dt, { content: /* @__PURE__ */ l("div", { className: "w-full mt-10 @lg:mt-0", children: /* @__PURE__ */ l(
586
- pn,
598
+ hn,
587
599
  {
588
600
  tabs: e,
589
601
  current: t,
@@ -597,7 +609,7 @@ function Wa({ tabs: e, current: t, onChange: n }) {
597
609
  }
598
610
  function id(e, t) {
599
611
  const [n, r] = Y("docked"), s = Be(t);
600
- return s.current = t, ce(() => {
612
+ return s.current = t, le(() => {
601
613
  if (!e) return;
602
614
  let o = null, i = null;
603
615
  const a = () => {
@@ -610,7 +622,7 @@ function id(e, t) {
610
622
  return a(), window.addEventListener("scroll", c, !0), window.addEventListener("resize", c), () => {
611
623
  i !== null && cancelAnimationFrame(i), window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c);
612
624
  };
613
- }, [e]), ce(() => {
625
+ }, [e]), le(() => {
614
626
  t && r((o) => o === "hidden" ? "pinned" : o);
615
627
  }, [t]), n;
616
628
  }
@@ -640,7 +652,7 @@ function Ga({
640
652
  children: t,
641
653
  forceVisible: n = !1
642
654
  }) {
643
- const { rootElement: r, topOffset: s = 0 } = zn(), o = id(r, n), i = o !== "docked", a = yo(r, i), c = typeof window > "u" ? 0 : window.innerWidth, u = a ? Math.max(a.left, 0) : 0, d = a ? Math.min(a.right, c) : c, f = {
655
+ const { rootElement: r, topOffset: s = 0 } = Un(), o = id(r, n), i = o !== "docked", a = yo(r, i), c = typeof window > "u" ? 0 : window.innerWidth, u = a ? Math.max(a.left, 0) : 0, d = a ? Math.min(a.right, c) : c, f = {
644
656
  left: i ? u + fr : fr,
645
657
  right: i ? Math.max(c - d, 0) + fr : fr,
646
658
  transform: `translateY(${o === "hidden" ? "-150%" : "0px"})`,
@@ -689,30 +701,30 @@ function Lt({ address: e, parameters: t, className: n = "text-xs", truncate: r =
689
701
  const { portalHost: o } = Qe(), [i, a] = Y(null), [c, u] = Y({ top: 0, left: 0, placement: "top" }), [d, f] = Y(!1), p = Be(null), m = cd(e);
690
702
  let h = 0;
691
703
  const y = 40;
692
- ce(() => {
704
+ le(() => {
693
705
  if (!r) return;
694
- const M = p.current;
695
- if (!M) return;
696
- const j = () => f(M.scrollWidth > M.clientWidth);
697
- j();
698
- const C = new ResizeObserver(j);
699
- return C.observe(M), () => C.disconnect();
706
+ const I = p.current;
707
+ if (!I) return;
708
+ const F = () => f(I.scrollWidth > I.clientWidth);
709
+ F();
710
+ const C = new ResizeObserver(F);
711
+ return C.observe(I), () => C.disconnect();
700
712
  }, [r, e]);
701
- const k = (M, j) => {
702
- const C = j.getBoundingClientRect(), N = C.top < y ? "bottom" : "top";
713
+ const k = (I, F) => {
714
+ const C = F.getBoundingClientRect(), N = C.top < y ? "bottom" : "top";
703
715
  u({
704
716
  top: N === "top" ? C.top - 8 : C.bottom + 8,
705
717
  left: C.left + C.width / 2,
706
718
  placement: N
707
- }), a(M);
708
- }, S = () => a(null), $ = m.map((M, j) => {
709
- if (M.type === "text") return /* @__PURE__ */ l("span", { children: M.value }, j);
710
- const C = t == null ? void 0 : t[M.value], N = Li[h++ % Li.length], v = i === j, x = !!C && (C.description || C.type || C.default || C.enum && C.enum.length > 0 || C.examples && C.examples.length > 0), F = `channel-address-tooltip-${j}`, Q = x && v ? F : void 0;
719
+ }), a(I);
720
+ }, S = () => a(null), $ = m.map((I, F) => {
721
+ if (I.type === "text") return /* @__PURE__ */ l("span", { children: I.value }, F);
722
+ const C = t == null ? void 0 : t[I.value], N = Li[h++ % Li.length], v = i === F, x = !!C && (C.description || C.type || C.default || C.enum && C.enum.length > 0 || C.examples && C.examples.length > 0), j = `channel-address-tooltip-${F}`, Q = x && v ? j : void 0;
711
723
  return /* @__PURE__ */ b(
712
724
  "span",
713
725
  {
714
726
  className: "inline-block",
715
- onMouseEnter: (T) => x && k(j, T.currentTarget),
727
+ onMouseEnter: (T) => x && k(F, T.currentTarget),
716
728
  onMouseLeave: S,
717
729
  children: [
718
730
  /* @__PURE__ */ l(
@@ -723,19 +735,19 @@ function Lt({ address: e, parameters: t, className: n = "text-xs", truncate: r =
723
735
  tabIndex: x ? 0 : void 0,
724
736
  "aria-expanded": x ? v : void 0,
725
737
  "aria-describedby": Q,
726
- onFocus: (T) => x && k(j, T.currentTarget),
738
+ onFocus: (T) => x && k(F, T.currentTarget),
727
739
  onBlur: S,
728
740
  onKeyDown: (T) => {
729
- x && ((T.key === "Enter" || T.key === " ") && (T.preventDefault(), k(j, T.currentTarget)), T.key === "Escape" && (T.preventDefault(), S(), T.currentTarget.blur()));
741
+ x && ((T.key === "Enter" || T.key === " ") && (T.preventDefault(), k(F, T.currentTarget)), T.key === "Escape" && (T.preventDefault(), S(), T.currentTarget.blur()));
730
742
  },
731
- children: `{${M.value}}`
743
+ children: `{${I.value}}`
732
744
  }
733
745
  ),
734
746
  x && v && o && Fr(
735
747
  /* @__PURE__ */ b(
736
748
  "div",
737
749
  {
738
- id: F,
750
+ id: j,
739
751
  className: `fixed -translate-x-1/2 max-w-xs px-2.5 py-1.5 bg-neutral-50 text-foreground-muted text-xs rounded pointer-events-none z-[60] shadow-lg text-left leading-snug ${c.placement === "top" ? "-translate-y-full" : ""}`,
740
752
  style: { top: c.top, left: c.left },
741
753
  children: [
@@ -759,7 +771,7 @@ function Lt({ address: e, parameters: t, className: n = "text-xs", truncate: r =
759
771
  )
760
772
  ]
761
773
  },
762
- j
774
+ F
763
775
  );
764
776
  }), E = s ? "px-2 py-1 " : "";
765
777
  return r ? /* @__PURE__ */ b("code", { className: `${E}rounded text-foreground-secondary flex items-center min-w-0 ${n}`, children: [
@@ -810,17 +822,17 @@ function gd({
810
822
  ), S = ge(
811
823
  () => y.filter((D) => D.showInPopover !== !1),
812
824
  [y]
813
- ), [$, E] = Y(null), M = Be(null), j = Be(null), C = Oi((D, X) => {
814
- E({ section: D, key: X }), M.current = { section: D, key: X }, j.current && clearTimeout(j.current), j.current = setTimeout(() => {
815
- M.current = null;
825
+ ), [$, E] = Y(null), I = Be(null), F = Be(null), C = Oi((D, X) => {
826
+ E({ section: D, key: X }), I.current = { section: D, key: X }, F.current && clearTimeout(F.current), F.current = setTimeout(() => {
827
+ I.current = null;
816
828
  }, 600);
817
829
  }, []);
818
- ce(
830
+ le(
819
831
  () => () => {
820
- j.current && clearTimeout(j.current);
832
+ F.current && clearTimeout(F.current);
821
833
  },
822
834
  []
823
- ), ce(() => {
835
+ ), le(() => {
824
836
  const X = e.filter((G) => G.items.length > 0).flatMap(
825
837
  (G) => G.items.map((be) => ({
826
838
  section: G.id,
@@ -829,7 +841,7 @@ function gd({
829
841
  }))
830
842
  ).map((G) => ({ ...G, el: document.getElementById(G.id) })).filter((G) => !!G.el);
831
843
  if (X.length === 0) return;
832
- const I = new Map(X.map((G) => [G.el, G])), ee = /* @__PURE__ */ new Map(), de = new IntersectionObserver(
844
+ const R = new Map(X.map((G) => [G.el, G])), ee = /* @__PURE__ */ new Map(), de = new IntersectionObserver(
833
845
  (G) => {
834
846
  for (const ke of G)
835
847
  ke.isIntersecting ? ee.set(ke.target, ke.boundingClientRect.top) : ee.delete(ke.target);
@@ -837,12 +849,12 @@ function gd({
837
849
  let be = null, Ee = -1 / 0;
838
850
  for (const [ke, Ve] of ee)
839
851
  Ve > Ee && (be = ke, Ee = Ve);
840
- const me = be && I.get(be);
852
+ const me = be && R.get(be);
841
853
  if (!me) return;
842
- const Fe = M.current;
854
+ const Fe = I.current;
843
855
  if (Fe) {
844
856
  if (me.section !== Fe.section || me.key !== Fe.key) return;
845
- M.current = null;
857
+ I.current = null;
846
858
  }
847
859
  E({ section: me.section, key: me.key });
848
860
  },
@@ -850,18 +862,18 @@ function gd({
850
862
  );
851
863
  return X.forEach((G) => de.observe(G.el)), () => de.disconnect();
852
864
  }, [e]);
853
- const N = ($ == null ? void 0 : $.section) ?? t, v = $ ?? s, x = yo(d, !0), F = typeof window > "u" ? 0 : window.innerWidth, Q = typeof window > "u" ? 0 : window.innerHeight, T = !!x && x.bottom > p && x.top < Q, W = Math.max(0, Q - p), le = p + W / 2, ae = !!x && x.width < 1024, A = {
865
+ const N = ($ == null ? void 0 : $.section) ?? t, v = $ ?? s, x = yo(d, !0), j = typeof window > "u" ? 0 : window.innerWidth, Q = typeof window > "u" ? 0 : window.innerHeight, T = !!x && x.bottom > p && x.top < Q, W = Math.max(0, Q - p), ce = p + W / 2, ae = !!x && x.width < 1024, A = {
854
866
  opacity: T ? 1 : 0,
855
867
  pointerEvents: T ? "auto" : "none",
856
868
  transition: "opacity 0.2s ease"
857
869
  }, _ = {
858
870
  position: "fixed",
859
- top: le,
871
+ top: ce,
860
872
  left: ((x == null ? void 0 : x.left) ?? 0) + Di,
861
873
  transform: "translateY(-50%)",
862
874
  zIndex: 51,
863
875
  ...A
864
- }, H = Math.min((x == null ? void 0 : x.right) ?? 0, F) - 60, V = {
876
+ }, H = Math.min((x == null ? void 0 : x.right) ?? 0, j) - 60, V = {
865
877
  position: "fixed",
866
878
  bottom: 16,
867
879
  left: H,
@@ -871,23 +883,23 @@ function gd({
871
883
  // Anchored just above the compact button, right edges aligned.
872
884
  position: "fixed",
873
885
  bottom: 68,
874
- right: F - (H + 44),
886
+ right: j - (H + 44),
875
887
  zIndex: 52
876
888
  } : {
877
889
  position: "fixed",
878
- top: le,
890
+ top: ce,
879
891
  left: ((x == null ? void 0 : x.left) ?? 0) + Di,
880
892
  transform: "translateY(-50%)",
881
893
  maxHeight: `calc(100vh - ${p + 32}px)`,
882
894
  zIndex: 52
883
895
  };
884
- ce(() => {
896
+ le(() => {
885
897
  if (!o) return;
886
- const D = (I) => {
887
- I.key === "Escape" && i(!1);
888
- }, X = (I) => {
898
+ const D = (R) => {
899
+ R.key === "Escape" && i(!1);
900
+ }, X = (R) => {
889
901
  var de, G;
890
- const ee = I.target;
902
+ const ee = R.target;
891
903
  (de = m.current) != null && de.contains(ee) || (G = h.current) != null && G.contains(ee) || i(!1);
892
904
  };
893
905
  return document.addEventListener("keydown", D), document.addEventListener("mousedown", X), () => {
@@ -897,13 +909,13 @@ function gd({
897
909
  const te = Oi(
898
910
  (D, X) => {
899
911
  D.isTab !== !1 && n(D.id), X && setTimeout(() => {
900
- var I;
901
- (I = document.getElementById(X)) == null || I.scrollIntoView({ behavior: "smooth", block: "start" });
912
+ var R;
913
+ (R = document.getElementById(X)) == null || R.scrollIntoView({ behavior: "smooth", block: "start" });
902
914
  }, 50);
903
915
  },
904
916
  [n]
905
917
  ), Ie = ge(() => S.map((D) => {
906
- const X = N === D.id, I = (v == null ? void 0 : v.section) === D.id, ee = D.icon;
918
+ const X = N === D.id, R = (v == null ? void 0 : v.section) === D.id, ee = D.icon;
907
919
  return /* @__PURE__ */ b("div", { className: "pb-1", children: [
908
920
  /* @__PURE__ */ b(
909
921
  "button",
@@ -937,7 +949,7 @@ function gd({
937
949
  }
938
950
  ),
939
951
  D.items.length > 0 && /* @__PURE__ */ l("ul", { className: "ml-4 mt-0.5 border-l border-border pl-3", children: D.items.map((de) => {
940
- const G = D.itemKey(de), be = I && (v == null ? void 0 : v.key) === G;
952
+ const G = D.itemKey(de), be = R && (v == null ? void 0 : v.key) === G;
941
953
  return /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(
942
954
  "button",
943
955
  {
@@ -955,8 +967,8 @@ function gd({
955
967
  k.map((X) => X.items.length),
956
968
  q
957
969
  );
958
- return k.map((X, I) => {
959
- const ee = N === X.id, de = X.items.length, G = D[I];
970
+ return k.map((X, R) => {
971
+ const ee = N === X.id, de = X.items.length, G = D[R];
960
972
  let be = -1;
961
973
  if ((v == null ? void 0 : v.section) === X.id) {
962
974
  const Ee = X.items.findIndex(
@@ -1266,7 +1278,7 @@ function Bi(e, t) {
1266
1278
  for (const r of (t == null ? void 0 : t.parameters) ?? []) n.set(`${r.in}:${r.name}`, r);
1267
1279
  return Array.from(n.values());
1268
1280
  }
1269
- function On(e) {
1281
+ function In(e) {
1270
1282
  return Object.keys(e).sort().flatMap((t) => {
1271
1283
  const n = e[t];
1272
1284
  return n ? Hr.filter((r) => n[r]).map((r) => ({
@@ -1330,7 +1342,7 @@ function vd({
1330
1342
  onSelectServer: c,
1331
1343
  selectedItem: u
1332
1344
  }) {
1333
- const d = ge(() => On(e), [e]), f = ge(() => On(t), [t]), p = ge(() => {
1345
+ const d = ge(() => In(e), [e]), f = ge(() => In(t), [t]), p = ge(() => {
1334
1346
  const m = r.map((h, y) => ({ key: `server-${y}`, url: h }));
1335
1347
  return [
1336
1348
  Va(s),
@@ -1409,66 +1421,69 @@ function Za({
1409
1421
  onSelectResult: r,
1410
1422
  onOpenChange: s
1411
1423
  }) {
1412
- const o = Be(null), i = Be(null), [a, c] = Y(!1), [u, d] = Y(-1), f = "asyncapi-search-results", { portalHost: p, rootElement: m, topOffset: h = 0 } = Qe(), y = () => {
1424
+ const o = Be(null), i = Be(null), [a, c] = Y(!1), [u, d] = Y(-1), f = "asyncapi-search-results", p = (v) => `asyncapi-search-result-${v}`, { portalHost: m, rootElement: h, topOffset: y = 0 } = Qe(), k = () => {
1413
1425
  c(!1), d(-1);
1414
1426
  };
1415
- ce(() => (s == null || s(a), () => s == null ? void 0 : s(!1)), [a, s]);
1416
- const k = Be(!1), S = Be(!1);
1417
- ce(() => {
1418
- if (!m) return;
1427
+ le(() => (s == null || s(a), () => s == null ? void 0 : s(!1)), [a, s]);
1428
+ const S = Be(!1), $ = Be(!1);
1429
+ le(() => {
1430
+ if (!h) return;
1419
1431
  const v = () => {
1420
- k.current = !0;
1432
+ S.current = !0;
1421
1433
  }, x = () => {
1422
- k.current = !1;
1434
+ S.current = !1;
1423
1435
  };
1424
- return m.addEventListener("mouseenter", v), m.addEventListener("mouseleave", x), () => {
1425
- m.removeEventListener("mouseenter", v), m.removeEventListener("mouseleave", x);
1436
+ return h.addEventListener("mouseenter", v), h.addEventListener("mouseleave", x), () => {
1437
+ h.removeEventListener("mouseenter", v), h.removeEventListener("mouseleave", x);
1426
1438
  };
1427
- }, [m]), ce(() => {
1428
- if (!m) return;
1439
+ }, [h]), le(() => {
1440
+ if (!h) return;
1429
1441
  const v = (x) => {
1430
- S.current = m.contains(x.target);
1442
+ $.current = h.contains(x.target);
1431
1443
  };
1432
1444
  return document.addEventListener("mousedown", v, !0), () => document.removeEventListener("mousedown", v, !0);
1433
- }, [m]), ce(() => {
1434
- if (!m) return;
1445
+ }, [h]), le(() => {
1446
+ if (!h) return;
1435
1447
  const v = (x) => {
1436
- !(x.metaKey || x.ctrlKey) || x.key.toLowerCase() !== "k" || !(m.contains(document.activeElement) || k.current || S.current) || (x.preventDefault(), c(!0));
1448
+ !(x.metaKey || x.ctrlKey) || x.key.toLowerCase() !== "k" || !(h.contains(document.activeElement) || S.current || $.current) || (x.preventDefault(), c(!0));
1437
1449
  };
1438
1450
  return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
1439
- }, [m]), ce(() => {
1451
+ }, [h]), le(() => {
1440
1452
  if (!a) return;
1441
1453
  const v = requestAnimationFrame(() => {
1442
1454
  var x;
1443
1455
  return (x = i.current) == null ? void 0 : x.focus();
1444
1456
  });
1445
1457
  return () => cancelAnimationFrame(v);
1446
- }, [a]), ce(() => {
1447
- if (!(!a || !p))
1448
- return Ha(bo(p));
1449
- }, [a, p]), ce(() => {
1458
+ }, [a]), le(() => {
1459
+ if (!(!a || !m))
1460
+ return Ha(bo(m));
1461
+ }, [a, m]), le(() => {
1450
1462
  if (!a) return;
1451
1463
  const v = (x) => {
1452
- x.key === "Escape" && y();
1464
+ x.key === "Escape" && k();
1453
1465
  };
1454
1466
  return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
1455
- }, [a]), ce(() => {
1467
+ }, [a]), le(() => {
1456
1468
  if (!a) return;
1457
1469
  const v = (x) => {
1458
- o.current && !o.current.contains(x.target) && y();
1470
+ o.current && !o.current.contains(x.target) && k();
1459
1471
  };
1460
1472
  return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
1461
- }, [a]), ce(() => {
1473
+ }, [a]), le(() => {
1462
1474
  u >= n.length && d(n.length - 1);
1463
- }, [u, n.length]);
1464
- const $ = a && e.trim().length > 0, E = (v) => {
1465
- y(), r(v);
1466
- }, M = (v) => {
1475
+ }, [u, n.length]), le(() => {
1476
+ var v;
1477
+ u < 0 || (v = document.getElementById(p(u))) == null || v.scrollIntoView({ block: "nearest" });
1478
+ }, [u]);
1479
+ const E = a && e.trim().length > 0, I = (v) => {
1480
+ k(), r(v);
1481
+ }, F = (v) => {
1467
1482
  if (v.key === "Escape") {
1468
- v.preventDefault(), y();
1483
+ v.preventDefault(), k();
1469
1484
  return;
1470
1485
  }
1471
- if ($) {
1486
+ if (E) {
1472
1487
  if (v.key === "ArrowDown") {
1473
1488
  v.preventDefault(), d(
1474
1489
  (x) => n.length === 0 ? -1 : Math.min(x + 1, n.length - 1)
@@ -1477,7 +1492,7 @@ function Za({
1477
1492
  }
1478
1493
  if (v.key === "ArrowUp") {
1479
1494
  v.preventDefault(), d(
1480
- (x) => n.length === 0 ? -1 : x <= 0 ? n.length - 1 : x - 1
1495
+ (x) => n.length === 0 ? -1 : Math.max(x - 1, 0)
1481
1496
  );
1482
1497
  return;
1483
1498
  }
@@ -1489,12 +1504,12 @@ function Za({
1489
1504
  v.preventDefault(), n.length > 0 && d(n.length - 1);
1490
1505
  return;
1491
1506
  }
1492
- if (v.key === "Enter" && u >= 0 && n[u]) {
1493
- v.preventDefault(), E(n[u]);
1507
+ if ((v.key === "Enter" || v.key === " ") && u >= 0 && n[u]) {
1508
+ v.preventDefault(), I(n[u]);
1494
1509
  return;
1495
1510
  }
1496
1511
  }
1497
- }, j = (v) => `asyncapi-search-result-${v}`, C = $ ? `${n.length} result${n.length === 1 ? "" : "s"} found` : "", N = typeof navigator < "u" && /Mac|iPod|iPhone|iPad/.test(navigator.userAgent);
1512
+ }, C = E ? `${n.length} result${n.length === 1 ? "" : "s"} found` : "", N = typeof navigator < "u" && /Mac|iPod|iPhone|iPad/.test(navigator.userAgent);
1498
1513
  return /* @__PURE__ */ b(oe, { children: [
1499
1514
  /* @__PURE__ */ l(
1500
1515
  "button",
@@ -1506,7 +1521,7 @@ function Za({
1506
1521
  children: /* @__PURE__ */ l(Ad, {})
1507
1522
  }
1508
1523
  ),
1509
- a && p && Fr(
1524
+ a && m && Fr(
1510
1525
  // z-[60] — above this search toggle, the nav spine (z-51), and the
1511
1526
  // nav popover (z-52), so the backdrop dims them along with the rest
1512
1527
  // of the page instead of leaving them floating on top of it.
@@ -1514,7 +1529,7 @@ function Za({
1514
1529
  "div",
1515
1530
  {
1516
1531
  className: "fixed inset-0 z-[60] flex justify-center px-4 pt-24",
1517
- style: { top: h },
1532
+ style: { top: y },
1518
1533
  children: [
1519
1534
  /* @__PURE__ */ l("div", { className: "absolute inset-0 bg-black/30" }),
1520
1535
  /* @__PURE__ */ b(
@@ -1531,20 +1546,20 @@ function Za({
1531
1546
  type: "search",
1532
1547
  value: e,
1533
1548
  onChange: (v) => t(v.target.value),
1534
- onKeyDown: M,
1549
+ onKeyDown: F,
1535
1550
  placeholder: "Search document...",
1536
1551
  "aria-label": "Search document",
1537
1552
  role: "combobox",
1538
1553
  "aria-haspopup": "listbox",
1539
- "aria-expanded": $,
1554
+ "aria-expanded": E,
1540
1555
  "aria-controls": f,
1541
1556
  "aria-autocomplete": "list",
1542
- "aria-activedescendant": u >= 0 ? j(u) : void 0,
1557
+ "aria-activedescendant": u >= 0 ? p(u) : void 0,
1543
1558
  className: "w-full rounded-md bg-surface px-4 py-3 text-sm text-foreground placeholder:text-foreground-muted focus:outline-none"
1544
1559
  }
1545
1560
  ) }),
1546
1561
  /* @__PURE__ */ l("div", { "aria-live": "polite", className: "sr-only", children: C }),
1547
- $ && /* @__PURE__ */ l(
1562
+ E && /* @__PURE__ */ l(
1548
1563
  "div",
1549
1564
  {
1550
1565
  id: f,
@@ -1553,11 +1568,11 @@ function Za({
1553
1568
  children: n.length > 0 ? /* @__PURE__ */ l("ul", { className: "divide-y divide-border", children: n.map((v, x) => /* @__PURE__ */ l("li", { children: /* @__PURE__ */ b(
1554
1569
  "button",
1555
1570
  {
1556
- id: j(x),
1571
+ id: p(x),
1557
1572
  type: "button",
1558
1573
  role: "option",
1559
1574
  "aria-selected": u === x,
1560
- onClick: () => E(v),
1575
+ onClick: () => I(v),
1561
1576
  className: "w-full text-left px-4 py-3 hover:bg-neutral-50 " + (u === x ? "bg-neutral-100" : ""),
1562
1577
  children: [
1563
1578
  /* @__PURE__ */ l("div", { className: "text-sm font-semibold text-foreground", children: v.name }),
@@ -1573,11 +1588,22 @@ function Za({
1573
1588
  ) }, v.id)) }) : /* @__PURE__ */ l("div", { className: "px-4 py-4 text-sm text-foreground-muted", children: "No results found." })
1574
1589
  }
1575
1590
  ),
1576
- /* @__PURE__ */ b("div", { className: "flex items-center justify-center gap-1 px-4 py-1.5 text-xs text-foreground-muted", children: [
1577
- "Press",
1578
- /* @__PURE__ */ l("kbd", { className: "rounded border border-border bg-neutral-50 px-1 font-mono text-[10px]", children: N ? "⌘ Cmd" : "Ctrl" }),
1579
- /* @__PURE__ */ l("kbd", { className: "rounded border border-border bg-neutral-50 px-1 font-mono text-[10px]", children: "K" }),
1580
- "to search"
1591
+ /* @__PURE__ */ b("div", { className: "flex flex-wrap items-center justify-center gap-3 px-4 py-1.5 text-xs text-foreground-muted", children: [
1592
+ /* @__PURE__ */ b("span", { className: "flex items-center gap-1", children: [
1593
+ /* @__PURE__ */ l("kbd", { className: "rounded border border-border bg-neutral-50 px-1 font-mono text-[10px]", children: "" }),
1594
+ /* @__PURE__ */ l("kbd", { className: "rounded border border-border bg-neutral-50 px-1 font-mono text-[10px]", children: "" }),
1595
+ "to navigate"
1596
+ ] }),
1597
+ /* @__PURE__ */ b("span", { className: "flex items-center gap-1", children: [
1598
+ /* @__PURE__ */ l("kbd", { className: "rounded border border-border bg-neutral-50 px-1 font-mono text-[10px]", children: "↵" }),
1599
+ "to select"
1600
+ ] }),
1601
+ /* @__PURE__ */ b("span", { className: "flex items-center gap-1", children: [
1602
+ "Press",
1603
+ /* @__PURE__ */ l("kbd", { className: "rounded border border-border bg-neutral-50 px-1 font-mono text-[10px]", children: N ? "⌘ Cmd" : "Ctrl" }),
1604
+ /* @__PURE__ */ l("kbd", { className: "rounded border border-border bg-neutral-50 px-1 font-mono text-[10px]", children: "K" }),
1605
+ "to search"
1606
+ ] })
1581
1607
  ] })
1582
1608
  ]
1583
1609
  }
@@ -1585,7 +1611,7 @@ function Za({
1585
1611
  ]
1586
1612
  }
1587
1613
  ),
1588
- p
1614
+ m
1589
1615
  )
1590
1616
  ] });
1591
1617
  }
@@ -1615,20 +1641,6 @@ function qa({ className: e }) {
1615
1641
  function Wr({ className: e }) {
1616
1642
  return /* @__PURE__ */ l("svg", { className: e || "inline-block", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ l("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14" }) });
1617
1643
  }
1618
- function Un({ className: e }) {
1619
- return /* @__PURE__ */ l(
1620
- "svg",
1621
- {
1622
- className: e,
1623
- id: "Layer_1",
1624
- version: "1.1",
1625
- viewBox: "0 0 50 50",
1626
- xmlns: "http://www.w3.org/2000/svg",
1627
- fill: "currentColor",
1628
- children: /* @__PURE__ */ l("polygon", { points: "47.25,15 45.164,12.914 25,33.078 4.836,12.914 2.75,15 25,37.25 " })
1629
- }
1630
- );
1631
- }
1632
1644
  const Ed = [
1633
1645
  "The following is API documentation in Markdown.",
1634
1646
  "Use it to answer questions about this API and help write client code.",
@@ -1645,15 +1657,15 @@ function el({
1645
1657
  onOpenChange: t
1646
1658
  }) {
1647
1659
  const [n, r] = Y(!1), [s, o] = Y(!1), i = Be(null), a = Be(void 0), { deref: c } = Qe(), u = () => Sd(e(c));
1648
- return ce(() => () => {
1660
+ return le(() => () => {
1649
1661
  a.current && clearTimeout(a.current);
1650
- }, []), ce(() => (t == null || t(n), () => t == null ? void 0 : t(!1)), [n, t]), ce(() => {
1662
+ }, []), le(() => (t == null || t(n), () => t == null ? void 0 : t(!1)), [n, t]), le(() => {
1651
1663
  if (!n) return;
1652
1664
  const p = (m) => {
1653
1665
  m.key === "Escape" && r(!1);
1654
1666
  };
1655
1667
  return document.addEventListener("keydown", p), () => document.removeEventListener("keydown", p);
1656
- }, [n]), ce(() => {
1668
+ }, [n]), le(() => {
1657
1669
  if (!n) return;
1658
1670
  const p = (m) => {
1659
1671
  i.current && !i.current.contains(m.target) && r(!1);
@@ -1674,7 +1686,7 @@ function el({
1674
1686
  s ? /* @__PURE__ */ l(qa, { className: "w-4 h-4 shrink-0 text-green-600" }) : /* @__PURE__ */ l(Qa, { className: "w-4 h-4 shrink-0" }),
1675
1687
  /* @__PURE__ */ l("span", { children: s ? "Copied!" : "Copy as Markdown" }),
1676
1688
  /* @__PURE__ */ l(
1677
- Un,
1689
+ pn,
1678
1690
  {
1679
1691
  className: `w-3 h-3 shrink-0 transition-transform duration-200 ${n ? "rotate-180" : ""}`
1680
1692
  }
@@ -2328,49 +2340,49 @@ function Yd(e, t, n, { location: r = re.location, distance: s = re.distance, thr
2328
2340
  if (t.length > 32) throw new Error(Ld(32));
2329
2341
  const d = t.length, f = e.length, p = Math.max(0, Math.min(r, f));
2330
2342
  let m = o, h = p;
2331
- const y = (x, F) => {
2343
+ const y = (x, j) => {
2332
2344
  const Q = x / d;
2333
2345
  if (u) return Q;
2334
- const T = Math.abs(p - F);
2346
+ const T = Math.abs(p - j);
2335
2347
  return s ? Q + T / s : T ? 1 : Q;
2336
2348
  }, k = a > 1 || c, S = k ? Array(f) : [];
2337
2349
  let $;
2338
2350
  for (; ($ = e.indexOf(t, h)) > -1; ) {
2339
2351
  const x = y(0, $);
2340
2352
  if (m = Math.min(x, m), h = $ + d, k) {
2341
- let F = 0;
2342
- for (; F < d; )
2343
- S[$ + F] = 1, F += 1;
2353
+ let j = 0;
2354
+ for (; j < d; )
2355
+ S[$ + j] = 1, j += 1;
2344
2356
  }
2345
2357
  }
2346
2358
  h = -1;
2347
- let E = [], M = 1, j = 0, C = d + f;
2359
+ let E = [], I = 1, F = 0, C = d + f;
2348
2360
  const N = 1 << d - 1;
2349
2361
  for (let x = 0; x < d; x += 1) {
2350
- let F = 0, Q = C;
2351
- for (; F < Q; )
2352
- y(x, p + Q) <= m ? F = Q : C = Q, Q = Math.floor((C - F) / 2 + F);
2362
+ let j = 0, Q = C;
2363
+ for (; j < Q; )
2364
+ y(x, p + Q) <= m ? j = Q : C = Q, Q = Math.floor((C - j) / 2 + j);
2353
2365
  C = Q;
2354
2366
  let T = Math.max(1, p - Q + 1);
2355
- const W = i ? f : Math.min(p + Q, f) + d, le = Array(W + 2);
2356
- le[W + 1] = (1 << x) - 1;
2367
+ const W = i ? f : Math.min(p + Q, f) + d, ce = Array(W + 2);
2368
+ ce[W + 1] = (1 << x) - 1;
2357
2369
  for (let ae = W; ae >= T; ae -= 1) {
2358
2370
  const A = ae - 1, _ = n[e[A]];
2359
- if (le[ae] = (le[ae + 1] << 1 | 1) & _, x && (le[ae] |= (E[ae + 1] | E[ae]) << 1 | 1 | E[ae + 1]), le[ae] & N && (M = y(x, A), M <= m)) {
2360
- if (m = M, h = A, j = x, h <= p) break;
2371
+ if (ce[ae] = (ce[ae + 1] << 1 | 1) & _, x && (ce[ae] |= (E[ae + 1] | E[ae]) << 1 | 1 | E[ae + 1]), ce[ae] & N && (I = y(x, A), I <= m)) {
2372
+ if (m = I, h = A, F = x, h <= p) break;
2361
2373
  T = Math.max(1, 2 * p - h);
2362
2374
  }
2363
2375
  }
2364
2376
  if (y(x + 1, p) > m) break;
2365
- E = le;
2377
+ E = ce;
2366
2378
  }
2367
2379
  if (k && h >= 0) {
2368
- const x = Math.min(f - 1, h + d - 1 + j);
2369
- for (let F = h; F <= x; F += 1) n[e[F]] && (S[F] = 1);
2380
+ const x = Math.min(f - 1, h + d - 1 + F);
2381
+ for (let j = h; j <= x; j += 1) n[e[j]] && (S[j] = 1);
2370
2382
  }
2371
2383
  const v = {
2372
2384
  isMatch: h >= 0,
2373
- score: Math.max(1e-3, M)
2385
+ score: Math.max(1e-3, I)
2374
2386
  };
2375
2387
  if (k) {
2376
2388
  const x = Jd(S, a);
@@ -2409,7 +2421,7 @@ const il = {
2409
2421
  Ŧ: "T",
2410
2422
  ı: "i",
2411
2423
  ß: "ss"
2412
- }, Zd = new RegExp("[" + Object.keys(il).join("") + "]", "g"), In = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "").replace(Zd, (t) => il[t]) : (e) => e;
2424
+ }, Zd = new RegExp("[" + Object.keys(il).join("") + "]", "g"), Rn = typeof String.prototype.normalize == "function" ? (e) => e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "").replace(Zd, (t) => il[t]) : (e) => e;
2413
2425
  var Eo = class {
2414
2426
  constructor(e, { location: t = re.location, threshold: n = re.threshold, distance: r = re.distance, includeMatches: s = re.includeMatches, findAllMatches: o = re.findAllMatches, minMatchCharLength: i = re.minMatchCharLength, isCaseSensitive: a = re.isCaseSensitive, ignoreDiacritics: c = re.ignoreDiacritics, ignoreLocation: u = re.ignoreLocation } = {}) {
2415
2427
  if (this.options = {
@@ -2422,7 +2434,7 @@ var Eo = class {
2422
2434
  isCaseSensitive: a,
2423
2435
  ignoreDiacritics: c,
2424
2436
  ignoreLocation: u
2425
- }, e = a ? e : e.toLowerCase(), e = c ? In(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
2437
+ }, e = a ? e : e.toLowerCase(), e = c ? Rn(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length) return;
2426
2438
  const d = (p, m) => {
2427
2439
  this.chunks.push({
2428
2440
  pattern: p,
@@ -2443,7 +2455,7 @@ var Eo = class {
2443
2455
  }
2444
2456
  searchIn(e) {
2445
2457
  const { isCaseSensitive: t, ignoreDiacritics: n, includeMatches: r } = this.options;
2446
- if (e = t ? e : e.toLowerCase(), e = n ? In(e) : e, this.pattern === e) {
2458
+ if (e = t ? e : e.toLowerCase(), e = n ? Rn(e) : e, this.pattern === e) {
2447
2459
  if (e.length < this.options.minMatchCharLength) return {
2448
2460
  isMatch: !1,
2449
2461
  score: 1
@@ -2690,7 +2702,7 @@ var sf = class {
2690
2702
  location: a,
2691
2703
  threshold: c,
2692
2704
  distance: u
2693
- }, e = t ? e : e.toLowerCase(), e = n ? In(e) : e, this.pattern = e, this.query = rf(this.pattern, this.options);
2705
+ }, e = t ? e : e.toLowerCase(), e = n ? Rn(e) : e, this.pattern = e, this.query = rf(this.pattern, this.options);
2694
2706
  }
2695
2707
  static condition(e, t) {
2696
2708
  return t.useExtendedSearch;
@@ -2702,7 +2714,7 @@ var sf = class {
2702
2714
  score: 1
2703
2715
  };
2704
2716
  const { includeMatches: n, isCaseSensitive: r, ignoreDiacritics: s } = this.options;
2705
- e = r ? e : e.toLowerCase(), e = s ? In(e) : e;
2717
+ e = r ? e : e.toLowerCase(), e = s ? Rn(e) : e;
2706
2718
  let o = 0;
2707
2719
  const i = [];
2708
2720
  let a = 0, c = !1;
@@ -2869,7 +2881,7 @@ function hf(e) {
2869
2881
  function Ws({ isCaseSensitive: e = !1, ignoreDiacritics: t = !1, tokenize: n } = {}) {
2870
2882
  const r = hf(n);
2871
2883
  return { tokenize(s) {
2872
- return e || (s = s.toLowerCase()), t && (s = In(s)), r(s);
2884
+ return e || (s = s.toLowerCase()), t && (s = Rn(s)), r(s);
2873
2885
  } };
2874
2886
  }
2875
2887
  var mf = class {
@@ -3249,7 +3261,7 @@ jt.use = function(...e) {
3249
3261
  var xf = jt;
3250
3262
  function cl(e, t, n = {}) {
3251
3263
  const [r, s] = Y(""), [o, i] = Y(""), a = n.debounceMs ?? 150;
3252
- ce(() => {
3264
+ le(() => {
3253
3265
  const f = setTimeout(() => i(r), a);
3254
3266
  return () => clearTimeout(f);
3255
3267
  }, [r, a]);
@@ -3322,7 +3334,7 @@ function As() {
3322
3334
  }
3323
3335
  function Af(e, t) {
3324
3336
  const n = Be(null);
3325
- ce(() => {
3337
+ le(() => {
3326
3338
  if (!e) return;
3327
3339
  const { targetId: r, query: s, highlight: o } = e;
3328
3340
  let i = !1;
@@ -3364,17 +3376,17 @@ function dl({
3364
3376
  }, [f, p] = Y({}), m = e.some((T) => T.id === i) ? i : o, h = {};
3365
3377
  for (const T of r)
3366
3378
  h[T.id] = T.visible ? f[T.id] ?? null : null;
3367
- const y = (T, W) => p((le) => ({ ...le, [T]: W })), [k, S] = Y(null), [$, E] = Y(null), [M, j] = Y(null), C = (T) => {
3379
+ const y = (T, W) => p((ce) => ({ ...ce, [T]: W })), [k, S] = Y(null), [$, E] = Y(null), [I, F] = Y(null), C = (T) => {
3368
3380
  n(T.tab) ? d(T.tab) : T.tab === "servers" && u("servers");
3369
3381
  const W = {};
3370
- for (const le of r)
3371
- W[le.id] = le.id === T.tab ? T.key : null;
3382
+ for (const ce of r)
3383
+ W[ce.id] = ce.id === T.tab ? T.key : null;
3372
3384
  p(W), S(T.focusSection ?? null), E(
3373
3385
  T.tab === "schemas" && T.schemaFocusTokens ? { tokens: T.schemaFocusTokens, id: T.targetId } : null
3374
- ), T.tab === "schemas" && As(), j({ targetId: T.targetId, query: s, highlight: T.tab !== "schemas" });
3386
+ ), T.tab === "schemas" && As(), F({ targetId: T.targetId, query: s, highlight: T.tab !== "schemas" });
3375
3387
  }, N = (T, W) => {
3376
- d(T), p((le) => {
3377
- const ae = { ...le };
3388
+ d(T), p((ce) => {
3389
+ const ae = { ...ce };
3378
3390
  for (const A of r)
3379
3391
  A.id !== "servers" && (ae[A.id] = A.id === T ? W : null);
3380
3392
  return ae;
@@ -3382,26 +3394,26 @@ function dl({
3382
3394
  }, v = (T) => {
3383
3395
  u("servers");
3384
3396
  const W = {};
3385
- for (const le of r)
3386
- W[le.id] = le.id === "servers" ? T : null;
3397
+ for (const ce of r)
3398
+ W[ce.id] = ce.id === "servers" ? T : null;
3387
3399
  p(W);
3388
3400
  }, x = (T) => {
3389
3401
  n(T) && d(T);
3390
- }, F = (() => {
3402
+ }, j = (() => {
3391
3403
  for (const T of r) {
3392
3404
  const W = h[T.id];
3393
3405
  if (W) return { tab: T.id, key: W };
3394
3406
  }
3395
3407
  return null;
3396
3408
  })();
3397
- return Af(M, [
3409
+ return Af(I, [
3398
3410
  m,
3399
3411
  k,
3400
3412
  $,
3401
3413
  ...r.map((T) => h[T.id])
3402
- ]), ce(() => {
3403
- s.trim() || (j(null), As());
3404
- }, [s]), ce(() => As, []), {
3414
+ ]), le(() => {
3415
+ s.trim() || (F(null), As());
3416
+ }, [s]), le(() => As, []), {
3405
3417
  effectiveTab: m,
3406
3418
  focusTab: d,
3407
3419
  /** What the sidebar nav should show as active: the focused section, falling back to the content tab. */
@@ -3409,7 +3421,7 @@ function dl({
3409
3421
  /** Per-section selections, clamped to visible sections. */
3410
3422
  selected: h,
3411
3423
  setSelectedKey: y,
3412
- selectedNavItem: F,
3424
+ selectedNavItem: j,
3413
3425
  handleSearchSelect: C,
3414
3426
  handleNavItemSelect: N,
3415
3427
  handleNavServerSelect: v,
@@ -3434,14 +3446,14 @@ const ie = (e) => typeof e == "object" && e !== null && !Array.isArray(e), vt =
3434
3446
  record: "object",
3435
3447
  uuid: "string"
3436
3448
  }, No = (e) => typeof e == "object" && e !== null && !Array.isArray(e) ? e : {};
3437
- function Rn(e) {
3449
+ function Mn(e) {
3438
3450
  const t = No(e);
3439
3451
  if (typeof t.name == "string")
3440
3452
  return typeof t.namespace == "string" ? `${t.namespace}.${t.name}` : t.name;
3441
3453
  }
3442
3454
  function Ks(e, t, n) {
3443
3455
  e.doc && (t.description = e.doc), e.default !== void 0 && (t.default = e.default);
3444
- const r = Rn(e);
3456
+ const r = Mn(e);
3445
3457
  r !== void 0 && n[r] && (t["x-parser-schema-id"] = r);
3446
3458
  }
3447
3459
  function Ji(e, t, n) {
@@ -3512,7 +3524,7 @@ function Js(e, t, n) {
3512
3524
  function To(e, t, n) {
3513
3525
  t !== void 0 && (e[t] = n);
3514
3526
  }
3515
- function Mn(e, t) {
3527
+ function Ln(e, t) {
3516
3528
  let n = {};
3517
3529
  if (Array.isArray(e))
3518
3530
  return If(n, e, t);
@@ -3535,14 +3547,14 @@ function Mn(e, t) {
3535
3547
  break;
3536
3548
  }
3537
3549
  case "map": {
3538
- n.additionalProperties = Mn(
3550
+ n.additionalProperties = Ln(
3539
3551
  r.values,
3540
3552
  t
3541
3553
  );
3542
3554
  break;
3543
3555
  }
3544
3556
  case "array": {
3545
- n.items = Mn(
3557
+ n.items = Ln(
3546
3558
  r.items,
3547
3559
  t
3548
3560
  );
@@ -3562,13 +3574,13 @@ function Mn(e, t) {
3562
3574
  const o = Of(r, t, n);
3563
3575
  To(
3564
3576
  t,
3565
- Rn(e),
3577
+ Mn(e),
3566
3578
  n
3567
3579
  ), n.properties = Object.fromEntries(o.entries());
3568
3580
  break;
3569
3581
  }
3570
3582
  default: {
3571
- const o = t[Rn(e)] ?? (typeof s == "string" ? t[s] : void 0);
3583
+ const o = t[Mn(e)] ?? (typeof s == "string" ? t[s] : void 0);
3572
3584
  o && (n = Vs(r) ? { ...o } : o);
3573
3585
  break;
3574
3586
  }
@@ -3583,8 +3595,8 @@ function Of(e, t, n) {
3583
3595
  const i = Vs(s) ? { ...o } : o;
3584
3596
  Ji(s, n, s.default !== void 0), Vs(s) && (Ks(s, i, t), Js(s.type, s, i)), r.set(s.name, i);
3585
3597
  } else {
3586
- const i = Mn(s.type, t);
3587
- Ji(s, n, s.default !== void 0), Ks(s, i, t), Js(s.type, s, i), r.set(s.name, i), To(t, Rn(s.type), i);
3598
+ const i = Ln(s.type, t);
3599
+ Ji(s, n, s.default !== void 0), Ks(s, i, t), Js(s.type, s, i), r.set(s.name, i), To(t, Mn(s.type), i);
3588
3600
  }
3589
3601
  }
3590
3602
  return r;
@@ -3593,13 +3605,13 @@ function If(e, t, n) {
3593
3605
  const r = [];
3594
3606
  let s = null;
3595
3607
  for (const o of t) {
3596
- const i = Mn(o, n);
3597
- (typeof o == "string" ? o : No(o).type) === "null" ? s = i : (r.push(i), To(n, Rn(o), i));
3608
+ const i = Ln(o, n);
3609
+ (typeof o == "string" ? o : No(o).type) === "null" ? s = i : (r.push(i), To(n, Mn(o), i));
3598
3610
  }
3599
3611
  return s && r.push(s), e.oneOf = r, e;
3600
3612
  }
3601
3613
  function Ys(e) {
3602
- return Mn(e, {});
3614
+ return Ln(e, {});
3603
3615
  }
3604
3616
  const Yi = /* @__PURE__ */ new Set([
3605
3617
  "null",
@@ -3680,7 +3692,7 @@ function on(e, t, n, r) {
3680
3692
  let Ir = null, Es = null;
3681
3693
  const Xs = /* @__PURE__ */ new Set();
3682
3694
  function Mf() {
3683
- return Es || (Es = import("./protoToJsonSchema-CuaV2JD7.js").then((e) => {
3695
+ return Es || (Es = import("./protoToJsonSchema-CUW6qxgm.js").then((e) => {
3684
3696
  Ir = e.protoToJsonSchema, Xs.forEach((t) => t());
3685
3697
  })), Es;
3686
3698
  }
@@ -3750,7 +3762,7 @@ const zf = [
3750
3762
  function Hf(e) {
3751
3763
  return typeof e == "string" || Array.isArray(e) ? !0 : ie(e) ? typeof e.type == "string" && Uf.has(e.type) || Array.isArray(e.fields) || Array.isArray(e.symbols) ? !0 : !zf.some((t) => t in e) : !1;
3752
3764
  }
3753
- function Ln(e, t) {
3765
+ function Pn(e, t) {
3754
3766
  let n = e;
3755
3767
  if (t && ie(n) && typeof n.$ref == "string") {
3756
3768
  const i = t(n.$ref);
@@ -3833,22 +3845,22 @@ function Wf(e) {
3833
3845
  const o = vt(n);
3834
3846
  return o ? { schema: o, schemaFormat: t } : { schema: {}, schemaFormat: t, originalSchema: n };
3835
3847
  }
3836
- const Pe = (e, t) => `${"#".repeat(e)} ${t}`, z = (e) => typeof e == "string" ? e.replace(/`/g, "'") : String(e ?? ""), En = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Gf = { objects: /* @__PURE__ */ new Set(), refs: /* @__PURE__ */ new Set() };
3848
+ const Pe = (e, t) => `${"#".repeat(e)} ${t}`, z = (e) => typeof e == "string" ? e.replace(/`/g, "'") : String(e ?? ""), Sn = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Gf = { objects: /* @__PURE__ */ new Set(), refs: /* @__PURE__ */ new Set() };
3837
3849
  function Nr(e, t, n = Gf) {
3838
3850
  if (e === null || typeof e != "object") return e;
3839
- if (n.objects.has(e) || En(e) && typeof e.$ref == "string" && n.refs.has(e.$ref)) {
3840
- const o = En(e) ? e["x-parser-schema-id"] : void 0;
3851
+ if (n.objects.has(e) || Sn(e) && typeof e.$ref == "string" && n.refs.has(e.$ref)) {
3852
+ const o = Sn(e) ? e["x-parser-schema-id"] : void 0;
3841
3853
  return typeof o == "string" ? { $ref: `#/components/schemas/${o} (circular)` } : "[circular reference]";
3842
3854
  }
3843
3855
  const r = {
3844
3856
  objects: new Set(n.objects).add(e),
3845
- refs: En(e) && typeof e.$ref == "string" ? new Set(n.refs).add(e.$ref) : n.refs
3857
+ refs: Sn(e) && typeof e.$ref == "string" ? new Set(n.refs).add(e.$ref) : n.refs
3846
3858
  };
3847
3859
  if (Array.isArray(e))
3848
3860
  return e.map((o) => Nr(o, t, r));
3849
- if (En(e) && typeof e.$ref == "string") {
3861
+ if (Sn(e) && typeof e.$ref == "string") {
3850
3862
  const o = t == null ? void 0 : t(e.$ref);
3851
- return En(o) || Array.isArray(o) ? Nr(o, t, r) : { $ref: e.$ref };
3863
+ return Sn(o) || Array.isArray(o) ? Nr(o, t, r) : { $ref: e.$ref };
3852
3864
  }
3853
3865
  const s = {};
3854
3866
  for (const [o, i] of Object.entries(e))
@@ -3864,9 +3876,9 @@ function Rr(e, t, n) {
3864
3876
  ${JSON.stringify(r, null, 2)}
3865
3877
  \`\`\``;
3866
3878
  }
3867
- function _n(e, t, n) {
3879
+ function Cn(e, t, n) {
3868
3880
  if (!t || typeof t == "boolean") return "";
3869
- const { schema: r, description: s, conversionError: o, pendingConversion: i } = Ln(t, n);
3881
+ const { schema: r, description: s, conversionError: o, pendingConversion: i } = Pn(t, n);
3870
3882
  if (i) return `${Pe(4, `\`${z(e)}\``)}
3871
3883
 
3872
3884
  _(schema conversion still in progress)_`;
@@ -3948,7 +3960,7 @@ function gl(e) {
3948
3960
  }
3949
3961
  return t;
3950
3962
  }
3951
- function bl(e, t = jn(e)) {
3963
+ function bl(e, t = Fn(e)) {
3952
3964
  var o, i, a;
3953
3965
  const n = gl(e);
3954
3966
  if (e.operations && Object.keys(e.operations).length) {
@@ -3975,7 +3987,7 @@ function bl(e, t = jn(e)) {
3975
3987
  const f = [];
3976
3988
  d.summary && f.push(z(d.summary)), d.description && f.push(z(d.description)), d.contentType && f.push(`**Content-Type:** \`${z(d.contentType)}\``), c.push(f.join(`
3977
3989
 
3978
- `)), d.payload && c.push(_n("payload", d.payload, t)), d.headers && c.push(_n("headers", d.headers, t));
3990
+ `)), d.payload && c.push(Cn("payload", d.payload, t)), d.headers && c.push(Cn("headers", d.headers, t));
3979
3991
  }
3980
3992
  n.push(c.join(`
3981
3993
 
@@ -3985,7 +3997,7 @@ function bl(e, t = jn(e)) {
3985
3997
  if (s && Object.keys(s).length) {
3986
3998
  const c = [Pe(2, "Schemas")];
3987
3999
  for (const [u, d] of Object.entries(s))
3988
- c.push(_n(u, d, t));
4000
+ c.push(Cn(u, d, t));
3989
4001
  n.push(c.join(`
3990
4002
 
3991
4003
  `));
@@ -4007,13 +4019,13 @@ function Vf(e, t, n) {
4007
4019
 
4008
4020
  `)), s.push(u.join(`
4009
4021
 
4010
- `)), c.payload && s.push(_n("payload", c.payload, n)), c.headers && s.push(_n("headers", c.headers, n));
4022
+ `)), c.payload && s.push(Cn("payload", c.payload, n)), c.headers && s.push(Cn("headers", c.headers, n));
4011
4023
  }
4012
4024
  return s.filter(Boolean).join(`
4013
4025
 
4014
4026
  `);
4015
4027
  }
4016
- function Jf(e, t, n = jn(e)) {
4028
+ function Jf(e, t, n = Fn(e)) {
4017
4029
  var o;
4018
4030
  const r = (o = e.operations) == null ? void 0 : o[t];
4019
4031
  if (!r) return "";
@@ -4100,7 +4112,7 @@ function yl(e, t, n, r, s, o) {
4100
4112
 
4101
4113
  `);
4102
4114
  }
4103
- function xl(e, t = jn(e)) {
4115
+ function xl(e, t = Fn(e)) {
4104
4116
  var i, a, c, u, d;
4105
4117
  const n = [], { info: r } = e;
4106
4118
  if (n.push(Pe(1, z(r.title))), n.push(`**Version:** ${z(r.version)}`), r.description && n.push(z(r.description)), (i = e.servers) != null && i.length) {
@@ -4110,7 +4122,7 @@ function xl(e, t = jn(e)) {
4110
4122
  n.push(f.join(`
4111
4123
  `));
4112
4124
  }
4113
- const s = e.paths ? On(e.paths) : [];
4125
+ const s = e.paths ? In(e.paths) : [];
4114
4126
  if (s.length) {
4115
4127
  const f = [Pe(2, "Endpoints")];
4116
4128
  for (const { method: p, path: m } of s) {
@@ -4136,7 +4148,7 @@ function xl(e, t = jn(e)) {
4136
4148
 
4137
4149
  `);
4138
4150
  }
4139
- function Xf(e, t, n, r = jn(e)) {
4151
+ function Xf(e, t, n, r = Fn(e)) {
4140
4152
  var a, c, u, d;
4141
4153
  const s = (c = (a = e.paths) == null ? void 0 : a[n]) == null ? void 0 : c[t];
4142
4154
  if (!s) return "";
@@ -4166,7 +4178,7 @@ function wl(e) {
4166
4178
  const kl = {
4167
4179
  "x-x": () => import("./XExtension-GyRtdHLL.js"),
4168
4180
  "x-linkedin": () => import("./LinkedInExtension-BL-4T9tt.js")
4169
- }, Qf = () => import("./LogoExtension-DZ8VtlAH.js");
4181
+ }, Qf = () => import("./LogoExtension-BbOZyyI7.js");
4170
4182
  var P0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4171
4183
  function vl(e) {
4172
4184
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -4195,105 +4207,105 @@ var Ss, Qi;
4195
4207
  function qi() {
4196
4208
  if (Qi) return Ss;
4197
4209
  Qi = 1;
4198
- function e(O, R) {
4199
- (R == null || R > O.length) && (R = O.length);
4200
- for (var J = 0, se = Array(R); J < R; J++) se[J] = O[J];
4210
+ function e(O, M) {
4211
+ (M == null || M > O.length) && (M = O.length);
4212
+ for (var J = 0, se = Array(M); J < M; J++) se[J] = O[J];
4201
4213
  return se;
4202
4214
  }
4203
4215
  function t(O) {
4204
4216
  if (Array.isArray(O)) return O;
4205
4217
  }
4206
- function n(O, R) {
4218
+ function n(O, M) {
4207
4219
  var J = O == null ? null : typeof Symbol < "u" && O[Symbol.iterator] || O["@@iterator"];
4208
4220
  if (J != null) {
4209
- var se, he, Se, Ue, mn = [], qe = !0, gn = !1;
4221
+ var se, he, Se, Ue, gn = [], qe = !0, bn = !1;
4210
4222
  try {
4211
- if (Se = (J = J.call(O)).next, R !== 0) for (; !(qe = (se = Se.call(J)).done) && (mn.push(se.value), mn.length !== R); qe = !0) ;
4223
+ if (Se = (J = J.call(O)).next, M !== 0) for (; !(qe = (se = Se.call(J)).done) && (gn.push(se.value), gn.length !== M); qe = !0) ;
4212
4224
  } catch (qr) {
4213
- gn = !0, he = qr;
4225
+ bn = !0, he = qr;
4214
4226
  } finally {
4215
4227
  try {
4216
4228
  if (!qe && J.return != null && (Ue = J.return(), Object(Ue) !== Ue)) return;
4217
4229
  } finally {
4218
- if (gn) throw he;
4230
+ if (bn) throw he;
4219
4231
  }
4220
4232
  }
4221
- return mn;
4233
+ return gn;
4222
4234
  }
4223
4235
  }
4224
4236
  function r() {
4225
4237
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4226
4238
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
4227
4239
  }
4228
- function s(O, R) {
4229
- return t(O) || n(O, R) || o(O, R) || r();
4240
+ function s(O, M) {
4241
+ return t(O) || n(O, M) || o(O, M) || r();
4230
4242
  }
4231
- function o(O, R) {
4243
+ function o(O, M) {
4232
4244
  if (O) {
4233
- if (typeof O == "string") return e(O, R);
4245
+ if (typeof O == "string") return e(O, M);
4234
4246
  var J = {}.toString.call(O).slice(8, -1);
4235
- return J === "Object" && O.constructor && (J = O.constructor.name), J === "Map" || J === "Set" ? Array.from(O) : J === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J) ? e(O, R) : void 0;
4247
+ return J === "Object" && O.constructor && (J = O.constructor.name), J === "Map" || J === "Set" ? Array.from(O) : J === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J) ? e(O, M) : void 0;
4236
4248
  }
4237
4249
  }
4238
4250
  const i = Object.entries, a = Object.setPrototypeOf, c = Object.isFrozen, u = Object.getPrototypeOf, d = Object.getOwnPropertyDescriptor;
4239
4251
  let f = Object.freeze, p = Object.seal, m = Object.create, h = typeof Reflect < "u" && Reflect, y = h.apply, k = h.construct;
4240
- f || (f = function(R) {
4241
- return R;
4242
- }), p || (p = function(R) {
4243
- return R;
4244
- }), y || (y = function(R, J) {
4252
+ f || (f = function(M) {
4253
+ return M;
4254
+ }), p || (p = function(M) {
4255
+ return M;
4256
+ }), y || (y = function(M, J) {
4245
4257
  for (var se = arguments.length, he = new Array(se > 2 ? se - 2 : 0), Se = 2; Se < se; Se++)
4246
4258
  he[Se - 2] = arguments[Se];
4247
- return R.apply(J, he);
4248
- }), k || (k = function(R) {
4259
+ return M.apply(J, he);
4260
+ }), k || (k = function(M) {
4249
4261
  for (var J = arguments.length, se = new Array(J > 1 ? J - 1 : 0), he = 1; he < J; he++)
4250
4262
  se[he - 1] = arguments[he];
4251
- return new R(...se);
4263
+ return new M(...se);
4252
4264
  });
4253
- const S = te(Array.prototype.forEach), $ = te(Array.prototype.lastIndexOf), E = te(Array.prototype.pop), M = te(Array.prototype.push), j = te(Array.prototype.splice), C = Array.isArray, N = te(String.prototype.toLowerCase), v = te(String.prototype.toString), x = te(String.prototype.match), F = te(String.prototype.replace), Q = te(String.prototype.indexOf), T = te(String.prototype.trim), W = te(Number.prototype.toString), le = te(Boolean.prototype.toString), ae = typeof BigInt > "u" ? null : te(BigInt.prototype.toString), A = typeof Symbol > "u" ? null : te(Symbol.prototype.toString), _ = te(Object.prototype.hasOwnProperty), H = te(Object.prototype.toString), V = te(RegExp.prototype.test), ue = Ie(TypeError);
4265
+ const S = te(Array.prototype.forEach), $ = te(Array.prototype.lastIndexOf), E = te(Array.prototype.pop), I = te(Array.prototype.push), F = te(Array.prototype.splice), C = Array.isArray, N = te(String.prototype.toLowerCase), v = te(String.prototype.toString), x = te(String.prototype.match), j = te(String.prototype.replace), Q = te(String.prototype.indexOf), T = te(String.prototype.trim), W = te(Number.prototype.toString), ce = te(Boolean.prototype.toString), ae = typeof BigInt > "u" ? null : te(BigInt.prototype.toString), A = typeof Symbol > "u" ? null : te(Symbol.prototype.toString), _ = te(Object.prototype.hasOwnProperty), H = te(Object.prototype.toString), V = te(RegExp.prototype.test), ue = Ie(TypeError);
4254
4266
  function te(O) {
4255
- return function(R) {
4256
- R instanceof RegExp && (R.lastIndex = 0);
4267
+ return function(M) {
4268
+ M instanceof RegExp && (M.lastIndex = 0);
4257
4269
  for (var J = arguments.length, se = new Array(J > 1 ? J - 1 : 0), he = 1; he < J; he++)
4258
4270
  se[he - 1] = arguments[he];
4259
- return y(O, R, se);
4271
+ return y(O, M, se);
4260
4272
  };
4261
4273
  }
4262
4274
  function Ie(O) {
4263
4275
  return function() {
4264
- for (var R = arguments.length, J = new Array(R), se = 0; se < R; se++)
4276
+ for (var M = arguments.length, J = new Array(M), se = 0; se < M; se++)
4265
4277
  J[se] = arguments[se];
4266
4278
  return k(O, J);
4267
4279
  };
4268
4280
  }
4269
- function q(O, R) {
4281
+ function q(O, M) {
4270
4282
  let J = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : N;
4271
- if (a && a(O, null), !C(R))
4283
+ if (a && a(O, null), !C(M))
4272
4284
  return O;
4273
- let se = R.length;
4285
+ let se = M.length;
4274
4286
  for (; se--; ) {
4275
- let he = R[se];
4287
+ let he = M[se];
4276
4288
  if (typeof he == "string") {
4277
4289
  const Se = J(he);
4278
- Se !== he && (c(R) || (R[se] = Se), he = Se);
4290
+ Se !== he && (c(M) || (M[se] = Se), he = Se);
4279
4291
  }
4280
4292
  O[he] = !0;
4281
4293
  }
4282
4294
  return O;
4283
4295
  }
4284
4296
  function Ne(O) {
4285
- for (let R = 0; R < O.length; R++)
4286
- _(O, R) || (O[R] = null);
4297
+ for (let M = 0; M < O.length; M++)
4298
+ _(O, M) || (O[M] = null);
4287
4299
  return O;
4288
4300
  }
4289
4301
  function D(O) {
4290
- const R = m(null);
4302
+ const M = m(null);
4291
4303
  for (const se of i(O)) {
4292
4304
  var J = s(se, 2);
4293
4305
  const he = J[0], Se = J[1];
4294
- _(O, he) && (C(Se) ? R[he] = Ne(Se) : Se && typeof Se == "object" && Se.constructor === Object ? R[he] = D(Se) : R[he] = Se);
4306
+ _(O, he) && (C(Se) ? M[he] = Ne(Se) : Se && typeof Se == "object" && Se.constructor === Object ? M[he] = D(Se) : M[he] = Se);
4295
4307
  }
4296
- return R;
4308
+ return M;
4297
4309
  }
4298
4310
  function X(O) {
4299
4311
  switch (typeof O) {
@@ -4302,7 +4314,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4302
4314
  case "number":
4303
4315
  return W(O);
4304
4316
  case "boolean":
4305
- return le(O);
4317
+ return ce(O);
4306
4318
  case "bigint":
4307
4319
  return ae ? ae(O) : "0";
4308
4320
  case "symbol":
@@ -4313,9 +4325,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4313
4325
  case "object": {
4314
4326
  if (O === null)
4315
4327
  return H(O);
4316
- const R = O, J = I(R, "toString");
4328
+ const M = O, J = R(M, "toString");
4317
4329
  if (typeof J == "function") {
4318
- const se = J(R);
4330
+ const se = J(M);
4319
4331
  return typeof se == "string" ? se : H(se);
4320
4332
  }
4321
4333
  return H(O);
@@ -4324,9 +4336,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4324
4336
  return H(O);
4325
4337
  }
4326
4338
  }
4327
- function I(O, R) {
4339
+ function R(O, M) {
4328
4340
  for (; O !== null; ) {
4329
- const se = d(O, R);
4341
+ const se = d(O, M);
4330
4342
  if (se) {
4331
4343
  if (se.get)
4332
4344
  return te(se.get);
@@ -4371,15 +4383,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4371
4383
  // Deprecated
4372
4384
  }, Yc = function() {
4373
4385
  return typeof window > "u" ? null : window;
4374
- }, Xc = function(R, J) {
4375
- if (typeof R != "object" || typeof R.createPolicy != "function")
4386
+ }, Xc = function(M, J) {
4387
+ if (typeof M != "object" || typeof M.createPolicy != "function")
4376
4388
  return null;
4377
4389
  let se = null;
4378
4390
  const he = "data-tt-policy-suffix";
4379
4391
  J && J.hasAttribute(he) && (se = J.getAttribute(he));
4380
4392
  const Se = "dompurify" + (se ? "#" + se : "");
4381
4393
  try {
4382
- return R.createPolicy(Se, {
4394
+ return M.createPolicy(Se, {
4383
4395
  createHTML(Ue) {
4384
4396
  return Ue;
4385
4397
  },
@@ -4402,47 +4414,47 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4402
4414
  uponSanitizeElement: [],
4403
4415
  uponSanitizeShadowNode: []
4404
4416
  };
4405
- }, _t = function(R, J, se, he) {
4406
- return _(R, J) && C(R[J]) ? q(he.base ? D(he.base) : {}, R[J], he.transform) : se;
4417
+ }, _t = function(M, J, se, he) {
4418
+ return _(M, J) && C(M[J]) ? q(he.base ? D(he.base) : {}, M[J], he.transform) : se;
4407
4419
  };
4408
4420
  function qo() {
4409
4421
  let O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Yc();
4410
- const R = (P) => qo(P);
4411
- if (R.version = "3.4.11", R.removed = [], !O || !O.document || O.document.nodeType !== mt.document || !O.Element)
4412
- return R.isSupported = !1, R;
4422
+ const M = (P) => qo(P);
4423
+ if (M.version = "3.4.11", M.removed = [], !O || !O.document || O.document.nodeType !== mt.document || !O.Element)
4424
+ return M.isSupported = !1, M;
4413
4425
  let J = O.document;
4414
4426
  const se = J, he = se.currentScript;
4415
4427
  O.DocumentFragment;
4416
- const Se = O.HTMLTemplateElement, Ue = O.Node, mn = O.Element, qe = O.NodeFilter, gn = O.NamedNodeMap;
4417
- gn === void 0 && (O.NamedNodeMap || O.MozNamedAttrMap), O.HTMLFormElement;
4418
- const qr = O.DOMParser, rr = O.trustedTypes, zt = mn.prototype, Qc = I(zt, "cloneNode"), ei = I(zt, "remove"), qc = I(zt, "nextSibling"), bn = I(zt, "childNodes"), yn = I(zt, "parentNode"), ti = I(zt, "shadowRoot"), es = I(zt, "attributes"), et = Ue && Ue.prototype ? I(Ue.prototype, "nodeType") : null, Ct = Ue && Ue.prototype ? I(Ue.prototype, "nodeName") : null;
4428
+ const Se = O.HTMLTemplateElement, Ue = O.Node, gn = O.Element, qe = O.NodeFilter, bn = O.NamedNodeMap;
4429
+ bn === void 0 && (O.NamedNodeMap || O.MozNamedAttrMap), O.HTMLFormElement;
4430
+ const qr = O.DOMParser, rr = O.trustedTypes, zt = gn.prototype, Qc = R(zt, "cloneNode"), ei = R(zt, "remove"), qc = R(zt, "nextSibling"), yn = R(zt, "childNodes"), xn = R(zt, "parentNode"), ti = R(zt, "shadowRoot"), es = R(zt, "attributes"), et = Ue && Ue.prototype ? R(Ue.prototype, "nodeType") : null, Ct = Ue && Ue.prototype ? R(Ue.prototype, "nodeName") : null;
4419
4431
  if (typeof Se == "function") {
4420
4432
  const P = J.createElement("template");
4421
4433
  P.content && P.content.ownerDocument && (J = P.content.ownerDocument);
4422
4434
  }
4423
- let Je, Ut = "", ts, ni = !1, xn = 0;
4435
+ let Je, Ut = "", ts, ni = !1, wn = 0;
4424
4436
  const ri = function() {
4425
- if (xn > 0)
4437
+ if (wn > 0)
4426
4438
  throw ue('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
4427
4439
  }, Zt = function(g) {
4428
- ri(), xn++;
4440
+ ri(), wn++;
4429
4441
  try {
4430
4442
  return Je.createHTML(g);
4431
4443
  } finally {
4432
- xn--;
4444
+ wn--;
4433
4445
  }
4434
4446
  }, eu = function(g) {
4435
- ri(), xn++;
4447
+ ri(), wn++;
4436
4448
  try {
4437
4449
  return Je.createScriptURL(g);
4438
4450
  } finally {
4439
- xn--;
4451
+ wn--;
4440
4452
  }
4441
4453
  }, tu = function() {
4442
4454
  return ni || (ts = Xc(rr, he), ni = !0), ts;
4443
4455
  }, sr = J, ns = sr.implementation, si = sr.createNodeIterator, nu = sr.createDocumentFragment, ru = sr.getElementsByTagName, su = se.importNode;
4444
4456
  let Le = Qo();
4445
- R.isSupported = typeof i == "function" && typeof yn == "function" && ns && ns.createHTMLDocument !== void 0;
4457
+ M.isSupported = typeof i == "function" && typeof xn == "function" && ns && ns.createHTMLDocument !== void 0;
4446
4458
  const ou = Re, iu = xe, au = wt, lu = ot, cu = Ft, uu = B, oi = U, du = pe;
4447
4459
  let ii = it, _e = null;
4448
4460
  const ai = q({}, [...de, ...G, ...be, ...me, ...ke]);
@@ -4467,7 +4479,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4467
4479
  enumerable: !0,
4468
4480
  value: !1
4469
4481
  }
4470
- })), wn = null, ci = null;
4482
+ })), kn = null, ci = null;
4471
4483
  const $t = Object.seal(m(null, {
4472
4484
  tagCheck: {
4473
4485
  writable: !0,
@@ -4482,7 +4494,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4482
4494
  value: null
4483
4495
  }
4484
4496
  }));
4485
- let ui = !0, rs = !0, di = !1, fi = !0, Ot = !1, kn = !0, Ht = !1, ss = !1, os = null, is = null, as = !1, Qt = !1, or = !1, ir = !1, pi = !0, hi = !1;
4497
+ let ui = !0, rs = !0, di = !1, fi = !0, Ot = !1, vn = !0, Ht = !1, ss = !1, os = null, is = null, as = !1, Qt = !1, or = !1, ir = !1, pi = !0, hi = !1;
4486
4498
  const mi = "user-content-";
4487
4499
  let ls = !0, cs = !1, qt = {}, gt = null;
4488
4500
  const us = q({}, [
@@ -4532,7 +4544,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4532
4544
  const wi = f(["annotation-xml"]);
4533
4545
  let ms = q({}, wi);
4534
4546
  const pu = q({}, ["title", "style", "font", "a", "script"]);
4535
- let vn = null;
4547
+ let An = null;
4536
4548
  const hu = ["application/xhtml+xml", "text/html"], mu = "text/html";
4537
4549
  let Oe = null, tn = null;
4538
4550
  const gu = J.createElement("form"), ki = function(g) {
@@ -4541,8 +4553,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4541
4553
  let g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4542
4554
  if (tn && tn === g)
4543
4555
  return;
4544
- (!g || typeof g != "object") && (g = {}), g = D(g), vn = // eslint-disable-next-line unicorn/prefer-includes
4545
- hu.indexOf(g.PARSER_MEDIA_TYPE) === -1 ? mu : g.PARSER_MEDIA_TYPE, Oe = vn === "application/xhtml+xml" ? v : N, _e = _t(g, "ALLOWED_TAGS", ai, {
4556
+ (!g || typeof g != "object") && (g = {}), g = D(g), An = // eslint-disable-next-line unicorn/prefer-includes
4557
+ hu.indexOf(g.PARSER_MEDIA_TYPE) === -1 ? mu : g.PARSER_MEDIA_TYPE, Oe = An === "application/xhtml+xml" ? v : N, _e = _t(g, "ALLOWED_TAGS", ai, {
4546
4558
  transform: Oe
4547
4559
  }), Ce = _t(g, "ALLOWED_ATTR", li, {
4548
4560
  transform: Oe
@@ -4556,13 +4568,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4556
4568
  base: bi
4557
4569
  }), gt = _t(g, "FORBID_CONTENTS", us, {
4558
4570
  transform: Oe
4559
- }), wn = _t(g, "FORBID_TAGS", D({}), {
4571
+ }), kn = _t(g, "FORBID_TAGS", D({}), {
4560
4572
  transform: Oe
4561
4573
  }), ci = _t(g, "FORBID_ATTR", D({}), {
4562
4574
  transform: Oe
4563
- }), qt = _(g, "USE_PROFILES") ? g.USE_PROFILES && typeof g.USE_PROFILES == "object" ? D(g.USE_PROFILES) : g.USE_PROFILES : !1, ui = g.ALLOW_ARIA_ATTR !== !1, rs = g.ALLOW_DATA_ATTR !== !1, di = g.ALLOW_UNKNOWN_PROTOCOLS || !1, fi = g.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ot = g.SAFE_FOR_TEMPLATES || !1, kn = g.SAFE_FOR_XML !== !1, Ht = g.WHOLE_DOCUMENT || !1, Qt = g.RETURN_DOM || !1, or = g.RETURN_DOM_FRAGMENT || !1, ir = g.RETURN_TRUSTED_TYPE || !1, as = g.FORCE_BODY || !1, pi = g.SANITIZE_DOM !== !1, hi = g.SANITIZE_NAMED_PROPS || !1, ls = g.KEEP_CONTENT !== !1, cs = g.IN_PLACE || !1, ii = ee(g.ALLOWED_URI_REGEXP) ? g.ALLOWED_URI_REGEXP : it, en = typeof g.NAMESPACE == "string" ? g.NAMESPACE : bt, hs = _(g, "MATHML_TEXT_INTEGRATION_POINTS") && g.MATHML_TEXT_INTEGRATION_POINTS && typeof g.MATHML_TEXT_INTEGRATION_POINTS == "object" ? D(g.MATHML_TEXT_INTEGRATION_POINTS) : q({}, xi), ms = _(g, "HTML_INTEGRATION_POINTS") && g.HTML_INTEGRATION_POINTS && typeof g.HTML_INTEGRATION_POINTS == "object" ? D(g.HTML_INTEGRATION_POINTS) : q({}, wi);
4575
+ }), qt = _(g, "USE_PROFILES") ? g.USE_PROFILES && typeof g.USE_PROFILES == "object" ? D(g.USE_PROFILES) : g.USE_PROFILES : !1, ui = g.ALLOW_ARIA_ATTR !== !1, rs = g.ALLOW_DATA_ATTR !== !1, di = g.ALLOW_UNKNOWN_PROTOCOLS || !1, fi = g.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ot = g.SAFE_FOR_TEMPLATES || !1, vn = g.SAFE_FOR_XML !== !1, Ht = g.WHOLE_DOCUMENT || !1, Qt = g.RETURN_DOM || !1, or = g.RETURN_DOM_FRAGMENT || !1, ir = g.RETURN_TRUSTED_TYPE || !1, as = g.FORCE_BODY || !1, pi = g.SANITIZE_DOM !== !1, hi = g.SANITIZE_NAMED_PROPS || !1, ls = g.KEEP_CONTENT !== !1, cs = g.IN_PLACE || !1, ii = ee(g.ALLOWED_URI_REGEXP) ? g.ALLOWED_URI_REGEXP : it, en = typeof g.NAMESPACE == "string" ? g.NAMESPACE : bt, hs = _(g, "MATHML_TEXT_INTEGRATION_POINTS") && g.MATHML_TEXT_INTEGRATION_POINTS && typeof g.MATHML_TEXT_INTEGRATION_POINTS == "object" ? D(g.MATHML_TEXT_INTEGRATION_POINTS) : q({}, xi), ms = _(g, "HTML_INTEGRATION_POINTS") && g.HTML_INTEGRATION_POINTS && typeof g.HTML_INTEGRATION_POINTS == "object" ? D(g.HTML_INTEGRATION_POINTS) : q({}, wi);
4564
4576
  const w = _(g, "CUSTOM_ELEMENT_HANDLING") && g.CUSTOM_ELEMENT_HANDLING && typeof g.CUSTOM_ELEMENT_HANDLING == "object" ? D(g.CUSTOM_ELEMENT_HANDLING) : m(null);
4565
- if ($e = m(null), _(w, "tagNameCheck") && ki(w.tagNameCheck) && ($e.tagNameCheck = w.tagNameCheck), _(w, "attributeNameCheck") && ki(w.attributeNameCheck) && ($e.attributeNameCheck = w.attributeNameCheck), _(w, "allowCustomizedBuiltInElements") && typeof w.allowCustomizedBuiltInElements == "boolean" && ($e.allowCustomizedBuiltInElements = w.allowCustomizedBuiltInElements), p($e), Ot && (rs = !1), or && (Qt = !0), qt && (_e = q({}, ke), Ce = m(null), qt.html === !0 && (q(_e, de), q(Ce, Ve)), qt.svg === !0 && (q(_e, G), q(Ce, ze), q(Ce, Te)), qt.svgFilters === !0 && (q(_e, be), q(Ce, ze), q(Ce, Te)), qt.mathMl === !0 && (q(_e, me), q(Ce, Z), q(Ce, Te))), $t.tagCheck = null, $t.attributeCheck = null, _(g, "ADD_TAGS") && (typeof g.ADD_TAGS == "function" ? $t.tagCheck = g.ADD_TAGS : C(g.ADD_TAGS) && (_e === ai && (_e = D(_e)), q(_e, g.ADD_TAGS, Oe))), _(g, "ADD_ATTR") && (typeof g.ADD_ATTR == "function" ? $t.attributeCheck = g.ADD_ATTR : C(g.ADD_ATTR) && (Ce === li && (Ce = D(Ce)), q(Ce, g.ADD_ATTR, Oe))), _(g, "ADD_URI_SAFE_ATTR") && C(g.ADD_URI_SAFE_ATTR) && q(ds, g.ADD_URI_SAFE_ATTR, Oe), _(g, "FORBID_CONTENTS") && C(g.FORBID_CONTENTS) && (gt === us && (gt = D(gt)), q(gt, g.FORBID_CONTENTS, Oe)), _(g, "ADD_FORBID_CONTENTS") && C(g.ADD_FORBID_CONTENTS) && (gt === us && (gt = D(gt)), q(gt, g.ADD_FORBID_CONTENTS, Oe)), ls && (_e["#text"] = !0), Ht && q(_e, ["html", "head", "body"]), _e.table && (q(_e, ["tbody"]), delete wn.tbody), g.TRUSTED_TYPES_POLICY) {
4577
+ if ($e = m(null), _(w, "tagNameCheck") && ki(w.tagNameCheck) && ($e.tagNameCheck = w.tagNameCheck), _(w, "attributeNameCheck") && ki(w.attributeNameCheck) && ($e.attributeNameCheck = w.attributeNameCheck), _(w, "allowCustomizedBuiltInElements") && typeof w.allowCustomizedBuiltInElements == "boolean" && ($e.allowCustomizedBuiltInElements = w.allowCustomizedBuiltInElements), p($e), Ot && (rs = !1), or && (Qt = !0), qt && (_e = q({}, ke), Ce = m(null), qt.html === !0 && (q(_e, de), q(Ce, Ve)), qt.svg === !0 && (q(_e, G), q(Ce, ze), q(Ce, Te)), qt.svgFilters === !0 && (q(_e, be), q(Ce, ze), q(Ce, Te)), qt.mathMl === !0 && (q(_e, me), q(Ce, Z), q(Ce, Te))), $t.tagCheck = null, $t.attributeCheck = null, _(g, "ADD_TAGS") && (typeof g.ADD_TAGS == "function" ? $t.tagCheck = g.ADD_TAGS : C(g.ADD_TAGS) && (_e === ai && (_e = D(_e)), q(_e, g.ADD_TAGS, Oe))), _(g, "ADD_ATTR") && (typeof g.ADD_ATTR == "function" ? $t.attributeCheck = g.ADD_ATTR : C(g.ADD_ATTR) && (Ce === li && (Ce = D(Ce)), q(Ce, g.ADD_ATTR, Oe))), _(g, "ADD_URI_SAFE_ATTR") && C(g.ADD_URI_SAFE_ATTR) && q(ds, g.ADD_URI_SAFE_ATTR, Oe), _(g, "FORBID_CONTENTS") && C(g.FORBID_CONTENTS) && (gt === us && (gt = D(gt)), q(gt, g.FORBID_CONTENTS, Oe)), _(g, "ADD_FORBID_CONTENTS") && C(g.ADD_FORBID_CONTENTS) && (gt === us && (gt = D(gt)), q(gt, g.ADD_FORBID_CONTENTS, Oe)), ls && (_e["#text"] = !0), Ht && q(_e, ["html", "head", "body"]), _e.table && (q(_e, ["tbody"]), delete kn.tbody), g.TRUSTED_TYPES_POLICY) {
4566
4578
  if (typeof g.TRUSTED_TYPES_POLICY.createHTML != "function")
4567
4579
  throw ue('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
4568
4580
  if (typeof g.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -4583,29 +4595,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4583
4595
  }, xu = function(g, w, L) {
4584
4596
  return w.namespaceURI === lr && !ms[L] || w.namespaceURI === ar && !hs[L] ? !1 : !Ai[g] && (pu[g] || !vi[g]);
4585
4597
  }, wu = function(g) {
4586
- let w = yn(g);
4598
+ let w = xn(g);
4587
4599
  (!w || !w.tagName) && (w = {
4588
4600
  namespaceURI: en,
4589
4601
  tagName: "template"
4590
4602
  });
4591
4603
  const L = N(g.tagName), K = N(w.tagName);
4592
- return ps[g.namespaceURI] ? g.namespaceURI === lr ? bu(L, w, K) : g.namespaceURI === ar ? yu(L, w, K) : g.namespaceURI === bt ? xu(L, w, K) : !!(vn === "application/xhtml+xml" && ps[g.namespaceURI]) : !1;
4604
+ return ps[g.namespaceURI] ? g.namespaceURI === lr ? bu(L, w, K) : g.namespaceURI === ar ? yu(L, w, K) : g.namespaceURI === bt ? xu(L, w, K) : !!(An === "application/xhtml+xml" && ps[g.namespaceURI]) : !1;
4593
4605
  }, It = function(g) {
4594
- M(R.removed, {
4606
+ I(M.removed, {
4595
4607
  element: g
4596
4608
  });
4597
4609
  try {
4598
- yn(g).removeChild(g);
4610
+ xn(g).removeChild(g);
4599
4611
  } catch {
4600
- if (ei(g), !yn(g))
4612
+ if (ei(g), !xn(g))
4601
4613
  throw ue("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
4602
4614
  }
4603
4615
  }, Ei = function(g) {
4604
- const w = bn(g);
4616
+ const w = yn(g);
4605
4617
  if (w) {
4606
4618
  const K = [];
4607
4619
  S(w, (fe) => {
4608
- M(K, fe);
4620
+ I(K, fe);
4609
4621
  }), S(K, (fe) => {
4610
4622
  try {
4611
4623
  ei(fe);
@@ -4625,12 +4637,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4625
4637
  }
4626
4638
  }, Wt = function(g, w) {
4627
4639
  try {
4628
- M(R.removed, {
4640
+ I(M.removed, {
4629
4641
  attribute: w.getAttributeNode(g),
4630
4642
  from: w
4631
4643
  });
4632
4644
  } catch {
4633
- M(R.removed, {
4645
+ I(M.removed, {
4634
4646
  attribute: null,
4635
4647
  from: w
4636
4648
  });
@@ -4662,7 +4674,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4662
4674
  for (; w.length > 0; ) {
4663
4675
  const L = w.pop();
4664
4676
  (et ? et(L) : L.nodeType) === mt.element && ku(L);
4665
- const fe = bn(L);
4677
+ const fe = yn(L);
4666
4678
  if (fe)
4667
4679
  for (let ye = fe.length - 1; ye >= 0; --ye)
4668
4680
  w.push(fe[ye]);
@@ -4675,11 +4687,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4675
4687
  const ye = x(g, /^[\r\n\t ]+/);
4676
4688
  L = ye && ye[0];
4677
4689
  }
4678
- vn === "application/xhtml+xml" && en === bt && (g = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + g + "</body></html>");
4690
+ An === "application/xhtml+xml" && en === bt && (g = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + g + "</body></html>");
4679
4691
  const K = Je ? Zt(g) : g;
4680
4692
  if (en === bt)
4681
4693
  try {
4682
- w = new qr().parseFromString(K, vn);
4694
+ w = new qr().parseFromString(K, An);
4683
4695
  } catch {
4684
4696
  }
4685
4697
  if (!w || !w.documentElement) {
@@ -4700,7 +4712,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4700
4712
  null
4701
4713
  );
4702
4714
  }, cr = function(g) {
4703
- return g = F(g, ou, " "), g = F(g, iu, " "), g = F(g, au, " "), g;
4715
+ return g = j(g, ou, " "), g = j(g, iu, " "), g = j(g, au, " "), g;
4704
4716
  }, bs = function(g) {
4705
4717
  var w;
4706
4718
  g.normalize();
@@ -4743,7 +4755,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4743
4755
  // select, etc.) regardless of whether the named child happens to
4744
4756
  // carry a numeric .length, which a typeof-based probe would miss
4745
4757
  // (e.g. HTMLSelectElement.length is a defined unsigned-long).
4746
- g.childNodes !== bn(g);
4758
+ g.childNodes !== yn(g);
4747
4759
  }, nn = function(g) {
4748
4760
  if (!et || typeof g != "object" || g === null)
4749
4761
  return !1;
@@ -4752,7 +4764,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4752
4764
  } catch {
4753
4765
  return !1;
4754
4766
  }
4755
- }, An = function(g) {
4767
+ }, En = function(g) {
4756
4768
  if (!et || typeof g != "object" || g === null)
4757
4769
  return !1;
4758
4770
  try {
@@ -4763,16 +4775,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4763
4775
  };
4764
4776
  function kt(P, g, w) {
4765
4777
  P.length !== 0 && S(P, (L) => {
4766
- L.call(R, g, w, tn);
4778
+ L.call(M, g, w, tn);
4767
4779
  });
4768
4780
  }
4769
4781
  const Au = function(g, w) {
4770
- return !!(kn && g.hasChildNodes() && !An(g.firstElementChild) && V(Me, g.textContent) && V(Me, g.innerHTML) || kn && g.namespaceURI === bt && w === "style" && An(g.firstElementChild) || g.nodeType === mt.processingInstruction || kn && g.nodeType === mt.comment && V(lt, g.data));
4782
+ return !!(vn && g.hasChildNodes() && !En(g.firstElementChild) && V(Me, g.textContent) && V(Me, g.innerHTML) || vn && g.namespaceURI === bt && w === "style" && En(g.firstElementChild) || g.nodeType === mt.processingInstruction || vn && g.nodeType === mt.comment && V(lt, g.data));
4771
4783
  }, Eu = function(g, w) {
4772
- if (!wn[w] && Ci(w) && ($e.tagNameCheck instanceof RegExp && V($e.tagNameCheck, w) || $e.tagNameCheck instanceof Function && $e.tagNameCheck(w)))
4784
+ if (!kn[w] && Ci(w) && ($e.tagNameCheck instanceof RegExp && V($e.tagNameCheck, w) || $e.tagNameCheck instanceof Function && $e.tagNameCheck(w)))
4773
4785
  return !1;
4774
4786
  if (ls && !gt[w]) {
4775
- const L = yn(g), K = bn(g);
4787
+ const L = xn(g), K = yn(g);
4776
4788
  if (K && L) {
4777
4789
  const fe = K.length;
4778
4790
  for (let ye = fe - 1; ye >= 0; --ye) {
@@ -4791,13 +4803,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4791
4803
  allowedTags: _e
4792
4804
  }), Au(g, w))
4793
4805
  return It(g), !0;
4794
- if (wn[w] || !($t.tagCheck instanceof Function && $t.tagCheck(w)) && !_e[w])
4806
+ if (kn[w] || !($t.tagCheck instanceof Function && $t.tagCheck(w)) && !_e[w])
4795
4807
  return Eu(g, w);
4796
4808
  if ((et ? et(g) : g.nodeType) === mt.element && !wu(g) || (w === "noscript" || w === "noembed" || w === "noframes") && V(Zr, g.innerHTML))
4797
4809
  return It(g), !0;
4798
4810
  if (Ot && g.nodeType === mt.text) {
4799
4811
  const K = cr(g.textContent);
4800
- g.textContent !== K && (M(R.removed, {
4812
+ g.textContent !== K && (I(M.removed, {
4801
4813
  element: g.cloneNode()
4802
4814
  }), g.textContent = K);
4803
4815
  }
@@ -4810,9 +4822,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4810
4822
  if (!(ui && V(cu, w))) {
4811
4823
  if (K) {
4812
4824
  if (!ds[w]) {
4813
- if (!V(ii, F(L, oi, ""))) {
4825
+ if (!V(ii, j(L, oi, ""))) {
4814
4826
  if (!((w === "src" || w === "xlink:href" || w === "href") && g !== "script" && Q(L, "data:") === 0 && gi[g])) {
4815
- if (!(di && !V(uu, F(L, oi, "")))) {
4827
+ if (!(di && !V(uu, j(L, oi, "")))) {
4816
4828
  if (L)
4817
4829
  return !1;
4818
4830
  }
@@ -4843,7 +4855,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4843
4855
  return K;
4844
4856
  }, Tu = function(g, w, L, K) {
4845
4857
  try {
4846
- L ? g.setAttributeNS(L, w, K) : g.setAttribute(w, K), ur(g) ? It(g) : E(R.removed);
4858
+ L ? g.setAttributeNS(L, w, K) : g.setAttribute(w, K), ur(g) ? It(g) : E(M.removed);
4847
4859
  } catch {
4848
4860
  Wt(w, g);
4849
4861
  }
@@ -4864,7 +4876,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4864
4876
  for (; K--; ) {
4865
4877
  const ye = w[K], je = ye.name, De = ye.namespaceURI, at = ye.value, ct = Oe(je), xs = at;
4866
4878
  let We = je === "value" ? xs : T(xs);
4867
- if (L.attrName = ct, L.attrValue = We, L.keepAttr = !0, L.forceKeepAttr = void 0, kt(Le.uponSanitizeAttribute, g, L), We = L.attrValue, hi && (ct === "id" || ct === "name") && Q(We, mi) !== 0 && (Wt(je, g), We = mi + We), kn && V(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, We)) {
4879
+ if (L.attrName = ct, L.attrValue = We, L.keepAttr = !0, L.forceKeepAttr = void 0, kt(Le.uponSanitizeAttribute, g, L), We = L.attrValue, hi && (ct === "id" || ct === "name") && Q(We, mi) !== 0 && (Wt(je, g), We = mi + We), vn && V(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, We)) {
4868
4880
  Wt(je, g);
4869
4881
  continue;
4870
4882
  }
@@ -4909,7 +4921,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4909
4921
  dr(L.shadow);
4910
4922
  continue;
4911
4923
  }
4912
- const K = L.node, ye = (et ? et(K) : K.nodeType) === mt.element, je = bn(K);
4924
+ const K = L.node, ye = (et ? et(K) : K.nodeType) === mt.element, je = yn(K);
4913
4925
  if (je)
4914
4926
  for (let De = je.length - 1; De >= 0; --De)
4915
4927
  w.push({
@@ -4938,19 +4950,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4938
4950
  }
4939
4951
  }
4940
4952
  };
4941
- return R.sanitize = function(P) {
4953
+ return M.sanitize = function(P) {
4942
4954
  let g = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = null, L = null, K = null, fe = null;
4943
- if (fs = !P, fs && (P = "<!-->"), typeof P != "string" && !An(P) && (P = X(P), typeof P != "string"))
4955
+ if (fs = !P, fs && (P = "<!-->"), typeof P != "string" && !En(P) && (P = X(P), typeof P != "string"))
4944
4956
  throw ue("dirty is not a string, aborting");
4945
- if (!R.isSupported)
4957
+ if (!M.isSupported)
4946
4958
  return P;
4947
- ss ? (_e = os, Ce = is) : gs(g), (Le.uponSanitizeElement.length > 0 || Le.uponSanitizeAttribute.length > 0) && (_e = D(_e)), Le.uponSanitizeAttribute.length > 0 && (Ce = D(Ce)), R.removed = [];
4948
- const ye = cs && typeof P != "string" && An(P);
4959
+ ss ? (_e = os, Ce = is) : gs(g), (Le.uponSanitizeElement.length > 0 || Le.uponSanitizeAttribute.length > 0) && (_e = D(_e)), Le.uponSanitizeAttribute.length > 0 && (Ce = D(Ce)), M.removed = [];
4960
+ const ye = cs && typeof P != "string" && En(P);
4949
4961
  if (ye) {
4950
4962
  const at = Ct ? Ct(P) : P.nodeName;
4951
4963
  if (typeof at == "string") {
4952
4964
  const ct = Oe(at);
4953
- if (!_e[ct] || wn[ct])
4965
+ if (!_e[ct] || kn[ct])
4954
4966
  throw ue("root node is forbidden and cannot be sanitized in-place");
4955
4967
  }
4956
4968
  if (ur(P))
@@ -4960,7 +4972,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4960
4972
  } catch (ct) {
4961
4973
  throw Ei(P), ct;
4962
4974
  }
4963
- } else if (An(P))
4975
+ } else if (En(P))
4964
4976
  w = Si("<!---->"), L = w.ownerDocument.importNode(P, !0), L.nodeType === mt.element && L.nodeName === "BODY" || L.nodeName === "HTML" ? w = L : w.appendChild(L), ys(L);
4965
4977
  else {
4966
4978
  if (!Qt && !Ot && !Ht && // eslint-disable-next-line unicorn/prefer-includes
@@ -4978,7 +4990,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4978
4990
  throw ye && Ei(P), at;
4979
4991
  }
4980
4992
  if (ye)
4981
- return S(R.removed, (at) => {
4993
+ return S(M.removed, (at) => {
4982
4994
  at.element && vu(at.element);
4983
4995
  }), Ot && bs(P), P;
4984
4996
  if (Qt) {
@@ -4992,30 +5004,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4992
5004
  let De = Ht ? w.outerHTML : w.innerHTML;
4993
5005
  return Ht && _e["!doctype"] && w.ownerDocument && w.ownerDocument.doctype && w.ownerDocument.doctype.name && V(ne, w.ownerDocument.doctype.name) && (De = "<!DOCTYPE " + w.ownerDocument.doctype.name + `>
4994
5006
  ` + De), Ot && (De = cr(De)), Je && ir ? Zt(De) : De;
4995
- }, R.setConfig = function() {
5007
+ }, M.setConfig = function() {
4996
5008
  let P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4997
5009
  gs(P), ss = !0, os = _e, is = Ce;
4998
- }, R.clearConfig = function() {
5010
+ }, M.clearConfig = function() {
4999
5011
  tn = null, ss = !1, os = null, is = null, Je = ts, Ut = "";
5000
- }, R.isValidAttribute = function(P, g, w) {
5012
+ }, M.isValidAttribute = function(P, g, w) {
5001
5013
  tn || gs({});
5002
5014
  const L = Oe(P), K = Oe(g);
5003
5015
  return _i(L, K, w);
5004
- }, R.addHook = function(P, g) {
5005
- typeof g == "function" && _(Le, P) && M(Le[P], g);
5006
- }, R.removeHook = function(P, g) {
5016
+ }, M.addHook = function(P, g) {
5017
+ typeof g == "function" && _(Le, P) && I(Le[P], g);
5018
+ }, M.removeHook = function(P, g) {
5007
5019
  if (_(Le, P)) {
5008
5020
  if (g !== void 0) {
5009
5021
  const w = $(Le[P], g);
5010
- return w === -1 ? void 0 : j(Le[P], w, 1)[0];
5022
+ return w === -1 ? void 0 : F(Le[P], w, 1)[0];
5011
5023
  }
5012
5024
  return E(Le[P]);
5013
5025
  }
5014
- }, R.removeHooks = function(P) {
5026
+ }, M.removeHooks = function(P) {
5015
5027
  _(Le, P) && (Le[P] = []);
5016
- }, R.removeAllHooks = function() {
5028
+ }, M.removeAllHooks = function() {
5017
5029
  Le = Qo();
5018
- }, R;
5030
+ }, M;
5019
5031
  }
5020
5032
  var Zc = qo();
5021
5033
  return Ss = Zc, Ss;
@@ -5040,7 +5052,7 @@ var Yt = $o();
5040
5052
  function El(e) {
5041
5053
  Yt = e;
5042
5054
  }
5043
- var Cn = { exec: () => null };
5055
+ var $n = { exec: () => null };
5044
5056
  function we(e, t = "") {
5045
5057
  let n = typeof e == "string" ? e : e.source;
5046
5058
  const r = {
@@ -5124,7 +5136,7 @@ var Ke = {
5124
5136
  list: ap,
5125
5137
  newline: ep,
5126
5138
  paragraph: Tl,
5127
- table: Cn,
5139
+ table: $n,
5128
5140
  text: op
5129
5141
  }, ea = we(
5130
5142
  "^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"
@@ -5140,7 +5152,7 @@ var Ke = {
5140
5152
  ).replace("comment", Mo).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
5141
5153
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
5142
5154
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
5143
- fences: Cn,
5155
+ fences: $n,
5144
5156
  // fences not supported
5145
5157
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
5146
5158
  paragraph: we(Io).replace("hr", Wn).replace("heading", ` *#{1,6} *[^
@@ -5151,14 +5163,14 @@ var Ke = {
5151
5163
  ).replace(/notPunctSpace/g, Cl).replace(/punctSpace/g, Po).replace(/punct/g, Vr).getRegex(), Ep = we(/\\(punct)/, "gu").replace(/punct/g, Vr).getRegex(), Sp = we(/^<(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(), Np = we(Mo).replace("(?:-->|$)", "-->").getRegex(), Tp = we(
5152
5164
  "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
5153
5165
  ).replace("comment", Np).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Mr = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, _p = we(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Mr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Rl = we(/^!?\[(label)\]\[(ref)\]/).replace("label", Mr).replace("ref", Ro).getRegex(), Ml = we(/^!?\[(ref)\](?:\[\])?/).replace("ref", Ro).getRegex(), Cp = we("reflink|nolink(?!\\()", "g").replace("reflink", Rl).replace("nolink", Ml).getRegex(), Do = {
5154
- _backpedal: Cn,
5166
+ _backpedal: $n,
5155
5167
  // only used for GFM url
5156
5168
  anyPunctuation: Ep,
5157
5169
  autolink: Sp,
5158
5170
  blockSkip: yp,
5159
5171
  br: _l,
5160
5172
  code: pp,
5161
- del: Cn,
5173
+ del: $n,
5162
5174
  emStrongLDelim: xp,
5163
5175
  emStrongRDelimAst: kp,
5164
5176
  emStrongRDelimUnd: Ap,
@@ -5170,7 +5182,7 @@ var Ke = {
5170
5182
  reflinkSearch: Cp,
5171
5183
  tag: Tp,
5172
5184
  text: hp,
5173
- url: Cn
5185
+ url: $n
5174
5186
  }, $p = {
5175
5187
  ...Do,
5176
5188
  link: we(/^!?\[(label)\]\((.*?)\)/).replace("label", Mr).getRegex(),
@@ -5191,7 +5203,7 @@ var Ke = {
5191
5203
  normal: Lo,
5192
5204
  gfm: up,
5193
5205
  pedantic: dp
5194
- }, Sn = {
5206
+ }, Nn = {
5195
5207
  normal: Do,
5196
5208
  gfm: Qs,
5197
5209
  breaks: Op,
@@ -5236,7 +5248,7 @@ function ra(e, t) {
5236
5248
  r[s] = r[s].trim().replace(Ke.slashPipe, "|");
5237
5249
  return r;
5238
5250
  }
5239
- function Nn(e, t, n) {
5251
+ function Tn(e, t, n) {
5240
5252
  const r = e.length;
5241
5253
  if (r === 0)
5242
5254
  return "";
@@ -5311,7 +5323,7 @@ var Lr = class {
5311
5323
  type: "code",
5312
5324
  raw: t[0],
5313
5325
  codeBlockStyle: "indented",
5314
- text: this.options.pedantic ? n : Nn(n, `
5326
+ text: this.options.pedantic ? n : Tn(n, `
5315
5327
  `)
5316
5328
  };
5317
5329
  }
@@ -5333,7 +5345,7 @@ var Lr = class {
5333
5345
  if (t) {
5334
5346
  let n = t[2].trim();
5335
5347
  if (this.rules.other.endingHash.test(n)) {
5336
- const r = Nn(n, "#");
5348
+ const r = Tn(n, "#");
5337
5349
  (this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (n = r.trim());
5338
5350
  }
5339
5351
  return {
@@ -5350,14 +5362,14 @@ var Lr = class {
5350
5362
  if (t)
5351
5363
  return {
5352
5364
  type: "hr",
5353
- raw: Nn(t[0], `
5365
+ raw: Tn(t[0], `
5354
5366
  `)
5355
5367
  };
5356
5368
  }
5357
5369
  blockquote(e) {
5358
5370
  const t = this.rules.block.blockquote.exec(e);
5359
5371
  if (t) {
5360
- let n = Nn(t[0], `
5372
+ let n = Tn(t[0], `
5361
5373
  `).split(`
5362
5374
  `), r = "", s = "";
5363
5375
  const o = [];
@@ -5433,18 +5445,18 @@ ${d}` : d;
5433
5445
  `, 1)[0], m = !f.trim(), h = 0;
5434
5446
  if (this.options.pedantic ? (h = 2, d = f.trimStart()) : m ? h = t[1].length + 1 : (h = t[2].search(this.rules.other.nonSpaceChar), h = h > 4 ? 1 : h, d = f.slice(h), h += t[1].length), m && this.rules.other.blankLine.test(p) && (u += p + `
5435
5447
  `, e = e.substring(p.length + 1), c = !0), !c) {
5436
- const S = this.rules.other.nextBulletRegex(h), $ = this.rules.other.hrRegex(h), E = this.rules.other.fencesBeginRegex(h), M = this.rules.other.headingBeginRegex(h), j = this.rules.other.htmlBeginRegex(h);
5448
+ const S = this.rules.other.nextBulletRegex(h), $ = this.rules.other.hrRegex(h), E = this.rules.other.fencesBeginRegex(h), I = this.rules.other.headingBeginRegex(h), F = this.rules.other.htmlBeginRegex(h);
5437
5449
  for (; e; ) {
5438
5450
  const C = e.split(`
5439
5451
  `, 1)[0];
5440
5452
  let N;
5441
- if (p = C, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), N = p) : N = p.replace(this.rules.other.tabCharGlobal, " "), E.test(p) || M.test(p) || j.test(p) || S.test(p) || $.test(p))
5453
+ if (p = C, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), N = p) : N = p.replace(this.rules.other.tabCharGlobal, " "), E.test(p) || I.test(p) || F.test(p) || S.test(p) || $.test(p))
5442
5454
  break;
5443
5455
  if (N.search(this.rules.other.nonSpaceChar) >= h || !p.trim())
5444
5456
  d += `
5445
5457
  ` + N.slice(h);
5446
5458
  else {
5447
- if (m || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || E.test(f) || M.test(f) || $.test(f))
5459
+ if (m || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || E.test(f) || I.test(f) || $.test(f))
5448
5460
  break;
5449
5461
  d += `
5450
5462
  ` + p;
@@ -5601,7 +5613,7 @@ ${d}` : d;
5601
5613
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
5602
5614
  if (!this.rules.other.endAngleBracket.test(n))
5603
5615
  return;
5604
- const o = Nn(n.slice(0, -1), "\\");
5616
+ const o = Tn(n.slice(0, -1), "\\");
5605
5617
  if ((n.length - o.length) % 2 === 0)
5606
5618
  return;
5607
5619
  } else {
@@ -5783,9 +5795,9 @@ ${d}` : d;
5783
5795
  const n = {
5784
5796
  other: Ke,
5785
5797
  block: mr.normal,
5786
- inline: Sn.normal
5798
+ inline: Nn.normal
5787
5799
  };
5788
- this.options.pedantic ? (n.block = mr.pedantic, n.inline = Sn.pedantic) : this.options.gfm && (n.block = mr.gfm, this.options.breaks ? n.inline = Sn.breaks : n.inline = Sn.gfm), this.tokenizer.rules = n;
5800
+ this.options.pedantic ? (n.block = mr.pedantic, n.inline = Nn.pedantic) : this.options.gfm && (n.block = mr.gfm, this.options.breaks ? n.inline = Nn.breaks : n.inline = Nn.gfm), this.tokenizer.rules = n;
5789
5801
  }
5790
5802
  /**
5791
5803
  * Expose Rules
@@ -5793,7 +5805,7 @@ ${d}` : d;
5793
5805
  static get rules() {
5794
5806
  return {
5795
5807
  block: mr,
5796
- inline: Sn
5808
+ inline: Nn
5797
5809
  };
5798
5810
  }
5799
5811
  /**
@@ -6822,7 +6834,7 @@ class Up extends jo {
6822
6834
  return this.closeAllNodes(), !0;
6823
6835
  }
6824
6836
  }
6825
- function Pn(e) {
6837
+ function Dn(e) {
6826
6838
  return e ? typeof e == "string" ? e : e.source : null;
6827
6839
  }
6828
6840
  function Fl(e) {
@@ -6835,14 +6847,14 @@ function Wp(e) {
6835
6847
  return Xt("(?:", e, ")?");
6836
6848
  }
6837
6849
  function Xt(...e) {
6838
- return e.map((n) => Pn(n)).join("");
6850
+ return e.map((n) => Dn(n)).join("");
6839
6851
  }
6840
6852
  function Gp(e) {
6841
6853
  const t = e[e.length - 1];
6842
6854
  return typeof t == "object" && t.constructor === Object ? (e.splice(e.length - 1, 1), t) : {};
6843
6855
  }
6844
6856
  function Fo(...e) {
6845
- return "(" + (Gp(e).capture ? "" : "?:") + e.map((r) => Pn(r)).join("|") + ")";
6857
+ return "(" + (Gp(e).capture ? "" : "?:") + e.map((r) => Dn(r)).join("|") + ")";
6846
6858
  }
6847
6859
  function zl(e) {
6848
6860
  return new RegExp(e.toString() + "|").exec("").length - 1;
@@ -6857,7 +6869,7 @@ function zo(e, { joinWith: t }) {
6857
6869
  return e.map((r) => {
6858
6870
  n += 1;
6859
6871
  const s = n;
6860
- let o = Pn(r), i = "";
6872
+ let o = Dn(r), i = "";
6861
6873
  for (; o.length > 0; ) {
6862
6874
  const a = Vp.exec(o);
6863
6875
  if (!a) {
@@ -6886,7 +6898,7 @@ const Jp = /\b\B/, Ul = "[a-zA-Z]\\w*", Uo = "[a-zA-Z_]\\w*", Hl = "\\b\\d+(\\.\
6886
6898
  n.index !== 0 && r.ignoreMatch();
6887
6899
  }
6888
6900
  }, e);
6889
- }, Dn = {
6901
+ }, Bn = {
6890
6902
  begin: "\\\\[\\s\\S]",
6891
6903
  relevance: 0
6892
6904
  }, Zp = {
@@ -6894,13 +6906,13 @@ const Jp = /\b\B/, Ul = "[a-zA-Z]\\w*", Uo = "[a-zA-Z_]\\w*", Hl = "\\b\\d+(\\.\
6894
6906
  begin: "'",
6895
6907
  end: "'",
6896
6908
  illegal: "\\n",
6897
- contains: [Dn]
6909
+ contains: [Bn]
6898
6910
  }, Qp = {
6899
6911
  scope: "string",
6900
6912
  begin: '"',
6901
6913
  end: '"',
6902
6914
  illegal: "\\n",
6903
- contains: [Dn]
6915
+ contains: [Bn]
6904
6916
  }, qp = {
6905
6917
  begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
6906
6918
  }, Jr = function(e, t, n = {}) {
@@ -6986,12 +6998,12 @@ const Jp = /\b\B/, Ul = "[a-zA-Z]\\w*", Uo = "[a-zA-Z_]\\w*", Hl = "\\b\\d+(\\.\
6986
6998
  begin: /\/(?=[^/\n]*\/)/,
6987
6999
  end: /\/[gimuy]*/,
6988
7000
  contains: [
6989
- Dn,
7001
+ Bn,
6990
7002
  {
6991
7003
  begin: /\[/,
6992
7004
  end: /\]/,
6993
7005
  relevance: 0,
6994
- contains: [Dn]
7006
+ contains: [Bn]
6995
7007
  }
6996
7008
  ]
6997
7009
  }, ah = {
@@ -7024,7 +7036,7 @@ const Jp = /\b\B/, Ul = "[a-zA-Z]\\w*", Uo = "[a-zA-Z_]\\w*", Hl = "\\b\\d+(\\.\
7024
7036
  var gr = /* @__PURE__ */ Object.freeze({
7025
7037
  __proto__: null,
7026
7038
  APOS_STRING_MODE: Zp,
7027
- BACKSLASH_ESCAPE: Dn,
7039
+ BACKSLASH_ESCAPE: Bn,
7028
7040
  BINARY_NUMBER_MODE: oh,
7029
7041
  BINARY_NUMBER_RE: Gl,
7030
7042
  COMMENT: Jr,
@@ -7159,7 +7171,7 @@ function Sh(e) {
7159
7171
  function Nh(e) {
7160
7172
  function t(i, a) {
7161
7173
  return new RegExp(
7162
- Pn(i),
7174
+ Dn(i),
7163
7175
  "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (a ? "g" : "")
7164
7176
  );
7165
7177
  }
@@ -7244,7 +7256,7 @@ function Nh(e) {
7244
7256
  gh
7245
7257
  ].forEach((d) => d(i, a)), i.isCompiled = !0;
7246
7258
  let u = null;
7247
- return typeof i.keywords == "object" && i.keywords.$pattern && (i.keywords = Object.assign({}, i.keywords), u = i.keywords.$pattern, delete i.keywords.$pattern), u = u || /\w+/, i.keywords && (i.keywords = Kl(i.keywords, e.case_insensitive)), c.keywordPatternRe = t(u, !0), a && (i.begin || (i.begin = /\B|\b/), c.beginRe = t(c.begin), !i.end && !i.endsWithParent && (i.end = /\B|\b/), i.end && (c.endRe = t(c.end)), c.terminatorEnd = Pn(c.end) || "", i.endsWithParent && a.terminatorEnd && (c.terminatorEnd += (i.end ? "|" : "") + a.terminatorEnd)), i.illegal && (c.illegalRe = t(
7259
+ return typeof i.keywords == "object" && i.keywords.$pattern && (i.keywords = Object.assign({}, i.keywords), u = i.keywords.$pattern, delete i.keywords.$pattern), u = u || /\w+/, i.keywords && (i.keywords = Kl(i.keywords, e.case_insensitive)), c.keywordPatternRe = t(u, !0), a && (i.begin || (i.begin = /\B|\b/), c.beginRe = t(c.begin), !i.end && !i.endsWithParent && (i.end = /\B|\b/), i.end && (c.endRe = t(c.end)), c.terminatorEnd = Dn(c.end) || "", i.endsWithParent && a.terminatorEnd && (c.terminatorEnd += (i.end ? "|" : "") + a.terminatorEnd)), i.illegal && (c.illegalRe = t(
7248
7260
  /** @type {RegExp | string} */
7249
7261
  i.illegal
7250
7262
  )), i.contains || (i.contains = []), i.contains = [].concat(...i.contains.map(function(d) {
@@ -7315,9 +7327,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7315
7327
  code: V,
7316
7328
  language: ue
7317
7329
  };
7318
- le("before:highlight", te);
7330
+ ce("before:highlight", te);
7319
7331
  const Ie = te.result ? te.result : f(te.language, te.code, H);
7320
- return Ie.code = te.code, le("after:highlight", Ie), Ie;
7332
+ return Ie.code = te.code, ce("after:highlight", Ie), Ie;
7321
7333
  }
7322
7334
  function f(A, _, H, V) {
7323
7335
  const ue = /* @__PURE__ */ Object.create(null);
@@ -7381,7 +7393,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7381
7393
  Me ? D(lt, Me) : (xe = lt, Ie(), xe = ""), ne++;
7382
7394
  }
7383
7395
  }
7384
- function I(B, U) {
7396
+ function R(B, U) {
7385
7397
  return B.scope && typeof B.scope == "string" && Re.openNode(ke.classNameAliases[B.scope] || B.scope), B.beginScope && (B.beginScope._wrap ? (D(xe, ke.classNameAliases[B.beginScope._wrap] || B.beginScope._wrap), xe = "") : B.beginScope._multi && (X(B.beginScope, U), xe = "")), Z = Object.create(B, { parent: { value: Z } }), Z;
7386
7398
  }
7387
7399
  function ee(B, U, ne) {
@@ -7408,7 +7420,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7408
7420
  for (const lt of Me)
7409
7421
  if (lt && (lt(B, pe), pe.isMatchIgnored))
7410
7422
  return de(U);
7411
- return ne.skip ? xe += U : (ne.excludeBegin && (xe += U), Ne(), !ne.returnBegin && !ne.excludeBegin && (xe = U)), I(ne, B), ne.returnBegin ? 0 : U.length;
7423
+ return ne.skip ? xe += U : (ne.excludeBegin && (xe += U), Ne(), !ne.returnBegin && !ne.excludeBegin && (xe = U)), R(ne, B), ne.returnBegin ? 0 : U.length;
7412
7424
  }
7413
7425
  function be(B) {
7414
7426
  const U = B[0], ne = _.substring(B.index), pe = ee(Z, B, ne);
@@ -7419,7 +7431,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7419
7431
  do
7420
7432
  Z.scope && Re.closeNode(), !Z.skip && !Z.subLanguage && (wt += Z.relevance), Z = Z.parent;
7421
7433
  while (Z !== pe.parent);
7422
- return pe.starts && I(pe.starts, B), Me.returnEnd ? 0 : U.length;
7434
+ return pe.starts && R(pe.starts, B), Me.returnEnd ? 0 : U.length;
7423
7435
  }
7424
7436
  function Ee() {
7425
7437
  const B = [];
@@ -7526,7 +7538,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7526
7538
  }
7527
7539
  function m(A, _) {
7528
7540
  _ = _ || a.languages || Object.keys(t);
7529
- const H = p(A), V = _.filter(v).filter(F).map(
7541
+ const H = p(A), V = _.filter(v).filter(j).map(
7530
7542
  (Ne) => f(Ne, A, !1)
7531
7543
  );
7532
7544
  V.unshift(H);
@@ -7550,7 +7562,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7550
7562
  let _ = null;
7551
7563
  const H = u(A);
7552
7564
  if (c(H)) return;
7553
- if (le(
7565
+ if (ce(
7554
7566
  "before:highlightElement",
7555
7567
  { el: A, language: H }
7556
7568
  ), A.dataset.highlighted) {
@@ -7572,21 +7584,21 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7572
7584
  }, ue.secondBest && (A.secondBest = {
7573
7585
  language: ue.secondBest.language,
7574
7586
  relevance: ue.secondBest.relevance
7575
- }), le("after:highlightElement", { el: A, result: ue, text: V });
7587
+ }), ce("after:highlightElement", { el: A, result: ue, text: V });
7576
7588
  }
7577
7589
  function k(A) {
7578
7590
  a = ha(a, A);
7579
7591
  }
7580
7592
  const S = () => {
7581
- M(), rn("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
7593
+ I(), rn("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
7582
7594
  };
7583
7595
  function $() {
7584
- M(), rn("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
7596
+ I(), rn("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
7585
7597
  }
7586
7598
  let E = !1;
7587
- function M() {
7599
+ function I() {
7588
7600
  function A() {
7589
- M();
7601
+ I();
7590
7602
  }
7591
7603
  if (document.readyState === "loading") {
7592
7604
  E || window.addEventListener("DOMContentLoaded", A, !1), E = !0;
@@ -7594,7 +7606,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7594
7606
  }
7595
7607
  document.querySelectorAll(a.cssSelector).forEach(y);
7596
7608
  }
7597
- function j(A, _) {
7609
+ function F(A, _) {
7598
7610
  let H = null;
7599
7611
  try {
7600
7612
  H = _(e);
@@ -7623,7 +7635,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7623
7635
  n[H.toLowerCase()] = _;
7624
7636
  });
7625
7637
  }
7626
- function F(A) {
7638
+ function j(A) {
7627
7639
  const _ = v(A);
7628
7640
  return _ && !_.disableAutodetect;
7629
7641
  }
@@ -7645,7 +7657,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7645
7657
  const _ = r.indexOf(A);
7646
7658
  _ !== -1 && r.splice(_, 1);
7647
7659
  }
7648
- function le(A, _) {
7660
+ function ce(A, _) {
7649
7661
  const H = A;
7650
7662
  r.forEach(function(V) {
7651
7663
  V[H] && V[H](_);
@@ -7657,19 +7669,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ue = A, V = _), H ===
7657
7669
  Object.assign(e, {
7658
7670
  highlight: d,
7659
7671
  highlightAuto: m,
7660
- highlightAll: M,
7672
+ highlightAll: I,
7661
7673
  highlightElement: y,
7662
7674
  // TODO: Remove with v12 API
7663
7675
  highlightBlock: ae,
7664
7676
  configure: k,
7665
7677
  initHighlighting: S,
7666
7678
  initHighlightingOnLoad: $,
7667
- registerLanguage: j,
7679
+ registerLanguage: F,
7668
7680
  unregisterLanguage: C,
7669
7681
  listLanguages: N,
7670
7682
  getLanguage: v,
7671
7683
  registerAliases: x,
7672
- autoDetection: F,
7684
+ autoDetection: j,
7673
7685
  inherit: ha,
7674
7686
  addPlugin: T,
7675
7687
  removePlugin: W
@@ -8070,7 +8082,7 @@ function Mh(e) {
8070
8082
  "typeset",
8071
8083
  "ulimit",
8072
8084
  "unalias"
8073
- ], M = [
8085
+ ], I = [
8074
8086
  "autoload",
8075
8087
  "bg",
8076
8088
  "bindkey",
@@ -8139,7 +8151,7 @@ function Mh(e) {
8139
8151
  "zsocket",
8140
8152
  "zstyle",
8141
8153
  "ztcp"
8142
- ], j = [
8154
+ ], F = [
8143
8155
  "chcon",
8144
8156
  "chgrp",
8145
8157
  "chown",
@@ -8260,8 +8272,8 @@ function Mh(e) {
8260
8272
  // Shell modifiers
8261
8273
  "set",
8262
8274
  "shopt",
8263
- ...M,
8264
- ...j
8275
+ ...I,
8276
+ ...F
8265
8277
  ]
8266
8278
  },
8267
8279
  contains: [
@@ -8610,13 +8622,13 @@ function jh(e) {
8610
8622
  "self"
8611
8623
  ].concat(E)
8612
8624
  });
8613
- const M = [].concat($, p.contains), j = M.concat([
8625
+ const I = [].concat($, p.contains), F = I.concat([
8614
8626
  // eat recursive parens in sub expressions
8615
8627
  {
8616
8628
  begin: /(\s*)\(/,
8617
8629
  end: /\)/,
8618
8630
  keywords: a,
8619
- contains: ["self"].concat(M)
8631
+ contains: ["self"].concat(I)
8620
8632
  }
8621
8633
  ]), C = {
8622
8634
  className: "params",
@@ -8627,7 +8639,7 @@ function jh(e) {
8627
8639
  excludeBegin: !0,
8628
8640
  excludeEnd: !0,
8629
8641
  keywords: a,
8630
- contains: j
8642
+ contains: F
8631
8643
  }, N = {
8632
8644
  variants: [
8633
8645
  // class Car extends vehicle
@@ -8690,7 +8702,7 @@ function jh(e) {
8690
8702
  className: "meta",
8691
8703
  relevance: 10,
8692
8704
  begin: /^\s*['"]use (strict|asm)['"]/
8693
- }, F = {
8705
+ }, j = {
8694
8706
  variants: [
8695
8707
  {
8696
8708
  match: [
@@ -8736,7 +8748,7 @@ function jh(e) {
8736
8748
  ),
8737
8749
  className: "title.function",
8738
8750
  relevance: 0
8739
- }, le = {
8751
+ }, ce = {
8740
8752
  begin: t.concat(/\./, t.lookahead(
8741
8753
  t.concat(r, /(?![0-9A-Za-z$_(])/)
8742
8754
  )),
@@ -8788,7 +8800,7 @@ function jh(e) {
8788
8800
  aliases: ["js", "jsx", "mjs", "cjs"],
8789
8801
  keywords: a,
8790
8802
  // this will be extended by TypeScript
8791
- exports: { PARAMS_CONTAINS: j, CLASS_REFERENCE: v },
8803
+ exports: { PARAMS_CONTAINS: F, CLASS_REFERENCE: v },
8792
8804
  illegal: /#(?![$_A-z])/,
8793
8805
  contains: [
8794
8806
  e.SHEBANG({
@@ -8849,7 +8861,7 @@ function jh(e) {
8849
8861
  excludeBegin: !0,
8850
8862
  excludeEnd: !0,
8851
8863
  keywords: a,
8852
- contains: j
8864
+ contains: F
8853
8865
  }
8854
8866
  ]
8855
8867
  }
@@ -8889,7 +8901,7 @@ function jh(e) {
8889
8901
  }
8890
8902
  ]
8891
8903
  },
8892
- F,
8904
+ j,
8893
8905
  {
8894
8906
  // prevent this from getting swallowed up by function
8895
8907
  // since they appear "function like"
@@ -8913,7 +8925,7 @@ function jh(e) {
8913
8925
  match: /\.\.\./,
8914
8926
  relevance: 0
8915
8927
  },
8916
- le,
8928
+ ce,
8917
8929
  // hack: prevents detection of keywords in some circumstances
8918
8930
  // .keyword()
8919
8931
  // $keyword = x
@@ -9404,7 +9416,7 @@ function Gh({ className: e, ...t }) {
9404
9416
  function Kh({ className: e }) {
9405
9417
  return /* @__PURE__ */ l("svg", { className: e || "inline-block", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ l("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z" }) });
9406
9418
  }
9407
- function Tn({
9419
+ function _n({
9408
9420
  IconClass: e,
9409
9421
  term: t,
9410
9422
  visibleTerm: n = !0,
@@ -9459,7 +9471,7 @@ function Vh({
9459
9471
  s && /* @__PURE__ */ l("div", { className: "hidden @lg:block mb-3", children: s }),
9460
9472
  /* @__PURE__ */ b("dl", { className: "flex flex-wrap @lg:flex-unwrap gap-2 ", children: [
9461
9473
  o.licenseName && /* @__PURE__ */ l(
9462
- Tn,
9474
+ _n,
9463
9475
  {
9464
9476
  IconClass: Gh,
9465
9477
  text: `${o.licenseName} ${Ri}`,
@@ -9470,7 +9482,7 @@ function Vh({
9470
9482
  }
9471
9483
  ),
9472
9484
  o.externalDocsUrl && /* @__PURE__ */ l(
9473
- Tn,
9485
+ _n,
9474
9486
  {
9475
9487
  IconClass: Wr,
9476
9488
  text: Mi,
@@ -9481,7 +9493,7 @@ function Vh({
9481
9493
  }
9482
9494
  ),
9483
9495
  o.contactEmail && /* @__PURE__ */ l(
9484
- Tn,
9496
+ _n,
9485
9497
  {
9486
9498
  IconClass: Hh,
9487
9499
  text: `${o.contactEmail}`,
@@ -9492,7 +9504,7 @@ function Vh({
9492
9504
  }
9493
9505
  ),
9494
9506
  o.contactUrl && /* @__PURE__ */ l(
9495
- Tn,
9507
+ _n,
9496
9508
  {
9497
9509
  IconClass: Wh,
9498
9510
  text: `${o.contactName}`,
@@ -9504,7 +9516,7 @@ function Vh({
9504
9516
  )
9505
9517
  ] }),
9506
9518
  /* @__PURE__ */ l("dl", { className: "mt-[10px]", children: o.tags && /* @__PURE__ */ l(
9507
- Tn,
9519
+ _n,
9508
9520
  {
9509
9521
  IconClass: Kh,
9510
9522
  term: Uu,
@@ -9630,7 +9642,7 @@ function Ko({
9630
9642
  collapsedMaxHeight: r = tm
9631
9643
  }) {
9632
9644
  const [s, o] = Y("idle"), i = Be(void 0), [a, c] = Y(!1), [u, d] = Y(!1), [f, p] = Y(0), m = Be(null), h = Be(null), y = fn();
9633
- ce(() => () => clearTimeout(i.current), []), ce(() => {
9645
+ le(() => () => clearTimeout(i.current), []), le(() => {
9634
9646
  const N = h.current;
9635
9647
  if (!N) return;
9636
9648
  const v = () => {
@@ -9644,7 +9656,7 @@ function Ko({
9644
9656
  om(e).then((N) => {
9645
9657
  o(N ? "copied" : "error"), clearTimeout(i.current), i.current = setTimeout(() => o("idle"), em);
9646
9658
  });
9647
- }, $ = ft.getLanguage(n) ? ft.highlight(e, { language: n }).value : null, E = s === "copied" ? "Copied" : s === "error" ? "Copy failed" : "Copy to clipboard", M = u && !a, j = e.replace(/\n+$/, "").split(`
9659
+ }, $ = ft.getLanguage(n) ? ft.highlight(e, { language: n }).value : null, E = s === "copied" ? "Copied" : s === "error" ? "Copy failed" : "Copy to clipboard", I = u && !a, F = e.replace(/\n+$/, "").split(`
9648
9660
  `).length, C = () => {
9649
9661
  var N, v;
9650
9662
  a && (((N = m.current) == null ? void 0 : N.getBoundingClientRect().top) ?? 0) < 0 && ((v = m.current) == null || v.scrollIntoView({ block: "nearest" })), c((x) => !x);
@@ -9682,7 +9694,7 @@ function Ko({
9682
9694
  "div",
9683
9695
  {
9684
9696
  "aria-hidden": "true",
9685
- className: `pointer-events-none absolute inset-x-0 bottom-0 h-16 rounded-b transition-opacity duration-300 ease-in-out ${M ? "opacity-100" : "opacity-0"}`,
9697
+ className: `pointer-events-none absolute inset-x-0 bottom-0 h-16 rounded-b transition-opacity duration-300 ease-in-out ${I ? "opacity-100" : "opacity-0"}`,
9686
9698
  style: { background: `linear-gradient(to bottom, transparent, ${rm})` }
9687
9699
  }
9688
9700
  )
@@ -9696,8 +9708,8 @@ function Ko({
9696
9708
  "aria-controls": y,
9697
9709
  className: "flex items-center gap-1 mt-1 px-1 py-0.5 rounded text-xs text-foreground-muted hover:text-foreground-secondary transition-colors",
9698
9710
  children: [
9699
- a ? "Show less" : `Show all ${j} lines`,
9700
- /* @__PURE__ */ l(Un, { className: `w-3 h-3 transition-transform ${a ? "rotate-180" : ""}` })
9711
+ a ? "Show less" : `Show all ${F} lines`,
9712
+ /* @__PURE__ */ l(pn, { className: `w-3 h-3 transition-transform ${a ? "rotate-180" : ""}` })
9701
9713
  ]
9702
9714
  }
9703
9715
  )
@@ -9737,7 +9749,7 @@ const rc = ({ schema: e }) => {
9737
9749
  return { schema: e, refLabel: s, circular: !0 };
9738
9750
  const o = vt(t(r));
9739
9751
  if (!o) return { schema: e, refLabel: s };
9740
- const { schema: i } = Ln(o);
9752
+ const { schema: i } = Pn(o);
9741
9753
  n.add(r);
9742
9754
  try {
9743
9755
  const a = At(i, t, n);
@@ -9848,7 +9860,7 @@ ${t}` : t;
9848
9860
  o && (s.items = Ge(o, t, n, r));
9849
9861
  const i = Vn(s);
9850
9862
  i !== null && ie(i) && (s.propertyNames = Ge(i, t, n, r));
9851
- const a = hn(s);
9863
+ const a = mn(s);
9852
9864
  a !== null && ie(a) && (s.additionalProperties = Ge(
9853
9865
  a,
9854
9866
  t,
@@ -9916,7 +9928,7 @@ ${t}` : t;
9916
9928
  return s;
9917
9929
  }, tt = (e) => e.if !== void 0, Ts = (e) => e === void 0 ? null : typeof e == "boolean" || ie(e) ? e : null, lc = (e) => Array.isArray(e._allOfConditionals) ? e._allOfConditionals.filter(
9918
9930
  (t) => ie(t)
9919
- ) : [], nt = (e) => Array.isArray(e._allOfConditionals) && e._allOfConditionals.length > 0, Vn = (e) => e.propertyNames === void 0 ? null : typeof e.propertyNames == "boolean" || ie(e.propertyNames) ? e.propertyNames : null, hn = (e) => e.additionalProperties === void 0 ? null : typeof e.additionalProperties == "boolean" || ie(e.additionalProperties) ? e.additionalProperties : null, Jo = (e) => {
9931
+ ) : [], nt = (e) => Array.isArray(e._allOfConditionals) && e._allOfConditionals.length > 0, Vn = (e) => e.propertyNames === void 0 ? null : typeof e.propertyNames == "boolean" || ie(e.propertyNames) ? e.propertyNames : null, mn = (e) => e.additionalProperties === void 0 ? null : typeof e.additionalProperties == "boolean" || ie(e.additionalProperties) ? e.additionalProperties : null, Jo = (e) => {
9920
9932
  const t = e.patternProperties;
9921
9933
  return ie(t) ? Object.entries(t).flatMap(
9922
9934
  ([n, r]) => ie(r) ? [[n, r]] : []
@@ -9924,11 +9936,11 @@ ${t}` : t;
9924
9936
  }, fm = (e, t) => `${e}.[pattern:${t}]`, Jn = (e) => e.properties !== void 0 && Object.keys(e.properties).length > 0, Yr = (e) => {
9925
9937
  const t = Vn(e);
9926
9938
  if (t !== null && ie(t)) return !0;
9927
- const n = hn(e);
9939
+ const n = mn(e);
9928
9940
  return n !== null && ie(n) ? !0 : Jo(e).length > 0;
9929
9941
  }, cc = (e) => !!(Gn(e) || Kn(e) || Jn(e) || Yr(e) || e.type === "array" || e.items || e.type !== void 0), dt = (e) => !(Xe(e) || tt(e) || nt(e) || Gn(e) || Kn(e) || Jn(e) || Yr(e) || e.items || oc(e) || e.type === "array" || e.type === "object");
9930
9942
  function pm(e) {
9931
- if (typeof hn(e) == "boolean") return !0;
9943
+ if (typeof mn(e) == "boolean") return !0;
9932
9944
  const n = Vn(e);
9933
9945
  return !!(typeof n == "boolean" || n !== null && ie(n) && dt(n) && typeof n.pattern == "string" && n.pattern.length > 0);
9934
9946
  }
@@ -10031,7 +10043,7 @@ function _r({ value: e, displayValue: t }) {
10031
10043
  );
10032
10044
  }
10033
10045
  function xm({ schema: e }) {
10034
- const t = hn(e);
10046
+ const t = mn(e);
10035
10047
  return typeof t != "boolean" ? null : /* @__PURE__ */ l(st, { children: t ? "additional properties allowed" : "additional properties not allowed" });
10036
10048
  }
10037
10049
  function wm({ schema: e }) {
@@ -10141,7 +10153,7 @@ const hc = (e, t) => {
10141
10153
  }
10142
10154
  const s = Array.isArray(e.type) ? e.type.join(" | ") : e.type;
10143
10155
  let o = s ? `${s}` : "type: unknown";
10144
- const i = hn(e);
10156
+ const i = mn(e);
10145
10157
  !Jn(e) && i !== null && ie(i) && (s === "object" || o === "type: unknown") && (o = s === "object" ? "object (map)" : "map");
10146
10158
  const a = typeof e.format == "string" ? e.format : void 0, c = t && (s === "object" || o.startsWith("object")) ? t : void 0;
10147
10159
  return { text: o, format: a, refHint: c };
@@ -10352,11 +10364,11 @@ function Ye({
10352
10364
  const { depthColors: m } = Qe(), h = po(n, m), y = r && km(r, s), k = u ? Nm : "";
10353
10365
  let S = "", $ = t;
10354
10366
  if (t.endsWith("[]")) {
10355
- const E = t.slice(0, -2), M = E.lastIndexOf(".");
10356
- M >= 0 ? (S = E.slice(0, M + 1), $ = `${E.slice(M + 1)}[]`) : $ = t;
10367
+ const E = t.slice(0, -2), I = E.lastIndexOf(".");
10368
+ I >= 0 ? (S = E.slice(0, I + 1), $ = `${E.slice(I + 1)}[]`) : $ = t;
10357
10369
  } else {
10358
- const E = t.lastIndexOf("."), M = t.lastIndexOf("[]"), j = Math.max(E, M);
10359
- j >= 0 && (S = t.slice(0, j + (t[j] === "." ? 1 : 2)), $ = t.slice(j + (t[j] === "." ? 1 : 2)));
10370
+ const E = t.lastIndexOf("."), I = t.lastIndexOf("[]"), F = Math.max(E, I);
10371
+ F >= 0 && (S = t.slice(0, F + (t[F] === "." ? 1 : 2)), $ = t.slice(F + (t[F] === "." ? 1 : 2)));
10360
10372
  }
10361
10373
  return p = p && !d, /* @__PURE__ */ b(
10362
10374
  "div",
@@ -10395,13 +10407,13 @@ function Ye({
10395
10407
  ),
10396
10408
  c && c.split(`
10397
10409
 
10398
- `).map((E, M) => /* @__PURE__ */ l(
10410
+ `).map((E, I) => /* @__PURE__ */ l(
10399
10411
  "p",
10400
10412
  {
10401
10413
  className: `text-xs text-foreground-muted mt-1 ${k} leading-relaxed`,
10402
10414
  children: E
10403
10415
  },
10404
- M
10416
+ I
10405
10417
  )),
10406
10418
  u && /* @__PURE__ */ l(Sm, { depth: n, expanded: d, onToggle: f })
10407
10419
  ]
@@ -10463,24 +10475,24 @@ function ut({
10463
10475
  }) {
10464
10476
  var X;
10465
10477
  const p = _m(a), m = d != null, y = m && d.length === 0 ? f ?? void 0 : void 0, [k, S] = Y(c || m), [$, E] = Y(c);
10466
- $ !== c && (E(c), S(c || m)), ce(() => {
10478
+ $ !== c && (E(c), S(c || m)), le(() => {
10467
10479
  m && S(!0);
10468
10480
  }, [m]);
10469
- const [M, j] = Y(0), C = (X = d == null ? void 0 : d[0]) == null ? void 0 : X.match(/^(?:oneOf|anyOf)\[(\d+)\]$/), N = C ? Number(C[1]) : -1;
10470
- ce(() => {
10471
- N >= 0 && j(N);
10481
+ const [I, F] = Y(0), C = (X = d == null ? void 0 : d[0]) == null ? void 0 : X.match(/^(?:oneOf|anyOf)\[(\d+)\]$/), N = C ? Number(C[1]) : -1;
10482
+ le(() => {
10483
+ N >= 0 && F(N);
10472
10484
  }, [N]);
10473
- const v = Co(), { schema: x, refLabel: F, circular: Q } = ge(() => {
10485
+ const v = Co(), { schema: x, refLabel: j, circular: Q } = ge(() => {
10474
10486
  if (u.objects.has(e) || typeof e.$ref == "string" && u.refs.has(e.$ref))
10475
10487
  return {
10476
10488
  schema: e,
10477
10489
  refLabel: no(e),
10478
10490
  circular: !0
10479
10491
  };
10480
- const I = At(e, o, s);
10481
- return I.circular ? I : {
10482
- ...I,
10483
- schema: Ge(I.schema, o, s)
10492
+ const R = At(e, o, s);
10493
+ return R.circular ? R : {
10494
+ ...R,
10495
+ schema: Ge(R.schema, o, s)
10484
10496
  };
10485
10497
  }, [e, o, s, u, v]), T = ge(
10486
10498
  () => ({
@@ -10488,19 +10500,19 @@ function ut({
10488
10500
  refs: typeof e.$ref == "string" ? new Set(u.refs).add(e.$ref) : u.refs
10489
10501
  }),
10490
10502
  [u, e]
10491
- ), W = ac(dm(x)), le = !cc(W) && (Xe(x) || tt(x) || nt(x)), ae = () => {
10492
- const I = ic(x);
10493
- if (I === null) return null;
10494
- if (typeof I == "boolean")
10495
- return /* @__PURE__ */ l(_s, { children: /* @__PURE__ */ l(vm, { value: I }) });
10496
- const ee = At(I, o, s);
10503
+ ), W = ac(dm(x)), ce = !cc(W) && (Xe(x) || tt(x) || nt(x)), ae = () => {
10504
+ const R = ic(x);
10505
+ if (R === null) return null;
10506
+ if (typeof R == "boolean")
10507
+ return /* @__PURE__ */ l(_s, { children: /* @__PURE__ */ l(vm, { value: R }) });
10508
+ const ee = At(R, o, s);
10497
10509
  if (ee.circular)
10498
10510
  return /* @__PURE__ */ l(_s, { children: /* @__PURE__ */ l(
10499
10511
  Ye,
10500
10512
  {
10501
10513
  path: t,
10502
10514
  depth: n + 1,
10503
- typeLabelOverride: `↩ ${I.$ref}`,
10515
+ typeLabelOverride: `↩ ${R.$ref}`,
10504
10516
  expandable: !1,
10505
10517
  expanded: !1,
10506
10518
  onToggle: () => {
@@ -10512,7 +10524,7 @@ function ut({
10512
10524
  return /* @__PURE__ */ l(_s, { children: G ? /* @__PURE__ */ l(yr, { schema: de, showBorder: !1 }) : /* @__PURE__ */ l(
10513
10525
  ut,
10514
10526
  {
10515
- schema: I,
10527
+ schema: R,
10516
10528
  path: t,
10517
10529
  depth: n + 1,
10518
10530
  refStack: s,
@@ -10523,17 +10535,17 @@ function ut({
10523
10535
  defaultExpanded: c
10524
10536
  }
10525
10537
  ) });
10526
- }, A = (I, ee) => {
10527
- if (typeof I == "boolean")
10528
- return /* @__PURE__ */ l("span", { className: "inline-flex items-center rounded-md bg-neutral-100 px-2 py-1 text-xs font-medium text-foreground-secondary", children: I ? "any value" : "false schema" });
10529
- const de = At(I, o, s);
10538
+ }, A = (R, ee) => {
10539
+ if (typeof R == "boolean")
10540
+ return /* @__PURE__ */ l("span", { className: "inline-flex items-center rounded-md bg-neutral-100 px-2 py-1 text-xs font-medium text-foreground-secondary", children: R ? "any value" : "false schema" });
10541
+ const de = At(R, o, s);
10530
10542
  if (de.circular)
10531
10543
  return /* @__PURE__ */ l(
10532
10544
  Ye,
10533
10545
  {
10534
10546
  path: ee,
10535
10547
  depth: n + 1,
10536
- typeLabelOverride: `↩ ${I.$ref}`,
10548
+ typeLabelOverride: `↩ ${R.$ref}`,
10537
10549
  expandable: !1,
10538
10550
  expanded: !1,
10539
10551
  onToggle: () => {
@@ -10545,7 +10557,7 @@ function ut({
10545
10557
  return dt(G) ? /* @__PURE__ */ l(yr, { schema: G, showBorder: !1 }) : /* @__PURE__ */ l(
10546
10558
  ut,
10547
10559
  {
10548
- schema: I,
10560
+ schema: R,
10549
10561
  path: ee,
10550
10562
  depth: n + 1,
10551
10563
  refStack: s,
@@ -10556,10 +10568,10 @@ function ut({
10556
10568
  defaultExpanded: c
10557
10569
  }
10558
10570
  );
10559
- }, _ = (I) => {
10560
- const ee = Ts(I.if);
10571
+ }, _ = (R) => {
10572
+ const ee = Ts(R.if);
10561
10573
  if (ee === null) return null;
10562
- const de = Ts(I.then), G = Ts(I.else);
10574
+ const de = Ts(R.then), G = Ts(R.else);
10563
10575
  return /* @__PURE__ */ l(
10564
10576
  Tm,
10565
10577
  {
@@ -10569,8 +10581,8 @@ function ut({
10569
10581
  }
10570
10582
  );
10571
10583
  }, H = () => {
10572
- const I = lc(x);
10573
- return I.length === 0 ? null : /* @__PURE__ */ l(oe, { children: I.map((ee, de) => /* @__PURE__ */ l("div", { children: _(ee) }, de)) });
10584
+ const R = lc(x);
10585
+ return R.length === 0 ? null : /* @__PURE__ */ l(oe, { children: R.map((ee, de) => /* @__PURE__ */ l("div", { children: _(ee) }, de)) });
10574
10586
  };
10575
10587
  if (Q)
10576
10588
  return /* @__PURE__ */ l(
@@ -10579,20 +10591,20 @@ function ut({
10579
10591
  id: y,
10580
10592
  path: t,
10581
10593
  depth: n,
10582
- typeLabelOverride: `↩ ${e.$ref ?? F ?? "circular"}`,
10594
+ typeLabelOverride: `↩ ${e.$ref ?? j ?? "circular"}`,
10583
10595
  expandable: !1,
10584
10596
  expanded: !1,
10585
10597
  onToggle: () => {
10586
10598
  }
10587
10599
  }
10588
10600
  );
10589
- if (le) {
10590
- const I = /* @__PURE__ */ b(oe, { children: [
10601
+ if (ce) {
10602
+ const R = /* @__PURE__ */ b(oe, { children: [
10591
10603
  Xe(x) && ae(),
10592
10604
  tt(x) && _(x),
10593
10605
  nt(x) && H()
10594
10606
  ] });
10595
- return i ? I : /* @__PURE__ */ b(oe, { children: [
10607
+ return i ? R : /* @__PURE__ */ b(oe, { children: [
10596
10608
  /* @__PURE__ */ l(
10597
10609
  Ye,
10598
10610
  {
@@ -10600,7 +10612,7 @@ function ut({
10600
10612
  path: t,
10601
10613
  depth: n,
10602
10614
  schema: x,
10603
- refLabel: F,
10615
+ refLabel: j,
10604
10616
  required: r,
10605
10617
  description: x.description,
10606
10618
  expandable: !0,
@@ -10608,14 +10620,14 @@ function ut({
10608
10620
  onToggle: () => S((ee) => !ee)
10609
10621
  }
10610
10622
  ),
10611
- k && /* @__PURE__ */ l(Gt, { depth: n, lineVariant: a, children: I })
10623
+ k && /* @__PURE__ */ l(Gt, { depth: n, lineVariant: a, children: R })
10612
10624
  ] });
10613
10625
  }
10614
10626
  const V = Gn(W), ue = Kn(W), te = V ?? ue, Ie = V ? "oneOf" : "anyOf";
10615
10627
  if (te) {
10616
- const I = te.map(
10628
+ const R = te.map(
10617
10629
  (ze, Z) => typeof ze.title == "string" ? ze.title : `case ${Z + 1}`
10618
- ), ee = i ? 1 : n + 1, de = te[M], G = At(de, o, s), be = G.circular ? G.schema : Ge(G.schema, o, s), Ee = !G.circular && dt(be), me = d && N === M ? d.slice(1) : null, Fe = Ee ? /* @__PURE__ */ l(yr, { schema: be, showBorder: !1 }) : /* @__PURE__ */ l(
10630
+ ), ee = i ? 1 : n + 1, de = te[I], G = At(de, o, s), be = G.circular ? G.schema : Ge(G.schema, o, s), Ee = !G.circular && dt(be), me = d && N === I ? d.slice(1) : null, Fe = Ee ? /* @__PURE__ */ l(yr, { schema: be, showBorder: !1 }) : /* @__PURE__ */ l(
10619
10631
  ut,
10620
10632
  {
10621
10633
  schema: de,
@@ -10630,15 +10642,15 @@ function ut({
10630
10642
  focusTokens: me,
10631
10643
  focusId: f
10632
10644
  },
10633
- M
10645
+ I
10634
10646
  ), ke = /* @__PURE__ */ l(
10635
10647
  Am,
10636
10648
  {
10637
10649
  variant: Ie,
10638
10650
  caseCount: te.length,
10639
- caseLabels: I,
10640
- selectedCase: M,
10641
- onSelectCase: j,
10651
+ caseLabels: R,
10652
+ selectedCase: I,
10653
+ onSelectCase: F,
10642
10654
  children: Fe
10643
10655
  }
10644
10656
  ), Ve = /* @__PURE__ */ b(oe, { children: [
@@ -10655,7 +10667,7 @@ function ut({
10655
10667
  path: t,
10656
10668
  depth: n,
10657
10669
  schema: x,
10658
- refLabel: F,
10670
+ refLabel: j,
10659
10671
  required: r,
10660
10672
  description: x.description,
10661
10673
  expandable: !0,
@@ -10666,15 +10678,15 @@ function ut({
10666
10678
  k && /* @__PURE__ */ l(Gt, { depth: n, lineVariant: a, children: Ve })
10667
10679
  ] });
10668
10680
  }
10669
- const q = (I, ee, de) => {
10670
- const G = At(I, o, s);
10681
+ const q = (R, ee, de) => {
10682
+ const G = At(R, o, s);
10671
10683
  if (G.circular)
10672
10684
  return /* @__PURE__ */ l(
10673
10685
  Ye,
10674
10686
  {
10675
10687
  path: ee,
10676
10688
  depth: de,
10677
- typeLabelOverride: `↩ ${I.$ref}`,
10689
+ typeLabelOverride: `↩ ${R.$ref}`,
10678
10690
  expandable: !1,
10679
10691
  expanded: !1,
10680
10692
  onToggle: () => {
@@ -10686,7 +10698,7 @@ function ut({
10686
10698
  return dt(be) ? /* @__PURE__ */ l(yr, { schema: be, showBorder: !1 }) : /* @__PURE__ */ l(
10687
10699
  ut,
10688
10700
  {
10689
- schema: I,
10701
+ schema: R,
10690
10702
  path: ee,
10691
10703
  depth: de,
10692
10704
  refStack: s,
@@ -10696,8 +10708,8 @@ function ut({
10696
10708
  defaultExpanded: c
10697
10709
  }
10698
10710
  );
10699
- }, Ne = (I) => {
10700
- const ee = W.properties ?? {}, de = new Set(W.required ?? []), G = Vn(W), be = hn(W), Ee = Jo(W);
10711
+ }, Ne = (R) => {
10712
+ const ee = W.properties ?? {}, de = new Set(W.required ?? []), G = Vn(W), be = mn(W), Ee = Jo(W);
10701
10713
  return /* @__PURE__ */ b(oe, { children: [
10702
10714
  Object.entries(ee).map(([me, Fe]) => {
10703
10715
  if (!ie(Fe)) return null;
@@ -10707,7 +10719,7 @@ function ut({
10707
10719
  {
10708
10720
  schema: Fe,
10709
10721
  path: `${t}.${me}`,
10710
- depth: I,
10722
+ depth: R,
10711
10723
  required: de.has(me),
10712
10724
  refStack: s,
10713
10725
  deref: o,
@@ -10723,14 +10735,14 @@ function ut({
10723
10735
  G !== null && ie(G) && /* @__PURE__ */ l(xr, { label: "Property names must adhere to:", children: q(
10724
10736
  G,
10725
10737
  `${t}.[propertyName]`,
10726
- I
10738
+ R
10727
10739
  ) }),
10728
10740
  Ee.map(([me, Fe]) => /* @__PURE__ */ l(
10729
10741
  ut,
10730
10742
  {
10731
10743
  schema: Fe,
10732
10744
  path: fm(t, me),
10733
- depth: I,
10745
+ depth: R,
10734
10746
  refStack: s,
10735
10747
  deref: o,
10736
10748
  ancestors: T,
@@ -10742,7 +10754,7 @@ function ut({
10742
10754
  be !== null && ie(be) && /* @__PURE__ */ l(xr, { label: "Additional properties must adhere to:", children: q(
10743
10755
  be,
10744
10756
  `${t}.[additionalProperty]`,
10745
- I
10757
+ R
10746
10758
  ) }),
10747
10759
  Xe(x) && ae(),
10748
10760
  tt(x) && _(x),
@@ -10758,18 +10770,18 @@ function ut({
10758
10770
  path: t,
10759
10771
  depth: n,
10760
10772
  schema: x,
10761
- refLabel: F,
10773
+ refLabel: j,
10762
10774
  required: r,
10763
10775
  description: x.description,
10764
10776
  expandable: !0,
10765
10777
  expanded: k,
10766
- onToggle: () => S((I) => !I)
10778
+ onToggle: () => S((R) => !R)
10767
10779
  }
10768
10780
  ),
10769
10781
  k && /* @__PURE__ */ l(Gt, { depth: n, lineVariant: a, children: Ne(n + 1) })
10770
10782
  ] });
10771
10783
  if (W.type === "array" || W.items) {
10772
- const I = sc(W), ee = I !== null, de = ee ? lm(W) : null, G = cm(W), be = G !== null, Ee = ee ? null : Jt(W), me = Ee !== null, Fe = ee || me || be || Xe(x) || tt(x) || nt(x), ke = `${t}[]`, Ve = i ? t : ke, ze = me ? At(Ee, o, s) : null, Z = (ze == null ? void 0 : ze.schema) ?? null, Te = Z ? Ge(Z, o, s) : null, Re = Z !== null && (T.objects.has(Z) || typeof (Ee == null ? void 0 : Ee.$ref) == "string" && T.refs.has(Ee.$ref)), xe = Z !== null ? {
10784
+ const R = sc(W), ee = R !== null, de = ee ? lm(W) : null, G = cm(W), be = G !== null, Ee = ee ? null : Jt(W), me = Ee !== null, Fe = ee || me || be || Xe(x) || tt(x) || nt(x), ke = `${t}[]`, Ve = i ? t : ke, ze = me ? At(Ee, o, s) : null, Z = (ze == null ? void 0 : ze.schema) ?? null, Te = Z ? Ge(Z, o, s) : null, Re = Z !== null && (T.objects.has(Z) || typeof (Ee == null ? void 0 : Ee.$ref) == "string" && T.refs.has(Ee.$ref)), xe = Z !== null ? {
10773
10785
  objects: new Set(T.objects).add(Z),
10774
10786
  refs: typeof (Ee == null ? void 0 : Ee.$ref) == "string" ? new Set(T.refs).add(Ee.$ref) : T.refs
10775
10787
  } : T, wt = !ee && !be && Te !== null && dt(Te), ot = Te != null && Te.properties ? Object.entries(Te.properties).filter(
@@ -10778,7 +10790,7 @@ function ut({
10778
10790
  Te && Array.isArray(Te.required) ? Te.required : []
10779
10791
  ), it = !ee && d && d[0] === "items" ? d.slice(1) : null, B = (U) => /* @__PURE__ */ b(oe, { children: [
10780
10792
  ee ? /* @__PURE__ */ b(oe, { children: [
10781
- I.map((ne, pe) => /* @__PURE__ */ l(
10793
+ R.map((ne, pe) => /* @__PURE__ */ l(
10782
10794
  ut,
10783
10795
  {
10784
10796
  schema: ne,
@@ -10857,7 +10869,7 @@ function ut({
10857
10869
  depth: n,
10858
10870
  schema: x,
10859
10871
  itemSchema: Te,
10860
- refLabel: F,
10872
+ refLabel: j,
10861
10873
  required: r,
10862
10874
  description: Br(
10863
10875
  x.description,
@@ -10877,7 +10889,7 @@ function ut({
10877
10889
  depth: n,
10878
10890
  schema: x,
10879
10891
  itemSchema: Te,
10880
- refLabel: F,
10892
+ refLabel: j,
10881
10893
  required: r,
10882
10894
  description: Br(
10883
10895
  x.description,
@@ -10902,7 +10914,7 @@ function ut({
10902
10914
  depth: n,
10903
10915
  schema: x,
10904
10916
  itemSchema: Te,
10905
- refLabel: F,
10917
+ refLabel: j,
10906
10918
  required: r,
10907
10919
  description: x.description,
10908
10920
  expandable: ee || me || be || Xe(x) || tt(x) || nt(x),
@@ -10914,12 +10926,12 @@ function ut({
10914
10926
  ] });
10915
10927
  }
10916
10928
  if (Xe(x) || tt(x) || nt(x)) {
10917
- const I = /* @__PURE__ */ b(oe, { children: [
10929
+ const R = /* @__PURE__ */ b(oe, { children: [
10918
10930
  Xe(x) && ae(),
10919
10931
  tt(x) && _(x),
10920
10932
  nt(x) && H()
10921
10933
  ] });
10922
- return i ? I : /* @__PURE__ */ b(oe, { children: [
10934
+ return i ? R : /* @__PURE__ */ b(oe, { children: [
10923
10935
  /* @__PURE__ */ l(
10924
10936
  Ye,
10925
10937
  {
@@ -10927,7 +10939,7 @@ function ut({
10927
10939
  path: t,
10928
10940
  depth: n,
10929
10941
  schema: x,
10930
- refLabel: F,
10942
+ refLabel: j,
10931
10943
  required: r,
10932
10944
  description: x.description,
10933
10945
  expandable: !0,
@@ -10935,7 +10947,7 @@ function ut({
10935
10947
  onToggle: () => S((ee) => !ee)
10936
10948
  }
10937
10949
  ),
10938
- k && /* @__PURE__ */ l(Gt, { depth: n, lineVariant: a, children: I })
10950
+ k && /* @__PURE__ */ l(Gt, { depth: n, lineVariant: a, children: R })
10939
10951
  ] });
10940
10952
  }
10941
10953
  return i ? null : /* @__PURE__ */ l(
@@ -10945,7 +10957,7 @@ function ut({
10945
10957
  path: t,
10946
10958
  depth: n,
10947
10959
  schema: x,
10948
- refLabel: F,
10960
+ refLabel: j,
10949
10961
  required: r,
10950
10962
  description: x.description,
10951
10963
  expandable: !1,
@@ -11062,7 +11074,7 @@ function an(e, t = () => {
11062
11074
  }
11063
11075
  function $m({ schema: e, providedExample: t }) {
11064
11076
  const n = t !== void 0, [r, s] = Y(n ? t : null), { deref: o } = Qe();
11065
- if (ce(() => {
11077
+ if (le(() => {
11066
11078
  if (n) {
11067
11079
  s(t);
11068
11080
  return;
@@ -11099,7 +11111,7 @@ function un({
11099
11111
  const d = pl(s), f = !a && Ff(s, i), [p, m] = Y(
11100
11112
  f && u === "example" ? "example" : "schema"
11101
11113
  );
11102
- return ce(() => {
11114
+ return le(() => {
11103
11115
  !f && p === "example" && m("schema");
11104
11116
  }, [f, p]), /* @__PURE__ */ b("div", { children: [
11105
11117
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between mb-2", children: [
@@ -11153,18 +11165,18 @@ function yc({
11153
11165
  }) {
11154
11166
  var m;
11155
11167
  const [o, i] = Y("payload");
11156
- ce(() => {
11168
+ le(() => {
11157
11169
  (s === "headers" || s === "payload") && i(s);
11158
11170
  }, [s]);
11159
11171
  const { deref: a } = Qe(), c = Co(), u = ge(
11160
- () => e.payload ? Ln(e.payload, a) : null,
11172
+ () => e.payload ? Pn(e.payload, a) : null,
11161
11173
  // protobufReady isn't read in the body, but resolveSchemaInput's result
11162
11174
  // silently depends on it via module-level state (lazyProtoToJsonSchema.ts)
11163
11175
  // — the memo must invalidate when it flips or a pending conversion never re-resolves.
11164
11176
  // eslint-disable-next-line react-hooks/exhaustive-deps
11165
11177
  [e.payload, a, c]
11166
11178
  ), d = ge(
11167
- () => e.headers ? Ln(e.headers, a) : null,
11179
+ () => e.headers ? Pn(e.headers, a) : null,
11168
11180
  // eslint-disable-next-line react-hooks/exhaustive-deps
11169
11181
  [e.headers, a, c]
11170
11182
  ), f = (m = e.examples) == null ? void 0 : m[0], p = e.description || e.payload || e.headers || e.deprecated || e.tags && e.tags.length > 0;
@@ -11177,7 +11189,7 @@ function yc({
11177
11189
  e.description && /* @__PURE__ */ l("p", { className: "text-sm text-foreground-secondary leading-relaxed", children: e.description }),
11178
11190
  (e.payload || e.headers) && /* @__PURE__ */ b("div", { children: [
11179
11191
  e.payload && e.headers && /* @__PURE__ */ l(
11180
- pn,
11192
+ hn,
11181
11193
  {
11182
11194
  tabs: [
11183
11195
  { id: "payload", name: "Payload" },
@@ -11228,7 +11240,7 @@ function yc({
11228
11240
  children: [
11229
11241
  /* @__PURE__ */ l("span", { children: t ? "Show less" : "Show more" }),
11230
11242
  /* @__PURE__ */ l(
11231
- Un,
11243
+ pn,
11232
11244
  {
11233
11245
  className: `w-3 h-3 transition-transform duration-200 ${t ? "rotate-180" : ""}`
11234
11246
  }
@@ -11240,7 +11252,7 @@ function yc({
11240
11252
  }
11241
11253
  function Om({ messageKey: e, message: t, first: n, isSelected: r, focusSection: s }) {
11242
11254
  const [o, i] = Y(!1);
11243
- return ce(() => {
11255
+ return le(() => {
11244
11256
  r && i(!0);
11245
11257
  }, [r]), /* @__PURE__ */ b(
11246
11258
  "tbody",
@@ -11288,14 +11300,14 @@ function Om({ messageKey: e, message: t, first: n, isSelected: r, focusSection:
11288
11300
  );
11289
11301
  }
11290
11302
  function xc({ messages: e, selectedKey: t, focusSection: n, layout: r }) {
11291
- const s = Object.entries(e), o = s.length ? /* @__PURE__ */ l("div", { className: "bg-surface rounded-lg border border-border overflow-hidden", children: /* @__PURE__ */ b("table", { className: "w-full", children: [
11303
+ const s = Object.entries(e), o = s.length ? /* @__PURE__ */ l("div", { className: "bg-surface rounded-lg border border-border overflow-hidden", children: /* @__PURE__ */ l("div", { className: "overflow-x-auto", children: /* @__PURE__ */ b("table", { className: "w-full", children: [
11292
11304
  /* @__PURE__ */ l("thead", { className: "bg-neutral-100", children: /* @__PURE__ */ b("tr", { children: [
11293
11305
  /* @__PURE__ */ l("th", { className: "px-6 py-5 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider", children: "Message" }),
11294
11306
  /* @__PURE__ */ l("th", { className: "px-6 py-5 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider", children: "Summary" }),
11295
11307
  /* @__PURE__ */ l("th", { className: "px-6 py-5 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider", children: "Details" })
11296
11308
  ] }) }),
11297
11309
  s.map(([i, a], c) => /* @__PURE__ */ l(Om, { messageKey: i, message: a, first: c === 0, isSelected: t === i, focusSection: n }, i))
11298
- ] }) }) : /* @__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." });
11310
+ ] }) }) }) : /* @__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." });
11299
11311
  return /* @__PURE__ */ l("div", { className: "flex justify-center w-full", children: /* @__PURE__ */ l(Dt, { content: o, stickySideContent: !1, layout: r }) });
11300
11312
  }
11301
11313
  function wc({ serverNames: e = [], current: t, setCurrent: n }) {
@@ -11357,7 +11369,7 @@ function Yn({
11357
11369
  className: o = ""
11358
11370
  }) {
11359
11371
  const [i, a] = Y(n), c = fn();
11360
- return ce(() => {
11372
+ return le(() => {
11361
11373
  r && a(!0);
11362
11374
  }, [r]), /* @__PURE__ */ b("div", { className: `rounded-lg border border-border overflow-hidden ${o}`, children: [
11363
11375
  /* @__PURE__ */ b(
@@ -11371,7 +11383,7 @@ function Yn({
11371
11383
  className: "flex w-full items-center justify-between px-4 py-3 bg-neutral-50 text-left hover:bg-neutral-100 transition-colors",
11372
11384
  children: [
11373
11385
  e,
11374
- i ? /* @__PURE__ */ l(Un, { className: "w-4 h-4 text-foreground-muted shrink-0" }) : /* @__PURE__ */ l(Ac, { className: "w-4 h-4 text-foreground-muted shrink-0" })
11386
+ i ? /* @__PURE__ */ l(pn, { className: "w-4 h-4 text-foreground-muted shrink-0" }) : /* @__PURE__ */ l(Ac, { className: "w-4 h-4 text-foreground-muted shrink-0" })
11375
11387
  ]
11376
11388
  }
11377
11389
  ),
@@ -11428,7 +11440,7 @@ function Yo({ securities: e }) {
11428
11440
  const t = ge(() => Mm(e), [e]), n = t.length > 1, [r, s] = Y(
11429
11441
  n ? null : ((u = t[0]) == null ? void 0 : u.id) ?? null
11430
11442
  );
11431
- ce(() => {
11443
+ le(() => {
11432
11444
  if (t.length === 0) {
11433
11445
  s(null);
11434
11446
  return;
@@ -11444,7 +11456,7 @@ function Yo({ securities: e }) {
11444
11456
  const o = t.find((d) => d.id === r), i = o == null ? void 0 : o.kind, a = o == null ? void 0 : o.scheme, c = a == null ? void 0 : a.description;
11445
11457
  return /* @__PURE__ */ b("div", { children: [
11446
11458
  n && /* @__PURE__ */ l(
11447
- pn,
11459
+ hn,
11448
11460
  {
11449
11461
  tabs: t,
11450
11462
  current: r,
@@ -11754,7 +11766,7 @@ function Tc({ servers: e, selectedServer: t, onSelectServer: n, focusSection: r
11754
11766
  ) });
11755
11767
  }
11756
11768
  const _c = Lu(function({ isOpen: t, side: n, onClose: r, title: s, headerActions: o, children: i, width: a = "w-[50rem]" }, c) {
11757
- ce(() => {
11769
+ le(() => {
11758
11770
  const $ = (E) => {
11759
11771
  E.key === "Escape" && r();
11760
11772
  };
@@ -11766,7 +11778,7 @@ const _c = Lu(function({ isOpen: t, side: n, onClose: r, title: s, headerActions
11766
11778
  sidePanelContainment: m,
11767
11779
  sidePanelTopOffset: h = 0
11768
11780
  } = Qe(), y = m === "component";
11769
- ce(() => {
11781
+ le(() => {
11770
11782
  if (!t || !f) return;
11771
11783
  const $ = y ? od(f, p) : bo(f);
11772
11784
  if ($)
@@ -11775,13 +11787,13 @@ const _c = Lu(function({ isOpen: t, side: n, onClose: r, title: s, headerActions
11775
11787
  const k = yo(p, y), S = (() => {
11776
11788
  if (!y) return { position: "fixed", inset: 0 };
11777
11789
  if (!k) return { position: "fixed", inset: 0 };
11778
- const $ = Math.max(h, k.top), E = Math.max(0, k.left), M = Math.min(window.innerHeight, k.bottom), j = Math.min(window.innerWidth, k.right);
11790
+ const $ = Math.max(h, k.top), E = Math.max(0, k.left), I = Math.min(window.innerHeight, k.bottom), F = Math.min(window.innerWidth, k.right);
11779
11791
  return {
11780
11792
  position: "fixed",
11781
11793
  top: $,
11782
11794
  left: E,
11783
- width: Math.max(0, j - E),
11784
- height: Math.max(0, M - $)
11795
+ width: Math.max(0, F - E),
11796
+ height: Math.max(0, I - $)
11785
11797
  };
11786
11798
  })();
11787
11799
  return f ? Fr(
@@ -12043,12 +12055,12 @@ const qm = 10;
12043
12055
  function eg(e) {
12044
12056
  return typeof e == "object" && e !== null && typeof e.$ref == "string";
12045
12057
  }
12046
- function $n(e, t, n = 0) {
12058
+ function On(e, t, n = 0) {
12047
12059
  if (n >= qm || t === null || typeof t != "object") return t;
12048
- if (Array.isArray(t)) return t.map((s) => $n(e, s, n + 1));
12049
- if (eg(t)) return $n(e, Tt(e, t), n + 1);
12060
+ if (Array.isArray(t)) return t.map((s) => On(e, s, n + 1));
12061
+ if (eg(t)) return On(e, Tt(e, t), n + 1);
12050
12062
  const r = {};
12051
- for (const [s, o] of Object.entries(t)) r[s] = $n(e, o, n + 1);
12063
+ for (const [s, o] of Object.entries(t)) r[s] = On(e, o, n + 1);
12052
12064
  return r;
12053
12065
  }
12054
12066
  function $c(e, t, n) {
@@ -12141,20 +12153,20 @@ function ig(e, t, n) {
12141
12153
  }
12142
12154
  }
12143
12155
  function ag(e, t, n) {
12144
- var Q, T, W, le, ae, A, _, H, V, ue, te, Ie, q, Ne;
12156
+ var Q, T, W, ce, ae, A, _, H, V, ue, te, Ie, q, Ne;
12145
12157
  const { operation: r, channel: s } = Oc(e, t), { servers: o, matchedServer: i, eligible: a } = Ic(e, s, r, n);
12146
12158
  if (!a) throw new Vm(t, n);
12147
12159
  const c = [];
12148
12160
  let u = {}, d = {}, f;
12149
12161
  if (n === "ws") {
12150
- const D = _a((T = (Q = s.bindings) == null ? void 0 : Q.ws) == null ? void 0 : T.query), X = _a((le = (W = s.bindings) == null ? void 0 : W.ws) == null ? void 0 : le.headers);
12151
- u = D.values, d = X.values, c.push(...D.placeholders.map((I) => `query param "${I}"`)), c.push(...X.placeholders.map((I) => `header "${I}"`));
12162
+ const D = _a((T = (Q = s.bindings) == null ? void 0 : Q.ws) == null ? void 0 : T.query), X = _a((ce = (W = s.bindings) == null ? void 0 : W.ws) == null ? void 0 : ce.headers);
12163
+ u = D.values, d = X.values, c.push(...D.placeholders.map((R) => `query param "${R}"`)), c.push(...X.placeholders.map((R) => `header "${R}"`));
12152
12164
  } else n === "kafka" && (f = (A = (ae = s.bindings) == null ? void 0 : ae.kafka) == null ? void 0 : A.topic);
12153
12165
  const p = s.address ?? "";
12154
12166
  let m = p;
12155
12167
  for (const [D, X] of Object.entries(s.parameters ?? {})) {
12156
- const I = vr(X, D);
12157
- m = m.replace(`{${D}}`, I.value), I.isPlaceholder && c.push(`channel parameter "${D}"`);
12168
+ const R = vr(X, D);
12169
+ m = m.replace(`{${D}}`, R.value), R.isPlaceholder && c.push(`channel parameter "${D}"`);
12158
12170
  }
12159
12171
  n === "kafka" && f && (m = f);
12160
12172
  const h = (_ = i ?? o[0]) == null ? void 0 : _.server, y = h ? `${h.protocol}://${h.host}${h.pathname ?? ""}` : "", k = (h == null ? void 0 : h.host) ?? "", S = Ca(e, h == null ? void 0 : h.security), $ = o.map(({ name: D, server: X }) => ({
@@ -12165,26 +12177,26 @@ function ag(e, t, n) {
12165
12177
  url: `${X.protocol}://${X.host}${X.pathname ?? ""}`,
12166
12178
  description: X.description,
12167
12179
  security: Ca(e, X.security)
12168
- })), E = r.messages !== void 0 ? Tt(e, r.messages[0]) : Tt(e, Object.values(s.messages ?? {})[0]), M = (H = E == null ? void 0 : E.examples) == null ? void 0 : H[0];
12169
- let j, C;
12170
- if (M)
12171
- j = M.name, C = M.payload;
12180
+ })), E = r.messages !== void 0 ? Tt(e, r.messages[0]) : Tt(e, Object.values(s.messages ?? {})[0]), I = (H = E == null ? void 0 : E.examples) == null ? void 0 : H[0];
12181
+ let F, C;
12182
+ if (I)
12183
+ F = I.name, C = I.payload;
12172
12184
  else if ((E == null ? void 0 : E.payload) !== void 0) {
12173
12185
  if (C = ro(e, E.payload), C === void 0) throw new Na(t);
12174
12186
  c.push("message payload (no explicit example — generated from its schema)");
12175
12187
  } else throw new Na(t);
12176
- const N = (E == null ? void 0 : E.payload) !== void 0 ? $n(e, E.payload) : void 0, v = (E == null ? void 0 : E.headers) !== void 0 ? $n(e, E.headers) : void 0, x = r.action === "send" ? "send" : "receive";
12177
- let F;
12188
+ const N = (E == null ? void 0 : E.payload) !== void 0 ? On(e, E.payload) : void 0, v = (E == null ? void 0 : E.headers) !== void 0 ? On(e, E.headers) : void 0, x = r.action === "send" ? "send" : "receive";
12189
+ let j;
12178
12190
  if (n === "kafka") {
12179
12191
  const D = (ue = (V = E == null ? void 0 : E.bindings) == null ? void 0 : V.kafka) == null ? void 0 : ue.key, X = D ? vr(D, "kafka message key") : void 0;
12180
12192
  X != null && X.isPlaceholder && c.push("kafka message key");
12181
- const I = vr((Ie = (te = r.bindings) == null ? void 0 : te.kafka) == null ? void 0 : Ie.clientId, "kafka clientId");
12182
- I.isPlaceholder && c.push("kafka clientId");
12193
+ const R = vr((Ie = (te = r.bindings) == null ? void 0 : te.kafka) == null ? void 0 : Ie.clientId, "kafka clientId");
12194
+ R.isPlaceholder && c.push("kafka clientId");
12183
12195
  let ee;
12184
- x === "receive" && (ee = vr((Ne = (q = r.bindings) == null ? void 0 : q.kafka) == null ? void 0 : Ne.groupId, "kafka consumer group id"), ee.isPlaceholder && c.push("kafka consumer group id")), F = {
12196
+ x === "receive" && (ee = vr((Ne = (q = r.bindings) == null ? void 0 : q.kafka) == null ? void 0 : Ne.groupId, "kafka consumer group id"), ee.isPlaceholder && c.push("kafka consumer group id")), j = {
12185
12197
  key: X == null ? void 0 : X.value,
12186
12198
  groupId: ee == null ? void 0 : ee.value,
12187
- clientId: I.value
12199
+ clientId: R.value
12188
12200
  };
12189
12201
  }
12190
12202
  return {
@@ -12201,7 +12213,7 @@ function ag(e, t, n) {
12201
12213
  operationSummary: r.summary,
12202
12214
  operationDescription: r.description,
12203
12215
  message: {
12204
- name: j,
12216
+ name: F,
12205
12217
  payload: C,
12206
12218
  title: (E == null ? void 0 : E.title) ?? (E == null ? void 0 : E.name),
12207
12219
  summary: E == null ? void 0 : E.summary,
@@ -12213,7 +12225,7 @@ function ag(e, t, n) {
12213
12225
  placeholders: c,
12214
12226
  info: e.info,
12215
12227
  security: S,
12216
- ...F ? { kafka: F } : {}
12228
+ ...j ? { kafka: j } : {}
12217
12229
  };
12218
12230
  }
12219
12231
  function lg(e) {
@@ -12912,14 +12924,14 @@ async function Ig(e) {
12912
12924
  ft.registerLanguage(e, n.default);
12913
12925
  }
12914
12926
  function Rg({ operationId: e }) {
12915
- const { document: t, showCodeSamples: n } = zn(), r = fn(), s = ge(
12927
+ const { document: t, showCodeSamples: n } = Un(), r = fn(), s = ge(
12916
12928
  () => e ? Tg(t, e) : [],
12917
12929
  [t, e]
12918
12930
  ), o = ge(
12919
12931
  () => _g(t, e, s),
12920
12932
  [t, e, s]
12921
12933
  ), [i, a] = Y(null), c = (i == null ? void 0 : i.document) === t && i.operationId === e ? i.selection : o, [u, d] = c.split(":"), f = $g(u), [, p] = Y(() => lo(f));
12922
- ce(() => {
12934
+ le(() => {
12923
12935
  p(lo(f));
12924
12936
  let h = !1;
12925
12937
  return Ig(f).then(() => {
@@ -13065,11 +13077,10 @@ function Lc({ operations: e, selectedKey: t = null, onSelectKey: n, focusSection
13065
13077
  onKeyDown: (E) => {
13066
13078
  E.key !== "Enter" && E.key !== " " || (E.preventDefault(), o(f));
13067
13079
  },
13068
- className: `group cursor-pointer ${S ? "bg-neutral-50" : ""}`,
13080
+ className: `cursor-pointer hover:bg-neutral-50 ${S ? "bg-neutral-50" : ""}`,
13069
13081
  children: [
13070
- /* @__PURE__ */ l("td", { className: "px-6 py-4 max-w-0 w-full group-hover:bg-neutral-50", children: h && /* @__PURE__ */ l(Lt, { address: h, parameters: y, truncate: !0 }) }),
13071
- /* @__PURE__ */ l("td", { className: "px-6 py-4 w-32 group-hover:bg-neutral-50", children: /* @__PURE__ */ l(Pt, { method: p.action, className: "w-24" }) }),
13072
- /* @__PURE__ */ l("td", { className: "group-hover:bg-neutral-50" })
13082
+ /* @__PURE__ */ l("td", { className: "px-6 py-4 max-w-0 w-full", children: h && /* @__PURE__ */ l(Lt, { address: h, parameters: y, truncate: !0 }) }),
13083
+ /* @__PURE__ */ l("td", { className: "px-6 py-4 w-32", children: /* @__PURE__ */ l(Pt, { method: p.action, className: "w-24" }) })
13073
13084
  ]
13074
13085
  },
13075
13086
  f
@@ -13092,8 +13103,7 @@ function Lc({ operations: e, selectedKey: t = null, onSelectKey: n, focusSection
13092
13103
  content: /* @__PURE__ */ l("div", { className: "bg-surface rounded-lg border border-border overflow-hidden", children: /* @__PURE__ */ b("table", { className: "w-full", children: [
13093
13104
  /* @__PURE__ */ l("thead", { className: "bg-neutral-100 w-full", children: /* @__PURE__ */ b("tr", { children: [
13094
13105
  /* @__PURE__ */ l("th", { className: "px-6 py-5 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider", children: "Operation" }),
13095
- /* @__PURE__ */ l("th", { className: "px-6 py-3 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider", children: "Method" }),
13096
- /* @__PURE__ */ l("th", { className: "px-6 py-3 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider" })
13106
+ /* @__PURE__ */ l("th", { className: "px-6 py-3 text-left text-xs font-medium text-foreground-muted uppercase tracking-wider", children: "Method" })
13097
13107
  ] }) }),
13098
13108
  /* @__PURE__ */ l("tbody", { className: "bg-surface divide-y divide-border", children: a })
13099
13109
  ] }) }),
@@ -13117,7 +13127,7 @@ function Xr({ schemas: e, selectedKey: t, focusTarget: n, layout: r }) {
13117
13127
  const { deref: s } = Qe(), o = Co(), i = ge(
13118
13128
  () => Object.entries(e).map(([c, u]) => [
13119
13129
  c,
13120
- Ln(u, s)
13130
+ Pn(u, s)
13121
13131
  ]),
13122
13132
  // protobufReady isn't read in the body, but resolveSchemaInput's result
13123
13133
  // silently depends on it via module-level state (lazyProtoToJsonSchema.ts)
@@ -13184,7 +13194,7 @@ function Xr({ schemas: e, selectedKey: t, focusTarget: n, layout: r }) {
13184
13194
  }
13185
13195
  const Lg = (e) => e === "operations" || e === "messages" || e === "schemas";
13186
13196
  function Pg({ asyncapi: e, config: t }) {
13187
- var T, W, le, ae;
13197
+ var T, W, ce, ae;
13188
13198
  const n = t.show ?? {}, [r, s] = Y(!1), [o, i] = Y(!1), a = n.search !== !1 || n.copyMarkdown !== !1, c = n.info !== !1 && ec(e.info), u = a || c, d = [
13189
13199
  ...n.operations !== !1 ? [{ id: "operations", name: "Operations", icon: Ur }] : [],
13190
13200
  ...n.messages !== !1 ? [{ id: "messages", name: "Messages", icon: Xa }] : [],
@@ -13196,8 +13206,8 @@ function Pg({ asyncapi: e, config: t }) {
13196
13206
  selected: S,
13197
13207
  setSelectedKey: $,
13198
13208
  selectedNavItem: E,
13199
- handleSearchSelect: M,
13200
- handleNavItemSelect: j,
13209
+ handleSearchSelect: I,
13210
+ handleNavItemSelect: F,
13201
13211
  handleNavServerSelect: C,
13202
13212
  handleContentTabChange: N,
13203
13213
  focusSection: v,
@@ -13213,7 +13223,7 @@ function Pg({ asyncapi: e, config: t }) {
13213
13223
  { id: "servers", visible: n.servers !== !1 }
13214
13224
  ],
13215
13225
  searchQuery: f
13216
- }), F = e.servers ? Object.keys(e.servers) : [], Q = h === "operations" ? /* @__PURE__ */ l(
13226
+ }), j = e.servers ? Object.keys(e.servers) : [], Q = h === "operations" ? /* @__PURE__ */ l(
13217
13227
  Lc,
13218
13228
  {
13219
13229
  operations: e.operations ?? {},
@@ -13249,7 +13259,7 @@ function Pg({ asyncapi: e, config: t }) {
13249
13259
  query: f,
13250
13260
  onQueryChange: p,
13251
13261
  results: m,
13252
- onSelectResult: M,
13262
+ onSelectResult: I,
13253
13263
  onOpenChange: s
13254
13264
  }
13255
13265
  ),
@@ -13264,7 +13274,7 @@ function Pg({ asyncapi: e, config: t }) {
13264
13274
  }
13265
13275
  ),
13266
13276
  n.info !== !1 && /* @__PURE__ */ l("div", { id: "info-panel", children: /* @__PURE__ */ l(nc, { ...e.info, showLogo: !1 }) }),
13267
- n.servers !== !1 && F.length > 0 && /* @__PURE__ */ l("div", { id: `server-${S.servers ?? F[0]}`, children: /* @__PURE__ */ l(
13277
+ n.servers !== !1 && j.length > 0 && /* @__PURE__ */ l("div", { id: `server-${S.servers ?? j[0]}`, children: /* @__PURE__ */ l(
13268
13278
  Tc,
13269
13279
  {
13270
13280
  servers: e.servers,
@@ -13277,14 +13287,14 @@ function Pg({ asyncapi: e, config: t }) {
13277
13287
  yd,
13278
13288
  {
13279
13289
  operations: n.operations !== !1 ? e.operations : void 0,
13280
- messages: n.messages !== !1 ? (le = e.components) == null ? void 0 : le.messages : void 0,
13290
+ messages: n.messages !== !1 ? (ce = e.components) == null ? void 0 : ce.messages : void 0,
13281
13291
  schemas: n.schemas !== !1 ? (ae = e.components) == null ? void 0 : ae.schemas : void 0,
13282
13292
  servers: n.servers !== !1 ? e.servers : void 0,
13283
13293
  hasInfo: n.info !== !1,
13284
13294
  sidebarConfig: t.sidebar,
13285
13295
  activeTab: k,
13286
13296
  onTabChange: y,
13287
- onItemSelect: j,
13297
+ onItemSelect: F,
13288
13298
  onSelectServer: C,
13289
13299
  selectedItem: E
13290
13300
  }
@@ -13300,18 +13310,18 @@ const Pc = (e) => (
13300
13310
  // by it. Resolving here would put it outside its own boundary.
13301
13311
  /* @__PURE__ */ l(Da, { fallback: e.errorFallback, onError: e.onError, children: /* @__PURE__ */ l(Dg, { ...e }) })
13302
13312
  ), Dg = (e) => {
13303
- const t = e.asyncapi, n = ge(() => Fn(t), [t]), r = e.kind;
13304
- ce(() => {
13313
+ const t = e.asyncapi, n = ge(() => zn(t), [t]), r = e.kind;
13314
+ le(() => {
13305
13315
  r === "resolved" && n !== t && mo(t) && console.warn(
13306
13316
  '[apiuikit] <AsyncAPI kind="resolved"> received a document that still contains $ref nodes. They were resolved anyway; fix the upstream resolution or drop the kind prop.'
13307
13317
  );
13308
13318
  }, [r, t, n]);
13309
- const s = e.config ?? Bn;
13319
+ const s = e.config ?? jn;
13310
13320
  return /* @__PURE__ */ l(Pg, { asyncapi: n, config: s });
13311
13321
  };
13312
13322
  function Xo({
13313
13323
  document: e,
13314
- config: t = Bn,
13324
+ config: t = jn,
13315
13325
  className: n = "",
13316
13326
  children: r
13317
13327
  }) {
@@ -13592,7 +13602,7 @@ function Vg({
13592
13602
  ] });
13593
13603
  }
13594
13604
  const Jg = uo(
13595
- () => import("./CodeSamples-DmiNojAj.js").then(({ CodeSamples: e }) => ({ default: e }))
13605
+ () => import("./CodeSamples-C5u3VGKi.js").then(({ CodeSamples: e }) => ({ default: e }))
13596
13606
  );
13597
13607
  function Yg(e) {
13598
13608
  return e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2");
@@ -13637,8 +13647,8 @@ function Zg({
13637
13647
  const r = Object.keys(e), [s, o] = Y(r[0]), i = e[s], a = Object.keys((i == null ? void 0 : i.content) ?? {}), [c, u] = Y(a[0]), d = c ? (C = i == null ? void 0 : i.content) == null ? void 0 : C[c] : void 0, f = (i == null ? void 0 : i.headers) ?? {}, p = (i == null ? void 0 : i.links) ?? {}, [m, h] = Y("body"), y = a.length > 0 && !!d, k = Object.keys(f).length > 0, S = Object.keys(p).length > 0, $ = [
13638
13648
  ...y ? [{ id: "body", name: "Body" }] : [],
13639
13649
  ...k ? [{ id: "headers", name: "Headers" }] : []
13640
- ], E = $.length > 1, M = $.some((v) => v.id === m) ? m : (N = $[0]) == null ? void 0 : N.id, j = $.length > 0;
13641
- return ce(() => {
13650
+ ], E = $.length > 1, I = $.some((v) => v.id === m) ? m : (N = $[0]) == null ? void 0 : N.id, F = $.length > 0;
13651
+ return le(() => {
13642
13652
  u(Object.keys((i == null ? void 0 : i.content) ?? {})[0]), h("body");
13643
13653
  }, [s]), /* @__PURE__ */ b("div", { children: [
13644
13654
  /* @__PURE__ */ l("div", { className: "flex items-center gap-1.5 flex-wrap mb-3", role: "tablist", "aria-label": "Response status", children: r.map((v) => /* @__PURE__ */ l(
@@ -13653,16 +13663,16 @@ function Zg({
13653
13663
  v
13654
13664
  )) }),
13655
13665
  (i == null ? void 0 : i.description) && /* @__PURE__ */ l("p", { className: "text-sm text-foreground-secondary mb-3", children: i.description }),
13656
- j ? /* @__PURE__ */ b(oe, { children: [
13666
+ F ? /* @__PURE__ */ b(oe, { children: [
13657
13667
  E && /* @__PURE__ */ l(
13658
- pn,
13668
+ hn,
13659
13669
  {
13660
13670
  tabs: $,
13661
- current: M,
13671
+ current: I,
13662
13672
  onChange: (v) => h(v)
13663
13673
  }
13664
13674
  ),
13665
- /* @__PURE__ */ l("div", { className: E ? "mt-4" : void 0, children: M === "headers" ? /* @__PURE__ */ l(
13675
+ /* @__PURE__ */ l("div", { className: E ? "mt-4" : void 0, children: I === "headers" ? /* @__PURE__ */ l(
13666
13676
  un,
13667
13677
  {
13668
13678
  schema: qg(f),
@@ -13719,7 +13729,7 @@ function e0({ parameters: e }) {
13719
13729
  const s = t.some((c) => c.location === n) ? n : t[0].location, o = t.find((c) => c.location === s), i = Qg(e.filter((c) => c.in === s));
13720
13730
  return /* @__PURE__ */ b("div", { children: [
13721
13731
  t.length > 1 && /* @__PURE__ */ l(
13722
- pn,
13732
+ hn,
13723
13733
  {
13724
13734
  tabs: t.map(({ location: c, label: u }) => ({ id: c, name: u.replace(/ Parameters$/, "") })),
13725
13735
  current: s,
@@ -13759,7 +13769,7 @@ function t0({
13759
13769
  ":"
13760
13770
  ] }),
13761
13771
  s && i && /* @__PURE__ */ l(
13762
- pn,
13772
+ hn,
13763
13773
  {
13764
13774
  tabs: [
13765
13775
  { id: "parameters", name: "Parameters" },
@@ -13876,20 +13886,20 @@ function Hc({
13876
13886
  isOperationKnown: c,
13877
13887
  depth: u = 0
13878
13888
  }) {
13879
- var $, E, M;
13880
- const d = (n.parameters ?? []).filter((j) => j.in !== "query" && j.in !== "path"), f = n.security ?? o ?? [], p = n.responses ?? {}, m = (($ = n.requestBody) == null ? void 0 : $.content) ?? {}, h = n.operationId ? Yg(n.operationId) : `${e.toUpperCase()} ${t}`, y = /* @__PURE__ */ new Map();
13881
- for (const j of f)
13882
- for (const [C, N] of Object.entries(j)) {
13889
+ var $, E, I;
13890
+ const d = (n.parameters ?? []).filter((F) => F.in !== "query" && F.in !== "path"), f = n.security ?? o ?? [], p = n.responses ?? {}, m = (($ = n.requestBody) == null ? void 0 : $.content) ?? {}, h = n.operationId ? Yg(n.operationId) : `${e.toUpperCase()} ${t}`, y = /* @__PURE__ */ new Map();
13891
+ for (const F of f)
13892
+ for (const [C, N] of Object.entries(F)) {
13883
13893
  if (N.length === 0) continue;
13884
13894
  const v = y.get(C) ?? [];
13885
13895
  y.set(C, Array.from(/* @__PURE__ */ new Set([...v, ...N])));
13886
13896
  }
13887
- const k = Array.from(new Set(f.flatMap((j) => Object.keys(j)))).map((j) => {
13888
- const C = i == null ? void 0 : i[j];
13897
+ const k = Array.from(new Set(f.flatMap((F) => Object.keys(F)))).map((F) => {
13898
+ const C = i == null ? void 0 : i[F];
13889
13899
  if (!C) return null;
13890
- const N = y.get(j);
13900
+ const N = y.get(F);
13891
13901
  return N ? { ...C, requiredScopes: N } : C;
13892
- }).filter((j) => !!j), S = u === 0;
13902
+ }).filter((F) => !!F), S = u === 0;
13893
13903
  return /* @__PURE__ */ b(
13894
13904
  "div",
13895
13905
  {
@@ -13946,7 +13956,7 @@ function Hc({
13946
13956
  label: h,
13947
13957
  parameters: d,
13948
13958
  requestBodyContent: m,
13949
- requestBodyDescription: (M = n.requestBody) == null ? void 0 : M.description,
13959
+ requestBodyDescription: (I = n.requestBody) == null ? void 0 : I.description,
13950
13960
  responses: p,
13951
13961
  callbacks: n.callbacks,
13952
13962
  id: r,
@@ -13990,16 +14000,16 @@ function jr({
13990
14000
  layout: a
13991
14001
  }) {
13992
14002
  var C;
13993
- const c = (N) => s == null ? void 0 : s(N), u = ge(() => On(e), [e]), d = ge(() => {
13994
- var v, x, F;
14003
+ const c = (N) => s == null ? void 0 : s(N), u = ge(() => In(e), [e]), d = ge(() => {
14004
+ var v, x, j;
13995
14005
  const N = /* @__PURE__ */ new Map();
13996
14006
  for (const Q of u) {
13997
- const T = ((F = (x = (v = e[Q.path]) == null ? void 0 : v[Q.method]) == null ? void 0 : x.tags) == null ? void 0 : F[0]) || "Other", W = N.get(T) ?? [];
14007
+ const T = ((j = (x = (v = e[Q.path]) == null ? void 0 : v[Q.method]) == null ? void 0 : x.tags) == null ? void 0 : j[0]) || "Other", W = N.get(T) ?? [];
13998
14008
  W.push(Q), N.set(T, W);
13999
14009
  }
14000
14010
  return Array.from(N, ([Q, T]) => ({ label: Q, items: T }));
14001
14011
  }, [u, e]), [f, p] = Y(() => /* @__PURE__ */ new Set()), m = f.size === 0;
14002
- ce(() => {
14012
+ le(() => {
14003
14013
  if (!r) return;
14004
14014
  const N = d.find(({ items: v }) => v.some(({ key: x }) => x === r));
14005
14015
  N && p((v) => {
@@ -14011,15 +14021,15 @@ function jr({
14011
14021
  const h = ge(() => {
14012
14022
  var v, x;
14013
14023
  const N = /* @__PURE__ */ new Map();
14014
- for (const { key: F, method: Q, path: T } of u) {
14024
+ for (const { key: j, method: Q, path: T } of u) {
14015
14025
  const W = (x = (v = e[T]) == null ? void 0 : v[Q]) == null ? void 0 : x.operationId;
14016
- W && N.set(W, F);
14026
+ W && N.set(W, j);
14017
14027
  }
14018
14028
  return N;
14019
14029
  }, [u, e]);
14020
14030
  if (u.length === 0)
14021
14031
  return null;
14022
- const y = r ? u.find((N) => N.key === r) : null, k = y ? (C = e[y.path]) == null ? void 0 : C[y.method] : null, S = ({ key: N, method: v, path: x }, F) => {
14032
+ const y = r ? u.find((N) => N.key === r) : null, k = y ? (C = e[y.path]) == null ? void 0 : C[y.method] : null, S = ({ key: N, method: v, path: x }, j) => {
14023
14033
  var W;
14024
14034
  const Q = r === N, T = Bi(e[x], (W = e[x]) == null ? void 0 : W[v]);
14025
14035
  return /* @__PURE__ */ b(
@@ -14028,16 +14038,16 @@ function jr({
14028
14038
  id: `${i}-${N}`,
14029
14039
  onClick: () => c(N),
14030
14040
  role: "button",
14031
- tabIndex: F ? 0 : -1,
14032
- "aria-hidden": !F,
14041
+ tabIndex: j ? 0 : -1,
14042
+ "aria-hidden": !j,
14033
14043
  "aria-label": `${v.toUpperCase()} ${x}`,
14034
14044
  "aria-current": Q ? "true" : void 0,
14035
- onKeyDown: (le) => {
14036
- le.key !== "Enter" && le.key !== " " || (le.preventDefault(), c(N));
14045
+ onKeyDown: (ce) => {
14046
+ ce.key !== "Enter" && ce.key !== " " || (ce.preventDefault(), c(N));
14037
14047
  },
14038
- className: `group transition-[opacity,visibility] duration-300 ease-in-out ${F ? `cursor-pointer opacity-100 visible ${Q ? "bg-neutral-50" : ""}` : "pointer-events-none invisible opacity-0"}`,
14048
+ className: `group transition-[opacity,visibility] duration-300 ease-in-out ${j ? `cursor-pointer opacity-100 visible ${Q ? "bg-neutral-50" : ""}` : "pointer-events-none invisible opacity-0"}`,
14039
14049
  children: [
14040
- /* @__PURE__ */ l("td", { className: `px-6 max-w-0 w-full group-hover:bg-neutral-50 transition-[padding] duration-300 ease-in-out ${F ? "py-2" : "py-0"}`, children: /* @__PURE__ */ l("div", { className: `overflow-hidden transition-[max-height] duration-300 ease-in-out ${F ? "max-h-12" : "max-h-0"}`, children: /* @__PURE__ */ l(
14050
+ /* @__PURE__ */ l("td", { className: `px-6 max-w-0 w-full group-hover:bg-neutral-50 transition-[padding] duration-300 ease-in-out ${j ? "py-2" : "py-0"}`, children: /* @__PURE__ */ l("div", { className: `overflow-hidden transition-[max-height] duration-300 ease-in-out ${j ? "max-h-12" : "max-h-0"}`, children: /* @__PURE__ */ l(
14041
14051
  Lt,
14042
14052
  {
14043
14053
  address: x,
@@ -14046,28 +14056,28 @@ function jr({
14046
14056
  className: "text-xs"
14047
14057
  }
14048
14058
  ) }) }),
14049
- /* @__PURE__ */ l("td", { className: `px-6 w-28 group-hover:bg-neutral-50 transition-[padding] duration-300 ease-in-out ${F ? "py-2" : "py-0"}`, children: /* @__PURE__ */ l("div", { className: `overflow-hidden transition-[max-height] duration-300 ease-in-out ${F ? "max-h-12" : "max-h-0"}`, children: /* @__PURE__ */ l(Pt, { method: v, className: "w-20" }) }) })
14059
+ /* @__PURE__ */ l("td", { className: `px-6 w-28 group-hover:bg-neutral-50 transition-[padding] duration-300 ease-in-out ${j ? "py-2" : "py-0"}`, children: /* @__PURE__ */ l("div", { className: `overflow-hidden transition-[max-height] duration-300 ease-in-out ${j ? "max-h-12" : "max-h-0"}`, children: /* @__PURE__ */ l(Pt, { method: v, className: "w-20" }) }) })
14050
14060
  ]
14051
14061
  },
14052
14062
  N
14053
14063
  );
14054
14064
  }, $ = d.map(({ label: N, items: v }, x) => {
14055
- const F = !f.has(N), Q = `${i}-group-${x}-${N.toLowerCase().replace(/[^a-z0-9]+/g, "-")}`;
14065
+ const j = !f.has(N), Q = `${i}-group-${x}-${N.toLowerCase().replace(/[^a-z0-9]+/g, "-")}`;
14056
14066
  return /* @__PURE__ */ b(Ma, { children: [
14057
14067
  /* @__PURE__ */ l("tbody", { className: "border-y border-border first:border-t-0", children: /* @__PURE__ */ l("tr", { className: "bg-neutral-50/70", children: /* @__PURE__ */ l("th", { colSpan: 2, scope: "rowgroup", className: "p-0 text-left", children: /* @__PURE__ */ b(
14058
14068
  "button",
14059
14069
  {
14060
14070
  type: "button",
14061
14071
  "aria-label": `${N} endpoints (${v.length})`,
14062
- "aria-expanded": F,
14072
+ "aria-expanded": j,
14063
14073
  "aria-controls": Q,
14064
14074
  onClick: () => p((T) => {
14065
14075
  const W = new Set(T);
14066
- return F ? W.add(N) : W.delete(N), W;
14076
+ return j ? W.add(N) : W.delete(N), W;
14067
14077
  }),
14068
14078
  className: "group/header flex w-full items-center gap-3 px-6 py-3.5 text-left hover:bg-neutral-100/80 transition-colors",
14069
14079
  children: [
14070
- /* @__PURE__ */ l("span", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-md border border-border bg-surface text-foreground-muted shadow-sm transition-colors group-hover/header:border-neutral-300 group-hover/header:text-foreground-secondary", children: F ? /* @__PURE__ */ l(Un, { className: "h-2.5 w-2.5" }) : /* @__PURE__ */ l(Ac, { className: "h-2.5 w-2.5" }) }),
14080
+ /* @__PURE__ */ l("span", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-md border border-border bg-surface text-foreground-muted shadow-sm transition-colors group-hover/header:border-neutral-300 group-hover/header:text-foreground-secondary", children: j ? /* @__PURE__ */ l(pn, { className: "h-2.5 w-2.5" }) : /* @__PURE__ */ l(Ac, { className: "h-2.5 w-2.5" }) }),
14071
14081
  /* @__PURE__ */ l("span", { className: "min-w-0 flex-1 truncate text-sm font-semibold tracking-wide text-foreground-secondary", children: N }),
14072
14082
  /* @__PURE__ */ l("span", { className: "inline-flex min-w-6 items-center justify-center rounded-full bg-neutral-200/70 px-2 py-0.5 text-xs font-medium tabular-nums text-foreground-muted", children: v.length })
14073
14083
  ]
@@ -14077,13 +14087,13 @@ function jr({
14077
14087
  "tbody",
14078
14088
  {
14079
14089
  id: Q,
14080
- "aria-hidden": !F,
14081
- className: `bg-surface ${F ? "divide-y divide-border" : ""}`,
14082
- children: v.map((T) => S(T, F))
14090
+ "aria-hidden": !j,
14091
+ className: `bg-surface ${j ? "divide-y divide-border" : ""}`,
14092
+ children: v.map((T) => S(T, j))
14083
14093
  }
14084
14094
  )
14085
14095
  ] }, N);
14086
- }), E = Bi(y ? e[y.path] : void 0, k), M = y ? /* @__PURE__ */ b("div", { className: "flex items-center gap-2 min-w-0", children: [
14096
+ }), E = Bi(y ? e[y.path] : void 0, k), I = y ? /* @__PURE__ */ b("div", { className: "flex items-center gap-2 min-w-0", children: [
14087
14097
  /* @__PURE__ */ l(Pt, { method: y.method }),
14088
14098
  /* @__PURE__ */ l("div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ l(
14089
14099
  Lt,
@@ -14129,7 +14139,7 @@ function jr({
14129
14139
  isOpen: !!y,
14130
14140
  side: "right",
14131
14141
  onClose: () => c(null),
14132
- title: M,
14142
+ title: I,
14133
14143
  children: y && k && /* @__PURE__ */ l(
14134
14144
  Hc,
14135
14145
  {
@@ -14153,7 +14163,7 @@ function jr({
14153
14163
  }
14154
14164
  const i0 = (e) => e === "endpoints" || e === "webhooks" || e === "schemas";
14155
14165
  function a0({ openapi: e, config: t }) {
14156
- var W, le, ae, A;
14166
+ var W, ce, ae, A;
14157
14167
  const n = t.show ?? {}, [r, s] = Y(!1), [o, i] = Y(!1), a = n.search !== !1 || n.copyMarkdown !== !1, c = n.info !== !1 && ec(e.info), u = a || c, d = e.webhooks ?? {}, f = Object.keys(d).length > 0, p = [
14158
14168
  ...n.endpoints !== !1 ? [{ id: "endpoints", name: "Endpoints", icon: Ur }] : [],
14159
14169
  ...f && n.webhooks !== !1 ? [{ id: "webhooks", name: "Webhooks", icon: ko }] : [],
@@ -14163,13 +14173,13 @@ function a0({ openapi: e, config: t }) {
14163
14173
  focusTab: S,
14164
14174
  navActiveSection: $,
14165
14175
  selected: E,
14166
- setSelectedKey: M,
14167
- selectedNavItem: j,
14176
+ setSelectedKey: I,
14177
+ selectedNavItem: F,
14168
14178
  handleSearchSelect: C,
14169
14179
  handleNavItemSelect: N,
14170
14180
  handleNavServerSelect: v,
14171
14181
  handleContentTabChange: x,
14172
- schemaFocusTarget: F
14182
+ schemaFocusTarget: j
14173
14183
  } = dl({
14174
14184
  tabs: p,
14175
14185
  defaultTab: "endpoints",
@@ -14188,16 +14198,16 @@ function a0({ openapi: e, config: t }) {
14188
14198
  security: e.security,
14189
14199
  securitySchemes: (W = e.components) == null ? void 0 : W.securitySchemes,
14190
14200
  selectedKey: E.endpoints,
14191
- onSelectKey: (_) => M("endpoints", _)
14201
+ onSelectKey: (_) => I("endpoints", _)
14192
14202
  }
14193
14203
  ) : k === "webhooks" ? /* @__PURE__ */ l(
14194
14204
  jr,
14195
14205
  {
14196
14206
  paths: d,
14197
14207
  security: e.security,
14198
- securitySchemes: (le = e.components) == null ? void 0 : le.securitySchemes,
14208
+ securitySchemes: (ce = e.components) == null ? void 0 : ce.securitySchemes,
14199
14209
  selectedKey: E.webhooks,
14200
- onSelectKey: (_) => M("webhooks", _),
14210
+ onSelectKey: (_) => I("webhooks", _),
14201
14211
  columnLabel: "Webhook",
14202
14212
  idPrefix: "webhook"
14203
14213
  }
@@ -14206,7 +14216,7 @@ function a0({ openapi: e, config: t }) {
14206
14216
  {
14207
14217
  schemas: ((ae = e.components) == null ? void 0 : ae.schemas) ?? {},
14208
14218
  selectedKey: E.schemas,
14209
- focusTarget: F
14219
+ focusTarget: j
14210
14220
  }
14211
14221
  ) : null;
14212
14222
  return /* @__PURE__ */ l(Xo, { document: e, config: t, children: /* @__PURE__ */ b("div", { className: `px-4 ${u && p.length > 0 ? "pt-14" : ""}`, children: [
@@ -14250,7 +14260,7 @@ function a0({ openapi: e, config: t }) {
14250
14260
  {
14251
14261
  servers: e.servers,
14252
14262
  selectedServer: E.servers,
14253
- onSelectServer: (_) => M("servers", _)
14263
+ onSelectServer: (_) => I("servers", _)
14254
14264
  }
14255
14265
  ) }),
14256
14266
  n.sidebar !== !1 && /* @__PURE__ */ l(
@@ -14265,7 +14275,7 @@ function a0({ openapi: e, config: t }) {
14265
14275
  onTabChange: S,
14266
14276
  onItemSelect: N,
14267
14277
  onSelectServer: v,
14268
- selectedItem: j
14278
+ selectedItem: F
14269
14279
  }
14270
14280
  ),
14271
14281
  /* @__PURE__ */ l(Wa, { tabs: p, current: k, onChange: x }),
@@ -14279,13 +14289,13 @@ const Wc = (e) => (
14279
14289
  // by it. Resolving here would put it outside its own boundary.
14280
14290
  /* @__PURE__ */ l(Da, { fallback: e.errorFallback, onError: e.onError, children: /* @__PURE__ */ l(l0, { ...e }) })
14281
14291
  ), l0 = (e) => {
14282
- const t = e.openapi, n = ge(() => Fn(t), [t]), r = e.kind;
14283
- ce(() => {
14292
+ const t = e.openapi, n = ge(() => zn(t), [t]), r = e.kind;
14293
+ le(() => {
14284
14294
  r === "resolved" && n !== t && mo(t) && console.warn(
14285
14295
  '[apiuikit] <OpenAPI kind="resolved"> received a document that still contains $ref nodes. They were resolved anyway; fix the upstream resolution or drop the kind prop.'
14286
14296
  );
14287
14297
  }, [r, t, n]);
14288
- const s = e.config ?? Bn;
14298
+ const s = e.config ?? jn;
14289
14299
  return /* @__PURE__ */ l(a0, { openapi: n, config: s });
14290
14300
  };
14291
14301
  function Gc(e) {
@@ -14313,7 +14323,7 @@ const ln = (e) => {
14313
14323
  var t;
14314
14324
  return ln((t = e.info) == null ? void 0 : t.description);
14315
14325
  },
14316
- targets: (e) => On(e.paths ?? {}).map(({ key: t, method: n, path: r }) => {
14326
+ targets: (e) => In(e.paths ?? {}).map(({ key: t, method: n, path: r }) => {
14317
14327
  var o, i;
14318
14328
  const s = (i = (o = e.paths) == null ? void 0 : o[r]) == null ? void 0 : i[n];
14319
14329
  return {
@@ -14442,7 +14452,7 @@ function y0(e) {
14442
14452
  }
14443
14453
  async function x0() {
14444
14454
  try {
14445
- const e = await import("./index-Mbbr0TR2.js").then((n) => n.i), t = e.default ?? e;
14455
+ const e = await import("./index-DKGx9erP.js").then((n) => n.i), t = e.default ?? e;
14446
14456
  if (typeof t != "function")
14447
14457
  throw new Error("Unexpected export shape from '@asyncapi/parser/browser'.");
14448
14458
  return t;
@@ -14456,7 +14466,7 @@ async function Kc(e) {
14456
14466
  try {
14457
14467
  const t = await x0(), n = new t();
14458
14468
  g0(n);
14459
- const { registerProtobufSchemaParser: r } = await import("./protobufSchemaParser-bHp3BKik.js");
14469
+ const { registerProtobufSchemaParser: r } = await import("./protobufSchemaParser-5O-3561f.js");
14460
14470
  r(n);
14461
14471
  const { document: s, diagnostics: o } = await n.parse(e);
14462
14472
  return {
@@ -14488,7 +14498,7 @@ function w0(e) {
14488
14498
  }
14489
14499
  function U0({ raw: e, config: t, onDiagnostics: n, errorFallback: r, onError: s }) {
14490
14500
  const [o, i] = Y(null), a = Be(n);
14491
- return a.current = n, ce(() => {
14501
+ return a.current = n, le(() => {
14492
14502
  let c = !0;
14493
14503
  return Kc(e).then(({ document: u, diagnostics: d }) => {
14494
14504
  var f;
@@ -14509,7 +14519,7 @@ function U0({ raw: e, config: t, onDiagnostics: n, errorFallback: r, onError: s
14509
14519
  }
14510
14520
  async function k0() {
14511
14521
  try {
14512
- return await import("./index-DggFmM--.js");
14522
+ return await import("./index-C65x4n-2.js");
14513
14523
  } catch (e) {
14514
14524
  throw console.error("[apiuikit] Failed to load '@scalar/openapi-parser':", e), new Error(
14515
14525
  "[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."
@@ -14547,7 +14557,7 @@ async function H0(e, t) {
14547
14557
  }
14548
14558
  function W0({ raw: e, config: t, onDiagnostics: n, errorFallback: r, onError: s }) {
14549
14559
  const [o, i] = Y(null), a = Be(n);
14550
- return a.current = n, ce(() => {
14560
+ return a.current = n, le(() => {
14551
14561
  let c = !0;
14552
14562
  return Vc(e).then(({ document: u, diagnostics: d }) => {
14553
14563
  var f;
@@ -14573,10 +14583,10 @@ function Jc(e, t, n) {
14573
14583
  children: i
14574
14584
  }) {
14575
14585
  const a = Ra(zr), c = ge(
14576
- () => s ? Fn(s) : null,
14586
+ () => s ? zn(s) : null,
14577
14587
  [s]
14578
14588
  ), u = !!a && a.specType !== n;
14579
- if (ce(() => {
14589
+ if (le(() => {
14580
14590
  u && console.warn(
14581
14591
  `[apiuikit] A ${t} section is rendered inside a ${a.specType} document provider, which cannot supply the document it needs. ` + (c ? "Using the section's own `document` prop instead." : `Wrap it in <${t}Provider> or pass it a \`document\` prop.`)
14582
14592
  );
@@ -14595,7 +14605,7 @@ function G0({
14595
14605
  config: t,
14596
14606
  children: n
14597
14607
  }) {
14598
- const r = ge(() => Fn(e), [e]);
14608
+ const r = ge(() => zn(e), [e]);
14599
14609
  return /* @__PURE__ */ l(go, { document: r, config: t, children: n });
14600
14610
  }
14601
14611
  const qn = Jc(go, "AsyncAPI", "asyncapi");
@@ -14659,12 +14669,12 @@ function Z0({
14659
14669
  config: t,
14660
14670
  children: n
14661
14671
  }) {
14662
- const r = ge(() => Fn(e), [e]);
14672
+ const r = ge(() => zn(e), [e]);
14663
14673
  return /* @__PURE__ */ l(Xo, { document: r, config: t, children: n });
14664
14674
  }
14665
14675
  const tr = Jc(Xo, "OpenAPI", "openapi");
14666
14676
  function nr() {
14667
- const e = zn();
14677
+ const e = Un();
14668
14678
  return e.specType === "openapi", e.document;
14669
14679
  }
14670
14680
  function T0({ layout: e }) {
@@ -14737,18 +14747,18 @@ function nb({ layout: e, ...t }) {
14737
14747
  }
14738
14748
  export {
14739
14749
  Pc as A,
14740
- Bn as B,
14750
+ Jf as B,
14741
14751
  Ko as C,
14742
- F0 as D,
14752
+ bl as D,
14743
14753
  Da as E,
14744
- j0 as F,
14745
- B0 as G,
14746
- Sd as H,
14747
- X0 as I,
14748
- xl as J,
14749
- z0 as K,
14750
- H0 as L,
14751
- J0 as M,
14754
+ jn as F,
14755
+ F0 as G,
14756
+ j0 as H,
14757
+ B0 as I,
14758
+ Sd as J,
14759
+ xl as K,
14760
+ z0 as L,
14761
+ H0 as M,
14752
14762
  f0 as N,
14753
14763
  Wc as O,
14754
14764
  Qe as P,
@@ -14759,25 +14769,25 @@ export {
14759
14769
  P0 as c,
14760
14770
  wl as d,
14761
14771
  Ig as e,
14762
- G0 as f,
14772
+ X0 as f,
14763
14773
  vl as g,
14764
14774
  $g as h,
14765
14775
  Gr as i,
14766
- U0 as j,
14767
- q0 as k,
14768
- nb as l,
14769
- Z0 as m,
14770
- W0 as n,
14776
+ J0 as j,
14777
+ V0 as k,
14778
+ G0 as l,
14779
+ U0 as m,
14780
+ Y0 as n,
14771
14781
  Xf as o,
14772
- tb as p,
14773
- Q0 as q,
14782
+ K0 as p,
14783
+ q0 as q,
14774
14784
  p0 as r,
14775
- eb as s,
14776
- V0 as t,
14777
- zn as u,
14778
- bc as v,
14779
- Y0 as w,
14780
- K0 as x,
14781
- Jf as y,
14782
- bl as z
14785
+ nb as s,
14786
+ Z0 as t,
14787
+ Un as u,
14788
+ W0 as v,
14789
+ tb as w,
14790
+ Q0 as x,
14791
+ eb as y,
14792
+ bc as z
14783
14793
  };