@danxbot/ui 24.1.0 → 24.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -178,11 +178,17 @@ const UO = {
178
178
  signature: [["path", { d: "m21 17-2.156-1.868A.5.5 0 0 0 18 15.5v.5a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1c0-2.545-3.991-3.97-8.5-4a1 1 0 0 0 0 5c4.153 0 4.745-11.295 5.708-13.5a2.5 2.5 0 1 1 3.31 3.284" }], ["path", { d: "M3 21h18" }]],
179
179
  /* --- pacing --- */
180
180
  timer: [["line", { x1: "10", x2: "14", y1: "2", y2: "2" }], ["line", { x1: "12", x2: "15", y1: "14", y2: "11" }], ["circle", { cx: "12", cy: "14", r: "8" }]],
181
+ /* --- linked accounts --- */
182
+ "user-round-check": [["path", { d: "M2 21a8 8 0 0 1 13.292-6" }], ["circle", { cx: "10", cy: "8", r: "5" }], ["path", { d: "m16 19 2 2 4-4" }]],
181
183
  /* --- tournament --- */
182
184
  "circle-pause": [["circle", { cx: "12", cy: "12", r: "10" }], ["line", { x1: "10", x2: "10", y1: "15", y2: "9" }], ["line", { x1: "14", x2: "14", y1: "15", y2: "9" }]],
183
185
  crown: [["path", { d: "M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z" }], ["path", { d: "M5 21h14" }]],
184
186
  medal: [["path", { d: "M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15" }], ["path", { d: "M11 12 5.12 2.2" }], ["path", { d: "m13 12 5.88-9.8" }], ["path", { d: "M8 7h8" }], ["circle", { cx: "12", cy: "17", r: "5" }], ["path", { d: "M12 18v-2h-.5" }]],
185
187
  mountain: [["path", { d: "m8 3 4 8 5-5 5 15H2L8 3z" }]],
188
+ "piggy-bank": [["path", { d: "M11 17h3v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a3.16 3.16 0 0 0 2-2h1a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1a5 5 0 0 0-2-4V3a4 4 0 0 0-3.2 1.6l-.3.4H11a6 6 0 0 0-6 6v1a5 5 0 0 0 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z" }], ["path", { d: "M16 10h.01" }], ["path", { d: "M2 8v1a2 2 0 0 0 2 2h1" }]],
189
+ radio: [["path", { d: "M16.247 7.761a6 6 0 0 1 0 8.478" }], ["path", { d: "M19.075 4.933a10 10 0 0 1 0 14.134" }], ["path", { d: "M4.925 19.067a10 10 0 0 1 0-14.134" }], ["path", { d: "M7.753 16.239a6 6 0 0 1 0-8.478" }], ["circle", { cx: "12", cy: "12", r: "2" }]],
190
+ scale: [["path", { d: "m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z" }], ["path", { d: "m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z" }], ["path", { d: "M7 21h10" }], ["path", { d: "M12 3v18" }], ["path", { d: "M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2" }]],
191
+ signal: [["path", { d: "M2 20h.01" }], ["path", { d: "M7 20v-4" }], ["path", { d: "M12 20v-8" }], ["path", { d: "M17 20V8" }], ["path", { d: "M22 4v16" }]],
186
192
  trophy: [["path", { d: "M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978" }], ["path", { d: "M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978" }], ["path", { d: "M18 9h1.5a1 1 0 0 0 0-5H18" }], ["path", { d: "M4 22h16" }], ["path", { d: "M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z" }], ["path", { d: "M6 9H4.5a1 1 0 0 1 0-5H6" }]],
187
193
  /* --- text authoring --- */
188
194
  "align-center": [["path", { d: "M21 5H3" }], ["path", { d: "M17 12H7" }], ["path", { d: "M19 19H5" }]],
@@ -16968,7 +16974,7 @@ const Wg = /* @__PURE__ */ k.forwardRef(function(t, n) {
16968
16974
  });
16969
16975
  });
16970
16976
  process.env.NODE_ENV !== "production" && (Wg.displayName = "Input");
