manim-web 0.3.21 → 0.3.22

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 (123) hide show
  1. package/README.md +20 -0
  2. package/dist/{AmsConfiguration-BMyoprhk.js → AmsConfiguration-OUoC_kJ0.js} +5 -5
  3. package/dist/{AmsConfiguration-BdxxYRby.js → AmsConfiguration-tdje_HlF.js} +5 -5
  4. package/dist/{ConfigMacrosConfiguration-B8X_JSVI.js → ConfigMacrosConfiguration-4OaQYvlr.js} +3 -3
  5. package/dist/{ConfigMacrosConfiguration-DUxp6DUV.js → ConfigMacrosConfiguration-DM3-S5M8.js} +3 -3
  6. package/dist/{Entities-B1o7gN0J.js → Entities-Dw6381dl.js} +2 -2
  7. package/dist/{Entities-C82lnCux.js → Entities-bJKKDYjE.js} +2 -2
  8. package/dist/{HtmlNode-BLmQ2r7U.js → HtmlNode-1mFtYQ9G.js} +2 -2
  9. package/dist/{HtmlNode-DXGeKrcW.js → HtmlNode-CQqo5we-.js} +2 -2
  10. package/dist/{InputJax-DL9oUQY4.js → InputJax-D5R2pqUk.js} +2 -2
  11. package/dist/{InputJax-DnDWM3Y0.js → InputJax-jNvwWU5P.js} +2 -2
  12. package/dist/{NewcommandConfiguration-BPjclFig.js → NewcommandConfiguration-BN_OlLcO.js} +2 -2
  13. package/dist/{NewcommandConfiguration-bJ6P1rBY.js → NewcommandConfiguration-DZ3mSCpD.js} +2 -2
  14. package/dist/{NewcommandMethods-C_E3iLoK.js → NewcommandMethods-D5bueYYE.js} +2 -2
  15. package/dist/{NewcommandMethods-Cb7yFm5P.js → NewcommandMethods-DTf_dan5.js} +2 -2
  16. package/dist/{ParseMethods-BMPfzfQC.js → ParseMethods-Deqa7kJ6.js} +7 -7
  17. package/dist/{ParseMethods-D3_HeS1K.js → ParseMethods-Dt5bYDSZ.js} +7 -7
  18. package/dist/{Styles-Dky5jZUe.js → Styles-BILrGVps.js} +1 -1
  19. package/dist/{Styles-J-6R3Vr8.js → Styles-DQSruwWe.js} +1 -1
  20. package/dist/animation/Animation.d.ts.map +1 -1
  21. package/dist/animation/MasterTimeline.d.ts +88 -1
  22. package/dist/animation/MasterTimeline.d.ts.map +1 -1
  23. package/dist/animation/movement/Rotate.d.ts +2 -7
  24. package/dist/animation/movement/Rotate.d.ts.map +1 -1
  25. package/dist/animation/transform/PointMorphStrategy.d.ts.map +1 -1
  26. package/dist/core/AnimateProxy.d.ts +3 -5
  27. package/dist/core/AnimateProxy.d.ts.map +1 -1
  28. package/dist/core/Camera.d.ts +37 -0
  29. package/dist/core/Camera.d.ts.map +1 -1
  30. package/dist/core/CameraExtensions.d.ts +33 -1
  31. package/dist/core/CameraExtensions.d.ts.map +1 -1
  32. package/dist/core/Group.d.ts +3 -11
  33. package/dist/core/Group.d.ts.map +1 -1
  34. package/dist/core/Mobject.d.ts +33 -7
  35. package/dist/core/Mobject.d.ts.map +1 -1
  36. package/dist/core/MobjectPositioning.d.ts +2 -5
  37. package/dist/core/MobjectPositioning.d.ts.map +1 -1
  38. package/dist/core/MobjectTypes.d.ts +21 -4
  39. package/dist/core/MobjectTypes.d.ts.map +1 -1
  40. package/dist/core/Renderer.d.ts +3 -0
  41. package/dist/core/Renderer.d.ts.map +1 -1
  42. package/dist/core/Scene.d.ts +50 -0
  43. package/dist/core/Scene.d.ts.map +1 -1
  44. package/dist/core/ThreeDScene.d.ts +3 -1
  45. package/dist/core/ThreeDScene.d.ts.map +1 -1
  46. package/dist/core/VGroup.d.ts +11 -19
  47. package/dist/core/VGroup.d.ts.map +1 -1
  48. package/dist/core/VMobject.d.ts +14 -1
  49. package/dist/core/VMobject.d.ts.map +1 -1
  50. package/dist/core/VMobjectGeometry.d.ts +20 -10
  51. package/dist/core/VMobjectGeometry.d.ts.map +1 -1
  52. package/dist/core/VMobjectRendering.d.ts +5 -0
  53. package/dist/core/VMobjectRendering.d.ts.map +1 -1
  54. package/dist/core/VMobjectTransformAlignment.d.ts +9 -0
  55. package/dist/core/VMobjectTransformAlignment.d.ts.map +1 -1
  56. package/dist/{html-DU38zqaN.js → html-Bza5WY1y.js} +6 -6
  57. package/dist/{html-DjkQuIHJ.js → html-bhzMuE8p.js} +6 -6
  58. package/dist/index.d.ts +4 -3
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +2 -4
  61. package/dist/integrations/react.js +16 -18
  62. package/dist/integrations/vue.js +15 -17
  63. package/dist/interaction/OrbitControls.d.ts +1 -1
  64. package/dist/interaction/OrbitControls.d.ts.map +1 -1
  65. package/dist/{lengths-CP7zmbxJ.js → lengths-D2zTYMUu.js} +2 -2
  66. package/dist/{liteAdaptor-BLgze3o2.js → liteAdaptor-BkxB5CGC.js} +3 -3
  67. package/dist/{liteAdaptor-zXv-jsO1.js → liteAdaptor-LMKuWwg1.js} +3 -3
  68. package/dist/manim-web.browser.js +8668 -7171
  69. package/dist/{mathjax-7LgaTjtj.js → mathjax-CPQWkQEv.js} +2 -2
  70. package/dist/{mathjax-CoSFlQ0H.js → mathjax-b-GTdZgw.js} +2 -2
  71. package/dist/{mo-CNYDGAsg.js → mo-D4wFHS6V.js} +2 -2
  72. package/dist/{mo-C5uLT3Z9.js → mo-hAX79Dzl.js} +2 -2
  73. package/dist/mobjects/geometry/AngleShapes.d.ts +0 -4
  74. package/dist/mobjects/geometry/AngleShapes.d.ts.map +1 -1
  75. package/dist/mobjects/geometry/CubicBezier.d.ts.map +1 -1
  76. package/dist/mobjects/geometry/PolygonExtensions.d.ts.map +1 -1
  77. package/dist/mobjects/graphing/ComplexPlane.d.ts +41 -1
  78. package/dist/mobjects/graphing/ComplexPlane.d.ts.map +1 -1
  79. package/dist/mobjects/graphing/Vector.d.ts.map +1 -1
  80. package/dist/mobjects/point/Mobject1D.d.ts.map +1 -1
  81. package/dist/mobjects/point/Mobject2D.d.ts.map +1 -1
  82. package/dist/mobjects/point/PMobject.d.ts +8 -2
  83. package/dist/mobjects/point/PMobject.d.ts.map +1 -1
  84. package/dist/mobjects/point/PointMobject.d.ts.map +1 -1
  85. package/dist/mobjects/text/Code.d.ts.map +1 -1
  86. package/dist/mobjects/text/MathTex.d.ts +9 -0
  87. package/dist/mobjects/text/MathTex.d.ts.map +1 -1
  88. package/dist/mobjects/text/MathTexImage.d.ts.map +1 -1
  89. package/dist/mobjects/text/Text.d.ts.map +1 -1
  90. package/dist/mobjects/text/TextGlyphGroup.d.ts.map +1 -1
  91. package/dist/mobjects/three-d/Line3D.d.ts +10 -56
  92. package/dist/mobjects/three-d/Line3D.d.ts.map +1 -1
  93. package/dist/player/Player.d.ts +36 -29
  94. package/dist/player/Player.d.ts.map +1 -1
  95. package/dist/player/PlayerUI.d.ts.map +1 -1
  96. package/dist/player/RecordingScene.d.ts +37 -0
  97. package/dist/player/RecordingScene.d.ts.map +1 -0
  98. package/dist/{src-CW4pfZdP.js → src-BlTk3Bta.js} +8798 -7302
  99. package/dist/{svg-CYweEoZ1.js → svg-DNS5Hwhk.js} +268 -253
  100. package/dist/{svg-swSF_J59.js → svg-DVUoAdmC.js} +268 -253
  101. package/dist/test-setup/vitest-setup.d.ts +20 -0
  102. package/dist/test-setup/vitest-setup.d.ts.map +1 -0
  103. package/dist/{tex-C4_queV-.js → tex-BQCLd0dF.js} +19 -15
  104. package/dist/{tex-CA5MLeEe.js → tex-Cd_bTYKG.js} +19 -15
  105. package/dist/utils/axis.d.ts +4 -0
  106. package/dist/utils/axis.d.ts.map +1 -0
  107. package/dist/utils/logger.d.ts +37 -0
  108. package/dist/utils/logger.d.ts.map +1 -1
  109. package/dist/utils/math.d.ts +4 -0
  110. package/dist/utils/math.d.ts.map +1 -1
  111. package/dist/utils/vectors.d.ts +54 -1
  112. package/dist/utils/vectors.d.ts.map +1 -1
  113. package/package.json +8 -6
  114. package/dist/Factory-D-whCqrb.js +0 -107
  115. package/dist/GifExporter-BrxY_q7e.js +0 -338
  116. package/dist/GifExporter-S2pbxMc5.js +0 -338
  117. package/dist/Options-XPptO-6X.js +0 -63
  118. package/dist/VideoExporter-6ikT3u9H.js +0 -102
  119. package/dist/VideoExporter-D_RxVahH.js +0 -102
  120. package/dist/lengths-D4tR1gYA.js +0 -54
  121. package/dist/rolldown-runtime-DnwLefa7.js +0 -23
  122. /package/dist/{Factory-BKM7FEO-.js → Factory-Ba6Nqb3M.js} +0 -0
  123. /package/dist/{Options-DRlTi0G8.js → Options-DMK2wYar.js} +0 -0
