@xcan-cloud/markdown 1.0.3 → 1.0.4

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 (42) hide show
  1. package/dist/{index-DgJzUFhO.cjs → index-3IHguXNV.cjs} +1 -1
  2. package/dist/{index-svt2B0mU.cjs → index-B1J2nNpM.cjs} +1 -1
  3. package/dist/{index-gomLj7Pa.cjs → index-B4IGeZBE.cjs} +1 -1
  4. package/dist/{index-Cp1Js3UB.js → index-B6GxYMoT.js} +1 -1
  5. package/dist/{index-DElVYCAV.cjs → index-B7Xj21ga.cjs} +1 -1
  6. package/dist/{index-DxrodrNz.cjs → index-BBqsIlX7.cjs} +1 -1
  7. package/dist/{index-BGS8XpK3.cjs → index-BQdRlvS7.cjs} +1 -1
  8. package/dist/{index-D2ibyWM8.cjs → index-BVI1FBPW.cjs} +1 -1
  9. package/dist/{index-CZ7QBSCF.js → index-Bf12Z3js.js} +1 -1
  10. package/dist/{index-WjQV1yjo.cjs → index-BjR-sYQV.cjs} +1 -1
  11. package/dist/{index-B2puE7Hw.js → index-Bk_RD5SM.js} +1 -1
  12. package/dist/{index-Njgs-TRM.cjs → index-ByeQUzeV.cjs} +1 -1
  13. package/dist/{index-BXru8-QI.js → index-CBENkBIw.js} +1 -1
  14. package/dist/{index--J1mZOv6.cjs → index-CNJMw03h.cjs} +1 -1
  15. package/dist/{index-DeUR7cIb.js → index-CNUCRxVw.js} +1 -1
  16. package/dist/{index-Bx04875h.js → index-CNrmNDJb.js} +1 -1
  17. package/dist/{index-Ds5dLOfO.cjs → index-Cblg2U2_.cjs} +1 -1
  18. package/dist/{index-D9gMp3vS.js → index-Cj-Xzn5A.js} +1 -1
  19. package/dist/{index-CLMlwLsZ.cjs → index-CqXL17kO.cjs} +1 -1
  20. package/dist/{index-D5DbXPVV.cjs → index-D60Lv4Oo.cjs} +1 -1
  21. package/dist/{index-CNVYJm2K.js → index-D9G4wJSx.js} +1 -1
  22. package/dist/{index-BhuhaXHm.js → index-DwONd5rr.js} +1 -1
  23. package/dist/{index-wwsiyOCC.cjs → index-Es64S3Ag.cjs} +1 -1
  24. package/dist/{index-KDcnmY_P.js → index-HcWYO0RX.js} +1 -1
  25. package/dist/{index-CZsHchmF.js → index-N_mxtTQF.js} +1 -1
  26. package/dist/{index-U0iS5-g_.js → index-QdzXxJOb.js} +1 -1
  27. package/dist/{index-C5Ri_0AX.js → index-UjkeE9LM.js} +1 -1
  28. package/dist/{index-NcIp2AXa.cjs → index-Ya6GDKKk.cjs} +1 -1
  29. package/dist/{index-CLTQC4Ws.js → index-fbwey2ji.js} +1 -1
  30. package/dist/{index-Skqlu5FA.cjs → index-iTikLMQC.cjs} +1 -1
  31. package/dist/{index-DhciuuM3.js → index-jA2-yZjt.js} +1 -1
  32. package/dist/{index-D-LiE0Sn.js → index-m4nx9WDf.js} +1 -1
  33. package/dist/{index-yuc3MS9r.cjs → index-nlrwNtjC.cjs} +1 -1
  34. package/dist/{index-d0Fk7AGW.js → index-t3xwtRw_.js} +211 -211
  35. package/dist/{index-CDtkCBJ_.cjs → index-xBG42cso.cjs} +10 -10
  36. package/dist/{index-BsJRUjqg.js → index-yhzGNRR9.js} +1 -1
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.mjs +1 -1
  39. package/dist/styles/markdown-editor.css +13 -4
  40. package/dist/styles/markdown-renderer.css +32 -11
  41. package/dist/styles/themes/github.css +1 -1
  42. package/package.json +1 -1