16971
- const ez = ht({
16977
+ const e5 = ht({
16972
16978
  base: [
16973
16979
  /* dx-field carries the WebKit search-clear suppression in components.css —
16974
16980
  without it a `type="search"` field with a trailing clear action renders
@@ -17049,7 +17055,7 @@ function Dt(e) {
17049
17055
  Wg,
17050
17056
  {
17051
17057
  ref: i,
17052
- className: H(ez({ size: n, hasLeading: c, hasTrailing: d }), t),
17058
+ className: H(e5({ size: n, hasLeading: c, hasTrailing: d }), t),
17053
17059
  ...a
17054
17060
  }
17055
17061
  );
@@ -17062,7 +17068,7 @@ function Dt(e) {
17062
17068
  /* @__PURE__ */ u("span", { className: H(Tw({ side: "trailing", size: n }), "[&>*]:pointer-events-auto"), children: l })
17063
17069
  ] }) : p;
17064
17070
  }
17065
- const tz = ht({
17071
+ const t5 = ht({
17066
17072
  base: [
17067
17073
  "w-full min-w-0 font-sans text-primary",
17068
17074
  "border border-field-border bg-field",
@@ -17095,13 +17101,13 @@ const tz = ht({
17095
17101
  },
17096
17102
  defaultVariants: { size: "md", resize: "vertical" }
17097
17103
  });
17098
- function nz({ className: e, size: t, resize: n, rows: r = 4, ref: o, ...s }) {
17104
+ function n5({ className: e, size: t, resize: n, rows: r = 4, ref: o, ...s }) {
17099
17105
  return /* @__PURE__ */ u(
17100
17106
  Wg,
17101
17107
  {
17102
17108
  ref: o,
17103
17109
  render: /* @__PURE__ */ u("textarea", { rows: r }),
17104
- className: H(tz({ size: t, resize: n }), e),
17110
+ className: H(t5({ size: t, resize: n }), e),
17105
17111
  ...s
17106
17112
  }
17107
17113
  );
@@ -17129,7 +17135,7 @@ function Zc(e) {
17129
17135
  function fE(e) {
17130
17136
  return typeof e?.then == "function";
17131
17137
  }
17132
- function rz(e, t, n) {
17138
+ function r5(e, t, n) {
17133
17139
  if (t === "")
17134
17140
  throw new Error(
17135
17141
  `${e}: ${n} refused a value with an empty reason. A refusal nobody can read leaves the field open with nothing beside it — return ${n === "validate" ? "null" : "nothing"} to accept the value, or say why it cannot be used.`
@@ -17185,7 +17191,7 @@ function hE(e) {
17185
17191
  f.current += 1, b();
17186
17192
  }
17187
17193
  function y(N, I) {
17188
- rz(t.current.component, N, I), g(!1), s(N), c((A) => A + 1);
17194
+ r5(t.current.component, N, I), g(!1), s(N), c((A) => A + 1);
17189
17195
  }
17190
17196
  function w(N) {
17191
17197
  g(!1), a(t.current.failureMessage), t.current.onError?.(N), c((I) => I + 1);
@@ -17276,7 +17282,7 @@ function hE(e) {
17276
17282
  whenIdle: S
17277
17283
  };
17278
17284
  }
17279
- const oz = ht({
17285
+ const o5 = ht({
17280
17286
  slots: {
17281
17287
  /* THE ONE GEOMETRY RECIPE. Every property that can move text inside the
17282
17288
  box lives here, on the SAME element in both states — there is no second
@@ -17355,33 +17361,33 @@ function bE(e, t) {
17355
17361
  const o = document.createTextNode(t);
17356
17362
  r.insertNode(o), r.setStartAfter(o), r.setEndAfter(o), n.removeAllRanges(), n.addRange(r), e.normalize();
17357
17363
  }
17358
- const sz = /* @__PURE__ */ new Set([
17364
+ const s5 = /* @__PURE__ */ new Set([
17359
17365
  "insertFromPaste",
17360
17366
  "insertFromPasteAsQuotation",
17361
17367
  "insertFromDrop",
17362
17368
  "insertReplacementText",
17363
17369
  "insertFromYank"
17364
17370
  ]);
17365
- function iz(e, t) {
17371
+ function i5(e, t) {
17366
17372
  return t === "multiline" ? e : t === "wrap" ? e.replace(/\r\n|\r|\n/g, " ") : e.replace(/\r\n|\r|\n/g, "");
17367
17373
  }
17368
- function az(e, t, n) {
17374
+ function a5(e, t, n) {
17369
17375
  const r = xe(n);
17370
17376
  r.current = n, _e(() => {
17371
17377
  const o = e.current;
17372
17378
  if (!o) return;
17373
17379
  function s(i) {
17374
- if (!sz.has(i.inputType)) return;
17380
+ if (!s5.has(i.inputType)) return;
17375
17381
  i.preventDefault();
17376
17382
  const a = e.current;
17377
17383
  if (!a) return;
17378
- const l = i.dataTransfer?.getData("text/plain") ?? i.data ?? "", c = iz(l, t);
17384
+ const l = i.dataTransfer?.getData("text/plain") ?? i.data ?? "", c = i5(l, t);
17379
17385
  bE(a, c), r.current();
17380
17386
  }
17381
17387
  return o.addEventListener("beforeinput", s), () => o.removeEventListener("beforeinput", s);
17382
17388
  }, [e, t]);
17383
17389
  }
17384
- function lz({ delayMs: e, session: t, elRef: n, openRef: r, composingRef: o, ...s }) {
17390
+ function l5({ delayMs: e, session: t, elRef: n, openRef: r, composingRef: o, ...s }) {
17385
17391
  const i = e !== void 0, [a, l] = ne(!1), c = xe(null), d = xe(""), f = xe(""), p = xe("none"), h = xe(!1), m = xe(s);
17386
17392
  m.current = s;
17387
17393
  function g() {
@@ -17515,7 +17521,7 @@ function iee(e) {
17515
17521
  );
17516
17522
  qg("InlineEdit", p, h);
17517
17523
  const { inlineEdit: y, keyNames: w } = he(), C = i ?? y.empty, S = l === "multiline", R = e.failureMessage ?? // I18N-ALLOW: key ids of the retry chord, named by the catalog through chordLabel
17518
- y.failure(Su(S && c === void 0 ? "ctrl+enter" : "enter", w)), E = oz({ size: a }), N = p !== void 0, [I, A] = fi(p, !1, h), [D, P] = ne(t.length === 0), T = xe(null), $ = xe(!1), L = xe(!1), F = xe(!1), _ = hE({
17524
+ y.failure(Su(S && c === void 0 ? "ctrl+enter" : "enter", w)), E = o5({ size: a }), N = p !== void 0, [I, A] = fi(p, !1, h), [D, P] = ne(t.length === 0), T = xe(null), $ = xe(!1), L = xe(!1), F = xe(!1), _ = hE({
17519
17525
  component: "InlineEdit",
17520
17526
  value: t,
17521
17527
  onCommit: n,
@@ -17523,7 +17529,7 @@ function iee(e) {
17523
17529
  failureMessage: R,
17524
17530
  close: oe,
17525
17531
  refocus: () => T.current?.focus()
17526
- }), z = lz({
17532
+ }), z = l5({
17527
17533
  delayMs: c,
17528
17534
  session: _,
17529
17535
  elRef: T,
@@ -17548,7 +17554,7 @@ function iee(e) {
17548
17554
  function Y() {
17549
17555
  return T.current ? mE(T.current) : "";
17550
17556
  }
17551
- az(T, l, te);
17557
+ a5(T, l, te);
17552
17558
  function K() {
17553
17559
  N || G || W || O || A(!0);
17554
17560
  }
@@ -17630,8 +17636,8 @@ function iee(e) {
17630
17636
  "data-editing": W || void 0,
17631
17637
  className: H(
17632
17638
  E.box(),
17633
- cz({ editing: W, controlled: N, unavailable: G, pending: O, refused: V !== null }),
17634
- uz(l, W),
17639
+ c5({ editing: W, controlled: N, unavailable: G, pending: O, refused: V !== null }),
17640
+ u5(l, W),
17635
17641
  g
17636
17642
  ),
17637
17643
  onClick: K,
@@ -17654,7 +17660,7 @@ function iee(e) {
17654
17660
  ] });
17655
17661
  return G ? /* @__PURE__ */ u(Gt, { content: d.reason, children: Se }) : Se;
17656
17662
  }
17657
- function cz({
17663
+ function c5({
17658
17664
  editing: e,
17659
17665
  controlled: t,
17660
17666
  unavailable: n,
@@ -17677,7 +17683,7 @@ function cz({
17677
17683
  n && ["cursor-not-allowed", "hover:border-transparent hover:bg-transparent"]
17678
17684
  );
17679
17685
  }
17680
- function uz(e, t) {
17686
+ function u5(e, t) {
17681
17687
  return e === "multiline" ? "whitespace-pre-wrap break-words" : e === "wrap" ? "whitespace-normal break-words" : t ? "whitespace-nowrap overflow-x-auto" : "truncate";
17682
17688
  }
17683
17689
  function aee({
@@ -17691,7 +17697,7 @@ function aee({
17691
17697
  }) {
17692
17698
  qg("EditGutter", n, r);
17693
17699
  const [a, l] = fi(n, !1, r), c = xe(null), d = xe(null), f = !a && !o, p = xe("");
17694
- pz(c, d, f), hz(c, d, a);
17700
+ p5(c, d, f), h5(c, d, a);
17695
17701
  function h(m) {
17696
17702
  p.current !== "touch" || !f || m.target.closest("a, button, input, textarea, select, [role='button']") === null && l(!0);
17697
17703
  }
@@ -17733,33 +17739,33 @@ function aee({
17733
17739
  }
17734
17740
  );
17735
17741
  }
17736
- function dz(e, t) {
17742
+ function d5(e, t) {
17737
17743
  return document.createTreeWalker(e, NodeFilter.SHOW_TEXT, {
17738
17744
  acceptNode: (r) => t !== null && t.contains(r) || (r.textContent ?? "").trim() === "" ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT
17739
17745
  }).nextNode();
17740
17746
  }
17741
- function fz(e) {
17747
+ function f5(e) {
17742
17748
  for (let t = e.parentElement; t !== null && t !== document.body; t = t.parentElement) {
17743
17749
  const { overflowX: n } = getComputedStyle(t);
17744
17750
  if (n !== "visible") return t;
17745
17751
  }
17746
17752
  return null;
17747
17753
  }
17748
- function pz(e, t, n) {
17754
+ function p5(e, t, n) {
17749
17755
  const r = xe(!1);
17750
17756
  _e(() => {
17751
17757
  const o = e.current, s = t.current;
17752
17758
  if (!n || !o || !s) return;
17753
17759
  function i() {
17754
17760
  if (!o || !s) return;
17755
- const l = o.getBoundingClientRect(), c = s.getBoundingClientRect(), d = dz(o, s);
17761
+ const l = o.getBoundingClientRect(), c = s.getBoundingClientRect(), d = d5(o, s);
17756
17762
  if (d !== null) {
17757
17763
  const p = document.createRange();
17758
17764
  p.selectNodeContents(d);
17759
17765
  const h = p.getClientRects()[0];
17760
17766
  h !== void 0 && h.height > 0 && (s.style.top = `${h.top - l.top + (h.height - c.height) / 2}px`);
17761
17767
  }
17762
- const f = fz(o);
17768
+ const f = f5(o);
17763
17769
  f !== null && !r.current && c.left < f.getBoundingClientRect().left && (r.current = !0, console.warn(
17764
17770
  "[danxbot] EditGutter: an ancestor with `overflow` other than visible clips the pencil — it sits in the gutter LEFT of the field, outside its box. Leave that gutter inside the clipping box (padding on the clipping element, or move the overflow further out).",
17765
17771
  f
@@ -17770,7 +17776,7 @@ function pz(e, t, n) {
17770
17776
  return a.observe(o), () => a.disconnect();
17771
17777
  }, [e, t, n]);
17772
17778
  }
17773
- function hz(e, t, n) {
17779
+ function h5(e, t, n) {
17774
17780
  const r = xe(n);
17775
17781
  _e(() => {
17776
17782
  const o = r.current && !n;
@@ -17829,7 +17835,7 @@ function Kg(e, t, n) {
17829
17835
  }
17830
17836
  return r;
17831
17837
  }
17832
- function mz(e, t, n) {
17838
+ function m5(e, t, n) {
17833
17839
  const r = Kg(e, t, n);
17834
17840
  return r.length ? { start: r[0].start, end: r[r.length - 1].end } : null;
17835
17841
  }
@@ -17837,7 +17843,7 @@ function Cn(e, t, n, r, o) {
17837
17843
  if (!(!t || r <= n))
17838
17844
  for (const s of Kg(e, n, r)) t.span(s.start, s.end, o);
17839
17845
  }
17840
- const $h = /[!-/:-@[-`{-~]/, gz = 8;
17846
+ const $h = /[!-/:-@[-`{-~]/, g5 = 8;
17841
17847
  function Ow(e, t, n, r = "text", o = 0, s = e.text.length) {
17842
17848
  const i = Yg(yE(e, t, o, s, 0));
17843
17849
  return n && Lh(i, e, n, r), ps(i);
@@ -17863,28 +17869,28 @@ function yE(e, t, n, r, o) {
17863
17869
  }
17864
17870
  }
17865
17871
  if (d === "`") {
17866
- const f = bz(s, a, r);
17872
+ const f = b5(s, a, r);
17867
17873
  if (f) {
17868
17874
  c(a), i.push(f), a = f.b, l = a;
17869
17875
  continue;
17870
17876
  }
17871
17877
  }
17872
17878
  if (d === "<") {
17873
- const f = yz(s, a, r);
17879
+ const f = y5(s, a, r);
17874
17880
  if (f) {
17875
17881
  c(a), i.push(f), a = f.b, l = a;
17876
17882
  continue;
17877
17883
  }
17878
17884
  }
17879
17885
  if (d === "&") {
17880
- const f = Cz(s, a, r);
17886
+ const f = C5(s, a, r);
17881
17887
  if (f) {
17882
17888
  c(a), i.push(f), a = f.b, l = a;
17883
17889
  continue;
17884
17890
  }
17885
17891
  }
17886
17892
  if (d === "[" || d === "!" && s[a + 1] === "[") {
17887
- const f = Rz(e, t, a, r, o);
17893
+ const f = R5(e, t, a, r, o);
17888
17894
  if (f) {
17889
17895
  c(a), i.push(f), a = f.b, l = a;
17890
17896
  continue;
@@ -17893,7 +17899,7 @@ function yE(e, t, n, r, o) {
17893
17899
  if (d === "*" || d === "_" || d === "~") {
17894
17900
  let f = a;
17895
17901
  for (; f < r && s[f] === d; ) f++;
17896
- c(a), i.push(Nz(s, a, f, d, n, r)), a = f, l = a;
17902
+ c(a), i.push(N5(s, a, f, d, n, r)), a = f, l = a;
17897
17903
  continue;
17898
17904
  }
17899
17905
  if (d === `
@@ -17913,8 +17919,8 @@ function yE(e, t, n, r, o) {
17913
17919
  a += 1, l = a;
17914
17920
  continue;
17915
17921
  }
17916
- if ((d === "h" || d === "w") && Sz(s, a, n)) {
17917
- const f = Ez(s, a, r);
17922
+ if ((d === "h" || d === "w") && S5(s, a, n)) {
17923
+ const f = E5(s, a, r);
17918
17924
  if (f) {
17919
17925
  c(a), i.push(f), a = f.b, l = a;
17920
17926
  continue;
@@ -17924,7 +17930,7 @@ function yE(e, t, n, r, o) {
17924
17930
  }
17925
17931
  return c(r), i;
17926
17932
  }
17927
- function bz(e, t, n) {
17933
+ function b5(e, t, n) {
17928
17934
  let r = t;
17929
17935
  for (; r < n && e[r] === "`"; ) r++;
17930
17936
  const o = r - t;
@@ -17944,14 +17950,14 @@ function bz(e, t, n) {
17944
17950
  }
17945
17951
  return null;
17946
17952
  }
17947
- const vz = /^<([a-zA-Z][a-zA-Z0-9+.-]{1,31}:[^<>\u0000-\u0020]*)>/, xz = /^<([^\s<>@]+@[^\s<>@]+\.[^\s<>@]+)>/;
17948
- function yz(e, t, n) {
17949
- const r = e.slice(t, n), o = vz.exec(r);
17953
+ const v5 = /^<([a-zA-Z][a-zA-Z0-9+.-]{1,31}:[^<>\u0000-\u0020]*)>/, x5 = /^<([^\s<>@]+@[^\s<>@]+\.[^\s<>@]+)>/;
17954
+ function y5(e, t, n) {
17955
+ const r = e.slice(t, n), o = v5.exec(r);
17950
17956
  if (o) return { t: "auto", a: t, b: t + o[0].length, href: o[1], label: o[1] };
17951
- const s = xz.exec(r);
17957
+ const s = x5.exec(r);
17952
17958
  return s ? { t: "auto", a: t, b: t + s[0].length, href: `mailto:${s[1]}`, label: s[1] } : null;
17953
17959
  }
17954
- const wz = {
17960
+ const w5 = {
17955
17961
  amp: "&",
17956
17962
  lt: "<",
17957
17963
  gt: ">",
@@ -17993,12 +17999,12 @@ const wz = {
17993
17999
  para: "¶",
17994
18000
  frac12: "½",
17995
18001
  frac14: "¼"
17996
- }, kz = /^&(?:#[xX]([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{1,31}));/;
17997
- function Cz(e, t, n) {
17998
- const r = kz.exec(e.slice(t, n));
18002
+ }, k5 = /^&(?:#[xX]([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{1,31}));/;
18003
+ function C5(e, t, n) {
18004
+ const r = k5.exec(e.slice(t, n));
17999
18005
  if (!r) return null;
18000
18006
  let o;
18001
- return r[1] !== void 0 ? o = Aw(parseInt(r[1], 16)) : r[2] !== void 0 ? o = Aw(parseInt(r[2], 10)) : o = wz[r[3]], o === void 0 ? null : { t: "text", a: t, b: t + r[0].length, value: o, esc: !0 };
18007
+ return r[1] !== void 0 ? o = Aw(parseInt(r[1], 16)) : r[2] !== void 0 ? o = Aw(parseInt(r[2], 10)) : o = w5[r[3]], o === void 0 ? null : { t: "text", a: t, b: t + r[0].length, value: o, esc: !0 };
18002
18008
  }
18003
18009
  function Aw(e) {
18004
18010
  if (!Number.isFinite(e) || e <= 0 || e > 1114111) return "�";
@@ -18008,11 +18014,11 @@ function Aw(e) {
18008
18014
  return "�";
18009
18015
  }
18010
18016
  }
18011
- function Sz(e, t, n) {
18017
+ function S5(e, t, n) {
18012
18018
  const r = t > n ? e[t - 1] : " ";
18013
18019
  return /[\w/@.-]/.test(r) ? !1 : /^(https?:\/\/|www\.)/.test(e.slice(t, t + 8));
18014
18020
  }
18015
- function Ez(e, t, n) {
18021
+ function E5(e, t, n) {
18016
18022
  const r = /^(?:https?:\/\/|www\.)[^\s<>]+/.exec(e.slice(t, n));
18017
18023
  if (!r) return null;
18018
18024
  let o = r[0];
@@ -18030,19 +18036,19 @@ function Dw(e, t) {
18030
18036
  for (const r of e) r === t && n++;
18031
18037
  return n;
18032
18038
  }
18033
- function Nz(e, t, n, r, o, s) {
18039
+ function N5(e, t, n, r, o, s) {
18034
18040
  const i = t > o ? e[t - 1] : " ", a = n < s ? e[n] : " ", l = /\s/.test(i), c = /\s/.test(a), d = $h.test(i), f = $h.test(a), p = !c && (!f || l || d), h = !l && (!d || c || f), m = r === "_" ? p && (!h || d) : p, g = r === "_" ? h && (!p || f) : h;
18035
18041
  return { t: "delim", a: t, b: n, ch: r, len: n - t, olen: n - t, canOpen: m, canClose: g };
18036
18042
  }
18037
- function Rz(e, t, n, r, o) {
18043
+ function R5(e, t, n, r, o) {
18038
18044
  const s = e.text, i = s[n] === "!", a = i ? n + 1 : n, l = _w(s, a, r);
18039
18045
  if (l < 0) return null;
18040
18046
  const c = a + 1, d = l, f = s.slice(c, d);
18041
18047
  if (!i && f.startsWith("^") && f.length > 1 && !/\s/.test(f))
18042
18048
  return { t: "footref", a: n, b: l + 1, label: f.slice(1) };
18043
- const p = o >= gz ? [] : Yg(yE(e, t, c, d, o + 1));
18049
+ const p = o >= g5 ? [] : Yg(yE(e, t, c, d, o + 1));
18044
18050
  if (s[l + 1] === "(") {
18045
- const v = Iz(s, l + 1, r);
18051
+ const v = I5(s, l + 1, r);
18046
18052
  if (v)
18047
18053
  return {
18048
18054
  t: i ? "image" : "link",
@@ -18094,7 +18100,7 @@ function _w(e, t, n) {
18094
18100
  }
18095
18101
  return -1;
18096
18102
  }
18097
- function Iz(e, t, n) {
18103
+ function I5(e, t, n) {
18098
18104
  let r = t + 1;
18099
18105
  for (; r < n && /[ \t\n]/.test(e[r]); ) r++;
18100
18106
  let o = "";
@@ -18151,7 +18157,7 @@ function Yg(e) {
18151
18157
  let o = n - 1, s = null;
18152
18158
  for (; o >= 0; o--) {
18153
18159
  const m = t[o];
18154
- if (!(m.t !== "delim" || m.ch !== r.ch || !m.canOpen) && Mz(m, r)) {
18160
+ if (!(m.t !== "delim" || m.ch !== r.ch || !m.canOpen) && M5(m, r)) {
18155
18161
  s = m;
18156
18162
  break;
18157
18163
  }
@@ -18176,11 +18182,11 @@ function Yg(e) {
18176
18182
  }
18177
18183
  return t;
18178
18184
  }
18179
- function Mz(e, t) {
18185
+ function M5(e, t) {
18180
18186
  return e.t !== "delim" || t.t !== "delim" ? !1 : !t.canOpen && !e.canClose || (t.olen + e.olen) % 3 !== 0 ? !0 : t.olen % 3 === 0 && e.olen % 3 === 0;
18181
18187
  }
18182
18188
  function Zs(e, t, n, r, o, s, i) {
18183
- const a = mz(t, r, o);
18189
+ const a = m5(t, r, o);
18184
18190
  if (!a) {
18185
18191
  i();
18186
18192
  return;
@@ -18307,20 +18313,20 @@ function Xd(e) {
18307
18313
  }
18308
18314
  return t;
18309
18315
  }
18310
- const Tz = 12, Ha = /^( {0,3})(`{3,}|~{3,})(.*)$/, kE = /^( {0,3})(#{1,6})(?:[ \t]|$)/, CE = /^ {0,3}(?:\*[ \t]*){3,}$|^ {0,3}(?:-[ \t]*){3,}$|^ {0,3}(?:_[ \t]*){3,}$/, Xg = /^ {0,3}>[ \t]?/, pi = /^( {0,3})([-*+])(?:[ \t]|$)/, hi = /^( {0,3})(\d{1,9})([.)])(?:[ \t]|$)/, Pz = /^ {0,3}(=+|-+)[ \t]*$/, Zg = /^( {0,3})(\[\^([^\]\s]+)\]:)[ \t]*/d, SE = /^( {0,3})(\[([^\]]+)\]:)[ \t]*(<[^>]*>|\S+)(?:[ \t]+(["'(].*["')]))?[ \t]*$/d, Oz = /^\[([ xX])\](?:[ \t]+|$)/, Az = /^[ \t]*\|?[ \t]*:?-+:?[ \t]*(?:\|[ \t]*:?-+:?[ \t]*)*\|?[ \t]*$/, Dz = /^(---|\+\+\+)[ \t]*$/;
18316
+ const T5 = 12, Ha = /^( {0,3})(`{3,}|~{3,})(.*)$/, kE = /^( {0,3})(#{1,6})(?:[ \t]|$)/, CE = /^ {0,3}(?:\*[ \t]*){3,}$|^ {0,3}(?:-[ \t]*){3,}$|^ {0,3}(?:_[ \t]*){3,}$/, Xg = /^ {0,3}>[ \t]?/, pi = /^( {0,3})([-*+])(?:[ \t]|$)/, hi = /^( {0,3})(\d{1,9})([.)])(?:[ \t]|$)/, P5 = /^ {0,3}(=+|-+)[ \t]*$/, Zg = /^( {0,3})(\[\^([^\]\s]+)\]:)[ \t]*/d, SE = /^( {0,3})(\[([^\]]+)\]:)[ \t]*(<[^>]*>|\S+)(?:[ \t]+(["'(].*["')]))?[ \t]*$/d, O5 = /^\[([ xX])\](?:[ \t]+|$)/, A5 = /^[ \t]*\|?[ \t]*:?-+:?[ \t]*(?:\|[ \t]*:?-+:?[ \t]*)*\|?[ \t]*$/, D5 = /^(---|\+\+\+)[ \t]*$/;
18311
18317
  function EE(e) {
18312
18318
  return Jg(e);
18313
18319
  }
18314
18320
  function Jg(e, t) {
18315
- const n = $z(e), r = { source: e, sink: t, refs: Fz(n), footnotes: [], ids: /* @__PURE__ */ new Map() }, o = [];
18321
+ const n = $5(e), r = { source: e, sink: t, refs: F5(n), footnotes: [], ids: /* @__PURE__ */ new Map() }, o = [];
18316
18322
  let s = 0;
18317
- const i = zz(n, r);
18323
+ const i = z5(n, r);
18318
18324
  return i && (o.push(i.node), s = i.next), o.push(...Zd(n.slice(s), r, 0, "text")), r.footnotes.length && o.push({ kind: "footnotes", items: r.footnotes }), o;
18319
18325
  }
18320
- function _z(e) {
18326
+ function _5(e) {
18321
18327
  return e.toLowerCase().replace(/[^\p{L}\p{N}]+/gu, "-").replace(/^-+|-+$/g, "");
18322
18328
  }
18323
- function $z(e) {
18329
+ function $5(e) {
18324
18330
  const t = [];
18325
18331
  let n = 0;
18326
18332
  for (; ; ) {
@@ -18368,7 +18374,7 @@ function ir(e, t) {
18368
18374
  e.source[n] === "\r" && n++, e.source[n] === `
18369
18375
  ` && n++, e.sink.close(n, n > t ? [{ start: t, end: n }] : void 0);
18370
18376
  }
18371
- function Lz(e, t, n) {
18377
+ function L5(e, t, n) {
18372
18378
  return { start: e[t].start, end: Vt(e[n]) };
18373
18379
  }
18374
18380
  function Qg(e, t, n, r) {
@@ -18389,7 +18395,7 @@ function Qg(e, t, n, r) {
18389
18395
  function Vt(e) {
18390
18396
  return e.start + e.text.length;
18391
18397
  }
18392
- function Fz(e) {
18398
+ function F5(e) {
18393
18399
  const t = /* @__PURE__ */ new Map();
18394
18400
  let n = null, r = !0;
18395
18401
  for (const o of e) {
@@ -18405,19 +18411,19 @@ function Fz(e) {
18405
18411
  const i = r ? SE.exec(o.text) : null;
18406
18412
  if (i) {
18407
18413
  const a = wE(i[3]);
18408
- t.has(a) || t.set(a, { href: Vz(i[4]), title: i[5] ? i[5].slice(1, -1) : void 0 }), r = !0;
18414
+ t.has(a) || t.set(a, { href: V5(i[4]), title: i[5] ? i[5].slice(1, -1) : void 0 }), r = !0;
18409
18415
  continue;
18410
18416
  }
18411
18417
  r = uo(o);
18412
18418
  }
18413
18419
  return t;
18414
18420
  }
18415
- function Vz(e) {
18421
+ function V5(e) {
18416
18422
  return (e.startsWith("<") && e.endsWith(">") ? e.slice(1, -1) : e).replace(/\\([!-/:-@[-`{-~])/g, "$1");
18417
18423
  }
18418
- function zz(e, t) {
18424
+ function z5(e, t) {
18419
18425
  if (!e.length) return null;
18420
- const n = Dz.exec(e[0].text);
18426
+ const n = D5.exec(e[0].text);
18421
18427
  if (!n) return null;
18422
18428
  let r = -1;
18423
18429
  for (let i = 1; i < e.length; i++)
@@ -18440,7 +18446,7 @@ function zz(e, t) {
18440
18446
  }
18441
18447
  function Zd(e, t, n, r) {
18442
18448
  const o = [];
18443
- if (n > Tz) return o;
18449
+ if (n > T5) return o;
18444
18450
  let s = 0;
18445
18451
  for (; s < e.length; ) {
18446
18452
  const i = e[s];
@@ -18448,12 +18454,12 @@ function Zd(e, t, n, r) {
18448
18454
  s++;
18449
18455
  continue;
18450
18456
  }
18451
- const a = Bz(e, s, t);
18457
+ const a = B5(e, s, t);
18452
18458
  if (a) {
18453
18459
  o.push(a.node), s = a.next;
18454
18460
  continue;
18455
18461
  }
18456
- const l = Uz(i, t, r);
18462
+ const l = U5(i, t, r);
18457
18463
  if (l) {
18458
18464
  o.push(l), s++;
18459
18465
  continue;
@@ -18464,41 +18470,41 @@ function Zd(e, t, n, r) {
18464
18470
  }
18465
18471
  if (Xg.test(i.text)) {
18466
18472
  Jt(t, { kind: "quote" }, i.start);
18467
- const p = jz(e, s, t, n);
18473
+ const p = j5(e, s, t, n);
18468
18474
  o.push(p.node), ir(t, Vt(e[p.next - 1])), s = p.next;
18469
18475
  continue;
18470
18476
  }
18471
18477
  const c = Zg.exec(i.text);
18472
18478
  if (c) {
18473
18479
  Jt(t, { kind: "footnoteDef", label: c[3] }, i.start);
18474
- const p = Wz(e, s, t, n);
18480
+ const p = W5(e, s, t, n);
18475
18481
  ir(t, Vt(e[p.next - 1])), s = p.next;
18476
18482
  continue;
18477
18483
  }
18478
18484
  const d = SE.exec(i.text);
18479
18485
  if (d) {
18480
- Jt(t, { kind: "linkDef" }, i.start), qz(i, d, t), ir(t, Vt(i)), s++;
18486
+ Jt(t, { kind: "linkDef" }, i.start), q5(i, d, t), ir(t, Vt(i)), s++;
18481
18487
  continue;
18482
18488
  }
18483
18489
  if (RE(e, s)) {
18484
18490
  Jt(t, { kind: "table" }, i.start);
18485
- const p = Kz(e, s, t);
18491
+ const p = K5(e, s, t);
18486
18492
  o.push(p.node), qr(t, Vt(e[p.next - 1])), s = p.next;
18487
18493
  continue;
18488
18494
  }
18489
18495
  if (pi.test(i.text) || hi.test(i.text)) {
18490
18496
  const p = hi.exec(i.text), m = !pi.exec(i.text) && !!p, g = { kind: "list", ordered: m, start: m ? Number(p[2]) : 1, tight: !0 };
18491
18497
  Jt(t, g, i.start);
18492
- const b = Gz(e, s, t, n, r, g);
18498
+ const b = G5(e, s, t, n, r, g);
18493
18499
  o.push(b.node), ir(t, Vt(e[b.next - 1])), s = b.next;
18494
18500
  continue;
18495
18501
  }
18496
18502
  if (Ua(i.text) >= 4) {
18497
- const p = Hz(e, s, t);
18503
+ const p = H5(e, s, t);
18498
18504
  o.push(p.node), s = p.next;
18499
18505
  continue;
18500
18506
  }
18501
- const f = Zz(e, s, t, r);
18507
+ const f = Z5(e, s, t, r);
18502
18508
  o.push(f.node), s = f.next;
18503
18509
  }
18504
18510
  return o;
@@ -18506,7 +18512,7 @@ function Zd(e, t, n, r) {
18506
18512
  function ml(e) {
18507
18513
  return Ha.test(e) || kE.test(e) || CE.test(e) || Xg.test(e) || pi.test(e) || hi.test(e) || Zg.test(e);
18508
18514
  }
18509
- function Bz(e, t, n) {
18515
+ function B5(e, t, n) {
18510
18516
  const r = e[t], o = Ha.exec(r.text);
18511
18517
  if (!o || o[2][0] === "`" && o[3].includes("`")) return null;
18512
18518
  const s = o[1].length, i = r.start + s;
@@ -18538,7 +18544,7 @@ function Bz(e, t, n) {
18538
18544
  `);
18539
18545
  return { node: { kind: "code", language: l, code: m, open: h }, next: p };
18540
18546
  }
18541
- function Hz(e, t, n) {
18547
+ function H5(e, t, n) {
18542
18548
  const r = [];
18543
18549
  let o = t;
18544
18550
  for (; o < e.length && (uo(e[o]) || Ua(e[o].text) >= 4); )
@@ -18554,7 +18560,7 @@ function Hz(e, t, n) {
18554
18560
  ), qr(n, i), ir(n, i), { node: { kind: "code", language: null, code: r.map((l) => ja(l, 4).text).join(`
18555
18561
  `), open: !1 }, next: o };
18556
18562
  }
18557
- function Uz(e, t, n) {
18563
+ function U5(e, t, n) {
18558
18564
  const r = kE.exec(e.text);
18559
18565
  if (!r) return null;
18560
18566
  const o = r[2].length, s = e.start + r[1].length;
@@ -18573,10 +18579,10 @@ function Uz(e, t, n) {
18573
18579
  return ir(t, Vt(e)), { kind: "heading", level: o, id: NE(t, d), children: d };
18574
18580
  }
18575
18581
  function NE(e, t) {
18576
- const n = _z(Xd(t)) || "section", r = e.ids.get(n) ?? 0;
18582
+ const n = _5(Xd(t)) || "section", r = e.ids.get(n) ?? 0;
18577
18583
  return e.ids.set(n, r + 1), r === 0 ? n : `${n}-${r}`;
18578
18584
  }
18579
- function jz(e, t, n, r) {
18585
+ function j5(e, t, n, r) {
18580
18586
  const o = [];
18581
18587
  let s = t;
18582
18588
  for (; s < e.length; ) {
@@ -18590,7 +18596,7 @@ function jz(e, t, n, r) {
18590
18596
  }
18591
18597
  return { node: { kind: "quote", children: Zd(o, n, r + 1, "quote") }, next: s };
18592
18598
  }
18593
- function Gz(e, t, n, r, o, s) {
18599
+ function G5(e, t, n, r, o, s) {
18594
18600
  const i = hi.exec(e[t].text), a = pi.exec(e[t].text), l = !a && !!i, c = l ? i[3] : a[2], d = l ? Number(i[2]) : 1, f = [];
18595
18601
  let p = !1, h = t;
18596
18602
  for (; h < e.length; ) {
@@ -18627,14 +18633,14 @@ function Gz(e, t, n, r, o, s) {
18627
18633
  T && (l ? T[3] : T[2]) === c && (p = !0);
18628
18634
  }
18629
18635
  let A = null;
18630
- const D = Oz.exec(N[0].text);
18636
+ const D = O5.exec(N[0].text);
18631
18637
  D && (A = D[1] !== " ", y.checked = A, on(n, N[0].start, N[0].start + 3, "marker"), N[0] = { text: N[0].text.slice(D[0].length), start: N[0].start + D[0].length }), f.push({ checked: A, children: Zd(N, n, r + 1, o) });
18632
18638
  const P = N[N.length - 1];
18633
18639
  ir(n, P.start + P.text.length);
18634
18640
  }
18635
18641
  return s && (s.tight = !p), { node: { kind: "list", ordered: l, start: d, tight: !p, items: f }, next: h };
18636
18642
  }
18637
- function Wz(e, t, n, r) {
18643
+ function W5(e, t, n, r) {
18638
18644
  const o = e[t], s = Zg.exec(o.text);
18639
18645
  if (!s) return null;
18640
18646
  const i = o.start + s[1].length;
@@ -18659,7 +18665,7 @@ function Wz(e, t, n, r) {
18659
18665
  }
18660
18666
  return n.footnotes.push({ label: s[3], children: Zd(a, n, r + 1, "text") }), { next: l };
18661
18667
  }
18662
- function qz(e, t, n) {
18668
+ function q5(e, t, n) {
18663
18669
  const r = e.start + t[1].length;
18664
18670
  on(n, r, r + t[2].length, "marker");
18665
18671
  const o = t.indices?.[4];
@@ -18670,7 +18676,7 @@ function qz(e, t, n) {
18670
18676
  function RE(e, t) {
18671
18677
  if (t + 1 >= e.length) return !1;
18672
18678
  const n = e[t], r = e[t + 1];
18673
- return !n.text.includes("|") || !r.text.includes("-") || !Az.test(r.text) ? !1 : Ra(n).cells.length === Ra(r).cells.length;
18679
+ return !n.text.includes("|") || !r.text.includes("-") || !A5.test(r.text) ? !1 : Ra(n).cells.length === Ra(r).cells.length;
18674
18680
  }
18675
18681
  function Ra(e) {
18676
18682
  const t = [], n = [], r = e.text;
@@ -18688,14 +18694,14 @@ function Lw(e) {
18688
18694
  const t = /^[ \t]*/.exec(e.text)[0].length;
18689
18695
  return { text: e.text.slice(t).replace(/[ \t]+$/, ""), start: e.start + t };
18690
18696
  }
18691
- function Kz(e, t, n) {
18697
+ function K5(e, t, n) {
18692
18698
  let r = t + 1;
18693
18699
  for (; r + 1 < e.length; ) {
18694
18700
  const d = e[r + 1];
18695
18701
  if (uo(d) || !d.text.includes("|") || ml(d.text)) break;
18696
18702
  r++;
18697
18703
  }
18698
- const s = Ra(e[t + 1]).cells.map(Xz), i = Ra(e[t]);
18704
+ const s = Ra(e[t + 1]).cells.map(X5), i = Ra(e[t]);
18699
18705
  for (const d of i.pipes) on(n, d.start, d.end, "punctuation");
18700
18706
  const a = Fw(n, e[t], i.cells, !0, s, wp(n, Vt(e[t])));
18701
18707
  on(n, e[t + 1].start, Vt(e[t + 1]), "marker");
@@ -18725,26 +18731,26 @@ function Fw(e, t, n, r, o, s) {
18725
18731
  };
18726
18732
  for (let c = 0; c < n.length; c++) {
18727
18733
  const d = n[c];
18728
- l(d.start), i.push(Yz(d, e, r, o[c] ?? null)), a = d.start + d.text.length;
18734
+ l(d.start), i.push(Y5(d, e, r, o[c] ?? null)), a = d.start + d.text.length;
18729
18735
  }
18730
18736
  return l(s), qr(e, s), i;
18731
18737
  }
18732
- function Yz(e, t, n, r) {
18738
+ function Y5(e, t, n, r) {
18733
18739
  Jt(t, { kind: "tableCell", header: n, align: r }, e.start);
18734
18740
  const o = Qg(t, [e], xE(e), "text");
18735
18741
  return qr(t, e.start + e.text.length), { children: o };
18736
18742
  }
18737
- function Xz(e) {
18743
+ function X5(e) {
18738
18744
  const t = e.text.trim(), n = t.startsWith(":"), r = t.endsWith(":");
18739
18745
  return n && r ? "center" : r ? "right" : n ? "left" : null;
18740
18746
  }
18741
- function Zz(e, t, n, r) {
18747
+ function Z5(e, t, n, r) {
18742
18748
  const o = [e[t]];
18743
18749
  let s = t + 1;
18744
18750
  for (; s < e.length; ) {
18745
18751
  const a = e[s];
18746
18752
  if (uo(a)) break;
18747
- const l = Pz.exec(a.text);
18753
+ const l = P5.exec(a.text);
18748
18754
  if (l) {
18749
18755
  on(n, a.start, Vt(a), "marker");
18750
18756
  const c = l[1][0] === "=" ? 1 : 2;
@@ -18757,7 +18763,7 @@ function Zz(e, t, n, r) {
18757
18763
  }
18758
18764
  Jt(n, { kind: "paragraph" }, e[t].start);
18759
18765
  const i = { kind: "paragraph", children: Vw(o, n, r) };
18760
- return ir(n, Lz(e, t, s - 1).end), { node: i, next: s };
18766
+ return ir(n, L5(e, t, s - 1).end), { node: i, next: s };
18761
18767
  }
18762
18768
  function Vw(e, t, n) {
18763
18769
  return Qg(t, e, vE(e), n);
@@ -18803,10 +18809,10 @@ function Jd(e) {
18803
18809
  if (e)
18804
18810
  return Eu.get(e.trim().toLowerCase());
18805
18811
  }
18806
- function Jz(e) {
18812
+ function J5(e) {
18807
18813
  return Jd(e)?.name ?? null;
18808
18814
  }
18809
- function Qz() {
18815
+ function Q5() {
18810
18816
  return [...new Set([...Eu.values()].map((e) => e.name))].sort();
18811
18817
  }
18812
18818
  const Fh = Zn({
@@ -18832,10 +18838,10 @@ const Fh = Zn({
18832
18838
  },
18833
18839
  close() {
18834
18840
  }
18835
- }), e5(e, n);
18841
+ }), ez(e, n);
18836
18842
  }
18837
18843
  });
18838
- function e5(e, t) {
18844
+ function ez(e, t) {
18839
18845
  t.sort((s, i) => s.start - i.start || s.end - i.end);
18840
18846
  const n = [];
18841
18847
  let r = 0;
@@ -18937,13 +18943,13 @@ const tb = /* @__PURE__ */ k.forwardRef(function(t, n) {
18937
18943
  process.env.NODE_ENV !== "production" && (tb.displayName = "DialogDescription");
18938
18944
  const nb = /* @__PURE__ */ k.createContext(void 0);
18939
18945
  process.env.NODE_ENV !== "production" && (nb.displayName = "DialogPortalContext");
18940
- function t5() {
18946
+ function tz() {
18941
18947
  const e = k.useContext(nb);
18942
18948
  if (e === void 0)
18943
18949
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Portal> is missing." : rt(26));
18944
18950
  return e;
18945
18951
  }
18946
- const n5 = {
18952
+ const nz = {
18947
18953
  ...Bs,
18948
18954
  ...In,
18949
18955
  nestedDialogOpen(e) {
@@ -18960,7 +18966,7 @@ const n5 = {
18960
18966
  initialFocus: a,
18961
18967
  ...l
18962
18968
  } = t, c = os(), d = c.useState("descriptionElementId"), f = c.useState("disablePointerDismissal"), p = c.useState("floatingRootContext"), h = c.useState("popupProps"), m = c.useState("modal"), g = c.useState("mounted"), b = c.useState("nested"), x = c.useState("nestedOpenDialogCount"), v = c.useState("open"), y = c.useState("openMethod"), w = c.useState("titleElementId"), C = c.useState("transitionStatus"), S = c.useState("role"), R = p.useState("floatingId");
18963
- t5(), an({
18969
+ tz(), an({
18964
18970
  open: v,
18965
18971
  ref: c.context.popupRef,
18966
18972
  onComplete() {
@@ -18989,7 +18995,7 @@ const n5 = {
18989
18995
  }
18990
18996
  }, l],
18991
18997
  ref: [n, c.context.popupRef, I],
18992
- stateAttributesMapping: n5
18998
+ stateAttributesMapping: nz
18993
18999
  });
18994
19000
  return /* @__PURE__ */ u(cl, {
18995
19001
  context: p,
@@ -19022,7 +19028,7 @@ const xl = /* @__PURE__ */ k.forwardRef(function(t, n) {
19022
19028
  }) : null;
19023
19029
  });
19024
19030
  process.env.NODE_ENV !== "production" && (xl.displayName = "DialogPortal");
19025
- function r5({
19031
+ function rz({
19026
19032
  store: e,
19027
19033
  parentContext: t,
19028
19034
  isDrawer: n
@@ -19072,7 +19078,7 @@ function r5({
19072
19078
  nestedOpenDrawerCount: d
19073
19079
  }), null;
19074
19080
  }
19075
- const o5 = {
19081
+ const oz = {
19076
19082
  ...$d,
19077
19083
  modal: (e) => e.modal,
19078
19084
  nested: (e) => e.nested,
@@ -19085,10 +19091,10 @@ const o5 = {
19085
19091
  viewportElement: (e) => e.viewportElement,
19086
19092
  role: (e) => e.role
19087
19093
  };
19088
- class s5 extends Vs {
19094
+ class sz extends Vs {
19089
19095
  constructor(t, n, r) {
19090
- const o = new Li(), s = i5(t, o, n, r);
19091
- super(s, a5(o), o5);
19096
+ const o = new Li(), s = iz(t, o, n, r);
19097
+ super(s, az(o), oz);
19092
19098
  }
19093
19099
  setOpen = (t, n) => {
19094
19100
  if (n.preventUnmountOnClose = () => {
@@ -19102,7 +19108,7 @@ class s5 extends Vs {
19102
19108
  Td(r, t, n.trigger), this.update(r);
19103
19109
  };
19104
19110
  }
19105
- function i5(e, t, n, r = !1) {
19111
+ function iz(e, t, n, r = !1) {
19106
19112
  const o = {
19107
19113
  ..._d(),
19108
19114
  modal: !0,
@@ -19119,7 +19125,7 @@ function i5(e, t, n, r = !1) {
19119
19125
  };
19120
19126
  return o.floatingRootContext = wg(t, n, r), o;
19121
19127
  }
19122
- function a5(e) {
19128
+ function az(e) {
19123
19129
  return {
19124
19130
  popupRef: /* @__PURE__ */ k.createRef(),
19125
19131
  backdropRef: /* @__PURE__ */ k.createRef(),
@@ -19150,7 +19156,7 @@ function ME(e, t) {
19150
19156
  disablePointerDismissal: b,
19151
19157
  nested: y,
19152
19158
  role: x
19153
- }, C = xg((A, D) => new s5({
19159
+ }, C = xg((A, D) => new sz({
19154
19160
  open: o,
19155
19161
  openProp: r,
19156
19162
  activeTriggerId: p,
@@ -19173,7 +19179,7 @@ function ME(e, t) {
19173
19179
  children: [d && /* @__PURE__ */ u(Md, {
19174
19180
  handle: d,
19175
19181
  store: C
19176
- }), I && /* @__PURE__ */ u(r5, {
19182
+ }), I && /* @__PURE__ */ u(rz, {
19177
19183
  store: C,
19178
19184
  parentContext: v?.context,
19179
19185
  isDrawer: h
@@ -19246,10 +19252,10 @@ const Qd = /* @__PURE__ */ k.forwardRef(function(t, n) {
19246
19252
  });
19247
19253
  });
19248
19254
  process.env.NODE_ENV !== "production" && (Qd.displayName = "DialogTrigger");
19249
- function l5(e) {
19255
+ function lz(e) {
19250
19256
  return ME("alert-dialog", e);
19251
19257
  }
19252
- const c5 = Qd;
19258
+ const cz = Qd;
19253
19259
  function TE(e) {
19254
19260
  const t = xe(null), n = xe(!1);
19255
19261
  return Qt(() => {
@@ -19432,12 +19438,12 @@ function ss({
19432
19438
  if (f === "")
19433
19439
  throw new Error("AlertDialog: confirmText must be a non-empty string (an empty phrase would make type-to-confirm a no-op).");
19434
19440
  const m = OE({ size: "sm" }), g = TE(t), b = PE(t, n);
19435
- return /* @__PURE__ */ M(l5, { open: t, onOpenChange: b, children: [
19436
- e && /* @__PURE__ */ u(c5, { render: e }),
19441
+ return /* @__PURE__ */ M(lz, { open: t, onOpenChange: b, children: [
19442
+ e && /* @__PURE__ */ u(cz, { render: e }),
19437
19443
  /* @__PURE__ */ M(xl, { children: [
19438
19444
  /* @__PURE__ */ u(gl, { className: m.backdrop() }),
19439
19445
  /* @__PURE__ */ u(vl, { ref: h, className: H(m.popup(), p), finalFocus: g, children: /* @__PURE__ */ u(
19440
- f5,
19446
+ fz,
19441
19447
  {
19442
19448
  s: m,
19443
19449
  title: r,
@@ -19454,11 +19460,11 @@ function ss({
19454
19460
  ] })
19455
19461
  ] });
19456
19462
  }
19457
- const u5 = (e) => /* @__PURE__ */ u("strong", { className: "font-mono font-semibold text-primary", children: e });
19458
- function d5({ phrase: e }) {
19459
- return /* @__PURE__ */ u(We, { children: he().dialog.typeToConfirm(e, u5) });
19463
+ const uz = (e) => /* @__PURE__ */ u("strong", { className: "font-mono font-semibold text-primary", children: e });
19464
+ function dz({ phrase: e }) {
19465
+ return /* @__PURE__ */ u(We, { children: he().dialog.typeToConfirm(e, uz) });
19460
19466
  }
19461
- function f5({
19467
+ function fz({
19462
19468
  s: e,
19463
19469
  title: t,
19464
19470
  description: n,
@@ -19482,7 +19488,7 @@ function f5({
19482
19488
  vt,
19483
19489
  {
19484
19490
  className: "mt-4",
19485
- label: /* @__PURE__ */ u(d5, { phrase: c }),
19491
+ label: /* @__PURE__ */ u(dz, { phrase: c }),
19486
19492
  children: /* @__PURE__ */ u(
19487
19493
  Dt,
19488
19494
  {
@@ -19519,9 +19525,9 @@ function AE({ title: e, children: t }) {
19519
19525
  return e ? /* @__PURE__ */ u(Gt, { content: e, children: t }) : t;
19520
19526
  }
19521
19527
  function wl({ nodes: e, renderCode: t }) {
19522
- return e.map((n, r) => /* @__PURE__ */ u(h5, { node: n, renderCode: t }, r));
19528
+ return e.map((n, r) => /* @__PURE__ */ u(hz, { node: n, renderCode: t }, r));
19523
19529
  }
19524
- const p5 = {
19530
+ const pz = {
19525
19531
  1: "text-xl",
19526
19532
  2: "text-lg",
19527
19533
  3: "text-base",
@@ -19529,7 +19535,7 @@ const p5 = {
19529
19535
  5: "text-sm",
19530
19536
  6: "text-xs uppercase tracking-wide text-secondary"
19531
19537
  };
19532
- function h5({ node: e, renderCode: t }) {
19538
+ function hz({ node: e, renderCode: t }) {
19533
19539
  switch (e.kind) {
19534
19540
  case "heading": {
19535
19541
  const n = `h${e.level}`;
@@ -19539,7 +19545,7 @@ function h5({ node: e, renderCode: t }) {
19539
19545
  id: e.id,
19540
19546
  className: H(
19541
19547
  "mt-4 mb-1 scroll-mt-4 font-display font-semibold text-primary first:mt-0",
19542
- p5[e.level]
19548
+ pz[e.level]
19543
19549
  ),
19544
19550
  children: /* @__PURE__ */ u(Fr, { nodes: e.children })
19545
19551
  }
@@ -19559,14 +19565,14 @@ function h5({ node: e, renderCode: t }) {
19559
19565
  case "rule":
19560
19566
  return /* @__PURE__ */ u("hr", { className: "my-3 border-0 border-t border-border-subtle" });
19561
19567
  case "list":
19562
- return /* @__PURE__ */ u(m5, { node: e, renderCode: t });
19568
+ return /* @__PURE__ */ u(mz, { node: e, renderCode: t });
19563
19569
  case "table":
19564
- return /* @__PURE__ */ u(b5, { node: e });
19570
+ return /* @__PURE__ */ u(bz, { node: e });
19565
19571
  case "footnotes":
19566
- return /* @__PURE__ */ u(v5, { node: e, renderCode: t });
19572
+ return /* @__PURE__ */ u(vz, { node: e, renderCode: t });
19567
19573
  }
19568
19574
  }
19569
- function m5({
19575
+ function mz({
19570
19576
  node: e,
19571
19577
  renderCode: t
19572
19578
  }) {
@@ -19582,11 +19588,11 @@ function m5({
19582
19588
  two bullets, one of which does nothing. */
19583
19589
  r ? "list-none pl-1" : e.ordered ? "list-decimal" : "list-disc"
19584
19590
  ),
19585
- children: e.items.map((o, s) => /* @__PURE__ */ u(g5, { item: o, tight: e.tight, renderCode: t }, s))
19591
+ children: e.items.map((o, s) => /* @__PURE__ */ u(gz, { item: o, tight: e.tight, renderCode: t }, s))
19586
19592
  }
19587
19593
  );
19588
19594
  }
19589
- function g5({
19595
+ function gz({
19590
19596
  item: e,
19591
19597
  tight: t,
19592
19598
  renderCode: n
@@ -19612,7 +19618,7 @@ const Bw = {
19612
19618
  center: "text-center",
19613
19619
  right: "text-right"
19614
19620
  };
19615
- function b5({ node: e }) {
19621
+ function bz({ node: e }) {
19616
19622
  const t = he().markdownRender;
19617
19623
  return (
19618
19624
  /* Focusable because it scrolls sideways. A region that can only be panned
@@ -19654,7 +19660,7 @@ function b5({ node: e }) {
19654
19660
  )
19655
19661
  );
19656
19662
  }
19657
- function v5({
19663
+ function vz({
19658
19664
  node: e,
19659
19665
  renderCode: t
19660
19666
  }) {
@@ -19665,16 +19671,16 @@ function v5({
19665
19671
  /* @__PURE__ */ u("a", { href: `#${_E(r.label)}`, "aria-label": n.backToReference, className: "text-accent-text", children: "↩" })
19666
19672
  ] }, r.label)) }) });
19667
19673
  }
19668
- const DE = (e) => `fn-${e}`, _E = (e) => `fnref-${e}`, x5 = "rounded-[4px] border border-border-subtle bg-surface-inset px-1 py-px font-mono text-[0.88em] text-primary", Hw = "text-accent-text underline decoration-accent-border underline-offset-2 transition-colors duration-(--dur-fast) hover:decoration-accent";
19674
+ const DE = (e) => `fn-${e}`, _E = (e) => `fnref-${e}`, xz = "rounded-[4px] border border-border-subtle bg-surface-inset px-1 py-px font-mono text-[0.88em] text-primary", Hw = "text-accent-text underline decoration-accent-border underline-offset-2 transition-colors duration-(--dur-fast) hover:decoration-accent";
19669
19675
  function Fr({ nodes: e }) {
19670
- return e.map((t, n) => /* @__PURE__ */ u(y5, { node: t }, n));
19676
+ return e.map((t, n) => /* @__PURE__ */ u(yz, { node: t }, n));
19671
19677
  }
19672
- function y5({ node: e }) {
19678
+ function yz({ node: e }) {
19673
19679
  switch (e.kind) {
19674
19680
  case "text":
19675
19681
  return /* @__PURE__ */ u(We, { children: e.value });
19676
19682
  case "code":
19677
- return /* @__PURE__ */ u("code", { className: x5, children: e.value });
19683
+ return /* @__PURE__ */ u("code", { className: xz, children: e.value });
19678
19684
  case "emphasis":
19679
19685
  return /* @__PURE__ */ u("em", { children: /* @__PURE__ */ u(Fr, { nodes: e.children }) });
19680
19686
  case "strong":
@@ -19687,7 +19693,7 @@ function y5({ node: e }) {
19687
19693
  return /* @__PURE__ */ u("sup", { id: _E(e.label), children: /* @__PURE__ */ u("a", { href: `#${DE(e.label)}`, className: Hw, children: e.label }) });
19688
19694
  case "image": {
19689
19695
  const t = Nu(e.src);
19690
- return t ? /* @__PURE__ */ u(w5, { src: t, alt: e.alt, title: e.title }) : /* @__PURE__ */ u("span", { className: "text-tertiary italic", children: e.alt });
19696
+ return t ? /* @__PURE__ */ u(wz, { src: t, alt: e.alt, title: e.title }) : /* @__PURE__ */ u("span", { className: "text-tertiary italic", children: e.alt });
19691
19697
  }
19692
19698
  case "link": {
19693
19699
  const t = Nu(e.href);
@@ -19707,7 +19713,7 @@ function y5({ node: e }) {
19707
19713
  }
19708
19714
  }
19709
19715
  }
19710
- function w5({ src: e, alt: t, title: n }) {
19716
+ function wz({ src: e, alt: t, title: n }) {
19711
19717
  const r = he().markdownRender, [o, s] = ne(!1);
19712
19718
  return /* @__PURE__ */ M(We, { children: [
19713
19719
  /* @__PURE__ */ u(AE, { title: n, children: /* @__PURE__ */ u(
@@ -19728,7 +19734,7 @@ function Nu(e) {
19728
19734
  const n = e.trim().replace(/[\u0000-\u0020]/g, "");
19729
19735
  return /^[a-z][a-z0-9+.-]*:/i.test(n) ? /^(https?|mailto|tel|ftp):/i.test(n) ? n : null : n;
19730
19736
  }
19731
- const ks = { "(": ")", "[": "]", "{": "}" }, Vh = /* @__PURE__ */ new Set(['"', "'", "`"]), k5 = /* @__PURE__ */ new Set([")", "]", "}"]), Uw = /[\p{L}\p{N}_$]/u;
19737
+ const ks = { "(": ")", "[": "]", "{": "}" }, Vh = /* @__PURE__ */ new Set(['"', "'", "`"]), kz = /* @__PURE__ */ new Set([")", "]", "}"]), Uw = /[\p{L}\p{N}_$]/u;
19732
19738
  function Ci(e, t, n, r, o) {
19733
19739
  e.focus(), e.setSelectionRange(t, n);
19734
19740
  let s = !1;
@@ -19747,23 +19753,23 @@ function $E(e, t) {
19747
19753
  return e.lastIndexOf(`
19748
19754
  `, t - 1) + 1;
19749
19755
  }
19750
- function C5(e, t) {
19756
+ function Cz(e, t) {
19751
19757
  const n = e.indexOf(`
19752
19758
  `, t);
19753
19759
  return n < 0 ? e.length : n;
19754
19760
  }
19755
- function S5(e, t) {
19761
+ function Sz(e, t) {
19756
19762
  const n = $E(e, t);
19757
19763
  return /^[ \t]*/.exec(e.slice(n, t))?.[0] ?? "";
19758
19764
  }
19759
- function E5(e, t, n) {
19765
+ function Ez(e, t, n) {
19760
19766
  const r = e.value, { selectionStart: o, selectionEnd: s } = e;
19761
19767
  if (!r.slice(o, s).includes(`
19762
19768
  `) && !n) {
19763
19769
  Ci(e, o, s, t, [o + t.length, o + t.length]);
19764
19770
  return;
19765
19771
  }
19766
- const a = $E(r, o), l = C5(r, s), c = r.slice(a, l).split(`
19772
+ const a = $E(r, o), l = Cz(r, s), c = r.slice(a, l).split(`
19767
19773
  `);
19768
19774
  let d = 0, f = 0;
19769
19775
  const p = c.map((h, m) => {
@@ -19781,21 +19787,21 @@ function E5(e, t, n) {
19781
19787
  Math.max(a, s + f)
19782
19788
  ]);
19783
19789
  }
19784
- function N5(e, t) {
19785
- const n = e.value, { selectionStart: r, selectionEnd: o } = e, s = S5(n, r), i = r > 0 ? n[r - 1] : "", a = o < n.length ? n[o] : "", l = i in ks, c = l ? `
19790
+ function Nz(e, t) {
19791
+ const n = e.value, { selectionStart: r, selectionEnd: o } = e, s = Sz(n, r), i = r > 0 ? n[r - 1] : "", a = o < n.length ? n[o] : "", l = i in ks, c = l ? `
19786
19792
  ${s}${t}` : `
19787
19793
  ${s}`, d = l && ks[i] === a ? `
19788
19794
  ${s}` : "", f = r + c.length;
19789
19795
  Ci(e, r, o, c + d, [f, f]);
19790
19796
  }
19791
- function R5(e, t) {
19797
+ function Rz(e, t) {
19792
19798
  const n = e.value, { selectionStart: r, selectionEnd: o } = e, s = t in ks, i = Vh.has(t);
19793
19799
  if (r !== o && (s || i)) {
19794
19800
  const c = i ? t : ks[t];
19795
19801
  return Ci(e, r, o, t + n.slice(r, o) + c, [r + 1, o + 1]), !0;
19796
19802
  }
19797
19803
  const a = o < n.length ? n[o] : "";
19798
- if ((k5.has(t) || i) && a === t)
19804
+ if ((kz.has(t) || i) && a === t)
19799
19805
  return e.setSelectionRange(o + 1, o + 1), !0;
19800
19806
  if (!s && !i || a && Uw.test(a)) return !1;
19801
19807
  if (i) {
@@ -19805,13 +19811,13 @@ function R5(e, t) {
19805
19811
  const l = i ? t : ks[t];
19806
19812
  return Ci(e, r, o, t + l, [r + 1, r + 1]), !0;
19807
19813
  }
19808
- function I5(e) {
19814
+ function Iz(e) {
19809
19815
  const { selectionStart: t, selectionEnd: n } = e;
19810
19816
  if (t !== n || t === 0) return !1;
19811
19817
  const r = e.value[t - 1], o = n < e.value.length ? e.value[n] : "", s = r in ks ? ks[r] : Vh.has(r) ? r : "";
19812
19818
  return !s || o !== s ? !1 : (Ci(e, t - 1, n + 1, "", [t - 1, t - 1]), !0);
19813
19819
  }
19814
- const LE = Rn(null), M5 = LE.Provider;
19820
+ const LE = Rn(null), Mz = LE.Provider;
19815
19821
  function kl(e) {
19816
19822
  const t = gn(LE);
19817
19823
  if (!t)
@@ -19821,11 +19827,11 @@ function kl(e) {
19821
19827
  function FE(e) {
19822
19828
  return e.trim().split(/\s+/).sort((t, n) => n.length - t.length).join("|");
19823
19829
  }
19824
- const T5 = FE(`
19830
+ const Tz = FE(`
19825
19831
  alias break case continue declare do done elif else esac eval exec exit export
19826
19832
  fi for function if in local readonly return select set shift source then time
19827
19833
  trap typeset unset until while
19828
- `), P5 = FE(`
19834
+ `), Pz = FE(`
19829
19835
  awk basename cat cd chmod chown cp curl cut date dirname docker echo env find
19830
19836
  git grep head jq kill ln ls make mkdir mv npm printf ps pwd read rm rmdir sed
19831
19837
  seq sleep sort ssh sudo tail tar tee test touch tr uname uniq wc wget which
@@ -19852,8 +19858,8 @@ function kp() {
19852
19858
  { match: /"/, token: "string", push: "dqString" },
19853
19859
  { match: /'/, token: "string", push: "sqString" },
19854
19860
  { match: /`/, token: "punctuation", push: "backtick" },
19855
- { match: new RegExp(`\\b(?:${T5})\\b`), token: "keyword" },
19856
- { match: new RegExp(`(?<![\\w./-])(?:${P5})(?![\\w./-])`), token: "function" },
19861
+ { match: new RegExp(`\\b(?:${Tz})\\b`), token: "keyword" },
19862
+ { match: new RegExp(`(?<![\\w./-])(?:${Pz})(?![\\w./-])`), token: "function" },
19857
19863
  /* Flags are named switches on a command — the same role an attribute plays
19858
19864
  on a tag, which is the closest honest category in the closed set. */
19859
19865
  { match: new RegExp("(?<=\\s)--?[A-Za-z][\\w-]*"), token: "attribute" },
@@ -19864,7 +19870,7 @@ function kp() {
19864
19870
  { match: /[(){}]/, token: "punctuation" }
19865
19871
  ];
19866
19872
  }
19867
- const O5 = Zn({
19873
+ const Oz = Zn({
19868
19874
  name: "bash",
19869
19875
  aliases: ["sh", "shell", "zsh", "ksh", "shellscript"],
19870
19876
  states: {
@@ -19890,7 +19896,7 @@ const O5 = Zn({
19890
19896
  ]
19891
19897
  }
19892
19898
  });
19893
- function A5() {
19899
+ function Az() {
19894
19900
  return [
19895
19901
  { match: /--[\w-]+/, token: "variable" },
19896
19902
  { match: /[$@][\w-]+/, token: "variable" },
@@ -19915,7 +19921,7 @@ function jw() {
19915
19921
  { match: /\/\/[^\n]*/, token: "comment" }
19916
19922
  ];
19917
19923
  }
19918
- const D5 = Zn({
19924
+ const Dz = Zn({
19919
19925
  name: "css",
19920
19926
  aliases: ["scss", "sass", "less", "postcss", "pcss"],
19921
19927
  states: {
@@ -19950,7 +19956,7 @@ const D5 = Zn({
19950
19956
  { match: /@[\w-]+(?=[\s({;])/, token: "atrule" },
19951
19957
  { match: /--[\w-]+(?=\s*:)/, token: "property" },
19952
19958
  { match: /-?[A-Za-z_][\w-]*(?=\s*:)/, token: "property" },
19953
- ...A5()
19959
+ ...Az()
19954
19960
  ],
19955
19961
  dqString: [
19956
19962
  { match: /\\[^]/, token: "escape" },
@@ -19970,14 +19976,14 @@ function Ru(e, t) {
19970
19976
  const n = new RegExp(`\\b${t}\\s*=\\s*("[^"]*"|'[^']*'|[^\\s>]+)`, "i").exec(e);
19971
19977
  return n ? n[1].replace(/^["']|["']$/g, "").trim() : null;
19972
19978
  }
19973
- function _5(e) {
19979
+ function _z(e) {
19974
19980
  const t = Ru(e, "lang")?.toLowerCase();
19975
19981
  if (t)
19976
19982
  return t === "ts" || t === "typescript" ? "typescript" : t === "tsx" ? "tsx" : t === "jsx" ? "jsx" : "javascript";
19977
19983
  const n = Ru(e, "type")?.toLowerCase() ?? "";
19978
19984
  return n.includes("typescript") ? "typescript" : n.includes("json") || n === "importmap" || n === "speculationrules" ? "json" : "javascript";
19979
19985
  }
19980
- function $5(e) {
19986
+ function $z(e) {
19981
19987
  const t = Ru(e, "lang")?.toLowerCase();
19982
19988
  return t === "scss" || t === "sass" ? "scss" : t === "less" ? "less" : "css";
19983
19989
  }
@@ -20014,20 +20020,20 @@ function zE(e, t) {
20014
20020
  {
20015
20021
  match: /(<script)(?=[\s/>])((?:"[^"]*"|'[^']*'|[^>"'])*)(>)/i,
20016
20022
  groups: ["tag", "attribute", "tag"],
20017
- embed: (n) => _5(n[2]),
20023
+ embed: (n) => _z(n[2]),
20018
20024
  until: e,
20019
20025
  untilToken: "tag"
20020
20026
  },
20021
20027
  {
20022
20028
  match: /(<style)(?=[\s/>])((?:"[^"]*"|'[^']*'|[^>"'])*)(>)/i,
20023
20029
  groups: ["tag", "attribute", "tag"],
20024
- embed: (n) => $5(n[2]),
20030
+ embed: (n) => $z(n[2]),
20025
20031
  until: t,
20026
20032
  untilToken: "tag"
20027
20033
  }
20028
20034
  ];
20029
20035
  }
20030
- const L5 = Zn({
20036
+ const Lz = Zn({
20031
20037
  name: "html",
20032
20038
  aliases: ["htm", "xml", "svg"],
20033
20039
  states: {
@@ -20055,11 +20061,11 @@ const Gw = ob(`
20055
20061
  do else export extends finally for from function get if import in instanceof
20056
20062
  let new of return set static super switch this throw try typeof var void
20057
20063
  while with yield
20058
- `), F5 = ob(`
20064
+ `), Fz = ob(`
20059
20065
  abstract accessor asserts declare enum global implements infer interface is
20060
20066
  keyof module namespace out override private protected public readonly require
20061
20067
  satisfies type unique
20062
- `), V5 = ob("any bigint boolean never number object string symbol unknown");
20068
+ `), Vz = ob("any bigint boolean never number object string symbol unknown");
20063
20069
  function Cl(e, t = []) {
20064
20070
  const n = [
20065
20071
  ...t,
@@ -20089,9 +20095,9 @@ function Cl(e, t = []) {
20089
20095
  happily end a keyword at `for$` and colour half an identifier. */
20090
20096
  { match: /\b(?:true|false)(?![\w$])/, token: "boolean" },
20091
20097
  { match: /\b(?:null|undefined)(?![\w$])/, token: "null" },
20092
- ...e.ts ? [{ match: new RegExp(`\\b(?:${V5})(?![\\w$])`), token: "type" }] : [],
20098
+ ...e.ts ? [{ match: new RegExp(`\\b(?:${Vz})(?![\\w$])`), token: "type" }] : [],
20093
20099
  {
20094
- match: new RegExp(`\\b(?:${e.ts ? `${Gw}|${F5}` : Gw})(?![\\w$])`),
20100
+ match: new RegExp(`\\b(?:${e.ts ? `${Gw}|${Fz}` : Gw})(?![\\w$])`),
20095
20101
  token: "keyword"
20096
20102
  },
20097
20103
  /* Decorators read as annotations, which is what `attribute` is for — the
@@ -20156,21 +20162,21 @@ function Cl(e, t = []) {
20156
20162
  { match: /\s+/, token: "text" }
20157
20163
  ]), s;
20158
20164
  }
20159
- const z5 = Zn({
20165
+ const zz = Zn({
20160
20166
  name: "javascript",
20161
20167
  aliases: ["js", "mjs", "cjs", "node"],
20162
20168
  states: Cl({ ts: !1, jsx: !1 })
20163
- }), B5 = Zn({
20169
+ }), Bz = Zn({
20164
20170
  name: "typescript",
20165
20171
  aliases: ["ts", "mts", "cts"],
20166
20172
  states: Cl({ ts: !0, jsx: !1 })
20167
- }), H5 = Zn({
20173
+ }), Hz = Zn({
20168
20174
  name: "jsx",
20169
20175
  states: Cl({ ts: !1, jsx: !0 })
20170
- }), U5 = Zn({
20176
+ }), Uz = Zn({
20171
20177
  name: "tsx",
20172
20178
  states: Cl({ ts: !0, jsx: !0 })
20173
- }), j5 = Zn({
20179
+ }), jz = Zn({
20174
20180
  name: "json",
20175
20181
  aliases: ["jsonc", "json5"],
20176
20182
  states: {
@@ -20209,7 +20215,7 @@ const z5 = Zn({
20209
20215
  { match: /\n/, token: "text", pop: !0 }
20210
20216
  ]
20211
20217
  }
20212
- }), G5 = Zn({
20218
+ }), Gz = Zn({
20213
20219
  name: "mongodb",
20214
20220
  aliases: ["mongo", "nosql"],
20215
20221
  states: Cl({ ts: !1, jsx: !1 }, [
@@ -20226,7 +20232,7 @@ const z5 = Zn({
20226
20232
  },
20227
20233
  { match: /\b(?:db|rs|sh|use)(?![\w$])/, token: "keyword" }
20228
20234
  ])
20229
- }), W5 = Zn({
20235
+ }), Wz = Zn({
20230
20236
  name: "plain",
20231
20237
  aliases: ["text", "txt", "plaintext", "none"],
20232
20238
  states: { root: [{ match: /[^]+/, token: "text" }] }
@@ -20246,17 +20252,17 @@ const Ww = ef(`
20246
20252
  revoke right rollback row rows savepoint schema select set show some table
20247
20253
  temporary then to transaction trigger truncate union unique unlock update
20248
20254
  usage use using vacuum values view when where while window with within
20249
- `), q5 = ef(`
20255
+ `), qz = ef(`
20250
20256
  array bigint binary bit blob bool boolean bytea char character clob date
20251
20257
  datetime decimal double float inet int int2 int4 int8 integer interval json
20252
20258
  jsonb longtext mediumint money numeric real serial smallint text time
20253
20259
  timestamp timestamptz tinyint uuid varbinary varchar xml year
20254
- `), K5 = ef(`
20260
+ `), Kz = ef(`
20255
20261
  auto_increment binlog change charset collation columns databases delayed
20256
20262
  describe engine fields fulltext high_priority keys kill low_priority modify
20257
20263
  optimize privileges processlist repair spatial straight_join tables unsigned
20258
20264
  variables warnings zerofill
20259
- `), Y5 = ef(`
20265
+ `), Yz = ef(`
20260
20266
  analyse concurrently conflict deferrable ilike immediate initially isnull
20261
20267
  materialized notnull nowait owned reindex reset returns similar tablespace
20262
20268
  unlogged variadic verbose
@@ -20282,7 +20288,7 @@ function sb(e) {
20282
20288
  { match: /\b\d+(?:\.\d*)?(?:[eE][+-]?\d+)?\b|\B\.\d+\b/, token: "number" },
20283
20289
  { match: /\bnull\b/i, token: "null" },
20284
20290
  { match: /\b(?:true|false)\b/i, token: "boolean" },
20285
- { match: new RegExp(`\\b(?:${q5})\\b`, "i"), token: "type" },
20291
+ { match: new RegExp(`\\b(?:${qz})\\b`, "i"), token: "type" },
20286
20292
  { match: new RegExp(`\\b(?:${t})\\b`, "i"), token: "keyword" },
20287
20293
  { match: /[A-Za-z_][\w$]*(?=\s*\()/, token: "function" },
20288
20294
  { match: new RegExp("(?<=\\.)[A-Za-z_][\\w$]*"), token: "property" },
@@ -20318,26 +20324,26 @@ function sb(e) {
20318
20324
  }
20319
20325
  });
20320
20326
  }
20321
- const X5 = sb({
20327
+ const Xz = sb({
20322
20328
  name: "sql",
20323
20329
  aliases: ["sqlite"],
20324
20330
  mysql: !1,
20325
20331
  postgres: !1,
20326
20332
  extra: ""
20327
- }), Z5 = sb({
20333
+ }), Zz = sb({
20328
20334
  name: "mysql",
20329
20335
  aliases: ["mariadb"],
20330
20336
  mysql: !0,
20331
20337
  postgres: !1,
20332
- extra: K5
20333
- }), J5 = sb({
20338
+ extra: Kz
20339
+ }), Jz = sb({
20334
20340
  name: "postgresql",
20335
20341
  aliases: ["postgres", "pgsql"],
20336
20342
  mysql: !1,
20337
20343
  postgres: !0,
20338
- extra: Y5
20344
+ extra: Yz
20339
20345
  });
20340
- function Q5(e) {
20346
+ function Qz(e) {
20341
20347
  const t = Ru(e, "lang")?.toLowerCase();
20342
20348
  return t && t !== "html" ? t : "html";
20343
20349
  }
@@ -20350,7 +20356,7 @@ const e4 = Zn({
20350
20356
  {
20351
20357
  match: /(<template)(?=[\s/>])((?:"[^"]*"|'[^']*'|[^>"'])*)(>)/i,
20352
20358
  groups: ["tag", "attribute", "tag"],
20353
- embed: (e) => Q5(e[2]),
20359
+ embed: (e) => Qz(e[2]),
20354
20360
  until: /^<\/template\s*>/m,
20355
20361
  untilToken: "tag"
20356
20362
  },
@@ -20411,21 +20417,21 @@ const e4 = Zn({
20411
20417
  ]
20412
20418
  }
20413
20419
  }), n4 = [
20414
- W5,
20415
- j5,
20420
+ Wz,
20421
+ jz,
20416
20422
  t4,
20417
20423
  Fh,
20418
- z5,
20419
- B5,
20420
- H5,
20421
- U5,
20422
- L5,
20423
- D5,
20424
- X5,
20425
- Z5,
20426
- J5,
20427
- G5,
20428
- O5,
20424
+ zz,
20425
+ Bz,
20426
+ Hz,
20427
+ Uz,
20428
+ Lz,
20429
+ Dz,
20430
+ Xz,
20431
+ Zz,
20432
+ Jz,
20433
+ Gz,
20434
+ Oz,
20429
20435
  e4
20430
20436
  ], r4 = 12;
20431
20437
  function o4(e, t) {
@@ -20528,10 +20534,10 @@ function BE(e, t) {
20528
20534
  return tf(), o4(e, t);
20529
20535
  }
20530
20536
  function c4() {
20531
- return tf(), Qz();
20537
+ return tf(), Q5();
20532
20538
  }
20533
20539
  function uee(e) {
20534
- return tf(), Jz(e);
20540
+ return tf(), J5(e);
20535
20541
  }
20536
20542
  function dee(e) {
20537
20543
  tf(), IE(e);
@@ -21508,7 +21514,7 @@ function QE({
21508
21514
  $
21509
21515
  ]
21510
21516
  ), K = js(), re = G ? c : l, oe = re === void 0 ? void 0 : { maxHeight: `calc(${re} * 1lh + 2 * var(--code-pad-y))` };
21511
- return /* @__PURE__ */ u(M5, { value: Y, children: /* @__PURE__ */ M(
21517
+ return /* @__PURE__ */ u(Mz, { value: Y, children: /* @__PURE__ */ M(
21512
21518
  "div",
21513
21519
  {
21514
21520
  ref: w,
@@ -21605,19 +21611,19 @@ function N4({
21605
21611
  y(!1);
21606
21612
  return;
21607
21613
  }
21608
- C.preventDefault(), E5(S, a, C.shiftKey);
21614
+ C.preventDefault(), Ez(S, a, C.shiftKey);
21609
21615
  return;
21610
21616
  }
21611
21617
  if (v.current && y(!1), !(C.ctrlKey || C.metaKey || C.altKey)) {
21612
21618
  if (C.key === "Enter") {
21613
- C.preventDefault(), N5(S, a);
21619
+ C.preventDefault(), Nz(S, a);
21614
21620
  return;
21615
21621
  }
21616
21622
  if (C.key === "Backspace") {
21617
- I5(S) && C.preventDefault();
21623
+ Iz(S) && C.preventDefault();
21618
21624
  return;
21619
21625
  }
21620
- C.key.length === 1 && R5(S, C.key) && C.preventDefault();
21626
+ C.key.length === 1 && Rz(S, C.key) && C.preventDefault();
21621
21627
  }
21622
21628
  }
21623
21629
  };
@@ -53093,7 +53099,7 @@ function rK({
53093
53099
  }
53094
53100
  ) }),
53095
53101
  /* @__PURE__ */ u(vt, { label: c.description, description: c.descriptionHint, children: /* @__PURE__ */ u(
53096
- nz,
53102
+ n5,
53097
53103
  {
53098
53104
  value: p,
53099
53105
  onChange: (v) => h(v.target.value),
@@ -61966,7 +61972,7 @@ export {
61966
61972
  mne as TeamSettingsForm,
61967
61973
  ene as TeamSwitcher,
61968
61974
  fP as TermsAcceptance,
61969
- nz as Textarea,
61975
+ n5 as Textarea,
61970
61976
  Aee as ThemeMenu,
61971
61977
  vte as TimeSeriesChart,
61972
61978
  Cee as Timeline,