@versini/sassysaint 8.64.0 → 8.64.2

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 (25) hide show
  1. package/dist/chunks/{AboutChangelog.ClPdTj6q.js → AboutChangelog.BBcTYMq9.js} +2 -2
  2. package/dist/chunks/{AboutEntry.CSTnhS8V.js → AboutEntry.Bt3z15H7.js} +5 -5
  3. package/dist/chunks/{App.D79DErDb.js → App.zHzyWMKP.js} +2490 -2558
  4. package/dist/chunks/{Chart.anWx1EJ1.js → Chart.HgFUiY6N.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.440b52to.js → ChatBubbleAssistant.BuUR08u9.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.Btv6do4Q.js → ChatBubbleUser.634b_maN.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.CItlSrv5.js → ChatHistoryTable.BPalaIGQ.js} +3 -3
  8. package/dist/chunks/{HistoryEntry.kMPC-6lA.js → HistoryEntry.MtjyeH3M.js} +3 -3
  9. package/dist/chunks/{ProfileEntry.Cf4tcjoj.js → ProfileEntry.C8SQncPj.js} +2 -2
  10. package/dist/chunks/{SettingsEntry.BeBSUqx6.js → SettingsEntry.BX8BwVn4.js} +2 -2
  11. package/dist/chunks/{Table.CsQklVBG.js → Table.DsPL_Dm_.js} +2 -2
  12. package/dist/chunks/{UsageEntry.DQIU0kzt.js → UsageEntry.bXqYQDZN.js} +3 -3
  13. package/dist/chunks/{UserMemoriesPanel.DSSLiVHt.js → UserMemoriesPanel.dPS5rxYJ.js} +3 -3
  14. package/dist/chunks/{index.BXUh8Hx0.js → index.BU65_15J.js} +1 -1
  15. package/dist/chunks/{index.-j_njLEh.js → index.DVFk_U1W.js} +1 -1
  16. package/dist/chunks/{index.C8_GUi7S.js → index.DrAdBw3a.js} +3 -3
  17. package/dist/chunks/{index.DqTXCFGJ.js → index.Dyy0OIeR.js} +1 -1
  18. package/dist/chunks/{index.CcY06_BE.js → index.diXefYJE.js} +1 -1
  19. package/dist/chunks/{index.sQ9g50Gu.js → index.oUO6FHVX.js} +527 -531
  20. package/dist/chunks/{index.CGFySwFw.js → index.pJLv5cOs.js} +1 -1
  21. package/dist/chunks/{useMarkdown.Bqr7iP8w.js → useMarkdown.6I3qRoVT.js} +22 -15
  22. package/dist/components/SassySaint/SassySaint.js +1 -1
  23. package/dist/index.js +4 -4
  24. package/dist/style.css +2 -2
  25. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
