manim-web 0.3.18 → 0.3.20

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 (136) hide show
  1. package/README.md +26 -40
  2. package/dist/AllPackages-B0GtkYjD.js +7912 -0
  3. package/dist/AllPackages-BIAELuhU.js +7912 -0
  4. package/dist/BaseConfiguration-CDf44lxS.js +4402 -0
  5. package/dist/BaseConfiguration-Chcqjv9L.js +4402 -0
  6. package/dist/Entities-B_gwJfrn.js +458 -0
  7. package/dist/Entities-CmJkmuw_.js +458 -0
  8. package/dist/GifExporter-C9lP34Iu.js +338 -0
  9. package/dist/GifExporter-DBak5Vk7.js +338 -0
  10. package/dist/InputJax-C5sGfjJ8.js +43 -0
  11. package/dist/InputJax-Jb4hSThK.js +43 -0
  12. package/dist/MathItem-BmK41eqe.js +77 -0
  13. package/dist/MathItem-C_mZyaeT.js +77 -0
  14. package/dist/Options-Ch1vGsgd.js +188 -0
  15. package/dist/Options-V6ag48Dv.js +188 -0
  16. package/dist/PrioritizedList-DkoCmqPk.js +36 -0
  17. package/dist/PrioritizedList-eKTii0tW.js +36 -0
  18. package/dist/Styles-De4BjKiV.js +411 -0
  19. package/dist/Styles-DgoiBrzf.js +411 -0
  20. package/dist/TeXAtom-DT2wCvcU.js +2025 -0
  21. package/dist/TeXAtom-JogI0lus.js +2025 -0
  22. package/dist/VideoExporter-Bdtz_pWv.js +102 -0
  23. package/dist/VideoExporter-Vjfsnv1h.js +102 -0
  24. package/dist/animation/creation/Create.d.ts +1 -1
  25. package/dist/animation/movement/Rotate.d.ts +2 -0
  26. package/dist/animation/movement/Rotate.d.ts.map +1 -1
  27. package/dist/animation/movement/Scale.d.ts +2 -0
  28. package/dist/animation/movement/Scale.d.ts.map +1 -1
  29. package/dist/animation/transform/ApplyTransforms.d.ts +1 -2
  30. package/dist/animation/transform/ApplyTransforms.d.ts.map +1 -1
  31. package/dist/animation/transform/MovementTransforms.d.ts +8 -0
  32. package/dist/animation/transform/MovementTransforms.d.ts.map +1 -1
  33. package/dist/animation/transform/Transform.d.ts +3 -0
  34. package/dist/animation/transform/Transform.d.ts.map +1 -1
  35. package/dist/animation/utility/index.d.ts +2 -0
  36. package/dist/animation/utility/index.d.ts.map +1 -1
  37. package/dist/chunk-3e0lkp8x.js +23 -0
  38. package/dist/constants/fontRender.d.ts +19 -0
  39. package/dist/constants/fontRender.d.ts.map +1 -0
  40. package/dist/constants/index.d.ts.map +1 -1
  41. package/dist/core/Camera.d.ts +19 -6
  42. package/dist/core/Camera.d.ts.map +1 -1
  43. package/dist/core/CameraFrame.d.ts +0 -2
  44. package/dist/core/CameraFrame.d.ts.map +1 -1
  45. package/dist/core/Group.d.ts +2 -2
  46. package/dist/core/Group.d.ts.map +1 -1
  47. package/dist/core/Mobject.d.ts +26 -6
  48. package/dist/core/Mobject.d.ts.map +1 -1
  49. package/dist/core/MobjectState.d.ts +23 -2
  50. package/dist/core/MobjectState.d.ts.map +1 -1
  51. package/dist/core/MobjectTraversal.d.ts +25 -0
  52. package/dist/core/MobjectTraversal.d.ts.map +1 -0
  53. package/dist/core/Scene.d.ts +7 -1
  54. package/dist/core/Scene.d.ts.map +1 -1
  55. package/dist/core/ThreeDScene.d.ts +19 -0
  56. package/dist/core/ThreeDScene.d.ts.map +1 -1
  57. package/dist/core/VGroup.d.ts +1 -1
  58. package/dist/core/VGroup.d.ts.map +1 -1
  59. package/dist/core/VMobject.d.ts +20 -1
  60. package/dist/core/VMobject.d.ts.map +1 -1
  61. package/dist/core/VMobjectGeometry.d.ts +2 -1
  62. package/dist/core/VMobjectGeometry.d.ts.map +1 -1
  63. package/dist/html-53__O8r2.js +1587 -0
  64. package/dist/html-DfHFh5II.js +1587 -0
  65. package/dist/index.d.ts +1 -1
  66. package/dist/index.d.ts.map +1 -1
  67. package/dist/index.js +4 -579
  68. package/dist/integrations/react.js +144 -735
  69. package/dist/integrations/vue.js +109 -735
  70. package/dist/interaction/Draggable.d.ts.map +1 -1
  71. package/dist/interaction/OrbitControls.d.ts +2 -0
  72. package/dist/interaction/OrbitControls.d.ts.map +1 -1
  73. package/dist/lengths-3epoqRj7.js +65 -0
  74. package/dist/lengths-B-bX9Tfk.js +65 -0
  75. package/dist/liteAdaptor-BxFvlO-q.js +828 -0
  76. package/dist/liteAdaptor-CsOIKw2g.js +828 -0
  77. package/dist/manim-web.browser.js +72994 -83815
  78. package/dist/mathjax-Bkrmftxh.js +102 -0
  79. package/dist/mathjax-DBrTNl9C.js +102 -0
  80. package/dist/mo-AzagC5AD.js +3271 -0
  81. package/dist/mo-I_6dyJsk.js +3271 -0
  82. package/dist/mobjects/geometry/AngleShapes.d.ts +16 -0
  83. package/dist/mobjects/geometry/AngleShapes.d.ts.map +1 -1
  84. package/dist/mobjects/geometry/DashedLine.d.ts +2 -2
  85. package/dist/mobjects/geometry/DashedLine.d.ts.map +1 -1
  86. package/dist/mobjects/graphing/Axes.d.ts +2 -2
  87. package/dist/mobjects/graphing/Axes.d.ts.map +1 -1
  88. package/dist/mobjects/graphing/ComplexPlane.d.ts +4 -1
  89. package/dist/mobjects/graphing/ComplexPlane.d.ts.map +1 -1
  90. package/dist/mobjects/matrix/Matrix.d.ts +2 -2
  91. package/dist/mobjects/matrix/Matrix.d.ts.map +1 -1
  92. package/dist/mobjects/point/PGroup.d.ts +1 -1
  93. package/dist/mobjects/point/PGroup.d.ts.map +1 -1
  94. package/dist/mobjects/point/PMobject.d.ts +1 -1
  95. package/dist/mobjects/point/PMobject.d.ts.map +1 -1
  96. package/dist/mobjects/svg/Brace.d.ts +3 -3
  97. package/dist/mobjects/svg/Brace.d.ts.map +1 -1
  98. package/dist/mobjects/table/Table.d.ts +4 -4
  99. package/dist/mobjects/table/Table.d.ts.map +1 -1
  100. package/dist/mobjects/text/MathJaxRenderer.d.ts +4 -2
  101. package/dist/mobjects/text/MathJaxRenderer.d.ts.map +1 -1
  102. package/dist/mobjects/text/MathTex.d.ts +68 -202
  103. package/dist/mobjects/text/MathTex.d.ts.map +1 -1
  104. package/dist/mobjects/text/MathTexImage.d.ts +258 -0
  105. package/dist/mobjects/text/MathTexImage.d.ts.map +1 -0
  106. package/dist/mobjects/text/MathTexParts.d.ts +10 -10
  107. package/dist/mobjects/text/MathTexParts.d.ts.map +1 -1
  108. package/dist/mobjects/text/Tex.d.ts +2 -7
  109. package/dist/mobjects/text/Tex.d.ts.map +1 -1
  110. package/dist/mobjects/text/Text.d.ts +2 -2
  111. package/dist/mobjects/text/Text.d.ts.map +1 -1
  112. package/dist/mobjects/text/Variable.d.ts +5 -5
  113. package/dist/mobjects/text/Variable.d.ts.map +1 -1
  114. package/dist/mobjects/text/index.d.ts +2 -2
  115. package/dist/mobjects/text/index.d.ts.map +1 -1
  116. package/dist/mobjects/text/katexStyles.d.ts.map +1 -1
  117. package/dist/mobjects/text/svgPathParser.d.ts.map +1 -1
  118. package/dist/mobjects/three-d/ThreeDAxes.d.ts +113 -9
  119. package/dist/mobjects/three-d/ThreeDAxes.d.ts.map +1 -1
  120. package/dist/player/Player.d.ts +8 -2
  121. package/dist/player/Player.d.ts.map +1 -1
  122. package/dist/player/PlayerController.d.ts +2 -0
  123. package/dist/player/PlayerController.d.ts.map +1 -1
  124. package/dist/player/PlayerUI.d.ts +5 -0
  125. package/dist/player/PlayerUI.d.ts.map +1 -1
  126. package/dist/src-Db7QTr4S.js +60248 -0
  127. package/dist/svg-CoGQ_sAt.js +23880 -0
  128. package/dist/svg-DiIG93Lr.js +23880 -0
  129. package/dist/tex-ChPKMfdv.js +401 -0
  130. package/dist/tex-hYZcjadW.js +401 -0
  131. package/dist/utils/math.d.ts +45 -0
  132. package/dist/utils/math.d.ts.map +1 -1
  133. package/package.json +6 -4
  134. package/dist/featureFlags-H97tY2Rw.js +0 -59814
  135. package/dist/mobjects/text/MathTexSVG.d.ts +0 -102
  136. package/dist/mobjects/text/MathTexSVG.d.ts.map +0 -1