@@ -1,10 +1,10 @@
1
- import { a as e, o as t, r as n, t as r } from "./Options-XPptO-6X.js";
2
- import { a as i, t as a } from "./mathjax-CoSFlQ0H.js";
3
- import { n as o, r as s, t as c } from "./Styles-J-6R3Vr8.js";
4
- import { _ as l, c as u, g as d, h as f, n as p, o as m, s as h, t as g, v as _ } from "./mo-CNYDGAsg.js";
5
- import { A as v, C as y, D as b, E as x, F as S, I as C, L as w, M as ee, N as te, O as ne, P as re, S as ie, T as ae, _ as oe, a as se, b as ce, c as le, d as ue, g as de, h as fe, i as pe, j as me, k as he, l as ge, m as _e, n as ve, o as ye, r as be, s as xe, t as Se, u as Ce, v as we, w as Te, x as Ee, y as De } from "./HtmlNode-BLmQ2r7U.js";
6
- import { r as T, t as Oe } from "./Factory-D-whCqrb.js";
7
- import { a as ke, i as Ae, o as je, r as E, t as D } from "./lengths-CP7zmbxJ.js";
1
+ import { a as e, o as t, r as n, t as r } from "./Options-DMK2wYar.js";
2
+ import { a as i, t as a } from "./mathjax-CPQWkQEv.js";
3
+ import { n as o, r as s, t as c } from "./Styles-BILrGVps.js";
4
+ import { _ as l, c as u, g as d, h as f, n as p, o as m, s as h, t as g, v as _ } from "./mo-hAX79Dzl.js";
5
+ import { A as v, C as y, D as b, E as x, F as S, I as C, L as w, M as ee, N as te, O as ne, P as re, S as ie, T as ae, _ as oe, a as se, b as ce, c as le, d as ue, g as de, h as fe, i as pe, j as me, k as he, l as ge, m as _e, n as ve, o as ye, r as be, s as xe, t as Se, u as Ce, v as we, w as Te, x as Ee, y as De } from "./HtmlNode-CQqo5we-.js";
6
+ import { r as T, t as Oe } from "./Factory-Ba6Nqb3M.js";
7
+ import { a as ke, i as Ae, o as je, r as E, t as D } from "./lengths-D2zTYMUu.js";
8
8
  //#region node_modules/@mathjax/src/mjs/output/common/Direction.js
9
9
  var O = {
10
10
  None: "",
@@ -36,7 +36,7 @@ var O = {
36
36
  }
37
37
  c((r = r.apply(e, t || [])).next());
38
38
  });
39
- }, j = { dir: O.None };
39
+ }, j = .07, Ne = .07, Pe = { dir: O.None };
40
40
  function M(e, t, n) {
41
41
  return n ? r(e, { [t]: n })[t] : e[t];
42
42
  }
@@ -615,7 +615,7 @@ N.OPTIONS = {
615
615
  }, N.defaultDelimiters = {}, N.defaultChars = {}, N.defaultSizeVariants = [], N.defaultStretchVariants = [], N.dynamicFiles = {}, N.dynamicExtensions = /* @__PURE__ */ new Map();
616
616
  //#endregion
617
617
  //#region node_modules/@mathjax/src/mjs/core/Tree/Visitor.js
