@tempots/beatui 0.52.0 → 0.54.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.
Files changed (109) hide show
  1. package/dist/{2019-BiSy3dQP.cjs → 2019-5RIscTOv.cjs} +1 -1
  2. package/dist/{2019-Djx2f_nO.js → 2019-i1LHsYdK.js} +2 -2
  3. package/dist/{2020-BgJxYgaO.cjs → 2020-DeCezjWf.cjs} +1 -1
  4. package/dist/{2020-C1wOj1GM.js → 2020-S7qY95wq.js} +2 -2
  5. package/dist/{ar-BEbbig_x.cjs → ar-BqnDsD9v.cjs} +1 -1
  6. package/dist/{ar-Djuleurf.js → ar-DrBp_VwJ.js} +7 -12
  7. package/dist/auth/index.cjs.js +1 -1
  8. package/dist/auth/index.es.js +353 -360
  9. package/dist/beatui.css +76 -0
  10. package/dist/beatui.tailwind.css +76 -0
  11. package/dist/{de-E8u7Hbc0.js → de-B5oZoraI.js} +5 -10
  12. package/dist/{de-Br3MCGtv.cjs → de-C_N0wtxQ.cjs} +1 -1
  13. package/dist/{es-BN0iaBgJ.js → es-DRc5dc_G.js} +1 -6
  14. package/dist/{es-CAwGEj_N.cjs → es-JnLMDtzg.cjs} +1 -1
  15. package/dist/{fa-3Qfo8ZXh.js → fa-B0VDVs5B.js} +6 -11
  16. package/dist/{fa-CEz8tGnY.cjs → fa-BC16IdRL.cjs} +1 -1
  17. package/dist/{fr-Dbn62iEL.cjs → fr-BupZ6YnU.cjs} +1 -1
  18. package/dist/{fr-D1ndk0A5.js → fr-DXlfWwI6.js} +8 -13
  19. package/dist/{he-CIV7rntE.js → he-BX-Az8As.js} +8 -13
  20. package/dist/{he-OtaTg9wg.cjs → he-C-aQ2yoO.cjs} +1 -1
  21. package/dist/{hi-CnbarThz.cjs → hi-L3y3Aedb.cjs} +1 -1
  22. package/dist/{hi-tzWREPMb.js → hi-w4uL7LN1.js} +8 -13
  23. package/dist/{index-nRXzduHm.cjs → index-B7gVxeO9.cjs} +1 -1
  24. package/dist/{index-CBT2SLat.js → index-BI5w0jSz.js} +223 -224
  25. package/dist/{index-B9y4N11q.js → index-BnQvOXw8.js} +3019 -3004
  26. package/dist/{index-ClFVnBUS.cjs → index-Bv2gn_kV.cjs} +3 -3
  27. package/dist/{index-BjQW8AsK.cjs → index-CFOxIBGJ.cjs} +12 -12
  28. package/dist/{index-KPHFBjQB.cjs → index-CKyH3jwP.cjs} +1 -1
  29. package/dist/{index-TiMfhF1U.cjs → index-C_71zSeN.cjs} +1 -1
  30. package/dist/index-CkNcU-jd.cjs +8 -0
  31. package/dist/{index-qWS4IYZX.js → index-CyoxPiTg.js} +1 -1
  32. package/dist/{index-UMbs0jPr.js → index-DKwuTFYj.js} +377 -378
  33. package/dist/{index-DDhLWdaz.js → index-DNUXf4K4.js} +1 -1
  34. package/dist/{index-CAeOFdez.js → index-DjShJtXp.js} +1 -1
  35. package/dist/index.cjs.js +4 -4
  36. package/dist/index.es.js +2607 -2652
  37. package/dist/{it-1Hy_Ay2j.js → it-BCKQ5Tu8.js} +6 -11
  38. package/dist/{it-FOaX_rku.cjs → it-CnHaoq-X.cjs} +1 -1
  39. package/dist/{ja-C7_PK2VE.js → ja-DC47Nkza.js} +13 -18
  40. package/dist/{ja-DW4_3EWp.cjs → ja-DpDF4IgX.cjs} +1 -1
  41. package/dist/json-schema/index.cjs.js +1 -1
  42. package/dist/json-schema/index.es.js +1 -1
  43. package/dist/{ko-C-jXKweM.cjs → ko-BMmVJHzm.cjs} +1 -1
  44. package/dist/{ko-BDOp6dFE.js → ko-ejUHA0Sw.js} +8 -13
  45. package/dist/markdown/index.cjs.js +1 -1
  46. package/dist/markdown/index.es.js +1 -1
  47. package/dist/{modal-BBaPJhi-.js → modal-CKyUdeEz.js} +54 -58
  48. package/dist/modal-rou7pM0r.cjs +1 -0
  49. package/dist/{nl-CF5W2Rt4.js → nl-WjgpPUel.js} +6 -11
  50. package/dist/{nl-Ui8TT45t.cjs → nl-viDlnQWK.cjs} +1 -1
  51. package/dist/{notice-DTTyRbwh.js → notice-BS0d903Q.js} +385 -387
  52. package/dist/notice-MF7whf3_.cjs +2 -0
  53. package/dist/{pl-oLzT5Ole.js → pl-Cw4CYjK_.js} +3 -8
  54. package/dist/{pl-8PM7rn2L.cjs → pl-Vrfv_fGt.cjs} +1 -1
  55. package/dist/prosemirror/index.cjs.js +1 -1
  56. package/dist/prosemirror/index.es.js +1 -1
  57. package/dist/{pt-Bb0T3Cx1.js → pt-B4Rh_ZBF.js} +10 -15
  58. package/dist/{pt-kRRsG9-4.cjs → pt-CxQV74vS.cjs} +1 -1
  59. package/dist/{ru-C5AMF9a6.cjs → ru-BB3GRr_J.cjs} +1 -1
  60. package/dist/{ru-DwLv1myc.js → ru-DFHsLJ9b.js} +14 -19
  61. package/dist/{toolbar-D_LSJCtv.js → toolbar-D2J_NkKD.js} +1 -1
  62. package/dist/{toolbar-D6_MB1QI.cjs → toolbar-DRdm9W7H.cjs} +1 -1
  63. package/dist/{tr-DBQNjaPN.js → tr-Dbktyawl.js} +7 -12
  64. package/dist/{tr-BwgU2BAj.cjs → tr-mBiHcEl1.cjs} +1 -1
  65. package/dist/{translations-CG5-f9U8.js → translations-CaTkLRHu.js} +85 -93
  66. package/dist/{translations-t57jdjWu.js → translations-CpTeFtvW.js} +1 -1
  67. package/dist/{translations-D77sU1Wl.cjs → translations-ggnrzaCG.cjs} +1 -1
  68. package/dist/translations-h_OJS1Ut.cjs +1 -0
  69. package/dist/types/components/data/icon.d.ts +1 -1
  70. package/dist/types/components/data/page-drop-zone.d.ts +1 -1
  71. package/dist/types/components/data/unstyled-drop-zone.d.ts +1 -1
  72. package/dist/types/components/form/input/create-nullable-string-input.d.ts +24 -0
  73. package/dist/types/components/form/input/create-temporal-input.d.ts +54 -0
  74. package/dist/types/components/form/input/nullable-email-input.d.ts +1 -2
  75. package/dist/types/components/form/input/nullable-password-input.d.ts +1 -2
  76. package/dist/types/components/form/input/nullable-plain-date-input.d.ts +19 -3
  77. package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +19 -3
  78. package/dist/types/components/form/input/nullable-plain-time-input.d.ts +19 -3
  79. package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +19 -3
  80. package/dist/types/components/form/input/nullable-text-area.d.ts +6 -4
  81. package/dist/types/components/form/input/nullable-text-input.d.ts +3 -4
  82. package/dist/types/components/form/input/nullable-url-input.d.ts +1 -2
  83. package/dist/types/components/form/input/nullable-uuid-input.d.ts +1 -2
  84. package/dist/types/components/form/input/plain-date-input.d.ts +19 -3
  85. package/dist/types/components/form/input/plain-date-time-input.d.ts +19 -3
  86. package/dist/types/components/form/input/plain-time-input.d.ts +19 -3
  87. package/dist/types/components/form/input/plain-year-month-input.d.ts +19 -3
  88. package/dist/types/components/json-schema/controls/shared-utils.d.ts +8 -0
  89. package/dist/types/components/json-schema/schema-conditionals.d.ts +26 -0
  90. package/dist/types/components/json-schema/schema-context.d.ts +4 -107
  91. package/dist/types/components/json-schema/schema-merge.d.ts +9 -0
  92. package/dist/types/components/json-schema/schema-types.d.ts +85 -0
  93. package/dist/types/components/overlay/announcement-bar.d.ts +21 -0
  94. package/dist/types/components/overlay/index.d.ts +1 -0
  95. package/dist/{ur-s32jv4mP.cjs → ur-CZ5sgUP1.cjs} +1 -1
  96. package/dist/{ur-BmK_ieRn.js → ur-Cqh7AYnd.js} +9 -14
  97. package/dist/utils-U1aNOU3o.cjs +1 -0
  98. package/dist/utils-w_vUChhV.js +2454 -0
  99. package/dist/{vi-DK0Fj95H.js → vi-CLBp2oaY.js} +11 -16
  100. package/dist/{vi-B4qRKlRd.cjs → vi-Ki_Urj_E.cjs} +1 -1
  101. package/dist/{zh-CUEpc9yf.cjs → zh-C78OkbS0.cjs} +1 -1
  102. package/dist/{zh-Db8COSme.js → zh-CT4aGkgD.js} +8 -13
  103. package/package.json +5 -4
  104. package/dist/index-ClqyVDXY.cjs +0 -8
  105. package/dist/modal-O7QoP7Zv.cjs +0 -1
  106. package/dist/notice-DLDzwKkw.cjs +0 -2
  107. package/dist/translations-BAk3j4bi.cjs +0 -1
  108. package/dist/utils-CYMdxKSM.js +0 -2516
  109. package/dist/utils-DI_H4_Gm.cjs +0 -1