@@ -1885,9 +1885,9 @@ function Sb(t, e, n) {
1885
1885
  let P = 0;
1886
1886
  return z;
1887
1887
  function z(D) {
1888
- return m.enter("lineEnding"), m.consume(D), m.exit("lineEnding"), Q;
1888
+ return m.enter("lineEnding"), m.consume(D), m.exit("lineEnding"), B;
1889
1889
  }
1890
- function Q(D) {
1890
+ function B(D) {
1891
1891
  return m.enter("codeFencedFence"), le(D) ? oe(m, L, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(D) : L(D);
1892
1892
  }
1893
1893
  function L(D) {
@@ -2599,10 +2599,10 @@ function nO(t, e, n) {
2599
2599
  return A === 47 || A === 62 || le(A) ? C(A) : n(A);
2600
2600
  }
2601
2601
  function z(A) {
2602
- return A === 62 ? (t.consume(A), Q) : n(A);
2602
+ return A === 62 ? (t.consume(A), B) : n(A);
2603
2603
  }
2604
- function Q(A) {
2605
- return A === null || K(A) ? L(A) : le(A) ? (t.consume(A), Q) : n(A);
2604
+ function B(A) {
2605
+ return A === null || K(A) ? L(A) : le(A) ? (t.consume(A), B) : n(A);
2606
2606
  }
2607
2607
  function L(A) {
2608
2608
  return A === 45 && a === 2 ? (t.consume(A), W) : A === 60 && a === 1 ? (t.consume(A), ne) : A === 62 && a === 4 ? (t.consume(A), J) : A === 63 && a === 3 ? (t.consume(A), S) : A === 93 && a === 5 ? (t.consume(A), fe) : K(A) && (a === 6 || a === 7) ? (t.exit("htmlFlowData"), t.check(Jb, ue, q)(A)) : A === null || K(A) ? (t.exit("htmlFlowData"), q(A)) : (t.consume(A), L);
@@ -2725,10 +2725,10 @@ function sO(t, e, n) {
2725
2725
  return S === 47 ? (t.consume(S), W) : S === 58 || S === 95 || Ve(S) ? (t.consume(S), z) : K(S) ? (s = P, ne(S)) : le(S) ? (t.consume(S), P) : W(S);
2726
2726
  }
2727
2727
  function z(S) {
2728
- return S === 45 || S === 46 || S === 58 || S === 95 || Xe(S) ? (t.consume(S), z) : Q(S);
2728
+ return S === 45 || S === 46 || S === 58 || S === 95 || Xe(S) ? (t.consume(S), z) : B(S);
2729
2729
  }
2730
- function Q(S) {
2731
- return S === 61 ? (t.consume(S), L) : K(S) ? (s = Q, ne(S)) : le(S) ? (t.consume(S), Q) : P(S);
2730
+ function B(S) {
2731
+ return S === 61 ? (t.consume(S), L) : K(S) ? (s = B, ne(S)) : le(S) ? (t.consume(S), B) : P(S);
2732
2732
  }
2733
2733
  function L(S) {
2734
2734
  return S === null || S === 60 || S === 61 || S === 62 || S === 96 ? n(S) : S === 34 || S === 39 ? (t.consume(S), a = S, q) : K(S) ? (s = L, ne(S)) : le(S) ? (t.consume(S), L) : (t.consume(S), Z);
@@ -3308,69 +3308,69 @@ function YO(t, e, n) {
3308
3308
  };
3309
3309
  let u = e.tokenize.call(c, l);
3310
3310
  return e.resolveAll && i.push(e), c;
3311
- function h(Q) {
3312
- return s = vt(s, Q), _(), s[s.length - 1] !== null ? [] : (F(e, 0), c.events = Js(i, c.events, c), c.events);
3311
+ function h(B) {
3312
+ return s = vt(s, B), _(), s[s.length - 1] !== null ? [] : (F(e, 0), c.events = Js(i, c.events, c), c.events);
3313
3313
  }
3314
- function d(Q, L) {
3315
- return VO(f(Q), L);
3314
+ function d(B, L) {
3315
+ return VO(f(B), L);
3316
3316
  }
3317
- function f(Q) {
3318
- return GO(s, Q);
3317
+ function f(B) {
3318
+ return GO(s, B);
3319
3319
  }
3320
3320
  function g() {
3321
3321
  const {
3322
- _bufferIndex: Q,
3322
+ _bufferIndex: B,
3323
3323
  _index: L,
3324
3324
  line: q,
3325
3325
  column: Z,
3326
3326
  offset: D
3327
3327
  } = r;
3328
3328
  return {
3329
- _bufferIndex: Q,
3329
+ _bufferIndex: B,
3330
3330
  _index: L,
3331
3331
  line: q,
3332
3332
  column: Z,
3333
3333
  offset: D
3334
3334
  };
3335
3335
  }
3336
- function y(Q) {
3337
- a[Q.line] = Q.column, z();
3336
+ function y(B) {
3337
+ a[B.line] = B.column, z();
3338
3338
  }
3339
3339
  function _() {
3340
- let Q;
3340
+ let B;
3341
3341
  for (; r._index < s.length; ) {
3342
3342
  const L = s[r._index];
3343
3343
  if (typeof L == "string")
3344
- for (Q = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === Q && r._bufferIndex < L.length; )
3344
+ for (B = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === B && r._bufferIndex < L.length; )
3345
3345
  k(L.charCodeAt(r._bufferIndex));
3346
3346
  else
3347
3347
  k(L);
3348
3348
  }
3349
3349
  }
3350
- function k(Q) {
3351
- u = u(Q);
3350
+ function k(B) {
3351
+ u = u(B);
3352
3352
  }
3353
- function w(Q) {
3354
- K(Q) ? (r.line++, r.column = 1, r.offset += Q === -3 ? 2 : 1, z()) : Q !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
3353
+ function w(B) {
3354
+ K(B) ? (r.line++, r.column = 1, r.offset += B === -3 ? 2 : 1, z()) : B !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
3355
3355
  // strings.
3356
3356
  /** @type {string} */
3357
- s[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = Q;
3357
+ s[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = B;
3358
3358
  }
3359
- function C(Q, L) {
3359
+ function C(B, L) {
3360
3360
  const q = L || {};
3361
- return q.type = Q, q.start = g(), c.events.push(["enter", q, c]), o.push(q), q;
3361
+ return q.type = B, q.start = g(), c.events.push(["enter", q, c]), o.push(q), q;
3362
3362
  }
3363
- function M(Q) {
3363
+ function M(B) {
3364
3364
  const L = o.pop();
3365
3365
  return L.end = g(), c.events.push(["exit", L, c]), L;
3366
3366
  }
3367
- function x(Q, L) {
3368
- F(Q, L.from);
3367
+ function x(B, L) {
3368
+ F(B, L.from);
3369
3369
  }
3370
- function m(Q, L) {
3370
+ function m(B, L) {
3371
3371
  L.restore();
3372
3372
  }
3373
- function T(Q, L) {
3373
+ function T(B, L) {
3374
3374
  return q;
3375
3375
  function q(Z, D, W) {
3376
3376
  let ne, de, fe, S;
@@ -3414,24 +3414,24 @@ function YO(t, e, n) {
3414
3414
  }
3415
3415
  }
3416
3416
  function we(ge) {
3417
- return Q(fe, S), D;
3417
+ return B(fe, S), D;
3418
3418
  }
3419
3419
  function Te(ge) {
3420
3420
  return S.restore(), ++de < ne.length ? A(ne[de]) : W;
3421
3421
  }
3422
3422
  }
3423
3423
  }
3424
- function F(Q, L) {
3425
- Q.resolveAll && !i.includes(Q) && i.push(Q), Q.resolve && xt(c.events, L, c.events.length - L, Q.resolve(c.events.slice(L), c)), Q.resolveTo && (c.events = Q.resolveTo(c.events, c));
3424
+ function F(B, L) {
3425
+ B.resolveAll && !i.includes(B) && i.push(B), B.resolve && xt(c.events, L, c.events.length - L, B.resolve(c.events.slice(L), c)), B.resolveTo && (c.events = B.resolveTo(c.events, c));
3426
3426
  }
3427
3427
  function P() {
3428
- const Q = g(), L = c.previous, q = c.currentConstruct, Z = c.events.length, D = Array.from(o);
3428
+ const B = g(), L = c.previous, q = c.currentConstruct, Z = c.events.length, D = Array.from(o);
3429
3429
  return {
3430
3430
  from: Z,
3431
3431
  restore: W
3432
3432
  };
3433
3433
  function W() {
3434
- r = Q, c.previous = L, c.currentConstruct = q, c.events.length = Z, o = D, z();
3434
+ r = B, c.previous = L, c.currentConstruct = q, c.events.length = Z, o = D, z();
3435
3435
  }
3436
3436
  }
3437
3437
  function z() {
@@ -3654,7 +3654,7 @@ function rw(t) {
3654
3654
  image: l(ne),
3655
3655
  label: fe,
3656
3656
  labelText: de,
3657
- lineEnding: Q,
3657
+ lineEnding: B,
3658
3658
  link: l(W),
3659
3659
  listItem: l(),
3660
3660
  listOrdered: l(),
@@ -3674,7 +3674,7 @@ function rw(t) {
3674
3674
  Mm(e, (t || {}).mdastExtensions || []);
3675
3675
  const n = {};
3676
3676
  return r;
3677
- function r(B) {
3677
+ function r(Q) {
3678
3678
  let G = {
3679
3679
  type: "root",
3680
3680
  children: []
@@ -3690,31 +3690,31 @@ function rw(t) {
3690
3690
  data: n
3691
3691
  }, ye = [];
3692
3692
  let Se = -1;
3693
- for (; ++Se < B.length; )
3694
- if (B[Se][1].type === "listOrdered" || B[Se][1].type === "listUnordered")
3695
- if (B[Se][0] === "enter")
3693
+ for (; ++Se < Q.length; )
3694
+ if (Q[Se][1].type === "listOrdered" || Q[Se][1].type === "listUnordered")
3695
+ if (Q[Se][0] === "enter")
3696
3696
  ye.push(Se);
3697
3697
  else {
3698
3698
  const Ft = ye.pop();
3699
- Se = a(B, Ft, Se);
3699
+ Se = a(Q, Ft, Se);
3700
3700
  }
3701
- for (Se = -1; ++Se < B.length; ) {
3702
- const Ft = e[B[Se][0]];
3703
- Lm.call(Ft, B[Se][1].type) && Ft[B[Se][1].type].call(Object.assign({
3704
- sliceSerialize: B[Se][2].sliceSerialize
3705
- }, ce), B[Se][1]);
3701
+ for (Se = -1; ++Se < Q.length; ) {
3702
+ const Ft = e[Q[Se][0]];
3703
+ Lm.call(Ft, Q[Se][1].type) && Ft[Q[Se][1].type].call(Object.assign({
3704
+ sliceSerialize: Q[Se][2].sliceSerialize
3705
+ }, ce), Q[Se][1]);
3706
3706
  }
3707
3707
  if (ce.tokenStack.length > 0) {
3708
3708
  const Ft = ce.tokenStack[ce.tokenStack.length - 1];
3709
3709
  (Ft[1] || Kh).call(ce, void 0, Ft[0]);
3710
3710
  }
3711
3711
  for (G.position = {
3712
- start: An(B.length > 0 ? B[0][1].start : {
3712
+ start: An(Q.length > 0 ? Q[0][1].start : {
3713
3713
  line: 1,
3714
3714
  column: 1,
3715
3715
  offset: 0
3716
3716
  }),
3717
- end: An(B.length > 0 ? B[B.length - 2][1].end : {
3717
+ end: An(Q.length > 0 ? Q[Q.length - 2][1].end : {
3718
3718
  line: 1,
3719
3719
  column: 1,
3720
3720
  offset: 0
@@ -3723,10 +3723,10 @@ function rw(t) {
3723
3723
  G = e.transforms[Se](G) || G;
3724
3724
  return G;
3725
3725
  }
3726
- function a(B, G, ce) {
3726
+ function a(Q, G, ce) {
3727
3727
  let ye = G - 1, Se = -1, Ft = !1, Gn, hn, la, ca;
3728
3728
  for (; ++ye <= ce; ) {
3729
- const yt = B[ye];
3729
+ const yt = Q[ye];
3730
3730
  switch (yt[1].type) {
3731
3731
  case "listUnordered":
3732
3732
  case "listOrdered":
@@ -3751,13 +3751,13 @@ function rw(t) {
3751
3751
  if (Gn) {
3752
3752
  let yr = ye;
3753
3753
  for (hn = void 0; yr--; ) {
3754
- const dn = B[yr];
3754
+ const dn = Q[yr];
3755
3755
  if (dn[1].type === "lineEnding" || dn[1].type === "lineEndingBlank") {
3756
3756
  if (dn[0] === "exit") continue;
3757
- hn && (B[hn][1].type = "lineEndingBlank", Ft = !0), dn[1].type = "lineEnding", hn = yr;
3757
+ hn && (Q[hn][1].type = "lineEndingBlank", Ft = !0), dn[1].type = "lineEnding", hn = yr;
3758
3758
  } else if (!(dn[1].type === "linePrefix" || dn[1].type === "blockQuotePrefix" || dn[1].type === "blockQuotePrefixWhitespace" || dn[1].type === "blockQuoteMarker" || dn[1].type === "listItemIndent")) break;
3759
3759
  }
3760
- la && (!hn || la < hn) && (Gn._spread = !0), Gn.end = Object.assign({}, hn ? B[hn][1].start : yt[1].end), B.splice(hn || ye, 0, ["exit", Gn, yt[2]]), ye++, ce++;
3760
+ la && (!hn || la < hn) && (Gn._spread = !0), Gn.end = Object.assign({}, hn ? Q[hn][1].start : yt[1].end), Q.splice(hn || ye, 0, ["exit", Gn, yt[2]]), ye++, ce++;
3761
3761
  }
3762
3762
  if (yt[1].type === "listItemPrefix") {
3763
3763
  const yr = {
@@ -3767,16 +3767,16 @@ function rw(t) {
3767
3767
  // @ts-expect-error: we’ll add `end` in a second.
3768
3768
  end: void 0
3769
3769
  };
3770
- Gn = yr, B.splice(ye, 0, ["enter", yr, yt[2]]), ye++, ce++, la = void 0, ca = !0;
3770
+ Gn = yr, Q.splice(ye, 0, ["enter", yr, yt[2]]), ye++, ce++, la = void 0, ca = !0;
3771
3771
  }
3772
3772
  }
3773
3773
  }
3774
- return B[G][1]._spread = Ft, ce;
3774
+ return Q[G][1]._spread = Ft, ce;
3775
3775
  }
3776
- function i(B, G) {
3776
+ function i(Q, G) {
3777
3777
  return ce;
3778
3778
  function ce(ye) {
3779
- o.call(this, B(ye), ye), G && G.call(this, ye);
3779
+ o.call(this, Q(ye), ye), G && G.call(this, ye);
3780
3780
  }
3781
3781
  }
3782
3782
  function s() {
@@ -3785,28 +3785,28 @@ function rw(t) {
3785
3785
  children: []
3786
3786
  });
3787
3787
  }
3788
- function o(B, G, ce) {
3789
- this.stack[this.stack.length - 1].children.push(B), this.stack.push(B), this.tokenStack.push([G, ce || void 0]), B.position = {
3788
+ function o(Q, G, ce) {
3789
+ this.stack[this.stack.length - 1].children.push(Q), this.stack.push(Q), this.tokenStack.push([G, ce || void 0]), Q.position = {
3790
3790
  start: An(G.start),
3791
3791
  // @ts-expect-error: `end` will be patched later.
3792
3792
  end: void 0
3793
3793
  };
3794
3794
  }
3795
- function l(B) {
3795
+ function l(Q) {
3796
3796
  return G;
3797
3797
  function G(ce) {
3798
- B && B.call(this, ce), c.call(this, ce);
3798
+ Q && Q.call(this, ce), c.call(this, ce);
3799
3799
  }
3800
3800
  }
3801
- function c(B, G) {
3801
+ function c(Q, G) {
3802
3802
  const ce = this.stack.pop(), ye = this.tokenStack.pop();
3803
3803
  if (ye)
3804
- ye[0].type !== B.type && (G ? G.call(this, B, ye[0]) : (ye[1] || Kh).call(this, B, ye[0]));
3805
- else throw new Error("Cannot close `" + B.type + "` (" + va({
3806
- start: B.start,
3807
- end: B.end
3804
+ ye[0].type !== Q.type && (G ? G.call(this, Q, ye[0]) : (ye[1] || Kh).call(this, Q, ye[0]));
3805
+ else throw new Error("Cannot close `" + Q.type + "` (" + va({
3806
+ start: Q.start,
3807
+ end: Q.end
3808
3808
  }) + "): it’s not open");
3809
- ce.position.end = An(B.end);
3809
+ ce.position.end = An(Q.end);
3810
3810
  }
3811
3811
  function u() {
3812
3812
  return di(this.stack.pop());
@@ -3814,134 +3814,134 @@ function rw(t) {
3814
3814
  function h() {
3815
3815
  this.data.expectingFirstListItemValue = !0;
3816
3816
  }
3817
- function d(B) {
3817
+ function d(Q) {
3818
3818
  if (this.data.expectingFirstListItemValue) {
3819
3819
  const G = this.stack[this.stack.length - 2];
3820
- G.start = Number.parseInt(this.sliceSerialize(B), 10), this.data.expectingFirstListItemValue = void 0;
3820
+ G.start = Number.parseInt(this.sliceSerialize(Q), 10), this.data.expectingFirstListItemValue = void 0;
3821
3821
  }
3822
3822
  }
3823
3823
  function f() {
3824
- const B = this.resume(), G = this.stack[this.stack.length - 1];
3825
- G.lang = B;
3824
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3825
+ G.lang = Q;
3826
3826
  }
3827
3827
  function g() {
3828
- const B = this.resume(), G = this.stack[this.stack.length - 1];
3829
- G.meta = B;
3828
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3829
+ G.meta = Q;
3830
3830
  }
3831
3831
  function y() {
3832
3832
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
3833
3833
  }
3834
3834
  function _() {
3835
- const B = this.resume(), G = this.stack[this.stack.length - 1];
3836
- G.value = B.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
3835
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3836
+ G.value = Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
3837
3837
  }
3838
3838
  function k() {
3839
- const B = this.resume(), G = this.stack[this.stack.length - 1];
3840
- G.value = B.replace(/(\r?\n|\r)$/g, "");
3839
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3840
+ G.value = Q.replace(/(\r?\n|\r)$/g, "");
3841
3841
  }
3842
- function w(B) {
3842
+ function w(Q) {
3843
3843
  const G = this.resume(), ce = this.stack[this.stack.length - 1];
3844
- ce.label = G, ce.identifier = $t(this.sliceSerialize(B)).toLowerCase();
3844
+ ce.label = G, ce.identifier = $t(this.sliceSerialize(Q)).toLowerCase();
3845
3845
  }
3846
3846
  function C() {
3847
- const B = this.resume(), G = this.stack[this.stack.length - 1];
3848
- G.title = B;
3847
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3848
+ G.title = Q;
3849
3849
  }
3850
3850
  function M() {
3851
- const B = this.resume(), G = this.stack[this.stack.length - 1];
3852
- G.url = B;
3851
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3852
+ G.url = Q;
3853
3853
  }
3854
- function x(B) {
3854
+ function x(Q) {
3855
3855
  const G = this.stack[this.stack.length - 1];
3856
3856
  if (!G.depth) {
3857
- const ce = this.sliceSerialize(B).length;
3857
+ const ce = this.sliceSerialize(Q).length;
3858
3858
  G.depth = ce;
3859
3859
  }
3860
3860
  }
3861
3861
  function m() {
3862
3862
  this.data.setextHeadingSlurpLineEnding = !0;
3863
3863
  }
3864
- function T(B) {
3864
+ function T(Q) {
3865
3865
  const G = this.stack[this.stack.length - 1];
3866
- G.depth = this.sliceSerialize(B).codePointAt(0) === 61 ? 1 : 2;
3866
+ G.depth = this.sliceSerialize(Q).codePointAt(0) === 61 ? 1 : 2;
3867
3867
  }
3868
3868
  function F() {
3869
3869
  this.data.setextHeadingSlurpLineEnding = void 0;
3870
3870
  }
3871
- function P(B) {
3871
+ function P(Q) {
3872
3872
  const ce = this.stack[this.stack.length - 1].children;
3873
3873
  let ye = ce[ce.length - 1];
3874
3874
  (!ye || ye.type !== "text") && (ye = N_(), ye.position = {
3875
- start: An(B.start),
3875
+ start: An(Q.start),
3876
3876
  // @ts-expect-error: we’ll add `end` later.
3877
3877
  end: void 0
3878
3878
  }, ce.push(ye)), this.stack.push(ye);
3879
3879
  }
3880
- function z(B) {
3880
+ function z(Q) {
3881
3881
  const G = this.stack.pop();
3882
- G.value += this.sliceSerialize(B), G.position.end = An(B.end);
3882
+ G.value += this.sliceSerialize(Q), G.position.end = An(Q.end);
3883
3883
  }
3884
- function Q(B) {
3884
+ function B(Q) {
3885
3885
  const G = this.stack[this.stack.length - 1];
3886
3886
  if (this.data.atHardBreak) {
3887
3887
  const ce = G.children[G.children.length - 1];
3888
- ce.position.end = An(B.end), this.data.atHardBreak = void 0;
3888
+ ce.position.end = An(Q.end), this.data.atHardBreak = void 0;
3889
3889
  return;
3890
3890
  }
3891
- !this.data.setextHeadingSlurpLineEnding && e.canContainEols.includes(G.type) && (P.call(this, B), z.call(this, B));
3891
+ !this.data.setextHeadingSlurpLineEnding && e.canContainEols.includes(G.type) && (P.call(this, Q), z.call(this, Q));
3892
3892
  }
3893
3893
  function L() {
3894
3894
  this.data.atHardBreak = !0;
3895
3895
  }
3896
3896
  function q() {
3897
- const B = this.resume(), G = this.stack[this.stack.length - 1];
3898
- G.value = B;
3897
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3898
+ G.value = Q;
3899
3899
  }
3900
3900
  function Z() {
3901
- const B = this.resume(), G = this.stack[this.stack.length - 1];
3902
- G.value = B;
3901
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3902
+ G.value = Q;
3903
3903
  }
3904
3904
  function D() {
3905
- const B = this.resume(), G = this.stack[this.stack.length - 1];
3906
- G.value = B;
3905
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3906
+ G.value = Q;
3907
3907
  }
3908
3908
  function W() {
3909
- const B = this.stack[this.stack.length - 1];
3909
+ const Q = this.stack[this.stack.length - 1];
3910
3910
  if (this.data.inReference) {
3911
3911
  const G = this.data.referenceType || "shortcut";
3912
- B.type += "Reference", B.referenceType = G, delete B.url, delete B.title;
3912
+ Q.type += "Reference", Q.referenceType = G, delete Q.url, delete Q.title;
3913
3913
  } else
3914
- delete B.identifier, delete B.label;
3914
+ delete Q.identifier, delete Q.label;
3915
3915
  this.data.referenceType = void 0;
3916
3916
  }
3917
3917
  function ne() {
3918
- const B = this.stack[this.stack.length - 1];
3918
+ const Q = this.stack[this.stack.length - 1];
3919
3919
  if (this.data.inReference) {
3920
3920
  const G = this.data.referenceType || "shortcut";
3921
- B.type += "Reference", B.referenceType = G, delete B.url, delete B.title;
3921
+ Q.type += "Reference", Q.referenceType = G, delete Q.url, delete Q.title;
3922
3922
  } else
3923
- delete B.identifier, delete B.label;
3923
+ delete Q.identifier, delete Q.label;
3924
3924
  this.data.referenceType = void 0;
3925
3925
  }
3926
- function de(B) {
3927
- const G = this.sliceSerialize(B), ce = this.stack[this.stack.length - 2];
3926
+ function de(Q) {
3927
+ const G = this.sliceSerialize(Q), ce = this.stack[this.stack.length - 2];
3928
3928
  ce.label = ew(G), ce.identifier = $t(G).toLowerCase();
3929
3929
  }
3930
3930
  function fe() {
3931
- const B = this.stack[this.stack.length - 1], G = this.resume(), ce = this.stack[this.stack.length - 1];
3931
+ const Q = this.stack[this.stack.length - 1], G = this.resume(), ce = this.stack[this.stack.length - 1];
3932
3932
  if (this.data.inReference = !0, ce.type === "link") {
3933
- const ye = B.children;
3933
+ const ye = Q.children;
3934
3934
  ce.children = ye;
3935
3935
  } else
3936
3936
  ce.alt = G;
3937
3937
  }
3938
3938
  function S() {
3939
- const B = this.resume(), G = this.stack[this.stack.length - 1];
3940
- G.url = B;
3939
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3940
+ G.url = Q;
3941
3941
  }
3942
3942
  function J() {
3943
- const B = this.resume(), G = this.stack[this.stack.length - 1];
3944
- G.title = B;
3943
+ const Q = this.resume(), G = this.stack[this.stack.length - 1];
3944
+ G.title = Q;
3945
3945
  }
3946
3946
  function ue() {
3947
3947
  this.data.inReference = void 0;
@@ -3949,33 +3949,33 @@ function rw(t) {
3949
3949
  function A() {
3950
3950
  this.data.referenceType = "collapsed";
3951
3951
  }
3952
- function we(B) {
3952
+ function we(Q) {
3953
3953
  const G = this.resume(), ce = this.stack[this.stack.length - 1];
3954
- ce.label = G, ce.identifier = $t(this.sliceSerialize(B)).toLowerCase(), this.data.referenceType = "full";
3954
+ ce.label = G, ce.identifier = $t(this.sliceSerialize(Q)).toLowerCase(), this.data.referenceType = "full";
3955
3955
  }
3956
- function Te(B) {
3957
- this.data.characterReferenceType = B.type;
3956
+ function Te(Q) {
3957
+ this.data.characterReferenceType = Q.type;
3958
3958
  }
3959
- function ge(B) {
3960
- const G = this.sliceSerialize(B), ce = this.data.characterReferenceType;
3959
+ function ge(Q) {
3960
+ const G = this.sliceSerialize(Q), ce = this.data.characterReferenceType;
3961
3961
  let ye;
3962
3962
  ce ? (ye = Sm(G, ce === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : ye = Ha(G);
3963
3963
  const Se = this.stack[this.stack.length - 1];
3964
3964
  Se.value += ye;
3965
3965
  }
3966
- function Ze(B) {
3966
+ function Ze(Q) {
3967
3967
  const G = this.stack.pop();
3968
- G.position.end = An(B.end);
3968
+ G.position.end = An(Q.end);
3969
3969
  }
3970
- function ot(B) {
3971
- z.call(this, B);
3970
+ function ot(Q) {
3971
+ z.call(this, Q);
3972
3972
  const G = this.stack[this.stack.length - 1];
3973
- G.url = this.sliceSerialize(B);
3973
+ G.url = this.sliceSerialize(Q);
3974
3974
  }
3975
- function At(B) {
3976
- z.call(this, B);
3975
+ function At(Q) {
3976
+ z.call(this, Q);
3977
3977
  const G = this.stack[this.stack.length - 1];
3978
- G.url = "mailto:" + this.sliceSerialize(B);
3978
+ G.url = "mailto:" + this.sliceSerialize(Q);
3979
3979
  }
3980
3980
  function Mt() {
3981
3981
  return {
@@ -4047,19 +4047,19 @@ function rw(t) {
4047
4047
  children: []
4048
4048
  };
4049
4049
  }
4050
- function Ih(B) {
4050
+ function Ih(Q) {
4051
4051
  return {
4052
4052
  type: "list",
4053
- ordered: B.type === "listOrdered",
4053
+ ordered: Q.type === "listOrdered",
4054
4054
  start: null,
4055
- spread: B._spread,
4055
+ spread: Q._spread,
4056
4056
  children: []
4057
4057
  };
4058
4058
  }
4059
- function z_(B) {
4059
+ function z_(Q) {
4060
4060
  return {
4061
4061
  type: "listItem",
4062
- spread: B._spread,
4062
+ spread: Q._spread,
4063
4063
  checked: null,
4064
4064
  children: []
4065
4065
  };
@@ -6053,14 +6053,14 @@ function cE(t, e, n) {
6053
6053
  let a = 0, i = 0, s;
6054
6054
  return o;
6055
6055
  function o(z) {
6056
- let Q = r.events.length - 1;
6057
- for (; Q > -1; ) {
6058
- const Z = r.events[Q][1].type;
6056
+ let B = r.events.length - 1;
6057
+ for (; B > -1; ) {
6058
+ const Z = r.events[B][1].type;
6059
6059
  if (Z === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
6060
- Z === "linePrefix") Q--;
6060
+ Z === "linePrefix") B--;
6061
6061
  else break;
6062
6062
  }
6063
- const L = Q > -1 ? r.events[Q][1].type : null, q = L === "tableHead" || L === "tableRow" ? m : l;
6063
+ const L = B > -1 ? r.events[B][1].type : null, q = L === "tableHead" || L === "tableRow" ? m : l;
6064
6064
  return q === m && r.parser.lazy[r.now().line] ? n(z) : q(z);
6065
6065
  }
6066
6066
  function l(z) {
@@ -6965,34 +6965,34 @@ function pu(t, e) {
6965
6965
  const q = x === "named" ? Ha(F) : !1;
6966
6966
  q && (m = F, T = q);
6967
6967
  }
6968
- let Q = 1 + M - w, L = "";
6968
+ let B = 1 + M - w, L = "";
6969
6969
  if (!(!z && n.nonTerminated === !1)) if (!F)
6970
- x !== "named" && y(4, Q);
6970
+ x !== "named" && y(4, B);
6971
6971
  else if (x === "named") {
6972
6972
  if (z && !T)
6973
6973
  y(5, 1);
6974
- else if (m !== F && (M = C + m.length, Q = 1 + M - C, z = !1), !z) {
6974
+ else if (m !== F && (M = C + m.length, B = 1 + M - C, z = !1), !z) {
6975
6975
  const q = m ? 1 : 3;
6976
6976
  if (n.attribute) {
6977
6977
  const Z = t.charCodeAt(M);
6978
- Z === 61 ? (y(q, Q), T = "") : dd(Z) ? T = "" : y(q, Q);
6978
+ Z === 61 ? (y(q, B), T = "") : dd(Z) ? T = "" : y(q, B);
6979
6979
  } else
6980
- y(q, Q);
6980
+ y(q, B);
6981
6981
  }
6982
6982
  L = T;
6983
6983
  } else {
6984
- z || y(2, Q);
6984
+ z || y(2, B);
6985
6985
  let q = Number.parseInt(
6986
6986
  F,
6987
6987
  x === "hexadecimal" ? 16 : 10
6988
6988
  );
6989
6989
  if (jE(q))
6990
- y(7, Q), L = "�";
6990
+ y(7, B), L = "�";
6991
6991
  else if (q in hd)
6992
- y(6, Q), L = hd[q];
6992
+ y(6, B), L = hd[q];
6993
6993
  else {
6994
6994
  let Z = "";
6995
- HE(q) && y(6, Q), q > 65535 && (q -= 65536, Z += String.fromCharCode(
6995
+ HE(q) && y(6, B), q > 65535 && (q -= 65536, Z += String.fromCharCode(
6996
6996
  q >>> 10 | 55296
6997
6997
  ), q = 56320 | q & 1023), L = Z + String.fromCharCode(q);
6998
6998
  }
@@ -7639,13 +7639,13 @@ function gu(t, e, n, r, a, i, s, o, l, c, u, h, d, f, g) {
7639
7639
  return D === null || D === 34 || D === 39 || D === 60 || D === 61 || D === 62 || D === 96 ? n(D) : D === 125 || _e(D) ? (t.exit(f), t.exit(h), t.exit(i), w(D)) : (t.consume(D), P);
7640
7640
  }
7641
7641
  function z(D) {
7642
- return D === _ ? (t.enter(d), t.consume(D), t.exit(d), t.exit(u), t.exit(i), q) : (t.enter(h), Q(D));
7642
+ return D === _ ? (t.enter(d), t.consume(D), t.exit(d), t.exit(u), t.exit(i), q) : (t.enter(h), B(D));
7643
7643
  }
7644
- function Q(D) {
7645
- return D === _ ? (t.exit(h), z(D)) : D === null ? n(D) : K(D) ? g ? n(D) : kn(t, Q)(D) : (t.enter(f), t.consume(D), L);
7644
+ function B(D) {
7645
+ return D === _ ? (t.exit(h), z(D)) : D === null ? n(D) : K(D) ? g ? n(D) : kn(t, B)(D) : (t.enter(f), t.consume(D), L);
7646
7646
  }
7647
7647
  function L(D) {
7648
- return D === _ || D === null || K(D) ? (t.exit(f), Q(D)) : (t.consume(D), L);
7648
+ return D === _ || D === null || K(D) ? (t.exit(f), B(D)) : (t.consume(D), L);
7649
7649
  }
7650
7650
  function q(D) {
7651
7651
  return D === 125 || _e(D) ? w(D) : Z(D);
@@ -7771,17 +7771,17 @@ function w4(t, e, n) {
7771
7771
  function T(P) {
7772
7772
  return t.exit("directiveContainer"), e(P);
7773
7773
  }
7774
- function F(P, z, Q) {
7774
+ function F(P, z, B) {
7775
7775
  let L = 0;
7776
7776
  return oe(P, q, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
7777
7777
  function q(W) {
7778
7778
  return P.enter("directiveContainerFence"), P.enter("directiveContainerSequence"), Z(W);
7779
7779
  }
7780
7780
  function Z(W) {
7781
- return W === 58 ? (P.consume(W), L++, Z) : L < s ? Q(W) : (P.exit("directiveContainerSequence"), oe(P, D, "whitespace")(W));
7781
+ return W === 58 ? (P.consume(W), L++, Z) : L < s ? B(W) : (P.exit("directiveContainerSequence"), oe(P, D, "whitespace")(W));
7782
7782
  }
7783
7783
  function D(W) {
7784
- return W === null || K(W) ? (P.exit("directiveContainerFence"), z(W)) : Q(W);
7784
+ return W === null || K(W) ? (P.exit("directiveContainerFence"), z(W)) : B(W);
7785
7785
  }
7786
7786
  }
7787
7787
  }
@@ -8059,10 +8059,10 @@ function $4() {
8059
8059
  d.any = (m, ...T) => (d.array(m) ? m : [m]).some((P) => M(Array.prototype.some, P, T)), d.all = (m, ...T) => M(Array.prototype.every, m, T);
8060
8060
  const x = (m, T, F, P = {}) => {
8061
8061
  if (!m) {
8062
- const { multipleValues: z } = P, Q = z ? `received values of types ${[
8062
+ const { multipleValues: z } = P, B = z ? `received values of types ${[
8063
8063
  ...new Set(F.map((L) => `\`${d(L)}\``))
8064
8064
  ].join(", ")}` : `received value of type \`${d(F)}\``;
8065
- throw new TypeError(`Expected value which is \`${T}\`, ${Q}.`);
8065
+ throw new TypeError(`Expected value which is \`${T}\`, ${B}.`);
8066
8066
  }
8067
8067
  };
8068
8068
  e.assert = {
@@ -20338,7 +20338,7 @@ const jg = Om(
20338
20338
  streaming: u = !1,
20339
20339
  onStreamEnd: h
20340
20340
  }) => {
20341
- const { resolvedTheme: d, theme: f } = uo(), { messages: g } = bi(), y = r ?? (f || "auto"), _ = y === "auto" ? d : y, [k, w] = Ue(""), [C, M] = Ue([]), [x, m] = Ue(!1), [T, F] = Ue(null), P = mn(null), z = mn(u), L = qK(t, u ? 0 : s), q = wm(
20341
+ const { resolvedTheme: d, theme: f } = uo(), { messages: g } = bi(), y = r ?? (f || "auto"), _ = y === "auto" ? d : y, [k, w] = Ue(""), [C, M] = Ue([]), [x, m] = Ue(!1), [T, F] = Ue(null), P = mn(null), z = mn(u), B = u ? Math.max(50, s) : s, L = qK(t, B), q = wm(
20342
20342
  () => co(e),
20343
20343
  // eslint-disable-next-line react-hooks/exhaustive-deps
20344
20344
  [JSON.stringify(e)]
@@ -20375,7 +20375,7 @@ const jg = Om(
20375
20375
  W.innerHTML = fe;
20376
20376
  });
20377
20377
  }, [k]), ht(() => {
20378
- if (!P.current) return;
20378
+ if (!P.current || u) return;
20379
20379
  P.current.querySelectorAll(".code-block").forEach((W) => {
20380
20380
  var ue;
20381
20381
  if (W.querySelector(".code-block-actions")) return;
@@ -20396,7 +20396,7 @@ const jg = Om(
20396
20396
  }
20397
20397
  W.style.position = "relative", W.appendChild(fe);
20398
20398
  });
20399
- }, [k, g.renderer]), ht(() => {
20399
+ }, [k, g.renderer, u]), ht(() => {
20400
20400
  z.current && !u && (h == null || h()), z.current = u;
20401
20401
  }, [u, h]), ht(() => {
20402
20402
  if (u && P.current) {
@@ -29239,7 +29239,7 @@ function fte(t, e, n) {
29239
29239
  }
29240
29240
  function C(x, m, T) {
29241
29241
  let F = 1e9, P = -1e9, z = [];
29242
- function Q(Z, D, W, ne, de) {
29242
+ function B(Z, D, W, ne, de) {
29243
29243
  let fe = t.coordsAtPos(Z, Z == T.to ? -2 : 2), S = t.coordsAtPos(W, W == T.from ? 2 : -2);
29244
29244
  !fe || !S || (F = Math.min(fe.top, S.top, F), P = Math.max(fe.bottom, S.bottom, P), de == Ne.LTR ? z.push(i && D ? h : fe.left, i && ne ? d : S.right) : z.push(!i && ne ? h : S.left, !i && D ? d : fe.right));
29245
29245
  }
@@ -29252,12 +29252,12 @@ function fte(t, e, n) {
29252
29252
  let fe = de.from + ne.from, S = de.to + ne.from;
29253
29253
  if (fe >= W)
29254
29254
  break;
29255
- S > D && Q(Math.max(fe, D), x == null && fe <= L, Math.min(S, W), m == null && S >= q, de.dir);
29255
+ S > D && B(Math.max(fe, D), x == null && fe <= L, Math.min(S, W), m == null && S >= q, de.dir);
29256
29256
  }
29257
29257
  if (D = ne.to + 1, D >= W)
29258
29258
  break;
29259
29259
  }
29260
- return z.length == 0 && Q(L, x == null, q, m == null, t.textDirection), { top: F, bottom: P, horizontal: z };
29260
+ return z.length == 0 && B(L, x == null, q, m == null, t.textDirection), { top: F, bottom: P, horizontal: z };
29261
29261
  }
29262
29262
  function M(x, m) {
29263
29263
  let T = o.top + (m ? x.top : x.bottom);
@@ -30522,21 +30522,21 @@ function vte(t) {
30522
30522
  var e;
30523
30523
  let { buffer: n, nodeSet: r, maxBufferLength: a = i1, reused: i = [], minRepeatType: s = r.types.length } = t, o = Array.isArray(n) ? new Ku(n, n.length) : n, l = r.types, c = 0, u = 0;
30524
30524
  function h(x, m, T, F, P, z) {
30525
- let { id: Q, start: L, end: q, size: Z } = o, D = u, W = c;
30525
+ let { id: B, start: L, end: q, size: Z } = o, D = u, W = c;
30526
30526
  if (Z < 0)
30527
30527
  if (o.next(), Z == -1) {
30528
- let J = i[Q];
30528
+ let J = i[B];
30529
30529
  T.push(J), F.push(L - x);
30530
30530
  return;
30531
30531
  } else if (Z == -3) {
30532
- c = Q;
30532
+ c = B;
30533
30533
  return;
30534
30534
  } else if (Z == -4) {
30535
- u = Q;
30535
+ u = B;
30536
30536
  return;
30537
30537
  } else
30538
30538
  throw new RangeError(`Unrecognized record size: ${Z}`);
30539
- let ne = l[Q], de, fe, S = L - x;
30539
+ let ne = l[B], de, fe, S = L - x;
30540
30540
  if (q - L <= a && (fe = _(o.pos - m, P))) {
30541
30541
  let J = new Uint16Array(fe.size - fe.skip), ue = o.pos - fe.size, A = J.length;
30542
30542
  for (; o.pos > ue; )
@@ -30545,7 +30545,7 @@ function vte(t) {
30545
30545
  } else {
30546
30546
  let J = o.pos - Z;
30547
30547
  o.next();
30548
- let ue = [], A = [], we = Q >= s ? Q : -1, Te = 0, ge = q;
30548
+ let ue = [], A = [], we = B >= s ? B : -1, Te = 0, ge = q;
30549
30549
  for (; o.pos > J; )
30550
30550
  we >= 0 && o.id == we && o.size >= 0 ? (o.end <= ge - a && (g(ue, A, L, Te, o.end, ge, we, D, W), Te = ue.length, ge = o.end), o.next()) : z > 2500 ? d(L, J, ue, A) : h(L, J, ue, A, we, z + 1);
30551
30551
  if (we >= 0 && Te > 0 && Te < ue.length && g(ue, A, L, Te, L, ge, we, D, W), ue.reverse(), A.reverse(), we > -1 && Te > 0) {
@@ -30557,15 +30557,15 @@ function vte(t) {
30557
30557
  T.push(de), F.push(S);
30558
30558
  }
30559
30559
  function d(x, m, T, F) {
30560
- let P = [], z = 0, Q = -1;
30560
+ let P = [], z = 0, B = -1;
30561
30561
  for (; o.pos > m; ) {
30562
30562
  let { id: L, start: q, end: Z, size: D } = o;
30563
30563
  if (D > 4)
30564
30564
  o.next();
30565
30565
  else {
30566
- if (Q > -1 && q < Q)
30566
+ if (B > -1 && q < B)
30567
30567
  break;
30568
- Q < 0 && (Q = Z - a), P.push(L, q, Z), z++, o.next();
30568
+ B < 0 && (B = Z - a), P.push(L, q, Z), z++, o.next();
30569
30569
  }
30570
30570
  }
30571
30571
  if (z) {
@@ -30577,34 +30577,34 @@ function vte(t) {
30577
30577
  }
30578
30578
  function f(x, m) {
30579
30579
  return (T, F, P) => {
30580
- let z = 0, Q = T.length - 1, L, q;
30581
- if (Q >= 0 && (L = T[Q]) instanceof me) {
30582
- if (!Q && L.type == x && L.length == P)
30580
+ let z = 0, B = T.length - 1, L, q;
30581
+ if (B >= 0 && (L = T[B]) instanceof me) {
30582
+ if (!B && L.type == x && L.length == P)
30583
30583
  return L;
30584
- (q = L.prop(se.lookAhead)) && (z = F[Q] + L.length + q);
30584
+ (q = L.prop(se.lookAhead)) && (z = F[B] + L.length + q);
30585
30585
  }
30586
30586
  return y(x, T, F, P, z, m);
30587
30587
  };
30588
30588
  }
30589
- function g(x, m, T, F, P, z, Q, L, q) {
30589
+ function g(x, m, T, F, P, z, B, L, q) {
30590
30590
  let Z = [], D = [];
30591
30591
  for (; x.length > F; )
30592
30592
  Z.push(x.pop()), D.push(m.pop() + T - P);
30593
- x.push(y(r.types[Q], Z, D, z - P, L - z, q)), m.push(P - T);
30593
+ x.push(y(r.types[B], Z, D, z - P, L - z, q)), m.push(P - T);
30594
30594
  }
30595
- function y(x, m, T, F, P, z, Q) {
30595
+ function y(x, m, T, F, P, z, B) {
30596
30596
  if (z) {
30597
30597
  let L = [se.contextHash, z];
30598
- Q = Q ? [L].concat(Q) : [L];
30598
+ B = B ? [L].concat(B) : [L];
30599
30599
  }
30600
30600
  if (P > 25) {
30601
30601
  let L = [se.lookAhead, P];
30602
- Q = Q ? [L].concat(Q) : [L];
30602
+ B = B ? [L].concat(B) : [L];
30603
30603
  }
30604
- return new me(x, m, T, F, Q);
30604
+ return new me(x, m, T, F, B);
30605
30605
  }
30606
30606
  function _(x, m) {
30607
- let T = o.fork(), F = 0, P = 0, z = 0, Q = T.end - a, L = { size: 0, start: 0, skip: 0 };
30607
+ let T = o.fork(), F = 0, P = 0, z = 0, B = T.end - a, L = { size: 0, start: 0, skip: 0 };
30608
30608
  e: for (let q = T.pos - x; T.pos > q; ) {
30609
30609
  let Z = T.size;
30610
30610
  if (T.id == m && Z >= 0) {
@@ -30612,7 +30612,7 @@ function vte(t) {
30612
30612
  continue;
30613
30613
  }
30614
30614
  let D = T.pos - Z;
30615
- if (Z < 0 || D < q || T.start < Q)
30615
+ if (Z < 0 || D < q || T.start < B)
30616
30616
  break;
30617
30617
  let W = T.id >= s ? 4 : 0, ne = T.start;
30618
30618
  for (T.next(); T.pos > D; ) {
@@ -30629,16 +30629,16 @@ function vte(t) {
30629
30629
  return (m < 0 || F == x) && (L.size = F, L.start = P, L.skip = z), L.size > 4 ? L : void 0;
30630
30630
  }
30631
30631
  function k(x, m, T) {
30632
- let { id: F, start: P, end: z, size: Q } = o;
30633
- if (o.next(), Q >= 0 && F < s) {
30632
+ let { id: F, start: P, end: z, size: B } = o;
30633
+ if (o.next(), B >= 0 && F < s) {
30634
30634
  let L = T;
30635
- if (Q > 4) {
30636
- let q = o.pos - (Q - 4);
30635
+ if (B > 4) {
30636
+ let q = o.pos - (B - 4);
30637
30637
  for (; o.pos > q; )
30638
30638
  T = k(x, m, T);
30639
30639
  }
30640
30640
  m[--T] = L, m[--T] = z - x, m[--T] = P - x, m[--T] = F;
30641
- } else Q == -3 ? c = F : Q == -4 && (u = F);
30641
+ } else B == -3 ? c = F : B == -4 && (u = F);
30642
30642
  return T;
30643
30643
  }
30644
30644
  let w = [], C = [];
@@ -40066,7 +40066,7 @@ function $(t) {
40066
40066
  return new Hr(rh.define(t));
40067
40067
  }
40068
40068
  function Cn(t) {
40069
- return import("./index-D9gMp3vS.js").then((e) => e.sql({ dialect: e[t] }));
40069
+ return import("./index-Cj-Xzn5A.js").then((e) => e.sql({ dialect: e[t] }));
40070
40070
  }
40071
40071
  const ooe = [
40072
40072
  // New-style language modes
@@ -40074,7 +40074,7 @@ const ooe = [
40074
40074
  name: "C",
40075
40075
  extensions: ["c", "h", "ino"],
40076
40076
  load() {
40077
- return import("./index-CLTQC4Ws.js").then((t) => t.cpp());
40077
+ return import("./index-fbwey2ji.js").then((t) => t.cpp());
40078
40078
  }
40079
40079
  }),
40080
40080
  /* @__PURE__ */ N.of({
@@ -40082,7 +40082,7 @@ const ooe = [
40082
40082
  alias: ["cpp"],
40083
40083
  extensions: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"],
40084
40084
  load() {
40085
- return import("./index-CLTQC4Ws.js").then((t) => t.cpp());
40085
+ return import("./index-fbwey2ji.js").then((t) => t.cpp());
40086
40086
  }
40087
40087
  }),
40088
40088
  /* @__PURE__ */ N.of({
@@ -40104,7 +40104,7 @@ const ooe = [
40104
40104
  name: "Go",
40105
40105
  extensions: ["go"],
40106
40106
  load() {
40107
- return import("./index-DeUR7cIb.js").then((t) => t.go());
40107
+ return import("./index-CNUCRxVw.js").then((t) => t.go());
40108
40108
  }
40109
40109
  }),
40110
40110
  /* @__PURE__ */ N.of({
@@ -40119,7 +40119,7 @@ const ooe = [
40119
40119
  name: "Java",
40120
40120
  extensions: ["java"],
40121
40121
  load() {
40122
- return import("./index-KDcnmY_P.js").then((t) => t.java());
40122
+ return import("./index-HcWYO0RX.js").then((t) => t.java());
40123
40123
  }
40124
40124
  }),
40125
40125
  /* @__PURE__ */ N.of({
@@ -40134,7 +40134,7 @@ const ooe = [
40134
40134
  name: "Jinja",
40135
40135
  extensions: ["j2", "jinja", "jinja2"],
40136
40136
  load() {
40137
- return import("./index-B2puE7Hw.js").then((t) => t.jinja());
40137
+ return import("./index-Bk_RD5SM.js").then((t) => t.jinja());
40138
40138
  }
40139
40139
  }),
40140
40140
  /* @__PURE__ */ N.of({
@@ -40142,7 +40142,7 @@ const ooe = [
40142
40142
  alias: ["json5"],
40143
40143
  extensions: ["json", "map"],
40144
40144
  load() {
40145
- return import("./index-CNVYJm2K.js").then((t) => t.json());
40145
+ return import("./index-D9G4wJSx.js").then((t) => t.json());
40146
40146
  }
40147
40147
  }),
40148
40148
  /* @__PURE__ */ N.of({
@@ -40156,14 +40156,14 @@ const ooe = [
40156
40156
  name: "LESS",
40157
40157
  extensions: ["less"],
40158
40158
  load() {
40159
- return import("./index-CZ7QBSCF.js").then((t) => t.less());
40159
+ return import("./index-Bf12Z3js.js").then((t) => t.less());
40160
40160
  }
40161
40161
  }),
40162
40162
  /* @__PURE__ */ N.of({
40163
40163
  name: "Liquid",
40164
40164
  extensions: ["liquid"],
40165
40165
  load() {
40166
- return import("./index-DhciuuM3.js").then((t) => t.liquid());
40166
+ return import("./index-jA2-yZjt.js").then((t) => t.liquid());
40167
40167
  }
40168
40168
  }),
40169
40169
  /* @__PURE__ */ N.of({
@@ -40195,7 +40195,7 @@ const ooe = [
40195
40195
  name: "PHP",
40196
40196
  extensions: ["php", "php3", "php4", "php5", "php7", "phtml"],
40197
40197
  load() {
40198
- return import("./index-Cp1Js3UB.js").then((t) => t.php());
40198
+ return import("./index-B6GxYMoT.js").then((t) => t.php());
40199
40199
  }
40200
40200
  }),
40201
40201
  /* @__PURE__ */ N.of({
@@ -40216,28 +40216,28 @@ const ooe = [
40216
40216
  extensions: ["BUILD", "bzl", "py", "pyw"],
40217
40217
  filename: /^(BUCK|BUILD)$/,
40218
40218
  load() {
40219
- return import("./index-BXru8-QI.js").then((t) => t.python());
40219
+ return import("./index-CBENkBIw.js").then((t) => t.python());
40220
40220
  }
40221
40221
  }),
40222
40222
  /* @__PURE__ */ N.of({
40223
40223
  name: "Rust",
40224
40224
  extensions: ["rs"],
40225
40225
  load() {
40226
- return import("./index-BsJRUjqg.js").then((t) => t.rust());
40226
+ return import("./index-yhzGNRR9.js").then((t) => t.rust());
40227
40227
  }
40228
40228
  }),
40229
40229
  /* @__PURE__ */ N.of({
40230
40230
  name: "Sass",
40231
40231
  extensions: ["sass"],
40232
40232
  load() {
40233
- return import("./index-U0iS5-g_.js").then((t) => t.sass({ indented: !0 }));
40233
+ return import("./index-QdzXxJOb.js").then((t) => t.sass({ indented: !0 }));
40234
40234
  }
40235
40235
  }),
40236
40236
  /* @__PURE__ */ N.of({
40237
40237
  name: "SCSS",
40238
40238
  extensions: ["scss"],
40239
40239
  load() {
40240
- return import("./index-U0iS5-g_.js").then((t) => t.sass());
40240
+ return import("./index-QdzXxJOb.js").then((t) => t.sass());
40241
40241
  }
40242
40242
  }),
40243
40243
  /* @__PURE__ */ N.of({
@@ -40272,7 +40272,7 @@ const ooe = [
40272
40272
  name: "WebAssembly",
40273
40273
  extensions: ["wat", "wast"],
40274
40274
  load() {
40275
- return import("./index-BhuhaXHm.js").then((t) => t.wast());
40275
+ return import("./index-DwONd5rr.js").then((t) => t.wast());
40276
40276
  }
40277
40277
  }),
40278
40278
  /* @__PURE__ */ N.of({
@@ -40280,7 +40280,7 @@ const ooe = [
40280
40280
  alias: ["rss", "wsdl", "xsd"],
40281
40281
  extensions: ["xml", "xsl", "xsd", "svg"],
40282
40282
  load() {
40283
- return import("./index-D-LiE0Sn.js").then((t) => t.xml());
40283
+ return import("./index-m4nx9WDf.js").then((t) => t.xml());
40284
40284
  }
40285
40285
  }),
40286
40286
  /* @__PURE__ */ N.of({
@@ -40288,7 +40288,7 @@ const ooe = [
40288
40288
  alias: ["yml"],
40289
40289
  extensions: ["yaml", "yml"],
40290
40290
  load() {
40291
- return import("./index-Bx04875h.js").then((t) => t.yaml());
40291
+ return import("./index-CNrmNDJb.js").then((t) => t.yaml());
40292
40292
  }
40293
40293
  }),
40294
40294
  // Legacy modes ported from CodeMirror 5
@@ -41077,13 +41077,13 @@ const ooe = [
41077
41077
  name: "Vue",
41078
41078
  extensions: ["vue"],
41079
41079
  load() {
41080
- return import("./index-C5Ri_0AX.js").then((t) => t.vue());
41080
+ return import("./index-UjkeE9LM.js").then((t) => t.vue());
41081
41081
  }
41082
41082
  }),
41083
41083
  /* @__PURE__ */ N.of({
41084
41084
  name: "Angular Template",
41085
41085
  load() {
41086
- return import("./index-CZsHchmF.js").then((t) => t.angular());
41086
+ return import("./index-N_mxtTQF.js").then((t) => t.angular());
41087
41087
  }
41088
41088
  })
41089
41089
  ], mm = {
@@ -41211,7 +41211,7 @@ const hoe = {
41211
41211
  maxLength: d,
41212
41212
  ...f
41213
41213
  }) => {
41214
- const g = mn(null), y = mn(null), [_, k] = Ue(e ?? t), [w, C] = Ue("editor"), [M, x] = Ue(!1), [m, T] = Ue(r), [F, P] = Ue(!1), z = mn(null), { resolvedTheme: Q } = uo(), { messages: L } = bi(), q = mn(null), Z = mn(!1), D = uoe(o);
41214
+ const g = mn(null), y = mn(null), [_, k] = Ue(e ?? t), [w, C] = Ue("editor"), [M, x] = Ue(!1), [m, T] = Ue(r), [F, P] = Ue(!1), z = mn(null), { resolvedTheme: B } = uo(), { messages: L } = bi(), q = mn(null), Z = mn(!1), D = uoe(o);
41215
41215
  ht(() => {
41216
41216
  if (e !== void 0 && e !== _ && (k(e), y.current)) {
41217
41217
  const J = y.current.state.doc.toString();
@@ -41370,7 +41370,7 @@ const hoe = {
41370
41370
  }, [F]), ht(() => {
41371
41371
  T(r);
41372
41372
  }, [r]);
41373
- const ne = m, de = ne === "split" || ne === "editor-only" || ne === "tabs" && w === "editor", fe = ne === "split" || ne === "preview-only" || ne === "tabs" && w === "preview", S = f.theme ? f.theme === "auto" ? Q : f.theme : Q;
41373
+ const ne = m, de = ne === "split" || ne === "editor-only" || ne === "tabs" && w === "editor", fe = ne === "split" || ne === "preview-only" || ne === "tabs" && w === "preview", S = f.theme ? f.theme === "auto" ? B : f.theme : B;
41374
41374
  return /* @__PURE__ */ We(
41375
41375
  "div",
41376
41376
  {