@@ -0,0 +1,2025 @@
1
+ import { t as e } from "./chunk-3e0lkp8x.js";
2
+ import { t } from "./Options-V6ag48Dv.js";
3
+ import { a as n, i as r, n as i, s as a, t as o } from "./mo-AzagC5AD.js";
4
+ //#region node_modules/mathjax-full/js/core/OutputJax.js
5
+ var s = /* @__PURE__ */ e(((e) => {
6
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.AbstractOutputJax = void 0;
7
+ var n = t(), r = a();
8
+ e.AbstractOutputJax = function() {
9
+ function e(e) {
10
+ e === void 0 && (e = {}), this.adaptor = null;
11
+ var t = this.constructor;
12
+ this.options = (0, n.userOptions)((0, n.defaultOptions)({}, t.OPTIONS), e), this.postFilters = new r.FunctionList();
13
+ }
14
+ return Object.defineProperty(e.prototype, "name", {
15
+ get: function() {
16
+ return this.constructor.NAME;
17
+ },
18
+ enumerable: !1,
19
+ configurable: !0
20
+ }), e.prototype.setAdaptor = function(e) {
21
+ this.adaptor = e;
22
+ }, e.prototype.initialize = function() {}, e.prototype.reset = function() {}, e.prototype.getMetrics = function(e) {}, e.prototype.styleSheet = function(e) {
23
+ return null;
24
+ }, e.prototype.pageElements = function(e) {
25
+ return null;
26
+ }, e.prototype.executeFilters = function(e, t, n, r) {
27
+ var i = {
28
+ math: t,
29
+ document: n,
30
+ data: r
31
+ };
32
+ return e.execute(i), i.data;
33
+ }, e.NAME = "generic", e.OPTIONS = {}, e;
34
+ }();
35
+ })), c = /* @__PURE__ */ e(((e) => {
36
+ var t = e && e.__extends || (function() {
37
+ var e = function(t, n) {
38
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
39
+ e.__proto__ = t;
40
+ } || function(e, t) {
41
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
42
+ }, e(t, n);
43
+ };
44
+ return function(t, n) {
45
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
46
+ e(t, n);
47
+ function r() {
48
+ this.constructor = t;
49
+ }
50
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
51
+ };
52
+ })(), n = e && e.__assign || function() {
53
+ return n = Object.assign || function(e) {
54
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
55
+ return e;
56
+ }, n.apply(this, arguments);
57
+ };
58
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMath = void 0;
59
+ var i = r();
60
+ e.MmlMath = function(e) {
61
+ t(r, e);
62
+ function r() {
63
+ return e !== null && e.apply(this, arguments) || this;
64
+ }
65
+ return Object.defineProperty(r.prototype, "kind", {
66
+ get: function() {
67
+ return "math";
68
+ },
69
+ enumerable: !1,
70
+ configurable: !0
71
+ }), Object.defineProperty(r.prototype, "linebreakContainer", {
72
+ get: function() {
73
+ return !0;
74
+ },
75
+ enumerable: !1,
76
+ configurable: !0
77
+ }), r.prototype.setChildInheritedAttributes = function(t, n, r, i) {
78
+ this.attributes.get("mode") === "display" && this.attributes.setInherited("display", "block"), t = this.addInheritedAttributes(t, this.attributes.getAllAttributes()), n = !!this.attributes.get("displaystyle") || !this.attributes.get("displaystyle") && this.attributes.get("display") === "block", this.attributes.setInherited("displaystyle", n), r = this.attributes.get("scriptlevel") || this.constructor.defaults.scriptlevel, e.prototype.setChildInheritedAttributes.call(this, t, n, r, i);
79
+ }, r.defaults = n(n({}, i.AbstractMmlLayoutNode.defaults), {
80
+ mathvariant: "normal",
81
+ mathsize: "normal",
82
+ mathcolor: "",
83
+ mathbackground: "transparent",
84
+ dir: "ltr",
85
+ scriptlevel: 0,
86
+ displaystyle: !1,
87
+ display: "inline",
88
+ maxwidth: "",
89
+ overflow: "linebreak",
90
+ altimg: "",
91
+ "altimg-width": "",
92
+ "altimg-height": "",
93
+ "altimg-valign": "",
94
+ alttext: "",
95
+ cdgroup: "",
96
+ scriptsizemultiplier: 1 / Math.sqrt(2),
97
+ scriptminsize: "8px",
98
+ infixlinebreakstyle: "before",
99
+ lineleading: "1ex",
100
+ linebreakmultchar: "⁢",
101
+ indentshift: "auto",
102
+ indentalign: "auto",
103
+ indenttarget: "",
104
+ indentalignfirst: "indentalign",
105
+ indentshiftfirst: "indentshift",
106
+ indentalignlast: "indentalign",
107
+ indentshiftlast: "indentshift"
108
+ }), r;
109
+ }(i.AbstractMmlLayoutNode);
110
+ })), l = /* @__PURE__ */ e(((e) => {
111
+ var t = e && e.__extends || (function() {
112
+ var e = function(t, n) {
113
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
114
+ e.__proto__ = t;
115
+ } || function(e, t) {
116
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
117
+ }, e(t, n);
118
+ };
119
+ return function(t, n) {
120
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
121
+ e(t, n);
122
+ function r() {
123
+ this.constructor = t;
124
+ }
125
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
126
+ };
127
+ })(), n = e && e.__assign || function() {
128
+ return n = Object.assign || function(e) {
129
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
130
+ return e;
131
+ }, n.apply(this, arguments);
132
+ };
133
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMi = void 0;
134
+ var i = r();
135
+ e.MmlMi = function(e) {
136
+ t(r, e);
137
+ function r() {
138
+ var t = e !== null && e.apply(this, arguments) || this;
139
+ return t.texclass = i.TEXCLASS.ORD, t;
140
+ }
141
+ return Object.defineProperty(r.prototype, "kind", {
142
+ get: function() {
143
+ return "mi";
144
+ },
145
+ enumerable: !1,
146
+ configurable: !0
147
+ }), r.prototype.setInheritedAttributes = function(t, n, i, a) {
148
+ t === void 0 && (t = {}), n === void 0 && (n = !1), i === void 0 && (i = 0), a === void 0 && (a = !1), e.prototype.setInheritedAttributes.call(this, t, n, i, a), this.getText().match(r.singleCharacter) && !t.mathvariant && this.attributes.setInherited("mathvariant", "italic");
149
+ }, r.prototype.setTeXclass = function(e) {
150
+ this.getPrevClass(e);
151
+ var t = this.getText();
152
+ return t.length > 1 && t.match(r.operatorName) && this.attributes.get("mathvariant") === "normal" && this.getProperty("autoOP") === void 0 && this.getProperty("texClass") === void 0 && (this.texClass = i.TEXCLASS.OP, this.setProperty("autoOP", !0)), this;
153
+ }, r.defaults = n({}, i.AbstractMmlTokenNode.defaults), r.operatorName = /^[a-z][a-z0-9]*$/i, r.singleCharacter = /^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/, r;
154
+ }(i.AbstractMmlTokenNode);
155
+ })), u = /* @__PURE__ */ e(((e) => {
156
+ var t = e && e.__extends || (function() {
157
+ var e = function(t, n) {
158
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
159
+ e.__proto__ = t;
160
+ } || function(e, t) {
161
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
162
+ }, e(t, n);
163
+ };
164
+ return function(t, n) {
165
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
166
+ e(t, n);
167
+ function r() {
168
+ this.constructor = t;
169
+ }
170
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
171
+ };
172
+ })(), n = e && e.__assign || function() {
173
+ return n = Object.assign || function(e) {
174
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
175
+ return e;
176
+ }, n.apply(this, arguments);
177
+ };
178
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMn = void 0;
179
+ var i = r();
180
+ e.MmlMn = function(e) {
181
+ t(r, e);
182
+ function r() {
183
+ var t = e !== null && e.apply(this, arguments) || this;
184
+ return t.texclass = i.TEXCLASS.ORD, t;
185
+ }
186
+ return Object.defineProperty(r.prototype, "kind", {
187
+ get: function() {
188
+ return "mn";
189
+ },
190
+ enumerable: !1,
191
+ configurable: !0
192
+ }), r.defaults = n({}, i.AbstractMmlTokenNode.defaults), r;
193
+ }(i.AbstractMmlTokenNode);
194
+ })), d = /* @__PURE__ */ e(((e) => {
195
+ var t = e && e.__extends || (function() {
196
+ var e = function(t, n) {
197
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
198
+ e.__proto__ = t;
199
+ } || function(e, t) {
200
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
201
+ }, e(t, n);
202
+ };
203
+ return function(t, n) {
204
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
205
+ e(t, n);
206
+ function r() {
207
+ this.constructor = t;
208
+ }
209
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
210
+ };
211
+ })(), n = e && e.__assign || function() {
212
+ return n = Object.assign || function(e) {
213
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
214
+ return e;
215
+ }, n.apply(this, arguments);
216
+ };
217
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMtext = void 0;
218
+ var i = r();
219
+ e.MmlMtext = function(e) {
220
+ t(r, e);
221
+ function r() {
222
+ var t = e !== null && e.apply(this, arguments) || this;
223
+ return t.texclass = i.TEXCLASS.ORD, t;
224
+ }
225
+ return Object.defineProperty(r.prototype, "kind", {
226
+ get: function() {
227
+ return "mtext";
228
+ },
229
+ enumerable: !1,
230
+ configurable: !0
231
+ }), Object.defineProperty(r.prototype, "isSpacelike", {
232
+ get: function() {
233
+ return !0;
234
+ },
235
+ enumerable: !1,
236
+ configurable: !0
237
+ }), r.defaults = n({}, i.AbstractMmlTokenNode.defaults), r;
238
+ }(i.AbstractMmlTokenNode);
239
+ })), f = /* @__PURE__ */ e(((e) => {
240
+ var t = e && e.__extends || (function() {
241
+ var e = function(t, n) {
242
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
243
+ e.__proto__ = t;
244
+ } || function(e, t) {
245
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
246
+ }, e(t, n);
247
+ };
248
+ return function(t, n) {
249
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
250
+ e(t, n);
251
+ function r() {
252
+ this.constructor = t;
253
+ }
254
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
255
+ };
256
+ })(), n = e && e.__assign || function() {
257
+ return n = Object.assign || function(e) {
258
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
259
+ return e;
260
+ }, n.apply(this, arguments);
261
+ };
262
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMspace = void 0;
263
+ var i = r();
264
+ e.MmlMspace = function(e) {
265
+ t(r, e);
266
+ function r() {
267
+ var t = e !== null && e.apply(this, arguments) || this;
268
+ return t.texclass = i.TEXCLASS.NONE, t;
269
+ }
270
+ return r.prototype.setTeXclass = function(e) {
271
+ return e;
272
+ }, Object.defineProperty(r.prototype, "kind", {
273
+ get: function() {
274
+ return "mspace";
275
+ },
276
+ enumerable: !1,
277
+ configurable: !0
278
+ }), Object.defineProperty(r.prototype, "arity", {
279
+ get: function() {
280
+ return 0;
281
+ },
282
+ enumerable: !1,
283
+ configurable: !0
284
+ }), Object.defineProperty(r.prototype, "isSpacelike", {
285
+ get: function() {
286
+ return !0;
287
+ },
288
+ enumerable: !1,
289
+ configurable: !0
290
+ }), Object.defineProperty(r.prototype, "hasNewline", {
291
+ get: function() {
292
+ var e = this.attributes;
293
+ return e.getExplicit("width") == null && e.getExplicit("height") == null && e.getExplicit("depth") == null && e.get("linebreak") === "newline";
294
+ },
295
+ enumerable: !1,
296
+ configurable: !0
297
+ }), r.defaults = n(n({}, i.AbstractMmlTokenNode.defaults), {
298
+ width: "0em",
299
+ height: "0ex",
300
+ depth: "0ex",
301
+ linebreak: "auto"
302
+ }), r;
303
+ }(i.AbstractMmlTokenNode);
304
+ })), p = /* @__PURE__ */ e(((e) => {
305
+ var t = e && e.__extends || (function() {
306
+ var e = function(t, n) {
307
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
308
+ e.__proto__ = t;
309
+ } || function(e, t) {
310
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
311
+ }, e(t, n);
312
+ };
313
+ return function(t, n) {
314
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
315
+ e(t, n);
316
+ function r() {
317
+ this.constructor = t;
318
+ }
319
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
320
+ };
321
+ })(), n = e && e.__assign || function() {
322
+ return n = Object.assign || function(e) {
323
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
324
+ return e;
325
+ }, n.apply(this, arguments);
326
+ };
327
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMs = void 0;
328
+ var i = r();
329
+ e.MmlMs = function(e) {
330
+ t(r, e);
331
+ function r() {
332
+ var t = e !== null && e.apply(this, arguments) || this;
333
+ return t.texclass = i.TEXCLASS.ORD, t;
334
+ }
335
+ return Object.defineProperty(r.prototype, "kind", {
336
+ get: function() {
337
+ return "ms";
338
+ },
339
+ enumerable: !1,
340
+ configurable: !0
341
+ }), r.defaults = n(n({}, i.AbstractMmlTokenNode.defaults), {
342
+ lquote: "\"",
343
+ rquote: "\""
344
+ }), r;
345
+ }(i.AbstractMmlTokenNode);
346
+ })), m = /* @__PURE__ */ e(((e) => {
347
+ var t = e && e.__extends || (function() {
348
+ var e = function(t, n) {
349
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
350
+ e.__proto__ = t;
351
+ } || function(e, t) {
352
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
353
+ }, e(t, n);
354
+ };
355
+ return function(t, n) {
356
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
357
+ e(t, n);
358
+ function r() {
359
+ this.constructor = t;
360
+ }
361
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
362
+ };
363
+ })(), n = e && e.__assign || function() {
364
+ return n = Object.assign || function(e) {
365
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
366
+ return e;
367
+ }, n.apply(this, arguments);
368
+ }, i = e && e.__values || function(e) {
369
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
370
+ if (n) return n.call(e);
371
+ if (e && typeof e.length == "number") return { next: function() {
372
+ return e && r >= e.length && (e = void 0), {
373
+ value: e && e[r++],
374
+ done: !e
375
+ };
376
+ } };
377
+ throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
378
+ };
379
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlInferredMrow = e.MmlMrow = void 0;
380
+ var a = r(), o = function(e) {
381
+ t(r, e);
382
+ function r() {
383
+ var t = e !== null && e.apply(this, arguments) || this;
384
+ return t._core = null, t;
385
+ }
386
+ return Object.defineProperty(r.prototype, "kind", {
387
+ get: function() {
388
+ return "mrow";
389
+ },
390
+ enumerable: !1,
391
+ configurable: !0
392
+ }), Object.defineProperty(r.prototype, "isSpacelike", {
393
+ get: function() {
394
+ var e, t;
395
+ try {
396
+ for (var n = i(this.childNodes), r = n.next(); !r.done; r = n.next()) if (!r.value.isSpacelike) return !1;
397
+ } catch (t) {
398
+ e = { error: t };
399
+ } finally {
400
+ try {
401
+ r && !r.done && (t = n.return) && t.call(n);
402
+ } finally {
403
+ if (e) throw e.error;
404
+ }
405
+ }
406
+ return !0;
407
+ },
408
+ enumerable: !1,
409
+ configurable: !0
410
+ }), Object.defineProperty(r.prototype, "isEmbellished", {
411
+ get: function() {
412
+ var e, t, n = !1, r = 0;
413
+ try {
414
+ for (var a = i(this.childNodes), o = a.next(); !o.done; o = a.next()) {
415
+ var s = o.value;
416
+ if (s) {
417
+ if (s.isEmbellished) {
418
+ if (n) return !1;
419
+ n = !0, this._core = r;
420
+ } else if (!s.isSpacelike) return !1;
421
+ }
422
+ r++;
423
+ }
424
+ } catch (t) {
425
+ e = { error: t };
426
+ } finally {
427
+ try {
428
+ o && !o.done && (t = a.return) && t.call(a);
429
+ } finally {
430
+ if (e) throw e.error;
431
+ }
432
+ }
433
+ return n;
434
+ },
435
+ enumerable: !1,
436
+ configurable: !0
437
+ }), r.prototype.core = function() {
438
+ return !this.isEmbellished || this._core == null ? this : this.childNodes[this._core];
439
+ }, r.prototype.coreMO = function() {
440
+ return !this.isEmbellished || this._core == null ? this : this.childNodes[this._core].coreMO();
441
+ }, r.prototype.nonSpaceLength = function() {
442
+ var e, t, n = 0;
443
+ try {
444
+ for (var r = i(this.childNodes), a = r.next(); !a.done; a = r.next()) {
445
+ var o = a.value;
446
+ o && !o.isSpacelike && n++;
447
+ }
448
+ } catch (t) {
449
+ e = { error: t };
450
+ } finally {
451
+ try {
452
+ a && !a.done && (t = r.return) && t.call(r);
453
+ } finally {
454
+ if (e) throw e.error;
455
+ }
456
+ }
457
+ return n;
458
+ }, r.prototype.firstNonSpace = function() {
459
+ var e, t;
460
+ try {
461
+ for (var n = i(this.childNodes), r = n.next(); !r.done; r = n.next()) {
462
+ var a = r.value;
463
+ if (a && !a.isSpacelike) return a;
464
+ }
465
+ } catch (t) {
466
+ e = { error: t };
467
+ } finally {
468
+ try {
469
+ r && !r.done && (t = n.return) && t.call(n);
470
+ } finally {
471
+ if (e) throw e.error;
472
+ }
473
+ }
474
+ return null;
475
+ }, r.prototype.lastNonSpace = function() {
476
+ for (var e = this.childNodes.length; --e >= 0;) {
477
+ var t = this.childNodes[e];
478
+ if (t && !t.isSpacelike) return t;
479
+ }
480
+ return null;
481
+ }, r.prototype.setTeXclass = function(e) {
482
+ var t, n, r, o;
483
+ if (this.getProperty("open") != null || this.getProperty("close") != null) {
484
+ this.getPrevClass(e), e = null;
485
+ try {
486
+ for (var s = i(this.childNodes), c = s.next(); !c.done; c = s.next()) {
487
+ var l = c.value;
488
+ e = l.setTeXclass(e);
489
+ }
490
+ } catch (e) {
491
+ t = { error: e };
492
+ } finally {
493
+ try {
494
+ c && !c.done && (n = s.return) && n.call(s);
495
+ } finally {
496
+ if (t) throw t.error;
497
+ }
498
+ }
499
+ this.texClass ??= a.TEXCLASS.INNER;
500
+ } else {
501
+ try {
502
+ for (var u = i(this.childNodes), d = u.next(); !d.done; d = u.next()) {
503
+ var l = d.value;
504
+ e = l.setTeXclass(e);
505
+ }
506
+ } catch (e) {
507
+ r = { error: e };
508
+ } finally {
509
+ try {
510
+ d && !d.done && (o = u.return) && o.call(u);
511
+ } finally {
512
+ if (r) throw r.error;
513
+ }
514
+ }
515
+ this.childNodes[0] && this.updateTeXclass(this.childNodes[0]);
516
+ }
517
+ return e;
518
+ }, r.defaults = n({}, a.AbstractMmlNode.defaults), r;
519
+ }(a.AbstractMmlNode);
520
+ e.MmlMrow = o, e.MmlInferredMrow = function(e) {
521
+ t(n, e);
522
+ function n() {
523
+ return e !== null && e.apply(this, arguments) || this;
524
+ }
525
+ return Object.defineProperty(n.prototype, "kind", {
526
+ get: function() {
527
+ return "inferredMrow";
528
+ },
529
+ enumerable: !1,
530
+ configurable: !0
531
+ }), Object.defineProperty(n.prototype, "isInferred", {
532
+ get: function() {
533
+ return !0;
534
+ },
535
+ enumerable: !1,
536
+ configurable: !0
537
+ }), Object.defineProperty(n.prototype, "notParent", {
538
+ get: function() {
539
+ return !0;
540
+ },
541
+ enumerable: !1,
542
+ configurable: !0
543
+ }), n.prototype.toString = function() {
544
+ return "[" + this.childNodes.join(",") + "]";
545
+ }, n.defaults = o.defaults, n;
546
+ }(o);
547
+ })), h = /* @__PURE__ */ e(((e) => {
548
+ var t = e && e.__extends || (function() {
549
+ var e = function(t, n) {
550
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
551
+ e.__proto__ = t;
552
+ } || function(e, t) {
553
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
554
+ }, e(t, n);
555
+ };
556
+ return function(t, n) {
557
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
558
+ e(t, n);
559
+ function r() {
560
+ this.constructor = t;
561
+ }
562
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
563
+ };
564
+ })(), n = e && e.__assign || function() {
565
+ return n = Object.assign || function(e) {
566
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
567
+ return e;
568
+ }, n.apply(this, arguments);
569
+ }, i = e && e.__values || function(e) {
570
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
571
+ if (n) return n.call(e);
572
+ if (e && typeof e.length == "number") return { next: function() {
573
+ return e && r >= e.length && (e = void 0), {
574
+ value: e && e[r++],
575
+ done: !e
576
+ };
577
+ } };
578
+ throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
579
+ };
580
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMfrac = void 0;
581
+ var a = r();
582
+ e.MmlMfrac = function(e) {
583
+ t(r, e);
584
+ function r() {
585
+ return e !== null && e.apply(this, arguments) || this;
586
+ }
587
+ return Object.defineProperty(r.prototype, "kind", {
588
+ get: function() {
589
+ return "mfrac";
590
+ },
591
+ enumerable: !1,
592
+ configurable: !0
593
+ }), Object.defineProperty(r.prototype, "arity", {
594
+ get: function() {
595
+ return 2;
596
+ },
597
+ enumerable: !1,
598
+ configurable: !0
599
+ }), Object.defineProperty(r.prototype, "linebreakContainer", {
600
+ get: function() {
601
+ return !0;
602
+ },
603
+ enumerable: !1,
604
+ configurable: !0
605
+ }), r.prototype.setTeXclass = function(e) {
606
+ var t, n;
607
+ this.getPrevClass(e);
608
+ try {
609
+ for (var r = i(this.childNodes), a = r.next(); !a.done; a = r.next()) a.value.setTeXclass(null);
610
+ } catch (e) {
611
+ t = { error: e };
612
+ } finally {
613
+ try {
614
+ a && !a.done && (n = r.return) && n.call(r);
615
+ } finally {
616
+ if (t) throw t.error;
617
+ }
618
+ }
619
+ return this;
620
+ }, r.prototype.setChildInheritedAttributes = function(e, t, n, r) {
621
+ (!t || n > 0) && n++, this.childNodes[0].setInheritedAttributes(e, !1, n, r), this.childNodes[1].setInheritedAttributes(e, !1, n, !0);
622
+ }, r.defaults = n(n({}, a.AbstractMmlBaseNode.defaults), {
623
+ linethickness: "medium",
624
+ numalign: "center",
625
+ denomalign: "center",
626
+ bevelled: !1
627
+ }), r;
628
+ }(a.AbstractMmlBaseNode);
629
+ })), g = /* @__PURE__ */ e(((e) => {
630
+ var t = e && e.__extends || (function() {
631
+ var e = function(t, n) {
632
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
633
+ e.__proto__ = t;
634
+ } || function(e, t) {
635
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
636
+ }, e(t, n);
637
+ };
638
+ return function(t, n) {
639
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
640
+ e(t, n);
641
+ function r() {
642
+ this.constructor = t;
643
+ }
644
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
645
+ };
646
+ })(), n = e && e.__assign || function() {
647
+ return n = Object.assign || function(e) {
648
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
649
+ return e;
650
+ }, n.apply(this, arguments);
651
+ };
652
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMsqrt = void 0;
653
+ var i = r();
654
+ e.MmlMsqrt = function(e) {
655
+ t(r, e);
656
+ function r() {
657
+ var t = e !== null && e.apply(this, arguments) || this;
658
+ return t.texclass = i.TEXCLASS.ORD, t;
659
+ }
660
+ return Object.defineProperty(r.prototype, "kind", {
661
+ get: function() {
662
+ return "msqrt";
663
+ },
664
+ enumerable: !1,
665
+ configurable: !0
666
+ }), Object.defineProperty(r.prototype, "arity", {
667
+ get: function() {
668
+ return -1;
669
+ },
670
+ enumerable: !1,
671
+ configurable: !0
672
+ }), Object.defineProperty(r.prototype, "linebreakContainer", {
673
+ get: function() {
674
+ return !0;
675
+ },
676
+ enumerable: !1,
677
+ configurable: !0
678
+ }), r.prototype.setTeXclass = function(e) {
679
+ return this.getPrevClass(e), this.childNodes[0].setTeXclass(null), this;
680
+ }, r.prototype.setChildInheritedAttributes = function(e, t, n, r) {
681
+ this.childNodes[0].setInheritedAttributes(e, t, n, !0);
682
+ }, r.defaults = n({}, i.AbstractMmlNode.defaults), r;
683
+ }(i.AbstractMmlNode);
684
+ })), _ = /* @__PURE__ */ e(((e) => {
685
+ var t = e && e.__extends || (function() {
686
+ var e = function(t, n) {
687
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
688
+ e.__proto__ = t;
689
+ } || function(e, t) {
690
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
691
+ }, e(t, n);
692
+ };
693
+ return function(t, n) {
694
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
695
+ e(t, n);
696
+ function r() {
697
+ this.constructor = t;
698
+ }
699
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
700
+ };
701
+ })(), n = e && e.__assign || function() {
702
+ return n = Object.assign || function(e) {
703
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
704
+ return e;
705
+ }, n.apply(this, arguments);
706
+ };
707
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMroot = void 0;
708
+ var i = r();
709
+ e.MmlMroot = function(e) {
710
+ t(r, e);
711
+ function r() {
712
+ var t = e !== null && e.apply(this, arguments) || this;
713
+ return t.texclass = i.TEXCLASS.ORD, t;
714
+ }
715
+ return Object.defineProperty(r.prototype, "kind", {
716
+ get: function() {
717
+ return "mroot";
718
+ },
719
+ enumerable: !1,
720
+ configurable: !0
721
+ }), Object.defineProperty(r.prototype, "arity", {
722
+ get: function() {
723
+ return 2;
724
+ },
725
+ enumerable: !1,
726
+ configurable: !0
727
+ }), r.prototype.setTeXclass = function(e) {
728
+ return this.getPrevClass(e), this.childNodes[0].setTeXclass(null), this.childNodes[1].setTeXclass(null), this;
729
+ }, r.prototype.setChildInheritedAttributes = function(e, t, n, r) {
730
+ this.childNodes[0].setInheritedAttributes(e, t, n, !0), this.childNodes[1].setInheritedAttributes(e, !1, n + 2, r);
731
+ }, r.defaults = n({}, i.AbstractMmlNode.defaults), r;
732
+ }(i.AbstractMmlNode);
733
+ })), v = /* @__PURE__ */ e(((e) => {
734
+ var t = e && e.__extends || (function() {
735
+ var e = function(t, n) {
736
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
737
+ e.__proto__ = t;
738
+ } || function(e, t) {
739
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
740
+ }, e(t, n);
741
+ };
742
+ return function(t, n) {
743
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
744
+ e(t, n);
745
+ function r() {
746
+ this.constructor = t;
747
+ }
748
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
749
+ };
750
+ })(), n = e && e.__assign || function() {
751
+ return n = Object.assign || function(e) {
752
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
753
+ return e;
754
+ }, n.apply(this, arguments);
755
+ };
756
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMerror = void 0;
757
+ var i = r();
758
+ e.MmlMerror = function(e) {
759
+ t(r, e);
760
+ function r() {
761
+ var t = e !== null && e.apply(this, arguments) || this;
762
+ return t.texclass = i.TEXCLASS.ORD, t;
763
+ }
764
+ return Object.defineProperty(r.prototype, "kind", {
765
+ get: function() {
766
+ return "merror";
767
+ },
768
+ enumerable: !1,
769
+ configurable: !0
770
+ }), Object.defineProperty(r.prototype, "arity", {
771
+ get: function() {
772
+ return -1;
773
+ },
774
+ enumerable: !1,
775
+ configurable: !0
776
+ }), Object.defineProperty(r.prototype, "linebreakContainer", {
777
+ get: function() {
778
+ return !0;
779
+ },
780
+ enumerable: !1,
781
+ configurable: !0
782
+ }), r.defaults = n({}, i.AbstractMmlNode.defaults), r;
783
+ }(i.AbstractMmlNode);
784
+ })), y = /* @__PURE__ */ e(((e) => {
785
+ var t = e && e.__extends || (function() {
786
+ var e = function(t, n) {
787
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
788
+ e.__proto__ = t;
789
+ } || function(e, t) {
790
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
791
+ }, e(t, n);
792
+ };
793
+ return function(t, n) {
794
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
795
+ e(t, n);
796
+ function r() {
797
+ this.constructor = t;
798
+ }
799
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
800
+ };
801
+ })(), n = e && e.__assign || function() {
802
+ return n = Object.assign || function(e) {
803
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
804
+ return e;
805
+ }, n.apply(this, arguments);
806
+ };
807
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMpadded = void 0;
808
+ var i = r();
809
+ e.MmlMpadded = function(e) {
810
+ t(r, e);
811
+ function r() {
812
+ return e !== null && e.apply(this, arguments) || this;
813
+ }
814
+ return Object.defineProperty(r.prototype, "kind", {
815
+ get: function() {
816
+ return "mpadded";
817
+ },
818
+ enumerable: !1,
819
+ configurable: !0
820
+ }), r.defaults = n(n({}, i.AbstractMmlLayoutNode.defaults), {
821
+ width: "",
822
+ height: "",
823
+ depth: "",
824
+ lspace: 0,
825
+ voffset: 0
826
+ }), r;
827
+ }(i.AbstractMmlLayoutNode);
828
+ })), b = /* @__PURE__ */ e(((e) => {
829
+ var t = e && e.__extends || (function() {
830
+ var e = function(t, n) {
831
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
832
+ e.__proto__ = t;
833
+ } || function(e, t) {
834
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
835
+ }, e(t, n);
836
+ };
837
+ return function(t, n) {
838
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
839
+ e(t, n);
840
+ function r() {
841
+ this.constructor = t;
842
+ }
843
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
844
+ };
845
+ })(), n = e && e.__assign || function() {
846
+ return n = Object.assign || function(e) {
847
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
848
+ return e;
849
+ }, n.apply(this, arguments);
850
+ };
851
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMphantom = void 0;
852
+ var i = r();
853
+ e.MmlMphantom = function(e) {
854
+ t(r, e);
855
+ function r() {
856
+ var t = e !== null && e.apply(this, arguments) || this;
857
+ return t.texclass = i.TEXCLASS.ORD, t;
858
+ }
859
+ return Object.defineProperty(r.prototype, "kind", {
860
+ get: function() {
861
+ return "mphantom";
862
+ },
863
+ enumerable: !1,
864
+ configurable: !0
865
+ }), r.defaults = n({}, i.AbstractMmlLayoutNode.defaults), r;
866
+ }(i.AbstractMmlLayoutNode);
867
+ })), x = /* @__PURE__ */ e(((e) => {
868
+ var t = e && e.__extends || (function() {
869
+ var e = function(t, n) {
870
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
871
+ e.__proto__ = t;
872
+ } || function(e, t) {
873
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
874
+ }, e(t, n);
875
+ };
876
+ return function(t, n) {
877
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
878
+ e(t, n);
879
+ function r() {
880
+ this.constructor = t;
881
+ }
882
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
883
+ };
884
+ })(), n = e && e.__assign || function() {
885
+ return n = Object.assign || function(e) {
886
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
887
+ return e;
888
+ }, n.apply(this, arguments);
889
+ }, i = e && e.__values || function(e) {
890
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
891
+ if (n) return n.call(e);
892
+ if (e && typeof e.length == "number") return { next: function() {
893
+ return e && r >= e.length && (e = void 0), {
894
+ value: e && e[r++],
895
+ done: !e
896
+ };
897
+ } };
898
+ throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
899
+ };
900
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMfenced = void 0;
901
+ var a = r();
902
+ e.MmlMfenced = function(e) {
903
+ t(r, e);
904
+ function r() {
905
+ var t = e !== null && e.apply(this, arguments) || this;
906
+ return t.texclass = a.TEXCLASS.INNER, t.separators = [], t.open = null, t.close = null, t;
907
+ }
908
+ return Object.defineProperty(r.prototype, "kind", {
909
+ get: function() {
910
+ return "mfenced";
911
+ },
912
+ enumerable: !1,
913
+ configurable: !0
914
+ }), r.prototype.setTeXclass = function(e) {
915
+ this.getPrevClass(e), this.open && (e = this.open.setTeXclass(e)), this.childNodes[0] && (e = this.childNodes[0].setTeXclass(e));
916
+ for (var t = 1, n = this.childNodes.length; t < n; t++) this.separators[t - 1] && (e = this.separators[t - 1].setTeXclass(e)), this.childNodes[t] && (e = this.childNodes[t].setTeXclass(e));
917
+ return this.close && (e = this.close.setTeXclass(e)), this.updateTeXclass(this.open), e;
918
+ }, r.prototype.setChildInheritedAttributes = function(t, n, r, a) {
919
+ var o, s;
920
+ this.addFakeNodes();
921
+ try {
922
+ for (var c = i([this.open, this.close].concat(this.separators)), l = c.next(); !l.done; l = c.next()) {
923
+ var u = l.value;
924
+ u && u.setInheritedAttributes(t, n, r, a);
925
+ }
926
+ } catch (e) {
927
+ o = { error: e };
928
+ } finally {
929
+ try {
930
+ l && !l.done && (s = c.return) && s.call(c);
931
+ } finally {
932
+ if (o) throw o.error;
933
+ }
934
+ }
935
+ e.prototype.setChildInheritedAttributes.call(this, t, n, r, a);
936
+ }, r.prototype.addFakeNodes = function() {
937
+ var e, t, n = this.attributes.getList("open", "close", "separators"), r = n.open, o = n.close, s = n.separators;
938
+ if (r = r.replace(/[ \t\n\r]/g, ""), o = o.replace(/[ \t\n\r]/g, ""), s = s.replace(/[ \t\n\r]/g, ""), r && (this.open = this.fakeNode(r, {
939
+ fence: !0,
940
+ form: "prefix"
941
+ }, a.TEXCLASS.OPEN)), s) {
942
+ for (; s.length < this.childNodes.length - 1;) s += s.charAt(s.length - 1);
943
+ var c = 0;
944
+ try {
945
+ for (var l = i(this.childNodes.slice(1)), u = l.next(); !u.done; u = l.next()) u.value && this.separators.push(this.fakeNode(s.charAt(c++)));
946
+ } catch (t) {
947
+ e = { error: t };
948
+ } finally {
949
+ try {
950
+ u && !u.done && (t = l.return) && t.call(l);
951
+ } finally {
952
+ if (e) throw e.error;
953
+ }
954
+ }
955
+ }
956
+ o && (this.close = this.fakeNode(o, {
957
+ fence: !0,
958
+ form: "postfix"
959
+ }, a.TEXCLASS.CLOSE));
960
+ }, r.prototype.fakeNode = function(e, t, n) {
961
+ t === void 0 && (t = {}), n === void 0 && (n = null);
962
+ var r = this.factory.create("text").setText(e), i = this.factory.create("mo", t, [r]);
963
+ return i.texClass = n, i.parent = this, i;
964
+ }, r.defaults = n(n({}, a.AbstractMmlNode.defaults), {
965
+ open: "(",
966
+ close: ")",
967
+ separators: ","
968
+ }), r;
969
+ }(a.AbstractMmlNode);
970
+ })), S = /* @__PURE__ */ e(((e) => {
971
+ var t = e && e.__extends || (function() {
972
+ var e = function(t, n) {
973
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
974
+ e.__proto__ = t;
975
+ } || function(e, t) {
976
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
977
+ }, e(t, n);
978
+ };
979
+ return function(t, n) {
980
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
981
+ e(t, n);
982
+ function r() {
983
+ this.constructor = t;
984
+ }
985
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
986
+ };
987
+ })(), n = e && e.__assign || function() {
988
+ return n = Object.assign || function(e) {
989
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
990
+ return e;
991
+ }, n.apply(this, arguments);
992
+ };
993
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMenclose = void 0;
994
+ var i = r();
995
+ e.MmlMenclose = function(e) {
996
+ t(r, e);
997
+ function r() {
998
+ var t = e !== null && e.apply(this, arguments) || this;
999
+ return t.texclass = i.TEXCLASS.ORD, t;
1000
+ }
1001
+ return Object.defineProperty(r.prototype, "kind", {
1002
+ get: function() {
1003
+ return "menclose";
1004
+ },
1005
+ enumerable: !1,
1006
+ configurable: !0
1007
+ }), Object.defineProperty(r.prototype, "arity", {
1008
+ get: function() {
1009
+ return -1;
1010
+ },
1011
+ enumerable: !1,
1012
+ configurable: !0
1013
+ }), Object.defineProperty(r.prototype, "linebreakContininer", {
1014
+ get: function() {
1015
+ return !0;
1016
+ },
1017
+ enumerable: !1,
1018
+ configurable: !0
1019
+ }), r.prototype.setTeXclass = function(e) {
1020
+ return e = this.childNodes[0].setTeXclass(e), this.updateTeXclass(this.childNodes[0]), e;
1021
+ }, r.defaults = n(n({}, i.AbstractMmlNode.defaults), { notation: "longdiv" }), r;
1022
+ }(i.AbstractMmlNode);
1023
+ })), C = /* @__PURE__ */ e(((e) => {
1024
+ var t = e && e.__extends || (function() {
1025
+ var e = function(t, n) {
1026
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
1027
+ e.__proto__ = t;
1028
+ } || function(e, t) {
1029
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1030
+ }, e(t, n);
1031
+ };
1032
+ return function(t, n) {
1033
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
1034
+ e(t, n);
1035
+ function r() {
1036
+ this.constructor = t;
1037
+ }
1038
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
1039
+ };
1040
+ })(), n = e && e.__assign || function() {
1041
+ return n = Object.assign || function(e) {
1042
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
1043
+ return e;
1044
+ }, n.apply(this, arguments);
1045
+ };
1046
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMaction = void 0;
1047
+ var i = r();
1048
+ e.MmlMaction = function(e) {
1049
+ t(r, e);
1050
+ function r() {
1051
+ return e !== null && e.apply(this, arguments) || this;
1052
+ }
1053
+ return Object.defineProperty(r.prototype, "kind", {
1054
+ get: function() {
1055
+ return "maction";
1056
+ },
1057
+ enumerable: !1,
1058
+ configurable: !0
1059
+ }), Object.defineProperty(r.prototype, "arity", {
1060
+ get: function() {
1061
+ return 1;
1062
+ },
1063
+ enumerable: !1,
1064
+ configurable: !0
1065
+ }), Object.defineProperty(r.prototype, "selected", {
1066
+ get: function() {
1067
+ var e = this.attributes.get("selection"), t = Math.max(1, Math.min(this.childNodes.length, e)) - 1;
1068
+ return this.childNodes[t] || this.factory.create("mrow");
1069
+ },
1070
+ enumerable: !1,
1071
+ configurable: !0
1072
+ }), Object.defineProperty(r.prototype, "isEmbellished", {
1073
+ get: function() {
1074
+ return this.selected.isEmbellished;
1075
+ },
1076
+ enumerable: !1,
1077
+ configurable: !0
1078
+ }), Object.defineProperty(r.prototype, "isSpacelike", {
1079
+ get: function() {
1080
+ return this.selected.isSpacelike;
1081
+ },
1082
+ enumerable: !1,
1083
+ configurable: !0
1084
+ }), r.prototype.core = function() {
1085
+ return this.selected.core();
1086
+ }, r.prototype.coreMO = function() {
1087
+ return this.selected.coreMO();
1088
+ }, r.prototype.verifyAttributes = function(t) {
1089
+ if (e.prototype.verifyAttributes.call(this, t), this.attributes.get("actiontype") !== "toggle" && this.attributes.getExplicit("selection") !== void 0) {
1090
+ var n = this.attributes.getAllAttributes();
1091
+ delete n.selection;
1092
+ }
1093
+ }, r.prototype.setTeXclass = function(e) {
1094
+ this.attributes.get("actiontype") === "tooltip" && this.childNodes[1] && this.childNodes[1].setTeXclass(null);
1095
+ var t = this.selected;
1096
+ return e = t.setTeXclass(e), this.updateTeXclass(t), e;
1097
+ }, r.prototype.nextToggleSelection = function() {
1098
+ var e = Math.max(1, this.attributes.get("selection") + 1);
1099
+ e > this.childNodes.length && (e = 1), this.attributes.set("selection", e);
1100
+ }, r.defaults = n(n({}, i.AbstractMmlNode.defaults), {
1101
+ actiontype: "toggle",
1102
+ selection: 1
1103
+ }), r;
1104
+ }(i.AbstractMmlNode);
1105
+ })), w = /* @__PURE__ */ e(((e) => {
1106
+ var t = e && e.__extends || (function() {
1107
+ var e = function(t, n) {
1108
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
1109
+ e.__proto__ = t;
1110
+ } || function(e, t) {
1111
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1112
+ }, e(t, n);
1113
+ };
1114
+ return function(t, n) {
1115
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
1116
+ e(t, n);
1117
+ function r() {
1118
+ this.constructor = t;
1119
+ }
1120
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
1121
+ };
1122
+ })(), n = e && e.__assign || function() {
1123
+ return n = Object.assign || function(e) {
1124
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
1125
+ return e;
1126
+ }, n.apply(this, arguments);
1127
+ };
1128
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMsup = e.MmlMsub = e.MmlMsubsup = void 0;
1129
+ var i = r(), a = function(e) {
1130
+ t(r, e);
1131
+ function r() {
1132
+ return e !== null && e.apply(this, arguments) || this;
1133
+ }
1134
+ return Object.defineProperty(r.prototype, "kind", {
1135
+ get: function() {
1136
+ return "msubsup";
1137
+ },
1138
+ enumerable: !1,
1139
+ configurable: !0
1140
+ }), Object.defineProperty(r.prototype, "arity", {
1141
+ get: function() {
1142
+ return 3;
1143
+ },
1144
+ enumerable: !1,
1145
+ configurable: !0
1146
+ }), Object.defineProperty(r.prototype, "base", {
1147
+ get: function() {
1148
+ return 0;
1149
+ },
1150
+ enumerable: !1,
1151
+ configurable: !0
1152
+ }), Object.defineProperty(r.prototype, "sub", {
1153
+ get: function() {
1154
+ return 1;
1155
+ },
1156
+ enumerable: !1,
1157
+ configurable: !0
1158
+ }), Object.defineProperty(r.prototype, "sup", {
1159
+ get: function() {
1160
+ return 2;
1161
+ },
1162
+ enumerable: !1,
1163
+ configurable: !0
1164
+ }), r.prototype.setChildInheritedAttributes = function(e, t, n, r) {
1165
+ var i = this.childNodes;
1166
+ i[0].setInheritedAttributes(e, t, n, r), i[1].setInheritedAttributes(e, !1, n + 1, r || this.sub === 1), i[2] && i[2].setInheritedAttributes(e, !1, n + 1, r || this.sub === 2);
1167
+ }, r.defaults = n(n({}, i.AbstractMmlBaseNode.defaults), {
1168
+ subscriptshift: "",
1169
+ superscriptshift: ""
1170
+ }), r;
1171
+ }(i.AbstractMmlBaseNode);
1172
+ e.MmlMsubsup = a, e.MmlMsub = function(e) {
1173
+ t(r, e);
1174
+ function r() {
1175
+ return e !== null && e.apply(this, arguments) || this;
1176
+ }
1177
+ return Object.defineProperty(r.prototype, "kind", {
1178
+ get: function() {
1179
+ return "msub";
1180
+ },
1181
+ enumerable: !1,
1182
+ configurable: !0
1183
+ }), Object.defineProperty(r.prototype, "arity", {
1184
+ get: function() {
1185
+ return 2;
1186
+ },
1187
+ enumerable: !1,
1188
+ configurable: !0
1189
+ }), r.defaults = n({}, a.defaults), r;
1190
+ }(a), e.MmlMsup = function(e) {
1191
+ t(r, e);
1192
+ function r() {
1193
+ return e !== null && e.apply(this, arguments) || this;
1194
+ }
1195
+ return Object.defineProperty(r.prototype, "kind", {
1196
+ get: function() {
1197
+ return "msup";
1198
+ },
1199
+ enumerable: !1,
1200
+ configurable: !0
1201
+ }), Object.defineProperty(r.prototype, "arity", {
1202
+ get: function() {
1203
+ return 2;
1204
+ },
1205
+ enumerable: !1,
1206
+ configurable: !0
1207
+ }), Object.defineProperty(r.prototype, "sup", {
1208
+ get: function() {
1209
+ return 1;
1210
+ },
1211
+ enumerable: !1,
1212
+ configurable: !0
1213
+ }), Object.defineProperty(r.prototype, "sub", {
1214
+ get: function() {
1215
+ return 2;
1216
+ },
1217
+ enumerable: !1,
1218
+ configurable: !0
1219
+ }), r.defaults = n({}, a.defaults), r;
1220
+ }(a);
1221
+ })), T = /* @__PURE__ */ e(((e) => {
1222
+ var t = e && e.__extends || (function() {
1223
+ var e = function(t, n) {
1224
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
1225
+ e.__proto__ = t;
1226
+ } || function(e, t) {
1227
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1228
+ }, e(t, n);
1229
+ };
1230
+ return function(t, n) {
1231
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
1232
+ e(t, n);
1233
+ function r() {
1234
+ this.constructor = t;
1235
+ }
1236
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
1237
+ };
1238
+ })(), n = e && e.__assign || function() {
1239
+ return n = Object.assign || function(e) {
1240
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
1241
+ return e;
1242
+ }, n.apply(this, arguments);
1243
+ };
1244
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMover = e.MmlMunder = e.MmlMunderover = void 0;
1245
+ var i = r(), a = function(e) {
1246
+ t(r, e);
1247
+ function r() {
1248
+ return e !== null && e.apply(this, arguments) || this;
1249
+ }
1250
+ return Object.defineProperty(r.prototype, "kind", {
1251
+ get: function() {
1252
+ return "munderover";
1253
+ },
1254
+ enumerable: !1,
1255
+ configurable: !0
1256
+ }), Object.defineProperty(r.prototype, "arity", {
1257
+ get: function() {
1258
+ return 3;
1259
+ },
1260
+ enumerable: !1,
1261
+ configurable: !0
1262
+ }), Object.defineProperty(r.prototype, "base", {
1263
+ get: function() {
1264
+ return 0;
1265
+ },
1266
+ enumerable: !1,
1267
+ configurable: !0
1268
+ }), Object.defineProperty(r.prototype, "under", {
1269
+ get: function() {
1270
+ return 1;
1271
+ },
1272
+ enumerable: !1,
1273
+ configurable: !0
1274
+ }), Object.defineProperty(r.prototype, "over", {
1275
+ get: function() {
1276
+ return 2;
1277
+ },
1278
+ enumerable: !1,
1279
+ configurable: !0
1280
+ }), Object.defineProperty(r.prototype, "linebreakContainer", {
1281
+ get: function() {
1282
+ return !0;
1283
+ },
1284
+ enumerable: !1,
1285
+ configurable: !0
1286
+ }), r.prototype.setChildInheritedAttributes = function(e, t, n, r) {
1287
+ var i = this.childNodes;
1288
+ i[0].setInheritedAttributes(e, t, n, r || !!i[this.over]);
1289
+ var a = !!(!t && i[0].coreMO().attributes.get("movablelimits")), o = this.constructor.ACCENTS;
1290
+ i[1].setInheritedAttributes(e, !1, this.getScriptlevel(o[1], a, n), r || this.under === 1), this.setInheritedAccent(1, o[1], t, n, r, a), i[2] && (i[2].setInheritedAttributes(e, !1, this.getScriptlevel(o[2], a, n), r || this.under === 2), this.setInheritedAccent(2, o[2], t, n, r, a));
1291
+ }, r.prototype.getScriptlevel = function(e, t, n) {
1292
+ return (t || !this.attributes.get(e)) && n++, n;
1293
+ }, r.prototype.setInheritedAccent = function(e, t, n, r, i, a) {
1294
+ var o = this.childNodes[e];
1295
+ if (this.attributes.getExplicit(t) == null && o.isEmbellished) {
1296
+ var s = o.coreMO().attributes.get("accent");
1297
+ this.attributes.setInherited(t, s), s !== this.attributes.getDefault(t) && o.setInheritedAttributes({}, n, this.getScriptlevel(t, a, r), i);
1298
+ }
1299
+ }, r.defaults = n(n({}, i.AbstractMmlBaseNode.defaults), {
1300
+ accent: !1,
1301
+ accentunder: !1,
1302
+ align: "center"
1303
+ }), r.ACCENTS = [
1304
+ "",
1305
+ "accentunder",
1306
+ "accent"
1307
+ ], r;
1308
+ }(i.AbstractMmlBaseNode);
1309
+ e.MmlMunderover = a, e.MmlMunder = function(e) {
1310
+ t(r, e);
1311
+ function r() {
1312
+ return e !== null && e.apply(this, arguments) || this;
1313
+ }
1314
+ return Object.defineProperty(r.prototype, "kind", {
1315
+ get: function() {
1316
+ return "munder";
1317
+ },
1318
+ enumerable: !1,
1319
+ configurable: !0
1320
+ }), Object.defineProperty(r.prototype, "arity", {
1321
+ get: function() {
1322
+ return 2;
1323
+ },
1324
+ enumerable: !1,
1325
+ configurable: !0
1326
+ }), r.defaults = n({}, a.defaults), r;
1327
+ }(a), e.MmlMover = function(e) {
1328
+ t(r, e);
1329
+ function r() {
1330
+ return e !== null && e.apply(this, arguments) || this;
1331
+ }
1332
+ return Object.defineProperty(r.prototype, "kind", {
1333
+ get: function() {
1334
+ return "mover";
1335
+ },
1336
+ enumerable: !1,
1337
+ configurable: !0
1338
+ }), Object.defineProperty(r.prototype, "arity", {
1339
+ get: function() {
1340
+ return 2;
1341
+ },
1342
+ enumerable: !1,
1343
+ configurable: !0
1344
+ }), Object.defineProperty(r.prototype, "over", {
1345
+ get: function() {
1346
+ return 1;
1347
+ },
1348
+ enumerable: !1,
1349
+ configurable: !0
1350
+ }), Object.defineProperty(r.prototype, "under", {
1351
+ get: function() {
1352
+ return 2;
1353
+ },
1354
+ enumerable: !1,
1355
+ configurable: !0
1356
+ }), r.defaults = n({}, a.defaults), r.ACCENTS = [
1357
+ "",
1358
+ "accent",
1359
+ "accentunder"
1360
+ ], r;
1361
+ }(a);
1362
+ })), E = /* @__PURE__ */ e(((e) => {
1363
+ var t = e && e.__extends || (function() {
1364
+ var e = function(t, n) {
1365
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
1366
+ e.__proto__ = t;
1367
+ } || function(e, t) {
1368
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1369
+ }, e(t, n);
1370
+ };
1371
+ return function(t, n) {
1372
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
1373
+ e(t, n);
1374
+ function r() {
1375
+ this.constructor = t;
1376
+ }
1377
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
1378
+ };
1379
+ })(), n = e && e.__assign || function() {
1380
+ return n = Object.assign || function(e) {
1381
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
1382
+ return e;
1383
+ }, n.apply(this, arguments);
1384
+ };
1385
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlNone = e.MmlMprescripts = e.MmlMmultiscripts = void 0;
1386
+ var i = r(), a = w();
1387
+ e.MmlMmultiscripts = function(e) {
1388
+ t(r, e);
1389
+ function r() {
1390
+ return e !== null && e.apply(this, arguments) || this;
1391
+ }
1392
+ return Object.defineProperty(r.prototype, "kind", {
1393
+ get: function() {
1394
+ return "mmultiscripts";
1395
+ },
1396
+ enumerable: !1,
1397
+ configurable: !0
1398
+ }), Object.defineProperty(r.prototype, "arity", {
1399
+ get: function() {
1400
+ return 1;
1401
+ },
1402
+ enumerable: !1,
1403
+ configurable: !0
1404
+ }), r.prototype.setChildInheritedAttributes = function(e, t, n, r) {
1405
+ this.childNodes[0].setInheritedAttributes(e, t, n, r);
1406
+ for (var i = !1, a = 1, o = 0; a < this.childNodes.length; a++) {
1407
+ var s = this.childNodes[a];
1408
+ if (s.isKind("mprescripts")) {
1409
+ if (!i && (i = !0, a % 2 == 0)) {
1410
+ var c = this.factory.create("mrow");
1411
+ this.childNodes.splice(a, 0, c), c.parent = this, a++;
1412
+ }
1413
+ } else {
1414
+ var l = r || o % 2 == 0;
1415
+ s.setInheritedAttributes(e, !1, n + 1, l), o++;
1416
+ }
1417
+ }
1418
+ this.childNodes.length % 2 == +!!i && (this.appendChild(this.factory.create("mrow")), this.childNodes[this.childNodes.length - 1].setInheritedAttributes(e, !1, n + 1, r));
1419
+ }, r.prototype.verifyChildren = function(t) {
1420
+ for (var n = !1, r = t.fixMmultiscripts, i = 0; i < this.childNodes.length; i++) {
1421
+ var a = this.childNodes[i];
1422
+ a.isKind("mprescripts") && (n ? a.mError(a.kind + " can only appear once in " + this.kind, t, !0) : (n = !0, i % 2 == 0 && !r && this.mError("There must be an equal number of prescripts of each type", t)));
1423
+ }
1424
+ this.childNodes.length % 2 == +!!n && !r && this.mError("There must be an equal number of scripts of each type", t), e.prototype.verifyChildren.call(this, t);
1425
+ }, r.defaults = n({}, a.MmlMsubsup.defaults), r;
1426
+ }(a.MmlMsubsup), e.MmlMprescripts = function(e) {
1427
+ t(r, e);
1428
+ function r() {
1429
+ return e !== null && e.apply(this, arguments) || this;
1430
+ }
1431
+ return Object.defineProperty(r.prototype, "kind", {
1432
+ get: function() {
1433
+ return "mprescripts";
1434
+ },
1435
+ enumerable: !1,
1436
+ configurable: !0
1437
+ }), Object.defineProperty(r.prototype, "arity", {
1438
+ get: function() {
1439
+ return 0;
1440
+ },
1441
+ enumerable: !1,
1442
+ configurable: !0
1443
+ }), r.prototype.verifyTree = function(t) {
1444
+ e.prototype.verifyTree.call(this, t), this.parent && !this.parent.isKind("mmultiscripts") && this.mError(this.kind + " must be a child of mmultiscripts", t, !0);
1445
+ }, r.defaults = n({}, i.AbstractMmlNode.defaults), r;
1446
+ }(i.AbstractMmlNode), e.MmlNone = function(e) {
1447
+ t(r, e);
1448
+ function r() {
1449
+ return e !== null && e.apply(this, arguments) || this;
1450
+ }
1451
+ return Object.defineProperty(r.prototype, "kind", {
1452
+ get: function() {
1453
+ return "none";
1454
+ },
1455
+ enumerable: !1,
1456
+ configurable: !0
1457
+ }), Object.defineProperty(r.prototype, "arity", {
1458
+ get: function() {
1459
+ return 0;
1460
+ },
1461
+ enumerable: !1,
1462
+ configurable: !0
1463
+ }), r.prototype.verifyTree = function(t) {
1464
+ e.prototype.verifyTree.call(this, t), this.parent && !this.parent.isKind("mmultiscripts") && this.mError(this.kind + " must be a child of mmultiscripts", t, !0);
1465
+ }, r.defaults = n({}, i.AbstractMmlNode.defaults), r;
1466
+ }(i.AbstractMmlNode);
1467
+ })), D = /* @__PURE__ */ e(((e) => {
1468
+ var t = e && e.__extends || (function() {
1469
+ var e = function(t, n) {
1470
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
1471
+ e.__proto__ = t;
1472
+ } || function(e, t) {
1473
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1474
+ }, e(t, n);
1475
+ };
1476
+ return function(t, n) {
1477
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
1478
+ e(t, n);
1479
+ function r() {
1480
+ this.constructor = t;
1481
+ }
1482
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
1483
+ };
1484
+ })(), n = e && e.__assign || function() {
1485
+ return n = Object.assign || function(e) {
1486
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
1487
+ return e;
1488
+ }, n.apply(this, arguments);
1489
+ }, a = e && e.__values || function(e) {
1490
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
1491
+ if (n) return n.call(e);
1492
+ if (e && typeof e.length == "number") return { next: function() {
1493
+ return e && r >= e.length && (e = void 0), {
1494
+ value: e && e[r++],
1495
+ done: !e
1496
+ };
1497
+ } };
1498
+ throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
1499
+ };
1500
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMtable = void 0;
1501
+ var o = r(), s = i();
1502
+ e.MmlMtable = function(e) {
1503
+ t(r, e);
1504
+ function r() {
1505
+ var t = e !== null && e.apply(this, arguments) || this;
1506
+ return t.properties = { useHeight: !0 }, t.texclass = o.TEXCLASS.ORD, t;
1507
+ }
1508
+ return Object.defineProperty(r.prototype, "kind", {
1509
+ get: function() {
1510
+ return "mtable";
1511
+ },
1512
+ enumerable: !1,
1513
+ configurable: !0
1514
+ }), Object.defineProperty(r.prototype, "linebreakContainer", {
1515
+ get: function() {
1516
+ return !0;
1517
+ },
1518
+ enumerable: !1,
1519
+ configurable: !0
1520
+ }), r.prototype.setInheritedAttributes = function(t, n, r, i) {
1521
+ var s, c;
1522
+ try {
1523
+ for (var l = a(o.indentAttributes), u = l.next(); !u.done; u = l.next()) {
1524
+ var d = u.value;
1525
+ t[d] && this.attributes.setInherited(d, t[d][1]), this.attributes.getExplicit(d) !== void 0 && delete this.attributes.getAllAttributes()[d];
1526
+ }
1527
+ } catch (e) {
1528
+ s = { error: e };
1529
+ } finally {
1530
+ try {
1531
+ u && !u.done && (c = l.return) && c.call(l);
1532
+ } finally {
1533
+ if (s) throw s.error;
1534
+ }
1535
+ }
1536
+ e.prototype.setInheritedAttributes.call(this, t, n, r, i);
1537
+ }, r.prototype.setChildInheritedAttributes = function(e, t, n, r) {
1538
+ var i, o, c, l;
1539
+ try {
1540
+ for (var u = a(this.childNodes), d = u.next(); !d.done; d = u.next()) {
1541
+ var f = d.value;
1542
+ f.isKind("mtr") || this.replaceChild(this.factory.create("mtr"), f).appendChild(f);
1543
+ }
1544
+ } catch (e) {
1545
+ i = { error: e };
1546
+ } finally {
1547
+ try {
1548
+ d && !d.done && (o = u.return) && o.call(u);
1549
+ } finally {
1550
+ if (i) throw i.error;
1551
+ }
1552
+ }
1553
+ n = this.getProperty("scriptlevel") || n, t = !!(this.attributes.getExplicit("displaystyle") || this.attributes.getDefault("displaystyle")), e = this.addInheritedAttributes(e, {
1554
+ columnalign: this.attributes.get("columnalign"),
1555
+ rowalign: "center"
1556
+ });
1557
+ var p = this.attributes.getExplicit("data-cramped"), m = (0, s.split)(this.attributes.get("rowalign"));
1558
+ try {
1559
+ for (var h = a(this.childNodes), g = h.next(); !g.done; g = h.next()) {
1560
+ var f = g.value;
1561
+ e.rowalign[1] = m.shift() || e.rowalign[1], f.setInheritedAttributes(e, t, n, !!p);
1562
+ }
1563
+ } catch (e) {
1564
+ c = { error: e };
1565
+ } finally {
1566
+ try {
1567
+ g && !g.done && (l = h.return) && l.call(h);
1568
+ } finally {
1569
+ if (c) throw c.error;
1570
+ }
1571
+ }
1572
+ }, r.prototype.verifyChildren = function(t) {
1573
+ for (var n = null, r = this.factory, i = 0; i < this.childNodes.length; i++) {
1574
+ var a = this.childNodes[i];
1575
+ if (a.isKind("mtr")) n = null;
1576
+ else {
1577
+ var o = a.isKind("mtd");
1578
+ if (n ? (this.removeChild(a), i--) : n = this.replaceChild(r.create("mtr"), a), n.appendChild(o ? a : r.create("mtd", {}, [a])), !t.fixMtables) {
1579
+ a.parent.removeChild(a), a.parent = this, o && n.appendChild(r.create("mtd"));
1580
+ var s = a.mError("Children of " + this.kind + " must be mtr or mlabeledtr", t, o);
1581
+ n.childNodes[n.childNodes.length - 1].appendChild(s);
1582
+ }
1583
+ }
1584
+ }
1585
+ e.prototype.verifyChildren.call(this, t);
1586
+ }, r.prototype.setTeXclass = function(e) {
1587
+ var t, n;
1588
+ this.getPrevClass(e);
1589
+ try {
1590
+ for (var r = a(this.childNodes), i = r.next(); !i.done; i = r.next()) i.value.setTeXclass(null);
1591
+ } catch (e) {
1592
+ t = { error: e };
1593
+ } finally {
1594
+ try {
1595
+ i && !i.done && (n = r.return) && n.call(r);
1596
+ } finally {
1597
+ if (t) throw t.error;
1598
+ }
1599
+ }
1600
+ return this;
1601
+ }, r.defaults = n(n({}, o.AbstractMmlNode.defaults), {
1602
+ align: "axis",
1603
+ rowalign: "baseline",
1604
+ columnalign: "center",
1605
+ groupalign: "{left}",
1606
+ alignmentscope: !0,
1607
+ columnwidth: "auto",
1608
+ width: "auto",
1609
+ rowspacing: "1ex",
1610
+ columnspacing: ".8em",
1611
+ rowlines: "none",
1612
+ columnlines: "none",
1613
+ frame: "none",
1614
+ framespacing: "0.4em 0.5ex",
1615
+ equalrows: !1,
1616
+ equalcolumns: !1,
1617
+ displaystyle: !1,
1618
+ side: "right",
1619
+ minlabelspacing: "0.8em"
1620
+ }), r;
1621
+ }(o.AbstractMmlNode);
1622
+ })), O = /* @__PURE__ */ e(((e) => {
1623
+ var t = e && e.__extends || (function() {
1624
+ var e = function(t, n) {
1625
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
1626
+ e.__proto__ = t;
1627
+ } || function(e, t) {
1628
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1629
+ }, e(t, n);
1630
+ };
1631
+ return function(t, n) {
1632
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
1633
+ e(t, n);
1634
+ function r() {
1635
+ this.constructor = t;
1636
+ }
1637
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
1638
+ };
1639
+ })(), a = e && e.__assign || function() {
1640
+ return a = Object.assign || function(e) {
1641
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
1642
+ return e;
1643
+ }, a.apply(this, arguments);
1644
+ }, o = e && e.__values || function(e) {
1645
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
1646
+ if (n) return n.call(e);
1647
+ if (e && typeof e.length == "number") return { next: function() {
1648
+ return e && r >= e.length && (e = void 0), {
1649
+ value: e && e[r++],
1650
+ done: !e
1651
+ };
1652
+ } };
1653
+ throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
1654
+ };
1655
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMlabeledtr = e.MmlMtr = void 0;
1656
+ var s = r(), c = n(), l = i(), u = function(e) {
1657
+ t(n, e);
1658
+ function n() {
1659
+ return e !== null && e.apply(this, arguments) || this;
1660
+ }
1661
+ return Object.defineProperty(n.prototype, "kind", {
1662
+ get: function() {
1663
+ return "mtr";
1664
+ },
1665
+ enumerable: !1,
1666
+ configurable: !0
1667
+ }), Object.defineProperty(n.prototype, "linebreakContainer", {
1668
+ get: function() {
1669
+ return !0;
1670
+ },
1671
+ enumerable: !1,
1672
+ configurable: !0
1673
+ }), n.prototype.setChildInheritedAttributes = function(e, t, n, r) {
1674
+ var i, a, s, c;
1675
+ try {
1676
+ for (var u = o(this.childNodes), d = u.next(); !d.done; d = u.next()) {
1677
+ var f = d.value;
1678
+ f.isKind("mtd") || this.replaceChild(this.factory.create("mtd"), f).appendChild(f);
1679
+ }
1680
+ } catch (e) {
1681
+ i = { error: e };
1682
+ } finally {
1683
+ try {
1684
+ d && !d.done && (a = u.return) && a.call(u);
1685
+ } finally {
1686
+ if (i) throw i.error;
1687
+ }
1688
+ }
1689
+ var p = (0, l.split)(this.attributes.get("columnalign"));
1690
+ this.arity === 1 && p.unshift(this.parent.attributes.get("side")), e = this.addInheritedAttributes(e, {
1691
+ rowalign: this.attributes.get("rowalign"),
1692
+ columnalign: "center"
1693
+ });
1694
+ try {
1695
+ for (var m = o(this.childNodes), h = m.next(); !h.done; h = m.next()) {
1696
+ var f = h.value;
1697
+ e.columnalign[1] = p.shift() || e.columnalign[1], f.setInheritedAttributes(e, t, n, r);
1698
+ }
1699
+ } catch (e) {
1700
+ s = { error: e };
1701
+ } finally {
1702
+ try {
1703
+ h && !h.done && (c = m.return) && c.call(m);
1704
+ } finally {
1705
+ if (s) throw s.error;
1706
+ }
1707
+ }
1708
+ }, n.prototype.verifyChildren = function(t) {
1709
+ var n, r;
1710
+ if (this.parent && !this.parent.isKind("mtable")) {
1711
+ this.mError(this.kind + " can only be a child of an mtable", t, !0);
1712
+ return;
1713
+ }
1714
+ try {
1715
+ for (var i = o(this.childNodes), a = i.next(); !a.done; a = i.next()) {
1716
+ var s = a.value;
1717
+ s.isKind("mtd") || (this.replaceChild(this.factory.create("mtd"), s).appendChild(s), t.fixMtables || s.mError("Children of " + this.kind + " must be mtd", t));
1718
+ }
1719
+ } catch (e) {
1720
+ n = { error: e };
1721
+ } finally {
1722
+ try {
1723
+ a && !a.done && (r = i.return) && r.call(i);
1724
+ } finally {
1725
+ if (n) throw n.error;
1726
+ }
1727
+ }
1728
+ e.prototype.verifyChildren.call(this, t);
1729
+ }, n.prototype.setTeXclass = function(e) {
1730
+ var t, n;
1731
+ this.getPrevClass(e);
1732
+ try {
1733
+ for (var r = o(this.childNodes), i = r.next(); !i.done; i = r.next()) i.value.setTeXclass(null);
1734
+ } catch (e) {
1735
+ t = { error: e };
1736
+ } finally {
1737
+ try {
1738
+ i && !i.done && (n = r.return) && n.call(r);
1739
+ } finally {
1740
+ if (t) throw t.error;
1741
+ }
1742
+ }
1743
+ return this;
1744
+ }, n.defaults = a(a({}, s.AbstractMmlNode.defaults), {
1745
+ rowalign: c.INHERIT,
1746
+ columnalign: c.INHERIT,
1747
+ groupalign: c.INHERIT
1748
+ }), n;
1749
+ }(s.AbstractMmlNode);
1750
+ e.MmlMtr = u, e.MmlMlabeledtr = function(e) {
1751
+ t(n, e);
1752
+ function n() {
1753
+ return e !== null && e.apply(this, arguments) || this;
1754
+ }
1755
+ return Object.defineProperty(n.prototype, "kind", {
1756
+ get: function() {
1757
+ return "mlabeledtr";
1758
+ },
1759
+ enumerable: !1,
1760
+ configurable: !0
1761
+ }), Object.defineProperty(n.prototype, "arity", {
1762
+ get: function() {
1763
+ return 1;
1764
+ },
1765
+ enumerable: !1,
1766
+ configurable: !0
1767
+ }), n;
1768
+ }(u);
1769
+ })), k = /* @__PURE__ */ e(((e) => {
1770
+ var t = e && e.__extends || (function() {
1771
+ var e = function(t, n) {
1772
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
1773
+ e.__proto__ = t;
1774
+ } || function(e, t) {
1775
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1776
+ }, e(t, n);
1777
+ };
1778
+ return function(t, n) {
1779
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
1780
+ e(t, n);
1781
+ function r() {
1782
+ this.constructor = t;
1783
+ }
1784
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
1785
+ };
1786
+ })(), i = e && e.__assign || function() {
1787
+ return i = Object.assign || function(e) {
1788
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
1789
+ return e;
1790
+ }, i.apply(this, arguments);
1791
+ };
1792
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMtd = void 0;
1793
+ var a = r(), o = n();
1794
+ e.MmlMtd = function(e) {
1795
+ t(n, e);
1796
+ function n() {
1797
+ return e !== null && e.apply(this, arguments) || this;
1798
+ }
1799
+ return Object.defineProperty(n.prototype, "kind", {
1800
+ get: function() {
1801
+ return "mtd";
1802
+ },
1803
+ enumerable: !1,
1804
+ configurable: !0
1805
+ }), Object.defineProperty(n.prototype, "arity", {
1806
+ get: function() {
1807
+ return -1;
1808
+ },
1809
+ enumerable: !1,
1810
+ configurable: !0
1811
+ }), Object.defineProperty(n.prototype, "linebreakContainer", {
1812
+ get: function() {
1813
+ return !0;
1814
+ },
1815
+ enumerable: !1,
1816
+ configurable: !0
1817
+ }), n.prototype.verifyChildren = function(t) {
1818
+ if (this.parent && !this.parent.isKind("mtr")) {
1819
+ this.mError(this.kind + " can only be a child of an mtr or mlabeledtr", t, !0);
1820
+ return;
1821
+ }
1822
+ e.prototype.verifyChildren.call(this, t);
1823
+ }, n.prototype.setTeXclass = function(e) {
1824
+ return this.getPrevClass(e), this.childNodes[0].setTeXclass(null), this;
1825
+ }, n.defaults = i(i({}, a.AbstractMmlBaseNode.defaults), {
1826
+ rowspan: 1,
1827
+ columnspan: 1,
1828
+ rowalign: o.INHERIT,
1829
+ columnalign: o.INHERIT,
1830
+ groupalign: o.INHERIT
1831
+ }), n;
1832
+ }(a.AbstractMmlBaseNode);
1833
+ })), A = /* @__PURE__ */ e(((e) => {
1834
+ var t = e && e.__extends || (function() {
1835
+ var e = function(t, n) {
1836
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
1837
+ e.__proto__ = t;
1838
+ } || function(e, t) {
1839
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1840
+ }, e(t, n);
1841
+ };
1842
+ return function(t, n) {
1843
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
1844
+ e(t, n);
1845
+ function r() {
1846
+ this.constructor = t;
1847
+ }
1848
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
1849
+ };
1850
+ })(), n = e && e.__assign || function() {
1851
+ return n = Object.assign || function(e) {
1852
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
1853
+ return e;
1854
+ }, n.apply(this, arguments);
1855
+ };
1856
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlMglyph = void 0;
1857
+ var i = r();
1858
+ e.MmlMglyph = function(e) {
1859
+ t(r, e);
1860
+ function r() {
1861
+ var t = e !== null && e.apply(this, arguments) || this;
1862
+ return t.texclass = i.TEXCLASS.ORD, t;
1863
+ }
1864
+ return Object.defineProperty(r.prototype, "kind", {
1865
+ get: function() {
1866
+ return "mglyph";
1867
+ },
1868
+ enumerable: !1,
1869
+ configurable: !0
1870
+ }), r.prototype.verifyAttributes = function(t) {
1871
+ var n = this.attributes.getList("src", "fontfamily", "index"), r = n.src, i = n.fontfamily, a = n.index;
1872
+ r === "" && (i === "" || a === "") ? this.mError("mglyph must have either src or fontfamily and index attributes", t, !0) : e.prototype.verifyAttributes.call(this, t);
1873
+ }, r.defaults = n(n({}, i.AbstractMmlTokenNode.defaults), {
1874
+ alt: "",
1875
+ src: "",
1876
+ index: "",
1877
+ width: "auto",
1878
+ height: "auto",
1879
+ valign: "0em"
1880
+ }), r;
1881
+ }(i.AbstractMmlTokenNode);
1882
+ })), j = /* @__PURE__ */ e(((e) => {
1883
+ var t = e && e.__extends || (function() {
1884
+ var e = function(t, n) {
1885
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
1886
+ e.__proto__ = t;
1887
+ } || function(e, t) {
1888
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1889
+ }, e(t, n);
1890
+ };
1891
+ return function(t, n) {
1892
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
1893
+ e(t, n);
1894
+ function r() {
1895
+ this.constructor = t;
1896
+ }
1897
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
1898
+ };
1899
+ })(), n = e && e.__assign || function() {
1900
+ return n = Object.assign || function(e) {
1901
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
1902
+ return e;
1903
+ }, n.apply(this, arguments);
1904
+ };
1905
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.MmlAnnotation = e.MmlAnnotationXML = e.MmlSemantics = void 0;
1906
+ var i = r();
1907
+ e.MmlSemantics = function(e) {
1908
+ t(r, e);
1909
+ function r() {
1910
+ return e !== null && e.apply(this, arguments) || this;
1911
+ }
1912
+ return Object.defineProperty(r.prototype, "kind", {
1913
+ get: function() {
1914
+ return "semantics";
1915
+ },
1916
+ enumerable: !1,
1917
+ configurable: !0
1918
+ }), Object.defineProperty(r.prototype, "arity", {
1919
+ get: function() {
1920
+ return 1;
1921
+ },
1922
+ enumerable: !1,
1923
+ configurable: !0
1924
+ }), Object.defineProperty(r.prototype, "notParent", {
1925
+ get: function() {
1926
+ return !0;
1927
+ },
1928
+ enumerable: !1,
1929
+ configurable: !0
1930
+ }), r.defaults = n(n({}, i.AbstractMmlBaseNode.defaults), {
1931
+ definitionUrl: null,
1932
+ encoding: null
1933
+ }), r;
1934
+ }(i.AbstractMmlBaseNode);
1935
+ var a = function(e) {
1936
+ t(r, e);
1937
+ function r() {
1938
+ return e !== null && e.apply(this, arguments) || this;
1939
+ }
1940
+ return Object.defineProperty(r.prototype, "kind", {
1941
+ get: function() {
1942
+ return "annotation-xml";
1943
+ },
1944
+ enumerable: !1,
1945
+ configurable: !0
1946
+ }), r.prototype.setChildInheritedAttributes = function() {}, r.defaults = n(n({}, i.AbstractMmlNode.defaults), {
1947
+ definitionUrl: null,
1948
+ encoding: null,
1949
+ cd: "mathmlkeys",
1950
+ name: "",
1951
+ src: null
1952
+ }), r;
1953
+ }(i.AbstractMmlNode);
1954
+ e.MmlAnnotationXML = a, e.MmlAnnotation = function(e) {
1955
+ t(r, e);
1956
+ function r() {
1957
+ var t = e !== null && e.apply(this, arguments) || this;
1958
+ return t.properties = { isChars: !0 }, t;
1959
+ }
1960
+ return Object.defineProperty(r.prototype, "kind", {
1961
+ get: function() {
1962
+ return "annotation";
1963
+ },
1964
+ enumerable: !1,
1965
+ configurable: !0
1966
+ }), r.defaults = n({}, a.defaults), r;
1967
+ }(a);
1968
+ })), M = /* @__PURE__ */ e(((e) => {
1969
+ var t = e && e.__extends || (function() {
1970
+ var e = function(t, n) {
1971
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
1972
+ e.__proto__ = t;
1973
+ } || function(e, t) {
1974
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1975
+ }, e(t, n);
1976
+ };
1977
+ return function(t, n) {
1978
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
1979
+ e(t, n);
1980
+ function r() {
1981
+ this.constructor = t;
1982
+ }
1983
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
1984
+ };
1985
+ })(), n = e && e.__assign || function() {
1986
+ return n = Object.assign || function(e) {
1987
+ for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
1988
+ return e;
1989
+ }, n.apply(this, arguments);
1990
+ };
1991
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.TeXAtom = void 0;
1992
+ var i = r(), a = o(), s = function(e) {
1993
+ t(r, e);
1994
+ function r(t, n, r) {
1995
+ var a = e.call(this, t, n, r) || this;
1996
+ return a.texclass = i.TEXCLASS.ORD, a.setProperty("texClass", a.texClass), a;
1997
+ }
1998
+ return Object.defineProperty(r.prototype, "kind", {
1999
+ get: function() {
2000
+ return "TeXAtom";
2001
+ },
2002
+ enumerable: !1,
2003
+ configurable: !0
2004
+ }), Object.defineProperty(r.prototype, "arity", {
2005
+ get: function() {
2006
+ return -1;
2007
+ },
2008
+ enumerable: !1,
2009
+ configurable: !0
2010
+ }), Object.defineProperty(r.prototype, "notParent", {
2011
+ get: function() {
2012
+ return this.childNodes[0] && this.childNodes[0].childNodes.length === 1;
2013
+ },
2014
+ enumerable: !1,
2015
+ configurable: !0
2016
+ }), r.prototype.setTeXclass = function(e) {
2017
+ return this.childNodes[0].setTeXclass(null), this.adjustTeXclass(e);
2018
+ }, r.prototype.adjustTeXclass = function(e) {
2019
+ return e;
2020
+ }, r.defaults = n({}, i.AbstractMmlBaseNode.defaults), r;
2021
+ }(i.AbstractMmlBaseNode);
2022
+ e.TeXAtom = s, s.prototype.adjustTeXclass = a.MmlMo.prototype.adjustTeXclass;
2023
+ }));
2024
+ //#endregion
2025
+ export { u as C, s as E, d as S, c as T, g as _, O as a, p as b, T as c, S as d, x as f, _ as g, v as h, k as i, w as l, y as m, j as n, D as o, b as p, A as r, E as s, M as t, C as u, h as v, l as w, f as x, m as y };