@@ -1,5 +1,5 @@
1
- import { computedOf as Lt, html as Pt, OnDispose as Bt, Task as Ot, attr as Mn, MapSignal as Mt, Async as Nt } from "@tempots/dom";
2
- import { L as Dt } from "./link-portal-Cr2l9f3k.js";
1
+ import { computedOf as Lt, html as Pt, Task as Bt, attr as Mn, MapSignal as Ot, Async as Mt } from "@tempots/dom";
2
+ import { L as Nt } from "./link-portal-Cr2l9f3k.js";
3
3
  const Nn = document.createElement("i");
4
4
  function Yn(n) {
5
5
  const r = "&" + n + ";";
@@ -24,14 +24,14 @@ function W(n, r) {
24
24
  return n.length > 0 ? (nn(n, n.length, 0, r), n) : r;
25
25
  }
26
26
  const In = {}.hasOwnProperty;
27
- function qt(n) {
27
+ function Dt(n) {
28
28
  const r = {};
29
29
  let t = -1;
30
30
  for (; ++t < n.length; )
31
- Rt(r, n[t]);
31
+ qt(r, n[t]);
32
32
  return r;
33
33
  }
34
- function Rt(n, r) {
34
+ function qt(n, r) {
35
35
  let t;
36
36
  for (t in r) {
37
37
  const u = (In.call(n, t) ? n[t] : void 0) || (n[t] = {}), i = r[t];
@@ -40,7 +40,7 @@ function Rt(n, r) {
40
40
  for (l in i) {
41
41
  In.call(u, l) || (u[l] = []);
42
42
  const a = i[l];
43
- Ht(
43
+ Rt(
44
44
  // @ts-expect-error Looks like a list.
45
45
  u[l],
46
46
  Array.isArray(a) ? a : a ? [a] : []
@@ -48,21 +48,21 @@ function Rt(n, r) {
48
48
  }
49
49
  }
50
50
  }
51
- function Ht(n, r) {
51
+ function Rt(n, r) {
52
52
  let t = -1;
53
53
  const e = [];
54
54
  for (; ++t < r.length; )
55
55
  (r[t].add === "after" ? n : e).push(r[t]);
56
56
  nn(n, 0, 0, e);
57
57
  }
58
- function Vt(n) {
58
+ function Ht(n) {
59
59
  const r = {};
60
60
  let t = -1;
61
61
  for (; ++t < n.length; )
62
- Qt(r, n[t]);
62
+ Vt(r, n[t]);
63
63
  return r;
64
64
  }
65
- function Qt(n, r) {
65
+ function Vt(n, r) {
66
66
  let t;
67
67
  for (t in r) {
68
68
  const u = (In.call(n, t) ? n[t] : void 0) || (n[t] = {}), i = r[t];
@@ -72,7 +72,7 @@ function Qt(n, r) {
72
72
  u[l] = i[l];
73
73
  }
74
74
  }
75
- function Wt(n, r) {
75
+ function Qt(n, r) {
76
76
  const t = Number.parseInt(n, r);
77
77
  return (
78
78
  // C0 except for HT, LF, FF, CR, space.
@@ -85,11 +85,11 @@ function Wt(n, r) {
85
85
  t > 1114111 ? "�" : String.fromCodePoint(t)
86
86
  );
87
87
  }
88
- const Ut = { '"': "quot", "&": "amp", "<": "lt", ">": "gt" };
88
+ const Wt = { '"': "quot", "&": "amp", "<": "lt", ">": "gt" };
89
89
  function Zn(n) {
90
90
  return n.replace(/["&<>]/g, r);
91
91
  function r(t) {
92
- return "&" + Ut[
92
+ return "&" + Wt[
93
93
  /** @type {keyof typeof characterReferences} */
94
94
  t
95
95
  ] + ";";
@@ -98,7 +98,7 @@ function Zn(n) {
98
98
  function mn(n) {
99
99
  return n.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
100
100
  }
101
- const v = ln(/[A-Za-z]/), $ = ln(/[\dA-Za-z]/), jt = ln(/[#-'*+\--9=?A-Z^-~]/);
101
+ const v = ln(/[A-Za-z]/), $ = ln(/[\dA-Za-z]/), Ut = ln(/[#-'*+\--9=?A-Z^-~]/);
102
102
  function wn(n) {
103
103
  return (
104
104
  // Special whitespace codes (which have negative values), C0 and Control
@@ -106,7 +106,7 @@ function wn(n) {
106
106
  n !== null && (n < 32 || n === 127)
107
107
  );
108
108
  }
109
- const Cn = ln(/\d/), $t = ln(/[\dA-Fa-f]/), Yt = ln(/[!-/:-@[-`{-~]/);
109
+ const Cn = ln(/\d/), jt = ln(/[\dA-Fa-f]/), $t = ln(/[!-/:-@[-`{-~]/);
110
110
  function E(n) {
111
111
  return n !== null && n < -2;
112
112
  }
@@ -116,7 +116,7 @@ function j(n) {
116
116
  function _(n) {
117
117
  return n === -2 || n === -1 || n === 32;
118
118
  }
119
- const Zt = ln(new RegExp("\\p{P}|\\p{S}", "u")), Gt = ln(/\s/);
119
+ const Yt = ln(new RegExp("\\p{P}|\\p{S}", "u")), Zt = ln(/\s/);
120
120
  function ln(n) {
121
121
  return r;
122
122
  function r(t) {
@@ -124,7 +124,7 @@ function ln(n) {
124
124
  }
125
125
  }
126
126
  function gn(n, r) {
127
- const t = Zn(Jt(n || ""));
127
+ const t = Zn(Gt(n || ""));
128
128
  if (!r)
129
129
  return t;
130
130
  const e = t.indexOf(":"), u = t.indexOf("?"), i = t.indexOf("#"), l = t.indexOf("/");
@@ -135,7 +135,7 @@ function gn(n, r) {
135
135
  r.test(t.slice(0, e)) ? t : ""
136
136
  );
137
137
  }
138
- function Jt(n) {
138
+ function Gt(n) {
139
139
  const r = [];
140
140
  let t = -1, e = 0, u = 0;
141
141
  for (; ++t < n.length; ) {
@@ -154,13 +154,13 @@ function Jt(n) {
154
154
  }
155
155
  return r.join("") + n.slice(e);
156
156
  }
157
- const Dn = {}.hasOwnProperty, qn = /^(https?|ircs?|mailto|xmpp)$/i, Kt = /^https?$/i;
158
- function Xt(n) {
157
+ const Dn = {}.hasOwnProperty, qn = /^(https?|ircs?|mailto|xmpp)$/i, Jt = /^https?$/i;
158
+ function Kt(n) {
159
159
  const r = n || {};
160
160
  let t = !0;
161
161
  const e = {}, u = [[]], i = [], l = [], m = (
162
162
  /** @type {NormalizedHtmlExtension} */
163
- Vt([{
163
+ Ht([{
164
164
  enter: {
165
165
  blockQuote: A,
166
166
  codeFenced: tn,
@@ -422,7 +422,7 @@ function Xt(n) {
422
422
  t = void 0;
423
423
  break;
424
424
  }
425
- w.image ? (I('<img src="' + gn(J.destination, r.allowDangerousProtocol ? void 0 : Kt) + '" alt="'), d(w.label), I('"')) : I('<a href="' + gn(J.destination, r.allowDangerousProtocol ? void 0 : qn) + '"'), I(J.title ? ' title="' + J.title + '"' : ""), w.image ? I(" />") : (I(">"), d(w.label), I("</a>")), i.pop();
425
+ w.image ? (I('<img src="' + gn(J.destination, r.allowDangerousProtocol ? void 0 : Jt) + '" alt="'), d(w.label), I('"')) : I('<a href="' + gn(J.destination, r.allowDangerousProtocol ? void 0 : qn) + '"'), I(J.title ? ' title="' + J.title + '"' : ""), w.image ? I(" />") : (I(">"), d(w.label), I("</a>")), i.pop();
426
426
  }
427
427
  function ut() {
428
428
  F(), i.push({});
@@ -521,7 +521,7 @@ function Xt(n) {
521
521
  b("characterReferenceType", k.type);
522
522
  }
523
523
  function Ft(k) {
524
- const w = this.sliceSerialize(k), Q = y("characterReferenceType") ? Wt(w, y("characterReferenceType") === "characterReferenceMarkerNumeric" ? 10 : 16) : Yn(w);
524
+ const w = this.sliceSerialize(k), Q = y("characterReferenceType") ? Qt(w, y("characterReferenceType") === "characterReferenceMarkerNumeric" ? 10 : 16) : Yn(w);
525
525
  d(x(
526
526
  /** @type {string} */
527
527
  Q
@@ -547,10 +547,10 @@ function B(n, r, t, e) {
547
547
  return _(m) && i++ < u ? (n.consume(m), a) : (n.exit(t), r(m));
548
548
  }
549
549
  }
550
- const vt = {
551
- tokenize: ne
550
+ const Xt = {
551
+ tokenize: vt
552
552
  };
553
- function ne(n) {
553
+ function vt(n) {
554
554
  const r = n.attempt(this.parser.constructs.contentInitial, e, u);
555
555
  let t;
556
556
  return r;
@@ -579,12 +579,12 @@ function ne(n) {
579
579
  return E(a) ? (n.consume(a), n.exit("chunkText"), i) : (n.consume(a), l);
580
580
  }
581
581
  }
582
- const te = {
583
- tokenize: ee
582
+ const ne = {
583
+ tokenize: te
584
584
  }, Rn = {
585
- tokenize: re
585
+ tokenize: ee
586
586
  };
587
- function ee(n) {
587
+ function te(n) {
588
588
  const r = this, t = [];
589
589
  let e = 0, u, i, l;
590
590
  return a;
@@ -696,13 +696,13 @@ function ee(n) {
696
696
  u.write([null]), i = void 0, u = void 0, r.containerState._closeFlow = void 0;
697
697
  }
698
698
  }
699
- function re(n, r, t) {
699
+ function ee(n, r, t) {
700
700
  return B(n, n.attempt(this.parser.constructs.document, r, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
701
701
  }
702
702
  function Hn(n) {
703
- if (n === null || j(n) || Gt(n))
703
+ if (n === null || j(n) || Zt(n))
704
704
  return 1;
705
- if (Zt(n))
705
+ if (Yt(n))
706
706
  return 2;
707
707
  }
708
708
  function yn(n, r, t) {
@@ -716,10 +716,10 @@ function yn(n, r, t) {
716
716
  }
717
717
  const zn = {
718
718
  name: "attention",
719
- resolveAll: ie,
720
- tokenize: ue
719
+ resolveAll: re,
720
+ tokenize: ie
721
721
  };
722
- function ie(n, r) {
722
+ function re(n, r) {
723
723
  let t = -1, e, u, i, l, a, m, h, p;
724
724
  for (; ++t < n.length; )
725
725
  if (n[t][0] === "enter" && n[t][1].type === "attentionSequence" && n[t][1]._close) {
@@ -774,7 +774,7 @@ function ie(n, r) {
774
774
  n[t][1].type === "attentionSequence" && (n[t][1].type = "data");
775
775
  return n;
776
776
  }
777
- function ue(n, r) {
777
+ function ie(n, r) {
778
778
  const t = this.parser.constructs.attentionMarkers.null, e = this.previous, u = Hn(e);
779
779
  let i;
780
780
  return l;
@@ -791,11 +791,11 @@ function ue(n, r) {
791
791
  function Vn(n, r) {
792
792
  n.column += r, n.offset += r, n._bufferIndex += r;
793
793
  }
794
- const le = {
794
+ const ue = {
795
795
  name: "autolink",
796
- tokenize: ae
796
+ tokenize: le
797
797
  };
798
- function ae(n, r, t) {
798
+ function le(n, r, t) {
799
799
  let e = 0;
800
800
  return u;
801
801
  function u(c) {
@@ -814,7 +814,7 @@ function ae(n, r, t) {
814
814
  return c === 62 ? (n.exit("autolinkProtocol"), n.enter("autolinkMarker"), n.consume(c), n.exit("autolinkMarker"), n.exit("autolink"), r) : c === null || c === 32 || c === 60 || wn(c) ? t(c) : (n.consume(c), m);
815
815
  }
816
816
  function h(c) {
817
- return c === 64 ? (n.consume(c), p) : jt(c) ? (n.consume(c), h) : t(c);
817
+ return c === 64 ? (n.consume(c), p) : Ut(c) ? (n.consume(c), h) : t(c);
818
818
  }
819
819
  function p(c) {
820
820
  return $(c) ? f(c) : t(c);
@@ -832,9 +832,9 @@ function ae(n, r, t) {
832
832
  }
833
833
  const kn = {
834
834
  partial: !0,
835
- tokenize: oe
835
+ tokenize: ae
836
836
  };
837
- function oe(n, r, t) {
837
+ function ae(n, r, t) {
838
838
  return e;
839
839
  function e(i) {
840
840
  return _(i) ? B(n, u, "linePrefix")(i) : u(i);
@@ -845,13 +845,13 @@ function oe(n, r, t) {
845
845
  }
846
846
  const Gn = {
847
847
  continuation: {
848
- tokenize: ce
848
+ tokenize: se
849
849
  },
850
- exit: he,
850
+ exit: ce,
851
851
  name: "blockQuote",
852
- tokenize: se
852
+ tokenize: oe
853
853
  };
854
- function se(n, r, t) {
854
+ function oe(n, r, t) {
855
855
  const e = this;
856
856
  return u;
857
857
  function u(l) {
@@ -867,7 +867,7 @@ function se(n, r, t) {
867
867
  return _(l) ? (n.enter("blockQuotePrefixWhitespace"), n.consume(l), n.exit("blockQuotePrefixWhitespace"), n.exit("blockQuotePrefix"), r) : (n.exit("blockQuotePrefix"), r(l));
868
868
  }
869
869
  }
870
- function ce(n, r, t) {
870
+ function se(n, r, t) {
871
871
  const e = this;
872
872
  return u;
873
873
  function u(l) {
@@ -877,27 +877,27 @@ function ce(n, r, t) {
877
877
  return n.attempt(Gn, r, t)(l);
878
878
  }
879
879
  }
880
- function he(n) {
880
+ function ce(n) {
881
881
  n.exit("blockQuote");
882
882
  }
883
883
  const Jn = {
884
884
  name: "characterEscape",
885
- tokenize: fe
885
+ tokenize: he
886
886
  };
887
- function fe(n, r, t) {
887
+ function he(n, r, t) {
888
888
  return e;
889
889
  function e(i) {
890
890
  return n.enter("characterEscape"), n.enter("escapeMarker"), n.consume(i), n.exit("escapeMarker"), u;
891
891
  }
892
892
  function u(i) {
893
- return Yt(i) ? (n.enter("characterEscapeValue"), n.consume(i), n.exit("characterEscapeValue"), n.exit("characterEscape"), r) : t(i);
893
+ return $t(i) ? (n.enter("characterEscapeValue"), n.consume(i), n.exit("characterEscapeValue"), n.exit("characterEscape"), r) : t(i);
894
894
  }
895
895
  }
896
896
  const Kn = {
897
897
  name: "characterReference",
898
- tokenize: pe
898
+ tokenize: fe
899
899
  };
900
- function pe(n, r, t) {
900
+ function fe(n, r, t) {
901
901
  const e = this;
902
902
  let u = 0, i, l;
903
903
  return a;
@@ -908,7 +908,7 @@ function pe(n, r, t) {
908
908
  return f === 35 ? (n.enter("characterReferenceMarkerNumeric"), n.consume(f), n.exit("characterReferenceMarkerNumeric"), h) : (n.enter("characterReferenceValue"), i = 31, l = $, p(f));
909
909
  }
910
910
  function h(f) {
911
- return f === 88 || f === 120 ? (n.enter("characterReferenceMarkerHexadecimal"), n.consume(f), n.exit("characterReferenceMarkerHexadecimal"), n.enter("characterReferenceValue"), i = 6, l = $t, p) : (n.enter("characterReferenceValue"), i = 7, l = Cn, p(f));
911
+ return f === 88 || f === 120 ? (n.enter("characterReferenceMarkerHexadecimal"), n.consume(f), n.exit("characterReferenceMarkerHexadecimal"), n.enter("characterReferenceValue"), i = 6, l = jt, p) : (n.enter("characterReferenceValue"), i = 7, l = Cn, p(f));
912
912
  }
913
913
  function p(f) {
914
914
  if (f === 59 && u) {
@@ -920,13 +920,13 @@ function pe(n, r, t) {
920
920
  }
921
921
  const Qn = {
922
922
  partial: !0,
923
- tokenize: ge
923
+ tokenize: me
924
924
  }, Wn = {
925
925
  concrete: !0,
926
926
  name: "codeFenced",
927
- tokenize: me
927
+ tokenize: pe
928
928
  };
929
- function me(n, r, t) {
929
+ function pe(n, r, t) {
930
930
  const e = this, u = {
931
931
  partial: !0,
932
932
  tokenize: T
@@ -997,7 +997,7 @@ function me(n, r, t) {
997
997
  }
998
998
  }
999
999
  }
1000
- function ge(n, r, t) {
1000
+ function me(n, r, t) {
1001
1001
  const e = this;
1002
1002
  return u;
1003
1003
  function u(l) {
@@ -1009,12 +1009,12 @@ function ge(n, r, t) {
1009
1009
  }
1010
1010
  const bn = {
1011
1011
  name: "codeIndented",
1012
- tokenize: ke
1013
- }, xe = {
1012
+ tokenize: xe
1013
+ }, ge = {
1014
1014
  partial: !0,
1015
- tokenize: Se
1015
+ tokenize: ke
1016
1016
  };
1017
- function ke(n, r, t) {
1017
+ function xe(n, r, t) {
1018
1018
  const e = this;
1019
1019
  return u;
1020
1020
  function u(h) {
@@ -1025,7 +1025,7 @@ function ke(n, r, t) {
1025
1025
  return p && p[1].type === "linePrefix" && p[2].sliceSerialize(p[1], !0).length >= 4 ? l(h) : t(h);
1026
1026
  }
1027
1027
  function l(h) {
1028
- return h === null ? m(h) : E(h) ? n.attempt(xe, l, m)(h) : (n.enter("codeFlowValue"), a(h));
1028
+ return h === null ? m(h) : E(h) ? n.attempt(ge, l, m)(h) : (n.enter("codeFlowValue"), a(h));
1029
1029
  }
1030
1030
  function a(h) {
1031
1031
  return h === null || E(h) ? (n.exit("codeFlowValue"), l(h)) : (n.consume(h), a);
@@ -1034,7 +1034,7 @@ function ke(n, r, t) {
1034
1034
  return n.exit("codeIndented"), r(h);
1035
1035
  }
1036
1036
  }
1037
- function Se(n, r, t) {
1037
+ function ke(n, r, t) {
1038
1038
  const e = this;
1039
1039
  return u;
1040
1040
  function u(l) {
@@ -1045,13 +1045,13 @@ function Se(n, r, t) {
1045
1045
  return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? r(l) : E(l) ? u(l) : t(l);
1046
1046
  }
1047
1047
  }
1048
- const be = {
1048
+ const Se = {
1049
1049
  name: "codeText",
1050
- previous: Ie,
1051
- resolve: de,
1052
- tokenize: we
1050
+ previous: de,
1051
+ resolve: be,
1052
+ tokenize: Ie
1053
1053
  };
1054
- function de(n) {
1054
+ function be(n) {
1055
1055
  let r = n.length - 4, t = 3, e, u;
1056
1056
  if ((n[t][1].type === "lineEnding" || n[t][1].type === "space") && (n[r][1].type === "lineEnding" || n[r][1].type === "space")) {
1057
1057
  for (e = t; ++e < r; )
@@ -1064,10 +1064,10 @@ function de(n) {
1064
1064
  u === void 0 ? e !== r && n[e][1].type !== "lineEnding" && (u = e) : (e === r || n[e][1].type === "lineEnding") && (n[u][1].type = "codeTextData", e !== u + 2 && (n[u][1].end = n[e - 1][1].end, n.splice(u + 2, e - u - 2), r -= e - u - 2, e = u + 2), u = void 0);
1065
1065
  return n;
1066
1066
  }
1067
- function Ie(n) {
1067
+ function de(n) {
1068
1068
  return n !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
1069
1069
  }
1070
- function we(n, r, t) {
1070
+ function Ie(n, r, t) {
1071
1071
  let e = 0, u, i;
1072
1072
  return l;
1073
1073
  function l(f) {
@@ -1086,7 +1086,7 @@ function we(n, r, t) {
1086
1086
  return f === 96 ? (n.consume(f), u++, p) : u === e ? (n.exit("codeTextSequence"), n.exit("codeText"), r(f)) : (i.type = "codeTextData", h(f));
1087
1087
  }
1088
1088
  }
1089
- class Ce {
1089
+ class we {
1090
1090
  /**
1091
1091
  * @param {ReadonlyArray<T> | null | undefined} [initial]
1092
1092
  * Initial items (optional).
@@ -1261,7 +1261,7 @@ function fn(n, r) {
1261
1261
  function Xn(n) {
1262
1262
  const r = {};
1263
1263
  let t = -1, e, u, i, l, a, m, h;
1264
- const p = new Ce(n);
1264
+ const p = new we(n);
1265
1265
  for (; ++t < p.length; ) {
1266
1266
  for (; t in r; )
1267
1267
  t = r[t];
@@ -1269,7 +1269,7 @@ function Xn(n) {
1269
1269
  for (; ++i < m.length && m[i][1].type !== "content"; )
1270
1270
  m[i][1].type === "chunkText" && (m[i][1]._isInFirstContentOfListItem = !0, i++);
1271
1271
  if (e[0] === "enter")
1272
- e[1].contentType && (Object.assign(r, ze(p, t)), t = r[t], h = !0);
1272
+ e[1].contentType && (Object.assign(r, Ce(p, t)), t = r[t], h = !0);
1273
1273
  else if (e[1]._container) {
1274
1274
  for (i = t, u = void 0; i--; )
1275
1275
  if (l = p.get(i), l[1].type === "lineEnding" || l[1].type === "lineEndingBlank")
@@ -1282,7 +1282,7 @@ function Xn(n) {
1282
1282
  }
1283
1283
  return nn(n, 0, Number.POSITIVE_INFINITY, p.slice(0)), !h;
1284
1284
  }
1285
- function ze(n, r) {
1285
+ function Ce(n, r) {
1286
1286
  const t = n.get(r)[1], e = n.get(r)[2];
1287
1287
  let u = r - 1;
1288
1288
  const i = [];
@@ -1307,17 +1307,17 @@ function ze(n, r) {
1307
1307
  h[b + m[g][0]] = b + m[g][1], b += m[g][1] - m[g][0] - 1;
1308
1308
  return h;
1309
1309
  }
1310
- const ye = {
1311
- resolve: Te,
1312
- tokenize: Fe
1313
- }, Ee = {
1310
+ const ze = {
1311
+ resolve: Ee,
1312
+ tokenize: Te
1313
+ }, ye = {
1314
1314
  partial: !0,
1315
- tokenize: Ae
1315
+ tokenize: Fe
1316
1316
  };
1317
- function Te(n) {
1317
+ function Ee(n) {
1318
1318
  return Xn(n), n;
1319
1319
  }
1320
- function Fe(n, r) {
1320
+ function Te(n, r) {
1321
1321
  let t;
1322
1322
  return e;
1323
1323
  function e(a) {
@@ -1326,7 +1326,7 @@ function Fe(n, r) {
1326
1326
  }), u(a);
1327
1327
  }
1328
1328
  function u(a) {
1329
- return a === null ? i(a) : E(a) ? n.check(Ee, l, i)(a) : (n.consume(a), u);
1329
+ return a === null ? i(a) : E(a) ? n.check(ye, l, i)(a) : (n.consume(a), u);
1330
1330
  }
1331
1331
  function i(a) {
1332
1332
  return n.exit("chunkContent"), n.exit("content"), r(a);
@@ -1338,7 +1338,7 @@ function Fe(n, r) {
1338
1338
  }), t = t.next, u;
1339
1339
  }
1340
1340
  }
1341
- function Ae(n, r, t) {
1341
+ function Fe(n, r, t) {
1342
1342
  const e = this;
1343
1343
  return u;
1344
1344
  function u(l) {
@@ -1430,14 +1430,14 @@ function pn(n, r) {
1430
1430
  return E(u) ? (n.enter("lineEnding"), n.consume(u), n.exit("lineEnding"), t = !0, e) : _(u) ? B(n, e, t ? "linePrefix" : "lineSuffix")(u) : r(u);
1431
1431
  }
1432
1432
  }
1433
- const _e = {
1433
+ const Ae = {
1434
1434
  name: "definition",
1435
- tokenize: Pe
1436
- }, Le = {
1435
+ tokenize: Le
1436
+ }, _e = {
1437
1437
  partial: !0,
1438
- tokenize: Be
1438
+ tokenize: Pe
1439
1439
  };
1440
- function Pe(n, r, t) {
1440
+ function Le(n, r, t) {
1441
1441
  const e = this;
1442
1442
  let u;
1443
1443
  return i;
@@ -1476,7 +1476,7 @@ function Pe(n, r, t) {
1476
1476
  )(c);
1477
1477
  }
1478
1478
  function p(c) {
1479
- return n.attempt(Le, f, f)(c);
1479
+ return n.attempt(_e, f, f)(c);
1480
1480
  }
1481
1481
  function f(c) {
1482
1482
  return _(c) ? B(n, g, "whitespace")(c) : g(c);
@@ -1485,7 +1485,7 @@ function Pe(n, r, t) {
1485
1485
  return c === null || E(c) ? (n.exit("definition"), e.parser.defined.push(u), r(c)) : t(c);
1486
1486
  }
1487
1487
  }
1488
- function Be(n, r, t) {
1488
+ function Pe(n, r, t) {
1489
1489
  return e;
1490
1490
  function e(a) {
1491
1491
  return j(a) ? pn(n, u)(a) : t(a);
@@ -1500,11 +1500,11 @@ function Be(n, r, t) {
1500
1500
  return a === null || E(a) ? r(a) : t(a);
1501
1501
  }
1502
1502
  }
1503
- const Oe = {
1503
+ const Be = {
1504
1504
  name: "hardBreakEscape",
1505
- tokenize: Me
1505
+ tokenize: Oe
1506
1506
  };
1507
- function Me(n, r, t) {
1507
+ function Oe(n, r, t) {
1508
1508
  return e;
1509
1509
  function e(i) {
1510
1510
  return n.enter("hardBreakEscape"), n.consume(i), u;
@@ -1513,12 +1513,12 @@ function Me(n, r, t) {
1513
1513
  return E(i) ? (n.exit("hardBreakEscape"), r(i)) : t(i);
1514
1514
  }
1515
1515
  }
1516
- const Ne = {
1516
+ const Me = {
1517
1517
  name: "headingAtx",
1518
- resolve: De,
1519
- tokenize: qe
1518
+ resolve: Ne,
1519
+ tokenize: De
1520
1520
  };
1521
- function De(n, r) {
1521
+ function Ne(n, r) {
1522
1522
  let t = n.length - 2, e = 3, u, i;
1523
1523
  return n[e][1].type === "whitespace" && (e += 2), t - 2 > e && n[t][1].type === "whitespace" && (t -= 2), n[t][1].type === "atxHeadingSequence" && (e === t - 1 || t - 4 > e && n[t - 2][1].type === "whitespace") && (t -= e + 1 === t ? 2 : 4), t > e && (u = {
1524
1524
  type: "atxHeadingText",
@@ -1531,7 +1531,7 @@ function De(n, r) {
1531
1531
  contentType: "text"
1532
1532
  }, nn(n, e, t - e + 1, [["enter", u, r], ["enter", i, r], ["exit", i, r], ["exit", u, r]])), n;
1533
1533
  }
1534
- function qe(n, r, t) {
1534
+ function De(n, r, t) {
1535
1535
  let e = 0;
1536
1536
  return u;
1537
1537
  function u(p) {
@@ -1553,7 +1553,7 @@ function qe(n, r, t) {
1553
1553
  return p === null || p === 35 || j(p) ? (n.exit("atxHeadingText"), a(p)) : (n.consume(p), h);
1554
1554
  }
1555
1555
  }
1556
- const Re = [
1556
+ const qe = [
1557
1557
  "address",
1558
1558
  "article",
1559
1559
  "aside",
@@ -1616,25 +1616,25 @@ const Re = [
1616
1616
  "tr",
1617
1617
  "track",
1618
1618
  "ul"
1619
- ], Un = ["pre", "script", "style", "textarea"], He = {
1619
+ ], Un = ["pre", "script", "style", "textarea"], Re = {
1620
1620
  concrete: !0,
1621
1621
  name: "htmlFlow",
1622
- resolveTo: We,
1623
- tokenize: Ue
1624
- }, Ve = {
1625
- partial: !0,
1626
- tokenize: $e
1627
- }, Qe = {
1622
+ resolveTo: Qe,
1623
+ tokenize: We
1624
+ }, He = {
1628
1625
  partial: !0,
1629
1626
  tokenize: je
1627
+ }, Ve = {
1628
+ partial: !0,
1629
+ tokenize: Ue
1630
1630
  };
1631
- function We(n) {
1631
+ function Qe(n) {
1632
1632
  let r = n.length;
1633
1633
  for (; r-- && !(n[r][0] === "enter" && n[r][1].type === "htmlFlow"); )
1634
1634
  ;
1635
1635
  return r > 1 && n[r - 2][1].type === "linePrefix" && (n[r][1].start = n[r - 2][1].start, n[r + 1][1].start = n[r - 2][1].start, n.splice(r - 2, 2)), n;
1636
1636
  }
1637
- function Ue(n, r, t) {
1637
+ function We(n, r, t) {
1638
1638
  const e = this;
1639
1639
  let u, i, l, a, m;
1640
1640
  return h;
@@ -1663,7 +1663,7 @@ function Ue(n, r, t) {
1663
1663
  function F(s) {
1664
1664
  if (s === null || s === 47 || s === 62 || j(s)) {
1665
1665
  const G = s === 47, an = l.toLowerCase();
1666
- return !G && !i && Un.includes(an) ? (u = 1, e.interrupt ? r(s) : C(s)) : Re.includes(l.toLowerCase()) ? (u = 6, G ? (n.consume(s), S) : e.interrupt ? r(s) : C(s)) : (u = 7, e.interrupt && !e.parser.lazy[e.now().line] ? t(s) : i ? I(s) : d(s));
1666
+ return !G && !i && Un.includes(an) ? (u = 1, e.interrupt ? r(s) : C(s)) : qe.includes(l.toLowerCase()) ? (u = 6, G ? (n.consume(s), S) : e.interrupt ? r(s) : C(s)) : (u = 7, e.interrupt && !e.parser.lazy[e.now().line] ? t(s) : i ? I(s) : d(s));
1667
1667
  }
1668
1668
  return s === 45 || $(s) ? (n.consume(s), l += String.fromCharCode(s), F) : t(s);
1669
1669
  }
@@ -1701,10 +1701,10 @@ function Ue(n, r, t) {
1701
1701
  return s === null || E(s) ? C(s) : _(s) ? (n.consume(s), z) : t(s);
1702
1702
  }
1703
1703
  function C(s) {
1704
- return s === 45 && u === 2 ? (n.consume(s), V) : s === 60 && u === 1 ? (n.consume(s), R) : s === 62 && u === 4 ? (n.consume(s), Z) : s === 63 && u === 3 ? (n.consume(s), o) : s === 93 && u === 5 ? (n.consume(s), tn) : E(s) && (u === 6 || u === 7) ? (n.exit("htmlFlowData"), n.check(Ve, en, O)(s)) : s === null || E(s) ? (n.exit("htmlFlowData"), O(s)) : (n.consume(s), C);
1704
+ return s === 45 && u === 2 ? (n.consume(s), V) : s === 60 && u === 1 ? (n.consume(s), R) : s === 62 && u === 4 ? (n.consume(s), Z) : s === 63 && u === 3 ? (n.consume(s), o) : s === 93 && u === 5 ? (n.consume(s), tn) : E(s) && (u === 6 || u === 7) ? (n.exit("htmlFlowData"), n.check(He, en, O)(s)) : s === null || E(s) ? (n.exit("htmlFlowData"), O(s)) : (n.consume(s), C);
1705
1705
  }
1706
1706
  function O(s) {
1707
- return n.check(Qe, M, en)(s);
1707
+ return n.check(Ve, M, en)(s);
1708
1708
  }
1709
1709
  function M(s) {
1710
1710
  return n.enter("lineEnding"), n.consume(s), n.exit("lineEnding"), A;
@@ -1738,7 +1738,7 @@ function Ue(n, r, t) {
1738
1738
  return n.exit("htmlFlow"), r(s);
1739
1739
  }
1740
1740
  }
1741
- function je(n, r, t) {
1741
+ function Ue(n, r, t) {
1742
1742
  const e = this;
1743
1743
  return u;
1744
1744
  function u(l) {
@@ -1748,17 +1748,17 @@ function je(n, r, t) {
1748
1748
  return e.parser.lazy[e.now().line] ? t(l) : r(l);
1749
1749
  }
1750
1750
  }
1751
- function $e(n, r, t) {
1751
+ function je(n, r, t) {
1752
1752
  return e;
1753
1753
  function e(u) {
1754
1754
  return n.enter("lineEnding"), n.consume(u), n.exit("lineEnding"), n.attempt(kn, r, t);
1755
1755
  }
1756
1756
  }
1757
- const Ye = {
1757
+ const $e = {
1758
1758
  name: "htmlText",
1759
- tokenize: Ze
1759
+ tokenize: Ye
1760
1760
  };
1761
- function Ze(n, r, t) {
1761
+ function Ye(n, r, t) {
1762
1762
  const e = this;
1763
1763
  let u, i, l;
1764
1764
  return a;
@@ -1853,17 +1853,17 @@ function Ze(n, r, t) {
1853
1853
  }
1854
1854
  const En = {
1855
1855
  name: "labelEnd",
1856
- resolveAll: Xe,
1857
- resolveTo: ve,
1856
+ resolveAll: Ke,
1857
+ resolveTo: Xe,
1858
+ tokenize: ve
1859
+ }, Ze = {
1858
1860
  tokenize: nr
1859
1861
  }, Ge = {
1860
1862
  tokenize: tr
1861
1863
  }, Je = {
1862
1864
  tokenize: er
1863
- }, Ke = {
1864
- tokenize: rr
1865
1865
  };
1866
- function Xe(n) {
1866
+ function Ke(n) {
1867
1867
  let r = -1;
1868
1868
  const t = [];
1869
1869
  for (; ++r < n.length; ) {
@@ -1875,7 +1875,7 @@ function Xe(n) {
1875
1875
  }
1876
1876
  return n.length !== t.length && nn(n, 0, n.length, t), n;
1877
1877
  }
1878
- function ve(n, r) {
1878
+ function Xe(n, r) {
1879
1879
  let t = n.length, e = 0, u, i, l, a;
1880
1880
  for (; t--; )
1881
1881
  if (u = n[t][1], i) {
@@ -1915,7 +1915,7 @@ function ve(n, r) {
1915
1915
  };
1916
1916
  return a = [["enter", m, r], ["enter", h, r]], a = W(a, n.slice(i + 1, i + e + 3)), a = W(a, [["enter", p, r]]), a = W(a, yn(r.parser.constructs.insideSpan.null, n.slice(i + e + 4, l - 3), r)), a = W(a, [["exit", p, r], n[l - 2], n[l - 1], ["exit", h, r]]), a = W(a, n.slice(l + 1)), a = W(a, [["exit", m, r]]), nn(n, i, n.length, a), n;
1917
1917
  }
1918
- function nr(n, r, t) {
1918
+ function ve(n, r, t) {
1919
1919
  const e = this;
1920
1920
  let u = e.events.length, i, l;
1921
1921
  for (; u--; )
@@ -1931,10 +1931,10 @@ function nr(n, r, t) {
1931
1931
  }))), n.enter("labelEnd"), n.enter("labelMarker"), n.consume(g), n.exit("labelMarker"), n.exit("labelEnd"), m) : t(g);
1932
1932
  }
1933
1933
  function m(g) {
1934
- return g === 40 ? n.attempt(Ge, p, l ? p : f)(g) : g === 91 ? n.attempt(Je, p, l ? h : f)(g) : l ? p(g) : f(g);
1934
+ return g === 40 ? n.attempt(Ze, p, l ? p : f)(g) : g === 91 ? n.attempt(Ge, p, l ? h : f)(g) : l ? p(g) : f(g);
1935
1935
  }
1936
1936
  function h(g) {
1937
- return n.attempt(Ke, p, f)(g);
1937
+ return n.attempt(Je, p, f)(g);
1938
1938
  }
1939
1939
  function p(g) {
1940
1940
  return r(g);
@@ -1943,7 +1943,7 @@ function nr(n, r, t) {
1943
1943
  return i._balanced = !0, t(g);
1944
1944
  }
1945
1945
  }
1946
- function tr(n, r, t) {
1946
+ function nr(n, r, t) {
1947
1947
  return e;
1948
1948
  function e(f) {
1949
1949
  return n.enter("resource"), n.enter("resourceMarker"), n.consume(f), n.exit("resourceMarker"), u;
@@ -1970,7 +1970,7 @@ function tr(n, r, t) {
1970
1970
  return f === 41 ? (n.enter("resourceMarker"), n.consume(f), n.exit("resourceMarker"), n.exit("resource"), r) : t(f);
1971
1971
  }
1972
1972
  }
1973
- function er(n, r, t) {
1973
+ function tr(n, r, t) {
1974
1974
  const e = this;
1975
1975
  return u;
1976
1976
  function u(a) {
@@ -1983,7 +1983,7 @@ function er(n, r, t) {
1983
1983
  return t(a);
1984
1984
  }
1985
1985
  }
1986
- function rr(n, r, t) {
1986
+ function er(n, r, t) {
1987
1987
  return e;
1988
1988
  function e(i) {
1989
1989
  return n.enter("reference"), n.enter("referenceMarker"), n.consume(i), n.exit("referenceMarker"), u;
@@ -1992,12 +1992,12 @@ function rr(n, r, t) {
1992
1992
  return i === 93 ? (n.enter("referenceMarker"), n.consume(i), n.exit("referenceMarker"), n.exit("reference"), r) : t(i);
1993
1993
  }
1994
1994
  }
1995
- const ir = {
1995
+ const rr = {
1996
1996
  name: "labelStartImage",
1997
1997
  resolveAll: En.resolveAll,
1998
- tokenize: ur
1998
+ tokenize: ir
1999
1999
  };
2000
- function ur(n, r, t) {
2000
+ function ir(n, r, t) {
2001
2001
  const e = this;
2002
2002
  return u;
2003
2003
  function u(a) {
@@ -2010,12 +2010,12 @@ function ur(n, r, t) {
2010
2010
  return a === 94 && "_hiddenFootnoteSupport" in e.parser.constructs ? t(a) : r(a);
2011
2011
  }
2012
2012
  }
2013
- const lr = {
2013
+ const ur = {
2014
2014
  name: "labelStartLink",
2015
2015
  resolveAll: En.resolveAll,
2016
- tokenize: ar
2016
+ tokenize: lr
2017
2017
  };
2018
- function ar(n, r, t) {
2018
+ function lr(n, r, t) {
2019
2019
  const e = this;
2020
2020
  return u;
2021
2021
  function u(l) {
@@ -2027,9 +2027,9 @@ function ar(n, r, t) {
2027
2027
  }
2028
2028
  const dn = {
2029
2029
  name: "lineEnding",
2030
- tokenize: or
2030
+ tokenize: ar
2031
2031
  };
2032
- function or(n, r) {
2032
+ function ar(n, r) {
2033
2033
  return t;
2034
2034
  function t(e) {
2035
2035
  return n.enter("lineEnding"), n.consume(e), n.exit("lineEnding"), B(n, r, "linePrefix");
@@ -2037,9 +2037,9 @@ function or(n, r) {
2037
2037
  }
2038
2038
  const xn = {
2039
2039
  name: "thematicBreak",
2040
- tokenize: sr
2040
+ tokenize: or
2041
2041
  };
2042
- function sr(n, r, t) {
2042
+ function or(n, r, t) {
2043
2043
  let e = 0, u;
2044
2044
  return i;
2045
2045
  function i(h) {
@@ -2057,19 +2057,19 @@ function sr(n, r, t) {
2057
2057
  }
2058
2058
  const U = {
2059
2059
  continuation: {
2060
- tokenize: pr
2060
+ tokenize: fr
2061
2061
  },
2062
- exit: gr,
2062
+ exit: mr,
2063
2063
  name: "list",
2064
- tokenize: fr
2065
- }, cr = {
2064
+ tokenize: hr
2065
+ }, sr = {
2066
2066
  partial: !0,
2067
- tokenize: xr
2068
- }, hr = {
2067
+ tokenize: gr
2068
+ }, cr = {
2069
2069
  partial: !0,
2070
- tokenize: mr
2070
+ tokenize: pr
2071
2071
  };
2072
- function fr(n, r, t) {
2072
+ function hr(n, r, t) {
2073
2073
  const e = this, u = e.events[e.events.length - 1];
2074
2074
  let i = u && u[1].type === "linePrefix" ? u[2].sliceSerialize(u[1], !0).length : 0, l = 0;
2075
2075
  return a;
@@ -2093,7 +2093,7 @@ function fr(n, r, t) {
2093
2093
  kn,
2094
2094
  // Can’t be empty when interrupting.
2095
2095
  e.interrupt ? t : p,
2096
- n.attempt(cr, g, f)
2096
+ n.attempt(sr, g, f)
2097
2097
  );
2098
2098
  }
2099
2099
  function p(c) {
@@ -2106,20 +2106,20 @@ function fr(n, r, t) {
2106
2106
  return e.containerState.size = i + e.sliceSerialize(n.exit("listItemPrefix"), !0).length, r(c);
2107
2107
  }
2108
2108
  }
2109
- function pr(n, r, t) {
2109
+ function fr(n, r, t) {
2110
2110
  const e = this;
2111
2111
  return e.containerState._closeFlow = void 0, n.check(kn, u, i);
2112
2112
  function u(a) {
2113
2113
  return e.containerState.furtherBlankLines = e.containerState.furtherBlankLines || e.containerState.initialBlankLine, B(n, r, "listItemIndent", e.containerState.size + 1)(a);
2114
2114
  }
2115
2115
  function i(a) {
2116
- return e.containerState.furtherBlankLines || !_(a) ? (e.containerState.furtherBlankLines = void 0, e.containerState.initialBlankLine = void 0, l(a)) : (e.containerState.furtherBlankLines = void 0, e.containerState.initialBlankLine = void 0, n.attempt(hr, r, l)(a));
2116
+ return e.containerState.furtherBlankLines || !_(a) ? (e.containerState.furtherBlankLines = void 0, e.containerState.initialBlankLine = void 0, l(a)) : (e.containerState.furtherBlankLines = void 0, e.containerState.initialBlankLine = void 0, n.attempt(cr, r, l)(a));
2117
2117
  }
2118
2118
  function l(a) {
2119
2119
  return e.containerState._closeFlow = !0, e.interrupt = void 0, B(n, n.attempt(U, r, t), "linePrefix", e.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
2120
2120
  }
2121
2121
  }
2122
- function mr(n, r, t) {
2122
+ function pr(n, r, t) {
2123
2123
  const e = this;
2124
2124
  return B(n, u, "listItemIndent", e.containerState.size + 1);
2125
2125
  function u(i) {
@@ -2127,10 +2127,10 @@ function mr(n, r, t) {
2127
2127
  return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === e.containerState.size ? r(i) : t(i);
2128
2128
  }
2129
2129
  }
2130
- function gr(n) {
2130
+ function mr(n) {
2131
2131
  n.exit(this.containerState.type);
2132
2132
  }
2133
- function xr(n, r, t) {
2133
+ function gr(n, r, t) {
2134
2134
  const e = this;
2135
2135
  return B(n, u, "listItemPrefixWhitespace", e.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
2136
2136
  function u(i) {
@@ -2140,10 +2140,10 @@ function xr(n, r, t) {
2140
2140
  }
2141
2141
  const jn = {
2142
2142
  name: "setextUnderline",
2143
- resolveTo: kr,
2144
- tokenize: Sr
2143
+ resolveTo: xr,
2144
+ tokenize: kr
2145
2145
  };
2146
- function kr(n, r) {
2146
+ function xr(n, r) {
2147
2147
  let t = n.length, e, u, i;
2148
2148
  for (; t--; )
2149
2149
  if (n[t][0] === "enter") {
@@ -2167,7 +2167,7 @@ function kr(n, r) {
2167
2167
  ...n[i][1].end
2168
2168
  }) : n[e][1] = l, n.push(["exit", l, r]), n;
2169
2169
  }
2170
- function Sr(n, r, t) {
2170
+ function kr(n, r, t) {
2171
2171
  const e = this;
2172
2172
  let u;
2173
2173
  return i;
@@ -2190,16 +2190,16 @@ function Sr(n, r, t) {
2190
2190
  return h === null || E(h) ? (n.exit("setextHeadingLine"), r(h)) : t(h);
2191
2191
  }
2192
2192
  }
2193
- const br = {
2194
- tokenize: dr
2193
+ const Sr = {
2194
+ tokenize: br
2195
2195
  };
2196
- function dr(n) {
2196
+ function br(n) {
2197
2197
  const r = this, t = n.attempt(
2198
2198
  // Try to parse a blank line.
2199
2199
  kn,
2200
2200
  e,
2201
2201
  // Try to parse initial flow (essentially, only code).
2202
- n.attempt(this.parser.constructs.flowInitial, u, B(n, n.attempt(this.parser.constructs.flow, u, n.attempt(ye, u)), "linePrefix"))
2202
+ n.attempt(this.parser.constructs.flowInitial, u, B(n, n.attempt(this.parser.constructs.flow, u, n.attempt(ze, u)), "linePrefix"))
2203
2203
  );
2204
2204
  return t;
2205
2205
  function e(i) {
@@ -2217,12 +2217,12 @@ function dr(n) {
2217
2217
  return n.enter("lineEnding"), n.consume(i), n.exit("lineEnding"), r.currentConstruct = void 0, t;
2218
2218
  }
2219
2219
  }
2220
- const Ir = {
2220
+ const dr = {
2221
2221
  resolveAll: rt()
2222
- }, wr = et("string"), Cr = et("text");
2222
+ }, Ir = et("string"), wr = et("text");
2223
2223
  function et(n) {
2224
2224
  return {
2225
- resolveAll: rt(n === "text" ? zr : void 0),
2225
+ resolveAll: rt(n === "text" ? Cr : void 0),
2226
2226
  tokenize: r
2227
2227
  };
2228
2228
  function r(t) {
@@ -2265,7 +2265,7 @@ function rt(n) {
2265
2265
  return n ? n(t, e) : t;
2266
2266
  }
2267
2267
  }
2268
- function zr(n, r) {
2268
+ function Cr(n, r) {
2269
2269
  let t = 0;
2270
2270
  for (; ++t <= n.length; )
2271
2271
  if ((t === n.length || n[t][1].type === "lineEnding") && n[t - 1][1].type === "data") {
@@ -2307,7 +2307,7 @@ function zr(n, r) {
2307
2307
  }
2308
2308
  return n;
2309
2309
  }
2310
- const yr = {
2310
+ const zr = {
2311
2311
  42: U,
2312
2312
  43: U,
2313
2313
  45: U,
@@ -2322,56 +2322,56 @@ const yr = {
2322
2322
  56: U,
2323
2323
  57: U,
2324
2324
  62: Gn
2325
+ }, yr = {
2326
+ 91: Ae
2325
2327
  }, Er = {
2326
- 91: _e
2327
- }, Tr = {
2328
2328
  [-2]: bn,
2329
2329
  [-1]: bn,
2330
2330
  32: bn
2331
- }, Fr = {
2332
- 35: Ne,
2331
+ }, Tr = {
2332
+ 35: Me,
2333
2333
  42: xn,
2334
2334
  45: [jn, xn],
2335
- 60: He,
2335
+ 60: Re,
2336
2336
  61: jn,
2337
2337
  95: xn,
2338
2338
  96: Wn,
2339
2339
  126: Wn
2340
- }, Ar = {
2340
+ }, Fr = {
2341
2341
  38: Kn,
2342
2342
  92: Jn
2343
- }, _r = {
2343
+ }, Ar = {
2344
2344
  [-5]: dn,
2345
2345
  [-4]: dn,
2346
2346
  [-3]: dn,
2347
- 33: ir,
2347
+ 33: rr,
2348
2348
  38: Kn,
2349
2349
  42: zn,
2350
- 60: [le, Ye],
2351
- 91: lr,
2352
- 92: [Oe, Jn],
2350
+ 60: [ue, $e],
2351
+ 91: ur,
2352
+ 92: [Be, Jn],
2353
2353
  93: En,
2354
2354
  95: zn,
2355
- 96: be
2355
+ 96: Se
2356
+ }, _r = {
2357
+ null: [zn, dr]
2356
2358
  }, Lr = {
2357
- null: [zn, Ir]
2358
- }, Pr = {
2359
2359
  null: [42, 95]
2360
- }, Br = {
2360
+ }, Pr = {
2361
2361
  null: []
2362
- }, Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2362
+ }, Br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2363
2363
  __proto__: null,
2364
- attentionMarkers: Pr,
2365
- contentInitial: Er,
2366
- disable: Br,
2367
- document: yr,
2368
- flow: Fr,
2369
- flowInitial: Tr,
2370
- insideSpan: Lr,
2371
- string: Ar,
2372
- text: _r
2364
+ attentionMarkers: Lr,
2365
+ contentInitial: yr,
2366
+ disable: Pr,
2367
+ document: zr,
2368
+ flow: Tr,
2369
+ flowInitial: Er,
2370
+ insideSpan: _r,
2371
+ string: Fr,
2372
+ text: Ar
2373
2373
  }, Symbol.toStringTag, { value: "Module" }));
2374
- function Mr(n, r, t) {
2374
+ function Or(n, r, t) {
2375
2375
  let e = {
2376
2376
  _bufferIndex: -1,
2377
2377
  _index: 0,
@@ -2408,10 +2408,10 @@ function Mr(n, r, t) {
2408
2408
  return l = W(l, z), F(), l[l.length - 1] !== null ? [] : (N(r, 0), h.events = yn(i, h.events, h), h.events);
2409
2409
  }
2410
2410
  function g(z, C) {
2411
- return Dr(c(z), C);
2411
+ return Nr(c(z), C);
2412
2412
  }
2413
2413
  function c(z) {
2414
- return Nr(l, z);
2414
+ return Mr(l, z);
2415
2415
  }
2416
2416
  function b() {
2417
2417
  const {
@@ -2534,7 +2534,7 @@ function Mr(n, r, t) {
2534
2534
  e.line in u && e.column < 2 && (e.column = u[e.line], e.offset += u[e.line] - 1);
2535
2535
  }
2536
2536
  }
2537
- function Nr(n, r) {
2537
+ function Mr(n, r) {
2538
2538
  const t = r.start._index, e = r.start._bufferIndex, u = r.end._index, i = r.end._bufferIndex;
2539
2539
  let l;
2540
2540
  if (t === u)
@@ -2548,7 +2548,7 @@ function Nr(n, r) {
2548
2548
  }
2549
2549
  return l;
2550
2550
  }
2551
- function Dr(n, r) {
2551
+ function Nr(n, r) {
2552
2552
  let t = -1;
2553
2553
  const e = [];
2554
2554
  let u;
@@ -2588,35 +2588,35 @@ function Dr(n, r) {
2588
2588
  }
2589
2589
  return e.join("");
2590
2590
  }
2591
- function qr(n) {
2591
+ function Dr(n) {
2592
2592
  const e = {
2593
2593
  constructs: (
2594
2594
  /** @type {FullNormalizedExtension} */
2595
- qt([Or, ...(n || {}).extensions || []])
2595
+ Dt([Br, ...(n || {}).extensions || []])
2596
2596
  ),
2597
- content: u(vt),
2597
+ content: u(Xt),
2598
2598
  defined: [],
2599
- document: u(te),
2600
- flow: u(br),
2599
+ document: u(ne),
2600
+ flow: u(Sr),
2601
2601
  lazy: {},
2602
- string: u(wr),
2603
- text: u(Cr)
2602
+ string: u(Ir),
2603
+ text: u(wr)
2604
2604
  };
2605
2605
  return e;
2606
2606
  function u(i) {
2607
2607
  return l;
2608
2608
  function l(a) {
2609
- return Mr(e, i, a);
2609
+ return Or(e, i, a);
2610
2610
  }
2611
2611
  }
2612
2612
  }
2613
- function Rr(n) {
2613
+ function qr(n) {
2614
2614
  for (; !Xn(n); )
2615
2615
  ;
2616
2616
  return n;
2617
2617
  }
2618
2618
  const $n = /[\0\t\n\r]/g;
2619
- function Hr() {
2619
+ function Rr() {
2620
2620
  let n = 1, r = "", t = !0, e;
2621
2621
  return u;
2622
2622
  function u(i, l, a) {
@@ -2651,46 +2651,45 @@ function Hr() {
2651
2651
  return a && (e && m.push(-5), r && m.push(r), m.push(null)), m;
2652
2652
  }
2653
2653
  }
2654
- function Vr(n, r, t) {
2655
- return typeof r != "string" && (t = r, r = void 0), Xt(t)(Rr(qr(t).document().write(Hr()(n, r, !0))));
2654
+ function Hr(n, r, t) {
2655
+ return typeof r != "string" && (t = r, r = void 0), Kt(t)(qr(Dr(t).document().write(Rr()(n, r, !0))));
2656
2656
  }
2657
- async function Qr(n = {}) {
2657
+ async function Vr(n = {}) {
2658
2658
  const r = [], t = [];
2659
2659
  if (n.gfm === !0) {
2660
- const e = await import("./index-CAeOFdez.js");
2660
+ const e = await import("./index-DjShJtXp.js");
2661
2661
  r.push(e.gfm({})), t.push(e.gfmHtml({}));
2662
2662
  }
2663
2663
  return { extensions: r, htmlExtensions: t };
2664
2664
  }
2665
- function jr(n, ...r) {
2665
+ function Ur(n, ...r) {
2666
2666
  const { content: t, allowHtml: e = !1 } = n, u = Lt(
2667
2667
  t,
2668
2668
  e,
2669
2669
  n.features
2670
2670
  )(async (i = "", l = !1, a = {}) => {
2671
- const { extensions: m, htmlExtensions: h } = await Qr(a);
2672
- return Vr(i, { allowDangerousHtml: l, extensions: m, htmlExtensions: h });
2671
+ const { extensions: m, htmlExtensions: h } = await Vr(a);
2672
+ return Hr(i, { allowDangerousHtml: l, extensions: m, htmlExtensions: h });
2673
2673
  });
2674
2674
  return Pt.div(
2675
- Bt(u),
2676
2675
  // Ensure styles are present declaratively via head portal
2677
- (n.cssInjection ?? "none") === "none" ? null : Ot(
2676
+ (n.cssInjection ?? "none") === "none" ? null : Bt(
2678
2677
  () => import("./styles-url-COuz9fVH.js"),
2679
- ({ default: i }) => Dt({ id: "beatui-markdown-css", href: i })
2678
+ ({ default: i }) => Nt({ id: "beatui-markdown-css", href: i })
2680
2679
  ),
2681
2680
  Mn.class("bc-markdown"),
2682
- Mt(
2681
+ Ot(
2683
2682
  u,
2684
- (i) => Nt(i, (l) => Mn.innerHTML(l))
2683
+ (i) => Mt(i, (l) => Mn.innerHTML(l))
2685
2684
  ),
2686
2685
  ...r
2687
2686
  );
2688
2687
  }
2689
2688
  export {
2690
- jr as M,
2689
+ Ur as M,
2691
2690
  $ as a,
2692
2691
  v as b,
2693
- Zt as c,
2692
+ Yt as c,
2694
2693
  wn as d,
2695
2694
  kn as e,
2696
2695
  B as f,
@@ -2698,11 +2697,11 @@ export {
2698
2697
  Hn as h,
2699
2698
  E as i,
2700
2699
  _ as j,
2701
- qt as k,
2702
- Vt as l,
2700
+ Dt as k,
2701
+ Ht as l,
2703
2702
  j as m,
2704
2703
  mn as n,
2705
2704
  yn as r,
2706
2705
  gn as s,
2707
- Gt as u
2706
+ Zt as u
2708
2707
  };