@danxbot/ui 24.2.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,6 +178,8 @@ 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" }]],
@@ -20345,7 +20347,7 @@ function Qz(e) {
20345
20347
  const t = Ru(e, "lang")?.toLowerCase();
20346
20348
  return t && t !== "html" ? t : "html";
20347
20349
  }
20348
- const e3 = Zn({
20350
+ const e4 = Zn({
20349
20351
  name: "vue",
20350
20352
  states: {
20351
20353
  root: [
@@ -20365,7 +20367,7 @@ const e3 = Zn({
20365
20367
  ],
20366
20368
  ...VE()
20367
20369
  }
20368
- }), t3 = Zn({
20370
+ }), t4 = Zn({
20369
20371
  name: "yaml",
20370
20372
  aliases: ["yml"],
20371
20373
  states: {
@@ -20414,10 +20416,10 @@ const e3 = Zn({
20414
20416
  { match: /\n/, token: "text", pop: !0 }
20415
20417
  ]
20416
20418
  }
20417
- }), n3 = [
20419
+ }), n4 = [
20418
20420
  Wz,
20419
20421
  jz,
20420
- t3,
20422
+ t4,
20421
20423
  Fh,
20422
20424
  zz,
20423
20425
  Bz,
@@ -20430,27 +20432,27 @@ const e3 = Zn({
20430
20432
  Jz,
20431
20433
  Gz,
20432
20434
  Oz,
20433
- e3
20434
- ], r3 = 12;
20435
- function o3(e, t) {
20435
+ e4
20436
+ ], r4 = 12;
20437
+ function o4(e, t) {
20436
20438
  return ib(e, Jd(t), 0, 0);
20437
20439
  }
20438
20440
  function ib(e, t, n, r) {
20439
20441
  if (!e) return [];
20440
- if (!t || r > r3)
20442
+ if (!t || r > r4)
20441
20443
  return [{ start: n, end: n + e.length, type: "text", lang: t?.name ?? "text" }];
20442
20444
  if (t.tokenize) {
20443
20445
  const o = {
20444
20446
  sub: (s, i, a) => ib(s, Jd(i), a, r + 1)
20445
20447
  };
20446
- return s3(t.tokenize(e, o), n);
20448
+ return s4(t.tokenize(e, o), n);
20447
20449
  }
20448
- return i3(e, t, n, r);
20450
+ return i4(e, t, n, r);
20449
20451
  }
20450
- function s3(e, t) {
20452
+ function s4(e, t) {
20451
20453
  return t === 0 ? e : e.map((n) => ({ ...n, start: n.start + t, end: n.end + t }));
20452
20454
  }
20453
- function i3(e, t, n, r) {
20455
+ function i4(e, t, n, r) {
20454
20456
  const o = [], s = ["root"];
20455
20457
  let i = 0, a = 0;
20456
20458
  const l = () => {
@@ -20466,7 +20468,7 @@ function i3(e, t, n, r) {
20466
20468
  if (!(!m || m.index !== i)) {
20467
20469
  if (m[0].length === 0)
20468
20470
  throw new Error(`${t.name}.${c}[${p}] matched empty at ${i}`);
20469
- l(), l3(o, m, h, n, t.name), i += m[0].length, h.embed ? i = a3(e, m, h, o, t, n, r, i) : h.push ? s.push(h.push) : h.pop && s.length > 1 && s.pop(), a = i, f = !0;
20471
+ l(), l4(o, m, h, n, t.name), i += m[0].length, h.embed ? i = a4(e, m, h, o, t, n, r, i) : h.push ? s.push(h.push) : h.pop && s.length > 1 && s.pop(), a = i, f = !0;
20470
20472
  break;
20471
20473
  }
20472
20474
  }
@@ -20474,7 +20476,7 @@ function i3(e, t, n, r) {
20474
20476
  }
20475
20477
  return i = e.length, l(), o;
20476
20478
  }
20477
- function a3(e, t, n, r, o, s, i, a) {
20479
+ function a4(e, t, n, r, o, s, i, a) {
20478
20480
  const l = typeof n.embed == "function" ? n.embed(t) : n.embed, c = n.until, d = new RegExp(c.source, c.flags.replace("y", "") + "g");
20479
20481
  d.lastIndex = a;
20480
20482
  const f = d.exec(e), p = f ? f.index : e.length, h = e.slice(a, p);
@@ -20484,7 +20486,7 @@ function a3(e, t, n, r, o, s, i, a) {
20484
20486
  }
20485
20487
  return f ? (hs(r, s + f.index, s + f.index + f[0].length, n.untilToken ?? "punctuation", o.name), f.index + f[0].length) : e.length;
20486
20488
  }
20487
- function l3(e, t, n, r, o) {
20489
+ function l4(e, t, n, r, o) {
20488
20490
  const s = t.index, i = s + t[0].length;
20489
20491
  if (n.token) {
20490
20492
  hs(e, r + s, r + i, n.token, o);
@@ -20525,13 +20527,13 @@ let qw = !1;
20525
20527
  function tf() {
20526
20528
  if (!qw) {
20527
20529
  qw = !0;
20528
- for (const e of n3) IE(e);
20530
+ for (const e of n4) IE(e);
20529
20531
  }
20530
20532
  }
20531
20533
  function BE(e, t) {
20532
- return tf(), o3(e, t);
20534
+ return tf(), o4(e, t);
20533
20535
  }
20534
- function c3() {
20536
+ function c4() {
20535
20537
  return tf(), Q5();
20536
20538
  }
20537
20539
  function uee(e) {
@@ -20540,10 +20542,10 @@ function uee(e) {
20540
20542
  function dee(e) {
20541
20543
  tf(), IE(e);
20542
20544
  }
20543
- function u3(e, t) {
20545
+ function u4(e, t) {
20544
20546
  return Oe(() => BE(e, t), [e, t]);
20545
20547
  }
20546
- const d3 = fd(function({
20548
+ const d4 = fd(function({
20547
20549
  source: t,
20548
20550
  tokens: n
20549
20551
  }) {
@@ -20552,7 +20554,7 @@ const d3 = fd(function({
20552
20554
  `
20553
20555
  `
20554
20556
  ] });
20555
- }), f3 = fd(function({
20557
+ }), f4 = fd(function({
20556
20558
  count: t,
20557
20559
  from: n
20558
20560
  }) {
@@ -20628,7 +20630,7 @@ const d3 = fd(function({
20628
20630
  }
20629
20631
  }), ab = /* @__PURE__ */ k.createContext(void 0);
20630
20632
  process.env.NODE_ENV !== "production" && (ab.displayName = "ToggleGroupContext");
20631
- function p3() {
20633
+ function p4() {
20632
20634
  return k.useContext(ab);
20633
20635
  }
20634
20636
  const lb = /* @__PURE__ */ k.createContext({
@@ -20643,7 +20645,7 @@ const lb = /* @__PURE__ */ k.createContext({
20643
20645
  }
20644
20646
  });
20645
20647
  process.env.NODE_ENV !== "production" && (lb.displayName = "CompositeListContext");
20646
- function h3() {
20648
+ function h4() {
20647
20649
  return k.useContext(lb);
20648
20650
  }
20649
20651
  function Rr(e = {}) {
@@ -20658,7 +20660,7 @@ function Rr(e = {}) {
20658
20660
  unregister: a,
20659
20661
  subscribeMapChange: l,
20660
20662
  nextIndexRef: c
20661
- } = h3(), d = k.useRef(-1), [f, p] = k.useState(s == null && t ? () => {
20663
+ } = h4(), d = k.useRef(-1), [f, p] = k.useState(s == null && t ? () => {
20662
20664
  if (d.current === -1) {
20663
20665
  const b = c.current;
20664
20666
  c.current += 1, d.current = b;
@@ -20753,7 +20755,7 @@ const UE = /* @__PURE__ */ k.forwardRef(function(t, n) {
20753
20755
  nativeButton: p = !0,
20754
20756
  style: h,
20755
20757
  ...m
20756
- } = t, g = Nt(f || void 0), b = p3(), x = b?.value ?? [], v = b ? void 0 : o, y = (s || b?.disabled) ?? !1;
20758
+ } = t, g = Nt(f || void 0), b = p4(), x = b?.value ?? [], v = b ? void 0 : o, y = (s || b?.disabled) ?? !1;
20757
20759
  process.env.NODE_ENV !== "production" && k.useEffect(() => {
20758
20760
  b && f === void 0 && b.isValueInitialized && Os("A `<Toggle>` component rendered in a `<ToggleGroup>` has no explicit `value` prop.", "This will cause issues between the Toggle Group and Toggle values.", "Provide the `<Toggle>` with a `value` prop matching the `<ToggleGroup>` values prop type.");
20759
20761
  }, [b, f, b?.isValueInitialized]);
@@ -20804,7 +20806,7 @@ function xo(e) {
20804
20806
  elementsRef: n,
20805
20807
  labelsRef: r,
20806
20808
  onMapChange: o
20807
- } = e, s = Ce(o), [, i] = k.useState(!1), a = jt(g3).current, l = jt(m3).current, c = k.useRef(0), d = k.useRef(!0), f = k.useRef([]), p = k.useRef(null), h = Ce(() => {
20809
+ } = e, s = Ce(o), [, i] = k.useState(!1), a = jt(g4).current, l = jt(m4).current, c = k.useRef(0), d = k.useRef(!0), f = k.useRef([]), p = k.useRef(null), h = Ce(() => {
20808
20810
  d.current || (d.current = !0, i((C) => !C));
20809
20811
  }), m = Ce((C, S) => {
20810
20812
  l.set(C, S), h();
@@ -20823,7 +20825,7 @@ function xo(e) {
20823
20825
  if (p.current?.disconnect(), p.current = null, typeof MutationObserver != "function" || C.length < 2)
20824
20826
  return;
20825
20827
  const S = new MutationObserver((E) => {
20826
- if (!x3(E))
20828
+ if (!x4(E))
20827
20829
  return;
20828
20830
  let N = null;
20829
20831
  for (const I of C)
@@ -20838,7 +20840,7 @@ function xo(e) {
20838
20840
  p.current = S;
20839
20841
  const R = /* @__PURE__ */ new Set();
20840
20842
  for (let E = 1; E < C.length; E += 1) {
20841
- const N = v3(C[E - 1], C[E]);
20843
+ const N = v4(C[E - 1], C[E]);
20842
20844
  N && R.add(N);
20843
20845
  }
20844
20846
  R.forEach((E) => S.observe(E, {
@@ -20846,7 +20848,7 @@ function xo(e) {
20846
20848
  }));
20847
20849
  }
20848
20850
  const v = Ce(() => {
20849
- const [C, S] = b3(l), R = b(C);
20851
+ const [C, S] = b4(l), R = b(C);
20850
20852
  x(S), f.current = C, d.current = !1, a.forEach((E) => E(R)), s(R);
20851
20853
  });
20852
20854
  Ee(() => (d.current || b(f.current), () => {
@@ -20869,13 +20871,13 @@ function xo(e) {
20869
20871
  children: t
20870
20872
  });
20871
20873
  }
20872
- function m3() {
20874
+ function m4() {
20873
20875
  return /* @__PURE__ */ new Map();
20874
20876
  }
20875
- function g3() {
20877
+ function g4() {
20876
20878
  return /* @__PURE__ */ new Set();
20877
20879
  }
20878
- function b3(e) {
20880
+ function b4(e) {
20879
20881
  const t = /* @__PURE__ */ new Set(), n = [], r = [];
20880
20882
  e.forEach((s, i) => {
20881
20883
  if (!i.isConnected)
@@ -20894,13 +20896,13 @@ function b3(e) {
20894
20896
  s.index = o, n.push(s), o += 1;
20895
20897
  }), t.size > 0 && n.sort((s, i) => s.index - i.index), [n, r.map((s) => s.element)];
20896
20898
  }
20897
- function v3(e, t) {
20899
+ function v4(e, t) {
20898
20900
  let n = e.parentElement;
20899
20901
  for (; n && !n.contains(t); )
20900
20902
  n = n.parentElement;
20901
20903
  return n;
20902
20904
  }
20903
- function x3(e) {
20905
+ function x4(e) {
20904
20906
  for (const t of e)
20905
20907
  for (let n = 0; n < t.removedNodes.length; n += 1)
20906
20908
  if (t.removedNodes[n].isConnected)
@@ -20913,8 +20915,8 @@ function jE(e, t) {
20913
20915
  function GE(e) {
20914
20916
  return e == null || e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true";
20915
20917
  }
20916
- const cb = "data-composite-item-active", y3 = [];
20917
- function w3(e) {
20918
+ const cb = "data-composite-item-active", y4 = [];
20919
+ function w4(e) {
20918
20920
  const {
20919
20921
  loopFocus: t = !0,
20920
20922
  orientation: n = "both",
@@ -20927,7 +20929,7 @@ function w3(e) {
20927
20929
  enableHomeAndEndKeys: c = !1,
20928
20930
  stopEventPropagation: d,
20929
20931
  disabledIndices: f,
20930
- modifierKeys: p = y3
20932
+ modifierKeys: p = y4
20931
20933
  } = e, [h, m] = k.useState(0), g = r != null, b = k.useRef(null), x = Sn(b, l), v = k.useRef([]), y = k.useRef(!1), w = i ?? h, C = Ce((I, A = !1) => {
20932
20934
  if ((a ?? m)(I), A) {
20933
20935
  const D = v.current[I];
@@ -20961,7 +20963,7 @@ function w3(e) {
20961
20963
  }, [f, i, w, v, C]);
20962
20964
  const R = Ce((I, A, D) => o ? o(I, A, D, v) : D), E = Ce((I) => {
20963
20965
  const A = I.key === wu || I.key === ku;
20964
- if (!Us.has(I.key) || !c && A || k3(I, p) || !b.current)
20966
+ if (!Us.has(I.key) || !c && A || k4(I, p) || !b.current)
20965
20967
  return;
20966
20968
  const P = s === "rtl", T = P ? xu : yu, $ = P ? yu : xu, L = n === "vertical" ? vu : T, F = n === "vertical" ? bu : $, _ = Et(I.nativeEvent);
20967
20969
  if (_ != null && cw(_) && !GE(_)) {
@@ -21008,7 +21010,7 @@ function w3(e) {
21008
21010
  relayKeyboardEvent: E
21009
21011
  };
21010
21012
  }
21011
- function k3(e, t) {
21013
+ function k4(e, t) {
21012
21014
  for (const n of zF)
21013
21015
  if (!t.includes(n) && e.getModifierState(n))
21014
21016
  return !0;
@@ -21045,7 +21047,7 @@ function nf(e) {
21045
21047
  elementsRef: A,
21046
21048
  onMapChange: D,
21047
21049
  relayKeyboardEvent: P
21048
- } = w3({
21050
+ } = w4({
21049
21051
  grid: f,
21050
21052
  loopFocus: p,
21051
21053
  onLoop: h,
@@ -21331,7 +21333,7 @@ const ZE = /* @__PURE__ */ k.forwardRef(function(t, n) {
21331
21333
  });
21332
21334
  });
21333
21335
  process.env.NODE_ENV !== "production" && (ZE.displayName = "ToolbarInput");
21334
- const C3 = ht({
21336
+ const C4 = ht({
21335
21337
  base: [
21336
21338
  "inline-flex shrink-0 cursor-pointer items-center justify-center gap-2",
21337
21339
  "rounded-md font-medium whitespace-nowrap text-secondary",
@@ -21356,7 +21358,7 @@ const C3 = ht({
21356
21358
  defaultVariants: { size: "md", iconOnly: !1 }
21357
21359
  });
21358
21360
  function Iu({ size: e, iconOnly: t, className: n, children: r, ref: o, ...s }) {
21359
- return /* @__PURE__ */ u(UE, { ref: o, className: H(C3({ size: e, iconOnly: t }), n), ...s, children: r });
21361
+ return /* @__PURE__ */ u(UE, { ref: o, className: H(C4({ size: e, iconOnly: t }), n), ...s, children: r });
21360
21362
  }
21361
21363
  function JE({
21362
21364
  className: e,
@@ -21444,7 +21446,7 @@ function gee({ className: e, children: t, ref: n, ...r }) {
21444
21446
  }
21445
21447
  );
21446
21448
  }
21447
- const S3 = /* @__PURE__ */ new Set([Fh.name, ...Fh.aliases ?? []]), E3 = (e) => !!e && S3.has(e.trim().toLowerCase());
21449
+ const S4 = /* @__PURE__ */ new Set([Fh.name, ...Fh.aliases ?? []]), E4 = (e) => !!e && S4.has(e.trim().toLowerCase());
21448
21450
  function QE({
21449
21451
  value: e,
21450
21452
  defaultValue: t,
@@ -21469,7 +21471,7 @@ function QE({
21469
21471
  ref: w,
21470
21472
  ...C
21471
21473
  }) {
21472
- const [S, R] = fi(e, t ?? "", n), [E, N] = fi(d, f, p), I = E3(o), A = Oe(
21474
+ const [S, R] = fi(e, t ?? "", n), [E, N] = fi(d, f, p), I = E4(o), A = Oe(
21473
21475
  () => I ? r ? ["source", "rendered"] : ["source", "rendered", "split"] : ["source"],
21474
21476
  [I, r]
21475
21477
  ), [D, P] = fi(
@@ -21522,11 +21524,11 @@ function QE({
21522
21524
  className: H(K.root(), y),
21523
21525
  ...C,
21524
21526
  children: [
21525
- v ?? /* @__PURE__ */ u(O3, {}),
21527
+ v ?? /* @__PURE__ */ u(O4, {}),
21526
21528
  /* @__PURE__ */ M("div", { className: "relative min-w-0", children: [
21527
21529
  /* @__PURE__ */ M("div", { className: K.body(), children: [
21528
21530
  T !== "rendered" && /* @__PURE__ */ u(
21529
- N3,
21531
+ N4,
21530
21532
  {
21531
21533
  text: S,
21532
21534
  onText: R,
@@ -21554,7 +21556,7 @@ function QE({
21554
21556
  "flex min-w-0 flex-1",
21555
21557
  T === "split" && "border-t border-border-subtle md:border-t-0 md:border-l"
21556
21558
  ),
21557
- children: /* @__PURE__ */ u(R3, { text: S, style: oe, collapsed: G })
21559
+ children: /* @__PURE__ */ u(R4, { text: S, style: oe, collapsed: G })
21558
21560
  }
21559
21561
  )
21560
21562
  ] }),
@@ -21574,12 +21576,12 @@ function QE({
21574
21576
  ]
21575
21577
  }
21576
21578
  ),
21577
- !r && /* @__PURE__ */ u(A3, { tabLeaves: W })
21579
+ !r && /* @__PURE__ */ u(A4, { tabLeaves: W })
21578
21580
  ]
21579
21581
  }
21580
21582
  ) });
21581
21583
  }
21582
- function N3({
21584
+ function N4({
21583
21585
  text: e,
21584
21586
  onText: t,
21585
21587
  language: n,
@@ -21594,7 +21596,7 @@ function N3({
21594
21596
  tabLeaves: f,
21595
21597
  onTabLeavesChange: p
21596
21598
  }) {
21597
- const h = js(), m = u3(e, n), g = Oe(() => e.split(`
21599
+ const h = js(), m = u4(e, n), g = Oe(() => e.split(`
21598
21600
  `).length, [e]), b = s !== void 0 && !i, x = b ? String(s + g - 1).length : 0, v = xe(f), y = (C) => {
21599
21601
  v.current = C, p(C);
21600
21602
  }, w = (C) => {
@@ -21640,7 +21642,7 @@ function N3({
21640
21642
  style: { "--code-digits": x },
21641
21643
  className: H(h.layers(), i ? "w-full" : "w-max min-w-full"),
21642
21644
  children: [
21643
- b && /* @__PURE__ */ u("div", { "data-code-gutter": "", "aria-hidden": "true", className: H(h.gutter(), "dx-code-nowrap"), children: /* @__PURE__ */ u(f3, { count: g, from: s }) }),
21645
+ b && /* @__PURE__ */ u("div", { "data-code-gutter": "", "aria-hidden": "true", className: H(h.gutter(), "dx-code-nowrap"), children: /* @__PURE__ */ u(f4, { count: g, from: s }) }),
21644
21646
  /* @__PURE__ */ u(
21645
21647
  "pre",
21646
21648
  {
@@ -21650,7 +21652,7 @@ function N3({
21650
21652
  h.pre(),
21651
21653
  i ? "dx-code-wrap min-w-0 flex-1" : "dx-code-nowrap w-max shrink-0"
21652
21654
  ),
21653
- children: /* @__PURE__ */ u(d3, { source: e, tokens: m })
21655
+ children: /* @__PURE__ */ u(d4, { source: e, tokens: m })
21654
21656
  }
21655
21657
  ),
21656
21658
  !o && /* @__PURE__ */ u(
@@ -21681,7 +21683,7 @@ function N3({
21681
21683
  }
21682
21684
  );
21683
21685
  }
21684
- function R3({
21686
+ function R4({
21685
21687
  text: e,
21686
21688
  style: t,
21687
21689
  collapsed: n
@@ -21730,7 +21732,7 @@ function tN({ className: e }) {
21730
21732
  const { filename: t, language: n } = kl("CodeEditorCaption"), r = js(), o = he().codeEditor;
21731
21733
  return /* @__PURE__ */ u("span", { "data-code-caption": "", className: H(r.caption(), e), children: t ?? n ?? o.captionFallback });
21732
21734
  }
21733
- function I3({ className: e }) {
21735
+ function I4({ className: e }) {
21734
21736
  const { copy: t, copied: n } = kl("CodeEditorCopyButton"), r = js(), o = he().codeEditor;
21735
21737
  return /* @__PURE__ */ u(Gt, { content: n ? o.copied : o.copy, children: /* @__PURE__ */ u(
21736
21738
  "button",
@@ -21744,7 +21746,7 @@ function I3({ className: e }) {
21744
21746
  }
21745
21747
  ) });
21746
21748
  }
21747
- function M3({ className: e }) {
21749
+ function M4({ className: e }) {
21748
21750
  const { wrap: t, setWrap: n } = kl("CodeEditorWrapToggle"), r = he().codeEditor;
21749
21751
  return /* @__PURE__ */ u(Gt, { content: t ? r.stopWrapping : r.wrapLongLines, children: /* @__PURE__ */ u(
21750
21752
  Iu,
@@ -21759,8 +21761,8 @@ function M3({ className: e }) {
21759
21761
  }
21760
21762
  ) });
21761
21763
  }
21762
- const T3 = { source: "code", rendered: "file-text", split: "columns-3" };
21763
- function P3({ className: e }) {
21764
+ const T4 = { source: "code", rendered: "file-text", split: "columns-3" };
21765
+ function P4({ className: e }) {
21764
21766
  const { view: t, setView: n, views: r } = kl("CodeEditorViewSwitch"), o = he().codeEditor;
21765
21767
  return r.length < 2 ? null : /* @__PURE__ */ u(
21766
21768
  JE,
@@ -21783,22 +21785,22 @@ function P3({ className: e }) {
21783
21785
  value: s,
21784
21786
  "aria-label": o.views[s],
21785
21787
  className: H("dx-tap shrink-0", s === "split" && "hidden md:inline-flex"),
21786
- children: /* @__PURE__ */ u(ue, { name: T3[s], size: "xs" })
21788
+ children: /* @__PURE__ */ u(ue, { name: T4[s], size: "xs" })
21787
21789
  }
21788
21790
  ) }, s))
21789
21791
  }
21790
21792
  );
21791
21793
  }
21792
- function O3() {
21794
+ function O4() {
21793
21795
  const { view: e } = kl("CodeEditorDefaultToolbar");
21794
21796
  return /* @__PURE__ */ M(eN, { children: [
21795
21797
  /* @__PURE__ */ u(tN, {}),
21796
- /* @__PURE__ */ u(P3, {}),
21797
- e !== "rendered" && /* @__PURE__ */ u(M3, {}),
21798
- /* @__PURE__ */ u(I3, {})
21798
+ /* @__PURE__ */ u(P4, {}),
21799
+ e !== "rendered" && /* @__PURE__ */ u(M4, {}),
21800
+ /* @__PURE__ */ u(I4, {})
21799
21801
  ] });
21800
21802
  }
21801
- function A3({ tabLeaves: e }) {
21803
+ function A4({ tabLeaves: e }) {
21802
21804
  const t = js(), n = he().codeEditor;
21803
21805
  return /* @__PURE__ */ u("div", { className: t.footer(), children: /* @__PURE__ */ u("span", { "data-code-hint": "", "aria-live": "polite", className: t.hint(), children: e ? n.tabLeavesHint : n.tabIndentsHint }) });
21804
21806
  }
@@ -21815,9 +21817,9 @@ function fb({ code: e, language: t, filename: n, streaming: r, className: o }) {
21815
21817
  }
21816
21818
  );
21817
21819
  }
21818
- const D3 = (e) => /* @__PURE__ */ u(fb, { code: e.code, language: e.language, streaming: e.open }), Si = fd(function({ children: t, className: n, renderCode: r }) {
21820
+ const D4 = (e) => /* @__PURE__ */ u(fb, { code: e.code, language: e.language, streaming: e.open }), Si = fd(function({ children: t, className: n, renderCode: r }) {
21819
21821
  const o = Oe(() => EE(t), [t]);
21820
- return /* @__PURE__ */ u("div", { className: H("text-sm leading-relaxed text-secondary", n), children: /* @__PURE__ */ u(wl, { nodes: o, renderCode: r ?? D3 }) });
21822
+ return /* @__PURE__ */ u("div", { className: H("text-sm leading-relaxed text-secondary", n), children: /* @__PURE__ */ u(wl, { nodes: o, renderCode: r ?? D4 }) });
21821
21823
  });
21822
21824
  function nN(e) {
21823
21825
  const t = Nu(e);
@@ -21865,7 +21867,7 @@ function Kw(e, t, n) {
21865
21867
  children: [ya(n)]
21866
21868
  };
21867
21869
  }
21868
- function _3(e, t, n) {
21870
+ function _4(e, t, n) {
21869
21871
  const r = t ? e.src : nN(e.src), o = t?.state ?? (r ? "stored" : "broken"), s = (a) => ({
21870
21872
  tag: "span",
21871
21873
  attrs: { "data-md-image-state": o },
@@ -21936,7 +21938,7 @@ function _3(e, t, n) {
21936
21938
  return s([i]);
21937
21939
  }
21938
21940
  }
21939
- const of = "data-md-syntax", $3 = "data-md", sf = "data-md-decoration";
21941
+ const of = "data-md-syntax", $4 = "data-md", sf = "data-md-decoration";
21940
21942
  function Bh(e) {
21941
21943
  switch (e.kind) {
21942
21944
  case "paragraph":
@@ -22011,9 +22013,9 @@ function Bh(e) {
22011
22013
  }
22012
22014
  }
22013
22015
  function rN(e, t, n) {
22014
- return e.kind === "image" ? _3(e, t?.(e.src) ?? null, n) : void 0;
22016
+ return e.kind === "image" ? _4(e, t?.(e.src) ?? null, n) : void 0;
22015
22017
  }
22016
- function L3(e, t) {
22018
+ function L4(e, t) {
22017
22019
  if (e.kind !== t.kind) return !1;
22018
22020
  const n = Bh(e), r = Bh(t);
22019
22021
  if (n.tag !== r.tag) return !1;
@@ -22027,27 +22029,27 @@ class mb extends Error {
22027
22029
  super(t), this.name = "CompositionConflictError";
22028
22030
  }
22029
22031
  }
22030
- function F3(e, t) {
22032
+ function F4(e, t) {
22031
22033
  const n = e.createTextNode(t.text);
22032
22034
  if (n[hb] = { start: t.start, end: t.end }, !t.syntax && !t.token) return n;
22033
22035
  const r = e.createElement("span");
22034
22036
  return t.syntax && r.setAttribute(of, ""), t.token && r.setAttribute(oN, t.token), r.appendChild(n), r;
22035
22037
  }
22036
22038
  const oN = "data-t";
22037
- function V3(e, t) {
22039
+ function V4(e, t) {
22038
22040
  const n = Bh(t.frame), r = e.createElement(n.tag);
22039
- r.setAttribute($3, t.frame.kind);
22041
+ r.setAttribute($4, t.frame.kind);
22040
22042
  for (const [o, s] of Object.entries(n.attrs ?? {})) r.setAttribute(o, s);
22041
22043
  return r[pb] = t.frame, r;
22042
22044
  }
22043
22045
  function Hh(e, t, n, r) {
22044
- if (t.type === "text") return F3(e, t);
22045
- const o = V3(e, t);
22046
+ if (t.type === "text") return F4(e, t);
22047
+ const o = V4(e, t);
22046
22048
  for (const i of t.children) o.appendChild(Hh(e, i, n, r));
22047
22049
  const s = rN(t.frame, n, r);
22048
22050
  return s && o.appendChild(dN(e, s)), o;
22049
22051
  }
22050
- function z3(e, t) {
22052
+ function z4(e, t) {
22051
22053
  if (!e) return null;
22052
22054
  if (!(t.syntax || !!t.token)) return e.nodeType === 3 ? e : null;
22053
22055
  if (e.nodeType !== 1) return null;
@@ -22056,25 +22058,25 @@ function z3(e, t) {
22056
22058
  const o = r.firstChild;
22057
22059
  return r.childNodes.length === 1 && o && o.nodeType === 3 ? o : null;
22058
22060
  }
22059
- function B3(e, t) {
22061
+ function B4(e, t) {
22060
22062
  if (!e || e.nodeType !== 1) return null;
22061
22063
  const n = e, r = n[pb];
22062
- return r && L3(r, t.frame) ? n : null;
22064
+ return r && L4(r, t.frame) ? n : null;
22063
22065
  }
22064
- function H3(e, t, n) {
22065
- const r = { textUpdated: 0, textUntouched: 0, elementsReused: 0, created: 0, removed: 0 }, o = e.lastChild && j3(e.lastChild) ? e.lastChild : null;
22066
- if (o && e.removeChild(o), aN(e, t, { protect: n.protect ?? null, images: n.images, imageStrings: n.imageStrings, stats: r }), G3(t)) {
22067
- const s = o ?? U3(e.ownerDocument);
22066
+ function H4(e, t, n) {
22067
+ const r = { textUpdated: 0, textUntouched: 0, elementsReused: 0, created: 0, removed: 0 }, o = e.lastChild && j4(e.lastChild) ? e.lastChild : null;
22068
+ if (o && e.removeChild(o), aN(e, t, { protect: n.protect ?? null, images: n.images, imageStrings: n.imageStrings, stats: r }), G4(t)) {
22069
+ const s = o ?? U4(e.ownerDocument);
22068
22070
  o || r.created++, e.appendChild(s);
22069
22071
  }
22070
22072
  return r;
22071
22073
  }
22072
22074
  const sN = "data-md-filler";
22073
- function U3(e) {
22075
+ function U4(e) {
22074
22076
  const t = e.createElement("br");
22075
22077
  return t.setAttribute(sN, ""), t;
22076
22078
  }
22077
- function j3(e) {
22079
+ function j4(e) {
22078
22080
  return e.nodeType === 1 && e.hasAttribute(sN);
22079
22081
  }
22080
22082
  function iN(e) {
@@ -22089,7 +22091,7 @@ function iN(e) {
22089
22091
  }
22090
22092
  return null;
22091
22093
  }
22092
- function G3(e) {
22094
+ function G4(e) {
22093
22095
  return iN(e) === `
22094
22096
  `;
22095
22097
  }
@@ -22098,7 +22100,7 @@ function aN(e, t, n) {
22098
22100
  for (let i = 0; i < t.length; i++) {
22099
22101
  const a = t[i], l = e.childNodes[i] ?? null;
22100
22102
  if (a.type === "text") {
22101
- const d = z3(l, a);
22103
+ const d = z4(l, a);
22102
22104
  if (d) {
22103
22105
  if (d.data === a.text)
22104
22106
  s.textUntouched++;
@@ -22115,9 +22117,9 @@ function aN(e, t, n) {
22115
22117
  Yw(e, i, Hh(r, a, n.images, n.imageStrings), o, s);
22116
22118
  continue;
22117
22119
  }
22118
- const c = B3(l, a);
22120
+ const c = B4(l, a);
22119
22121
  if (c) {
22120
- c[pb] = a.frame, s.elementsReused++, W3(c, a, n);
22122
+ c[pb] = a.frame, s.elementsReused++, W4(c, a, n);
22121
22123
  continue;
22122
22124
  }
22123
22125
  Yw(e, i, Hh(r, a, n.images, n.imageStrings), o, s);
@@ -22127,13 +22129,13 @@ function aN(e, t, n) {
22127
22129
  fN(i, o, "removed"), e.removeChild(i), s.removed++;
22128
22130
  }
22129
22131
  }
22130
- function W3(e, t, n) {
22131
- const r = rN(t.frame, n.images, n.imageStrings), o = q3(e);
22132
+ function W4(e, t, n) {
22133
+ const r = rN(t.frame, n.images, n.imageStrings), o = q4(e);
22132
22134
  if (o && e.removeChild(o), aN(e, t.children, n), !r) return;
22133
22135
  const s = o && lN(o, r) ? o : dN(e.ownerDocument, r);
22134
22136
  s !== o && n.stats.created++, e.appendChild(s);
22135
22137
  }
22136
- function q3(e) {
22138
+ function q4(e) {
22137
22139
  const t = e.lastChild;
22138
22140
  return t && t.nodeType === 1 && t.hasAttribute(sf) ? t : null;
22139
22141
  }
@@ -22145,9 +22147,9 @@ function lN(e, t) {
22145
22147
  const r = t.children ?? [];
22146
22148
  return e.children.length !== r.length ? !1 : r.every((o, s) => lN(e.children[s], o));
22147
22149
  }
22148
- const K3 = "http://www.w3.org/2000/svg";
22150
+ const K4 = "http://www.w3.org/2000/svg";
22149
22151
  function cN(e, t, n) {
22150
- const r = n || t.tag === "svg", o = r ? e.createElementNS(K3, t.tag) : e.createElement(t.tag);
22152
+ const r = n || t.tag === "svg", o = r ? e.createElementNS(K4, t.tag) : e.createElement(t.tag);
22151
22153
  for (const [s, i] of Object.entries(t.attrs)) o.setAttribute(s, i);
22152
22154
  for (const s of t.children ?? []) o.appendChild(cN(e, s, r));
22153
22155
  return o;
@@ -22176,7 +22178,7 @@ function fN(e, t, n) {
22176
22178
  function Wn(e) {
22177
22179
  return e[hb] ?? null;
22178
22180
  }
22179
- function Y3(e) {
22181
+ function Y4(e) {
22180
22182
  const t = [], n = (r) => {
22181
22183
  if (r.nodeType === 3) {
22182
22184
  Wn(r) && t.push(r);
@@ -22203,7 +22205,7 @@ function Cp(e, t) {
22203
22205
  return { node: r, offset: i ? o + 1 : o };
22204
22206
  }
22205
22207
  function jh(e, t, n = "after") {
22206
- const r = Y3(e);
22208
+ const r = Y4(e);
22207
22209
  if (!r.length) return null;
22208
22210
  let o = null;
22209
22211
  for (let a = 0; a < r.length; a++) {
@@ -22233,7 +22235,7 @@ function fo(e, t, n) {
22233
22235
  const s = af(o);
22234
22236
  if (s) return Wn(s).end;
22235
22237
  }
22236
- return X3(e, t);
22238
+ return X4(e, t);
22237
22239
  }
22238
22240
  function gb(e) {
22239
22241
  if (e.nodeType === 3) return Wn(e) ? e : null;
@@ -22251,7 +22253,7 @@ function af(e) {
22251
22253
  }
22252
22254
  return null;
22253
22255
  }
22254
- function X3(e, t) {
22256
+ function X4(e, t) {
22255
22257
  for (let n = t; n && n !== e.parentNode; n = n.parentNode) {
22256
22258
  for (let r = n.previousSibling; r; r = r.previousSibling) {
22257
22259
  const o = af(r);
@@ -22278,7 +22280,7 @@ function wa(e, t, n = "after") {
22278
22280
  const i = e.ownerDocument.getSelection();
22279
22281
  return i ? (i.setBaseAndExtent(o.node, o.offset, s.node, s.offset), !0) : !1;
22280
22282
  }
22281
- const Z3 = new Intl.Segmenter(void 0, { granularity: "grapheme" });
22283
+ const Z4 = new Intl.Segmenter(void 0, { granularity: "grapheme" });
22282
22284
  function bee(e, t, n) {
22283
22285
  const r = Math.max(0, Math.min(t, e.length));
22284
22286
  if (n === 1 && r >= e.length) return e.length;
@@ -22286,7 +22288,7 @@ function bee(e, t, n) {
22286
22288
  const o = en(e, r), s = o.start, i = e.slice(s, o.end), a = r - s;
22287
22289
  if (n === -1 && a <= 0) return r - 1;
22288
22290
  const l = [0];
22289
- for (const d of Z3.segment(i)) l.push(d.index + d.segment.length);
22291
+ for (const d of Z4.segment(i)) l.push(d.index + d.segment.length);
22290
22292
  if (n === 1) {
22291
22293
  for (const d of l) if (d > a) return s + d;
22292
22294
  return r + 1;
@@ -22313,7 +22315,7 @@ class Sp extends Error {
22313
22315
  super(t), this.name = "ProjectionError";
22314
22316
  }
22315
22317
  }
22316
- function J3(e) {
22318
+ function J4(e) {
22317
22319
  const t = [], n = [];
22318
22320
  let r = 0;
22319
22321
  if (Jg(e, {
@@ -22343,18 +22345,18 @@ function J3(e) {
22343
22345
  throw new Sp(`${n.length} frame(s) left open: ${n.map((s) => s.frame.kind).join(", ")}`);
22344
22346
  return t;
22345
22347
  }
22346
- function Q3(e, t) {
22348
+ function Q4(e, t) {
22347
22349
  for (const n of e) if (t >= n.start && t < n.end) return !0;
22348
22350
  return !1;
22349
22351
  }
22350
- function e4(e, t, n) {
22352
+ function e3(e, t, n) {
22351
22353
  let r = n;
22352
22354
  for (const o of e)
22353
22355
  o.start > t && o.start < r && (r = o.start), o.end > t && o.end < r && (r = o.end);
22354
22356
  return r;
22355
22357
  }
22356
22358
  function Tu(e, t = {}) {
22357
- const n = J3(e), r = /* @__PURE__ */ new Map();
22359
+ const n = J4(e), r = /* @__PURE__ */ new Map();
22358
22360
  if (t.highlight)
22359
22361
  for (const d of n) {
22360
22362
  if (d.frame.kind !== "codeBody" || !d.content.length) continue;
@@ -22366,8 +22368,8 @@ function Tu(e, t = {}) {
22366
22368
  function a(d, f, p, h) {
22367
22369
  let m = f;
22368
22370
  for (; m < p; ) {
22369
- const g = h ? h.content : null, b = g !== null && !Q3(g, m);
22370
- let x = g === null ? p : Math.min(e4(g, m, p), p);
22371
+ const g = h ? h.content : null, b = g !== null && !Q4(g, m);
22372
+ let x = g === null ? p : Math.min(e3(g, m, p), p);
22371
22373
  const v = h ? r.get(h) : void 0;
22372
22374
  let y;
22373
22375
  if (v && !b) {
@@ -22404,16 +22406,16 @@ function Tu(e, t = {}) {
22404
22406
  const c = [];
22405
22407
  return l(c, e.length, null), c.length || c.push({ type: "text", start: 0, end: 0, text: "", syntax: !1 }), { source: e, children: c, frames: n };
22406
22408
  }
22407
- function t4(e) {
22409
+ function t3(e) {
22408
22410
  let t = "";
22409
- for (const n of e) t += n.type === "text" ? n.text : t4(n.children);
22411
+ for (const n of e) t += n.type === "text" ? n.text : t3(n.children);
22410
22412
  return t;
22411
22413
  }
22412
- const n4 = /^\s*blob:/i;
22414
+ const n3 = /^\s*blob:/i;
22413
22415
  function bb(e) {
22414
- return n4.test(e);
22416
+ return n3.test(e);
22415
22417
  }
22416
- function r4(e) {
22418
+ function r3(e) {
22417
22419
  if (!/blob:/i.test(e)) return [];
22418
22420
  const t = [];
22419
22421
  for (const n of Tu(e).frames) {
@@ -22422,14 +22424,14 @@ function r4(e) {
22422
22424
  }
22423
22425
  return t.sort((n, r) => n.start - r.start);
22424
22426
  }
22425
- const o4 = /[\\[\]*_`<>|!]/g;
22427
+ const o3 = /[\\[\]*_`<>|!]/g;
22426
22428
  function pN(e) {
22427
22429
  return e.trim().replace(/[\s()<>\\]/g, (t) => `%${t.charCodeAt(0).toString(16).toUpperCase().padStart(2, "0")}`);
22428
22430
  }
22429
22431
  function hN(e, t) {
22430
- return `![${t.replace(o4, "\\$&")}](${pN(e)})`;
22432
+ return `![${t.replace(o3, "\\$&")}](${pN(e)})`;
22431
22433
  }
22432
- function s4(e, t) {
22434
+ function s3(e, t) {
22433
22435
  const n = e.replace(/\.[^./\\]+$/, "").replace(/[\u0000-\u001f\u007f]+/g, " ").trim();
22434
22436
  return n.length ? n : t;
22435
22437
  }
@@ -22529,7 +22531,7 @@ function lf(e) {
22529
22531
  };
22530
22532
  }
22531
22533
  const vN = lf("**"), xN = lf("*"), yN = lf("`"), wN = lf("~~"), kN = /^(\s*)(#{1,6})(\s+)/;
22532
- function i4(e) {
22534
+ function i3(e) {
22533
22535
  const t = kN.exec(e);
22534
22536
  return t ? t[2].length : 0;
22535
22537
  }
@@ -22541,15 +22543,15 @@ function Ro(e) {
22541
22543
  }
22542
22544
  function Xw(e) {
22543
22545
  return (t, n) => {
22544
- const r = po(t, n)[0], o = i4(r.text), s = Math.max(0, Math.min(6, o + e));
22546
+ const r = po(t, n)[0], o = i3(r.text), s = Math.max(0, Math.min(6, o + e));
22545
22547
  return s === o ? null : Ro(s)(t, n);
22546
22548
  };
22547
22549
  }
22548
- const a4 = /^(\s*)([-*+])(\s+)/, l4 = /^(\s*)(\d{1,9})([.)])(\s+)/;
22550
+ const a3 = /^(\s*)([-*+])(\s+)/, l3 = /^(\s*)(\d{1,9})([.)])(\s+)/;
22549
22551
  function Nr(e) {
22550
- const t = a4.exec(e);
22552
+ const t = a3.exec(e);
22551
22553
  if (t) return { indent: t[1], marker: t[2], body: e.slice(t[0].length), ordered: !1 };
22552
- const n = l4.exec(e);
22554
+ const n = l3.exec(e);
22553
22555
  return n ? { indent: n[1], marker: n[2] + n[3], body: e.slice(n[0].length), ordered: !0 } : null;
22554
22556
  }
22555
22557
  function Zw(e) {
@@ -22567,7 +22569,7 @@ function Zw(e) {
22567
22569
  };
22568
22570
  }
22569
22571
  const Ga = " ", vb = /^\[([ xX])\]\s?/;
22570
- function c4(e, t) {
22572
+ function c3(e, t) {
22571
22573
  const n = Nr(e.slice(t.start, en(e, t.start).end));
22572
22574
  if (!n) return !1;
22573
22575
  const r = n.indent.length;
@@ -22583,22 +22585,22 @@ function c4(e, t) {
22583
22585
  }
22584
22586
  return !1;
22585
22587
  }
22586
- const u4 = (e, t) => {
22588
+ const u3 = (e, t) => {
22587
22589
  const n = po(e, t);
22588
- return Nr(n[0].text) && !c4(e, n[0]) ? null : zi(t, n, n.map((r) => Ga + r.text));
22589
- }, d4 = (e, t) => {
22590
+ return Nr(n[0].text) && !c3(e, n[0]) ? null : zi(t, n, n.map((r) => Ga + r.text));
22591
+ }, d3 = (e, t) => {
22590
22592
  const n = po(e, t);
22591
22593
  return n.some((r) => r.text.startsWith(" ") || r.text.startsWith(" ")) ? zi(
22592
22594
  t,
22593
22595
  n,
22594
22596
  n.map((r) => r.text.startsWith(Ga) ? r.text.slice(Ga.length) : r.text.replace(/^[ \t]/, ""))
22595
22597
  ) : null;
22596
- }, f4 = (e, t) => {
22598
+ }, f3 = (e, t) => {
22597
22599
  const n = po(e, t)[0], r = Nr(n.text);
22598
22600
  if (!r) return null;
22599
22601
  const o = n.text.slice(0, n.text.length - r.body.length), s = vb.exec(r.body), i = s ? `${o}[${s[1] === " " ? "x" : " "}] ${r.body.slice(s[0].length)}` : `${o}[ ] ${r.body}`;
22600
22602
  return zi(t, [n], [i]);
22601
- }, Pu = /^(\s*)>\s?/, p4 = (e, t) => {
22603
+ }, Pu = /^(\s*)>\s?/, p3 = (e, t) => {
22602
22604
  const n = po(e, t), r = n.every((o) => Pu.test(o.text));
22603
22605
  return zi(
22604
22606
  t,
@@ -22606,7 +22608,7 @@ const u4 = (e, t) => {
22606
22608
  n.map((o) => r ? o.text.replace(Pu, "$1") : `> ${o.text}`)
22607
22609
  );
22608
22610
  };
22609
- function h4(e = "") {
22611
+ function h3(e = "") {
22610
22612
  return (t, n) => {
22611
22613
  const r = Bi(t, sn(n).from);
22612
22614
  if (r) {
@@ -22648,14 +22650,14 @@ function Bi(e, t) {
22648
22650
  }
22649
22651
  return s && t >= s.start ? { start: s.start, end: e.length, bodyStart: s.end + 1, bodyEnd: e.length } : null;
22650
22652
  }
22651
- const m4 = (e, t) => {
22653
+ const m3 = (e, t) => {
22652
22654
  const n = en(e, sn(t).from), r = e.slice(n.start, n.end).trim().length === 0, o = r ? "---" : `
22653
22655
 
22654
22656
  ---
22655
22657
  `, s = r ? n.start : n.end;
22656
22658
  return { splice: { start: s, end: n.end, text: o }, select: hn(s + o.length) };
22657
22659
  };
22658
- function g4(e = "", t) {
22660
+ function g3(e = "", t) {
22659
22661
  return (n, r) => {
22660
22662
  const { from: o, to: s } = sn(r), i = n.slice(o, s), a = t ? ` "${t}"` : "", l = `[${i}](${e}${a})`;
22661
22663
  return {
@@ -22675,7 +22677,7 @@ function vee(e, t) {
22675
22677
  return { splice: { start: o, end: s, text: i }, select: hn(o + i.length) };
22676
22678
  };
22677
22679
  }
22678
- const b4 = /^[ \t]*\|?[ \t]*:?-+:?[ \t]*(?:\|[ \t]*:?-+:?[ \t]*)*\|?[ \t]*$/;
22680
+ const b3 = /^[ \t]*\|?[ \t]*:?-+:?[ \t]*(?:\|[ \t]*:?-+:?[ \t]*)*\|?[ \t]*$/;
22679
22681
  function El(e, t) {
22680
22682
  const n = en(e, t), r = (i) => {
22681
22683
  const a = en(e, i);
@@ -22692,7 +22694,7 @@ function El(e, t) {
22692
22694
  if (!o(a.text)) break;
22693
22695
  s.push(a), i = a.end;
22694
22696
  }
22695
- return s.length < 2 || !b4.test(s[1].text) ? null : { start: s[0].start, end: s[s.length - 1].end, rows: s };
22697
+ return s.length < 2 || !b3.test(s[1].text) ? null : { start: s[0].start, end: s[s.length - 1].end, rows: s };
22696
22698
  }
22697
22699
  function Ds(e) {
22698
22700
  let t = e.trim();
@@ -22707,7 +22709,7 @@ function CN(e, t, n) {
22707
22709
  const o = t.rows[r], i = (e.slice(o.start, Math.max(o.start, n)).match(/\|/g) ?? []).length, a = /^\s*\|/.test(o.text) ? 1 : 0;
22708
22710
  return { row: r, column: Math.max(0, i - a) };
22709
22711
  }
22710
- function v4(e, t = 3, n = 2) {
22712
+ function v3(e, t = 3, n = 2) {
22711
22713
  return (r, o) => {
22712
22714
  const s = en(r, sn(o).from), i = e(1), a = Cs(Array.from({ length: t }, (m, g) => e(g + 1))), l = Cs(Array.from({ length: t }, () => "---")), c = Array.from({ length: n }, () => Cs(Array.from({ length: t }, () => " "))).join(`
22713
22715
  `), d = `${a}
@@ -22794,7 +22796,7 @@ function RN(e) {
22794
22796
  };
22795
22797
  };
22796
22798
  }
22797
- const x4 = (e, t) => {
22799
+ const x3 = (e, t) => {
22798
22800
  const { from: n, to: r } = sn(t);
22799
22801
  if (n !== r) return null;
22800
22802
  const o = en(e, n), s = e.slice(o.start, o.end), i = (d, f) => ({
@@ -22822,7 +22824,7 @@ const x4 = (e, t) => {
22822
22824
  return { splice: { start: o.start, end: d, text: "" }, select: hn(o.start) };
22823
22825
  }
22824
22826
  return null;
22825
- }, y4 = (e, t) => {
22827
+ }, y3 = (e, t) => {
22826
22828
  const { from: n, to: r } = sn(t), o = en(e, n), s = e.slice(o.start, o.end), i = Nr(s);
22827
22829
  if (i) {
22828
22830
  const l = vb.exec(i.body);
@@ -22855,12 +22857,12 @@ ${a[0]}`;
22855
22857
  const n = RN(!0)(e, t);
22856
22858
  if (n) return n;
22857
22859
  const r = en(e, sn(t).from), o = e.slice(r.start, r.end);
22858
- return !Nr(o) && !Bi(e, sn(t).from) ? null : u4(e, t);
22860
+ return !Nr(o) && !Bi(e, sn(t).from) ? null : u3(e, t);
22859
22861
  }, MN = (e, t) => {
22860
22862
  const n = RN(!1)(e, t);
22861
22863
  if (n) return n;
22862
22864
  const r = en(e, sn(t).from), o = e.slice(r.start, r.end);
22863
- return !Nr(o) && !Bi(e, sn(t).from) ? null : d4(e, t);
22865
+ return !Nr(o) && !Bi(e, sn(t).from) ? null : d3(e, t);
22864
22866
  }, Jw = /* @__PURE__ */ new Set([
22865
22867
  "inline",
22866
22868
  "emphasis",
@@ -22872,7 +22874,7 @@ ${a[0]}`;
22872
22874
  "autolink",
22873
22875
  "footnoteRef",
22874
22876
  "hardBreak"
22875
- ]), w4 = new Intl.Segmenter(void 0, { granularity: "grapheme" });
22877
+ ]), w3 = new Intl.Segmenter(void 0, { granularity: "grapheme" });
22876
22878
  function TN(e, t = []) {
22877
22879
  for (const n of e)
22878
22880
  n.type === "text" ? t.push(n) : TN(n.children, t);
@@ -22890,7 +22892,7 @@ function Qw(e) {
22890
22892
  continue;
22891
22893
  }
22892
22894
  s.add(y.start);
22893
- for (const w of w4.segment(y.text)) {
22895
+ for (const w of w3.segment(y.text)) {
22894
22896
  const C = y.start + w.index, S = C + w.segment.length;
22895
22897
  o.push({ start: C, end: S }), s.add(S);
22896
22898
  }
@@ -22969,22 +22971,22 @@ function sr(e, t) {
22969
22971
  const n = Math.max(0, Math.min(t, e.source.length));
22970
22972
  return e.representative[n] ?? 0;
22971
22973
  }
22972
- function k4(e, t, n) {
22974
+ function k3(e, t, n) {
22973
22975
  const r = sr(e, t), s = e.stops.indexOf(r) + n;
22974
22976
  return s < 0 || s >= e.stops.length ? r : e.stops[s];
22975
22977
  }
22976
- function C4(e, t) {
22978
+ function C3(e, t) {
22977
22979
  let n = null;
22978
22980
  for (const r of e.graphemes)
22979
22981
  if (r.end <= t) n = r;
22980
22982
  else break;
22981
22983
  return n;
22982
22984
  }
22983
- function S4(e, t) {
22985
+ function S3(e, t) {
22984
22986
  for (const n of e.graphemes) if (n.start >= t) return n;
22985
22987
  return null;
22986
22988
  }
22987
- function E4(e, t) {
22989
+ function E3(e, t) {
22988
22990
  const { source: n } = e;
22989
22991
  let r = Math.max(0, Math.min(t, n.length));
22990
22992
  for (; r > 0 && n[r - 1] !== `
@@ -22992,7 +22994,7 @@ function E4(e, t) {
22992
22994
  for (const o of e.stops) if (o >= r) return o;
22993
22995
  return r;
22994
22996
  }
22995
- function N4(e, t) {
22997
+ function N3(e, t) {
22996
22998
  const { source: n } = e;
22997
22999
  let r = Math.max(0, Math.min(t, n.length));
22998
23000
  for (; r < n.length && n[r] !== `
@@ -23019,7 +23021,7 @@ function ON(e, t = []) {
23019
23021
  n.type === "text" ? t.push(n) : ON(n.children, t);
23020
23022
  return t;
23021
23023
  }
23022
- function R4(e, t) {
23024
+ function R3(e, t) {
23023
23025
  return Math.max(0, Math.min(e.end, t.end) - Math.max(e.start, t.start));
23024
23026
  }
23025
23027
  function Ou(e, t, n) {
@@ -23037,7 +23039,7 @@ function Ou(e, t, n) {
23037
23039
  if (!PN.has(g.frame.kind)) continue;
23038
23040
  let b = 0, x = 0;
23039
23041
  for (const v of g.content)
23040
- b += v.end - v.start, x += R4(v, { start: o, end: s });
23042
+ b += v.end - v.start, x += R3(v, { start: o, end: s });
23041
23043
  b > 0 && x === b && c.push(g);
23042
23044
  }
23043
23045
  let d = o, f = s;
@@ -23065,7 +23067,7 @@ function DN(e) {
23065
23067
  select: { anchor: e.start, head: e.start }
23066
23068
  };
23067
23069
  }
23068
- function I4(e, t, n) {
23070
+ function I3(e, t, n) {
23069
23071
  const { source: r } = e;
23070
23072
  let o = Math.max(0, Math.min(n, r.length));
23071
23073
  for (; o > 0 && r[o - 1] !== `
@@ -23077,37 +23079,37 @@ function I4(e, t, n) {
23077
23079
  for (const i of t.graphemes) if (i.start < s && i.end > o) return null;
23078
23080
  return { start: o, end: Math.min(r.length, s + 1) };
23079
23081
  }
23080
- function M4(e, t, n) {
23081
- const r = C4(t, n), o = AN(e, r ? r.end : 0, n);
23082
+ function M3(e, t, n) {
23083
+ const r = C3(t, n), o = AN(e, r ? r.end : 0, n);
23082
23084
  if (o) return DN(o);
23083
- const s = I4(e, t, n);
23085
+ const s = I3(e, t, n);
23084
23086
  return s ? { splice: { ...s, text: "" }, select: { anchor: s.start, head: s.start } } : r ? Ou(e, r.start, r.end) : null;
23085
23087
  }
23086
- function T4(e, t, n) {
23087
- const r = S4(t, n), o = AN(e, n, r ? r.start : e.source.length);
23088
+ function T3(e, t, n) {
23089
+ const r = S3(t, n), o = AN(e, n, r ? r.start : e.source.length);
23088
23090
  return o ? DN(o) : r ? Ou(e, r.start, r.end) : null;
23089
23091
  }
23090
- const P4 = (e) => ({
23092
+ const P3 = (e) => ({
23091
23093
  start: Math.min(e.anchor, e.head),
23092
23094
  end: Math.max(e.anchor, e.head)
23093
23095
  }), Ep = (e, t, n) => ({
23094
23096
  splice: { start: e, end: t, text: n },
23095
23097
  select: { anchor: e + n.length, head: e + n.length }
23096
23098
  });
23097
- function O4(e, t, n) {
23098
- const { start: r, end: o } = P4(t), s = r === o;
23099
+ function O3(e, t, n) {
23100
+ const { start: r, end: o } = P3(t), s = r === o;
23099
23101
  switch (n.kind) {
23100
23102
  case "insert":
23101
23103
  return Ep(r, o, n.text);
23102
23104
  case "backspace": {
23103
23105
  if (!s) return Ou(e.projection, r, o);
23104
- const i = x4(e.source, t);
23105
- return i || M4(e.projection, e.map, r);
23106
+ const i = x3(e.source, t);
23107
+ return i || M3(e.projection, e.map, r);
23106
23108
  }
23107
23109
  case "delete":
23108
- return s ? T4(e.projection, e.map, r) : Ou(e.projection, r, o);
23110
+ return s ? T3(e.projection, e.map, r) : Ou(e.projection, r, o);
23109
23111
  case "enter":
23110
- return y4(e.source, t) ?? Ep(r, o, `
23112
+ return y3(e.source, t) ?? Ep(r, o, `
23111
23113
  `);
23112
23114
  case "lineBreak":
23113
23115
  return Ep(r, o, `
@@ -23124,7 +23126,7 @@ const xb = [
23124
23126
  { id: "italic", key: "ctrl+i", group: "formatting", command: xN },
23125
23127
  { id: "inlineCode", key: "ctrl+e", group: "formatting", command: yN },
23126
23128
  { id: "strikethrough", key: "ctrl+shift+s", group: "formatting", command: wN },
23127
- { id: "link", key: "ctrl+k", group: "formatting", command: g4() },
23129
+ { id: "link", key: "ctrl+k", group: "formatting", command: g3() },
23128
23130
  { id: "image", key: "ctrl+shift+i", group: "formatting", request: "pickImages" },
23129
23131
  /* Headings */
23130
23132
  { id: "paragraph", key: "ctrl+0", group: "headings", command: Ro(0) },
@@ -23139,14 +23141,14 @@ const xb = [
23139
23141
  /* Lists */
23140
23142
  { id: "bulletList", key: "ctrl+shift+bracketleft", group: "lists", command: Zw(!1) },
23141
23143
  { id: "numberedList", key: "ctrl+shift+bracketright", group: "lists", command: Zw(!0) },
23142
- { id: "taskCheckbox", key: "ctrl+shift+x", group: "lists", command: f4 },
23144
+ { id: "taskCheckbox", key: "ctrl+shift+x", group: "lists", command: f3 },
23143
23145
  // I18N-ALLOW: the chord string "tab" is a key id matched against the registry and never rendered (chordLabel names it from the catalog); the scan reads the lone word as English
23144
23146
  { id: "indent", key: "tab", group: "lists", command: IN },
23145
23147
  { id: "outdent", key: "shift+tab", group: "lists", command: MN },
23146
23148
  /* Blocks */
23147
- { id: "codeBlock", key: "ctrl+shift+k", group: "blocks", command: h4() },
23148
- { id: "blockquote", key: "ctrl+shift+q", group: "blocks", command: p4 },
23149
- { id: "horizontalRule", key: "ctrl+shift+enter", group: "blocks", command: m4 },
23149
+ { id: "codeBlock", key: "ctrl+shift+k", group: "blocks", command: h3() },
23150
+ { id: "blockquote", key: "ctrl+shift+q", group: "blocks", command: p3 },
23151
+ { id: "horizontalRule", key: "ctrl+shift+enter", group: "blocks", command: m3 },
23150
23152
  /* Tables */
23151
23153
  { id: "table", key: "ctrl+alt+shift+t", group: "tables", request: "insertTable" },
23152
23154
  { id: "rowAbove", key: "ctrl+alt+shift+arrowup", group: "tables", command: Gh(!1) },
@@ -23160,27 +23162,27 @@ const xb = [
23160
23162
  { id: "alignCenter", key: "ctrl+alt+c", group: "tables", command: mi("center") },
23161
23163
  { id: "alignRight", key: "ctrl+alt+r", group: "tables", command: mi("right") }
23162
23164
  ];
23163
- function A4(e) {
23165
+ function A3(e) {
23164
23166
  const t = [];
23165
23167
  (e.ctrlKey || e.metaKey) && t.push("ctrl"), e.altKey && t.push("alt"), e.shiftKey && t.push("shift");
23166
23168
  const n = t.length ? t.join("+") + "+" : "", r = [n + e.key.toLowerCase()];
23167
23169
  return e.code && r.push(n + e.code.toLowerCase()), r;
23168
23170
  }
23169
- const D4 = new Map(xb.map((e) => [e.key, e]));
23170
- function _4(e) {
23171
- for (const t of A4(e)) {
23172
- const n = D4.get(t);
23171
+ const D3 = new Map(xb.map((e) => [e.key, e]));
23172
+ function _3(e) {
23173
+ for (const t of A3(e)) {
23174
+ const n = D3.get(t);
23173
23175
  if (n) return n;
23174
23176
  }
23175
23177
  return null;
23176
23178
  }
23177
- function $4(e) {
23179
+ function $3(e) {
23178
23180
  return e.replace(/([\\`*_[\]<>])/g, "\\$1");
23179
23181
  }
23180
23182
  function Jc(e, t) {
23181
23183
  return e.getAttribute(t) ?? "";
23182
23184
  }
23183
- function L4(e, t) {
23185
+ function L3(e, t) {
23184
23186
  const r = t(e).body;
23185
23187
  return r ? Wa(r, "").trim().replace(/\n{3,}/g, `
23186
23188
 
@@ -23188,12 +23190,12 @@ function L4(e, t) {
23188
23190
  }
23189
23191
  function Wa(e, t) {
23190
23192
  let n = "";
23191
- for (let r = e.firstChild; r; r = r.nextSibling) n += F4(r, t);
23193
+ for (let r = e.firstChild; r; r = r.nextSibling) n += F3(r, t);
23192
23194
  return n;
23193
23195
  }
23194
- function F4(e, t) {
23196
+ function F3(e, t) {
23195
23197
  if (e.nodeType === 3)
23196
- return $4(e.data.replace(/\s+/g, " "));
23198
+ return $3(e.data.replace(/\s+/g, " "));
23197
23199
  if (e.nodeType !== 1) return "";
23198
23200
  const n = e, r = n.tagName.toLowerCase(), o = () => Wa(n, t);
23199
23201
  switch (r) {
@@ -23240,7 +23242,7 @@ ${"#".repeat(Number(r[1]))} ${o()}
23240
23242
  case "strike":
23241
23243
  return Np(n) ? o() : `~~${o()}~~`;
23242
23244
  case "code":
23243
- return n.parentElement?.tagName.toLowerCase() === "pre" ? n.textContent ?? "" : B4(n.textContent ?? "");
23245
+ return n.parentElement?.tagName.toLowerCase() === "pre" ? n.textContent ?? "" : B3(n.textContent ?? "");
23244
23246
  case "pre":
23245
23247
  return `
23246
23248
 
@@ -23271,7 +23273,7 @@ ${Wa(n, t).trim().replace(/\n{3,}/g, `
23271
23273
  case "ol":
23272
23274
  return `
23273
23275
 
23274
- ${H4(n, t, r === "ol")}
23276
+ ${H3(n, t, r === "ol")}
23275
23277
 
23276
23278
  `;
23277
23279
  case "li":
@@ -23280,7 +23282,7 @@ ${t}- ${o().trim()}`;
23280
23282
  case "table":
23281
23283
  return `
23282
23284
 
23283
- ${U4(n)}
23285
+ ${U3(n)}
23284
23286
 
23285
23287
  `;
23286
23288
  case "script":
@@ -23288,12 +23290,12 @@ ${U4(n)}
23288
23290
  case "head":
23289
23291
  return "";
23290
23292
  case "span":
23291
- return V4(n, o());
23293
+ return V3(n, o());
23292
23294
  default:
23293
23295
  return o();
23294
23296
  }
23295
23297
  }
23296
- function V4(e, t) {
23298
+ function V3(e, t) {
23297
23299
  const n = Jc(e, "style").toLowerCase();
23298
23300
  if (!n) return t;
23299
23301
  let r = t;
@@ -23305,17 +23307,17 @@ function V4(e, t) {
23305
23307
  }
23306
23308
  return r;
23307
23309
  }
23308
- const z4 = /* @__PURE__ */ new Set(["p", "div", "h1", "h2", "h3", "h4", "h5", "h6", "ul", "ol", "li", "table", "blockquote", "pre", "hr"]);
23310
+ const z3 = /* @__PURE__ */ new Set(["p", "div", "h1", "h2", "h3", "h4", "h5", "h6", "ul", "ol", "li", "table", "blockquote", "pre", "hr"]);
23309
23311
  function Np(e) {
23310
23312
  for (let t = e.firstChild; t; t = t.nextSibling)
23311
- if (t.nodeType === 1 && z4.has(t.tagName.toLowerCase())) return !0;
23313
+ if (t.nodeType === 1 && z3.has(t.tagName.toLowerCase())) return !0;
23312
23314
  return !1;
23313
23315
  }
23314
- function B4(e) {
23316
+ function B3(e) {
23315
23317
  const t = (e.match(/`+/g) ?? []).reduce((o, s) => Math.max(o, s.length), 0), n = "`".repeat(t + 1), r = e.startsWith("`") || e.endsWith("`") ? " " : "";
23316
23318
  return `${n}${r}${e}${r}${n}`;
23317
23319
  }
23318
- function H4(e, t, n) {
23320
+ function H3(e, t, n) {
23319
23321
  const r = [];
23320
23322
  let o = Number(e.getAttribute("start") ?? "1") || 1;
23321
23323
  for (let s = e.firstChild; s; s = s.nextSibling) {
@@ -23329,7 +23331,7 @@ ${a}`)}`);
23329
23331
  return r.join(`
23330
23332
  `);
23331
23333
  }
23332
- function U4(e) {
23334
+ function U3(e) {
23333
23335
  const t = [];
23334
23336
  for (const a of Array.from(e.querySelectorAll("tr"))) {
23335
23337
  const l = Array.from(a.querySelectorAll("th, td")).map(
@@ -23350,7 +23352,7 @@ function U4(e) {
23350
23352
  return [r(s), `| ${Array.from({ length: n }, () => "---").join(" | ")} |`, ...i.map(r)].join(`
23351
23353
  `);
23352
23354
  }
23353
- const j4 = /* @__PURE__ */ new Set([
23355
+ const j3 = /* @__PURE__ */ new Set([
23354
23356
  "insertText",
23355
23357
  "insertReplacementText",
23356
23358
  "insertFromPaste",
@@ -23359,7 +23361,7 @@ const j4 = /* @__PURE__ */ new Set([
23359
23361
  "insertFromYank",
23360
23362
  "insertTranspose",
23361
23363
  "insertLink"
23362
- ]), G4 = /* @__PURE__ */ new Set([
23364
+ ]), G3 = /* @__PURE__ */ new Set([
23363
23365
  "deleteContent",
23364
23366
  "deleteContentBackward",
23365
23367
  "deleteContentForward",
@@ -23373,7 +23375,7 @@ const j4 = /* @__PURE__ */ new Set([
23373
23375
  "deleteByDrag",
23374
23376
  "deleteByCut"
23375
23377
  ]);
23376
- function W4(e, t = {}) {
23378
+ function W3(e, t = {}) {
23377
23379
  const n = e.root, r = (f) => {
23378
23380
  const p = f.inputType;
23379
23381
  if (!f.cancelable) return;
@@ -23385,19 +23387,19 @@ function W4(e, t = {}) {
23385
23387
  f.preventDefault(), e.redo();
23386
23388
  return;
23387
23389
  }
23388
- const h = Z4(n, f) ?? J4(e);
23390
+ const h = Z3(n, f) ?? J3(e);
23389
23391
  if (!h) return;
23390
23392
  const m = e.getSelection(), g = m !== null && m.anchor === m.head ? m : null, b = (x, v, y = g ?? { anchor: h.start, head: h.end }) => {
23391
- const w = O4(
23393
+ const w = O3(
23392
23394
  { source: e.getSource(), projection: e.getProjection(), map: e.getCaretMap() },
23393
23395
  y,
23394
23396
  x
23395
23397
  );
23396
23398
  return w ? (e.apply(w.splice, w.select, v), !0) : !1;
23397
23399
  };
23398
- if (j4.has(p)) {
23400
+ if (j3.has(p)) {
23399
23401
  f.preventDefault();
23400
- const x = Q4(f);
23402
+ const x = Q3(f);
23401
23403
  if (x === null) {
23402
23404
  t.onUnhandled?.(p);
23403
23405
  return;
@@ -23405,7 +23407,7 @@ function W4(e, t = {}) {
23405
23407
  b({ kind: "insert", text: x }, "type");
23406
23408
  return;
23407
23409
  }
23408
- if (G4.has(p)) {
23410
+ if (G3.has(p)) {
23409
23411
  f.preventDefault(), b(
23410
23412
  { kind: p === "deleteContentBackward" || p === "deleteWordBackward" ? "backspace" : "delete" },
23411
23413
  "delete",
@@ -23434,8 +23436,8 @@ function W4(e, t = {}) {
23434
23436
  const g = Nu(m);
23435
23437
  g && (f.preventDefault(), n.ownerDocument.defaultView?.open(g, "_blank", "noopener,noreferrer"));
23436
23438
  }, a = (f) => {
23437
- if (q4(f.target)) return;
23438
- const p = _4(f);
23439
+ if (q3(f.target)) return;
23440
+ const p = _3(f);
23439
23441
  if (p?.request) {
23440
23442
  t.onRequest && (f.preventDefault(), t.onRequest(p.request));
23441
23443
  return;
@@ -23458,13 +23460,13 @@ function W4(e, t = {}) {
23458
23460
  }, l = n.ownerDocument, c = () => {
23459
23461
  const p = l.getSelection()?.anchorNode;
23460
23462
  !p || !n.contains(p) || e.snapCaret();
23461
- }, d = t.onImageFiles ? X4(e, t.onImageFiles) : () => {
23463
+ }, d = t.onImageFiles ? X3(e, t.onImageFiles) : () => {
23462
23464
  };
23463
23465
  return n.addEventListener("beforeinput", r), n.addEventListener("pointerdown", s), n.addEventListener("click", i), n.addEventListener("keydown", a), l.addEventListener("selectionchange", c), () => {
23464
23466
  d(), n.removeEventListener("beforeinput", r), n.removeEventListener("pointerdown", s), n.removeEventListener("click", i), n.removeEventListener("keydown", a), l.removeEventListener("selectionchange", c);
23465
23467
  };
23466
23468
  }
23467
- function q4(e) {
23469
+ function q3(e) {
23468
23470
  return e instanceof Element && e.closest(`[${sf}]`) !== null;
23469
23471
  }
23470
23472
  const e0 = "data-md-drop-target";
@@ -23474,14 +23476,14 @@ function t0(e) {
23474
23476
  function n0(e) {
23475
23477
  return e ? Array.from(e.items).some((t) => t.kind === "file" && t.type.startsWith("image/")) : !1;
23476
23478
  }
23477
- function K4(e, t) {
23479
+ function K3(e, t) {
23478
23480
  const n = new Set(t.map((o) => o.name)), r = e.split(/\r?\n/).map((o) => o.trim()).filter(Boolean);
23479
23481
  return r.length > 0 && r.every((o) => n.has(o) || n.has(o.split(/[\\/]/).pop() ?? ""));
23480
23482
  }
23481
23483
  function bc(e) {
23482
23484
  return !!e && Array.from(e.types).includes("Files");
23483
23485
  }
23484
- function Y4(e, t, n) {
23486
+ function Y3(e, t, n) {
23485
23487
  const r = e.root.ownerDocument;
23486
23488
  let o = null, s = 0;
23487
23489
  if (typeof r.caretPositionFromPoint == "function") {
@@ -23495,7 +23497,7 @@ function Y4(e, t, n) {
23495
23497
  const i = fo(e.root, o, s);
23496
23498
  return i === null ? null : sr(e.getCaretMap(), i);
23497
23499
  }
23498
- function X4(e, t) {
23500
+ function X3(e, t) {
23499
23501
  const n = e.root;
23500
23502
  let r = 0;
23501
23503
  const o = (d) => {
@@ -23505,7 +23507,7 @@ function X4(e, t) {
23505
23507
  const f = d.clipboardData, p = t0(f);
23506
23508
  if (!p.length) return;
23507
23509
  const h = f.getData("text/plain");
23508
- h.length && !K4(h, p) || (d.preventDefault(), t(p, e.getSelection()));
23510
+ h.length && !K3(h, p) || (d.preventDefault(), t(p, e.getSelection()));
23509
23511
  }, i = (d) => {
23510
23512
  !n.isContentEditable || !bc(d.dataTransfer) || (r++, o(n0(d.dataTransfer)));
23511
23513
  }, a = (d) => {
@@ -23517,14 +23519,14 @@ function X4(e, t) {
23517
23519
  d.preventDefault(), r = 0, o(!1);
23518
23520
  const f = t0(d.dataTransfer);
23519
23521
  if (!f.length) return;
23520
- const p = Y4(e, d.clientX, d.clientY);
23522
+ const p = Y3(e, d.clientX, d.clientY);
23521
23523
  t(f, p === null ? null : { anchor: p, head: p });
23522
23524
  };
23523
23525
  return n.addEventListener("paste", s), n.addEventListener("dragenter", i), n.addEventListener("dragover", a), n.addEventListener("dragleave", l), n.addEventListener("drop", c), () => {
23524
23526
  n.removeEventListener("paste", s), n.removeEventListener("dragenter", i), n.removeEventListener("dragover", a), n.removeEventListener("dragleave", l), n.removeEventListener("drop", c), o(!1);
23525
23527
  };
23526
23528
  }
23527
- function Z4(e, t) {
23529
+ function Z3(e, t) {
23528
23530
  const n = typeof t.getTargetRanges == "function" ? t.getTargetRanges() : [];
23529
23531
  if (!n.length) return null;
23530
23532
  let r = Number.POSITIVE_INFINITY, o = Number.NEGATIVE_INFINITY;
@@ -23535,17 +23537,17 @@ function Z4(e, t) {
23535
23537
  }
23536
23538
  return Number.isFinite(r) ? { start: r, end: o } : null;
23537
23539
  }
23538
- function J4(e) {
23540
+ function J3(e) {
23539
23541
  const t = e.getSelection();
23540
23542
  return t ? { start: Math.min(t.anchor, t.head), end: Math.max(t.anchor, t.head) } : null;
23541
23543
  }
23542
- function Q4(e) {
23544
+ function Q3(e) {
23543
23545
  if (typeof e.data == "string") return e.data;
23544
23546
  const t = e.dataTransfer;
23545
23547
  if (!t) return null;
23546
23548
  const n = t.getData("text/plain"), r = t.getData("text/html");
23547
23549
  if (r && r.trim().length) {
23548
- const o = L4(
23550
+ const o = L3(
23549
23551
  r,
23550
23552
  (s) => new DOMParser().parseFromString(s, "text/html")
23551
23553
  );
@@ -23828,7 +23830,7 @@ class rB {
23828
23830
  const r = Tu(this.source, { highlight: this.options.highlight });
23829
23831
  this.projection = r, this.caretStops = Qw(r), this.write(() => {
23830
23832
  try {
23831
- H3(this.root, r.children, { images: this.options.images, imageStrings: this.options.imageStrings() });
23833
+ H4(this.root, r.children, { images: this.options.images, imageStrings: this.options.imageStrings() });
23832
23834
  } catch (s) {
23833
23835
  if (s instanceof mb) {
23834
23836
  this.deferred = !0, this.options.onDesync?.(s.message);
@@ -23878,7 +23880,7 @@ class rB {
23878
23880
  moveCaret(t, n) {
23879
23881
  const r = this.getSelection();
23880
23882
  if (!r) return !1;
23881
- const o = !n && r.anchor !== r.head ? t === 1 ? Math.max(r.anchor, r.head) : Math.min(r.anchor, r.head) : k4(this.caretStops, r.head, t), s = n ? { anchor: r.anchor, head: o } : { anchor: o, head: o };
23883
+ const o = !n && r.anchor !== r.head ? t === 1 ? Math.max(r.anchor, r.head) : Math.min(r.anchor, r.head) : k3(this.caretStops, r.head, t), s = n ? { anchor: r.anchor, head: o } : { anchor: o, head: o };
23882
23884
  return this.write(() => wa(this.root, s, t === 1 ? "after" : "before")), !0;
23883
23885
  }
23884
23886
  /**
@@ -23895,7 +23897,7 @@ class rB {
23895
23897
  moveToLineEdge(t, n) {
23896
23898
  const r = this.getSelection();
23897
23899
  if (!r) return !1;
23898
- const o = t === "start" ? E4(this.caretStops, r.head) : N4(this.caretStops, r.head), s = n ? { anchor: r.anchor, head: o } : { anchor: o, head: o };
23900
+ const o = t === "start" ? E3(this.caretStops, r.head) : N3(this.caretStops, r.head), s = n ? { anchor: r.anchor, head: o } : { anchor: o, head: o };
23899
23901
  return this.write(() => wa(this.root, s, t === "start" ? "after" : "before")), !0;
23900
23902
  }
23901
23903
  /**
@@ -24093,7 +24095,7 @@ class iB {
24093
24095
  const b = this.env.createObjectURL(g);
24094
24096
  return this.entries.set(b, { file: g, state: s ? "uploading" : "local", controller: null }), b;
24095
24097
  });
24096
- let a = o.map((g, b) => hN(i[b], s4(g.name, this.options.defaultAlt()))).join(" ");
24098
+ let a = o.map((g, b) => hN(i[b], s3(g.name, this.options.defaultAlt()))).join(" ");
24097
24099
  const l = n ?? r.getSelection() ?? { anchor: r.getSource().length, head: r.getSource().length }, c = r.getCaretMap();
24098
24100
  let d = sr(c, Math.min(l.anchor, l.head)), f = sr(c, Math.max(l.anchor, l.head));
24099
24101
  const p = r.getSource(), h = gN(r.getProjection(), d);
@@ -24155,7 +24157,7 @@ class iB {
24155
24157
  const n = t.getSource();
24156
24158
  for (const [l, c] of this.entries)
24157
24159
  c.controller || n.includes(l) || t.remembers(l) || this.release(l);
24158
- const r = r4(n), o = [], s = /* @__PURE__ */ new Set(), i = {
24160
+ const r = r3(n), o = [], s = /* @__PURE__ */ new Set(), i = {
24159
24161
  uploading: 0,
24160
24162
  failed: 0,
24161
24163
  unstored: r.length,
@@ -25941,7 +25943,7 @@ function zB({
25941
25943
  }
25942
25944
  function BB({ language: e, run: t }) {
25943
25945
  const n = he().markdownAffordances, r = Oe(() => {
25944
- const o = c3().sort();
25946
+ const o = c4().sort();
25945
25947
  return e && !o.includes(e) ? [e, ...o] : o;
25946
25948
  }, [e]);
25947
25949
  return /* @__PURE__ */ M("label", { className: "flex items-center gap-1.5 px-1 text-xs text-tertiary", children: [
@@ -26261,7 +26263,7 @@ function QB({
26261
26263
  }))
26262
26264
  });
26263
26265
  C.current = ee, _(ee), te.attach(ee);
26264
- const Z = ee.bind(), de = te.bind(), pe = W4(ee, {
26266
+ const Z = ee.bind(), de = te.bind(), pe = W3(ee, {
26265
26267
  /* Paste and drop: the files go into the ONE pipeline the picker also
26266
26268
  uses, at the caret or the drop point. Focus follows a drop, the way it
26267
26269
  would follow dropped text — the caret is now after the new image. */
@@ -26331,7 +26333,7 @@ function QB({
26331
26333
  G();
26332
26334
  return;
26333
26335
  case "insertTable":
26334
- q(v4((ee) => b.current.tableColumnHeader(v.current(ee))));
26336
+ q(v3((ee) => b.current.tableColumnHeader(v.current(ee))));
26335
26337
  return;
26336
26338
  case "insertColumnLeft":
26337
26339
  q(Wh(!1, b.current.newColumnHeader));
@@ -61775,10 +61777,10 @@ export {
61775
61777
  fb as CodeBlock,
61776
61778
  QE as CodeEditor,
61777
61779
  tN as CodeEditorCaption,
61778
- I3 as CodeEditorCopyButton,
61780
+ I4 as CodeEditorCopyButton,
61779
61781
  eN as CodeEditorToolbar,
61780
- P3 as CodeEditorViewSwitch,
61781
- M3 as CodeEditorWrapToggle,
61782
+ P4 as CodeEditorViewSwitch,
61783
+ M4 as CodeEditorWrapToggle,
61782
61784
  Vb as Collapsible,
61783
61785
  TH as CollapsiblePanel,
61784
61786
  IH as CollapsibleRoot,
@@ -62012,7 +62014,7 @@ export {
62012
62014
  Fee as atMidnight,
62013
62015
  Vee as atTime,
62014
62016
  o7 as attachAutoScroll,
62015
- W4 as attachInput,
62017
+ W3 as attachInput,
62016
62018
  n7 as attachKeyboardSensor,
62017
62019
  J9 as attachPointerSensor,
62018
62020
  Q9 as attachSessionWindowListeners,
@@ -62028,7 +62030,7 @@ export {
62028
62030
  Jv as chartSeriesColor,
62029
62031
  cee as checkCoverage,
62030
62032
  Su as chordLabel,
62031
- A4 as chordsOf,
62033
+ A3 as chordsOf,
62032
62034
  Yu as clampScale,
62033
62035
  N6 as clearStored,
62034
62036
  H as cn,
@@ -62057,8 +62059,8 @@ export {
62057
62059
  SN as deleteRow,
62058
62060
  NN as deleteTable,
62059
62061
  Ou as deleteVisible,
62060
- T4 as deleteVisibleAfter,
62061
- M4 as deleteVisibleBefore,
62062
+ T3 as deleteVisibleAfter,
62063
+ M3 as deleteVisibleBefore,
62062
62064
  kx as deriveRoadmapItemStatus,
62063
62065
  S2 as describeMoveRejection,
62064
62066
  q2 as describeTarget,
@@ -62071,7 +62073,7 @@ export {
62071
62073
  Zu as eventLabel,
62072
62074
  Bi as fenceAround,
62073
62075
  fx as fileIconFor,
62074
- r4 as findUnstoredImages,
62076
+ r3 as findUnstoredImages,
62075
62077
  xx as fitBox,
62076
62078
  jW as fitBoxWithFloor,
62077
62079
  UW as fitWidth,
@@ -62090,23 +62092,23 @@ export {
62090
62092
  Ik as getIcon,
62091
62093
  Qq as getNetworkSpeed,
62092
62094
  zf as getRecordStoreTenant,
62093
- S4 as graphemeAfter,
62094
- C4 as graphemeBefore,
62095
+ S3 as graphemeAfter,
62096
+ C3 as graphemeBefore,
62095
62097
  xJ as groupOperations,
62096
62098
  ZQ as hasIcon,
62097
- i4 as headingLevel,
62098
- _4 as hotkeyFor,
62099
+ i3 as headingLevel,
62100
+ _3 as hotkeyFor,
62099
62101
  Bee as hoursInDay,
62100
- L4 as htmlFragmentToMarkdown,
62102
+ L3 as htmlFragmentToMarkdown,
62101
62103
  XQ as iconNames,
62102
- u4 as indentLines,
62104
+ u3 as indentLines,
62103
62105
  Rq as initialFocusDay,
62104
62106
  Wh as insertColumn,
62105
62107
  vee as insertImage,
62106
- g4 as insertLink,
62108
+ g3 as insertLink,
62107
62109
  Gh as insertRow,
62108
- m4 as insertRule,
62109
- v4 as insertTable,
62110
+ m3 as insertRule,
62111
+ v3 as insertTable,
62110
62112
  LI as instantAtFraction,
62111
62113
  zee as instantToPlainDate,
62112
62114
  Kn as instantToPlainDateTime,
@@ -62129,8 +62131,8 @@ export {
62129
62131
  dK as leastPrivilegeRoleId,
62130
62132
  Ma as legalSectionAnchor,
62131
62133
  en as lineAt,
62132
- E4 as lineStartStop,
62133
- c3 as listLanguages,
62134
+ E3 as lineStartStop,
62135
+ c4 as listLanguages,
62134
62136
  Xu as longDate,
62135
62137
  vJ as mergedParameters,
62136
62138
  mU as monthGridDays,
@@ -62147,7 +62149,7 @@ export {
62147
62149
  Vu as offsetAt,
62148
62150
  kJ as operationAnchorId,
62149
62151
  tre as optimisticWrite,
62150
- d4 as outdentLines,
62152
+ d3 as outdentLines,
62151
62153
  U2 as packBand,
62152
62154
  Oq as packLanes,
62153
62155
  nl as paletteFor,
@@ -62162,7 +62164,7 @@ export {
62162
62164
  av as plainDateTimeToInstant,
62163
62165
  ux as positionInColumn,
62164
62166
  Tu as project,
62165
- t4 as projectedText,
62167
+ t3 as projectedText,
62166
62168
  Mne as provenanceStateLabel,
62167
62169
  Ine as ratedConfidence,
62168
62170
  pQ as readRealtimeEpoch,
@@ -62184,7 +62186,7 @@ export {
62184
62186
  Wq as resetSimStores,
62185
62187
  Xne as resetSlots,
62186
62188
  pa as resolveCalendarTarget,
62187
- O4 as resolveKey,
62189
+ O3 as resolveKey,
62188
62190
  uee as resolveLanguage,
62189
62191
  P7 as resolveMove,
62190
62192
  Ff as resolveSchema,
@@ -62203,7 +62205,7 @@ export {
62203
62205
  V1 as setSimSettings,
62204
62206
  Uc as simulateLatency,
62205
62207
  LQ as slotKeys,
62206
- y4 as smartEnter,
62208
+ y3 as smartEnter,
62207
62209
  MN as smartShiftTab,
62208
62210
  IN as smartTab,
62209
62211
  Ute as snapFractionToInstant,
@@ -62215,7 +62217,7 @@ export {
62215
62217
  Xa as startOfWeek,
62216
62218
  bee as stepOffset,
62217
62219
  vG as stepStatus,
62218
- k4 as stepStop,
62220
+ k3 as stepStop,
62219
62221
  yG as stepperProgress,
62220
62222
  Ol as storageKey,
62221
62223
  Ax as subscribeToKey,
@@ -62236,13 +62238,13 @@ export {
62236
62238
  E1 as toScreenPoint,
62237
62239
  vN as toggleBold,
62238
62240
  yN as toggleCode,
62239
- h4 as toggleCodeBlock,
62241
+ h3 as toggleCodeBlock,
62240
62242
  lf as toggleInline,
62241
62243
  xN as toggleItalic,
62242
62244
  Zw as toggleList,
62243
- p4 as toggleQuote,
62245
+ p3 as toggleQuote,
62244
62246
  wN as toggleStrike,
62245
- f4 as toggleTask,
62247
+ f3 as toggleTask,
62246
62248
  BE as tokenize,
62247
62249
  j1 as toneForIndex,
62248
62250
  Cx as trackIds,