- import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.Bqr7iP8w.js";
2
- import { toText as Ca } from "./index.CcY06_BE.js";
1
+ import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.6I3qRoVT.js";
2
+ import { toText as Ca } from "./index.diXefYJE.js";
3
3
  const Gt = /[#.]/g;
4
4
  function qa(r, e) {
5
5
  const t = r || "", a = {};
@@ -256,7 +256,7 @@ function Wa(r) {
256
256
  const e = document.createElement("template");
257
257
  return e.innerHTML = r, e.content;
258
258
  }
259
- class u0 {
259
+ class o0 {
260
260
  // The + prefix indicates that these fields aren't writeable
261
261
  // Lexer holding the input string.
262
262
  // Start offset, zero-based inclusive.
@@ -273,10 +273,10 @@ class u0 {
273
273
  * - Otherwise, returns null.
274
274
  */
275
275
  static range(e, t) {
276
- return t ? !e || !e.loc || !t.loc || e.loc.lexer !== t.loc.lexer ? null : new u0(e.loc.lexer, e.loc.start, t.loc.end) : e && e.loc;
276
+ return t ? !e || !e.loc || !t.loc || e.loc.lexer !== t.loc.lexer ? null : new o0(e.loc.lexer, e.loc.start, t.loc.end) : e && e.loc;
277
277
  }
278
278
  }
279
- class f0 {
279
+ class m0 {
280
280
  // don't expand the token
281
281
  // used in \noexpand
282
282
  constructor(e, t) {
@@ -287,7 +287,7 @@ class f0 {
287
287
  * the whole input range enclosed by these two.
288
288
  */
289
289
  range(e, t) {
290
- return new f0(t, u0.range(this, e));
290
+ return new m0(t, o0.range(this, e));
291
291
  }
292
292
  }
293
293
  class M {
@@ -311,41 +311,38 @@ class M {
311
311
  }
312
312
  M.prototype.__proto__ = Error.prototype;
313
313
  var ja = function(e, t) {
314
- return e.indexOf(t) !== -1;
315
- }, Za = function(e, t) {
316
314
  return e === void 0 ? t : e;
317
- }, Ka = /([A-Z])/g, Ja = function(e) {
318
- return e.replace(Ka, "-$1").toLowerCase();
319
- }, Qa = {
315
+ }, Za = /([A-Z])/g, Ka = function(e) {
316
+ return e.replace(Za, "-$1").toLowerCase();
317
+ }, Ja = {
320
318
  "&": "&",
321
319
  ">": ">",
322
320
  "<": "&lt;",
323
321
  '"': "&quot;",
324
322
  "'": "&#x27;"
325
- }, _a = /[&><"']/g;
326
- function e1(r) {
327
- return String(r).replace(_a, (e) => Qa[e]);
323
+ }, Qa = /[&><"']/g;
324
+ function _a(r) {
325
+ return String(r).replace(Qa, (e) => Ja[e]);
328
326
  }
329
327
  var Br = function r(e) {
330
328
  return e.type === "ordgroup" || e.type === "color" ? e.body.length === 1 ? r(e.body[0]) : e : e.type === "font" ? r(e.body) : e;
331
- }, t1 = function(e) {
329
+ }, e1 = function(e) {
332
330
  var t = Br(e);
333
331
  return t.type === "mathord" || t.type === "textord" || t.type === "atom";
334
- }, r1 = function(e) {
332
+ }, t1 = function(e) {
335
333
  if (!e)
336
334
  throw new Error("Expected non-null, but got " + String(e));
337
335
  return e;
338
- }, a1 = function(e) {
336
+ }, r1 = function(e) {
339
337
  var t = /^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);
340
338
  return t ? t[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1]) ? null : t[1].toLowerCase() : "_relative";
341
- }, q = {
342
- contains: ja,
343
- deflt: Za,
344
- escape: e1,
345
- hyphenate: Ja,
339
+ }, G = {
340
+ deflt: ja,
341
+ escape: _a,
342
+ hyphenate: Ka,
346
343
  getBaseElem: Br,
347
- isCharacterBox: t1,
348
- protocolFromUrl: a1
344
+ isCharacterBox: e1,
345
+ protocolFromUrl: r1
349
346
  }, ze = {
350
347
  displayMode: {
351
348
  type: "boolean",
@@ -433,7 +430,7 @@ var Br = function r(e) {
433
430
  cli: !1
434
431
  }
435
432
  };
436
- function n1(r) {
433
+ function a1(r) {
437
434
  if (r.default)
438
435
  return r.default;
439
436
  var e = r.type, t = Array.isArray(e) ? e[0] : e;
@@ -456,7 +453,7 @@ class pt {
456
453
  for (var t in ze)
457
454
  if (ze.hasOwnProperty(t)) {
458
455
  var a = ze[t];
459
- this[t] = e[t] !== void 0 ? a.processor ? a.processor(e[t]) : e[t] : n1(a);
456
+ this[t] = e[t] !== void 0 ? a.processor ? a.processor(e[t]) : e[t] : a1(a);
460
457
  }
461
458
  }
462
459
  /**
@@ -499,7 +496,7 @@ class pt {
499
496
  */
500
497
  isTrusted(e) {
501
498
  if (e.url && !e.protocol) {
502
- var t = q.protocolFromUrl(e.url);
499
+ var t = G.protocolFromUrl(e.url);
503
500
  if (t == null)
504
501
  return !1;
505
502
  e.protocol = t;
@@ -516,40 +513,40 @@ class L0 {
516
513
  * Get the style of a superscript given a base in the current style.
517
514
  */
518
515
  sup() {
519
- return y0[i1[this.id]];
516
+ return y0[n1[this.id]];
520
517
  }
521
518
  /**
522
519
  * Get the style of a subscript given a base in the current style.
523
520
  */
524
521
  sub() {
525
- return y0[s1[this.id]];
522
+ return y0[i1[this.id]];
526
523
  }
527
524
  /**
528
525
  * Get the style of a fraction numerator given the fraction in the current
529
526
  * style.
530
527
  */
531
528
  fracNum() {
532
- return y0[l1[this.id]];
529
+ return y0[s1[this.id]];
533
530
  }
534
531
  /**
535
532
  * Get the style of a fraction denominator given the fraction in the current
536
533
  * style.
537
534
  */
538
535
  fracDen() {
539
- return y0[o1[this.id]];
536
+ return y0[l1[this.id]];
540
537
  }
541
538
  /**
542
539
  * Get the cramped version of a style (in particular, cramping a cramped style
543
540
  * doesn't change the style).
544
541
  */
545
542
  cramp() {
546
- return y0[u1[this.id]];
543
+ return y0[o1[this.id]];
547
544
  }
548
545
  /**
549
546
  * Get a text or display version of this style.
550
547
  */
551
548
  text() {
552
- return y0[h1[this.id]];
549
+ return y0[u1[this.id]];
553
550
  }
554
551
  /**
555
552
  * Return true if this style is tightly spaced (scriptstyle/scriptscriptstyle)
@@ -558,7 +555,7 @@ class L0 {
558
555
  return this.size >= 2;
559
556
  }
560
557
  }
561
- var vt = 0, Te = 1, ee = 2, B0 = 3, le = 4, d0 = 5, te = 6, n0 = 7, y0 = [new L0(vt, 0, !1), new L0(Te, 0, !0), new L0(ee, 1, !1), new L0(B0, 1, !0), new L0(le, 2, !1), new L0(d0, 2, !0), new L0(te, 3, !1), new L0(n0, 3, !0)], i1 = [le, d0, le, d0, te, n0, te, n0], s1 = [d0, d0, d0, d0, n0, n0, n0, n0], l1 = [ee, B0, le, d0, te, n0, te, n0], o1 = [B0, B0, d0, d0, n0, n0, n0, n0], u1 = [Te, Te, B0, B0, d0, d0, n0, n0], h1 = [vt, Te, ee, B0, ee, B0, ee, B0], R = {
558
+ var vt = 0, Te = 1, ee = 2, B0 = 3, le = 4, f0 = 5, te = 6, n0 = 7, y0 = [new L0(vt, 0, !1), new L0(Te, 0, !0), new L0(ee, 1, !1), new L0(B0, 1, !0), new L0(le, 2, !1), new L0(f0, 2, !0), new L0(te, 3, !1), new L0(n0, 3, !0)], n1 = [le, f0, le, f0, te, n0, te, n0], i1 = [f0, f0, f0, f0, n0, n0, n0, n0], s1 = [ee, B0, le, f0, te, n0, te, n0], l1 = [B0, B0, f0, f0, n0, n0, n0, n0], o1 = [Te, Te, B0, B0, f0, f0, n0, n0], u1 = [vt, Te, ee, B0, ee, B0, ee, B0], E = {
562
559
  DISPLAY: y0[vt],
563
560
  TEXT: y0[ee],
564
561
  SCRIPT: y0[le],
@@ -622,7 +619,7 @@ var vt = 0, Te = 1, ee = 2, B0 = 3, le = 4, d0 = 5, te = 6, n0 = 7, y0 = [new L0
622
619
  name: "hangul",
623
620
  blocks: [[44032, 55215]]
624
621
  }];
625
- function m1(r) {
622
+ function h1(r) {
626
623
  for (var e = 0; e < st.length; e++)
627
624
  for (var t = st[e], a = 0; a < t.blocks.length; a++) {
628
625
  var n = t.blocks[a];
@@ -639,7 +636,7 @@ function Nr(r) {
639
636
  return !0;
640
637
  return !1;
641
638
  }
642
- var _0 = 80, c1 = function(e, t) {
639
+ var _0 = 80, m1 = function(e, t) {
643
640
  return "M95," + (622 + e + t) + `
644
641
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
645
642
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
@@ -652,7 +649,7 @@ H400000v` + (40 + e) + `H845.2724
652
649
  s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
653
650
  c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
654
651
  M` + (834 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z";
655
- }, d1 = function(e, t) {
652
+ }, c1 = function(e, t) {
656
653
  return "M263," + (601 + e + t) + `c0.7,0,18,39.7,52,119
657
654
  c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
658
655
  c340,-704.7,510.7,-1060.3,512,-1067
@@ -664,7 +661,7 @@ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
664
661
  s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
665
662
  c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
666
663
  M` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z";
667
- }, f1 = function(e, t) {
664
+ }, d1 = function(e, t) {
668
665
  return "M983 " + (10 + e + t) + `
669
666
  l` + e / 3.13 + " -" + e + `
670
667
  c4,-6.7,10,-10,18,-10 H400000v` + (40 + e) + `
@@ -675,7 +672,7 @@ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
675
672
  c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
676
673
  c53.7,-170.3,84.5,-266.8,92.5,-289.5z
677
674
  M` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "h-400000z";
678
- }, p1 = function(e, t) {
675
+ }, f1 = function(e, t) {
679
676
  return "M424," + (2398 + e + t) + `
680
677
  c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
681
678
  c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
@@ -687,7 +684,7 @@ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
687
684
  c-2,6,-10,9,-24,9
688
685
  c-8,0,-12,-0.7,-12,-2z M` + (1001 + e) + " " + t + `
689
686
  h400000v` + (40 + e) + "h-400000z";
690
- }, v1 = function(e, t) {
687
+ }, p1 = function(e, t) {
691
688
  return "M473," + (2713 + e + t) + `
692
689
  c339.3,-1799.3,509.3,-2700,510,-2702 l` + e / 5.298 + " -" + e + `
693
690
  c3.3,-7.3,9.3,-11,18,-11 H400000v` + (40 + e) + `H1017.7
@@ -696,40 +693,40 @@ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1
696
693
  c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
697
694
  s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
698
695
  606zM` + (1001 + e) + " " + t + "h400000v" + (40 + e) + "H1017.7z";
699
- }, g1 = function(e) {
696
+ }, v1 = function(e) {
700
697
  var t = e / 2;
701
698
  return "M400000 " + e + " H0 L" + t + " 0 l65 45 L145 " + (e - 80) + " H400000z";
702
- }, b1 = function(e, t, a) {
699
+ }, g1 = function(e, t, a) {
703
700
  var n = a - 54 - t - e;
704
701
  return "M702 " + (e + t) + "H400000" + (40 + e) + `
705
702
  H742v` + n + `l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
706
703
  h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
707
704
  c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
708
705
  219 661 l218 661zM702 ` + t + "H400000v" + (40 + e) + "H742z";
709
- }, y1 = function(e, t, a) {
706
+ }, b1 = function(e, t, a) {
710
707
  t = 1e3 * t;
711
708
  var n = "";
712
709
  switch (e) {
713
710
  case "sqrtMain":
714
- n = c1(t, _0);
711
+ n = m1(t, _0);
715
712
  break;
716
713
  case "sqrtSize1":
717
- n = d1(t, _0);
714
+ n = c1(t, _0);
718
715
  break;
719
716
  case "sqrtSize2":
720
- n = f1(t, _0);
717
+ n = d1(t, _0);
721
718
  break;
722
719
  case "sqrtSize3":
723
- n = p1(t, _0);
720
+ n = f1(t, _0);
724
721
  break;
725
722
  case "sqrtSize4":
726
- n = v1(t, _0);
723
+ n = p1(t, _0);
727
724
  break;
728
725
  case "sqrtTall":
729
- n = b1(t, _0, a);
726
+ n = g1(t, _0, a);
730
727
  }
731
728
  return n;
732
- }, x1 = function(e, t) {
729
+ }, y1 = function(e, t) {
733
730
  switch (e) {
734
731
  case "⎜":
735
732
  return "M291 0 H417 V" + t + " H291z M291 0 H417 V" + t + " H291z";
@@ -1004,7 +1001,7 @@ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
1004
1001
  -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
1005
1002
  c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
1006
1003
  M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
1007
- }, w1 = function(e, t) {
1004
+ }, x1 = function(e, t) {
1008
1005
  switch (e) {
1009
1006
  case "lbrack":
1010
1007
  return "M403 1759 V84 H666 V0 H319 V1759 v" + t + ` v1759 h347 v-84
@@ -1059,13 +1056,12 @@ l0,-` + (t + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
1059
1056
  }
1060
1057
  };
1061
1058
  class ue {
1062
- // HtmlDomNode
1063
1059
  // Never used; needed for satisfying interface.
1064
1060
  constructor(e) {
1065
1061
  this.children = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.children = e, this.classes = [], this.height = 0, this.depth = 0, this.maxFontSize = 0, this.style = {};
1066
1062
  }
1067
1063
  hasClass(e) {
1068
- return q.contains(this.classes, e);
1064
+ return this.classes.includes(e);
1069
1065
  }
1070
1066
  /** Convert the fragment into a node. */
1071
1067
  toNode() {
@@ -3318,7 +3314,7 @@ var x0 = {
3318
3314
  ю: "m",
3319
3315
  я: "r"
3320
3316
  };
3321
- function k1(r, e) {
3317
+ function w1(r, e) {
3322
3318
  x0[r] = e;
3323
3319
  }
3324
3320
  function gt(r, e, t) {
@@ -3335,7 +3331,7 @@ function gt(r, e, t) {
3335
3331
  };
3336
3332
  }
3337
3333
  var $e = {};
3338
- function S1(r) {
3334
+ function k1(r) {
3339
3335
  var e;
3340
3336
  if (r >= 5 ? e = 0 : r >= 3 ? e = 1 : e = 2, !$e[e]) {
3341
3337
  var t = $e[e] = {
@@ -3346,7 +3342,7 @@ function S1(r) {
3346
3342
  }
3347
3343
  return $e[e];
3348
3344
  }
3349
- var M1 = [
3345
+ var S1 = [
3350
3346
  // Each element contains [textsize, scriptsize, scriptscriptsize].
3351
3347
  // The size mappings are taken from TeX with \normalsize=10pt.
3352
3348
  [1, 1, 1],
@@ -3386,7 +3382,7 @@ var M1 = [
3386
3382
  2.074,
3387
3383
  2.488
3388
3384
  ], Wt = function(e, t) {
3389
- return t.size < 2 ? e : M1[e - 1][t.size - 1];
3385
+ return t.size < 2 ? e : S1[e - 1][t.size - 1];
3390
3386
  };
3391
3387
  class T0 {
3392
3388
  // A font family applies to a group of fonts (i.e. SansSerif), while a font
@@ -3554,7 +3550,7 @@ class T0 {
3554
3550
  * Return the font metrics for this size.
3555
3551
  */
3556
3552
  fontMetrics() {
3557
- return this._fontMetrics || (this._fontMetrics = S1(this.size)), this._fontMetrics;
3553
+ return this._fontMetrics || (this._fontMetrics = k1(this.size)), this._fontMetrics;
3558
3554
  }
3559
3555
  /**
3560
3556
  * Gets the CSS color of the current options object
@@ -3592,12 +3588,12 @@ var lt = {
3592
3588
  // https://tex.stackexchange.com/a/41371
3593
3589
  px: 803 / 800
3594
3590
  // \pdfpxdimen defaults to 1 bp in pdfTeX and LuaTeX
3595
- }, z1 = {
3591
+ }, M1 = {
3596
3592
  ex: !0,
3597
3593
  em: !0,
3598
3594
  mu: !0
3599
3595
  }, Dr = function(e) {
3600
- return typeof e != "string" && (e = e.unit), e in lt || e in z1 || e === "ex";
3596
+ return typeof e != "string" && (e = e.unit), e in lt || e in M1 || e === "ex";
3601
3597
  }, K = function(e, t) {
3602
3598
  var a;
3603
3599
  if (e.unit in lt)
@@ -3635,18 +3631,18 @@ var lt = {
3635
3631
  for (var s = 0; s < this.children.length; s++)
3636
3632
  t.appendChild(this.children[s].toNode());
3637
3633
  return t;
3638
- }, A1 = /[\s"'>/=\x00-\x1f]/, Er = function(e) {
3634
+ }, z1 = /[\s"'>/=\x00-\x1f]/, Er = function(e) {
3639
3635
  var t = "<" + e;
3640
- this.classes.length && (t += ' class="' + q.escape(P0(this.classes)) + '"');
3636
+ this.classes.length && (t += ' class="' + G.escape(P0(this.classes)) + '"');
3641
3637
  var a = "";
3642
3638
  for (var n in this.style)
3643
- this.style.hasOwnProperty(n) && (a += q.hyphenate(n) + ":" + this.style[n] + ";");
3644
- a && (t += ' style="' + q.escape(a) + '"');
3639
+ this.style.hasOwnProperty(n) && (a += G.hyphenate(n) + ":" + this.style[n] + ";");
3640
+ a && (t += ' style="' + G.escape(a) + '"');
3645
3641
  for (var s in this.attributes)
3646
3642
  if (this.attributes.hasOwnProperty(s)) {
3647
- if (A1.test(s))
3643
+ if (z1.test(s))
3648
3644
  throw new M("Invalid attribute name '" + s + "'");
3649
- t += " " + s + '="' + q.escape(this.attributes[s]) + '"';
3645
+ t += " " + s + '="' + G.escape(this.attributes[s]) + '"';
3650
3646
  }
3651
3647
  t += ">";
3652
3648
  for (var o = 0; o < this.children.length; o++)
@@ -3666,7 +3662,7 @@ class he {
3666
3662
  this.attributes[e] = t;
3667
3663
  }
3668
3664
  hasClass(e) {
3669
- return q.contains(this.classes, e);
3665
+ return this.classes.includes(e);
3670
3666
  }
3671
3667
  toNode() {
3672
3668
  return qr.call(this, "span");
@@ -3683,7 +3679,7 @@ class bt {
3683
3679
  this.attributes[e] = t;
3684
3680
  }
3685
3681
  hasClass(e) {
3686
- return q.contains(this.classes, e);
3682
+ return this.classes.includes(e);
3687
3683
  }
3688
3684
  toNode() {
3689
3685
  return qr.call(this, "a");
@@ -3692,12 +3688,12 @@ class bt {
3692
3688
  return Er.call(this, "a");
3693
3689
  }
3694
3690
  }
3695
- class T1 {
3691
+ class A1 {
3696
3692
  constructor(e, t, a) {
3697
3693
  this.src = void 0, this.alt = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.alt = t, this.src = e, this.classes = ["mord"], this.style = a;
3698
3694
  }
3699
3695
  hasClass(e) {
3700
- return q.contains(this.classes, e);
3696
+ return this.classes.includes(e);
3701
3697
  }
3702
3698
  toNode() {
3703
3699
  var e = document.createElement("img");
@@ -3707,13 +3703,13 @@ class T1 {
3707
3703
  return e;
3708
3704
  }
3709
3705
  toMarkup() {
3710
- var e = '<img src="' + q.escape(this.src) + '"' + (' alt="' + q.escape(this.alt) + '"'), t = "";
3706
+ var e = '<img src="' + G.escape(this.src) + '"' + (' alt="' + G.escape(this.alt) + '"'), t = "";
3711
3707
  for (var a in this.style)
3712
- this.style.hasOwnProperty(a) && (t += q.hyphenate(a) + ":" + this.style[a] + ";");
3713
- return t && (e += ' style="' + q.escape(t) + '"'), e += "'/>", e;
3708
+ this.style.hasOwnProperty(a) && (t += G.hyphenate(a) + ":" + this.style[a] + ";");
3709
+ return t && (e += ' style="' + G.escape(t) + '"'), e += "'/>", e;
3714
3710
  }
3715
3711
  }
3716
- var B1 = {
3712
+ var T1 = {
3717
3713
  î: "ı̂",
3718
3714
  ï: "ı̈",
3719
3715
  í: "ı́",
@@ -3723,11 +3719,11 @@ var B1 = {
3723
3719
  class p0 {
3724
3720
  constructor(e, t, a, n, s, o, h, m) {
3725
3721
  this.text = void 0, this.height = void 0, this.depth = void 0, this.italic = void 0, this.skew = void 0, this.width = void 0, this.maxFontSize = void 0, this.classes = void 0, this.style = void 0, this.text = e, this.height = t || 0, this.depth = a || 0, this.italic = n || 0, this.skew = s || 0, this.width = o || 0, this.classes = h || [], this.style = m || {}, this.maxFontSize = 0;
3726
- var p = m1(this.text.charCodeAt(0));
3727
- p && this.classes.push(p + "_fallback"), /[îïíì]/.test(this.text) && (this.text = B1[this.text]);
3722
+ var p = h1(this.text.charCodeAt(0));
3723
+ p && this.classes.push(p + "_fallback"), /[îïíì]/.test(this.text) && (this.text = T1[this.text]);
3728
3724
  }
3729
3725
  hasClass(e) {
3730
- return q.contains(this.classes, e);
3726
+ return this.classes.includes(e);
3731
3727
  }
3732
3728
  /**
3733
3729
  * Creates a text node or span from a symbol node. Note that a span is only
@@ -3745,13 +3741,13 @@ class p0 {
3745
3741
  */
3746
3742
  toMarkup() {
3747
3743
  var e = !1, t = "<span";
3748
- this.classes.length && (e = !0, t += ' class="', t += q.escape(P0(this.classes)), t += '"');
3744
+ this.classes.length && (e = !0, t += ' class="', t += G.escape(P0(this.classes)), t += '"');
3749
3745
  var a = "";
3750
3746
  this.italic > 0 && (a += "margin-right:" + this.italic + "em;");
3751
3747
  for (var n in this.style)
3752
- this.style.hasOwnProperty(n) && (a += q.hyphenate(n) + ":" + this.style[n] + ";");
3753
- a && (e = !0, t += ' style="' + q.escape(a) + '"');
3754
- var s = q.escape(this.text);
3748
+ this.style.hasOwnProperty(n) && (a += G.hyphenate(n) + ":" + this.style[n] + ";");
3749
+ a && (e = !0, t += ' style="' + G.escape(a) + '"');
3750
+ var s = G.escape(this.text);
3755
3751
  return e ? (t += ">", t += s, t += "</span>", t) : s;
3756
3752
  }
3757
3753
  }
@@ -3770,7 +3766,7 @@ class D0 {
3770
3766
  toMarkup() {
3771
3767
  var e = '<svg xmlns="http://www.w3.org/2000/svg"';
3772
3768
  for (var t in this.attributes)
3773
- Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="' + q.escape(this.attributes[t]) + '"');
3769
+ Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="' + G.escape(this.attributes[t]) + '"');
3774
3770
  e += ">";
3775
3771
  for (var a = 0; a < this.children.length; a++)
3776
3772
  e += this.children[a].toMarkup();
@@ -3786,7 +3782,7 @@ class G0 {
3786
3782
  return this.alternate ? t.setAttribute("d", this.alternate) : t.setAttribute("d", $t[this.pathName]), t;
3787
3783
  }
3788
3784
  toMarkup() {
3789
- return this.alternate ? '<path d="' + q.escape(this.alternate) + '"/>' : '<path d="' + q.escape($t[this.pathName]) + '"/>';
3785
+ return this.alternate ? '<path d="' + G.escape(this.alternate) + '"/>' : '<path d="' + G.escape($t[this.pathName]) + '"/>';
3790
3786
  }
3791
3787
  }
3792
3788
  class ot {
@@ -3802,7 +3798,7 @@ class ot {
3802
3798
  toMarkup() {
3803
3799
  var e = "<line";
3804
3800
  for (var t in this.attributes)
3805
- Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="' + q.escape(this.attributes[t]) + '"');
3801
+ Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="' + G.escape(this.attributes[t]) + '"');
3806
3802
  return e += "/>", e;
3807
3803
  }
3808
3804
  }
@@ -3811,19 +3807,19 @@ function jt(r) {
3811
3807
  return r;
3812
3808
  throw new Error("Expected symbolNode but got " + String(r) + ".");
3813
3809
  }
3814
- function N1(r) {
3810
+ function B1(r) {
3815
3811
  if (r instanceof he)
3816
3812
  return r;
3817
3813
  throw new Error("Expected span<HtmlDomNode> but got " + String(r) + ".");
3818
3814
  }
3819
- var D1 = {
3815
+ var N1 = {
3820
3816
  bin: 1,
3821
3817
  close: 1,
3822
3818
  inner: 1,
3823
3819
  open: 1,
3824
3820
  punct: 1,
3825
3821
  rel: 1
3826
- }, C1 = {
3822
+ }, D1 = {
3827
3823
  "accent-token": 1,
3828
3824
  mathord: 1,
3829
3825
  "op-token": 1,
@@ -3840,7 +3836,7 @@ function i(r, e, t, a, n, s) {
3840
3836
  replace: a
3841
3837
  }, s && a && (Y[r][a] = Y[r][n]);
3842
3838
  }
3843
- var l = "math", k = "text", u = "main", d = "ams", W = "accent-token", N = "bin", i0 = "close", re = "inner", E = "mathord", _ = "op-token", m0 = "open", qe = "punct", f = "rel", E0 = "spacing", v = "textord";
3839
+ var l = "math", k = "text", u = "main", d = "ams", W = "accent-token", N = "bin", i0 = "close", re = "inner", q = "mathord", _ = "op-token", c0 = "open", qe = "punct", f = "rel", E0 = "spacing", v = "textord";
3844
3840
  i(l, u, f, "≡", "\\equiv", !0);
3845
3841
  i(l, u, f, "≺", "\\prec", !0);
3846
3842
  i(l, u, f, "≻", "\\succ", !0);
@@ -3898,9 +3894,9 @@ i(l, u, v, "‡", "\\ddag");
3898
3894
  i(k, u, v, "‡", "\\ddag");
3899
3895
  i(k, u, v, "‡", "\\textdaggerdbl");
3900
3896
  i(l, u, i0, "⎱", "\\rmoustache", !0);
3901
- i(l, u, m0, "⎰", "\\lmoustache", !0);
3897
+ i(l, u, c0, "⎰", "\\lmoustache", !0);
3902
3898
  i(l, u, i0, "⟯", "\\rgroup", !0);
3903
- i(l, u, m0, "⟮", "\\lgroup", !0);
3899
+ i(l, u, c0, "⟮", "\\lgroup", !0);
3904
3900
  i(l, u, N, "∓", "\\mp", !0);
3905
3901
  i(l, u, N, "⊖", "\\ominus", !0);
3906
3902
  i(l, u, N, "⊎", "\\uplus", !0);
@@ -4030,9 +4026,9 @@ i(l, d, v, "ℸ", "\\daleth", !0);
4030
4026
  i(l, d, v, "ℷ", "\\gimel", !0);
4031
4027
  i(l, d, v, "ϝ", "\\digamma", !0);
4032
4028
  i(l, d, v, "ϰ", "\\varkappa");
4033
- i(l, d, m0, "┌", "\\@ulcorner", !0);
4029
+ i(l, d, c0, "┌", "\\@ulcorner", !0);
4034
4030
  i(l, d, i0, "┐", "\\@urcorner", !0);
4035
- i(l, d, m0, "└", "\\@llcorner", !0);
4031
+ i(l, d, c0, "└", "\\@llcorner", !0);
4036
4032
  i(l, d, i0, "┘", "\\@lrcorner", !0);
4037
4033
  i(l, d, f, "≦", "\\leqq", !0);
4038
4034
  i(l, d, f, "⩽", "\\leqslant", !0);
@@ -4205,36 +4201,36 @@ i(l, u, v, "⊤", "\\top");
4205
4201
  i(l, u, v, "⊥", "\\bot");
4206
4202
  i(l, u, v, "∅", "\\emptyset");
4207
4203
  i(l, d, v, "∅", "\\varnothing");
4208
- i(l, u, E, "α", "\\alpha", !0);
4209
- i(l, u, E, "β", "\\beta", !0);
4210
- i(l, u, E, "γ", "\\gamma", !0);
4211
- i(l, u, E, "δ", "\\delta", !0);
4212
- i(l, u, E, "ϵ", "\\epsilon", !0);
4213
- i(l, u, E, "ζ", "\\zeta", !0);
4214
- i(l, u, E, "η", "\\eta", !0);
4215
- i(l, u, E, "θ", "\\theta", !0);
4216
- i(l, u, E, "ι", "\\iota", !0);
4217
- i(l, u, E, "κ", "\\kappa", !0);
4218
- i(l, u, E, "λ", "\\lambda", !0);
4219
- i(l, u, E, "μ", "\\mu", !0);
4220
- i(l, u, E, "ν", "\\nu", !0);
4221
- i(l, u, E, "ξ", "\\xi", !0);
4222
- i(l, u, E, "ο", "\\omicron", !0);
4223
- i(l, u, E, "π", "\\pi", !0);
4224
- i(l, u, E, "ρ", "\\rho", !0);
4225
- i(l, u, E, "σ", "\\sigma", !0);
4226
- i(l, u, E, "τ", "\\tau", !0);
4227
- i(l, u, E, "υ", "\\upsilon", !0);
4228
- i(l, u, E, "ϕ", "\\phi", !0);
4229
- i(l, u, E, "χ", "\\chi", !0);
4230
- i(l, u, E, "ψ", "\\psi", !0);
4231
- i(l, u, E, "ω", "\\omega", !0);
4232
- i(l, u, E, "ε", "\\varepsilon", !0);
4233
- i(l, u, E, "ϑ", "\\vartheta", !0);
4234
- i(l, u, E, "ϖ", "\\varpi", !0);
4235
- i(l, u, E, "ϱ", "\\varrho", !0);
4236
- i(l, u, E, "ς", "\\varsigma", !0);
4237
- i(l, u, E, "φ", "\\varphi", !0);
4204
+ i(l, u, q, "α", "\\alpha", !0);
4205
+ i(l, u, q, "β", "\\beta", !0);
4206
+ i(l, u, q, "γ", "\\gamma", !0);
4207
+ i(l, u, q, "δ", "\\delta", !0);
4208
+ i(l, u, q, "ϵ", "\\epsilon", !0);
4209
+ i(l, u, q, "ζ", "\\zeta", !0);
4210
+ i(l, u, q, "η", "\\eta", !0);
4211
+ i(l, u, q, "θ", "\\theta", !0);
4212
+ i(l, u, q, "ι", "\\iota", !0);
4213
+ i(l, u, q, "κ", "\\kappa", !0);
4214
+ i(l, u, q, "λ", "\\lambda", !0);
4215
+ i(l, u, q, "μ", "\\mu", !0);
4216
+ i(l, u, q, "ν", "\\nu", !0);
4217
+ i(l, u, q, "ξ", "\\xi", !0);
4218
+ i(l, u, q, "ο", "\\omicron", !0);
4219
+ i(l, u, q, "π", "\\pi", !0);
4220
+ i(l, u, q, "ρ", "\\rho", !0);
4221
+ i(l, u, q, "σ", "\\sigma", !0);
4222
+ i(l, u, q, "τ", "\\tau", !0);
4223
+ i(l, u, q, "υ", "\\upsilon", !0);
4224
+ i(l, u, q, "ϕ", "\\phi", !0);
4225
+ i(l, u, q, "χ", "\\chi", !0);
4226
+ i(l, u, q, "ψ", "\\psi", !0);
4227
+ i(l, u, q, "ω", "\\omega", !0);
4228
+ i(l, u, q, "ε", "\\varepsilon", !0);
4229
+ i(l, u, q, "ϑ", "\\vartheta", !0);
4230
+ i(l, u, q, "ϖ", "\\varpi", !0);
4231
+ i(l, u, q, "ϱ", "\\varrho", !0);
4232
+ i(l, u, q, "ς", "\\varsigma", !0);
4233
+ i(l, u, q, "φ", "\\varphi", !0);
4238
4234
  i(l, u, N, "∗", "*", !0);
4239
4235
  i(l, u, N, "+", "+");
4240
4236
  i(l, u, N, "−", "-", !0);
@@ -4251,9 +4247,9 @@ i(l, u, N, "∨", "\\lor");
4251
4247
  i(l, u, N, "∧", "\\wedge", !0);
4252
4248
  i(l, u, N, "∨", "\\vee", !0);
4253
4249
  i(l, u, v, "√", "\\surd");
4254
- i(l, u, m0, "⟨", "\\langle", !0);
4255
- i(l, u, m0, "∣", "\\lvert");
4256
- i(l, u, m0, "∥", "\\lVert");
4250
+ i(l, u, c0, "⟨", "\\langle", !0);
4251
+ i(l, u, c0, "∣", "\\lvert");
4252
+ i(l, u, c0, "∥", "\\lVert");
4257
4253
  i(l, u, i0, "?", "?");
4258
4254
  i(l, u, i0, "!", "!");
4259
4255
  i(l, u, i0, "⟩", "\\rangle", !0);
@@ -4311,25 +4307,25 @@ i(l, u, N, "⋄", "\\diamond");
4311
4307
  i(l, u, N, "⋆", "\\star");
4312
4308
  i(l, u, N, "◃", "\\triangleleft");
4313
4309
  i(l, u, N, "▹", "\\triangleright");
4314
- i(l, u, m0, "{", "\\{");
4310
+ i(l, u, c0, "{", "\\{");
4315
4311
  i(k, u, v, "{", "\\{");
4316
4312
  i(k, u, v, "{", "\\textbraceleft");
4317
4313
  i(l, u, i0, "}", "\\}");
4318
4314
  i(k, u, v, "}", "\\}");
4319
4315
  i(k, u, v, "}", "\\textbraceright");
4320
- i(l, u, m0, "{", "\\lbrace");
4316
+ i(l, u, c0, "{", "\\lbrace");
4321
4317
  i(l, u, i0, "}", "\\rbrace");
4322
- i(l, u, m0, "[", "\\lbrack", !0);
4318
+ i(l, u, c0, "[", "\\lbrack", !0);
4323
4319
  i(k, u, v, "[", "\\lbrack", !0);
4324
4320
  i(l, u, i0, "]", "\\rbrack", !0);
4325
4321
  i(k, u, v, "]", "\\rbrack", !0);
4326
- i(l, u, m0, "(", "\\lparen", !0);
4322
+ i(l, u, c0, "(", "\\lparen", !0);
4327
4323
  i(l, u, i0, ")", "\\rparen", !0);
4328
4324
  i(k, u, v, "<", "\\textless", !0);
4329
4325
  i(k, u, v, ">", "\\textgreater", !0);
4330
- i(l, u, m0, "⌊", "\\lfloor", !0);
4326
+ i(l, u, c0, "⌊", "\\lfloor", !0);
4331
4327
  i(l, u, i0, "⌋", "\\rfloor", !0);
4332
- i(l, u, m0, "⌈", "\\lceil", !0);
4328
+ i(l, u, c0, "⌈", "\\lceil", !0);
4333
4329
  i(l, u, i0, "⌉", "\\rceil", !0);
4334
4330
  i(l, u, v, "\\", "\\backslash");
4335
4331
  i(l, u, v, "∣", "|");
@@ -4386,8 +4382,8 @@ i(l, u, W, "^", "\\hat");
4386
4382
  i(l, u, W, "⃗", "\\vec");
4387
4383
  i(l, u, W, "˙", "\\dot");
4388
4384
  i(l, u, W, "˚", "\\mathring");
4389
- i(l, u, E, "", "\\@imath");
4390
- i(l, u, E, "", "\\@jmath");
4385
+ i(l, u, q, "", "\\@imath");
4386
+ i(l, u, q, "", "\\@jmath");
4391
4387
  i(l, u, v, "ı", "ı");
4392
4388
  i(l, u, v, "ȷ", "ȷ");
4393
4389
  i(k, u, v, "ı", "\\i", !0);
@@ -4452,7 +4448,7 @@ for (var Ye = 0; Ye < Jt.length; Ye++) {
4452
4448
  var Be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
4453
4449
  for (var We = 0; We < Be.length; We++) {
4454
4450
  var ge = Be.charAt(We);
4455
- i(l, u, E, ge, ge), i(k, u, v, ge, ge);
4451
+ i(l, u, q, ge, ge), i(k, u, v, ge, ge);
4456
4452
  }
4457
4453
  i(l, d, v, "C", "ℂ");
4458
4454
  i(k, d, v, "C", "ℂ");
@@ -4468,24 +4464,24 @@ i(l, d, v, "R", "ℝ");
4468
4464
  i(k, d, v, "R", "ℝ");
4469
4465
  i(l, d, v, "Z", "ℤ");
4470
4466
  i(k, d, v, "Z", "ℤ");
4471
- i(l, u, E, "h", "ℎ");
4472
- i(k, u, E, "h", "ℎ");
4473
- var O = "";
4467
+ i(l, u, q, "h", "ℎ");
4468
+ i(k, u, q, "h", "ℎ");
4469
+ var I = "";
4474
4470
  for (var a0 = 0; a0 < Be.length; a0++) {
4475
4471
  var J = Be.charAt(a0);
4476
- O = String.fromCharCode(55349, 56320 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56372 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56424 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56580 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56684 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56736 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56788 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56840 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56944 + a0), i(l, u, E, J, O), i(k, u, v, J, O), a0 < 26 && (O = String.fromCharCode(55349, 56632 + a0), i(l, u, E, J, O), i(k, u, v, J, O), O = String.fromCharCode(55349, 56476 + a0), i(l, u, E, J, O), i(k, u, v, J, O));
4472
+ I = String.fromCharCode(55349, 56320 + a0), i(l, u, q, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56372 + a0), i(l, u, q, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56424 + a0), i(l, u, q, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56580 + a0), i(l, u, q, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56684 + a0), i(l, u, q, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56736 + a0), i(l, u, q, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56788 + a0), i(l, u, q, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56840 + a0), i(l, u, q, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56944 + a0), i(l, u, q, J, I), i(k, u, v, J, I), a0 < 26 && (I = String.fromCharCode(55349, 56632 + a0), i(l, u, q, J, I), i(k, u, v, J, I), I = String.fromCharCode(55349, 56476 + a0), i(l, u, q, J, I), i(k, u, v, J, I));
4477
4473
  }
4478
- O = "𝕜";
4479
- i(l, u, E, "k", O);
4480
- i(k, u, v, "k", O);
4474
+ I = "𝕜";
4475
+ i(l, u, q, "k", I);
4476
+ i(k, u, v, "k", I);
4481
4477
  for (var X0 = 0; X0 < 10; X0++) {
4482
4478
  var F0 = X0.toString();
4483
- O = String.fromCharCode(55349, 57294 + X0), i(l, u, E, F0, O), i(k, u, v, F0, O), O = String.fromCharCode(55349, 57314 + X0), i(l, u, E, F0, O), i(k, u, v, F0, O), O = String.fromCharCode(55349, 57324 + X0), i(l, u, E, F0, O), i(k, u, v, F0, O), O = String.fromCharCode(55349, 57334 + X0), i(l, u, E, F0, O), i(k, u, v, F0, O);
4479
+ I = String.fromCharCode(55349, 57294 + X0), i(l, u, q, F0, I), i(k, u, v, F0, I), I = String.fromCharCode(55349, 57314 + X0), i(l, u, q, F0, I), i(k, u, v, F0, I), I = String.fromCharCode(55349, 57324 + X0), i(l, u, q, F0, I), i(k, u, v, F0, I), I = String.fromCharCode(55349, 57334 + X0), i(l, u, q, F0, I), i(k, u, v, F0, I);
4484
4480
  }
4485
4481
  var ut = "ÐÞþ";
4486
4482
  for (var je = 0; je < ut.length; je++) {
4487
4483
  var be = ut.charAt(je);
4488
- i(l, u, E, be, be), i(k, u, v, be, be);
4484
+ i(l, u, q, be, be), i(k, u, v, be, be);
4489
4485
  }
4490
4486
  var ye = [
4491
4487
  ["mathbf", "textbf", "Main-Bold"],
@@ -4554,7 +4550,7 @@ var ye = [
4554
4550
  // 0-9 bold sans-serif
4555
4551
  ["mathtt", "texttt", "Typewriter-Regular"]
4556
4552
  // 0-9 monospace
4557
- ], q1 = function(e, t) {
4553
+ ], C1 = function(e, t) {
4558
4554
  var a = e.charCodeAt(0), n = e.charCodeAt(1), s = (a - 55296) * 1024 + (n - 56320) + 65536, o = t === "math" ? 0 : 1;
4559
4555
  if (119808 <= s && s < 120484) {
4560
4556
  var h = Math.floor((s - 119808) / 26);
@@ -4589,9 +4585,9 @@ var ye = [
4589
4585
  g && (m.style.color = g);
4590
4586
  }
4591
4587
  return m;
4592
- }, E1 = function(e, t, a, n) {
4588
+ }, q1 = function(e, t, a, n) {
4593
4589
  return n === void 0 && (n = []), a.font === "boldsymbol" && Ee(e, "Main-Bold", t).metrics ? b0(e, "Main-Bold", t, a, n.concat(["mathbf"])) : e === "\\" || Y[t][e].font === "main" ? b0(e, "Main-Regular", t, a, n) : b0(e, "AMS-Regular", t, a, n.concat(["amsrm"]));
4594
- }, R1 = function(e, t, a, n, s) {
4590
+ }, E1 = function(e, t, a, n, s) {
4595
4591
  return s !== "textord" && Ee(e, "Math-BoldItalic", t).metrics ? {
4596
4592
  fontName: "Math-BoldItalic",
4597
4593
  fontClass: "boldsymbol"
@@ -4599,14 +4595,14 @@ var ye = [
4599
4595
  fontName: "Main-Bold",
4600
4596
  fontClass: "mathbf"
4601
4597
  };
4602
- }, I1 = function(e, t, a) {
4598
+ }, R1 = function(e, t, a) {
4603
4599
  var n = e.mode, s = e.text, o = ["mord"], h = n === "math" || n === "text" && t.font, m = h ? t.font : t.fontFamily, p = "", g = "";
4604
- if (s.charCodeAt(0) === 55349 && ([p, g] = q1(s, n)), p.length > 0)
4600
+ if (s.charCodeAt(0) === 55349 && ([p, g] = C1(s, n)), p.length > 0)
4605
4601
  return b0(s, p, n, t, o.concat(g));
4606
4602
  if (m) {
4607
4603
  var b, x;
4608
4604
  if (m === "boldsymbol") {
4609
- var w = R1(s, n, t, o, a);
4605
+ var w = E1(s, n, t, o, a);
4610
4606
  b = w.fontName, x = [w.fontClass];
4611
4607
  } else h ? (b = Lr[m].fontName, x = [m]) : (b = xe(m, t.fontWeight, t.fontShape), x = [m, t.fontWeight, t.fontShape]);
4612
4608
  if (Ee(s, b, n).metrics)
@@ -4625,15 +4621,15 @@ var ye = [
4625
4621
  var C = xe("amsrm", t.fontWeight, t.fontShape);
4626
4622
  return b0(s, C, n, t, o.concat("amsrm", t.fontWeight, t.fontShape));
4627
4623
  } else if (D === "main" || !D) {
4628
- var I = xe("textrm", t.fontWeight, t.fontShape);
4629
- return b0(s, I, n, t, o.concat(t.fontWeight, t.fontShape));
4624
+ var R = xe("textrm", t.fontWeight, t.fontShape);
4625
+ return b0(s, R, n, t, o.concat(t.fontWeight, t.fontShape));
4630
4626
  } else {
4631
- var L = xe(D, t.fontWeight, t.fontShape);
4632
- return b0(s, L, n, t, o.concat(L, t.fontWeight, t.fontShape));
4627
+ var O = xe(D, t.fontWeight, t.fontShape);
4628
+ return b0(s, O, n, t, o.concat(O, t.fontWeight, t.fontShape));
4633
4629
  }
4634
4630
  } else
4635
4631
  throw new Error("unexpected type: " + a + " in makeOrd");
4636
- }, O1 = (r, e) => {
4632
+ }, I1 = (r, e) => {
4637
4633
  if (P0(r.classes) !== P0(e.classes) || r.skew !== e.skew || r.maxFontSize !== e.maxFontSize)
4638
4634
  return !1;
4639
4635
  if (r.classes.length === 1) {
@@ -4648,10 +4644,10 @@ var ye = [
4648
4644
  if (e.style.hasOwnProperty(n) && r.style[n] !== e.style[n])
4649
4645
  return !1;
4650
4646
  return !0;
4651
- }, L1 = (r) => {
4647
+ }, O1 = (r) => {
4652
4648
  for (var e = 0; e < r.length - 1; e++) {
4653
4649
  var t = r[e], a = r[e + 1];
4654
- t instanceof p0 && a instanceof p0 && O1(t, a) && (t.text += a.text, t.height = Math.max(t.height, a.height), t.depth = Math.max(t.depth, a.depth), t.italic = a.italic, r.splice(e + 1, 1), e--);
4650
+ t instanceof p0 && a instanceof p0 && I1(t, a) && (t.text += a.text, t.height = Math.max(t.height, a.height), t.depth = Math.max(t.depth, a.depth), t.italic = a.italic, r.splice(e + 1, 1), e--);
4655
4651
  }
4656
4652
  return r;
4657
4653
  }, yt = function(e) {
@@ -4663,18 +4659,18 @@ var ye = [
4663
4659
  }, l0 = function(e, t, a, n) {
4664
4660
  var s = new he(e, t, a, n);
4665
4661
  return yt(s), s;
4666
- }, Ir = (r, e, t, a) => new he(r, e, t, a), F1 = function(e, t, a) {
4662
+ }, Ir = (r, e, t, a) => new he(r, e, t, a), L1 = function(e, t, a) {
4667
4663
  var n = l0([e], [], t);
4668
4664
  return n.height = Math.max(a || t.fontMetrics().defaultRuleThickness, t.minRuleThickness), n.style.borderBottomWidth = A(n.height), n.maxFontSize = 1, n;
4669
- }, H1 = function(e, t, a, n) {
4665
+ }, F1 = function(e, t, a, n) {
4670
4666
  var s = new bt(e, t, a, n);
4671
4667
  return yt(s), s;
4672
4668
  }, Or = function(e) {
4673
4669
  var t = new ue(e);
4674
4670
  return yt(t), t;
4675
- }, P1 = function(e, t) {
4671
+ }, H1 = function(e, t) {
4676
4672
  return e instanceof ue ? l0([], [e], t) : e;
4677
- }, G1 = function(e) {
4673
+ }, P1 = function(e) {
4678
4674
  if (e.positionType === "individualShift") {
4679
4675
  for (var t = e.children, a = [t[0]], n = -t[0].shift - t[0].elem.depth, s = n, o = 1; o < t.length; o++) {
4680
4676
  var h = -t[o].shift - s - t[o].elem.depth, m = h - (t[o - 1].elem.height + t[o - 1].elem.depth);
@@ -4712,11 +4708,11 @@ var ye = [
4712
4708
  children: e.children,
4713
4709
  depth: p
4714
4710
  };
4715
- }, V1 = function(e, t) {
4711
+ }, G1 = function(e, t) {
4716
4712
  for (var {
4717
4713
  children: a,
4718
4714
  depth: n
4719
- } = G1(e), s = 0, o = 0; o < a.length; o++) {
4715
+ } = P1(e), s = 0, o = 0; o < a.length; o++) {
4720
4716
  var h = a[o];
4721
4717
  if (h.type === "elem") {
4722
4718
  var m = h.elem;
@@ -4731,24 +4727,24 @@ var ye = [
4731
4727
  if (T.type === "kern")
4732
4728
  w += T.size;
4733
4729
  else {
4734
- var D = T.elem, C = T.wrapperClasses || [], I = T.wrapperStyle || {}, L = l0(C, [p, D], void 0, I);
4735
- L.style.top = A(-s - w - D.depth), T.marginLeft && (L.style.marginLeft = T.marginLeft), T.marginRight && (L.style.marginRight = T.marginRight), g.push(L), w += D.height + D.depth;
4730
+ var D = T.elem, C = T.wrapperClasses || [], R = T.wrapperStyle || {}, O = l0(C, [p, D], void 0, R);
4731
+ O.style.top = A(-s - w - D.depth), T.marginLeft && (O.style.marginLeft = T.marginLeft), T.marginRight && (O.style.marginRight = T.marginRight), g.push(O), w += D.height + D.depth;
4736
4732
  }
4737
4733
  b = Math.min(b, w), x = Math.max(x, w);
4738
4734
  }
4739
4735
  var V = l0(["vlist"], g);
4740
4736
  V.style.height = A(x);
4741
- var H;
4737
+ var F;
4742
4738
  if (b < 0) {
4743
- var U = l0([], []), G = l0(["vlist"], [U]);
4744
- G.style.height = A(-b);
4739
+ var U = l0([], []), P = l0(["vlist"], [U]);
4740
+ P.style.height = A(-b);
4745
4741
  var j = l0(["vlist-s"], [new p0("​")]);
4746
- H = [l0(["vlist-r"], [V, j]), l0(["vlist-r"], [G])];
4742
+ F = [l0(["vlist-r"], [V, j]), l0(["vlist-r"], [P])];
4747
4743
  } else
4748
- H = [l0(["vlist-r"], [V])];
4749
- var $ = l0(["vlist-t"], H);
4750
- return H.length === 2 && $.classes.push("vlist-t2"), $.height = x, $.depth = -b, $;
4751
- }, U1 = (r, e) => {
4744
+ F = [l0(["vlist-r"], [V])];
4745
+ var $ = l0(["vlist-t"], F);
4746
+ return F.length === 2 && $.classes.push("vlist-t2"), $.height = x, $.depth = -b, $;
4747
+ }, V1 = (r, e) => {
4752
4748
  var t = l0(["mspace"], [], e), a = K(r, e);
4753
4749
  return t.style.marginRight = A(a), t;
4754
4750
  }, xe = function(e, t, a) {
@@ -4834,7 +4830,7 @@ var ye = [
4834
4830
  oiintSize2: ["oiintSize2", 1.472, 0.659],
4835
4831
  oiiintSize1: ["oiiintSize1", 1.304, 0.499],
4836
4832
  oiiintSize2: ["oiiintSize2", 1.98, 0.659]
4837
- }, $1 = function(e, t) {
4833
+ }, U1 = function(e, t) {
4838
4834
  var [a, n, s] = Fr[e], o = new G0(a), h = new D0([o], {
4839
4835
  width: A(n),
4840
4836
  height: A(s),
@@ -4847,19 +4843,19 @@ var ye = [
4847
4843
  }, y = {
4848
4844
  fontMap: Lr,
4849
4845
  makeSymbol: b0,
4850
- mathsym: E1,
4846
+ mathsym: q1,
4851
4847
  makeSpan: l0,
4852
4848
  makeSvgSpan: Ir,
4853
- makeLineSpan: F1,
4854
- makeAnchor: H1,
4849
+ makeLineSpan: L1,
4850
+ makeAnchor: F1,
4855
4851
  makeFragment: Or,
4856
- wrapFragment: P1,
4857
- makeVList: V1,
4858
- makeOrd: I1,
4859
- makeGlue: U1,
4860
- staticSvg: $1,
4852
+ wrapFragment: H1,
4853
+ makeVList: G1,
4854
+ makeOrd: R1,
4855
+ makeGlue: V1,
4856
+ staticSvg: U1,
4861
4857
  svgData: Fr,
4862
- tryCombineChars: L1
4858
+ tryCombineChars: O1
4863
4859
  }, Z = {
4864
4860
  number: 3,
4865
4861
  unit: "mu"
@@ -4869,7 +4865,7 @@ var ye = [
4869
4865
  }, A0 = {
4870
4866
  number: 5,
4871
4867
  unit: "mu"
4872
- }, X1 = {
4868
+ }, $1 = {
4873
4869
  mord: {
4874
4870
  mop: Z,
4875
4871
  mbin: Y0,
@@ -4919,7 +4915,7 @@ var ye = [
4919
4915
  mpunct: Z,
4920
4916
  minner: Z
4921
4917
  }
4922
- }, Y1 = {
4918
+ }, X1 = {
4923
4919
  mord: {
4924
4920
  mop: Z
4925
4921
  },
@@ -4984,12 +4980,12 @@ var Ce = function(e) {
4984
4980
  return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e;
4985
4981
  }, Q = function(e) {
4986
4982
  return e.type === "ordgroup" ? e.body : [e];
4987
- }, C0 = y.makeSpan, W1 = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], j1 = ["rightmost", "mrel", "mclose", "mpunct"], Z1 = {
4988
- display: R.DISPLAY,
4989
- text: R.TEXT,
4990
- script: R.SCRIPT,
4991
- scriptscript: R.SCRIPTSCRIPT
4992
- }, K1 = {
4983
+ }, C0 = y.makeSpan, Y1 = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], W1 = ["rightmost", "mrel", "mclose", "mpunct"], j1 = {
4984
+ display: E.DISPLAY,
4985
+ text: E.TEXT,
4986
+ script: E.SCRIPT,
4987
+ scriptscript: E.SCRIPTSCRIPT
4988
+ }, Z1 = {
4993
4989
  mord: "mord",
4994
4990
  mop: "mop",
4995
4991
  mbin: "mbin",
@@ -5001,7 +4997,7 @@ var Ce = function(e) {
5001
4997
  }, t0 = function(e, t, a, n) {
5002
4998
  n === void 0 && (n = [null, null]);
5003
4999
  for (var s = [], o = 0; o < e.length; o++) {
5004
- var h = P(e[o], t);
5000
+ var h = H(e[o], t);
5005
5001
  if (h instanceof ue) {
5006
5002
  var m = h.children;
5007
5003
  s.push(...m);
@@ -5013,18 +5009,18 @@ var Ce = function(e) {
5013
5009
  var p = t;
5014
5010
  if (e.length === 1) {
5015
5011
  var g = e[0];
5016
- g.type === "sizing" ? p = t.havingSize(g.size) : g.type === "styling" && (p = t.havingStyle(Z1[g.style]));
5012
+ g.type === "sizing" ? p = t.havingSize(g.size) : g.type === "styling" && (p = t.havingStyle(j1[g.style]));
5017
5013
  }
5018
5014
  var b = C0([n[0] || "leftmost"], [], t), x = C0([n[1] || "rightmost"], [], t), w = a === "root";
5019
5015
  return er(s, (z, T) => {
5020
5016
  var D = T.classes[0], C = z.classes[0];
5021
- D === "mbin" && q.contains(j1, C) ? T.classes[0] = "mord" : C === "mbin" && q.contains(W1, D) && (z.classes[0] = "mord");
5017
+ D === "mbin" && W1.includes(C) ? T.classes[0] = "mord" : C === "mbin" && Y1.includes(D) && (z.classes[0] = "mord");
5022
5018
  }, {
5023
5019
  node: b
5024
5020
  }, x, w), er(s, (z, T) => {
5025
- var D = ht(T), C = ht(z), I = D && C ? z.hasClass("mtight") ? Y1[D][C] : X1[D][C] : null;
5026
- if (I)
5027
- return y.makeGlue(I, p);
5021
+ var D = ht(T), C = ht(z), R = D && C ? z.hasClass("mtight") ? X1[D][C] : $1[D][C] : null;
5022
+ if (R)
5023
+ return y.makeGlue(R, p);
5028
5024
  }, {
5029
5025
  node: b
5030
5026
  }, x, w), s;
@@ -5048,7 +5044,7 @@ var Ce = function(e) {
5048
5044
  n && e.pop();
5049
5045
  }, Pr = function(e) {
5050
5046
  return e instanceof ue || e instanceof bt || e instanceof he && e.hasClass("enclosing") ? e : null;
5051
- }, J1 = function r(e, t) {
5047
+ }, K1 = function r(e, t) {
5052
5048
  var a = Pr(e);
5053
5049
  if (a) {
5054
5050
  var n = a.children;
@@ -5061,11 +5057,11 @@ var Ce = function(e) {
5061
5057
  }
5062
5058
  return e;
5063
5059
  }, ht = function(e, t) {
5064
- return e ? (t && (e = J1(e, t)), K1[e.classes[0]] || null) : null;
5060
+ return e ? (t && (e = K1(e, t)), Z1[e.classes[0]] || null) : null;
5065
5061
  }, oe = function(e, t) {
5066
5062
  var a = ["nulldelimiter"].concat(e.baseSizingClasses());
5067
5063
  return C0(t.concat(a));
5068
- }, P = function(e, t, a) {
5064
+ }, H = function(e, t, a) {
5069
5065
  if (!e)
5070
5066
  return C0();
5071
5067
  if (Ne[e.type]) {
@@ -5147,8 +5143,8 @@ class h0 {
5147
5143
  toMarkup() {
5148
5144
  var e = "<" + this.type;
5149
5145
  for (var t in this.attributes)
5150
- Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="', e += q.escape(this.attributes[t]), e += '"');
5151
- this.classes.length > 0 && (e += ' class ="' + q.escape(P0(this.classes)) + '"'), e += ">";
5146
+ Object.prototype.hasOwnProperty.call(this.attributes, t) && (e += " " + t + '="', e += G.escape(this.attributes[t]), e += '"');
5147
+ this.classes.length > 0 && (e += ' class ="' + G.escape(P0(this.classes)) + '"'), e += ">";
5152
5148
  for (var a = 0; a < this.children.length; a++)
5153
5149
  e += this.children[a].toMarkup();
5154
5150
  return e += "</" + this.type + ">", e;
@@ -5175,7 +5171,7 @@ class w0 {
5175
5171
  * (representing the text itself).
5176
5172
  */
5177
5173
  toMarkup() {
5178
- return q.escape(this.toText());
5174
+ return G.escape(this.toText());
5179
5175
  }
5180
5176
  /**
5181
5177
  * Converts the text node into a string
@@ -5185,7 +5181,7 @@ class w0 {
5185
5181
  return this.text;
5186
5182
  }
5187
5183
  }
5188
- class Q1 {
5184
+ class J1 {
5189
5185
  /**
5190
5186
  * Create a Space node with width given in CSS ems.
5191
5187
  */
@@ -5217,7 +5213,7 @@ class Q1 {
5217
5213
  var S = {
5218
5214
  MathNode: h0,
5219
5215
  TextNode: w0,
5220
- SpaceNode: Q1,
5216
+ SpaceNode: J1,
5221
5217
  newDocumentFragment: Gr
5222
5218
  }, v0 = function(e, t, a) {
5223
5219
  return Y[t][e] && Y[t][e].replace && e.charCodeAt(0) !== 55349 && !(Rr.hasOwnProperty(e) && a && (a.fontFamily && a.fontFamily.slice(4, 6) === "tt" || a.font && a.font.slice(4, 6) === "tt")) && (e = Y[t][e].replace), new S.TextNode(e);
@@ -5257,7 +5253,7 @@ var S = {
5257
5253
  if (a === "mathtt")
5258
5254
  return "monospace";
5259
5255
  var s = e.text;
5260
- if (q.contains(["\\imath", "\\jmath"], s))
5256
+ if (["\\imath", "\\jmath"].includes(s))
5261
5257
  return null;
5262
5258
  Y[n][s] && Y[n][s].replace && (s = Y[n][s].replace);
5263
5259
  var o = y.fontMap[a].fontName;
@@ -5275,7 +5271,7 @@ function Ze(r) {
5275
5271
  } else
5276
5272
  return !1;
5277
5273
  }
5278
- var o0 = function(e, t, a) {
5274
+ var u0 = function(e, t, a) {
5279
5275
  if (e.length === 1) {
5280
5276
  var n = X(e[0], t);
5281
5277
  return a && n instanceof h0 && n.type === "mo" && (n.setAttribute("lspace", "0em"), n.setAttribute("rspace", "0em")), [n];
@@ -5309,7 +5305,7 @@ var o0 = function(e, t, a) {
5309
5305
  }
5310
5306
  return s;
5311
5307
  }, V0 = function(e, t, a) {
5312
- return xt(o0(e, t, a));
5308
+ return xt(u0(e, t, a));
5313
5309
  }, X = function(e, t) {
5314
5310
  if (!e)
5315
5311
  return new S.MathNode("mrow");
@@ -5320,8 +5316,8 @@ var o0 = function(e, t, a) {
5320
5316
  throw new M("Got group of unknown type: '" + e.type + "'");
5321
5317
  };
5322
5318
  function tr(r, e, t, a, n) {
5323
- var s = o0(r, t), o;
5324
- s.length === 1 && s[0] instanceof h0 && q.contains(["mrow", "mtable"], s[0].type) ? o = s[0] : o = new S.MathNode("mrow", s);
5319
+ var s = u0(r, t), o;
5320
+ s.length === 1 && s[0] instanceof h0 && ["mrow", "mtable"].includes(s[0].type) ? o = s[0] : o = new S.MathNode("mrow", s);
5325
5321
  var h = new S.MathNode("annotation", [new S.TextNode(e)]);
5326
5322
  h.setAttribute("encoding", "application/x-tex");
5327
5323
  var m = new S.MathNode("semantics", [o, h]), p = new S.MathNode("math", [m]);
@@ -5331,7 +5327,7 @@ function tr(r, e, t, a, n) {
5331
5327
  }
5332
5328
  var Vr = function(e) {
5333
5329
  return new T0({
5334
- style: e.displayMode ? R.DISPLAY : R.TEXT,
5330
+ style: e.displayMode ? E.DISPLAY : E.TEXT,
5335
5331
  maxSize: e.maxSize,
5336
5332
  minRuleThickness: e.minRuleThickness
5337
5333
  });
@@ -5341,7 +5337,7 @@ var Vr = function(e) {
5341
5337
  t.leqno && a.push("leqno"), t.fleqn && a.push("fleqn"), e = y.makeSpan(a, [e]);
5342
5338
  }
5343
5339
  return e;
5344
- }, _1 = function(e, t, a) {
5340
+ }, Q1 = function(e, t, a) {
5345
5341
  var n = Vr(a), s;
5346
5342
  if (a.output === "mathml")
5347
5343
  return tr(e, t, n, a.displayMode, !0);
@@ -5353,10 +5349,10 @@ var Vr = function(e) {
5353
5349
  s = y.makeSpan(["katex"], [h, m]);
5354
5350
  }
5355
5351
  return Ur(s, a);
5356
- }, en = function(e, t, a) {
5352
+ }, _1 = function(e, t, a) {
5357
5353
  var n = Vr(a), s = mt(e, n), o = y.makeSpan(["katex"], [s]);
5358
5354
  return Ur(o, a);
5359
- }, tn = {
5355
+ }, en = {
5360
5356
  widehat: "^",
5361
5357
  widecheck: "ˇ",
5362
5358
  widetilde: "~",
@@ -5401,10 +5397,10 @@ var Vr = function(e) {
5401
5397
  "\\cdrightarrow": "→",
5402
5398
  "\\cdleftarrow": "←",
5403
5399
  "\\cdlongequal": "="
5404
- }, rn = function(e) {
5405
- var t = new S.MathNode("mo", [new S.TextNode(tn[e.replace(/^\\/, "")])]);
5400
+ }, tn = function(e) {
5401
+ var t = new S.MathNode("mo", [new S.TextNode(en[e.replace(/^\\/, "")])]);
5406
5402
  return t.setAttribute("stretchy", "true"), t;
5407
- }, an = {
5403
+ }, rn = {
5408
5404
  // path(s), minWidth, height, align
5409
5405
  overrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"],
5410
5406
  overleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"],
@@ -5451,13 +5447,13 @@ var Vr = function(e) {
5451
5447
  xrightleftarrows: [["baraboveleftarrow", "rightarrowabovebar"], 1.75, 901],
5452
5448
  xrightequilibrium: [["baraboveshortleftharpoon", "rightharpoonaboveshortbar"], 1.75, 716],
5453
5449
  xleftequilibrium: [["shortbaraboveleftharpoon", "shortrightharpoonabovebar"], 1.75, 716]
5454
- }, nn = function(e) {
5450
+ }, an = function(e) {
5455
5451
  return e.type === "ordgroup" ? e.body.length : 1;
5456
- }, sn = function(e, t) {
5452
+ }, nn = function(e, t) {
5457
5453
  function a() {
5458
5454
  var h = 4e5, m = e.label.slice(1);
5459
- if (q.contains(["widehat", "widecheck", "widetilde", "utilde"], m)) {
5460
- var p = e, g = nn(p.base), b, x, w;
5455
+ if (["widehat", "widecheck", "widetilde", "utilde"].includes(m)) {
5456
+ var p = e, g = an(p.base), b, x, w;
5461
5457
  if (g > 5)
5462
5458
  m === "widehat" || m === "widecheck" ? (b = 420, h = 2364, w = 0.42, x = m + "4") : (b = 312, h = 2340, w = 0.34, x = "tilde4");
5463
5459
  else {
@@ -5476,25 +5472,25 @@ var Vr = function(e) {
5476
5472
  height: w
5477
5473
  };
5478
5474
  } else {
5479
- var C = [], I = an[m], [L, V, H] = I, U = H / 1e3, G = L.length, j, $;
5480
- if (G === 1) {
5481
- var z0 = I[3];
5475
+ var C = [], R = rn[m], [O, V, F] = R, U = F / 1e3, P = O.length, j, $;
5476
+ if (P === 1) {
5477
+ var z0 = R[3];
5482
5478
  j = ["hide-tail"], $ = [z0];
5483
- } else if (G === 2)
5479
+ } else if (P === 2)
5484
5480
  j = ["halfarrow-left", "halfarrow-right"], $ = ["xMinYMin", "xMaxYMin"];
5485
- else if (G === 3)
5481
+ else if (P === 3)
5486
5482
  j = ["brace-left", "brace-center", "brace-right"], $ = ["xMinYMin", "xMidYMin", "xMaxYMin"];
5487
5483
  else
5488
5484
  throw new Error(`Correct katexImagesData or update code here to support
5489
- ` + G + " children.");
5490
- for (var r0 = 0; r0 < G; r0++) {
5491
- var e0 = new G0(L[r0]), $0 = new D0([e0], {
5485
+ ` + P + " children.");
5486
+ for (var r0 = 0; r0 < P; r0++) {
5487
+ var e0 = new G0(O[r0]), $0 = new D0([e0], {
5492
5488
  width: "400em",
5493
5489
  height: A(U),
5494
- viewBox: "0 0 " + h + " " + H,
5490
+ viewBox: "0 0 " + h + " " + F,
5495
5491
  preserveAspectRatio: $[r0] + " slice"
5496
5492
  }), s0 = y.makeSvgSpan([j[r0]], [$0], t);
5497
- if (G === 1)
5493
+ if (P === 1)
5498
5494
  return {
5499
5495
  span: s0,
5500
5496
  minWidth: V,
@@ -5515,7 +5511,7 @@ var Vr = function(e) {
5515
5511
  height: o
5516
5512
  } = a();
5517
5513
  return n.height = o, n.style.height = A(o), s > 0 && (n.style.minWidth = A(s)), n;
5518
- }, ln = function(e, t, a, n, s) {
5514
+ }, sn = function(e, t, a, n, s) {
5519
5515
  var o, h = e.height + e.depth + a + n;
5520
5516
  if (/fbox|color|angl/.test(t)) {
5521
5517
  if (o = y.makeSpan(["stretchy", t], [], s), t === "fbox") {
@@ -5545,11 +5541,11 @@ var Vr = function(e) {
5545
5541
  }
5546
5542
  return o.height = h, o.style.height = A(h), o;
5547
5543
  }, q0 = {
5548
- encloseSpan: ln,
5549
- mathMLnode: rn,
5550
- svgSpan: sn
5544
+ encloseSpan: sn,
5545
+ mathMLnode: tn,
5546
+ svgSpan: nn
5551
5547
  };
5552
- function F(r, e) {
5548
+ function L(r, e) {
5553
5549
  if (!r || r.type !== e)
5554
5550
  throw new Error("Expected node of type " + e + ", but got " + (r ? "node of type " + r.type : String(r)));
5555
5551
  return r;
@@ -5561,14 +5557,14 @@ function kt(r) {
5561
5557
  return e;
5562
5558
  }
5563
5559
  function Re(r) {
5564
- return r && (r.type === "atom" || C1.hasOwnProperty(r.type)) ? r : null;
5560
+ return r && (r.type === "atom" || D1.hasOwnProperty(r.type)) ? r : null;
5565
5561
  }
5566
5562
  var St = (r, e) => {
5567
5563
  var t, a, n;
5568
- r && r.type === "supsub" ? (a = F(r.base, "accent"), t = a.base, r.base = t, n = N1(P(r, e)), r.base = a) : (a = F(r, "accent"), t = a.base);
5569
- var s = P(t, e.havingCrampedStyle()), o = a.isShifty && q.isCharacterBox(t), h = 0;
5564
+ r && r.type === "supsub" ? (a = L(r.base, "accent"), t = a.base, r.base = t, n = B1(H(r, e)), r.base = a) : (a = L(r, "accent"), t = a.base);
5565
+ var s = H(t, e.havingCrampedStyle()), o = a.isShifty && G.isCharacterBox(t), h = 0;
5570
5566
  if (o) {
5571
- var m = q.getBaseElem(t), p = P(m, e.havingCrampedStyle());
5567
+ var m = G.getBaseElem(t), p = H(m, e.havingCrampedStyle());
5572
5568
  h = jt(p).skew;
5573
5569
  }
5574
5570
  var g = a.label === "\\c", b = g ? s.height + s.depth : Math.min(s.height, e.fontMetrics().xHeight), x;
@@ -5616,7 +5612,7 @@ var St = (r, e) => {
5616
5612
  }, $r = (r, e) => {
5617
5613
  var t = r.isStretchy ? q0.mathMLnode(r.label) : new S.MathNode("mo", [v0(r.label, r.mode)]), a = new S.MathNode("mover", [X(r.base, e), t]);
5618
5614
  return a.setAttribute("accent", "true"), a;
5619
- }, on = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((r) => "\\" + r).join("|"));
5615
+ }, ln = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((r) => "\\" + r).join("|"));
5620
5616
  B({
5621
5617
  type: "accent",
5622
5618
  names: ["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring", "\\widecheck", "\\widehat", "\\widetilde", "\\overrightarrow", "\\overleftarrow", "\\Overrightarrow", "\\overleftrightarrow", "\\overgroup", "\\overlinesegment", "\\overleftharpoon", "\\overrightharpoon"],
@@ -5624,7 +5620,7 @@ B({
5624
5620
  numArgs: 1
5625
5621
  },
5626
5622
  handler: (r, e) => {
5627
- var t = Ce(e[0]), a = !on.test(r.funcName), n = !a || r.funcName === "\\widehat" || r.funcName === "\\widetilde" || r.funcName === "\\widecheck";
5623
+ var t = Ce(e[0]), a = !ln.test(r.funcName), n = !a || r.funcName === "\\widehat" || r.funcName === "\\widetilde" || r.funcName === "\\widecheck";
5628
5624
  return {
5629
5625
  type: "accent",
5630
5626
  mode: r.parser.mode,
@@ -5680,7 +5676,7 @@ B({
5680
5676
  };
5681
5677
  },
5682
5678
  htmlBuilder: (r, e) => {
5683
- var t = P(r.base, e), a = q0.svgSpan(r, e), n = r.label === "\\utilde" ? 0.12 : 0, s = y.makeVList({
5679
+ var t = H(r.base, e), a = q0.svgSpan(r, e), n = r.label === "\\utilde" ? 0.12 : 0, s = y.makeVList({
5684
5680
  positionType: "top",
5685
5681
  positionData: t.height,
5686
5682
  children: [{
@@ -5758,10 +5754,10 @@ B({
5758
5754
  // Flow is unable to correctly infer the type of `group`, even though it's
5759
5755
  // unambiguously determined from the passed-in `type` above.
5760
5756
  htmlBuilder(r, e) {
5761
- var t = e.style, a = e.havingStyle(t.sup()), n = y.wrapFragment(P(r.body, a, e), e), s = r.label.slice(0, 2) === "\\x" ? "x" : "cd";
5757
+ var t = e.style, a = e.havingStyle(t.sup()), n = y.wrapFragment(H(r.body, a, e), e), s = r.label.slice(0, 2) === "\\x" ? "x" : "cd";
5762
5758
  n.classes.push(s + "-arrow-pad");
5763
5759
  var o;
5764
- r.below && (a = e.havingStyle(t.sub()), o = y.wrapFragment(P(r.below, a, e), e), o.classes.push(s + "-arrow-pad"));
5760
+ r.below && (a = e.havingStyle(t.sub()), o = y.wrapFragment(H(r.below, a, e), e), o.classes.push(s + "-arrow-pad"));
5765
5761
  var h = q0.svgSpan(r, e), m = -e.fontMetrics().axisHeight + 0.5 * h.height, p = -e.fontMetrics().axisHeight - 0.5 * h.height - 0.111;
5766
5762
  (n.depth > 0.25 || r.label === "\\xleftequilibrium") && (p -= n.depth);
5767
5763
  var g;
@@ -5817,13 +5813,13 @@ B({
5817
5813
  return a;
5818
5814
  }
5819
5815
  });
5820
- var un = y.makeSpan;
5816
+ var on = y.makeSpan;
5821
5817
  function Xr(r, e) {
5822
5818
  var t = t0(r.body, e, !0);
5823
- return un([r.mclass], t, e);
5819
+ return on([r.mclass], t, e);
5824
5820
  }
5825
5821
  function Yr(r, e) {
5826
- var t, a = o0(r.body, e);
5822
+ var t, a = u0(r.body, e);
5827
5823
  return r.mclass === "minner" ? t = new S.MathNode("mpadded", a) : r.mclass === "mord" ? r.isCharacterBox ? (t = a[0], t.type = "mi") : t = new S.MathNode("mi", a) : (r.isCharacterBox ? (t = a[0], t.type = "mo") : t = new S.MathNode("mo", a), r.mclass === "mbin" ? (t.attributes.lspace = "0.22em", t.attributes.rspace = "0.22em") : r.mclass === "mpunct" ? (t.attributes.lspace = "0em", t.attributes.rspace = "0.17em") : r.mclass === "mopen" || r.mclass === "mclose" ? (t.attributes.lspace = "0em", t.attributes.rspace = "0em") : r.mclass === "minner" && (t.attributes.lspace = "0.0556em", t.attributes.width = "+0.1111em")), t;
5828
5824
  }
5829
5825
  B({
@@ -5844,7 +5840,7 @@ B({
5844
5840
  mclass: "m" + a.slice(5),
5845
5841
  // TODO(kevinb): don't prefix with 'm'
5846
5842
  body: Q(n),
5847
- isCharacterBox: q.isCharacterBox(n)
5843
+ isCharacterBox: G.isCharacterBox(n)
5848
5844
  };
5849
5845
  },
5850
5846
  htmlBuilder: Xr,
@@ -5869,7 +5865,7 @@ B({
5869
5865
  mode: t.mode,
5870
5866
  mclass: Ie(e[0]),
5871
5867
  body: Q(e[1]),
5872
- isCharacterBox: q.isCharacterBox(e[1])
5868
+ isCharacterBox: G.isCharacterBox(e[1])
5873
5869
  };
5874
5870
  }
5875
5871
  });
@@ -5906,7 +5902,7 @@ B({
5906
5902
  mode: t.mode,
5907
5903
  mclass: o,
5908
5904
  body: [m],
5909
- isCharacterBox: q.isCharacterBox(m)
5905
+ isCharacterBox: G.isCharacterBox(m)
5910
5906
  };
5911
5907
  },
5912
5908
  htmlBuilder: Xr,
@@ -5935,11 +5931,11 @@ B({
5935
5931
  return a.style.textShadow = "0.02em 0.01em 0.04px", a;
5936
5932
  },
5937
5933
  mathmlBuilder(r, e) {
5938
- var t = o0(r.body, e), a = new S.MathNode("mstyle", t);
5934
+ var t = u0(r.body, e), a = new S.MathNode("mstyle", t);
5939
5935
  return a.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), a;
5940
5936
  }
5941
5937
  });
5942
- var hn = {
5938
+ var un = {
5943
5939
  ">": "\\\\cdrightarrow",
5944
5940
  "<": "\\\\cdleftarrow",
5945
5941
  "=": "\\\\cdlongequal",
@@ -5952,9 +5948,9 @@ var hn = {
5952
5948
  body: [],
5953
5949
  mode: "math",
5954
5950
  style: "display"
5955
- }), ar = (r) => r.type === "textord" && r.text === "@", mn = (r, e) => (r.type === "mathord" || r.type === "atom") && r.text === e;
5956
- function cn(r, e, t) {
5957
- var a = hn[r];
5951
+ }), ar = (r) => r.type === "textord" && r.text === "@", hn = (r, e) => (r.type === "mathord" || r.type === "atom") && r.text === e;
5952
+ function mn(r, e, t) {
5953
+ var a = un[r];
5958
5954
  switch (a) {
5959
5955
  case "\\\\cdrightarrow":
5960
5956
  case "\\\\cdleftarrow":
@@ -5991,7 +5987,7 @@ function cn(r, e, t) {
5991
5987
  };
5992
5988
  }
5993
5989
  }
5994
- function dn(r) {
5990
+ function cn(r) {
5995
5991
  var e = [];
5996
5992
  for (r.gullet.beginGroup(), r.gullet.macros.set("\\cr", "\\\\\\relax"), r.gullet.beginGroup(); ; ) {
5997
5993
  e.push(r.parseExpression(!1, "\\\\")), r.gullet.endGroup(), r.gullet.beginGroup();
@@ -6022,7 +6018,7 @@ function dn(r) {
6022
6018
  }, !("=|.".indexOf(p) > -1)) if ("<>AV".indexOf(p) > -1)
6023
6019
  for (var b = 0; b < 2; b++) {
6024
6020
  for (var x = !0, w = m + 1; w < o.length; w++) {
6025
- if (mn(o[w], p)) {
6021
+ if (hn(o[w], p)) {
6026
6022
  x = !1, m = w;
6027
6023
  break;
6028
6024
  }
@@ -6035,7 +6031,7 @@ function dn(r) {
6035
6031
  }
6036
6032
  else
6037
6033
  throw new M('Expected one of "<>AV=|." after @', o[m]);
6038
- var z = cn(p, g, r), T = {
6034
+ var z = mn(p, g, r), T = {
6039
6035
  type: "styling",
6040
6036
  body: [z],
6041
6037
  mode: "math",
@@ -6086,7 +6082,7 @@ B({
6086
6082
  };
6087
6083
  },
6088
6084
  htmlBuilder(r, e) {
6089
- var t = e.havingStyle(e.style.sup()), a = y.wrapFragment(P(r.label, t, e), e);
6085
+ var t = e.havingStyle(e.style.sup()), a = y.wrapFragment(H(r.label, t, e), e);
6090
6086
  return a.classes.push("cd-label-" + r.side), a.style.bottom = A(0.8 - a.depth), a.height = 0, a.depth = 0, a;
6091
6087
  },
6092
6088
  mathmlBuilder(r, e) {
@@ -6111,7 +6107,7 @@ B({
6111
6107
  };
6112
6108
  },
6113
6109
  htmlBuilder(r, e) {
6114
- var t = y.wrapFragment(P(r.fragment, e), e);
6110
+ var t = y.wrapFragment(H(r.fragment, e), e);
6115
6111
  return t.classes.push("cd-vert-arrow"), t;
6116
6112
  },
6117
6113
  mathmlBuilder(r, e) {
@@ -6128,8 +6124,8 @@ B({
6128
6124
  handler(r, e) {
6129
6125
  for (var {
6130
6126
  parser: t
6131
- } = r, a = F(e[0], "ordgroup"), n = a.body, s = "", o = 0; o < n.length; o++) {
6132
- var h = F(n[o], "textord");
6127
+ } = r, a = L(e[0], "ordgroup"), n = a.body, s = "", o = 0; o < n.length; o++) {
6128
+ var h = L(n[o], "textord");
6133
6129
  s += h.text;
6134
6130
  }
6135
6131
  var m = parseInt(s), p;
@@ -6148,7 +6144,7 @@ var Wr = (r, e) => {
6148
6144
  var t = t0(r.body, e.withColor(r.color), !1);
6149
6145
  return y.makeFragment(t);
6150
6146
  }, jr = (r, e) => {
6151
- var t = o0(r.body, e.withColor(r.color)), a = new S.MathNode("mstyle", t);
6147
+ var t = u0(r.body, e.withColor(r.color)), a = new S.MathNode("mstyle", t);
6152
6148
  return a.setAttribute("mathcolor", r.color), a;
6153
6149
  };
6154
6150
  B({
@@ -6162,7 +6158,7 @@ B({
6162
6158
  handler(r, e) {
6163
6159
  var {
6164
6160
  parser: t
6165
- } = r, a = F(e[0], "color-token").color, n = e[1];
6161
+ } = r, a = L(e[0], "color-token").color, n = e[1];
6166
6162
  return {
6167
6163
  type: "color",
6168
6164
  mode: t.mode,
@@ -6185,7 +6181,7 @@ B({
6185
6181
  var {
6186
6182
  parser: t,
6187
6183
  breakOnTokenText: a
6188
- } = r, n = F(e[0], "color-token").color;
6184
+ } = r, n = L(e[0], "color-token").color;
6189
6185
  t.gullet.macros.set("\\current@color", n);
6190
6186
  var s = t.parseExpression(!0, a);
6191
6187
  return {
@@ -6214,7 +6210,7 @@ B({
6214
6210
  type: "cr",
6215
6211
  mode: a.mode,
6216
6212
  newLine: s,
6217
- size: n && F(n, "size").value
6213
+ size: n && L(n, "size").value
6218
6214
  };
6219
6215
  },
6220
6216
  // The following builders are called only at the top level,
@@ -6243,7 +6239,7 @@ var ct = {
6243
6239
  if (/^(?:[\\{}$&#^_]|EOF)$/.test(e))
6244
6240
  throw new M("Expected a control sequence", r);
6245
6241
  return e;
6246
- }, fn = (r) => {
6242
+ }, dn = (r) => {
6247
6243
  var e = r.gullet.popToken();
6248
6244
  return e.text === "=" && (e = r.gullet.popToken(), e.text === " " && (e = r.gullet.popToken())), e;
6249
6245
  }, Kr = (r, e, t, a) => {
@@ -6275,7 +6271,7 @@ B({
6275
6271
  e.consumeSpaces();
6276
6272
  var a = e.fetch();
6277
6273
  if (ct[a.text])
6278
- return (t === "\\global" || t === "\\\\globallong") && (a.text = ct[a.text]), F(e.parseFunction(), "internal");
6274
+ return (t === "\\global" || t === "\\\\globallong") && (a.text = ct[a.text]), L(e.parseFunction(), "internal");
6279
6275
  throw new M("Invalid token after macro prefix", a);
6280
6276
  }
6281
6277
  });
@@ -6341,7 +6337,7 @@ B({
6341
6337
  funcName: t
6342
6338
  } = r, a = Zr(e.gullet.popToken());
6343
6339
  e.gullet.consumeSpaces();
6344
- var n = fn(e);
6340
+ var n = dn(e);
6345
6341
  return Kr(e, a, n, t === "\\\\globallet"), {
6346
6342
  type: "internal",
6347
6343
  mode: e.mode
@@ -6382,14 +6378,14 @@ var ie = function(e, t, a) {
6382
6378
  }, Jr = function(e, t, a) {
6383
6379
  var n = t.havingBaseStyle(a), s = (1 - t.sizeMultiplier / n.sizeMultiplier) * t.fontMetrics().axisHeight;
6384
6380
  e.classes.push("delimcenter"), e.style.top = A(s), e.height -= s, e.depth += s;
6385
- }, pn = function(e, t, a, n, s, o) {
6381
+ }, fn = function(e, t, a, n, s, o) {
6386
6382
  var h = y.makeSymbol(e, "Main-Regular", s, n), m = Mt(h, t, n, o);
6387
6383
  return a && Jr(m, n, t), m;
6388
- }, vn = function(e, t, a, n) {
6384
+ }, pn = function(e, t, a, n) {
6389
6385
  return y.makeSymbol(e, "Size" + t + "-Regular", a, n);
6390
6386
  }, Qr = function(e, t, a, n, s, o) {
6391
- var h = vn(e, t, s, n), m = Mt(y.makeSpan(["delimsizing", "size" + t], [h], n), R.TEXT, n, o);
6392
- return a && Jr(m, n, R.TEXT), m;
6387
+ var h = pn(e, t, s, n), m = Mt(y.makeSpan(["delimsizing", "size" + t], [h], n), E.TEXT, n, o);
6388
+ return a && Jr(m, n, E.TEXT), m;
6393
6389
  }, Ke = function(e, t, a) {
6394
6390
  var n;
6395
6391
  t === "Size1-Regular" ? n = "delim-size1" : n = "delim-size4";
@@ -6399,7 +6395,7 @@ var ie = function(e, t, a) {
6399
6395
  elem: s
6400
6396
  };
6401
6397
  }, Je = function(e, t, a) {
6402
- var n = x0["Size4-Regular"][e.charCodeAt(0)] ? x0["Size4-Regular"][e.charCodeAt(0)][4] : x0["Size1-Regular"][e.charCodeAt(0)][4], s = new G0("inner", x1(e, Math.round(1e3 * t))), o = new D0([s], {
6398
+ var n = x0["Size4-Regular"][e.charCodeAt(0)] ? x0["Size4-Regular"][e.charCodeAt(0)][4] : x0["Size1-Regular"][e.charCodeAt(0)][4], s = new G0("inner", y1(e, Math.round(1e3 * t))), o = new D0([s], {
6403
6399
  width: A(n),
6404
6400
  height: A(t),
6405
6401
  // Override CSS rule `.katex svg { width: 100% }`
@@ -6414,21 +6410,21 @@ var ie = function(e, t, a) {
6414
6410
  }, dt = 8e-3, Se = {
6415
6411
  type: "kern",
6416
6412
  size: -1 * dt
6417
- }, gn = ["|", "\\lvert", "\\rvert", "\\vert"], bn = ["\\|", "\\lVert", "\\rVert", "\\Vert"], _r = function(e, t, a, n, s, o) {
6413
+ }, vn = ["|", "\\lvert", "\\rvert", "\\vert"], gn = ["\\|", "\\lVert", "\\rVert", "\\Vert"], _r = function(e, t, a, n, s, o) {
6418
6414
  var h, m, p, g, b = "", x = 0;
6419
6415
  h = p = g = e, m = null;
6420
6416
  var w = "Size1-Regular";
6421
- e === "\\uparrow" ? p = g = "⏐" : e === "\\Uparrow" ? p = g = "‖" : e === "\\downarrow" ? h = p = "⏐" : e === "\\Downarrow" ? h = p = "‖" : e === "\\updownarrow" ? (h = "\\uparrow", p = "⏐", g = "\\downarrow") : e === "\\Updownarrow" ? (h = "\\Uparrow", p = "‖", g = "\\Downarrow") : q.contains(gn, e) ? (p = "∣", b = "vert", x = 333) : q.contains(bn, e) ? (p = "∥", b = "doublevert", x = 556) : e === "[" || e === "\\lbrack" ? (h = "⎡", p = "⎢", g = "⎣", w = "Size4-Regular", b = "lbrack", x = 667) : e === "]" || e === "\\rbrack" ? (h = "⎤", p = "⎥", g = "⎦", w = "Size4-Regular", b = "rbrack", x = 667) : e === "\\lfloor" || e === "⌊" ? (p = h = "⎢", g = "⎣", w = "Size4-Regular", b = "lfloor", x = 667) : e === "\\lceil" || e === "⌈" ? (h = "⎡", p = g = "⎢", w = "Size4-Regular", b = "lceil", x = 667) : e === "\\rfloor" || e === "⌋" ? (p = h = "⎥", g = "⎦", w = "Size4-Regular", b = "rfloor", x = 667) : e === "\\rceil" || e === "⌉" ? (h = "⎤", p = g = "⎥", w = "Size4-Regular", b = "rceil", x = 667) : e === "(" || e === "\\lparen" ? (h = "⎛", p = "⎜", g = "⎝", w = "Size4-Regular", b = "lparen", x = 875) : e === ")" || e === "\\rparen" ? (h = "⎞", p = "⎟", g = "⎠", w = "Size4-Regular", b = "rparen", x = 875) : e === "\\{" || e === "\\lbrace" ? (h = "⎧", m = "⎨", g = "⎩", p = "⎪", w = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (h = "⎫", m = "⎬", g = "⎭", p = "⎪", w = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (h = "⎧", g = "⎩", p = "⎪", w = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (h = "⎫", g = "⎭", p = "⎪", w = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (h = "⎧", g = "⎭", p = "⎪", w = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (h = "⎫", g = "⎩", p = "⎪", w = "Size4-Regular");
6422
- var z = ie(h, w, s), T = z.height + z.depth, D = ie(p, w, s), C = D.height + D.depth, I = ie(g, w, s), L = I.height + I.depth, V = 0, H = 1;
6417
+ e === "\\uparrow" ? p = g = "⏐" : e === "\\Uparrow" ? p = g = "‖" : e === "\\downarrow" ? h = p = "⏐" : e === "\\Downarrow" ? h = p = "‖" : e === "\\updownarrow" ? (h = "\\uparrow", p = "⏐", g = "\\downarrow") : e === "\\Updownarrow" ? (h = "\\Uparrow", p = "‖", g = "\\Downarrow") : vn.includes(e) ? (p = "∣", b = "vert", x = 333) : gn.includes(e) ? (p = "∥", b = "doublevert", x = 556) : e === "[" || e === "\\lbrack" ? (h = "⎡", p = "⎢", g = "⎣", w = "Size4-Regular", b = "lbrack", x = 667) : e === "]" || e === "\\rbrack" ? (h = "⎤", p = "⎥", g = "⎦", w = "Size4-Regular", b = "rbrack", x = 667) : e === "\\lfloor" || e === "⌊" ? (p = h = "⎢", g = "⎣", w = "Size4-Regular", b = "lfloor", x = 667) : e === "\\lceil" || e === "⌈" ? (h = "⎡", p = g = "⎢", w = "Size4-Regular", b = "lceil", x = 667) : e === "\\rfloor" || e === "⌋" ? (p = h = "⎥", g = "⎦", w = "Size4-Regular", b = "rfloor", x = 667) : e === "\\rceil" || e === "⌉" ? (h = "⎤", p = g = "⎥", w = "Size4-Regular", b = "rceil", x = 667) : e === "(" || e === "\\lparen" ? (h = "⎛", p = "⎜", g = "⎝", w = "Size4-Regular", b = "lparen", x = 875) : e === ")" || e === "\\rparen" ? (h = "⎞", p = "⎟", g = "⎠", w = "Size4-Regular", b = "rparen", x = 875) : e === "\\{" || e === "\\lbrace" ? (h = "⎧", m = "⎨", g = "⎩", p = "⎪", w = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (h = "⎫", m = "⎬", g = "⎭", p = "⎪", w = "Size4-Regular") : e === "\\lgroup" || e === "⟮" ? (h = "⎧", g = "⎩", p = "⎪", w = "Size4-Regular") : e === "\\rgroup" || e === "⟯" ? (h = "⎫", g = "⎭", p = "⎪", w = "Size4-Regular") : e === "\\lmoustache" || e === "⎰" ? (h = "⎧", g = "⎭", p = "⎪", w = "Size4-Regular") : (e === "\\rmoustache" || e === "⎱") && (h = "⎫", g = "⎩", p = "⎪", w = "Size4-Regular");
6418
+ var z = ie(h, w, s), T = z.height + z.depth, D = ie(p, w, s), C = D.height + D.depth, R = ie(g, w, s), O = R.height + R.depth, V = 0, F = 1;
6423
6419
  if (m !== null) {
6424
6420
  var U = ie(m, w, s);
6425
- V = U.height + U.depth, H = 2;
6421
+ V = U.height + U.depth, F = 2;
6426
6422
  }
6427
- var G = T + L + V, j = Math.max(0, Math.ceil((t - G) / (H * C))), $ = G + j * H * C, z0 = n.fontMetrics().axisHeight;
6423
+ var P = T + O + V, j = Math.max(0, Math.ceil((t - P) / (F * C))), $ = P + j * F * C, z0 = n.fontMetrics().axisHeight;
6428
6424
  a && (z0 *= n.sizeMultiplier);
6429
6425
  var r0 = $ / 2 - z0, e0 = [];
6430
6426
  if (b.length > 0) {
6431
- var $0 = $ - T - L, s0 = Math.round($ * 1e3), g0 = w1(b, Math.round($0 * 1e3)), R0 = new G0(b, g0), j0 = (x / 1e3).toFixed(3) + "em", Z0 = (s0 / 1e3).toFixed(3) + "em", He = new D0([R0], {
6427
+ var $0 = $ - T - O, s0 = Math.round($ * 1e3), g0 = x1(b, Math.round($0 * 1e3)), R0 = new G0(b, g0), j0 = (x / 1e3).toFixed(3) + "em", Z0 = (s0 / 1e3).toFixed(3) + "em", He = new D0([R0], {
6432
6428
  width: j0,
6433
6429
  height: Z0,
6434
6430
  viewBox: "0 0 " + x + " " + s0
@@ -6439,22 +6435,22 @@ var ie = function(e, t, a) {
6439
6435
  });
6440
6436
  } else {
6441
6437
  if (e0.push(Ke(g, w, s)), e0.push(Se), m === null) {
6442
- var O0 = $ - T - L + 2 * dt;
6438
+ var O0 = $ - T - O + 2 * dt;
6443
6439
  e0.push(Je(p, O0, n));
6444
6440
  } else {
6445
- var c0 = ($ - T - L - V) / 2 + 2 * dt;
6446
- e0.push(Je(p, c0, n)), e0.push(Se), e0.push(Ke(m, w, s)), e0.push(Se), e0.push(Je(p, c0, n));
6441
+ var d0 = ($ - T - O - V) / 2 + 2 * dt;
6442
+ e0.push(Je(p, d0, n)), e0.push(Se), e0.push(Ke(m, w, s)), e0.push(Se), e0.push(Je(p, d0, n));
6447
6443
  }
6448
6444
  e0.push(Se), e0.push(Ke(h, w, s));
6449
6445
  }
6450
- var ne = n.havingBaseStyle(R.TEXT), Pe = y.makeVList({
6446
+ var ne = n.havingBaseStyle(E.TEXT), Pe = y.makeVList({
6451
6447
  positionType: "bottom",
6452
6448
  positionData: r0,
6453
6449
  children: e0
6454
6450
  }, ne);
6455
- return Mt(y.makeSpan(["delimsizing", "mult"], [Pe], ne), R.TEXT, n, o);
6451
+ return Mt(y.makeSpan(["delimsizing", "mult"], [Pe], ne), E.TEXT, n, o);
6456
6452
  }, Qe = 80, _e = 0.08, et = function(e, t, a, n, s) {
6457
- var o = y1(e, n, a), h = new G0(e, o), m = new D0([h], {
6453
+ var o = b1(e, n, a), h = new G0(e, o), m = new D0([h], {
6458
6454
  // Note: 1000:1 ratio of viewBox to document em width.
6459
6455
  width: "400em",
6460
6456
  height: A(t),
@@ -6462,7 +6458,7 @@ var ie = function(e, t, a) {
6462
6458
  preserveAspectRatio: "xMinYMin slice"
6463
6459
  });
6464
6460
  return y.makeSvgSpan(["hide-tail"], [m], s);
6465
- }, yn = function(e, t) {
6461
+ }, bn = function(e, t) {
6466
6462
  var a = t.havingBaseSizing(), n = aa("\\surd", e * a.sizeMultiplier, ra, a), s = a.sizeMultiplier, o = Math.max(0, t.minRuleThickness - t.fontMetrics().sqrtRuleThickness), h, m = 0, p = 0, g = 0, b;
6467
6463
  return n.type === "small" ? (g = 1e3 + 1e3 * o + Qe, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), m = (1 + o + _e) / s, p = (1 + o) / s, h = et("sqrtMain", m, g, o, t), h.style.minWidth = "0.853em", b = 0.833 / s) : n.type === "large" ? (g = (1e3 + Qe) * se[n.size], p = (se[n.size] + o) / s, m = (se[n.size] + o + _e) / s, h = et("sqrtSize" + n.size, m, g, o, t), h.style.minWidth = "1.02em", b = 1 / s) : (m = e + o + _e, p = e + o, g = Math.floor(1e3 * e + o) + Qe, h = et("sqrtTall", m, g, o, t), h.style.minWidth = "0.742em", b = 1.056), h.height = p, h.style.height = A(m), {
6468
6464
  span: h,
@@ -6473,21 +6469,21 @@ var ie = function(e, t, a) {
6473
6469
  // have thicker rules.
6474
6470
  ruleWidth: (t.fontMetrics().sqrtRuleThickness + o) * s
6475
6471
  };
6476
- }, ea = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], xn = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], ta = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], se = [0, 1.2, 1.8, 2.4, 3], wn = function(e, t, a, n, s) {
6477
- if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), q.contains(ea, e) || q.contains(ta, e))
6472
+ }, ea = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "\\surd"], yn = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱"], ta = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], se = [0, 1.2, 1.8, 2.4, 3], xn = function(e, t, a, n, s) {
6473
+ if (e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle"), ea.includes(e) || ta.includes(e))
6478
6474
  return Qr(e, t, !1, a, n, s);
6479
- if (q.contains(xn, e))
6475
+ if (yn.includes(e))
6480
6476
  return _r(e, se[t], !1, a, n, s);
6481
6477
  throw new M("Illegal delimiter: '" + e + "'");
6482
- }, kn = [{
6478
+ }, wn = [{
6483
6479
  type: "small",
6484
- style: R.SCRIPTSCRIPT
6480
+ style: E.SCRIPTSCRIPT
6485
6481
  }, {
6486
6482
  type: "small",
6487
- style: R.SCRIPT
6483
+ style: E.SCRIPT
6488
6484
  }, {
6489
6485
  type: "small",
6490
- style: R.TEXT
6486
+ style: E.TEXT
6491
6487
  }, {
6492
6488
  type: "large",
6493
6489
  size: 1
@@ -6500,26 +6496,26 @@ var ie = function(e, t, a) {
6500
6496
  }, {
6501
6497
  type: "large",
6502
6498
  size: 4
6503
- }], Sn = [{
6499
+ }], kn = [{
6504
6500
  type: "small",
6505
- style: R.SCRIPTSCRIPT
6501
+ style: E.SCRIPTSCRIPT
6506
6502
  }, {
6507
6503
  type: "small",
6508
- style: R.SCRIPT
6504
+ style: E.SCRIPT
6509
6505
  }, {
6510
6506
  type: "small",
6511
- style: R.TEXT
6507
+ style: E.TEXT
6512
6508
  }, {
6513
6509
  type: "stack"
6514
6510
  }], ra = [{
6515
6511
  type: "small",
6516
- style: R.SCRIPTSCRIPT
6512
+ style: E.SCRIPTSCRIPT
6517
6513
  }, {
6518
6514
  type: "small",
6519
- style: R.SCRIPT
6515
+ style: E.SCRIPT
6520
6516
  }, {
6521
6517
  type: "small",
6522
- style: R.TEXT
6518
+ style: E.TEXT
6523
6519
  }, {
6524
6520
  type: "large",
6525
6521
  size: 1
@@ -6534,7 +6530,7 @@ var ie = function(e, t, a) {
6534
6530
  size: 4
6535
6531
  }, {
6536
6532
  type: "stack"
6537
- }], Mn = function(e) {
6533
+ }], Sn = function(e) {
6538
6534
  if (e.type === "small")
6539
6535
  return "Main-Regular";
6540
6536
  if (e.type === "large")
@@ -6544,7 +6540,7 @@ var ie = function(e, t, a) {
6544
6540
  throw new Error("Add support for delim type '" + e.type + "' here.");
6545
6541
  }, aa = function(e, t, a, n) {
6546
6542
  for (var s = Math.min(2, 3 - n.style.size), o = s; o < a.length && a[o].type !== "stack"; o++) {
6547
- var h = ie(e, Mn(a[o]), "math"), m = h.height + h.depth;
6543
+ var h = ie(e, Sn(a[o]), "math"), m = h.height + h.depth;
6548
6544
  if (a[o].type === "small") {
6549
6545
  var p = n.havingBaseStyle(a[o].style);
6550
6546
  m *= p.sizeMultiplier;
@@ -6556,10 +6552,10 @@ var ie = function(e, t, a) {
6556
6552
  }, na = function(e, t, a, n, s, o) {
6557
6553
  e === "<" || e === "\\lt" || e === "⟨" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "⟩") && (e = "\\rangle");
6558
6554
  var h;
6559
- q.contains(ta, e) ? h = kn : q.contains(ea, e) ? h = ra : h = Sn;
6555
+ ta.includes(e) ? h = wn : ea.includes(e) ? h = ra : h = kn;
6560
6556
  var m = aa(e, t, h, n);
6561
- return m.type === "small" ? pn(e, m.style, a, n, s, o) : m.type === "large" ? Qr(e, m.size, a, n, s, o) : _r(e, t, a, n, s, o);
6562
- }, zn = function(e, t, a, n, s, o) {
6557
+ return m.type === "small" ? fn(e, m.style, a, n, s, o) : m.type === "large" ? Qr(e, m.size, a, n, s, o) : _r(e, t, a, n, s, o);
6558
+ }, Mn = function(e, t, a, n, s, o) {
6563
6559
  var h = n.fontMetrics().axisHeight * n.sizeMultiplier, m = 901, p = 5 / n.fontMetrics().ptPerEm, g = Math.max(t - h, a + h), b = Math.max(
6564
6560
  // In real TeX, calculations are done using integral values which are
6565
6561
  // 65536 per pt, or 655360 per em. So, the division here truncates in
@@ -6575,11 +6571,11 @@ var ie = function(e, t, a) {
6575
6571
  );
6576
6572
  return na(e, b, !0, n, s, o);
6577
6573
  }, N0 = {
6578
- sqrtImage: yn,
6579
- sizedDelim: wn,
6574
+ sqrtImage: bn,
6575
+ sizedDelim: xn,
6580
6576
  sizeToMaxHeight: se,
6581
6577
  customSizedDelim: na,
6582
- leftRightDelim: zn
6578
+ leftRightDelim: Mn
6583
6579
  }, nr = {
6584
6580
  "\\bigl": {
6585
6581
  mclass: "mopen",
@@ -6645,10 +6641,10 @@ var ie = function(e, t, a) {
6645
6641
  mclass: "mord",
6646
6642
  size: 4
6647
6643
  }
6648
- }, An = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "<", ">", "\\langle", "⟨", "\\rangle", "⟩", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."];
6644
+ }, zn = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "⌊", "⌋", "\\lceil", "\\rceil", "⌈", "⌉", "<", ">", "\\langle", "⟨", "\\rangle", "⟩", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "⟮", "⟯", "\\lmoustache", "\\rmoustache", "⎰", "⎱", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."];
6649
6645
  function Oe(r, e) {
6650
6646
  var t = Re(r);
6651
- if (t && q.contains(An, t.text))
6647
+ if (t && zn.includes(t.text))
6652
6648
  return t;
6653
6649
  throw t ? new M("Invalid delimiter '" + t.text + "' after '" + e.funcName + "'", r) : new M("Invalid delimiter type '" + r.type + "'", r);
6654
6650
  }
@@ -6715,7 +6711,7 @@ B({
6715
6711
  ++a.leftrightDepth;
6716
6712
  var n = a.parseExpression(!1);
6717
6713
  --a.leftrightDepth, a.expect("\\right", !1);
6718
- var s = F(a.parseFunction(), "leftright-right");
6714
+ var s = L(a.parseFunction(), "leftright-right");
6719
6715
  return {
6720
6716
  type: "leftright",
6721
6717
  mode: a.mode,
@@ -6747,7 +6743,7 @@ B({
6747
6743
  },
6748
6744
  mathmlBuilder: (r, e) => {
6749
6745
  ir(r);
6750
- var t = o0(r.body, e);
6746
+ var t = u0(r.body, e);
6751
6747
  if (r.left !== ".") {
6752
6748
  var a = new S.MathNode("mo", [v0(r.left, r.mode)]);
6753
6749
  a.setAttribute("fence", "true"), t.unshift(a);
@@ -6796,7 +6792,7 @@ B({
6796
6792
  }
6797
6793
  });
6798
6794
  var zt = (r, e) => {
6799
- var t = y.wrapFragment(P(r.body, e), e), a = r.label.slice(1), n = e.sizeMultiplier, s, o = 0, h = q.isCharacterBox(r.body);
6795
+ var t = y.wrapFragment(H(r.body, e), e), a = r.label.slice(1), n = e.sizeMultiplier, s, o = 0, h = G.isCharacterBox(r.body);
6800
6796
  if (a === "sout")
6801
6797
  s = y.makeSpan(["stretchy", "sout"]), s.height = e.fontMetrics().defaultRuleThickness / n, o = -0.5 * e.fontMetrics().xHeight;
6802
6798
  else if (a === "phase") {
@@ -6810,7 +6806,7 @@ var zt = (r, e) => {
6810
6806
  n = n / g.sizeMultiplier;
6811
6807
  var b = t.height + t.depth + m + p;
6812
6808
  t.style.paddingLeft = A(b / 2 + m);
6813
- var x = Math.floor(1e3 * b * n), w = g1(x), z = new D0([new G0("phase", w)], {
6809
+ var x = Math.floor(1e3 * b * n), w = v1(x), z = new D0([new G0("phase", w)], {
6814
6810
  width: "400em",
6815
6811
  height: A(x / 1e3),
6816
6812
  viewBox: "0 0 400000 " + x,
@@ -6827,9 +6823,9 @@ var zt = (r, e) => {
6827
6823
  // User override.
6828
6824
  ), T = e.fontMetrics().fboxsep + (a === "colorbox" ? 0 : C), D = T) : a === "angl" ? (C = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), T = 4 * C, D = Math.max(0, 0.25 - t.depth)) : (T = h ? 0.2 : 0, D = T), s = q0.encloseSpan(t, a, T, D, e), /fbox|boxed|fcolorbox/.test(a) ? (s.style.borderStyle = "solid", s.style.borderWidth = A(C)) : a === "angl" && C !== 0.049 && (s.style.borderTopWidth = A(C), s.style.borderRightWidth = A(C)), o = t.depth + D, r.backgroundColor && (s.style.backgroundColor = r.backgroundColor, r.borderColor && (s.style.borderColor = r.borderColor));
6829
6825
  }
6830
- var I;
6826
+ var R;
6831
6827
  if (r.backgroundColor)
6832
- I = y.makeVList({
6828
+ R = y.makeVList({
6833
6829
  positionType: "individualShift",
6834
6830
  children: [
6835
6831
  // Put the color background behind inner;
@@ -6846,8 +6842,8 @@ var zt = (r, e) => {
6846
6842
  ]
6847
6843
  }, e);
6848
6844
  else {
6849
- var L = /cancel|phase/.test(a) ? ["svg-align"] : [];
6850
- I = y.makeVList({
6845
+ var O = /cancel|phase/.test(a) ? ["svg-align"] : [];
6846
+ R = y.makeVList({
6851
6847
  positionType: "individualShift",
6852
6848
  children: [
6853
6849
  // Write the \cancel stroke on top of inner.
@@ -6860,12 +6856,12 @@ var zt = (r, e) => {
6860
6856
  type: "elem",
6861
6857
  elem: s,
6862
6858
  shift: o,
6863
- wrapperClasses: L
6859
+ wrapperClasses: O
6864
6860
  }
6865
6861
  ]
6866
6862
  }, e);
6867
6863
  }
6868
- return /cancel/.test(a) && (I.height = t.height, I.depth = t.depth), /cancel/.test(a) && !h ? y.makeSpan(["mord", "cancel-lap"], [I], e) : y.makeSpan(["mord"], [I], e);
6864
+ return /cancel/.test(a) && (R.height = t.height, R.depth = t.depth), /cancel/.test(a) && !h ? y.makeSpan(["mord", "cancel-lap"], [R], e) : y.makeSpan(["mord"], [R], e);
6869
6865
  }, At = (r, e) => {
6870
6866
  var t = 0, a = new S.MathNode(r.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [X(r.body, e)]);
6871
6867
  switch (r.label) {
@@ -6917,7 +6913,7 @@ B({
6917
6913
  var {
6918
6914
  parser: a,
6919
6915
  funcName: n
6920
- } = r, s = F(e[0], "color-token").color, o = e[1];
6916
+ } = r, s = L(e[0], "color-token").color, o = e[1];
6921
6917
  return {
6922
6918
  type: "enclose",
6923
6919
  mode: a.mode,
@@ -6941,7 +6937,7 @@ B({
6941
6937
  var {
6942
6938
  parser: a,
6943
6939
  funcName: n
6944
- } = r, s = F(e[0], "color-token").color, o = F(e[1], "color-token").color, h = e[2];
6940
+ } = r, s = L(e[0], "color-token").color, o = L(e[1], "color-token").color, h = e[2];
6945
6941
  return {
6946
6942
  type: "enclose",
6947
6943
  mode: a.mode,
@@ -7076,25 +7072,25 @@ function U0(r, e, t) {
7076
7072
  throw new M("Invalid \\arraystretch: " + w);
7077
7073
  }
7078
7074
  r.gullet.beginGroup();
7079
- var z = [], T = [z], D = [], C = [], I = m != null ? [] : void 0;
7080
- function L() {
7075
+ var z = [], T = [z], D = [], C = [], R = m != null ? [] : void 0;
7076
+ function O() {
7081
7077
  m && r.gullet.macros.set("\\@eqnsw", "1", !0);
7082
7078
  }
7083
7079
  function V() {
7084
- I && (r.gullet.macros.get("\\df@tag") ? (I.push(r.subparse([new f0("\\df@tag")])), r.gullet.macros.set("\\df@tag", void 0, !0)) : I.push(!!m && r.gullet.macros.get("\\@eqnsw") === "1"));
7080
+ R && (r.gullet.macros.get("\\df@tag") ? (R.push(r.subparse([new m0("\\df@tag")])), r.gullet.macros.set("\\df@tag", void 0, !0)) : R.push(!!m && r.gullet.macros.get("\\@eqnsw") === "1"));
7085
7081
  }
7086
- for (L(), C.push(sr(r)); ; ) {
7087
- var H = r.parseExpression(!1, p ? "\\end" : "\\\\");
7088
- r.gullet.endGroup(), r.gullet.beginGroup(), H = {
7082
+ for (O(), C.push(sr(r)); ; ) {
7083
+ var F = r.parseExpression(!1, p ? "\\end" : "\\\\");
7084
+ r.gullet.endGroup(), r.gullet.beginGroup(), F = {
7089
7085
  type: "ordgroup",
7090
7086
  mode: r.mode,
7091
- body: H
7092
- }, t && (H = {
7087
+ body: F
7088
+ }, t && (F = {
7093
7089
  type: "styling",
7094
7090
  mode: r.mode,
7095
7091
  style: t,
7096
- body: [H]
7097
- }), z.push(H);
7092
+ body: [F]
7093
+ }), z.push(F);
7098
7094
  var U = r.fetch().text;
7099
7095
  if (U === "&") {
7100
7096
  if (b && z.length === b) {
@@ -7104,12 +7100,12 @@ function U0(r, e, t) {
7104
7100
  }
7105
7101
  r.consume();
7106
7102
  } else if (U === "\\end") {
7107
- V(), z.length === 1 && H.type === "styling" && H.body[0].body.length === 0 && (T.length > 1 || !g) && T.pop(), C.length < T.length + 1 && C.push([]);
7103
+ V(), z.length === 1 && F.type === "styling" && F.body[0].body.length === 0 && (T.length > 1 || !g) && T.pop(), C.length < T.length + 1 && C.push([]);
7108
7104
  break;
7109
7105
  } else if (U === "\\\\") {
7110
7106
  r.consume();
7111
- var G = void 0;
7112
- r.gullet.future().text !== " " && (G = r.parseSizeGroup(!0)), D.push(G ? G.value : null), V(), C.push(sr(r)), z = [], T.push(z), L();
7107
+ var P = void 0;
7108
+ r.gullet.future().text !== " " && (P = r.parseSizeGroup(!0)), D.push(P ? P.value : null), V(), C.push(sr(r)), z = [], T.push(z), O();
7113
7109
  } else
7114
7110
  throw new M("Expected & or \\\\ or \\cr or \\end", r.nextToken);
7115
7111
  }
@@ -7124,7 +7120,7 @@ function U0(r, e, t) {
7124
7120
  hskipBeforeAndAfter: a,
7125
7121
  hLinesBeforeRow: C,
7126
7122
  colSeparationType: h,
7127
- tags: I,
7123
+ tags: R,
7128
7124
  leqno: x
7129
7125
  };
7130
7126
  }
@@ -7139,32 +7135,32 @@ var S0 = function(e, t) {
7139
7135
  // User override.
7140
7136
  ), b = 1 / t.fontMetrics().ptPerEm, x = 5 * b;
7141
7137
  if (e.colSeparationType && e.colSeparationType === "small") {
7142
- var w = t.havingStyle(R.SCRIPT).sizeMultiplier;
7138
+ var w = t.havingStyle(E.SCRIPT).sizeMultiplier;
7143
7139
  x = 0.2778 * (w / t.sizeMultiplier);
7144
7140
  }
7145
7141
  var z = e.colSeparationType === "CD" ? K({
7146
7142
  number: 3,
7147
7143
  unit: "ex"
7148
- }, t) : 12 * b, T = 3 * b, D = e.arraystretch * z, C = 0.7 * D, I = 0.3 * D, L = 0;
7144
+ }, t) : 12 * b, T = 3 * b, D = e.arraystretch * z, C = 0.7 * D, R = 0.3 * D, O = 0;
7149
7145
  function V(fe) {
7150
7146
  for (var pe = 0; pe < fe.length; ++pe)
7151
- pe > 0 && (L += 0.25), p.push({
7152
- pos: L,
7147
+ pe > 0 && (O += 0.25), p.push({
7148
+ pos: O,
7153
7149
  isDashed: fe[pe]
7154
7150
  });
7155
7151
  }
7156
7152
  for (V(o[0]), a = 0; a < e.body.length; ++a) {
7157
- var H = e.body[a], U = C, G = I;
7158
- h < H.length && (h = H.length);
7159
- var j = new Array(H.length);
7160
- for (n = 0; n < H.length; ++n) {
7161
- var $ = P(H[n], t);
7162
- G < $.depth && (G = $.depth), U < $.height && (U = $.height), j[n] = $;
7153
+ var F = e.body[a], U = C, P = R;
7154
+ h < F.length && (h = F.length);
7155
+ var j = new Array(F.length);
7156
+ for (n = 0; n < F.length; ++n) {
7157
+ var $ = H(F[n], t);
7158
+ P < $.depth && (P = $.depth), U < $.height && (U = $.height), j[n] = $;
7163
7159
  }
7164
7160
  var z0 = e.rowGaps[a], r0 = 0;
7165
- z0 && (r0 = K(z0, t), r0 > 0 && (r0 += I, G < r0 && (G = r0), r0 = 0)), e.addJot && (G += T), j.height = U, j.depth = G, L += U, j.pos = L, L += G + r0, m[a] = j, V(o[a + 1]);
7161
+ z0 && (r0 = K(z0, t), r0 > 0 && (r0 += R, P < r0 && (P = r0), r0 = 0)), e.addJot && (P += T), j.height = U, j.depth = P, O += U, j.pos = O, O += P + r0, m[a] = j, V(o[a + 1]);
7166
7162
  }
7167
- var e0 = L / 2 + t.fontMetrics().axisHeight, $0 = e.cols || [], s0 = [], g0, R0, j0 = [];
7163
+ var e0 = O / 2 + t.fontMetrics().axisHeight, $0 = e.cols || [], s0 = [], g0, R0, j0 = [];
7168
7164
  if (e.tags && e.tags.some((fe) => fe))
7169
7165
  for (a = 0; a < s; ++a) {
7170
7166
  var Z0 = m[a], He = Z0.pos - e0, I0 = e.tags[a], O0 = void 0;
@@ -7181,19 +7177,19 @@ var S0 = function(e, t) {
7181
7177
  n < h || R0 < $0.length;
7182
7178
  ++n, ++R0
7183
7179
  ) {
7184
- for (var c0 = $0[R0] || {}, ne = !0; c0.type === "separator"; ) {
7185
- if (ne || (g0 = y.makeSpan(["arraycolsep"], []), g0.style.width = A(t.fontMetrics().doubleRuleSep), s0.push(g0)), c0.separator === "|" || c0.separator === ":") {
7186
- var Pe = c0.separator === "|" ? "solid" : "dashed", K0 = y.makeSpan(["vertical-separator"], [], t);
7187
- K0.style.height = A(L), K0.style.borderRightWidth = A(g), K0.style.borderRightStyle = Pe, K0.style.margin = "0 " + A(-g / 2);
7188
- var It = L - e0;
7180
+ for (var d0 = $0[R0] || {}, ne = !0; d0.type === "separator"; ) {
7181
+ if (ne || (g0 = y.makeSpan(["arraycolsep"], []), g0.style.width = A(t.fontMetrics().doubleRuleSep), s0.push(g0)), d0.separator === "|" || d0.separator === ":") {
7182
+ var Pe = d0.separator === "|" ? "solid" : "dashed", K0 = y.makeSpan(["vertical-separator"], [], t);
7183
+ K0.style.height = A(O), K0.style.borderRightWidth = A(g), K0.style.borderRightStyle = Pe, K0.style.margin = "0 " + A(-g / 2);
7184
+ var It = O - e0;
7189
7185
  It && (K0.style.verticalAlign = A(-It)), s0.push(K0);
7190
7186
  } else
7191
- throw new M("Invalid separator type: " + c0.separator);
7192
- R0++, c0 = $0[R0] || {}, ne = !1;
7187
+ throw new M("Invalid separator type: " + d0.separator);
7188
+ R0++, d0 = $0[R0] || {}, ne = !1;
7193
7189
  }
7194
7190
  if (!(n >= h)) {
7195
7191
  var J0 = void 0;
7196
- (n > 0 || e.hskipBeforeAndAfter) && (J0 = q.deflt(c0.pregap, x), J0 !== 0 && (g0 = y.makeSpan(["arraycolsep"], []), g0.style.width = A(J0), s0.push(g0)));
7192
+ (n > 0 || e.hskipBeforeAndAfter) && (J0 = G.deflt(d0.pregap, x), J0 !== 0 && (g0 = y.makeSpan(["arraycolsep"], []), g0.style.width = A(J0), s0.push(g0)));
7197
7193
  var Q0 = [];
7198
7194
  for (a = 0; a < s; ++a) {
7199
7195
  var ce = m[a], de = ce[n];
@@ -7209,7 +7205,7 @@ var S0 = function(e, t) {
7209
7205
  Q0 = y.makeVList({
7210
7206
  positionType: "individualShift",
7211
7207
  children: Q0
7212
- }, t), Q0 = y.makeSpan(["col-align-" + (c0.align || "c")], [Q0]), s0.push(Q0), (n < h - 1 || e.hskipBeforeAndAfter) && (J0 = q.deflt(c0.postgap, x), J0 !== 0 && (g0 = y.makeSpan(["arraycolsep"], []), g0.style.width = A(J0), s0.push(g0)));
7208
+ }, t), Q0 = y.makeSpan(["col-align-" + (d0.align || "c")], [Q0]), s0.push(Q0), (n < h - 1 || e.hskipBeforeAndAfter) && (J0 = G.deflt(d0.postgap, x), J0 !== 0 && (g0 = y.makeSpan(["arraycolsep"], []), g0.style.width = A(J0), s0.push(g0)));
7213
7209
  }
7214
7210
  }
7215
7211
  if (m = y.makeSpan(["mtable"], s0), p.length > 0) {
@@ -7241,7 +7237,7 @@ var S0 = function(e, t) {
7241
7237
  children: j0
7242
7238
  }, t);
7243
7239
  return Ve = y.makeSpan(["tag"], [Ve], t), y.makeFragment([m, Ve]);
7244
- }, Tn = {
7240
+ }, An = {
7245
7241
  c: "center ",
7246
7242
  l: "left ",
7247
7243
  r: "right "
@@ -7255,22 +7251,22 @@ var S0 = function(e, t) {
7255
7251
  g.setAttribute("rowspacing", A(b));
7256
7252
  var x = "", w = "";
7257
7253
  if (e.cols && e.cols.length > 0) {
7258
- var z = e.cols, T = "", D = !1, C = 0, I = z.length;
7259
- z[0].type === "separator" && (x += "top ", C = 1), z[z.length - 1].type === "separator" && (x += "bottom ", I -= 1);
7260
- for (var L = C; L < I; L++)
7261
- z[L].type === "align" ? (w += Tn[z[L].align], D && (T += "none "), D = !0) : z[L].type === "separator" && D && (T += z[L].separator === "|" ? "solid " : "dashed ", D = !1);
7254
+ var z = e.cols, T = "", D = !1, C = 0, R = z.length;
7255
+ z[0].type === "separator" && (x += "top ", C = 1), z[z.length - 1].type === "separator" && (x += "bottom ", R -= 1);
7256
+ for (var O = C; O < R; O++)
7257
+ z[O].type === "align" ? (w += An[z[O].align], D && (T += "none "), D = !0) : z[O].type === "separator" && D && (T += z[O].separator === "|" ? "solid " : "dashed ", D = !1);
7262
7258
  g.setAttribute("columnalign", w.trim()), /[sd]/.test(T) && g.setAttribute("columnlines", T.trim());
7263
7259
  }
7264
7260
  if (e.colSeparationType === "align") {
7265
- for (var V = e.cols || [], H = "", U = 1; U < V.length; U++)
7266
- H += U % 2 ? "0em " : "1em ";
7267
- g.setAttribute("columnspacing", H.trim());
7261
+ for (var V = e.cols || [], F = "", U = 1; U < V.length; U++)
7262
+ F += U % 2 ? "0em " : "1em ";
7263
+ g.setAttribute("columnspacing", F.trim());
7268
7264
  } else e.colSeparationType === "alignat" || e.colSeparationType === "gather" ? g.setAttribute("columnspacing", "0em") : e.colSeparationType === "small" ? g.setAttribute("columnspacing", "0.2778em") : e.colSeparationType === "CD" ? g.setAttribute("columnspacing", "0.5em") : g.setAttribute("columnspacing", "1em");
7269
- var G = "", j = e.hLinesBeforeRow;
7265
+ var P = "", j = e.hLinesBeforeRow;
7270
7266
  x += j[0].length > 0 ? "left " : "", x += j[j.length - 1].length > 0 ? "right " : "";
7271
7267
  for (var $ = 1; $ < j.length - 1; $++)
7272
- G += j[$].length === 0 ? "none " : j[$][0] ? "dashed " : "solid ";
7273
- return /[sd]/.test(G) && g.setAttribute("rowlines", G.trim()), x !== "" && (g = new S.MathNode("menclose", [g]), g.setAttribute("notation", x.trim())), e.arraystretch && e.arraystretch < 1 && (g = new S.MathNode("mstyle", [g]), g.setAttribute("scriptlevel", "1")), g;
7268
+ P += j[$].length === 0 ? "none " : j[$][0] ? "dashed " : "solid ";
7269
+ return /[sd]/.test(P) && g.setAttribute("rowlines", P.trim()), x !== "" && (g = new S.MathNode("menclose", [g]), g.setAttribute("notation", x.trim())), e.arraystretch && e.arraystretch < 1 && (g = new S.MathNode("mstyle", [g]), g.setAttribute("scriptlevel", "1")), g;
7274
7270
  }, la = function(e, t) {
7275
7271
  e.envName.indexOf("ed") === -1 && Le(e);
7276
7272
  var a = [], n = e.envName.indexOf("at") > -1 ? "alignat" : "align", s = e.envName === "split", o = U0(e.parser, {
@@ -7288,23 +7284,23 @@ var S0 = function(e, t) {
7288
7284
  };
7289
7285
  if (t[0] && t[0].type === "ordgroup") {
7290
7286
  for (var g = "", b = 0; b < t[0].body.length; b++) {
7291
- var x = F(t[0].body[b], "textord");
7287
+ var x = L(t[0].body[b], "textord");
7292
7288
  g += x.text;
7293
7289
  }
7294
7290
  h = Number(g), m = h * 2;
7295
7291
  }
7296
7292
  var w = !m;
7297
7293
  o.body.forEach(function(C) {
7298
- for (var I = 1; I < C.length; I += 2) {
7299
- var L = F(C[I], "styling"), V = F(L.body[0], "ordgroup");
7294
+ for (var R = 1; R < C.length; R += 2) {
7295
+ var O = L(C[R], "styling"), V = L(O.body[0], "ordgroup");
7300
7296
  V.body.unshift(p);
7301
7297
  }
7302
7298
  if (w)
7303
7299
  m < C.length && (m = C.length);
7304
7300
  else {
7305
- var H = C.length / 2;
7306
- if (h < H)
7307
- throw new M("Too many math in a row: " + ("expected " + h + ", but got " + H), C[0]);
7301
+ var F = C.length / 2;
7302
+ if (h < F)
7303
+ throw new M("Too many math in a row: " + ("expected " + h + ", but got " + F), C[0]);
7308
7304
  }
7309
7305
  });
7310
7306
  for (var z = 0; z < m; ++z) {
@@ -7325,7 +7321,7 @@ k0({
7325
7321
  numArgs: 1
7326
7322
  },
7327
7323
  handler(r, e) {
7328
- var t = Re(e[0]), a = t ? [e[0]] : F(e[0], "ordgroup").body, n = a.map(function(o) {
7324
+ var t = Re(e[0]), a = t ? [e[0]] : L(e[0], "ordgroup").body, n = a.map(function(o) {
7329
7325
  var h = kt(o), m = h.text;
7330
7326
  if ("lcr".indexOf(m) !== -1)
7331
7327
  return {
@@ -7425,7 +7421,7 @@ k0({
7425
7421
  numArgs: 1
7426
7422
  },
7427
7423
  handler(r, e) {
7428
- var t = Re(e[0]), a = t ? [e[0]] : F(e[0], "ordgroup").body, n = a.map(function(o) {
7424
+ var t = Re(e[0]), a = t ? [e[0]] : L(e[0], "ordgroup").body, n = a.map(function(o) {
7429
7425
  var h = kt(o), m = h.text;
7430
7426
  if ("lc".indexOf(m) !== -1)
7431
7427
  return {
@@ -7503,7 +7499,7 @@ k0({
7503
7499
  numArgs: 0
7504
7500
  },
7505
7501
  handler(r) {
7506
- q.contains(["gather", "gather*"], r.envName) && Le(r);
7502
+ ["gather", "gather*"].includes(r.envName) && Le(r);
7507
7503
  var e = {
7508
7504
  cols: [{
7509
7505
  type: "align",
@@ -7557,7 +7553,7 @@ k0({
7557
7553
  numArgs: 0
7558
7554
  },
7559
7555
  handler(r) {
7560
- return Le(r), dn(r.parser);
7556
+ return Le(r), cn(r.parser);
7561
7557
  },
7562
7558
  htmlBuilder: S0,
7563
7559
  mathmlBuilder: M0
@@ -7593,7 +7589,7 @@ B({
7593
7589
  if (n.type !== "ordgroup")
7594
7590
  throw new M("Invalid environment name", n);
7595
7591
  for (var s = "", o = 0; o < n.body.length; ++o)
7596
- s += F(n.body[o], "textord").text;
7592
+ s += L(n.body[o], "textord").text;
7597
7593
  if (a === "\\begin") {
7598
7594
  if (!lr.hasOwnProperty(s))
7599
7595
  throw new M("No such environment: " + s, n);
@@ -7606,7 +7602,7 @@ B({
7606
7602
  parser: t
7607
7603
  }, b = h.handler(g, m, p);
7608
7604
  t.expect("\\end", !1);
7609
- var x = t.nextToken, w = F(t.parseFunction(), "environment");
7605
+ var x = t.nextToken, w = L(t.parseFunction(), "environment");
7610
7606
  if (w.name !== s)
7611
7607
  throw new M("Mismatch: \\begin{" + s + "} matched by \\end{" + w.name + "}", x);
7612
7608
  return b;
@@ -7621,7 +7617,7 @@ B({
7621
7617
  });
7622
7618
  var oa = (r, e) => {
7623
7619
  var t = r.font, a = e.withFont(t);
7624
- return P(r.body, a);
7620
+ return H(r.body, a);
7625
7621
  }, ua = (r, e) => {
7626
7622
  var t = r.font, a = e.withFont(t);
7627
7623
  return X(r.body, a);
@@ -7680,7 +7676,7 @@ B({
7680
7676
  handler: (r, e) => {
7681
7677
  var {
7682
7678
  parser: t
7683
- } = r, a = e[0], n = q.isCharacterBox(a);
7679
+ } = r, a = e[0], n = G.isCharacterBox(a);
7684
7680
  return {
7685
7681
  type: "mclass",
7686
7682
  mode: t.mode,
@@ -7726,25 +7722,25 @@ B({
7726
7722
  });
7727
7723
  var ha = (r, e) => {
7728
7724
  var t = e;
7729
- return r === "display" ? t = t.id >= R.SCRIPT.id ? t.text() : R.DISPLAY : r === "text" && t.size === R.DISPLAY.size ? t = R.TEXT : r === "script" ? t = R.SCRIPT : r === "scriptscript" && (t = R.SCRIPTSCRIPT), t;
7725
+ return r === "display" ? t = t.id >= E.SCRIPT.id ? t.text() : E.DISPLAY : r === "text" && t.size === E.DISPLAY.size ? t = E.TEXT : r === "script" ? t = E.SCRIPT : r === "scriptscript" && (t = E.SCRIPTSCRIPT), t;
7730
7726
  }, Nt = (r, e) => {
7731
7727
  var t = ha(r.size, e.style), a = t.fracNum(), n = t.fracDen(), s;
7732
7728
  s = e.havingStyle(a);
7733
- var o = P(r.numer, s, e);
7729
+ var o = H(r.numer, s, e);
7734
7730
  if (r.continued) {
7735
7731
  var h = 8.5 / e.fontMetrics().ptPerEm, m = 3.5 / e.fontMetrics().ptPerEm;
7736
7732
  o.height = o.height < h ? h : o.height, o.depth = o.depth < m ? m : o.depth;
7737
7733
  }
7738
7734
  s = e.havingStyle(n);
7739
- var p = P(r.denom, s, e), g, b, x;
7735
+ var p = H(r.denom, s, e), g, b, x;
7740
7736
  r.hasBarLine ? (r.barSize ? (b = K(r.barSize, e), g = y.makeLineSpan("frac-line", e, b)) : g = y.makeLineSpan("frac-line", e), b = g.height, x = g.height) : (g = null, b = 0, x = e.fontMetrics().defaultRuleThickness);
7741
7737
  var w, z, T;
7742
- t.size === R.DISPLAY.size || r.size === "display" ? (w = e.fontMetrics().num1, b > 0 ? z = 3 * x : z = 7 * x, T = e.fontMetrics().denom1) : (b > 0 ? (w = e.fontMetrics().num2, z = x) : (w = e.fontMetrics().num3, z = 3 * x), T = e.fontMetrics().denom2);
7738
+ t.size === E.DISPLAY.size || r.size === "display" ? (w = e.fontMetrics().num1, b > 0 ? z = 3 * x : z = 7 * x, T = e.fontMetrics().denom1) : (b > 0 ? (w = e.fontMetrics().num2, z = x) : (w = e.fontMetrics().num3, z = 3 * x), T = e.fontMetrics().denom2);
7743
7739
  var D;
7744
7740
  if (g) {
7745
- var I = e.fontMetrics().axisHeight;
7746
- w - o.depth - (I + 0.5 * b) < z && (w += z - (w - o.depth - (I + 0.5 * b))), I - 0.5 * b - (p.height - T) < z && (T += z - (I - 0.5 * b - (p.height - T)));
7747
- var L = -(I - 0.5 * b);
7741
+ var R = e.fontMetrics().axisHeight;
7742
+ w - o.depth - (R + 0.5 * b) < z && (w += z - (w - o.depth - (R + 0.5 * b))), R - 0.5 * b - (p.height - T) < z && (T += z - (R - 0.5 * b - (p.height - T)));
7743
+ var O = -(R - 0.5 * b);
7748
7744
  D = y.makeVList({
7749
7745
  positionType: "individualShift",
7750
7746
  children: [{
@@ -7754,7 +7750,7 @@ var ha = (r, e) => {
7754
7750
  }, {
7755
7751
  type: "elem",
7756
7752
  elem: g,
7757
- shift: L
7753
+ shift: O
7758
7754
  }, {
7759
7755
  type: "elem",
7760
7756
  elem: o,
@@ -7778,9 +7774,9 @@ var ha = (r, e) => {
7778
7774
  }
7779
7775
  s = e.havingStyle(t), D.height *= s.sizeMultiplier / e.sizeMultiplier, D.depth *= s.sizeMultiplier / e.sizeMultiplier;
7780
7776
  var V;
7781
- t.size === R.DISPLAY.size ? V = e.fontMetrics().delim1 : t.size === R.SCRIPTSCRIPT.size ? V = e.havingStyle(R.SCRIPT).fontMetrics().delim2 : V = e.fontMetrics().delim2;
7782
- var H, U;
7783
- return r.leftDelim == null ? H = oe(e, ["mopen"]) : H = N0.customSizedDelim(r.leftDelim, V, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? U = y.makeSpan([]) : r.rightDelim == null ? U = oe(e, ["mclose"]) : U = N0.customSizedDelim(r.rightDelim, V, !0, e.havingStyle(t), r.mode, ["mclose"]), y.makeSpan(["mord"].concat(s.sizingClasses(e)), [H, y.makeSpan(["mfrac"], [D]), U], e);
7777
+ t.size === E.DISPLAY.size ? V = e.fontMetrics().delim1 : t.size === E.SCRIPTSCRIPT.size ? V = e.havingStyle(E.SCRIPT).fontMetrics().delim2 : V = e.fontMetrics().delim2;
7778
+ var F, U;
7779
+ return r.leftDelim == null ? F = oe(e, ["mopen"]) : F = N0.customSizedDelim(r.leftDelim, V, !0, e.havingStyle(t), r.mode, ["mopen"]), r.continued ? U = y.makeSpan([]) : r.rightDelim == null ? U = oe(e, ["mclose"]) : U = N0.customSizedDelim(r.rightDelim, V, !0, e.havingStyle(t), r.mode, ["mclose"]), y.makeSpan(["mord"].concat(s.sizingClasses(e)), [F, y.makeSpan(["mfrac"], [D]), U], e);
7784
7780
  }, Dt = (r, e) => {
7785
7781
  var t = new S.MathNode("mfrac", [X(r.numer, e), X(r.denom, e)]);
7786
7782
  if (!r.hasBarLine)
@@ -7792,7 +7788,7 @@ var ha = (r, e) => {
7792
7788
  var n = ha(r.size, e.style);
7793
7789
  if (n.size !== e.style.size) {
7794
7790
  t = new S.MathNode("mstyle", [t]);
7795
- var s = n.size === R.DISPLAY.size ? "true" : "false";
7791
+ var s = n.size === E.DISPLAY.size ? "true" : "false";
7796
7792
  t.setAttribute("displaystyle", s), t.setAttribute("scriptlevel", "0");
7797
7793
  }
7798
7794
  if (r.leftDelim != null || r.rightDelim != null) {
@@ -7961,16 +7957,16 @@ B({
7961
7957
  handler(r, e) {
7962
7958
  var {
7963
7959
  parser: t
7964
- } = r, a = e[4], n = e[5], s = Ce(e[0]), o = s.type === "atom" && s.family === "open" ? hr(s.text) : null, h = Ce(e[1]), m = h.type === "atom" && h.family === "close" ? hr(h.text) : null, p = F(e[2], "size"), g, b = null;
7960
+ } = r, a = e[4], n = e[5], s = Ce(e[0]), o = s.type === "atom" && s.family === "open" ? hr(s.text) : null, h = Ce(e[1]), m = h.type === "atom" && h.family === "close" ? hr(h.text) : null, p = L(e[2], "size"), g, b = null;
7965
7961
  p.isBlank ? g = !0 : (b = p.value, g = b.number > 0);
7966
7962
  var x = "auto", w = e[3];
7967
7963
  if (w.type === "ordgroup") {
7968
7964
  if (w.body.length > 0) {
7969
- var z = F(w.body[0], "textord");
7965
+ var z = L(w.body[0], "textord");
7970
7966
  x = ur[Number(z.text)];
7971
7967
  }
7972
7968
  } else
7973
- w = F(w, "textord"), x = ur[Number(w.text)];
7969
+ w = L(w, "textord"), x = ur[Number(w.text)];
7974
7970
  return {
7975
7971
  type: "genfrac",
7976
7972
  mode: t.mode,
@@ -8004,7 +8000,7 @@ B({
8004
8000
  type: "infix",
8005
8001
  mode: t.mode,
8006
8002
  replaceWith: "\\\\abovefrac",
8007
- size: F(e[0], "size").value,
8003
+ size: L(e[0], "size").value,
8008
8004
  token: a
8009
8005
  };
8010
8006
  }
@@ -8019,7 +8015,7 @@ B({
8019
8015
  handler: (r, e) => {
8020
8016
  var {
8021
8017
  parser: t
8022
- } = r, a = e[0], n = r1(F(e[1], "infix").size), s = e[2], o = n.number > 0;
8018
+ } = r, a = e[0], n = t1(L(e[1], "infix").size), s = e[2], o = n.number > 0;
8023
8019
  return {
8024
8020
  type: "genfrac",
8025
8021
  mode: t.mode,
@@ -8038,8 +8034,8 @@ B({
8038
8034
  });
8039
8035
  var ma = (r, e) => {
8040
8036
  var t = e.style, a, n;
8041
- r.type === "supsub" ? (a = r.sup ? P(r.sup, e.havingStyle(t.sup()), e) : P(r.sub, e.havingStyle(t.sub()), e), n = F(r.base, "horizBrace")) : n = F(r, "horizBrace");
8042
- var s = P(n.base, e.havingBaseStyle(R.DISPLAY)), o = q0.svgSpan(n, e), h;
8037
+ r.type === "supsub" ? (a = r.sup ? H(r.sup, e.havingStyle(t.sup()), e) : H(r.sub, e.havingStyle(t.sub()), e), n = L(r.base, "horizBrace")) : n = L(r, "horizBrace");
8038
+ var s = H(n.base, e.havingBaseStyle(E.DISPLAY)), o = q0.svgSpan(n, e), h;
8043
8039
  if (n.isOver ? (h = y.makeVList({
8044
8040
  positionType: "firstBaseline",
8045
8041
  children: [{
@@ -8095,7 +8091,7 @@ var ma = (r, e) => {
8095
8091
  }, e);
8096
8092
  }
8097
8093
  return y.makeSpan(["mord", n.isOver ? "mover" : "munder"], [h], e);
8098
- }, Bn = (r, e) => {
8094
+ }, Tn = (r, e) => {
8099
8095
  var t = q0.mathMLnode(r.label);
8100
8096
  return new S.MathNode(r.isOver ? "mover" : "munder", [X(r.base, e), t]);
8101
8097
  };
@@ -8119,7 +8115,7 @@ B({
8119
8115
  };
8120
8116
  },
8121
8117
  htmlBuilder: ma,
8122
- mathmlBuilder: Bn
8118
+ mathmlBuilder: Tn
8123
8119
  });
8124
8120
  B({
8125
8121
  type: "href",
@@ -8132,7 +8128,7 @@ B({
8132
8128
  handler: (r, e) => {
8133
8129
  var {
8134
8130
  parser: t
8135
- } = r, a = e[1], n = F(e[0], "url").url;
8131
+ } = r, a = e[1], n = L(e[0], "url").url;
8136
8132
  return t.settings.isTrusted({
8137
8133
  command: "\\href",
8138
8134
  url: n
@@ -8163,7 +8159,7 @@ B({
8163
8159
  handler: (r, e) => {
8164
8160
  var {
8165
8161
  parser: t
8166
- } = r, a = F(e[0], "url").url;
8162
+ } = r, a = L(e[0], "url").url;
8167
8163
  if (!t.settings.isTrusted({
8168
8164
  command: "\\url",
8169
8165
  url: a
@@ -8215,7 +8211,7 @@ B({
8215
8211
  return y.makeFragment(t);
8216
8212
  },
8217
8213
  mathmlBuilder(r, e) {
8218
- return new S.MathNode("mrow", o0(r.body, e));
8214
+ return new S.MathNode("mrow", u0(r.body, e));
8219
8215
  }
8220
8216
  });
8221
8217
  B({
@@ -8230,7 +8226,7 @@ B({
8230
8226
  var {
8231
8227
  parser: t,
8232
8228
  funcName: a
8233
- } = r, n = F(e[0], "raw").string, s = e[1];
8229
+ } = r, n = L(e[0], "raw").string, s = e[1];
8234
8230
  t.settings.strict && t.settings.reportNonstrict("htmlExtension", "HTML extension is disabled on strict mode");
8235
8231
  var o, h = {};
8236
8232
  switch (a) {
@@ -8350,7 +8346,7 @@ B({
8350
8346
  unit: "em"
8351
8347
  }, h = "";
8352
8348
  if (t[0])
8353
- for (var m = F(t[0], "raw").string, p = m.split(","), g = 0; g < p.length; g++) {
8349
+ for (var m = L(t[0], "raw").string, p = m.split(","), g = 0; g < p.length; g++) {
8354
8350
  var b = p[g].split("=");
8355
8351
  if (b.length === 2) {
8356
8352
  var x = b[1].trim();
@@ -8372,7 +8368,7 @@ B({
8372
8368
  }
8373
8369
  }
8374
8370
  }
8375
- var w = F(e[0], "url").url;
8371
+ var w = L(e[0], "url").url;
8376
8372
  return h === "" && (h = w, h = h.replace(/^.*[\\/]/, ""), h = h.substring(0, h.lastIndexOf("."))), a.settings.isTrusted({
8377
8373
  command: "\\includegraphics",
8378
8374
  url: w
@@ -8395,7 +8391,7 @@ B({
8395
8391
  height: A(t + a)
8396
8392
  };
8397
8393
  n > 0 && (s.width = A(n)), a > 0 && (s.verticalAlign = A(-a));
8398
- var o = new T1(r.src, r.alt, s);
8394
+ var o = new A1(r.src, r.alt, s);
8399
8395
  return o.height = t, o.depth = a, o;
8400
8396
  },
8401
8397
  mathmlBuilder: (r, e) => {
@@ -8422,7 +8418,7 @@ B({
8422
8418
  var {
8423
8419
  parser: t,
8424
8420
  funcName: a
8425
- } = r, n = F(e[0], "size");
8421
+ } = r, n = L(e[0], "size");
8426
8422
  if (t.settings.strict) {
8427
8423
  var s = a[1] === "m", o = n.value.unit === "mu";
8428
8424
  s ? (o || t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + a + " supports only mu units, " + ("not " + n.value.unit + " units")), t.mode !== "math" && t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + a + " works only in math mode")) : o && t.settings.reportNonstrict("mathVsTextUnits", "LaTeX's " + a + " doesn't support mu units");
@@ -8462,7 +8458,7 @@ B({
8462
8458
  },
8463
8459
  htmlBuilder: (r, e) => {
8464
8460
  var t;
8465
- r.alignment === "clap" ? (t = y.makeSpan([], [P(r.body, e)]), t = y.makeSpan(["inner"], [t], e)) : t = y.makeSpan(["inner"], [P(r.body, e)]);
8461
+ r.alignment === "clap" ? (t = y.makeSpan([], [H(r.body, e)]), t = y.makeSpan(["inner"], [t], e)) : t = y.makeSpan(["inner"], [H(r.body, e)]);
8466
8462
  var a = y.makeSpan(["fix"], []), n = y.makeSpan([r.alignment], [t, a], e), s = y.makeSpan(["strut"]);
8467
8463
  return s.style.height = A(n.height + n.depth), n.depth && (s.style.verticalAlign = A(-n.depth)), n.children.unshift(s), n = y.makeSpan(["thinbox"], [n], e), y.makeSpan(["mord", "vbox"], [n], e);
8468
8464
  },
@@ -8513,13 +8509,13 @@ B({
8513
8509
  });
8514
8510
  var mr = (r, e) => {
8515
8511
  switch (e.style.size) {
8516
- case R.DISPLAY.size:
8512
+ case E.DISPLAY.size:
8517
8513
  return r.display;
8518
- case R.TEXT.size:
8514
+ case E.TEXT.size:
8519
8515
  return r.text;
8520
- case R.SCRIPT.size:
8516
+ case E.SCRIPT.size:
8521
8517
  return r.script;
8522
- case R.SCRIPTSCRIPT.size:
8518
+ case E.SCRIPTSCRIPT.size:
8523
8519
  return r.scriptscript;
8524
8520
  default:
8525
8521
  return r.text;
@@ -8556,16 +8552,16 @@ B({
8556
8552
  });
8557
8553
  var ca = (r, e, t, a, n, s, o) => {
8558
8554
  r = y.makeSpan([], [r]);
8559
- var h = t && q.isCharacterBox(t), m, p;
8555
+ var h = t && G.isCharacterBox(t), m, p;
8560
8556
  if (e) {
8561
- var g = P(e, a.havingStyle(n.sup()), a);
8557
+ var g = H(e, a.havingStyle(n.sup()), a);
8562
8558
  p = {
8563
8559
  elem: g,
8564
8560
  kern: Math.max(a.fontMetrics().bigOpSpacing1, a.fontMetrics().bigOpSpacing3 - g.depth)
8565
8561
  };
8566
8562
  }
8567
8563
  if (t) {
8568
- var b = P(t, a.havingStyle(n.sub()), a);
8564
+ var b = H(t, a.havingStyle(n.sub()), a);
8569
8565
  m = {
8570
8566
  elem: b,
8571
8567
  kern: Math.max(a.fontMetrics().bigOpSpacing2, a.fontMetrics().bigOpSpacing4 - b.height)
@@ -8652,9 +8648,9 @@ var ca = (r, e, t, a, n, s, o) => {
8652
8648
  return y.makeSpan(["mop", "op-limits"], D, a);
8653
8649
  }, da = ["\\smallint"], ae = (r, e) => {
8654
8650
  var t, a, n = !1, s;
8655
- r.type === "supsub" ? (t = r.sup, a = r.sub, s = F(r.base, "op"), n = !0) : s = F(r, "op");
8651
+ r.type === "supsub" ? (t = r.sup, a = r.sub, s = L(r.base, "op"), n = !0) : s = L(r, "op");
8656
8652
  var o = e.style, h = !1;
8657
- o.size === R.DISPLAY.size && s.symbol && !q.contains(da, s.name) && (h = !0);
8653
+ o.size === E.DISPLAY.size && s.symbol && !da.includes(s.name) && (h = !0);
8658
8654
  var m;
8659
8655
  if (s.symbol) {
8660
8656
  var p = h ? "Size2-Regular" : "Size1-Regular", g = "";
@@ -8686,16 +8682,16 @@ var ca = (r, e, t, a, n, s, o) => {
8686
8682
  }, me = (r, e) => {
8687
8683
  var t;
8688
8684
  if (r.symbol)
8689
- t = new h0("mo", [v0(r.name, r.mode)]), q.contains(da, r.name) && t.setAttribute("largeop", "false");
8685
+ t = new h0("mo", [v0(r.name, r.mode)]), da.includes(r.name) && t.setAttribute("largeop", "false");
8690
8686
  else if (r.body)
8691
- t = new h0("mo", o0(r.body, e));
8687
+ t = new h0("mo", u0(r.body, e));
8692
8688
  else {
8693
8689
  t = new h0("mi", [new w0(r.name.slice(1))]);
8694
8690
  var a = new h0("mo", [v0("⁡", "text")]);
8695
8691
  r.parentIsSupSub ? t = new h0("mrow", [t, a]) : t = Gr([t, a]);
8696
8692
  }
8697
8693
  return t;
8698
- }, Nn = {
8694
+ }, Bn = {
8699
8695
  "∏": "\\prod",
8700
8696
  "∐": "\\coprod",
8701
8697
  "∑": "\\sum",
@@ -8720,7 +8716,7 @@ B({
8720
8716
  parser: t,
8721
8717
  funcName: a
8722
8718
  } = r, n = a;
8723
- return n.length === 1 && (n = Nn[n]), {
8719
+ return n.length === 1 && (n = Bn[n]), {
8724
8720
  type: "op",
8725
8721
  mode: t.mode,
8726
8722
  limits: !0,
@@ -8755,7 +8751,7 @@ B({
8755
8751
  htmlBuilder: ae,
8756
8752
  mathmlBuilder: me
8757
8753
  });
8758
- var Dn = {
8754
+ var Nn = {
8759
8755
  "∫": "\\int",
8760
8756
  "∬": "\\iint",
8761
8757
  "∭": "\\iiint",
@@ -8820,7 +8816,7 @@ B({
8820
8816
  parser: e,
8821
8817
  funcName: t
8822
8818
  } = r, a = t;
8823
- return a.length === 1 && (a = Dn[a]), {
8819
+ return a.length === 1 && (a = Nn[a]), {
8824
8820
  type: "op",
8825
8821
  mode: e.mode,
8826
8822
  limits: !1,
@@ -8834,7 +8830,7 @@ B({
8834
8830
  });
8835
8831
  var fa = (r, e) => {
8836
8832
  var t, a, n = !1, s;
8837
- r.type === "supsub" ? (t = r.sup, a = r.sub, s = F(r.base, "operatorname"), n = !0) : s = F(r, "operatorname");
8833
+ r.type === "supsub" ? (t = r.sup, a = r.sub, s = L(r.base, "operatorname"), n = !0) : s = L(r, "operatorname");
8838
8834
  var o;
8839
8835
  if (s.body.length > 0) {
8840
8836
  for (var h = s.body.map((b) => {
@@ -8852,8 +8848,8 @@ var fa = (r, e) => {
8852
8848
  } else
8853
8849
  o = y.makeSpan(["mop"], [], e);
8854
8850
  return n ? ca(o, t, a, e, e.style, 0, 0) : o;
8855
- }, Cn = (r, e) => {
8856
- for (var t = o0(r.body, e.withFont("mathrm")), a = !0, n = 0; n < t.length; n++) {
8851
+ }, Dn = (r, e) => {
8852
+ for (var t = u0(r.body, e.withFont("mathrm")), a = !0, n = 0; n < t.length; n++) {
8857
8853
  var s = t[n];
8858
8854
  if (!(s instanceof S.SpaceNode)) if (s instanceof S.MathNode)
8859
8855
  switch (s.type) {
@@ -8905,7 +8901,7 @@ B({
8905
8901
  };
8906
8902
  },
8907
8903
  htmlBuilder: fa,
8908
- mathmlBuilder: Cn
8904
+ mathmlBuilder: Dn
8909
8905
  });
8910
8906
  c("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@");
8911
8907
  W0({
@@ -8934,7 +8930,7 @@ B({
8934
8930
  };
8935
8931
  },
8936
8932
  htmlBuilder(r, e) {
8937
- var t = P(r.body, e.havingCrampedStyle()), a = y.makeLineSpan("overline-line", e), n = e.fontMetrics().defaultRuleThickness, s = y.makeVList({
8933
+ var t = H(r.body, e.havingCrampedStyle()), a = y.makeLineSpan("overline-line", e), n = e.fontMetrics().defaultRuleThickness, s = y.makeVList({
8938
8934
  positionType: "firstBaseline",
8939
8935
  children: [{
8940
8936
  type: "elem",
@@ -8981,7 +8977,7 @@ B({
8981
8977
  return y.makeFragment(t);
8982
8978
  },
8983
8979
  mathmlBuilder: (r, e) => {
8984
- var t = o0(r.body, e);
8980
+ var t = u0(r.body, e);
8985
8981
  return new S.MathNode("mphantom", t);
8986
8982
  }
8987
8983
  });
@@ -9003,7 +8999,7 @@ B({
9003
8999
  };
9004
9000
  },
9005
9001
  htmlBuilder: (r, e) => {
9006
- var t = y.makeSpan([], [P(r.body, e.withPhantom())]);
9002
+ var t = y.makeSpan([], [H(r.body, e.withPhantom())]);
9007
9003
  if (t.height = 0, t.depth = 0, t.children)
9008
9004
  for (var a = 0; a < t.children.length; a++)
9009
9005
  t.children[a].height = 0, t.children[a].depth = 0;
@@ -9016,7 +9012,7 @@ B({
9016
9012
  }, e), y.makeSpan(["mord"], [t], e);
9017
9013
  },
9018
9014
  mathmlBuilder: (r, e) => {
9019
- var t = o0(Q(r.body), e), a = new S.MathNode("mphantom", t), n = new S.MathNode("mpadded", [a]);
9015
+ var t = u0(Q(r.body), e), a = new S.MathNode("mphantom", t), n = new S.MathNode("mpadded", [a]);
9020
9016
  return n.setAttribute("height", "0px"), n.setAttribute("depth", "0px"), n;
9021
9017
  }
9022
9018
  });
@@ -9038,11 +9034,11 @@ B({
9038
9034
  };
9039
9035
  },
9040
9036
  htmlBuilder: (r, e) => {
9041
- var t = y.makeSpan(["inner"], [P(r.body, e.withPhantom())]), a = y.makeSpan(["fix"], []);
9037
+ var t = y.makeSpan(["inner"], [H(r.body, e.withPhantom())]), a = y.makeSpan(["fix"], []);
9042
9038
  return y.makeSpan(["mord", "rlap"], [t, a], e);
9043
9039
  },
9044
9040
  mathmlBuilder: (r, e) => {
9045
- var t = o0(Q(r.body), e), a = new S.MathNode("mphantom", t), n = new S.MathNode("mpadded", [a]);
9041
+ var t = u0(Q(r.body), e), a = new S.MathNode("mphantom", t), n = new S.MathNode("mpadded", [a]);
9046
9042
  return n.setAttribute("width", "0px"), n;
9047
9043
  }
9048
9044
  });
@@ -9057,7 +9053,7 @@ B({
9057
9053
  handler(r, e) {
9058
9054
  var {
9059
9055
  parser: t
9060
- } = r, a = F(e[0], "size").value, n = e[1];
9056
+ } = r, a = L(e[0], "size").value, n = e[1];
9061
9057
  return {
9062
9058
  type: "raisebox",
9063
9059
  mode: t.mode,
@@ -9066,7 +9062,7 @@ B({
9066
9062
  };
9067
9063
  },
9068
9064
  htmlBuilder(r, e) {
9069
- var t = P(r.body, e), a = K(r.dy, e);
9065
+ var t = H(r.body, e), a = K(r.dy, e);
9070
9066
  return y.makeVList({
9071
9067
  positionType: "shift",
9072
9068
  positionData: -a,
@@ -9112,11 +9108,11 @@ B({
9112
9108
  handler(r, e, t) {
9113
9109
  var {
9114
9110
  parser: a
9115
- } = r, n = t[0], s = F(e[0], "size"), o = F(e[1], "size");
9111
+ } = r, n = t[0], s = L(e[0], "size"), o = L(e[1], "size");
9116
9112
  return {
9117
9113
  type: "rule",
9118
9114
  mode: a.mode,
9119
- shift: n && F(n, "size").value,
9115
+ shift: n && L(n, "size").value,
9120
9116
  width: s.value,
9121
9117
  height: o.value
9122
9118
  };
@@ -9139,7 +9135,7 @@ function pa(r, e, t) {
9139
9135
  }
9140
9136
  return y.makeFragment(a);
9141
9137
  }
9142
- var cr = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], qn = (r, e) => {
9138
+ var cr = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], Cn = (r, e) => {
9143
9139
  var t = e.havingSize(r.size);
9144
9140
  return pa(r.body, t, e);
9145
9141
  };
@@ -9164,9 +9160,9 @@ B({
9164
9160
  body: s
9165
9161
  };
9166
9162
  },
9167
- htmlBuilder: qn,
9163
+ htmlBuilder: Cn,
9168
9164
  mathmlBuilder: (r, e) => {
9169
- var t = e.havingSize(r.size), a = o0(r.body, t), n = new S.MathNode("mstyle", a);
9165
+ var t = e.havingSize(r.size), a = u0(r.body, t), n = new S.MathNode("mstyle", a);
9170
9166
  return n.setAttribute("mathsize", A(t.sizeMultiplier)), n;
9171
9167
  }
9172
9168
  });
@@ -9181,7 +9177,7 @@ B({
9181
9177
  handler: (r, e, t) => {
9182
9178
  var {
9183
9179
  parser: a
9184
- } = r, n = !1, s = !1, o = t[0] && F(t[0], "ordgroup");
9180
+ } = r, n = !1, s = !1, o = t[0] && L(t[0], "ordgroup");
9185
9181
  if (o)
9186
9182
  for (var h = "", m = 0; m < o.body.length; ++m) {
9187
9183
  var p = o.body[m];
@@ -9206,7 +9202,7 @@ B({
9206
9202
  };
9207
9203
  },
9208
9204
  htmlBuilder: (r, e) => {
9209
- var t = y.makeSpan([], [P(r.body, e)]);
9205
+ var t = y.makeSpan([], [H(r.body, e)]);
9210
9206
  if (!r.smashHeight && !r.smashDepth)
9211
9207
  return t;
9212
9208
  if (r.smashHeight && (t.height = 0, t.children))
@@ -9248,10 +9244,10 @@ B({
9248
9244
  };
9249
9245
  },
9250
9246
  htmlBuilder(r, e) {
9251
- var t = P(r.body, e.havingCrampedStyle());
9247
+ var t = H(r.body, e.havingCrampedStyle());
9252
9248
  t.height === 0 && (t.height = e.fontMetrics().xHeight), t = y.wrapFragment(t, e);
9253
9249
  var a = e.fontMetrics(), n = a.defaultRuleThickness, s = n;
9254
- e.style.id < R.TEXT.id && (s = e.fontMetrics().xHeight);
9250
+ e.style.id < E.TEXT.id && (s = e.fontMetrics().xHeight);
9255
9251
  var o = n + s / 4, h = t.height + t.depth + o + n, {
9256
9252
  span: m,
9257
9253
  ruleWidth: p,
@@ -9278,15 +9274,15 @@ B({
9278
9274
  }]
9279
9275
  }, e);
9280
9276
  if (r.index) {
9281
- var z = e.havingStyle(R.SCRIPTSCRIPT), T = P(r.index, z, e), D = 0.6 * (w.height - w.depth), C = y.makeVList({
9277
+ var z = e.havingStyle(E.SCRIPTSCRIPT), T = H(r.index, z, e), D = 0.6 * (w.height - w.depth), C = y.makeVList({
9282
9278
  positionType: "shift",
9283
9279
  positionData: -D,
9284
9280
  children: [{
9285
9281
  type: "elem",
9286
9282
  elem: T
9287
9283
  }]
9288
- }, e), I = y.makeSpan(["root"], [C]);
9289
- return y.makeSpan(["mord", "sqrt"], [I, w], e);
9284
+ }, e), R = y.makeSpan(["root"], [C]);
9285
+ return y.makeSpan(["mord", "sqrt"], [R, w], e);
9290
9286
  } else
9291
9287
  return y.makeSpan(["mord", "sqrt"], [w], e);
9292
9288
  },
@@ -9299,10 +9295,10 @@ B({
9299
9295
  }
9300
9296
  });
9301
9297
  var dr = {
9302
- display: R.DISPLAY,
9303
- text: R.TEXT,
9304
- script: R.SCRIPT,
9305
- scriptscript: R.SCRIPTSCRIPT
9298
+ display: E.DISPLAY,
9299
+ text: E.TEXT,
9300
+ script: E.SCRIPT,
9301
+ scriptscript: E.SCRIPTSCRIPT
9306
9302
  };
9307
9303
  B({
9308
9304
  type: "styling",
@@ -9332,7 +9328,7 @@ B({
9332
9328
  return pa(r.body, a, e);
9333
9329
  },
9334
9330
  mathmlBuilder(r, e) {
9335
- var t = dr[r.style], a = e.havingStyle(t), n = o0(r.body, a), s = new S.MathNode("mstyle", n), o = {
9331
+ var t = dr[r.style], a = e.havingStyle(t), n = u0(r.body, a), s = new S.MathNode("mstyle", n), o = {
9336
9332
  display: ["0", "true"],
9337
9333
  text: ["0", "false"],
9338
9334
  script: ["1", "false"],
@@ -9341,18 +9337,18 @@ B({
9341
9337
  return s.setAttribute("scriptlevel", h[0]), s.setAttribute("displaystyle", h[1]), s;
9342
9338
  }
9343
9339
  });
9344
- var En = function(e, t) {
9340
+ var qn = function(e, t) {
9345
9341
  var a = e.base;
9346
9342
  if (a)
9347
9343
  if (a.type === "op") {
9348
- var n = a.limits && (t.style.size === R.DISPLAY.size || a.alwaysHandleSupSub);
9344
+ var n = a.limits && (t.style.size === E.DISPLAY.size || a.alwaysHandleSupSub);
9349
9345
  return n ? ae : null;
9350
9346
  } else if (a.type === "operatorname") {
9351
- var s = a.alwaysHandleSupSub && (t.style.size === R.DISPLAY.size || a.limits);
9347
+ var s = a.alwaysHandleSupSub && (t.style.size === E.DISPLAY.size || a.limits);
9352
9348
  return s ? fa : null;
9353
9349
  } else {
9354
9350
  if (a.type === "accent")
9355
- return q.isCharacterBox(a.base) ? St : null;
9351
+ return G.isCharacterBox(a.base) ? St : null;
9356
9352
  if (a.type === "horizBrace") {
9357
9353
  var o = !e.sub;
9358
9354
  return o === a.isOver ? ma : null;
@@ -9364,44 +9360,44 @@ var En = function(e, t) {
9364
9360
  W0({
9365
9361
  type: "supsub",
9366
9362
  htmlBuilder(r, e) {
9367
- var t = En(r, e);
9363
+ var t = qn(r, e);
9368
9364
  if (t)
9369
9365
  return t(r, e);
9370
9366
  var {
9371
9367
  base: a,
9372
9368
  sup: n,
9373
9369
  sub: s
9374
- } = r, o = P(a, e), h, m, p = e.fontMetrics(), g = 0, b = 0, x = a && q.isCharacterBox(a);
9370
+ } = r, o = H(a, e), h, m, p = e.fontMetrics(), g = 0, b = 0, x = a && G.isCharacterBox(a);
9375
9371
  if (n) {
9376
9372
  var w = e.havingStyle(e.style.sup());
9377
- h = P(n, w, e), x || (g = o.height - w.fontMetrics().supDrop * w.sizeMultiplier / e.sizeMultiplier);
9373
+ h = H(n, w, e), x || (g = o.height - w.fontMetrics().supDrop * w.sizeMultiplier / e.sizeMultiplier);
9378
9374
  }
9379
9375
  if (s) {
9380
9376
  var z = e.havingStyle(e.style.sub());
9381
- m = P(s, z, e), x || (b = o.depth + z.fontMetrics().subDrop * z.sizeMultiplier / e.sizeMultiplier);
9377
+ m = H(s, z, e), x || (b = o.depth + z.fontMetrics().subDrop * z.sizeMultiplier / e.sizeMultiplier);
9382
9378
  }
9383
9379
  var T;
9384
- e.style === R.DISPLAY ? T = p.sup1 : e.style.cramped ? T = p.sup3 : T = p.sup2;
9385
- var D = e.sizeMultiplier, C = A(0.5 / p.ptPerEm / D), I = null;
9380
+ e.style === E.DISPLAY ? T = p.sup1 : e.style.cramped ? T = p.sup3 : T = p.sup2;
9381
+ var D = e.sizeMultiplier, C = A(0.5 / p.ptPerEm / D), R = null;
9386
9382
  if (m) {
9387
- var L = r.base && r.base.type === "op" && r.base.name && (r.base.name === "\\oiint" || r.base.name === "\\oiiint");
9388
- (o instanceof p0 || L) && (I = A(-o.italic));
9383
+ var O = r.base && r.base.type === "op" && r.base.name && (r.base.name === "\\oiint" || r.base.name === "\\oiiint");
9384
+ (o instanceof p0 || O) && (R = A(-o.italic));
9389
9385
  }
9390
9386
  var V;
9391
9387
  if (h && m) {
9392
9388
  g = Math.max(g, T, h.depth + 0.25 * p.xHeight), b = Math.max(b, p.sub2);
9393
- var H = p.defaultRuleThickness, U = 4 * H;
9389
+ var F = p.defaultRuleThickness, U = 4 * F;
9394
9390
  if (g - h.depth - (m.height - b) < U) {
9395
9391
  b = U - (g - h.depth) + m.height;
9396
- var G = 0.8 * p.xHeight - (g - h.depth);
9397
- G > 0 && (g += G, b -= G);
9392
+ var P = 0.8 * p.xHeight - (g - h.depth);
9393
+ P > 0 && (g += P, b -= P);
9398
9394
  }
9399
9395
  var j = [{
9400
9396
  type: "elem",
9401
9397
  elem: m,
9402
9398
  shift: b,
9403
9399
  marginRight: C,
9404
- marginLeft: I
9400
+ marginLeft: R
9405
9401
  }, {
9406
9402
  type: "elem",
9407
9403
  elem: h,
@@ -9417,7 +9413,7 @@ W0({
9417
9413
  var $ = [{
9418
9414
  type: "elem",
9419
9415
  elem: m,
9420
- marginLeft: I,
9416
+ marginLeft: R,
9421
9417
  marginRight: C
9422
9418
  }];
9423
9419
  V = y.makeVList({
@@ -9451,14 +9447,14 @@ W0({
9451
9447
  else if (r.sub)
9452
9448
  if (r.sup) {
9453
9449
  var p = r.base;
9454
- p && p.type === "op" && p.limits && e.style === R.DISPLAY || p && p.type === "operatorname" && p.alwaysHandleSupSub && (e.style === R.DISPLAY || p.limits) ? o = "munderover" : o = "msubsup";
9450
+ p && p.type === "op" && p.limits && e.style === E.DISPLAY || p && p.type === "operatorname" && p.alwaysHandleSupSub && (e.style === E.DISPLAY || p.limits) ? o = "munderover" : o = "msubsup";
9455
9451
  } else {
9456
9452
  var m = r.base;
9457
- m && m.type === "op" && m.limits && (e.style === R.DISPLAY || m.alwaysHandleSupSub) || m && m.type === "operatorname" && m.alwaysHandleSupSub && (m.limits || e.style === R.DISPLAY) ? o = "munder" : o = "msub";
9453
+ m && m.type === "op" && m.limits && (e.style === E.DISPLAY || m.alwaysHandleSupSub) || m && m.type === "operatorname" && m.alwaysHandleSupSub && (m.limits || e.style === E.DISPLAY) ? o = "munder" : o = "msub";
9458
9454
  }
9459
9455
  else {
9460
9456
  var h = r.base;
9461
- h && h.type === "op" && h.limits && (e.style === R.DISPLAY || h.alwaysHandleSupSub) || h && h.type === "operatorname" && h.alwaysHandleSupSub && (h.limits || e.style === R.DISPLAY) ? o = "mover" : o = "msup";
9457
+ h && h.type === "op" && h.limits && (e.style === E.DISPLAY || h.alwaysHandleSupSub) || h && h.type === "operatorname" && h.alwaysHandleSupSub && (h.limits || e.style === E.DISPLAY) ? o = "mover" : o = "msup";
9462
9458
  }
9463
9459
  return new S.MathNode(o, s);
9464
9460
  }
@@ -9564,7 +9560,7 @@ var pr = {
9564
9560
  }, vr = {
9565
9561
  "\\textbf": "textbf",
9566
9562
  "\\textmd": "textmd"
9567
- }, Rn = {
9563
+ }, En = {
9568
9564
  "\\textit": "textit",
9569
9565
  "\\textup": "textup"
9570
9566
  }, gr = (r, e) => {
@@ -9577,7 +9573,7 @@ var pr = {
9577
9573
  if (t === "\\emph")
9578
9574
  return e.fontShape === "textit" ? e.withTextFontShape("textup") : e.withTextFontShape("textit");
9579
9575
  } else return e;
9580
- return e.withTextFontShape(Rn[t]);
9576
+ return e.withTextFontShape(En[t]);
9581
9577
  };
9582
9578
  B({
9583
9579
  type: "text",
@@ -9641,7 +9637,7 @@ B({
9641
9637
  };
9642
9638
  },
9643
9639
  htmlBuilder(r, e) {
9644
- var t = P(r.body, e), a = y.makeLineSpan("underline-line", e), n = e.fontMetrics().defaultRuleThickness, s = y.makeVList({
9640
+ var t = H(r.body, e), a = y.makeLineSpan("underline-line", e), n = e.fontMetrics().defaultRuleThickness, s = y.makeVList({
9645
9641
  positionType: "top",
9646
9642
  positionData: t.height,
9647
9643
  children: [{
@@ -9687,7 +9683,7 @@ B({
9687
9683
  };
9688
9684
  },
9689
9685
  htmlBuilder(r, e) {
9690
- var t = P(r.body, e), a = e.fontMetrics().axisHeight, n = 0.5 * (t.height - a - (t.depth + a));
9686
+ var t = H(r.body, e), a = e.fontMetrics().axisHeight, n = 0.5 * (t.height - a - (t.depth + a));
9691
9687
  return y.makeVList({
9692
9688
  positionType: "shift",
9693
9689
  positionData: n,
@@ -9724,22 +9720,22 @@ B({
9724
9720
  }
9725
9721
  });
9726
9722
  var br = (r) => r.body.replace(/ /g, r.star ? "␣" : " "), H0 = Hr, ga = `[ \r
9727
- ]`, In = "\\\\[a-zA-Z@]+", On = "\\\\[^\uD800-\uDFFF]", Ln = "(" + In + ")" + ga + "*", Fn = `\\\\(
9723
+ ]`, Rn = "\\\\[a-zA-Z@]+", In = "\\\\[^\uD800-\uDFFF]", On = "(" + Rn + ")" + ga + "*", Ln = `\\\\(
9728
9724
  |[ \r ]+
9729
- ?)[ \r ]*`, ft = "[̀-ͯ]", Hn = new RegExp(ft + "+$"), Pn = "(" + ga + "+)|" + // whitespace
9730
- (Fn + "|") + // \whitespace
9725
+ ?)[ \r ]*`, ft = "[̀-ͯ]", Fn = new RegExp(ft + "+$"), Hn = "(" + ga + "+)|" + // whitespace
9726
+ (Ln + "|") + // \whitespace
9731
9727
  "([!-\\[\\]-‧‪-퟿豈-￿]" + // single codepoint
9732
9728
  (ft + "*") + // ...plus accents
9733
9729
  "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + // surrogate pair
9734
9730
  (ft + "*") + // ...plus accents
9735
9731
  "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + // \verb unstarred
9736
- ("|" + Ln) + // \macroName + spaces
9737
- ("|" + On + ")");
9732
+ ("|" + On) + // \macroName + spaces
9733
+ ("|" + In + ")");
9738
9734
  class yr {
9739
9735
  // Category codes. The lexer only supports comment characters (14) for now.
9740
9736
  // MacroExpander additionally distinguishes active (13).
9741
9737
  constructor(e, t) {
9742
- this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = t, this.tokenRegex = new RegExp(Pn, "g"), this.catcodes = {
9738
+ this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = t, this.tokenRegex = new RegExp(Hn, "g"), this.catcodes = {
9743
9739
  "%": 14,
9744
9740
  // comment character
9745
9741
  "~": 13
@@ -9755,20 +9751,20 @@ class yr {
9755
9751
  lex() {
9756
9752
  var e = this.input, t = this.tokenRegex.lastIndex;
9757
9753
  if (t === e.length)
9758
- return new f0("EOF", new u0(this, t, t));
9754
+ return new m0("EOF", new o0(this, t, t));
9759
9755
  var a = this.tokenRegex.exec(e);
9760
9756
  if (a === null || a.index !== t)
9761
- throw new M("Unexpected character: '" + e[t] + "'", new f0(e[t], new u0(this, t, t + 1)));
9757
+ throw new M("Unexpected character: '" + e[t] + "'", new m0(e[t], new o0(this, t, t + 1)));
9762
9758
  var n = a[6] || a[3] || (a[2] ? "\\ " : " ");
9763
9759
  if (this.catcodes[n] === 14) {
9764
9760
  var s = e.indexOf(`
9765
9761
  `, this.tokenRegex.lastIndex);
9766
9762
  return s === -1 ? (this.tokenRegex.lastIndex = e.length, this.settings.reportNonstrict("commentAtEnd", "% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")) : this.tokenRegex.lastIndex = s + 1, this.lex();
9767
9763
  }
9768
- return new f0(n, new u0(this, t, this.tokenRegex.lastIndex));
9764
+ return new m0(n, new o0(this, t, this.tokenRegex.lastIndex));
9769
9765
  }
9770
9766
  }
9771
- class Gn {
9767
+ class Pn {
9772
9768
  /**
9773
9769
  * Both arguments are optional. The first argument is an object of
9774
9770
  * built-in mappings which never change. The second argument is an object
@@ -9839,7 +9835,7 @@ class Gn {
9839
9835
  t == null ? delete this.current[e] : this.current[e] = t;
9840
9836
  }
9841
9837
  }
9842
- var Vn = sa;
9838
+ var Gn = sa;
9843
9839
  c("\\noexpand", function(r) {
9844
9840
  var e = r.popToken();
9845
9841
  return r.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), {
@@ -10109,7 +10105,7 @@ var wr = {
10109
10105
  };
10110
10106
  c("\\dots", function(r) {
10111
10107
  var e = "\\dotso", t = r.expandAfterFuture().text;
10112
- return t in wr ? e = wr[t] : (t.slice(0, 4) === "\\not" || t in Y.math && q.contains(["bin", "rel"], Y.math[t].group)) && (e = "\\dotsb"), e;
10108
+ return t in wr ? e = wr[t] : (t.slice(0, 4) === "\\not" || t in Y.math && ["bin", "rel"].includes(Y.math[t].group)) && (e = "\\dotsb"), e;
10113
10109
  });
10114
10110
  var qt = {
10115
10111
  // \rightdelim@ checks for the following:
@@ -10430,9 +10426,9 @@ var xa = {
10430
10426
  "\\nolimits": !0
10431
10427
  // Parser.js
10432
10428
  };
10433
- class Un {
10429
+ class Vn {
10434
10430
  constructor(e, t, a) {
10435
- this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = t, this.expansionCount = 0, this.feed(e), this.macros = new Gn(Vn, t.macros), this.mode = a, this.stack = [];
10431
+ this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = t, this.expansionCount = 0, this.feed(e), this.macros = new Pn(Gn, t.macros), this.mode = a, this.stack = [];
10436
10432
  }
10437
10433
  /**
10438
10434
  * Feed a new input string to the same MacroExpander
@@ -10511,7 +10507,7 @@ class Un {
10511
10507
  start: t,
10512
10508
  end: a
10513
10509
  } = this.consumeArg());
10514
- return this.pushToken(new f0("EOF", a.loc)), this.pushTokens(n), t.range(a, "");
10510
+ return this.pushToken(new m0("EOF", a.loc)), this.pushTokens(n), new m0("", o0.range(t, a));
10515
10511
  }
10516
10512
  /**
10517
10513
  * Consume all following space tokens, without expansion.
@@ -10653,7 +10649,7 @@ class Un {
10653
10649
  * tokens, or return `undefined` if no such macro is defined.
10654
10650
  */
10655
10651
  expandMacro(e) {
10656
- return this.macros.has(e) ? this.expandTokens([new f0(e)]) : void 0;
10652
+ return this.macros.has(e) ? this.expandTokens([new m0(e)]) : void 0;
10657
10653
  }
10658
10654
  /**
10659
10655
  * Fully expand the given token stream and return the resulting list of
@@ -11222,7 +11218,7 @@ var kr = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ
11222
11218
  };
11223
11219
  class Fe {
11224
11220
  constructor(e, t) {
11225
- this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new Un(e, t, this.mode), this.settings = t, this.leftrightDepth = 0;
11221
+ this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new Vn(e, t, this.mode), this.settings = t, this.leftrightDepth = 0;
11226
11222
  }
11227
11223
  /**
11228
11224
  * Checks a result to make sure it has the right type, and throws an
@@ -11271,7 +11267,7 @@ class Fe {
11271
11267
  */
11272
11268
  subparse(e) {
11273
11269
  var t = this.nextToken;
11274
- this.consume(), this.gullet.pushToken(new f0("}")), this.gullet.pushTokens(e);
11270
+ this.consume(), this.gullet.pushToken(new m0("}")), this.gullet.pushTokens(e);
11275
11271
  var a = this.parseExpression(!1);
11276
11272
  return this.expect("}"), this.nextToken = t, a;
11277
11273
  }
@@ -11413,11 +11409,11 @@ class Fe {
11413
11409
  };
11414
11410
  } else if (Me[s.text]) {
11415
11411
  var p = kr.test(s.text), g = [];
11416
- for (g.push(new f0(Me[s.text])), this.consume(); ; ) {
11412
+ for (g.push(new m0(Me[s.text])), this.consume(); ; ) {
11417
11413
  var b = this.fetch().text;
11418
11414
  if (!Me[b] || kr.test(b) !== p)
11419
11415
  break;
11420
- g.unshift(new f0(Me[b])), this.consume();
11416
+ g.unshift(new m0(Me[b])), this.consume();
11421
11417
  }
11422
11418
  var x = this.subparse(g);
11423
11419
  p ? n = {
@@ -11586,7 +11582,7 @@ class Fe {
11586
11582
  var t = this.parseStringGroup("color", e);
11587
11583
  if (t == null)
11588
11584
  return null;
11589
- var a = /^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);
11585
+ var a = /^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);
11590
11586
  if (!a)
11591
11587
  throw new M("Invalid color: '" + t.text + "'", t);
11592
11588
  var n = a[0];
@@ -11672,7 +11668,7 @@ class Fe {
11672
11668
  this.expect(o), this.gullet.endGroup(), s = {
11673
11669
  type: "ordgroup",
11674
11670
  mode: this.mode,
11675
- loc: u0.range(a, m),
11671
+ loc: o0.range(a, m),
11676
11672
  body: h,
11677
11673
  // A group formed by \begingroup...\endgroup is a semi-simple group
11678
11674
  // which doesn't affect spacing in math mode, i.e., is transparent.
@@ -11701,17 +11697,17 @@ class Fe {
11701
11697
  s === "-" && e[a + 1].text === "-" && (a + 1 < t && e[a + 2].text === "-" ? (e.splice(a, 3, {
11702
11698
  type: "textord",
11703
11699
  mode: "text",
11704
- loc: u0.range(n, e[a + 2]),
11700
+ loc: o0.range(n, e[a + 2]),
11705
11701
  text: "---"
11706
11702
  }), t -= 2) : (e.splice(a, 2, {
11707
11703
  type: "textord",
11708
11704
  mode: "text",
11709
- loc: u0.range(n, e[a + 1]),
11705
+ loc: o0.range(n, e[a + 1]),
11710
11706
  text: "--"
11711
11707
  }), t -= 1)), (s === "'" || s === "`") && e[a + 1].text === s && (e.splice(a, 2, {
11712
11708
  type: "textord",
11713
11709
  mode: "text",
11714
- loc: u0.range(n, e[a + 1]),
11710
+ loc: o0.range(n, e[a + 1]),
11715
11711
  text: s + s
11716
11712
  }), t -= 1);
11717
11713
  }
@@ -11736,13 +11732,13 @@ class Fe {
11736
11732
  };
11737
11733
  }
11738
11734
  Sr.hasOwnProperty(t[0]) && !Y[this.mode][t[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + t[0] + '" used in math mode', e), t = Sr[t[0]] + t.slice(1));
11739
- var s = Hn.exec(t);
11735
+ var s = Fn.exec(t);
11740
11736
  s && (t = t.substring(0, s.index), t === "i" ? t = "ı" : t === "j" && (t = "ȷ"));
11741
11737
  var o;
11742
11738
  if (Y[this.mode][t]) {
11743
11739
  this.settings.strict && this.mode === "math" && ut.indexOf(t) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + t[0] + '" used in math mode', e);
11744
- var h = Y[this.mode][t].group, m = u0.range(e), p;
11745
- if (D1.hasOwnProperty(h)) {
11740
+ var h = Y[this.mode][t].group, m = o0.range(e), p;
11741
+ if (N1.hasOwnProperty(h)) {
11746
11742
  var g = h;
11747
11743
  p = {
11748
11744
  type: "atom",
@@ -11763,7 +11759,7 @@ class Fe {
11763
11759
  this.settings.strict && (Nr(t.charCodeAt(0)) ? this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Unicode text character "' + t[0] + '" used in math mode', e) : this.settings.reportNonstrict("unknownSymbol", 'Unrecognized Unicode character "' + t[0] + '"' + (" (" + t.charCodeAt(0) + ")"), e)), o = {
11764
11760
  type: "textord",
11765
11761
  mode: "text",
11766
- loc: u0.range(e),
11762
+ loc: o0.range(e),
11767
11763
  text: t
11768
11764
  };
11769
11765
  else
@@ -11779,7 +11775,7 @@ class Fe {
11779
11775
  o = {
11780
11776
  type: "accent",
11781
11777
  mode: this.mode,
11782
- loc: u0.range(e),
11778
+ loc: o0.range(e),
11783
11779
  label: w,
11784
11780
  isStretchy: !1,
11785
11781
  isShifty: !0,
@@ -11804,7 +11800,7 @@ var Et = function(e, t) {
11804
11800
  type: "tag",
11805
11801
  mode: "text",
11806
11802
  body: n,
11807
- tag: a.subparse([new f0("\\df@tag")])
11803
+ tag: a.subparse([new m0("\\df@tag")])
11808
11804
  }];
11809
11805
  }
11810
11806
  return n;
@@ -11816,10 +11812,10 @@ var Et = function(e, t) {
11816
11812
  typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), wa = function() {
11817
11813
  throw new M("KaTeX doesn't work in quirks mode.");
11818
11814
  });
11819
- var $n = function(e, t) {
11815
+ var Un = function(e, t) {
11820
11816
  var a = Rt(e, t).toMarkup();
11821
11817
  return a;
11822
- }, Xn = function(e, t) {
11818
+ }, $n = function(e, t) {
11823
11819
  var a = new pt(t);
11824
11820
  return Et(e, a);
11825
11821
  }, ka = function(e, t, a) {
@@ -11831,19 +11827,19 @@ var $n = function(e, t) {
11831
11827
  var a = new pt(t);
11832
11828
  try {
11833
11829
  var n = Et(e, a);
11834
- return _1(n, e, a);
11830
+ return Q1(n, e, a);
11835
11831
  } catch (s) {
11836
11832
  return ka(s, e, a);
11837
11833
  }
11838
- }, Yn = function(e, t) {
11834
+ }, Xn = function(e, t) {
11839
11835
  var a = new pt(t);
11840
11836
  try {
11841
11837
  var n = Et(e, a);
11842
- return en(n, e, a);
11838
+ return _1(n, e, a);
11843
11839
  } catch (s) {
11844
11840
  return ka(s, e, a);
11845
11841
  }
11846
- }, Wn = "0.16.22", jn = {
11842
+ }, Yn = "0.16.25", Wn = {
11847
11843
  Span: he,
11848
11844
  Anchor: bt,
11849
11845
  SymbolNode: p0,
@@ -11854,7 +11850,7 @@ var $n = function(e, t) {
11854
11850
  /**
11855
11851
  * Current KaTeX version
11856
11852
  */
11857
- version: Wn,
11853
+ version: Yn,
11858
11854
  /**
11859
11855
  * Renders the given LaTeX into an HTML+MathML combination, and adds
11860
11856
  * it as a child to the specified DOM node.
@@ -11864,7 +11860,7 @@ var $n = function(e, t) {
11864
11860
  * Renders the given LaTeX into an HTML+MathML combination string,
11865
11861
  * for sending to the client.
11866
11862
  */
11867
- renderToString: $n,
11863
+ renderToString: Un,
11868
11864
  /**
11869
11865
  * KaTeX error, usually during parsing.
11870
11866
  */
@@ -11881,7 +11877,7 @@ var $n = function(e, t) {
11881
11877
  * The internal tree representation is unstable and is very likely
11882
11878
  * to change. Use at your own risk.
11883
11879
  */
11884
- __parse: Xn,
11880
+ __parse: $n,
11885
11881
  /**
11886
11882
  * Renders the given LaTeX into an HTML+MathML internal DOM tree
11887
11883
  * representation, without flattening that representation to a string.
@@ -11899,12 +11895,12 @@ var $n = function(e, t) {
11899
11895
  * The internal tree representation is unstable and is very likely
11900
11896
  * to change. Use at your own risk.
11901
11897
  */
11902
- __renderToHTMLTree: Yn,
11898
+ __renderToHTMLTree: Xn,
11903
11899
  /**
11904
11900
  * extends internal font metrics object with a new object
11905
11901
  * each key in the new object represents a font name
11906
11902
  */
11907
- __setFontMetrics: k1,
11903
+ __setFontMetrics: w1,
11908
11904
  /**
11909
11905
  * adds a new symbol to builtin symbols table
11910
11906
  */
@@ -11926,14 +11922,14 @@ var $n = function(e, t) {
11926
11922
  * The internal tree representation is unstable and is very likely
11927
11923
  * to change. Use at your own risk.
11928
11924
  */
11929
- __domTree: jn
11925
+ __domTree: Wn
11930
11926
  };
11931
- const Zn = {}, Kn = [];
11932
- function _n(r) {
11933
- const e = r || Zn;
11927
+ const jn = {}, Zn = [];
11928
+ function Qn(r) {
11929
+ const e = r || jn;
11934
11930
  return function(t, a) {
11935
11931
  Na(t, "element", function(n, s) {
11936
- const o = Array.isArray(n.properties.className) ? n.properties.className : Kn, h = o.includes("language-math"), m = o.includes("math-display"), p = o.includes("math-inline");
11932
+ const o = Array.isArray(n.properties.className) ? n.properties.className : Zn, h = o.includes("language-math"), m = o.includes("math-display"), p = o.includes("math-inline");
11937
11933
  let g = m;
11938
11934
  if (!h && !m && !p)
11939
11935
  return;
@@ -11951,12 +11947,12 @@ function _n(r) {
11951
11947
  const C = (
11952
11948
  /** @type {Error} */
11953
11949
  D
11954
- ), I = C.name.toLowerCase();
11950
+ ), R = C.name.toLowerCase();
11955
11951
  a.message("Could not render math with KaTeX", {
11956
11952
  ancestors: [...s, n],
11957
11953
  cause: C,
11958
11954
  place: n.position,
11959
- ruleId: I,
11955
+ ruleId: R,
11960
11956
  source: "rehype-katex"
11961
11957
  });
11962
11958
  try {
@@ -11989,5 +11985,5 @@ function _n(r) {
11989
11985
  };
11990
11986
  }
11991
11987
  export {
11992
- _n as default
11988
+ Qn as default
11993
11989
  };