618
- var Ne = class e {
618
+ var Fe = class e {
619
619
  static methodName(e) {
620
620
  return "visit" + (e.charAt(0).toUpperCase() + e.substring(1)).replace(/[^a-z0-9_]/gi, "_") + "Node";
621
621
  }
@@ -734,9 +734,9 @@ var F = class e extends P {
734
734
  copyIndentData(e) {
735
735
  return e.indentData.map(([e, t]) => [e, t]);
736
736
  }
737
- }, I = 1e6, Pe = class extends Ne {
737
+ }, I = 1e6, Ie = class extends Fe {
738
738
  breakToWidth(e, t) {}
739
- }, Fe = class extends Pe {
739
+ }, Le = class extends Ie {
740
740
  constructor() {
741
741
  super(...arguments), this.PENALTY = {
742
742
  newline: (e) => 0,
@@ -1002,7 +1002,7 @@ var F = class e extends P {
1002
1002
  })();
1003
1003
  //#endregion
1004
1004
  //#region node_modules/@mathjax/src/mjs/util/StyleJson.js
1005
- var Ie = class {
1005
+ var Re = class {
1006
1006
  get cssText() {
1007
1007
  return this.getStyleString();
1008
1008
  }
@@ -1034,14 +1034,14 @@ var Ie = class {
1034
1034
  for (let a of n) r[i++] = e[a] instanceof Object ? t + this.getStyleRules({ [a]: e[a] }, t + " ").join("\n" + t) : " " + t + a + ": " + e[a] + ";";
1035
1035
  return r.join("\n" + t);
1036
1036
  }
1037
- }, Le = "@mathjax/%%FONT%%-font", L = class extends w {
1037
+ }, ze = "@mathjax/%%FONT%%-font", L = class extends w {
1038
1038
  get forceInlineBreaks() {
1039
1039
  return !1;
1040
1040
  }
1041
1041
  constructor(t = {}, n = null, r = null) {
1042
1042
  let [i, a] = t.fontData instanceof N ? [t.fontData.constructor, t.fontData] : [t.fontData || r, null], [o, s] = e(t, i.OPTIONS);
1043
- super(o), this.factory = this.options.wrapperFactory || new n(), this.factory.jax = this, this.styleJson = this.options.styleJson || new Ie(), this.font = a || new i(s), this.font.setOptions({ mathmlSpacing: this.options.mathmlSpacing }), this.constructor.genericFont = i, this.unknownCache = /* @__PURE__ */ new Map();
1044
- let c = this.options.linebreaks.LinebreakVisitor || Fe;
1043
+ super(o), this.factory = this.options.wrapperFactory || new n(), this.factory.jax = this, this.styleJson = this.options.styleJson || new Re(), this.font = a || new i(s), this.font.setOptions({ mathmlSpacing: this.options.mathmlSpacing }), this.constructor.genericFont = i, this.unknownCache = /* @__PURE__ */ new Map();
1044
+ let c = this.options.linebreaks.LinebreakVisitor || Le;
1045
1045
  this.linebreaks = new c(this.factory);
1046
1046
  }
1047
1047
  setAdaptor(e) {
@@ -1288,7 +1288,7 @@ L.NAME = "Common", L.OPTIONS = Object.assign(Object.assign({}, w.OPTIONS), {
1288
1288
  htmlHDW: "auto",
1289
1289
  wrapperFactory: null,
1290
1290
  fontData: null,
1291
- fontPath: Le,
1291
+ fontPath: ze,
1292
1292
  styleJson: null
1293
1293
  }), L.commonStyles = {
1294
1294
  "mjx-container[overflow=\"scroll\"][display]": {
@@ -1318,11 +1318,11 @@ L.NAME = "Common", L.OPTIONS = Object.assign(Object.assign({}, w.OPTIONS), {
1318
1318
  };
1319
1319
  //#endregion
1320
1320
  //#region node_modules/@mathjax/src/mjs/core/Tree/WrapperFactory.js
1321
- var Re = class extends Oe {
1321
+ var Be = class extends Oe {
1322
1322
  wrap(e, ...t) {
1323
1323
  return this.create(e.kind, e, ...t);
1324
1324
  }
1325
- }, ze = class extends Re {
1325
+ }, Ve = class extends Be {
1326
1326
  constructor() {
1327
1327
  super(...arguments), this.jax = null;
1328
1328
  }
@@ -1330,10 +1330,10 @@ var Re = class extends Oe {
1330
1330
  return this.node;
1331
1331
  }
1332
1332
  };
1333
- ze.defaultNodes = {};
1333
+ Ve.defaultNodes = {};
1334
1334
  //#endregion
1335
1335
  //#region node_modules/@mathjax/src/mjs/core/Tree/Wrapper.js
1336
- var Be = class {
1336
+ var He = class {
1337
1337
  get kind() {
1338
1338
  return this.node.kind;
1339
1339
  }
@@ -1347,18 +1347,18 @@ var Be = class {
1347
1347
  if (e(this, t), "childNodes" in this) for (let n of this.childNodes) n && n.walkTree(e, t);
1348
1348
  return t;
1349
1349
  }
1350
- }, Ve = 2 / 18, He = 5 / 18;
1351
- function Ue(e, t, n) {
1352
- return t ? e ? Ve : He : e ? n < Ve ? 0 : Ve : n;
1350
+ }, Ue = 2 / 18, We = 5 / 18;
1351
+ function Ge(e, t, n) {
1352
+ return t ? e ? Ue : We : e ? n < Ue ? 0 : Ue : n;
1353
1353
  }
1354
- var We = {
1354
+ var Ke = {
1355
1355
  [E(0)]: "0",
1356
1356
  [E(2 / 18)]: "1",
1357
1357
  [E(3 / 18)]: "2",
1358
1358
  [E(4 / 18)]: "3",
1359
1359
  [E(5 / 18)]: "4",
1360
1360
  [E(6 / 18)]: "5"
1361
- }, R = class e extends Be {
1361
+ }, R = class e extends He {
1362
1362
  static addStyles(e, t) {
1363
1363
  e.addStyles(this.styles);
1364
1364
  }
@@ -1394,7 +1394,7 @@ var We = {
1394
1394
  return this.node.linebreakContainer || !this.parent ? e : this.parent.breakTop(e, this);
1395
1395
  }
1396
1396
  constructor(e, t, n = null) {
1397
- super(e, t), this.parent = null, this.dom = null, this.removedStyles = null, this.styles = null, this.styleData = null, this.variant = "", this.bboxComputed = !1, this._breakCount = -1, this.lineBBox = [], this.stretch = j, this.font = null, this.parent = n, this.font = e.jax.font, this.bbox = P.zero(), this.getStyles(), this.getStyleData(), this.getVariant(), this.getScale(), this.getSpace(), this.childNodes = t.childNodes.map((e) => {
1397
+ super(e, t), this.parent = null, this.dom = null, this.removedStyles = null, this.styles = null, this.styleData = null, this.variant = "", this.bboxComputed = !1, this._breakCount = -1, this.lineBBox = [], this.stretch = Pe, this.font = null, this.parent = n, this.font = e.jax.font, this.bbox = P.zero(), this.getStyles(), this.getStyleData(), this.getVariant(), this.getScale(), this.getSpace(), this.childNodes = t.childNodes.map((e) => {
1398
1398
  let n = this.wrap(e);
1399
1399
  return n.bbox.pwidth && (t.notParent || t.isKind("math")) && (this.bbox.pwidth = P.fullWidth), n;
1400
1400
  });
@@ -1416,9 +1416,14 @@ var We = {
1416
1416
  0,
1417
1417
  0,
1418
1418
  0
1419
- ], i = t.copy();
1420
- for (let [, e, t] of P.boxSides) i[t] += n[e] + r[e];
1421
- return i;
1419
+ ], i = this.styleData.margin || [
1420
+ 0,
1421
+ 0,
1422
+ 0,
1423
+ 0
1424
+ ], a = t.copy();
1425
+ for (let [, e, t] of P.boxSides) a[t] += n[e] + r[e] + i[e];
1426
+ return a;
1422
1427
  }
1423
1428
  getUnbrokenHD() {
1424
1429
  let e = this.breakCount + 1, t = 0, n = 0;
@@ -1465,20 +1470,18 @@ var We = {
1465
1470
  let n = this.breakCount, r = e.getLineBBox(t);
1466
1471
  return (this.styleData || this.bbox.L || this.bbox.R) && (r = r.copy()), this.addMiddleBorders(r), t === 0 ? (r.L += this.bbox.L, this.addLeftBorders(r)) : t === n && (r.R += this.bbox.R, this.addRightBorders(r)), r;
1467
1472
  }
1473
+ sideStyleSize(e) {
1474
+ let t = this.styleData.border, n = this.styleData.padding, r = this.styleData.margin;
1475
+ return (t?.width?.[e] || 0) + (n?.[e] || 0) + (r?.[e] || 0);
1476
+ }
1468
1477
  addLeftBorders(e) {
1469
- if (!this.styleData) return;
1470
- let t = this.styleData.border, n = this.styleData.padding;
1471
- e.w += (t?.width?.[3] || 0) + (n?.[3] || 0);
1478
+ this.styleData && (e.w += this.sideStyleSize(3));
1472
1479
  }
1473
1480
  addMiddleBorders(e) {
1474
- if (!this.styleData) return;
1475
- let t = this.styleData.border, n = this.styleData.padding;
1476
- e.h += (t?.width?.[0] || 0) + (n?.[0] || 0), e.d += (t?.width?.[2] || 0) + (n?.[2] || 0);
1481
+ this.styleData && (e.h += this.sideStyleSize(0), e.d += this.sideStyleSize(2));
1477
1482
  }
1478
1483
  addRightBorders(e) {
1479
- if (!this.styleData) return;
1480
- let t = this.styleData.border, n = this.styleData.padding;
1481
- e.w += (t?.width?.[1] || 0) + (n?.[1] || 0);
1484
+ this.styleData && (e.w += this.sideStyleSize(1));
1482
1485
  }
1483
1486
  setChildPWidths(e, t = null, n = !0) {
1484
1487
  if (e) return !1;
@@ -1526,24 +1529,32 @@ var We = {
1526
1529
  ,
1527
1530
  ,
1528
1531
  ,
1529
- ], r = [
1532
+ ].fill(0), r = [
1530
1533
  ,
1531
1534
  ,
1532
1535
  ,
1533
1536
  ,
1534
- ], i = !1, a = !1;
1535
- for (let [o, s] of P.boxSides) {
1536
- let c = "border" + o, l = this.styles.get(c + "Width");
1537
- l && (a = !0, t[s] = Math.max(0, this.length2em(l, 1)), n[s] = this.styles.get(c + "Style") || "solid", r[s] = this.styles.get(c + "Color"));
1538
- let u = this.styles.get("padding" + o);
1539
- u && (i = !0, e[s] = Math.max(0, this.length2em(u, 1)));
1540
- }
1541
- this.styleData = i || a ? {
1537
+ ], i = [
1538
+ ,
1539
+ ,
1540
+ ,
1541
+ ,
1542
+ ], a = !1, o = !1, s = !1;
1543
+ for (let [c, l] of P.boxSides) {
1544
+ let u = "border" + c, d = this.styles.get(u + "Width");
1545
+ d && (o = !0, n[l] = Math.max(0, this.length2em(d, 1)), r[l] = this.styles.get(u + "Style") || "solid", i[l] = this.styles.get(u + "Color"));
1546
+ let f = this.styles.get("padding" + c);
1547
+ f && (a = !0, e[l] = Math.max(0, this.length2em(f, 1)));
1548
+ let p = this.styles.get("margin" + c);
1549
+ p && (s = !0, t[l] = this.length2em(p, 1));
1550
+ }
1551
+ this.styleData = a || o || s ? {
1542
1552
  padding: e,
1543
- border: a ? {
1544
- width: t,
1545
- style: n,
1546
- color: r
1553
+ margin: t,
1554
+ border: o ? {
1555
+ width: n,
1556
+ style: r,
1557
+ color: i
1547
1558
  } : null
1548
1559
  } : null;
1549
1560
  }
@@ -1583,7 +1594,7 @@ var We = {
1583
1594
  let r = n.childIndex(t);
1584
1595
  if (r === null) return;
1585
1596
  let i = e.getProperty("noDictDef"), a = e.attributes, o = a.get("scriptlevel") > 0;
1586
- if (this.bbox.L = a.isSet("lspace") ? Math.max(0, this.length2em(a.get("lspace"))) : Ue(o, i, e.lspace), this.bbox.R = a.isSet("rspace") ? Math.max(0, this.length2em(a.get("rspace"))) : Ue(o, i, e.rspace), !r) return;
1597
+ if (this.bbox.L = a.isSet("lspace") ? Math.max(0, this.length2em(a.get("lspace"))) : Ge(o, i, e.lspace), this.bbox.R = a.isSet("rspace") ? Math.max(0, this.length2em(a.get("rspace"))) : Ge(o, i, e.rspace), !r) return;
1587
1598
  let s = n.childNodes[r - 1];
1588
1599
  if (!s.isEmbellished) return;
1589
1600
  let c = this.jax.nodeMap.get(s).getBBox();
@@ -1624,7 +1635,7 @@ var We = {
1624
1635
  return e;
1625
1636
  }
1626
1637
  canStretch(e) {
1627
- if (this.stretch = j, this.node.isEmbellished) {
1638
+ if (this.stretch = Pe, this.node.isEmbellished) {
1628
1639
  let t = this.core();
1629
1640
  t && t.node !== this.node && t.canStretch(e) && (this.stretch = t.stretch);
1630
1641
  }
@@ -1815,13 +1826,21 @@ var z = class e extends R {
1815
1826
  0,
1816
1827
  0,
1817
1828
  0
1818
- ])[3], n = (this.styleData?.border?.width || [
1829
+ ])[3], n = (this.styleData?.margin || [
1830
+ 0,
1831
+ 0,
1832
+ 0,
1833
+ 0
1834
+ ])[3], r = (this.styleData?.border?.width || [
1819
1835
  0,
1820
1836
  0,
1821
1837
  0,
1822
1838
  0
1823
1839
  ])[3];
1824
- (t || n) && (this.dx = t + n);
1840
+ if ((t || r) && (this.dx = t + r), n) {
1841
+ let e = `translate(${this.fixed(n)},0)`;
1842
+ this.dom.forEach((t) => this.adaptor.setAttribute(t, "transform", e));
1843
+ }
1825
1844
  }
1826
1845
  handleScale() {
1827
1846
  if (this.bbox.rscale !== 1) {
@@ -1851,47 +1870,48 @@ var z = class e extends R {
1851
1870
  handleBorder() {
1852
1871
  let t = this.styleData?.border;
1853
1872
  if (!t) return;
1854
- let n = e.borderFuzz, r = this.adaptor, i = 0, a = this.dom.length - 1, o = this.node.isEmbellished && !this.node.isKind("mo");
1873
+ let n = this.styleData?.margin ?? [
1874
+ 0,
1875
+ 0,
1876
+ 0,
1877
+ 0
1878
+ ], r = e.borderFuzz, i = this.adaptor, a = 0, o = this.dom.length - 1, s = this.node.isEmbellished && !this.node.isKind("mo");
1855
1879
  for (let e of this.dom) {
1856
- let s = +(!a || !i), c = +(!a || i === a), l = o ? this.getOuterBBox() : this.getLineBBox(i++), [u, d, f] = [
1857
- l.h + n,
1858
- l.d + n,
1859
- l.w + n
1860
- ], p = [f, u], m = [-n, u], h = [f, -d], g = [-n, -d], _ = [f - c * t.width[1], u - t.width[0]], v = [-n + s * t.width[3], u - t.width[0]], y = [f - c * t.width[1], -d + t.width[2]], b = [-n + s * t.width[3], -d + t.width[2]], x = [
1861
- [
1862
- m,
1863
- p,
1864
- _,
1865
- v
1866
- ],
1880
+ let c = +(!o || !a), l = +(!o || a === o), u = s ? this.getOuterBBox() : this.getLineBBox(a++), d = u.h - n[0] + r, f = u.d - n[2] + r, p = u.w - n[1] - n[3] + r, m = [p, d], h = [-r, d], g = [p, -f], _ = [-r, -f], v = [p - l * t.width[1], d - t.width[0]], y = [-r + c * t.width[3], d - t.width[0]], b = [p - l * t.width[1], -f + t.width[2]], x = [-r + c * t.width[3], -f + t.width[2]], S = [
1867
1881
  [
1868
1882
  h,
1869
- p,
1870
- _,
1883
+ m,
1884
+ v,
1871
1885
  y
1872
1886
  ],
1873
1887
  [
1874
1888
  g,
1875
- h,
1876
- y,
1889
+ m,
1890
+ v,
1877
1891
  b
1878
1892
  ],
1879
1893
  [
1894
+ _,
1880
1895
  g,
1881
- m,
1882
- v,
1883
- b
1896
+ b,
1897
+ x
1898
+ ],
1899
+ [
1900
+ _,
1901
+ h,
1902
+ y,
1903
+ x
1884
1904
  ]
1885
- ], S = r.firstChild(e), C = s * this.dx;
1905
+ ], C = i.firstChild(e), w = c * this.dx;
1886
1906
  for (let n of [
1887
1907
  0,
1888
1908
  1,
1889
1909
  2,
1890
1910
  3
1891
1911
  ]) {
1892
- if (!t.width[n] || n === 3 && !s || n === 1 && !c) continue;
1893
- let r = x[n];
1894
- t.style[n] === "dashed" || t.style[n] === "dotted" ? this.addBorderBroken(r, t.color[n], t.style[n], t.width[n], n, e, C) : this.addBorderSolid(r, t.color[n], S, e, C);
1912
+ if (!t.width[n] || n === 3 && !c || n === 1 && !l) continue;
1913
+ let r = S[n];
1914
+ t.style[n] === "dashed" || t.style[n] === "dotted" ? this.addBorderBroken(r, t.color[n], t.style[n], t.width[n], n, e, w) : this.addBorderSolid(r, t.color[n], C, e, w);
1895
1915
  }
1896
1916
  }
1897
1917
  }
@@ -2039,7 +2059,7 @@ var z = class e extends R {
2039
2059
  z.kind = "unknown", z.borderFuzz = .005;
2040
2060
  //#endregion
2041
2061
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/math.js
2042
- function Ge(e) {
2062
+ function qe(e) {
2043
2063
  return class extends e {
2044
2064
  getWrapWidth(e) {
2045
2065
  return this.parent ? this.getBBox().w : this.metrics.containerWidth / this.jax.pxPerEm;
@@ -2056,7 +2076,7 @@ function Ge(e) {
2056
2076
  }
2057
2077
  //#endregion
2058
2078
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/zero.js
2059
- var Ke = [
2079
+ var Je = [
2060
2080
  "url(data:application/x-font-woff;charset=utf-8;base64,",
2061
2081
  "T1RUTwAJAIAAAwAQQ0ZGIGnFMZkAAARQAAAAlE9TLzJpUWOBAAABAAAAAGBjbWFwAAwAUwAABAQAAAAs",
2062
2082
  "aGVhZCFRvpAAAACcAAAANmhoZWEC8AD9AAAA1AAAACRobXR4A+gAAAAABOQAAAAIbWF4cAACUAAAAAD4",
@@ -2080,9 +2100,9 @@ var Ke = [
2080
2100
  "HAL4HQP4HgSLi/mC+nwFHQAAAIYPHQAAAIkRix0AAACUEgAFAQEMHyoxNlZlcnNpb24gMC4xbWp4LWxt",
2081
2101
  "LXplcm8gUmVndWxhcm1qeC1sbS16ZXJvUmVndWxhcnNwYWNlAAAAAYsAAgEBAwaLDvp8DgAAAAAD6AAA",
2082
2102
  ") format(\"woff\")"
2083
- ].join(""), qe = (function() {
2103
+ ].join(""), Ye = (function() {
2084
2104
  var e;
2085
- let t = Ge(z);
2105
+ let t = qe(z);
2086
2106
  return e = class extends t {
2087
2107
  handleDisplay() {
2088
2108
  let [e, t] = this.getAlignShift();
@@ -2122,13 +2142,13 @@ var Ke = [
2122
2142
  "mjx-break[prebreak]": { "letter-spacing": "-.999em" },
2123
2143
  "@font-face /* zero */": {
2124
2144
  "font-family": "MJX-ZERO",
2125
- src: Ke
2145
+ src: Je
2126
2146
  }
2127
2147
  }, e;
2128
2148
  })();
2129
2149
  //#endregion
2130
2150
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/mrow.js
2131
- function Je(e) {
2151
+ function Xe(e) {
2132
2152
  return class extends e {
2133
2153
  stretchChildren() {
2134
2154
  let e = [];
@@ -2241,7 +2261,7 @@ function Je(e) {
2241
2261
  }
2242
2262
  };
2243
2263
  }
2244
- function Ye(e) {
2264
+ function Ze(e) {
2245
2265
  return class extends e {
2246
2266
  getScale() {
2247
2267
  this.bbox.scale = this.parent.bbox.scale, this.bbox.rscale = 1;
@@ -2250,9 +2270,9 @@ function Ye(e) {
2250
2270
  }
2251
2271
  //#endregion
2252
2272
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/mrow.js
2253
- var Xe = (function() {
2273
+ var Qe = (function() {
2254
2274
  var e;
2255
- let t = Je(z);
2275
+ let t = Xe(z);
2256
2276
  return e = class extends t {
2257
2277
  constructor() {
2258
2278
  super(...arguments), this.linebreakCount = 0;
@@ -2310,14 +2330,14 @@ var Xe = (function() {
2310
2330
  }
2311
2331
  }
2312
2332
  }, e.kind = v.prototype.kind, e;
2313
- })(), Ze = (function() {
2333
+ })(), $e = (function() {
2314
2334
  var e;
2315
- let t = Ye(Xe);
2335
+ let t = Ze(Qe);
2316
2336
  return e = class extends t {}, e.kind = he.prototype.kind, e;
2317
2337
  })();
2318
2338
  //#endregion
2319
2339
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/mi.js
2320
- function Qe(e) {
2340
+ function et(e) {
2321
2341
  return class extends e {
2322
2342
  computeBBox(e, t = !1) {
2323
2343
  super.computeBBox(e), this.copySkewIC(e);
@@ -2326,14 +2346,22 @@ function Qe(e) {
2326
2346
  }
2327
2347
  //#endregion
2328
2348
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/mi.js
2329
- var $e = (function() {
2349
+ var tt = (function() {
2330
2350
  var e;
2331
- let t = Qe(z);
2351
+ let t = et(z);
2332
2352
  return e = class extends t {}, e.kind = S.prototype.kind, e;
2333
- })();
2353
+ })(), B = class extends N {
2354
+ static charOptions(e, t) {
2355
+ return super.charOptions(e, t);
2356
+ }
2357
+ static addExtension(e, t = "") {
2358
+ super.addExtension(e, t), M(this, "variantCacheIds", e.cacheIds);
2359
+ }
2360
+ };
2361
+ B.OPTIONS = Object.assign(Object.assign({}, N.OPTIONS), { dynamicPrefix: "./svg/dynamic" }), B.JAX = "SVG";
2334
2362
  //#endregion
2335
2363
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/mo.js
2336
- function et(e) {
2364
+ function nt(e) {
2337
2365
  return class extends e {
2338
2366
  get breakCount() {
2339
2367
  return +!!this.breakStyle;
@@ -2458,7 +2486,7 @@ function et(e) {
2458
2486
  let t = this.getText();
2459
2487
  if (Array.from(t).length !== 1) return !1;
2460
2488
  let n = this.font.getDelimiter(t.codePointAt(0));
2461
- return this.stretch = n && n.dir === e ? n : j, this.stretch.dir !== O.None;
2489
+ return this.stretch = n && n.dir === e ? n : Pe, this.stretch.dir !== O.None;
2462
2490
  }
2463
2491
  getVariant() {
2464
2492
  if (this.node.attributes.get("largeop")) {
@@ -2483,21 +2511,10 @@ function et(e) {
2483
2511
  };
2484
2512
  }
2485
2513
  //#endregion
2486
- //#region node_modules/@mathjax/src/mjs/output/svg/FontData.js
2487
- var B = class extends N {
2488
- static charOptions(e, t) {
2489
- return super.charOptions(e, t);
2490
- }
2491
- static addExtension(e, t = "") {
2492
- super.addExtension(e, t), M(this, "variantCacheIds", e.cacheIds);
2493
- }
2494
- };
2495
- B.OPTIONS = Object.assign(Object.assign({}, N.OPTIONS), { dynamicPrefix: "./svg/dynamic" }), B.JAX = "SVG";
2496
- //#endregion
2497
2514
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/mo.js
2498
- var V = .1, tt = .1, nt = (function() {
2515
+ var rt = (function() {
2499
2516
  var e;
2500
- let t = et(z);
2517
+ let t = nt(z);
2501
2518
  return e = class extends t {
2502
2519
  toSVG(e) {
2503
2520
  let t = this.node.attributes, n = t.get("symmetric") && this.stretch.dir !== O.Horizontal, r = this.stretch.dir !== O.None;
@@ -2565,7 +2582,7 @@ var V = .1, tt = .1, nt = (function() {
2565
2582
  }
2566
2583
  addExtV(e, t, n, r, i, a, o) {
2567
2584
  if (!e) return;
2568
- i = Math.max(0, i - V), a = Math.max(0, a - V);
2585
+ i = Math.max(0, i - j), a = Math.max(0, a - j);
2569
2586
  let s = this.adaptor, [c, l, u] = this.getChar(e, t), d = n + r - i - a, f = 1.5 * d / (c + l), p = (f * (c - l) - d) / 2;
2570
2587
  if (d <= 0) return;
2571
2588
  let m = this.svg("svg", {
@@ -2599,8 +2616,8 @@ var V = .1, tt = .1, nt = (function() {
2599
2616
  }
2600
2617
  addExtH(e, t, n, r, i, a = 0) {
2601
2618
  if (!e) return;
2602
- i = Math.max(0, i - tt), r = Math.max(0, r - tt);
2603
- let o = this.adaptor, [s, c, l] = this.getChar(e, t), u = n - r - i, d = s + c + 2 * V, f = u / l * 1.5, p = -(c + V);
2619
+ i = Math.max(0, i - Ne), r = Math.max(0, r - Ne);
2620
+ let o = this.adaptor, [s, c, l] = this.getChar(e, t), u = n - r - i, d = s + c + 2 * j, f = u / l * 1.5, p = -(c + j);
2604
2621
  if (u <= 0) return;
2605
2622
  let m = this.svg("svg", {
2606
2623
  width: this.fixed(u),
@@ -2632,7 +2649,7 @@ var V = .1, tt = .1, nt = (function() {
2632
2649
  })();
2633
2650
  //#endregion
2634
2651
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/mn.js
2635
- function rt(e) {
2652
+ function it(e) {
2636
2653
  return class extends e {
2637
2654
  remapChars(e) {
2638
2655
  if (e.length) {
@@ -2648,14 +2665,14 @@ function rt(e) {
2648
2665
  }
2649
2666
  //#endregion
2650
2667
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/mn.js
2651
- var it = (function() {
2668
+ var at = (function() {
2652
2669
  var e;
2653
- let t = rt(z);
2670
+ let t = it(z);
2654
2671
  return e = class extends t {}, e.kind = re.prototype.kind, e;
2655
2672
  })();
2656
2673
  //#endregion
2657
2674
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/ms.js
2658
- function at(e) {
2675
+ function ot(e) {
2659
2676
  return class extends e {
2660
2677
  createText(e) {
2661
2678
  let t = this.wrap(this.mmlText(e));
@@ -2670,14 +2687,14 @@ function at(e) {
2670
2687
  }
2671
2688
  //#endregion
2672
2689
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/ms.js
2673
- var ot = (function() {
2690
+ var st = (function() {
2674
2691
  var e;
2675
- let t = at(z);
2692
+ let t = ot(z);
2676
2693
  return e = class extends t {}, e.kind = me.prototype.kind, e;
2677
2694
  })();
2678
2695
  //#endregion
2679
2696
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/mtext.js
2680
- function st(e) {
2697
+ function ct(e) {
2681
2698
  var t;
2682
2699
  return t = class extends e {
2683
2700
  constructor() {
@@ -2749,9 +2766,9 @@ function st(e) {
2749
2766
  }
2750
2767
  //#endregion
2751
2768
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/mtext.js
2752
- var ct = (function() {
2769
+ var lt = (function() {
2753
2770
  var e;
2754
- let t = st(z);
2771
+ let t = ct(z);
2755
2772
  return e = class extends t {
2756
2773
  toSVG(e) {
2757
2774
  if (!this.breakCount) {
@@ -2775,7 +2792,7 @@ var ct = (function() {
2775
2792
  }
2776
2793
  }
2777
2794
  }, e.kind = te.prototype.kind, e;
2778
- })(), lt = (function() {
2795
+ })(), ut = (function() {
2779
2796
  var e;
2780
2797
  return e = class extends z {
2781
2798
  toSVG(e) {
@@ -2802,7 +2819,7 @@ var ct = (function() {
2802
2819
  })();
2803
2820
  //#endregion
2804
2821
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/mspace.js
2805
- function ut(e) {
2822
+ function dt(e) {
2806
2823
  return class extends e {
2807
2824
  get canBreak() {
2808
2825
  return this.node.canBreak;
@@ -2828,14 +2845,14 @@ function ut(e) {
2828
2845
  }
2829
2846
  //#endregion
2830
2847
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/mspace.js
2831
- var dt = (function() {
2848
+ var ft = (function() {
2832
2849
  var e;
2833
- let t = ut(z);
2850
+ let t = dt(z);
2834
2851
  return e = class extends t {}, e.kind = ee.prototype.kind, e;
2835
2852
  })();
2836
2853
  //#endregion
2837
2854
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/mpadded.js
2838
- function ft(e) {
2855
+ function pt(e) {
2839
2856
  return class extends e {
2840
2857
  get containerWidth() {
2841
2858
  let e = this.node.attributes, t = e.get("width").toString();
@@ -2883,9 +2900,9 @@ function ft(e) {
2883
2900
  }
2884
2901
  //#endregion
2885
2902
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/mpadded.js
2886
- var pt = (function() {
2903
+ var mt = (function() {
2887
2904
  var e;
2888
- let t = ft(z);
2905
+ let t = pt(z);
2889
2906
  return e = class extends t {
2890
2907
  toSVG(e) {
2891
2908
  if (this.toEmbellishedSVG(e)) return;
@@ -2893,7 +2910,7 @@ var pt = (function() {
2893
2910
  (c || i) && (t = [this.adaptor.append(t[0], this.svg("g"))], this.place(c, i, t[0])), this.addChildren(t);
2894
2911
  }
2895
2912
  }, e.kind = Te.prototype.kind, e;
2896
- })(), mt = (function() {
2913
+ })(), ht = (function() {
2897
2914
  var e;
2898
2915
  return e = class extends z {
2899
2916
  toSVG(e) {
@@ -2903,7 +2920,7 @@ var pt = (function() {
2903
2920
  })();
2904
2921
  //#endregion
2905
2922
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/mfrac.js
2906
- function ht(e) {
2923
+ function gt(e) {
2907
2924
  return class extends e {
2908
2925
  getFractionBBox(e, t, n) {
2909
2926
  let r = this.childNodes[0].getOuterBBox(), i = this.childNodes[1].getOuterBBox(), a = this.font.params.axis_height, { T: o, u: s, v: c } = this.getTUV(t, n);
@@ -2981,9 +2998,9 @@ function ht(e) {
2981
2998
  }
2982
2999
  //#endregion
2983
3000
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/mfrac.js
2984
- var gt = (function() {
3001
+ var _t = (function() {
2985
3002
  var e;
2986
- let t = ht(z);
3003
+ let t = gt(z);
2987
3004
  return e = class extends t {
2988
3005
  toSVG(e) {
2989
3006
  if (this.toEmbellishedSVG(e)) return;
@@ -3016,7 +3033,7 @@ var gt = (function() {
3016
3033
  })();
3017
3034
  //#endregion
3018
3035
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/msqrt.js
3019
- function _t(e) {
3036
+ function vt(e) {
3020
3037
  return class extends e {
3021
3038
  get base() {
3022
3039
  return 0;
@@ -3059,9 +3076,9 @@ function _t(e) {
3059
3076
  }
3060
3077
  //#endregion
3061
3078
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/msqrt.js
3062
- var H = (function() {
3079
+ var yt = (function() {
3063
3080
  var e;
3064
- let t = _t(z);
3081
+ let t = vt(z);
3065
3082
  return e = class extends t {
3066
3083
  constructor() {
3067
3084
  super(...arguments), this.dx = 0;
@@ -3084,7 +3101,7 @@ var H = (function() {
3084
3101
  })();
3085
3102
  //#endregion
3086
3103
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/mroot.js
3087
- function vt(e) {
3104
+ function bt(e) {
3088
3105
  return class extends e {
3089
3106
  get root() {
3090
3107
  return 1;
@@ -3113,9 +3130,9 @@ function vt(e) {
3113
3130
  }
3114
3131
  //#endregion
3115
3132
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/mroot.js
3116
- var yt = (function() {
3133
+ var xt = (function() {
3117
3134
  var e;
3118
- let t = vt(H);
3135
+ let t = bt(yt);
3119
3136
  return e = class extends t {
3120
3137
  addRoot(e, t, n, r) {
3121
3138
  t.toSVG(e);
@@ -3126,7 +3143,7 @@ var yt = (function() {
3126
3143
  })();
3127
3144
  //#endregion
3128
3145
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/mfenced.js
3129
- function bt(e) {
3146
+ function St(e) {
3130
3147
  return class extends e {
3131
3148
  createMrow() {
3132
3149
  let e = this.node.factory.create("inferredMrow");
@@ -3160,9 +3177,9 @@ function bt(e) {
3160
3177
  }
3161
3178
  //#endregion
3162
3179
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/mfenced.js
3163
- var xt = (function() {
3180
+ var Ct = (function() {
3164
3181
  var e;
3165
- let t = bt(z);
3182
+ let t = St(z);
3166
3183
  return e = class extends t {
3167
3184
  toSVG(e) {
3168
3185
  let t = this.standardSvgNodes(e);
@@ -3175,7 +3192,7 @@ var xt = (function() {
3175
3192
  })();
3176
3193
  //#endregion
3177
3194
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/msubsup.js
3178
- function St(e) {
3195
+ function wt(e) {
3179
3196
  var t;
3180
3197
  return t = class extends e {
3181
3198
  get scriptChild() {
@@ -3186,7 +3203,7 @@ function St(e) {
3186
3203
  }
3187
3204
  }, t.useIC = !1, t;
3188
3205
  }
3189
- function Ct(e) {
3206
+ function Tt(e) {
3190
3207
  return class extends e {
3191
3208
  get scriptChild() {
3192
3209
  return this.childNodes[this.node.sup];
@@ -3196,7 +3213,7 @@ function Ct(e) {
3196
3213
  }
3197
3214
  };
3198
3215
  }
3199
- function wt(e) {
3216
+ function Et(e) {
3200
3217
  var t;
3201
3218
  return t = class extends e {
3202
3219
  constructor() {
@@ -3234,7 +3251,7 @@ function wt(e) {
3234
3251
  }
3235
3252
  //#endregion
3236
3253
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/scriptbase.js
3237
- function Tt(e) {
3254
+ function Dt(e) {
3238
3255
  var t;
3239
3256
  return t = class extends e {
3240
3257
  get baseChild() {
@@ -3388,9 +3405,9 @@ function Tt(e) {
3388
3405
  }
3389
3406
  //#endregion
3390
3407
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/scriptbase.js
3391
- var Et = (function() {
3408
+ var Ot = (function() {
3392
3409
  var e;
3393
- let t = Tt(z);
3410
+ let t = Dt(z);
3394
3411
  return e = class extends t {
3395
3412
  toSVG(e) {
3396
3413
  if (this.toEmbellishedSVG(e)) return;
@@ -3398,17 +3415,17 @@ var Et = (function() {
3398
3415
  this.baseChild.toSVG(t), this.baseChild.place(0, 0), this.scriptChild.toSVG([t[t.length - 1]]), this.scriptChild.place(n + r, i);
3399
3416
  }
3400
3417
  }, e.kind = "scriptbase", e;
3401
- })(), Dt = (function() {
3418
+ })(), kt = (function() {
3402
3419
  var e;
3403
- let t = St(Et);
3420
+ let t = wt(Ot);
3404
3421
  return e = class extends t {}, e.kind = oe.prototype.kind, e;
3405
- })(), Ot = (function() {
3422
+ })(), At = (function() {
3406
3423
  var e;
3407
- let t = Ct(Et);
3424
+ let t = Tt(Ot);
3408
3425
  return e = class extends t {}, e.kind = De.prototype.kind, e;
3409
- })(), U = (function() {
3426
+ })(), V = (function() {
3410
3427
  var e;
3411
- let t = wt(Et);
3428
+ let t = Et(Ot);
3412
3429
  return e = class extends t {
3413
3430
  toSVG(e) {
3414
3431
  if (this.toEmbellishedSVG(e)) return;
@@ -3425,7 +3442,7 @@ var Et = (function() {
3425
3442
  })();
3426
3443
  //#endregion
3427
3444
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/munderover.js
3428
- function kt(e) {
3445
+ function jt(e) {
3429
3446
  return class extends e {
3430
3447
  get scriptChild() {
3431
3448
  return this.childNodes[this.node.under];
@@ -3444,7 +3461,7 @@ function kt(e) {
3444
3461
  }
3445
3462
  };
3446
3463
  }
3447
- function At(e) {
3464
+ function Mt(e) {
3448
3465
  return class extends e {
3449
3466
  get scriptChild() {
3450
3467
  return this.childNodes[this.node.over];
@@ -3465,7 +3482,7 @@ function At(e) {
3465
3482
  }
3466
3483
  };
3467
3484
  }
3468
- function jt(e) {
3485
+ function Nt(e) {
3469
3486
  return class extends e {
3470
3487
  get underChild() {
3471
3488
  return this.childNodes[this.node.under];
@@ -3507,9 +3524,9 @@ function jt(e) {
3507
3524
  }
3508
3525
  //#endregion
3509
3526
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/munderover.js
3510
- var Mt = (function() {
3527
+ var Pt = (function() {
3511
3528
  var e;
3512
- let t = kt(Dt);
3529
+ let t = jt(kt);
3513
3530
  return e = class extends t {
3514
3531
  toSVG(e) {
3515
3532
  if (this.toEmbellishedSVG(e)) return;
@@ -3523,9 +3540,9 @@ var Mt = (function() {
3523
3540
  n.place(c, 0), r.place(l, s);
3524
3541
  }
3525
3542
  }, e.kind = fe.prototype.kind, e;
3526
- })(), Nt = (function() {
3543
+ })(), Ft = (function() {
3527
3544
  var e;
3528
- let t = At(Ot);
3545
+ let t = Mt(At);
3529
3546
  return e = class extends t {
3530
3547
  toSVG(e) {
3531
3548
  if (this.toEmbellishedSVG(e)) return;
@@ -3539,9 +3556,9 @@ var Mt = (function() {
3539
3556
  n.place(c, 0), r.place(l, s);
3540
3557
  }
3541
3558
  }, e.kind = _e.prototype.kind, e;
3542
- })(), Pt = (function() {
3559
+ })(), It = (function() {
3543
3560
  var e;
3544
- let t = jt(U);
3561
+ let t = Nt(V);
3545
3562
  return e = class extends t {
3546
3563
  toSVG(e) {
3547
3564
  if (this.toEmbellishedSVG(e)) return;
@@ -3571,14 +3588,14 @@ var Mt = (function() {
3571
3588
  n.place(f, 0), i.place(p, d), r.place(m, u);
3572
3589
  }
3573
3590
  }, e.kind = de.prototype.kind, e;
3574
- })(), Ft = {
3591
+ })(), Lt = {
3575
3592
  base: "subList",
3576
3593
  subList: "supList",
3577
3594
  supList: "subList",
3578
3595
  psubList: "psupList",
3579
3596
  psupList: "psubList"
3580
3597
  };
3581
- function It(e) {
3598
+ function Rt(e) {
3582
3599
  return class extends e {
3583
3600
  combinePrePost(e, t) {
3584
3601
  let n = new P(e);
@@ -3604,7 +3621,7 @@ function It(e) {
3604
3621
  psubList: [],
3605
3622
  psupList: []
3606
3623
  }, t = "base";
3607
- for (let n of this.childNodes) n.node.isKind("mprescripts") ? t = "psubList" : (e[t].push(n.getOuterBBox()), t = Ft[t]);
3624
+ for (let n of this.childNodes) n.node.isKind("mprescripts") ? t = "psubList" : (e[t].push(n.getOuterBBox()), t = Lt[t]);
3608
3625
  return this.firstPrescript = e.subList.length + e.supList.length + 2, this.padLists(e.subList, e.supList), this.padLists(e.psubList, e.psupList), e;
3609
3626
  }
3610
3627
  padLists(e, t) {
@@ -3675,16 +3692,16 @@ function It(e) {
3675
3692
  }
3676
3693
  //#endregion
3677
3694
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/mmultiscripts.js
3678
- function Lt(e) {
3695
+ function zt(e) {
3679
3696
  return {
3680
3697
  left: (e, t) => 0,
3681
3698
  center: (e, t) => (t - e) / 2,
3682
3699
  right: (e, t) => t - e
3683
3700
  }[e] || ((e, t) => 0);
3684
3701
  }
3685
- var Rt = (function() {
3702
+ var Bt = (function() {
3686
3703
  var e;
3687
- let t = It(U);
3704
+ let t = Rt(V);
3688
3705
  return e = class extends t {
3689
3706
  toSVG(e) {
3690
3707
  if (this.toEmbellishedSVG(e)) return;
@@ -3694,7 +3711,7 @@ var Rt = (function() {
3694
3711
  l.toSVG(t), l.place(c, 0), this.breakCount && (c = 0), c += l.getLineBBox(l.breakCount).w, n.numScripts && this.addScripts(this.dom[this.dom.length - 1], c, o, s, 1, n.numScripts, a);
3695
3712
  }
3696
3713
  addScripts(e, t, n, r, i, a, o) {
3697
- let s = this.adaptor, c = Lt(o), l = s.append(e, this.svg("g")), u = s.append(e, this.svg("g"));
3714
+ let s = this.adaptor, c = zt(o), l = s.append(e, this.svg("g")), u = s.append(e, this.svg("g"));
3698
3715
  this.place(t, n, l), this.place(t, r, u);
3699
3716
  let d = i + 2 * a, f = 0;
3700
3717
  for (; i < d;) {
@@ -3707,13 +3724,13 @@ var Rt = (function() {
3707
3724
  })();
3708
3725
  //#endregion
3709
3726
  //#region node_modules/@mathjax/src/mjs/util/numeric.js
3710
- function W(e) {
3727
+ function H(e) {
3711
3728
  return e.reduce((e, t) => e + t, 0);
3712
3729
  }
3713
- function zt(e) {
3730
+ function Vt(e) {
3714
3731
  return e.reduce((e, t) => Math.max(e, t), 0);
3715
3732
  }
3716
- function Bt(e) {
3733
+ function Ht(e) {
3717
3734
  return class extends e {
3718
3735
  get tableRows() {
3719
3736
  return this.childNodes;
@@ -3873,7 +3890,7 @@ function Bt(e) {
3873
3890
  this.naturalWidth() > r && this.adjustColumnWidths(r);
3874
3891
  }
3875
3892
  naturalWidth() {
3876
- return W(this.getComputedWidths().concat(this.cLines, this.cSpace)) + 2 * this.fLine + this.fSpace[0] + this.fSpace[2];
3893
+ return H(this.getComputedWidths().concat(this.cLines, this.cSpace)) + 2 * this.fLine + this.fSpace[0] + this.fSpace[2];
3877
3894
  }
3878
3895
  getEqualRowHeight() {
3879
3896
  let { H: e, D: t } = this.getTableData(), n = Array.from(e.keys()).map((n) => e[n] + t[n]);
@@ -3881,7 +3898,7 @@ function Bt(e) {
3881
3898
  }
3882
3899
  getComputedWidths() {
3883
3900
  let e = this.getTableData().W, t = Array.from(e.keys()).map((t) => typeof this.cWidths[t] == "number" ? this.cWidths[t] : e[t]);
3884
- return this.node.attributes.get("equalcolumns") && (t = Array(t.length).fill(zt(t))), t;
3901
+ return this.node.attributes.get("equalcolumns") && (t = Array(t.length).fill(Vt(t))), t;
3885
3902
  }
3886
3903
  getColumnWidths() {
3887
3904
  let e = this.node.attributes.get("width");
@@ -3893,10 +3910,10 @@ function Bt(e) {
3893
3910
  let t = Math.max(1, this.numCols), n;
3894
3911
  if (e === "auto") {
3895
3912
  let { W: e } = this.getTableData();
3896
- n = zt(e);
3913
+ n = Vt(e);
3897
3914
  } else if (p(e)) n = this.percent(1 / t);
3898
3915
  else {
3899
- let r = W([].concat(this.cLines, this.cSpace)) + this.fSpace[0] + this.fSpace[2];
3916
+ let r = H([].concat(this.cLines, this.cSpace)) + this.fSpace[0] + this.fSpace[2];
3900
3917
  n = Math.max(0, this.length2em(e) - r) / t;
3901
3918
  }
3902
3919
  return Array(this.numCols).fill(n);
@@ -3912,7 +3929,7 @@ function Bt(e) {
3912
3929
  });
3913
3930
  }
3914
3931
  getColumnWidthsFixed(e, t) {
3915
- let n = Array.from(e.keys()), r = n.filter((t) => e[t] === "fit"), i = n.filter((t) => e[t] === "auto"), a = r.length || i.length, { W: o } = a ? this.getTableData() : { W: null }, s = t - W([].concat(this.cLines, this.cSpace)) - this.fSpace[0] - this.fSpace[2], c = s;
3932
+ let n = Array.from(e.keys()), r = n.filter((t) => e[t] === "fit"), i = n.filter((t) => e[t] === "auto"), a = r.length || i.length, { W: o } = a ? this.getTableData() : { W: null }, s = t - H([].concat(this.cLines, this.cSpace)) - this.fSpace[0] - this.fSpace[2], c = s;
3916
3933
  n.forEach((t) => {
3917
3934
  let n = e[t];
3918
3935
  c -= n === "fit" || n === "auto" ? o[t] : this.length2em(n, s);
@@ -3932,7 +3949,7 @@ function Bt(e) {
3932
3949
  ];
3933
3950
  if (!c.length) return;
3934
3951
  this.cWidths = r.map((e) => typeof this.cWidths[e] == "number" ? this.cWidths[e] : t[e]);
3935
- let l = e - W([].concat(this.cLines, this.cSpace)) - this.fSpace[0] - this.fSpace[2], u = W(this.cWidths) - l, d = 0, f = 0;
3952
+ let l = e - H([].concat(this.cLines, this.cSpace)) - this.fSpace[0] - this.fSpace[2], u = H(this.cWidths) - l, d = 0, f = 0;
3936
3953
  for (; f < c.length && (d += t[c[f++]], !(d && u / d < .333)););
3937
3954
  u = 1 - u / d, c.slice(0, f).forEach((e) => this.cWidths[e] *= u);
3938
3955
  }
@@ -4012,7 +4029,7 @@ function Bt(e) {
4012
4029
  other: (e, t, n, r, i) => {
4013
4030
  e > n[i] && (n[i] = e), t > r[i] && (r[i] = t);
4014
4031
  }
4015
- }, this.numCols = zt(this.tableRows.map((e) => e.numCells)), this.numRows = this.childNodes.length, this.hasLabels = this.childNodes.reduce((e, t) => e || t.node.isKind("mlabeledtr"), !1), this.findContainer(), this.isTop = !this.container || this.container.node.isKind("math") && !this.container.parent, this.isTop && (this.jax.table = this), this.getPercentageWidth();
4032
+ }, this.numCols = Vt(this.tableRows.map((e) => e.numCells)), this.numRows = this.childNodes.length, this.hasLabels = this.childNodes.reduce((e, t) => e || t.node.isKind("mlabeledtr"), !1), this.findContainer(), this.isTop = !this.container || this.container.node.isKind("math") && !this.container.parent, this.isTop && (this.jax.table = this), this.getPercentageWidth();
4016
4033
  let r = this.node.attributes, i = r.get("frame");
4017
4034
  this.frame = i !== "none", this.fframe = this.frame || r.get("data-frame-styles") !== void 0, this.fLine = this.frame ? .07 : 0, this.fSpace = this.getFrameSpacing(), this.cSpace = this.convertLengths(this.getColumnAttributes("columnspacing")), this.rSpace = this.convertLengths(this.getRowAttributes("rowspacing")), this.cLines = this.getColumnAttributes("columnlines").map((e) => e === "none" ? 0 : .07), this.rLines = this.getRowAttributes("rowlines").map((e) => e === "none" ? 0 : .07), this.cWidths = this.getColumnWidths(), this.adjustWideTable(), this.stretchColumns(), this.stretchRows();
4018
4035
  }
@@ -4031,8 +4048,8 @@ function Bt(e) {
4031
4048
  let { H: n, D: r } = this.getTableData(), i, a;
4032
4049
  if (this.node.attributes.get("equalrows")) {
4033
4050
  let e = this.getEqualRowHeight();
4034
- i = W([].concat(this.rLines, this.rSpace)) + e * this.numRows;
4035
- } else i = W(n.concat(r, this.rLines, this.rSpace));
4051
+ i = H([].concat(this.rLines, this.rSpace)) + e * this.numRows;
4052
+ } else i = H(n.concat(r, this.rLines, this.rSpace));
4036
4053
  i += 2 * (this.fLine + this.fSpace[1]), a = this.naturalWidth();
4037
4054
  let o = this.node.attributes.get("width");
4038
4055
  o !== "auto" && (a = Math.max(this.length2em(o, 0) + 2 * this.fLine, a));
@@ -4055,9 +4072,9 @@ function Bt(e) {
4055
4072
  }
4056
4073
  //#endregion
4057
4074
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/mtable.js
4058
- var Vt = "mjx-", Ht = (function() {
4075
+ var Ut = "mjx-", Wt = (function() {
4059
4076
  var e;
4060
- let t = Bt(z);
4077
+ let t = Ht(z);
4061
4078
  return e = class extends t {
4062
4079
  placeRows(e) {
4063
4080
  let t = this.node.attributes.get("equalrows"), { H: n, D: r } = this.getTableData(), i = this.getEqualRowHeight(), a = this.getRowHalfSpacing(), o = [
@@ -4111,7 +4128,7 @@ var Vt = "mjx-", Ht = (function() {
4111
4128
  return c;
4112
4129
  }
4113
4130
  lineClass(e) {
4114
- return Vt + e;
4131
+ return Ut + e;
4115
4132
  }
4116
4133
  makeFrame(e, t, n, r) {
4117
4134
  let i = this.fLine;
@@ -4223,7 +4240,7 @@ var Vt = "mjx-", Ht = (function() {
4223
4240
  })();
4224
4241
  //#endregion
4225
4242
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/mtr.js
4226
- function Ut(e) {
4243
+ function Gt(e) {
4227
4244
  return class extends e {
4228
4245
  get numCells() {
4229
4246
  return this.childNodes.length;
@@ -4268,7 +4285,7 @@ function Ut(e) {
4268
4285
  }
4269
4286
  };
4270
4287
  }
4271
- function Wt(e) {
4288
+ function Kt(e) {
4272
4289
  return class extends e {
4273
4290
  get numCells() {
4274
4291
  return Math.max(0, this.childNodes.length - 1);
@@ -4289,9 +4306,9 @@ function Wt(e) {
4289
4306
  }
4290
4307
  //#endregion
4291
4308
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/mtr.js
4292
- var Gt = (function() {
4309
+ var qt = (function() {
4293
4310
  var e;
4294
- let t = Ut(z);
4311
+ let t = Gt(z);
4295
4312
  return e = class extends t {
4296
4313
  placeCell(e, t) {
4297
4314
  let { x: n, y: r, lSpace: i, w: a, rSpace: o, lLine: s, rLine: c } = t, l = 1 / this.getBBox().rscale, [u, d] = [this.H * l, this.D * l], [f, p] = [this.tSpace * l, this.bSpace * l], [m, h] = e.placeCell(n + i, r, a, u, d), g = i + a + o;
@@ -4328,9 +4345,9 @@ var Gt = (function() {
4328
4345
  this.placeCells(t), this.placeColor();
4329
4346
  }
4330
4347
  }, e.kind = ge.prototype.kind, e;
4331
- })(), Kt = (function() {
4348
+ })(), Jt = (function() {
4332
4349
  var e;
4333
- let t = Wt(Gt);
4350
+ let t = Kt(qt);
4334
4351
  return e = class extends t {
4335
4352
  toSVG(e) {
4336
4353
  super.toSVG(e);
@@ -4341,7 +4358,7 @@ var Gt = (function() {
4341
4358
  })();
4342
4359
  //#endregion
4343
4360
  //#region node_modules/@mathjax/src/mjs/output/common/Wrappers/mtd.js
4344
- function qt(e) {
4361
+ function Yt(e) {
4345
4362
  return class extends e {
4346
4363
  get fixesPWidth() {
4347
4364
  return !1;
@@ -4360,9 +4377,9 @@ function qt(e) {
4360
4377
  }
4361
4378
  //#endregion
4362
4379
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/mtd.js
4363
- var Jt = (function() {
4380
+ var Xt = (function() {
4364
4381
  var e;
4365
- let t = qt(z);
4382
+ let t = Yt(z);
4366
4383
  return e = class extends t {
4367
4384
  placeCell(e, t, n, r, i) {
4368
4385
  let a = this.getBBox(), o = Math.max(a.h, .75), s = Math.max(a.d, .25), c = this.node.attributes.get("columnalign"), l = this.node.attributes.get("rowalign"), u = this.getAlignX(n, a, c), d = this.getAlignY(r, i, o, s, l);
@@ -4373,7 +4390,7 @@ var Jt = (function() {
4373
4390
  a && i.kind(a) === "rect" && i.getAttribute(a, "data-bgcolor") && (i.setAttribute(a, "x", this.fixed(e)), i.setAttribute(a, "y", this.fixed(t)), i.setAttribute(a, "width", this.fixed(n)), i.setAttribute(a, "height", this.fixed(r)));
4374
4391
  }
4375
4392
  }, e.kind = xe.prototype.kind, e;
4376
- })(), Yt = {
4393
+ })(), Zt = {
4377
4394
  dx: ".2em",
4378
4395
  dy: ".1em",
4379
4396
  postDelay: 600,
@@ -4384,7 +4401,7 @@ var Jt = (function() {
4384
4401
  t.clearTimer.has(e) && (clearTimeout(t.clearTimer.get(e)), t.clearTimer.delete(e)), t.hoverTimer.has(e) && (clearTimeout(t.hoverTimer.get(e)), t.hoverTimer.delete(e));
4385
4402
  }
4386
4403
  };
4387
- function Xt(e) {
4404
+ function Qt(e) {
4388
4405
  return class extends e {
4389
4406
  get selected() {
4390
4407
  let e = this.node.attributes.get("selection"), t = Math.max(1, Math.min(this.childNodes.length, e)) - 1;
@@ -4392,7 +4409,7 @@ function Xt(e) {
4392
4409
  }
4393
4410
  getParameters() {
4394
4411
  let [e, t] = m(this.node.attributes.get("data-offsets") || "");
4395
- this.tipDx = this.length2em(e || Yt.dx), this.tipDy = this.length2em(t || Yt.dy);
4412
+ this.tipDx = this.length2em(e || Zt.dx), this.tipDy = this.length2em(t || Zt.dy);
4396
4413
  }
4397
4414
  constructor(e, t, n = null) {
4398
4415
  super(e, t, n);
@@ -4412,9 +4429,9 @@ function Xt(e) {
4412
4429
  }
4413
4430
  //#endregion
4414
4431
  //#region node_modules/@mathjax/src/mjs/output/svg/Wrappers/maction.js
4415
- var Zt = (function() {
4432
+ var $t = (function() {
4416
4433
  var e;
4417
- let t = Xt(z);
4434
+ let t = Qt(z);
4418
4435
  return e = class extends t {
4419
4436
  setEventHandler(e, t, n = null) {
4420
4437
  (n ? [n] : this.dom).forEach((n) => n.addEventListener(e, t));
@@ -4518,7 +4535,7 @@ var Zt = (function() {
4518
4535
  }, r);
4519
4536
  }
4520
4537
  }
4521
- }, Yt]],
4538
+ }, Zt]],
4522
4539
  ["statusline", [(e, t) => {
4523
4540
  let n = e.childNodes[1];
4524
4541
  if (n && n.node.isKind("mtext")) {
@@ -4535,30 +4552,28 @@ var Zt = (function() {
4535
4552
  }
4536
4553
  }, { status: null }]]
4537
4554
  ]), e;
4538
- })(), Qt = .067, $t = .2;
4539
- Qt + "";
4540
- var en = {
4555
+ })(), en = .067, tn = .2, U = {
4541
4556
  top: 0,
4542
4557
  right: 1,
4543
4558
  bottom: 2,
4544
4559
  left: 3
4545
- }, G = ((e) => [
4560
+ }, W = ((e) => [
4546
4561
  ,
4547
4562
  ,
4548
4563
  ,
4549
4564
  ,
4550
- ].fill(e.thickness + e.padding)), tn = ((e) => [
4565
+ ].fill(e.thickness + e.padding)), nn = ((e) => [
4551
4566
  ,
4552
4567
  ,
4553
4568
  ,
4554
4569
  ,
4555
- ].fill(e.thickness)), K = (e) => Math.max(e.padding, e.thickness * (e.arrowhead.x + e.arrowhead.dx + 1)), nn = (e, t) => {
4570
+ ].fill(e.thickness)), G = (e) => Math.max(e.padding, e.thickness * (e.arrowhead.x + e.arrowhead.dx + 1)), rn = (e, t) => {
4556
4571
  if (e.childNodes[0]) {
4557
4572
  let { h: n, d: r } = e.childNodes[0].getBBox();
4558
4573
  t[0] = t[2] = Math.max(0, e.thickness * e.arrowhead.y - (n + r) / 2);
4559
4574
  }
4560
4575
  return t;
4561
- }, rn = (e, t) => {
4576
+ }, K = (e, t) => {
4562
4577
  if (e.childNodes[0]) {
4563
4578
  let { w: n } = e.childNodes[0].getBBox();
4564
4579
  t[1] = t[3] = Math.max(0, e.thickness * e.arrowhead.y - n / 2);
@@ -4645,45 +4660,45 @@ var en = {
4645
4660
  "downdiagonalstrike northwestarrow southeastarrow"
4646
4661
  ]
4647
4662
  }, sn = {
4648
- up: (e) => rn(e, [
4649
- K(e),
4663
+ up: (e) => K(e, [
4664
+ G(e),
4650
4665
  0,
4651
4666
  e.padding,
4652
4667
  0
4653
4668
  ]),
4654
- down: (e) => rn(e, [
4669
+ down: (e) => K(e, [
4655
4670
  e.padding,
4656
4671
  0,
4657
- K(e),
4672
+ G(e),
4658
4673
  0
4659
4674
  ]),
4660
- right: (e) => nn(e, [
4675
+ right: (e) => rn(e, [
4661
4676
  0,
4662
- K(e),
4677
+ G(e),
4663
4678
  0,
4664
4679
  e.padding
4665
4680
  ]),
4666
- left: (e) => nn(e, [
4681
+ left: (e) => rn(e, [
4667
4682
  0,
4668
4683
  e.padding,
4669
4684
  0,
4670
- K(e)
4685
+ G(e)
4671
4686
  ]),
4672
- updown: (e) => rn(e, [
4673
- K(e),
4687
+ updown: (e) => K(e, [
4688
+ G(e),
4674
4689
  0,
4675
- K(e),
4690
+ G(e),
4676
4691
  0
4677
4692
  ]),
4678
- leftright: (e) => nn(e, [
4693
+ leftright: (e) => rn(e, [
4679
4694
  0,
4680
- K(e),
4695
+ G(e),
4681
4696
  0,
4682
- K(e)
4697
+ G(e)
4683
4698
  ])
4684
4699
  }, cn = function(e) {
4685
4700
  return (t) => {
4686
- let n = en[t];
4701
+ let n = U[t];
4687
4702
  return [t, {
4688
4703
  renderer: e,
4689
4704
  bbox: (e) => {
@@ -4708,7 +4723,7 @@ var en = {
4708
4723
  };
4709
4724
  }, ln = function(e) {
4710
4725
  return (t, n, r) => {
4711
- let i = en[n], a = en[r];
4726
+ let i = U[n], a = U[r];
4712
4727
  return [t, {
4713
4728
  renderer: e,
4714
4729
  bbox: (e) => {
@@ -4737,7 +4752,7 @@ var en = {
4737
4752
  let n = "mjx-" + t.charAt(0) + "strike";
4738
4753
  return [t + "diagonalstrike", {
4739
4754
  renderer: e(n),
4740
- bbox: G
4755
+ bbox: W
4741
4756
  }];
4742
4757
  };
4743
4758
  }, dn = function(e) {
@@ -4783,9 +4798,9 @@ function pn(e) {
4783
4798
  return class extends e {
4784
4799
  getParameters() {
4785
4800
  let e = this.node.attributes, t = e.get("data-padding");
4786
- t !== void 0 && (this.padding = this.length2em(t, $t));
4801
+ t !== void 0 && (this.padding = this.length2em(t, tn));
4787
4802
  let n = e.get("data-thickness");
4788
- n !== void 0 && (this.thickness = this.length2em(n, Qt));
4803
+ n !== void 0 && (this.thickness = this.length2em(n, en));
4789
4804
  let r = e.get("data-arrowhead");
4790
4805
  if (r !== void 0) {
4791
4806
  let [e, t, n] = m(r);
@@ -4885,7 +4900,7 @@ function pn(e) {
4885
4900
  ];
4886
4901
  }
4887
4902
  constructor(e, t, n = null) {
4888
- super(e, t, n), this.notations = {}, this.renderChild = null, this.msqrt = null, this.padding = $t, this.thickness = Qt, this.arrowhead = {
4903
+ super(e, t, n), this.notations = {}, this.renderChild = null, this.msqrt = null, this.padding = tn, this.thickness = en, this.arrowhead = {
4889
4904
  x: 4,
4890
4905
  y: 2,
4891
4906
  dx: 1
@@ -5089,8 +5104,8 @@ var mn = {
5089
5104
  let { w: n, h: r, d: i } = e.getBBox();
5090
5105
  e.adaptor.append(e.dom[0], e.box(n, r, i));
5091
5106
  },
5092
- bbox: G,
5093
- border: tn,
5107
+ bbox: W,
5108
+ border: nn,
5094
5109
  remove: "left right top bottom"
5095
5110
  }],
5096
5111
  ["roundedbox", {
@@ -5098,14 +5113,14 @@ var mn = {
5098
5113
  let { w: n, h: r, d: i } = e.getBBox(), a = e.thickness + e.padding;
5099
5114
  e.adaptor.append(e.dom[0], e.box(n, r, i, a));
5100
5115
  },
5101
- bbox: G
5116
+ bbox: W
5102
5117
  }],
5103
5118
  ["circle", {
5104
5119
  renderer: (e, t) => {
5105
5120
  let { w: n, h: r, d: i } = e.getBBox();
5106
5121
  e.adaptor.append(e.dom[0], e.ellipse(n, r, i));
5107
5122
  },
5108
- bbox: G
5123
+ bbox: W
5109
5124
  }],
5110
5125
  ["phasorangle", {
5111
5126
  renderer: (e, t) => {
@@ -5451,34 +5466,34 @@ var jn = (function() {
5451
5466
  var e;
5452
5467
  return e = class extends Tn {}, e.kind = Se.prototype.kind, e;
5453
5468
  })(), Nn = {
5454
- [qe.kind]: qe,
5455
- [Xe.kind]: Xe,
5456
- [Ze.kind]: Ze,
5469
+ [Ye.kind]: Ye,
5470
+ [Qe.kind]: Qe,
5457
5471
  [$e.kind]: $e,
5458
- [nt.kind]: nt,
5459
- [it.kind]: it,
5460
- [ot.kind]: ot,
5461
- [ct.kind]: ct,
5472
+ [tt.kind]: tt,
5473
+ [rt.kind]: rt,
5474
+ [at.kind]: at,
5475
+ [st.kind]: st,
5462
5476
  [lt.kind]: lt,
5463
- [dt.kind]: dt,
5464
- [pt.kind]: pt,
5477
+ [ut.kind]: ut,
5478
+ [ft.kind]: ft,
5465
5479
  [mt.kind]: mt,
5466
- [gt.kind]: gt,
5467
- [H.kind]: H,
5480
+ [ht.kind]: ht,
5481
+ [_t.kind]: _t,
5468
5482
  [yt.kind]: yt,
5469
5483
  [xt.kind]: xt,
5470
- [Dt.kind]: Dt,
5471
- [Ot.kind]: Ot,
5472
- [U.kind]: U,
5473
- [Mt.kind]: Mt,
5474
- [Nt.kind]: Nt,
5484
+ [Ct.kind]: Ct,
5485
+ [kt.kind]: kt,
5486
+ [At.kind]: At,
5487
+ [V.kind]: V,
5475
5488
  [Pt.kind]: Pt,
5476
- [Rt.kind]: Rt,
5477
- [Ht.kind]: Ht,
5478
- [Gt.kind]: Gt,
5479
- [Kt.kind]: Kt,
5489
+ [Ft.kind]: Ft,
5490
+ [It.kind]: It,
5491
+ [Bt.kind]: Bt,
5492
+ [Wt.kind]: Wt,
5493
+ [qt.kind]: qt,
5480
5494
  [Jt.kind]: Jt,
5481
- [Zt.kind]: Zt,
5495
+ [Xt.kind]: Xt,
5496
+ [$t.kind]: $t,
5482
5497
  [yn.kind]: yn,
5483
5498
  [Sn.kind]: Sn,
5484
5499
  [Cn.kind]: Cn,
@@ -5489,7 +5504,7 @@ var jn = (function() {
5489
5504
  [jn.kind]: jn,
5490
5505
  [Mn.kind]: Mn,
5491
5506
  [z.kind]: z
5492
- }, Pn = class extends ze {};
5507
+ }, Pn = class extends Ve {};
5493
5508
  Pn.defaultNodes = Nn;
5494
5509
  //#endregion
5495
5510
  //#region node_modules/@mathjax/src/mjs/output/svg/FontCache.js
@@ -28532,7 +28547,7 @@ var yr = vr.DefaultFont, Q = "http://www.w3.org/2000/svg", br = "http://www.w3.o
28532
28547
  return this.adaptor.setAttribute(n, "id", e.STYLESHEETID), n;
28533
28548
  }
28534
28549
  insertStyles(e) {
28535
- this.svgStyles && this.adaptor.insertRules(this.svgStyles, new Ie(e).getStyleRules());
28550
+ this.svgStyles && this.adaptor.insertRules(this.svgStyles, new Re(e).getStyleRules());
28536
28551
  }
28537
28552
  pageElements(t) {
28538
28553
  return this.options.fontCache === "global" && !this.findCache(t) ? this.svg("svg", {
@@ -28620,7 +28635,7 @@ var yr = vr.DefaultFont, Q = "http://www.w3.org/2000/svg", br = "http://www.w3.o
28620
28635
  }
28621
28636
  addInlineBreak(e, t, n) {
28622
28637
  let r = this.adaptor, i = E(t);
28623
- n || r.insert(r.node("mjx-break", { prebreak: !0 }, [r.text(" ")]), e), r.insert(r.node("mjx-break", n ? We[i] ? { size: We[i] } : { style: `letter-spacing: ${E(t - 1)}` } : { newline: !0 }, [r.text(" ")]), e);
28638
+ n || r.insert(r.node("mjx-break", { prebreak: !0 }, [r.text(" ")]), e), r.insert(r.node("mjx-break", n ? Ke[i] ? { size: Ke[i] } : { style: `letter-spacing: ${E(t - 1)}` } : { newline: !0 }, [r.text(" ")]), e);
28624
28639
  }
28625
28640
  ex(e) {
28626
28641
  return e /= this.font.params.x_height, Math.abs(e) < .001 ? "0" : e.toFixed(3).replace(/\.?0+$/, "") + "ex";