manim-web 0.3.18 → 0.3.19

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 (113) hide show
  1. package/README.md +26 -40
  2. package/dist/AllPackages-C4Ha3Jps.js +7912 -0
  3. package/dist/AllPackages-Dwxf_-Ps.js +7912 -0
  4. package/dist/BaseConfiguration-D2fikupy.js +4402 -0
  5. package/dist/BaseConfiguration-DYpI8zxb.js +4402 -0
  6. package/dist/Entities-BxzKxtF2.js +458 -0
  7. package/dist/Entities-gIbwAkB6.js +458 -0
  8. package/dist/GifExporter-7EpPGupp.js +338 -0
  9. package/dist/GifExporter-DCrSD6FV.js +338 -0
  10. package/dist/InputJax-BszJvLkW.js +43 -0
  11. package/dist/InputJax-CgHBfQsv.js +43 -0
  12. package/dist/MathItem-4gYKatZT.js +77 -0
  13. package/dist/MathItem-BGJUnd1K.js +77 -0
  14. package/dist/Options-CQim5zsr.js +188 -0
  15. package/dist/Options-Cn9jv1mh.js +188 -0
  16. package/dist/PrioritizedList-C1R4aNEC.js +36 -0
  17. package/dist/PrioritizedList-lIkFMNlo.js +36 -0
  18. package/dist/Styles-Bi9Db-2J.js +411 -0
  19. package/dist/Styles-CzHPc-An.js +411 -0
  20. package/dist/TeXAtom-Cinii27y.js +2025 -0
  21. package/dist/TeXAtom-DFdvwkN2.js +2025 -0
  22. package/dist/VideoExporter-6w8xBpcV.js +102 -0
  23. package/dist/VideoExporter-DdQb18dC.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/utility/index.d.ts +2 -0
  32. package/dist/animation/utility/index.d.ts.map +1 -1
  33. package/dist/chunk-DeC0fbbY.js +23 -0
  34. package/dist/core/Group.d.ts +2 -2
  35. package/dist/core/Group.d.ts.map +1 -1
  36. package/dist/core/Mobject.d.ts +26 -6
  37. package/dist/core/Mobject.d.ts.map +1 -1
  38. package/dist/core/MobjectState.d.ts +23 -2
  39. package/dist/core/MobjectState.d.ts.map +1 -1
  40. package/dist/core/Scene.d.ts +7 -1
  41. package/dist/core/Scene.d.ts.map +1 -1
  42. package/dist/core/ThreeDScene.d.ts +17 -0
  43. package/dist/core/ThreeDScene.d.ts.map +1 -1
  44. package/dist/core/VGroup.d.ts +1 -1
  45. package/dist/core/VGroup.d.ts.map +1 -1
  46. package/dist/html-DKkfg_ss.js +1587 -0
  47. package/dist/html-DpiYkktJ.js +1587 -0
  48. package/dist/index.d.ts +1 -1
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js +4 -579
  51. package/dist/integrations/react.js +144 -735
  52. package/dist/integrations/vue.js +109 -735
  53. package/dist/interaction/Draggable.d.ts.map +1 -1
  54. package/dist/lengths-C0YS8_KC.js +65 -0
  55. package/dist/lengths-eBH2o1TO.js +65 -0
  56. package/dist/liteAdaptor-CB8lQj3d.js +828 -0
  57. package/dist/liteAdaptor-DvuW8HsZ.js +828 -0
  58. package/dist/manim-web.browser.js +72327 -83816
  59. package/dist/mathjax-BVz9WLAG.js +105 -0
  60. package/dist/mathjax-BbWkqal4.js +2 -0
  61. package/dist/mathjax-BrFZxFhK.js +2 -0
  62. package/dist/mathjax-DdKmwllV.js +105 -0
  63. package/dist/mo-B60kIOAG.js +3271 -0
  64. package/dist/mo-cSv2058o.js +3271 -0
  65. package/dist/mobjects/geometry/AngleShapes.d.ts +8 -0
  66. package/dist/mobjects/geometry/AngleShapes.d.ts.map +1 -1
  67. package/dist/mobjects/geometry/DashedLine.d.ts +2 -2
  68. package/dist/mobjects/geometry/DashedLine.d.ts.map +1 -1
  69. package/dist/mobjects/graphing/Axes.d.ts +2 -2
  70. package/dist/mobjects/graphing/Axes.d.ts.map +1 -1
  71. package/dist/mobjects/graphing/ComplexPlane.d.ts +4 -1
  72. package/dist/mobjects/graphing/ComplexPlane.d.ts.map +1 -1
  73. package/dist/mobjects/matrix/Matrix.d.ts +2 -2
  74. package/dist/mobjects/matrix/Matrix.d.ts.map +1 -1
  75. package/dist/mobjects/point/PGroup.d.ts +1 -1
  76. package/dist/mobjects/point/PGroup.d.ts.map +1 -1
  77. package/dist/mobjects/point/PMobject.d.ts +1 -1
  78. package/dist/mobjects/point/PMobject.d.ts.map +1 -1
  79. package/dist/mobjects/svg/Brace.d.ts +3 -3
  80. package/dist/mobjects/svg/Brace.d.ts.map +1 -1
  81. package/dist/mobjects/table/Table.d.ts +4 -4
  82. package/dist/mobjects/table/Table.d.ts.map +1 -1
  83. package/dist/mobjects/text/MathJaxRenderer.d.ts.map +1 -1
  84. package/dist/mobjects/text/MathTex.d.ts +61 -202
  85. package/dist/mobjects/text/MathTex.d.ts.map +1 -1
  86. package/dist/mobjects/text/MathTexImage.d.ts +254 -0
  87. package/dist/mobjects/text/MathTexImage.d.ts.map +1 -0
  88. package/dist/mobjects/text/MathTexParts.d.ts +10 -10
  89. package/dist/mobjects/text/MathTexParts.d.ts.map +1 -1
  90. package/dist/mobjects/text/Tex.d.ts +2 -7
  91. package/dist/mobjects/text/Tex.d.ts.map +1 -1
  92. package/dist/mobjects/text/Variable.d.ts +5 -5
  93. package/dist/mobjects/text/Variable.d.ts.map +1 -1
  94. package/dist/mobjects/text/index.d.ts +2 -2
  95. package/dist/mobjects/text/index.d.ts.map +1 -1
  96. package/dist/mobjects/text/svgPathParser.d.ts.map +1 -1
  97. package/dist/player/Player.d.ts +8 -2
  98. package/dist/player/Player.d.ts.map +1 -1
  99. package/dist/player/PlayerController.d.ts +2 -0
  100. package/dist/player/PlayerController.d.ts.map +1 -1
  101. package/dist/player/PlayerUI.d.ts +5 -0
  102. package/dist/player/PlayerUI.d.ts.map +1 -1
  103. package/dist/src-0ifQdJUj.js +59703 -0
  104. package/dist/svg-BDTt4xHZ.js +23879 -0
  105. package/dist/svg-DzbC3CbJ.js +23879 -0
  106. package/dist/tex-CRhAZgfS.js +401 -0
  107. package/dist/tex-D3LEgNlQ.js +401 -0
  108. package/dist/utils/math.d.ts +7 -0
  109. package/dist/utils/math.d.ts.map +1 -1
  110. package/package.json +3 -2
  111. package/dist/featureFlags-H97tY2Rw.js +0 -59814
  112. package/dist/mobjects/text/MathTexSVG.d.ts +0 -102
  113. package/dist/mobjects/text/MathTexSVG.d.ts.map +0 -1
@@ -0,0 +1,828 @@
1
+ import { t as e } from "./chunk-DeC0fbbY.js";
2
+ import { t } from "./Options-Cn9jv1mh.js";
3
+ import { t as n } from "./Entities-gIbwAkB6.js";
4
+ import { t as r } from "./Styles-Bi9Db-2J.js";
5
+ //#region node_modules/mathjax-full/js/core/DOMAdaptor.js
6
+ var i = /* @__PURE__ */ e(((e) => {
7
+ var t = e && e.__values || function(e) {
8
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
9
+ if (n) return n.call(e);
10
+ if (e && typeof e.length == "number") return { next: function() {
11
+ return e && r >= e.length && (e = void 0), {
12
+ value: e && e[r++],
13
+ done: !e
14
+ };
15
+ } };
16
+ throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
17
+ };
18
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.AbstractDOMAdaptor = void 0, e.AbstractDOMAdaptor = function() {
19
+ function e(e) {
20
+ e === void 0 && (e = null), this.document = e;
21
+ }
22
+ return e.prototype.node = function(e, n, r, i) {
23
+ var a, o;
24
+ n === void 0 && (n = {}), r === void 0 && (r = []);
25
+ var s = this.create(e, i);
26
+ this.setAttributes(s, n);
27
+ try {
28
+ for (var c = t(r), l = c.next(); !l.done; l = c.next()) {
29
+ var u = l.value;
30
+ this.append(s, u);
31
+ }
32
+ } catch (e) {
33
+ a = { error: e };
34
+ } finally {
35
+ try {
36
+ l && !l.done && (o = c.return) && o.call(c);
37
+ } finally {
38
+ if (a) throw a.error;
39
+ }
40
+ }
41
+ return s;
42
+ }, e.prototype.setAttributes = function(e, n) {
43
+ var r, i, a, o, s, c;
44
+ if (n.style && typeof n.style != "string") try {
45
+ for (var l = t(Object.keys(n.style)), u = l.next(); !u.done; u = l.next()) {
46
+ var d = u.value;
47
+ this.setStyle(e, d.replace(/-([a-z])/g, function(e, t) {
48
+ return t.toUpperCase();
49
+ }), n.style[d]);
50
+ }
51
+ } catch (e) {
52
+ r = { error: e };
53
+ } finally {
54
+ try {
55
+ u && !u.done && (i = l.return) && i.call(l);
56
+ } finally {
57
+ if (r) throw r.error;
58
+ }
59
+ }
60
+ if (n.properties) try {
61
+ for (var f = t(Object.keys(n.properties)), p = f.next(); !p.done; p = f.next()) {
62
+ var d = p.value;
63
+ e[d] = n.properties[d];
64
+ }
65
+ } catch (e) {
66
+ a = { error: e };
67
+ } finally {
68
+ try {
69
+ p && !p.done && (o = f.return) && o.call(f);
70
+ } finally {
71
+ if (a) throw a.error;
72
+ }
73
+ }
74
+ try {
75
+ for (var m = t(Object.keys(n)), h = m.next(); !h.done; h = m.next()) {
76
+ var d = h.value;
77
+ (d !== "style" || typeof n.style == "string") && d !== "properties" && this.setAttribute(e, d, n[d]);
78
+ }
79
+ } catch (e) {
80
+ s = { error: e };
81
+ } finally {
82
+ try {
83
+ h && !h.done && (c = m.return) && c.call(m);
84
+ } finally {
85
+ if (s) throw s.error;
86
+ }
87
+ }
88
+ }, e.prototype.replace = function(e, t) {
89
+ return this.insert(e, t), this.remove(t), t;
90
+ }, e.prototype.childNode = function(e, t) {
91
+ return this.childNodes(e)[t];
92
+ }, e.prototype.allClasses = function(e) {
93
+ var t = this.getAttribute(e, "class");
94
+ return t ? t.replace(/ +/g, " ").replace(/^ /, "").replace(/ $/, "").split(/ /) : [];
95
+ }, e;
96
+ }();
97
+ })), a = /* @__PURE__ */ e(((e) => {
98
+ var n = e && e.__extends || (function() {
99
+ var e = function(t, n) {
100
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
101
+ e.__proto__ = t;
102
+ } || function(e, t) {
103
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
104
+ }, e(t, n);
105
+ };
106
+ return function(t, n) {
107
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
108
+ e(t, n);
109
+ function r() {
110
+ this.constructor = t;
111
+ }
112
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
113
+ };
114
+ })(), r = e && e.__assign || function() {
115
+ return r = Object.assign || function(e) {
116
+ 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]);
117
+ return e;
118
+ }, r.apply(this, arguments);
119
+ };
120
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.NodeMixin = e.NodeMixinOptions = void 0;
121
+ var i = t();
122
+ e.NodeMixinOptions = {
123
+ badCSS: !0,
124
+ badSizes: !0
125
+ };
126
+ function a(t, a) {
127
+ var o;
128
+ return a === void 0 && (a = {}), a = (0, i.userOptions)((0, i.defaultOptions)({}, e.NodeMixinOptions), a), o = function(e) {
129
+ n(t, e);
130
+ function t() {
131
+ var t = [...arguments], n = e.call(this, t[0]) || this, r = n.constructor;
132
+ return n.options = (0, i.userOptions)((0, i.defaultOptions)({}, r.OPTIONS), t[1]), n;
133
+ }
134
+ return t.prototype.fontSize = function(t) {
135
+ return a.badCSS ? this.options.fontSize : e.prototype.fontSize.call(this, t);
136
+ }, t.prototype.fontFamily = function(t) {
137
+ return a.badCSS ? this.options.fontFamily : e.prototype.fontFamily.call(this, t);
138
+ }, t.prototype.nodeSize = function(n, r, i) {
139
+ if (r === void 0 && (r = 1), i === void 0 && (i = null), !a.badSizes) return e.prototype.nodeSize.call(this, n, r, i);
140
+ var o = this.textContent(n), s = Array.from(o.replace(t.cjkPattern, "")).length;
141
+ return [(Array.from(o).length - s) * this.options.cjkCharWidth + s * this.options.unknownCharWidth, this.options.unknownCharHeight];
142
+ }, t.prototype.nodeBBox = function(t) {
143
+ return a.badSizes ? {
144
+ left: 0,
145
+ right: 0,
146
+ top: 0,
147
+ bottom: 0
148
+ } : e.prototype.nodeBBox.call(this, t);
149
+ }, t;
150
+ }(t), o.OPTIONS = r(r({}, a.badCSS ? {
151
+ fontSize: 16,
152
+ fontFamily: "Times"
153
+ } : {}), a.badSizes ? {
154
+ cjkCharWidth: 1,
155
+ unknownCharWidth: .6,
156
+ unknownCharHeight: .8
157
+ } : {}), o.cjkPattern = new RegExp([
158
+ "[",
159
+ "ᄀ-ᅟ",
160
+ "〈〉",
161
+ "⺀-〾",
162
+ "぀-㉇",
163
+ "㉐-䶿",
164
+ "一-꓆",
165
+ "ꥠ-ꥼ",
166
+ "가-힣",
167
+ "豈-﫿",
168
+ "︐-︙",
169
+ "︰-﹫",
170
+ "!-⦆¢-₩",
171
+ "𛀀-𛀁",
172
+ "🈀-🉑",
173
+ "𠀀-𿿽",
174
+ "]"
175
+ ].join(""), "gu"), o;
176
+ }
177
+ e.NodeMixin = a;
178
+ })), o = /* @__PURE__ */ e(((e) => {
179
+ var t = e && e.__assign || function() {
180
+ return t = Object.assign || function(e) {
181
+ 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]);
182
+ return e;
183
+ }, t.apply(this, arguments);
184
+ }, n = e && e.__read || function(e, t) {
185
+ var n = typeof Symbol == "function" && e[Symbol.iterator];
186
+ if (!n) return e;
187
+ var r = n.call(e), i, a = [], o;
188
+ try {
189
+ for (; (t === void 0 || t-- > 0) && !(i = r.next()).done;) a.push(i.value);
190
+ } catch (e) {
191
+ o = { error: e };
192
+ } finally {
193
+ try {
194
+ i && !i.done && (n = r.return) && n.call(r);
195
+ } finally {
196
+ if (o) throw o.error;
197
+ }
198
+ }
199
+ return a;
200
+ }, r = e && e.__spreadArray || function(e, t, n) {
201
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
202
+ return e.concat(a || Array.prototype.slice.call(t));
203
+ }, i = e && e.__values || function(e) {
204
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
205
+ if (n) return n.call(e);
206
+ if (e && typeof e.length == "number") return { next: function() {
207
+ return e && r >= e.length && (e = void 0), {
208
+ value: e && e[r++],
209
+ done: !e
210
+ };
211
+ } };
212
+ throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
213
+ };
214
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.LiteElement = void 0, e.LiteElement = function() {
215
+ function e(e, a, o) {
216
+ var s, c;
217
+ a === void 0 && (a = {}), o === void 0 && (o = []), this.kind = e, this.attributes = t({}, a), this.children = r([], n(o), !1);
218
+ try {
219
+ for (var l = i(this.children), u = l.next(); !u.done; u = l.next()) {
220
+ var d = u.value;
221
+ d.parent = this;
222
+ }
223
+ } catch (e) {
224
+ s = { error: e };
225
+ } finally {
226
+ try {
227
+ u && !u.done && (c = l.return) && c.call(l);
228
+ } finally {
229
+ if (s) throw s.error;
230
+ }
231
+ }
232
+ this.styles = null;
233
+ }
234
+ return e;
235
+ }();
236
+ })), s = /* @__PURE__ */ e(((e) => {
237
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.LiteDocument = void 0;
238
+ var t = o();
239
+ e.LiteDocument = function() {
240
+ function e() {
241
+ this.root = new t.LiteElement("html", {}, [this.head = new t.LiteElement("head"), this.body = new t.LiteElement("body")]), this.type = "";
242
+ }
243
+ return Object.defineProperty(e.prototype, "kind", {
244
+ get: function() {
245
+ return "#document";
246
+ },
247
+ enumerable: !1,
248
+ configurable: !0
249
+ }), e;
250
+ }();
251
+ })), c = /* @__PURE__ */ e(((e) => {
252
+ var t = e && e.__extends || (function() {
253
+ var e = function(t, n) {
254
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
255
+ e.__proto__ = t;
256
+ } || function(e, t) {
257
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
258
+ }, e(t, n);
259
+ };
260
+ return function(t, n) {
261
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
262
+ e(t, n);
263
+ function r() {
264
+ this.constructor = t;
265
+ }
266
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
267
+ };
268
+ })();
269
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.LiteComment = e.LiteText = void 0;
270
+ var n = function() {
271
+ function e(e) {
272
+ e === void 0 && (e = ""), this.value = e;
273
+ }
274
+ return Object.defineProperty(e.prototype, "kind", {
275
+ get: function() {
276
+ return "#text";
277
+ },
278
+ enumerable: !1,
279
+ configurable: !0
280
+ }), e;
281
+ }();
282
+ e.LiteText = n, e.LiteComment = function(e) {
283
+ t(n, e);
284
+ function n() {
285
+ return e !== null && e.apply(this, arguments) || this;
286
+ }
287
+ return Object.defineProperty(n.prototype, "kind", {
288
+ get: function() {
289
+ return "#comment";
290
+ },
291
+ enumerable: !1,
292
+ configurable: !0
293
+ }), n;
294
+ }(n);
295
+ })), l = /* @__PURE__ */ e(((e) => {
296
+ var t = e && e.__read || function(e, t) {
297
+ var n = typeof Symbol == "function" && e[Symbol.iterator];
298
+ if (!n) return e;
299
+ var r = n.call(e), i, a = [], o;
300
+ try {
301
+ for (; (t === void 0 || t-- > 0) && !(i = r.next()).done;) a.push(i.value);
302
+ } catch (e) {
303
+ o = { error: e };
304
+ } finally {
305
+ try {
306
+ i && !i.done && (n = r.return) && n.call(r);
307
+ } finally {
308
+ if (o) throw o.error;
309
+ }
310
+ }
311
+ return a;
312
+ }, n = e && e.__spreadArray || function(e, t, n) {
313
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
314
+ return e.concat(a || Array.prototype.slice.call(t));
315
+ };
316
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.LiteList = void 0, e.LiteList = function() {
317
+ function e(e) {
318
+ this.nodes = [], this.nodes = n([], t(e), !1);
319
+ }
320
+ return e.prototype.append = function(e) {
321
+ this.nodes.push(e);
322
+ }, e.prototype[Symbol.iterator] = function() {
323
+ var e = 0;
324
+ return { next: function() {
325
+ return e === this.nodes.length ? {
326
+ value: null,
327
+ done: !0
328
+ } : {
329
+ value: this.nodes[e++],
330
+ done: !1
331
+ };
332
+ } };
333
+ }, e;
334
+ }();
335
+ })), u = /* @__PURE__ */ e(((e) => {
336
+ var t = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
337
+ r === void 0 && (r = n);
338
+ var i = Object.getOwnPropertyDescriptor(t, n);
339
+ (!i || ("get" in i ? !t.__esModule : i.writable || i.configurable)) && (i = {
340
+ enumerable: !0,
341
+ get: function() {
342
+ return t[n];
343
+ }
344
+ }), Object.defineProperty(e, r, i);
345
+ }) : (function(e, t, n, r) {
346
+ r === void 0 && (r = n), e[r] = t[n];
347
+ })), r = e && e.__setModuleDefault || (Object.create ? (function(e, t) {
348
+ Object.defineProperty(e, "default", {
349
+ enumerable: !0,
350
+ value: t
351
+ });
352
+ }) : function(e, t) {
353
+ e.default = t;
354
+ }), i = e && e.__importStar || function(e) {
355
+ if (e && e.__esModule) return e;
356
+ var n = {};
357
+ if (e != null) for (var i in e) i !== "default" && Object.prototype.hasOwnProperty.call(e, i) && t(n, e, i);
358
+ return r(n, e), n;
359
+ }, a = e && e.__read || function(e, t) {
360
+ var n = typeof Symbol == "function" && e[Symbol.iterator];
361
+ if (!n) return e;
362
+ var r = n.call(e), i, a = [], o;
363
+ try {
364
+ for (; (t === void 0 || t-- > 0) && !(i = r.next()).done;) a.push(i.value);
365
+ } catch (e) {
366
+ o = { error: e };
367
+ } finally {
368
+ try {
369
+ i && !i.done && (n = r.return) && n.call(r);
370
+ } finally {
371
+ if (o) throw o.error;
372
+ }
373
+ }
374
+ return a;
375
+ }, s = e && e.__values || function(e) {
376
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
377
+ if (n) return n.call(e);
378
+ if (e && typeof e.length == "number") return { next: function() {
379
+ return e && r >= e.length && (e = void 0), {
380
+ value: e && e[r++],
381
+ done: !e
382
+ };
383
+ } };
384
+ throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
385
+ };
386
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.LiteParser = e.PATTERNS = void 0;
387
+ var l = i(n()), u = o(), d = c(), f;
388
+ (function(e) {
389
+ e.TAGNAME = "[a-z][^\\s\\n>]*", e.ATTNAME = "[a-z][^\\s\\n>=]*", e.VALUE = "(?:'[^']*'|\"[^\"]*\"|[^\\s\\n]+)", e.VALUESPLIT = "(?:'([^']*)'|\"([^\"]*)\"|([^\\s\\n]+))", e.SPACE = "(?:\\s|\\n)+", e.OPTIONALSPACE = "(?:\\s|\\n)*", e.ATTRIBUTE = e.ATTNAME + "(?:" + e.OPTIONALSPACE + "=" + e.OPTIONALSPACE + e.VALUE + ")?", e.ATTRIBUTESPLIT = "(" + e.ATTNAME + ")(?:" + e.OPTIONALSPACE + "=" + e.OPTIONALSPACE + e.VALUESPLIT + ")?", e.TAG = "(<(?:" + e.TAGNAME + "(?:" + e.SPACE + e.ATTRIBUTE + ")*" + e.OPTIONALSPACE + "/?|/" + e.TAGNAME + "|!--[^]*?--|![^]*?)(?:>|$))", e.tag = new RegExp(e.TAG, "i"), e.attr = new RegExp(e.ATTRIBUTE, "i"), e.attrsplit = new RegExp(e.ATTRIBUTESPLIT, "i");
390
+ })(f = e.PATTERNS ||= {}), e.LiteParser = function() {
391
+ function e() {}
392
+ return e.prototype.parseFromString = function(e, t, n) {
393
+ t === void 0 && (t = "text/html"), n === void 0 && (n = null);
394
+ for (var r = n.createDocument(), i = n.body(r), a = e.replace(/<\?.*?\?>/g, "").split(f.tag); a.length;) {
395
+ var o = a.shift(), s = a.shift();
396
+ o && this.addText(n, i, o), s && s.charAt(s.length - 1) === ">" && (s.charAt(1) === "!" ? this.addComment(n, i, s) : i = s.charAt(1) === "/" ? this.closeTag(n, i, s) : this.openTag(n, i, s, a));
397
+ }
398
+ return this.checkDocument(n, r), r;
399
+ }, e.prototype.addText = function(e, t, n) {
400
+ return n = l.translate(n), e.append(t, e.text(n));
401
+ }, e.prototype.addComment = function(e, t, n) {
402
+ return e.append(t, new d.LiteComment(n));
403
+ }, e.prototype.closeTag = function(e, t, n) {
404
+ for (var r = n.slice(2, n.length - 1).toLowerCase(); e.parent(t) && e.kind(t) !== r;) t = e.parent(t);
405
+ return e.parent(t);
406
+ }, e.prototype.openTag = function(e, t, n, r) {
407
+ var i = this.constructor.PCDATA, a = this.constructor.SELF_CLOSING, o = n.match(/<(.*?)[\s\n>\/]/)[1].toLowerCase(), s = e.node(o), c = n.replace(/^<.*?[\s\n>]/, "").split(f.attrsplit);
408
+ return (c.pop().match(/>$/) || c.length < 5) && (this.addAttributes(e, s, c), e.append(t, s), !a[o] && !n.match(/\/>$/) && (i[o] ? this.handlePCDATA(e, s, o, r) : t = s)), t;
409
+ }, e.prototype.addAttributes = function(e, t, n) {
410
+ for (var r = this.constructor.CDATA_ATTR; n.length;) {
411
+ var i = a(n.splice(0, 5), 5), o = i[1], s = i[2], c = i[3], u = i[4], d = s || c || u || "";
412
+ r[o] || (d = l.translate(d)), e.setAttribute(t, o, d);
413
+ }
414
+ }, e.prototype.handlePCDATA = function(e, t, n, r) {
415
+ for (var i = [], a = "</" + n + ">", o = ""; r.length && o !== a;) i.push(o), i.push(r.shift()), o = r.shift();
416
+ e.append(t, e.text(i.join("")));
417
+ }, e.prototype.checkDocument = function(e, t) {
418
+ var n, r, i, a, o = this.getOnlyChild(e, e.body(t));
419
+ if (o) {
420
+ try {
421
+ for (var c = s(e.childNodes(e.body(t))), l = c.next(); !l.done; l = c.next()) {
422
+ var u = l.value;
423
+ if (u === o) break;
424
+ u instanceof d.LiteComment && u.value.match(/^<!DOCTYPE/) && (t.type = u.value);
425
+ }
426
+ } catch (e) {
427
+ n = { error: e };
428
+ } finally {
429
+ try {
430
+ l && !l.done && (r = c.return) && r.call(c);
431
+ } finally {
432
+ if (n) throw n.error;
433
+ }
434
+ }
435
+ switch (e.kind(o)) {
436
+ case "html":
437
+ try {
438
+ for (var f = s(o.children), p = f.next(); !p.done; p = f.next()) {
439
+ var u = p.value;
440
+ switch (e.kind(u)) {
441
+ case "head":
442
+ t.head = u;
443
+ break;
444
+ case "body":
445
+ t.body = u;
446
+ break;
447
+ }
448
+ }
449
+ } catch (e) {
450
+ i = { error: e };
451
+ } finally {
452
+ try {
453
+ p && !p.done && (a = f.return) && a.call(f);
454
+ } finally {
455
+ if (i) throw i.error;
456
+ }
457
+ }
458
+ t.root = o, e.remove(o), e.parent(t.body) !== o && e.append(o, t.body), e.parent(t.head) !== o && e.insert(t.head, t.body);
459
+ break;
460
+ case "head":
461
+ t.head = e.replace(o, t.head);
462
+ break;
463
+ case "body":
464
+ t.body = e.replace(o, t.body);
465
+ break;
466
+ }
467
+ }
468
+ }, e.prototype.getOnlyChild = function(e, t) {
469
+ var n, r, i = null;
470
+ try {
471
+ for (var a = s(e.childNodes(t)), o = a.next(); !o.done; o = a.next()) {
472
+ var c = o.value;
473
+ if (c instanceof u.LiteElement) {
474
+ if (i) return null;
475
+ i = c;
476
+ }
477
+ }
478
+ } catch (e) {
479
+ n = { error: e };
480
+ } finally {
481
+ try {
482
+ o && !o.done && (r = a.return) && r.call(a);
483
+ } finally {
484
+ if (n) throw n.error;
485
+ }
486
+ }
487
+ return i;
488
+ }, e.prototype.serialize = function(e, t, n) {
489
+ var r = this;
490
+ n === void 0 && (n = !1);
491
+ var i = this.constructor.SELF_CLOSING, a = this.constructor.CDATA_ATTR, o = e.kind(t), s = e.allAttributes(t).map(function(e) {
492
+ return e.name + "=\"" + (a[e.name] ? e.value : r.protectAttribute(e.value)) + "\"";
493
+ }).join(" "), c = this.serializeInner(e, t, n);
494
+ return "<" + o + (s ? " " + s : "") + ((!n || c) && !i[o] ? `>${c}</${o}>` : n ? "/>" : ">");
495
+ }, e.prototype.serializeInner = function(e, t, n) {
496
+ var r = this;
497
+ return n === void 0 && (n = !1), this.constructor.PCDATA.hasOwnProperty(t.kind) ? e.childNodes(t).map(function(t) {
498
+ return e.value(t);
499
+ }).join("") : e.childNodes(t).map(function(t) {
500
+ var i = e.kind(t);
501
+ return i === "#text" ? r.protectHTML(e.value(t)) : i === "#comment" ? t.value : r.serialize(e, t, n);
502
+ }).join("");
503
+ }, e.prototype.protectAttribute = function(e) {
504
+ return typeof e != "string" && (e = String(e)), e.replace(/"/g, "&quot;");
505
+ }, e.prototype.protectHTML = function(e) {
506
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
507
+ }, e.SELF_CLOSING = {
508
+ area: !0,
509
+ base: !0,
510
+ br: !0,
511
+ col: !0,
512
+ command: !0,
513
+ embed: !0,
514
+ hr: !0,
515
+ img: !0,
516
+ input: !0,
517
+ keygen: !0,
518
+ link: !0,
519
+ menuitem: !0,
520
+ meta: !0,
521
+ param: !0,
522
+ source: !0,
523
+ track: !0,
524
+ wbr: !0
525
+ }, e.PCDATA = {
526
+ option: !0,
527
+ textarea: !0,
528
+ fieldset: !0,
529
+ title: !0,
530
+ style: !0,
531
+ script: !0
532
+ }, e.CDATA_ATTR = {
533
+ style: !0,
534
+ datafld: !0,
535
+ datasrc: !0,
536
+ href: !0,
537
+ src: !0,
538
+ longdesc: !0,
539
+ usemap: !0,
540
+ cite: !0,
541
+ datetime: !0,
542
+ action: !0,
543
+ axis: !0,
544
+ profile: !0,
545
+ content: !0,
546
+ scheme: !0
547
+ }, e;
548
+ }();
549
+ })), d = /* @__PURE__ */ e(((e) => {
550
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.LiteWindow = void 0;
551
+ var t = o(), n = s(), r = l(), i = u();
552
+ e.LiteWindow = function() {
553
+ function e() {
554
+ this.DOMParser = i.LiteParser, this.NodeList = r.LiteList, this.HTMLCollection = r.LiteList, this.HTMLElement = t.LiteElement, this.DocumentFragment = r.LiteList, this.Document = n.LiteDocument, this.document = new n.LiteDocument();
555
+ }
556
+ return e;
557
+ }();
558
+ })), f = /* @__PURE__ */ e(((e) => {
559
+ var t = e && e.__extends || (function() {
560
+ var e = function(t, n) {
561
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
562
+ e.__proto__ = t;
563
+ } || function(e, t) {
564
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
565
+ }, e(t, n);
566
+ };
567
+ return function(t, n) {
568
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
569
+ e(t, n);
570
+ function r() {
571
+ this.constructor = t;
572
+ }
573
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
574
+ };
575
+ })(), n = e && e.__assign || function() {
576
+ return n = Object.assign || function(e) {
577
+ 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]);
578
+ return e;
579
+ }, n.apply(this, arguments);
580
+ }, l = e && e.__values || function(e) {
581
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
582
+ if (n) return n.call(e);
583
+ if (e && typeof e.length == "number") return { next: function() {
584
+ return e && r >= e.length && (e = void 0), {
585
+ value: e && e[r++],
586
+ done: !e
587
+ };
588
+ } };
589
+ throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
590
+ }, f = e && e.__read || function(e, t) {
591
+ var n = typeof Symbol == "function" && e[Symbol.iterator];
592
+ if (!n) return e;
593
+ var r = n.call(e), i, a = [], o;
594
+ try {
595
+ for (; (t === void 0 || t-- > 0) && !(i = r.next()).done;) a.push(i.value);
596
+ } catch (e) {
597
+ o = { error: e };
598
+ } finally {
599
+ try {
600
+ i && !i.done && (n = r.return) && n.call(r);
601
+ } finally {
602
+ if (o) throw o.error;
603
+ }
604
+ }
605
+ return a;
606
+ }, p = e && e.__spreadArray || function(e, t, n) {
607
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
608
+ return e.concat(a || Array.prototype.slice.call(t));
609
+ };
610
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.liteAdaptor = e.LiteAdaptor = e.LiteBase = void 0;
611
+ var m = i(), h = a(), g = s(), _ = o(), v = c(), y = d(), b = u(), x = r(), S = function(e) {
612
+ t(r, e);
613
+ function r() {
614
+ var t = e.call(this) || this;
615
+ return t.parser = new b.LiteParser(), t.window = new y.LiteWindow(), t;
616
+ }
617
+ return r.prototype.parse = function(e, t) {
618
+ return this.parser.parseFromString(e, t, this);
619
+ }, r.prototype.create = function(e, t) {
620
+ return t === void 0 && (t = null), new _.LiteElement(e);
621
+ }, r.prototype.text = function(e) {
622
+ return new v.LiteText(e);
623
+ }, r.prototype.comment = function(e) {
624
+ return new v.LiteComment(e);
625
+ }, r.prototype.createDocument = function() {
626
+ return new g.LiteDocument();
627
+ }, r.prototype.head = function(e) {
628
+ return e.head;
629
+ }, r.prototype.body = function(e) {
630
+ return e.body;
631
+ }, r.prototype.root = function(e) {
632
+ return e.root;
633
+ }, r.prototype.doctype = function(e) {
634
+ return e.type;
635
+ }, r.prototype.tags = function(e, t, n) {
636
+ n === void 0 && (n = null);
637
+ var r = [], i = [];
638
+ if (n) return i;
639
+ for (var a = e; a;) {
640
+ var o = a.kind;
641
+ o !== "#text" && o !== "#comment" && (a = a, o === t && i.push(a), a.children.length && (r = a.children.concat(r))), a = r.shift();
642
+ }
643
+ return i;
644
+ }, r.prototype.elementById = function(e, t) {
645
+ for (var n = [], r = e; r;) {
646
+ if (r.kind !== "#text" && r.kind !== "#comment") {
647
+ if (r = r, r.attributes.id === t) return r;
648
+ r.children.length && (n = r.children.concat(n));
649
+ }
650
+ r = n.shift();
651
+ }
652
+ return null;
653
+ }, r.prototype.elementsByClass = function(e, t) {
654
+ for (var n = [], r = [], i = e; i;) i.kind !== "#text" && i.kind !== "#comment" && (i = i, (i.attributes.class || "").trim().split(/ +/).includes(t) && r.push(i), i.children.length && (n = i.children.concat(n))), i = n.shift();
655
+ return r;
656
+ }, r.prototype.getElements = function(e, t) {
657
+ var n, r, i = [], a = this.body(t);
658
+ try {
659
+ for (var o = l(e), s = o.next(); !s.done; s = o.next()) {
660
+ var c = s.value;
661
+ if (typeof c == "string") if (c.charAt(0) === "#") {
662
+ var u = this.elementById(a, c.slice(1));
663
+ u && i.push(u);
664
+ } else c.charAt(0) === "." ? i = i.concat(this.elementsByClass(a, c.slice(1))) : c.match(/^[-a-z][-a-z0-9]*$/i) && (i = i.concat(this.tags(a, c)));
665
+ else Array.isArray(c) ? i = i.concat(c) : c instanceof this.window.NodeList || c instanceof this.window.HTMLCollection ? i = i.concat(c.nodes) : i.push(c);
666
+ }
667
+ } catch (e) {
668
+ n = { error: e };
669
+ } finally {
670
+ try {
671
+ s && !s.done && (r = o.return) && r.call(o);
672
+ } finally {
673
+ if (n) throw n.error;
674
+ }
675
+ }
676
+ return i;
677
+ }, r.prototype.contains = function(e, t) {
678
+ for (; t && t !== e;) t = this.parent(t);
679
+ return !!t;
680
+ }, r.prototype.parent = function(e) {
681
+ return e.parent;
682
+ }, r.prototype.childIndex = function(e) {
683
+ return e.parent ? e.parent.children.findIndex(function(t) {
684
+ return t === e;
685
+ }) : -1;
686
+ }, r.prototype.append = function(e, t) {
687
+ return t.parent && this.remove(t), e.children.push(t), t.parent = e, t;
688
+ }, r.prototype.insert = function(e, t) {
689
+ if (e.parent && this.remove(e), t && t.parent) {
690
+ var n = this.childIndex(t);
691
+ t.parent.children.splice(n, 0, e), e.parent = t.parent;
692
+ }
693
+ }, r.prototype.remove = function(e) {
694
+ var t = this.childIndex(e);
695
+ return t >= 0 && e.parent.children.splice(t, 1), e.parent = null, e;
696
+ }, r.prototype.replace = function(e, t) {
697
+ var n = this.childIndex(t);
698
+ return n >= 0 && (t.parent.children[n] = e, e.parent = t.parent, t.parent = null), t;
699
+ }, r.prototype.clone = function(e) {
700
+ var t = this, r = new _.LiteElement(e.kind);
701
+ return r.attributes = n({}, e.attributes), r.children = e.children.map(function(e) {
702
+ if (e.kind === "#text") return new v.LiteText(e.value);
703
+ if (e.kind === "#comment") return new v.LiteComment(e.value);
704
+ var n = t.clone(e);
705
+ return n.parent = r, n;
706
+ }), r;
707
+ }, r.prototype.split = function(e, t) {
708
+ var n = new v.LiteText(e.value.slice(t));
709
+ return e.value = e.value.slice(0, t), e.parent.children.splice(this.childIndex(e) + 1, 0, n), n.parent = e.parent, n;
710
+ }, r.prototype.next = function(e) {
711
+ var t = e.parent;
712
+ if (!t) return null;
713
+ var n = this.childIndex(e) + 1;
714
+ return n >= 0 && n < t.children.length ? t.children[n] : null;
715
+ }, r.prototype.previous = function(e) {
716
+ var t = e.parent;
717
+ if (!t) return null;
718
+ var n = this.childIndex(e) - 1;
719
+ return n >= 0 ? t.children[n] : null;
720
+ }, r.prototype.firstChild = function(e) {
721
+ return e.children[0];
722
+ }, r.prototype.lastChild = function(e) {
723
+ return e.children[e.children.length - 1];
724
+ }, r.prototype.childNodes = function(e) {
725
+ return p([], f(e.children), !1);
726
+ }, r.prototype.childNode = function(e, t) {
727
+ return e.children[t];
728
+ }, r.prototype.kind = function(e) {
729
+ return e.kind;
730
+ }, r.prototype.value = function(e) {
731
+ return e.kind === "#text" ? e.value : e.kind === "#comment" ? e.value.replace(/^<!(--)?((?:.|\n)*)\1>$/, "$2") : "";
732
+ }, r.prototype.textContent = function(e) {
733
+ var t = this;
734
+ return e.children.reduce(function(e, n) {
735
+ return e + (n.kind === "#text" ? n.value : n.kind === "#comment" ? "" : t.textContent(n));
736
+ }, "");
737
+ }, r.prototype.innerHTML = function(e) {
738
+ return this.parser.serializeInner(this, e);
739
+ }, r.prototype.outerHTML = function(e) {
740
+ return this.parser.serialize(this, e);
741
+ }, r.prototype.serializeXML = function(e) {
742
+ return this.parser.serialize(this, e, !0);
743
+ }, r.prototype.setAttribute = function(e, t, n, r) {
744
+ r === void 0 && (r = null), typeof n != "string" && (n = String(n)), r && (t = r.replace(/.*\//, "") + ":" + t.replace(/^.*:/, "")), e.attributes[t] = n, t === "style" && (e.styles = null);
745
+ }, r.prototype.getAttribute = function(e, t) {
746
+ return e.attributes[t];
747
+ }, r.prototype.removeAttribute = function(e, t) {
748
+ delete e.attributes[t];
749
+ }, r.prototype.hasAttribute = function(e, t) {
750
+ return e.attributes.hasOwnProperty(t);
751
+ }, r.prototype.allAttributes = function(e) {
752
+ var t, n, r = e.attributes, i = [];
753
+ try {
754
+ for (var a = l(Object.keys(r)), o = a.next(); !o.done; o = a.next()) {
755
+ var s = o.value;
756
+ i.push({
757
+ name: s,
758
+ value: r[s]
759
+ });
760
+ }
761
+ } catch (e) {
762
+ t = { error: e };
763
+ } finally {
764
+ try {
765
+ o && !o.done && (n = a.return) && n.call(a);
766
+ } finally {
767
+ if (t) throw t.error;
768
+ }
769
+ }
770
+ return i;
771
+ }, r.prototype.addClass = function(e, t) {
772
+ var n = (e.attributes.class || "").split(/ /);
773
+ n.find(function(e) {
774
+ return e === t;
775
+ }) || (n.push(t), e.attributes.class = n.join(" "));
776
+ }, r.prototype.removeClass = function(e, t) {
777
+ var n = (e.attributes.class || "").split(/ /), r = n.findIndex(function(e) {
778
+ return e === t;
779
+ });
780
+ r >= 0 && (n.splice(r, 1), e.attributes.class = n.join(" "));
781
+ }, r.prototype.hasClass = function(e, t) {
782
+ return !!(e.attributes.class || "").split(/ /).find(function(e) {
783
+ return e === t;
784
+ });
785
+ }, r.prototype.setStyle = function(e, t, n) {
786
+ e.styles ||= new x.Styles(this.getAttribute(e, "style")), e.styles.set(t, n), e.attributes.style = e.styles.cssText;
787
+ }, r.prototype.getStyle = function(e, t) {
788
+ if (!e.styles) {
789
+ var n = this.getAttribute(e, "style");
790
+ if (!n) return "";
791
+ e.styles = new x.Styles(n);
792
+ }
793
+ return e.styles.get(t);
794
+ }, r.prototype.allStyles = function(e) {
795
+ return this.getAttribute(e, "style");
796
+ }, r.prototype.insertRules = function(e, t) {
797
+ e.children = [this.text(t.join("\n\n") + "\n\n" + this.textContent(e))];
798
+ }, r.prototype.fontSize = function(e) {
799
+ return 0;
800
+ }, r.prototype.fontFamily = function(e) {
801
+ return "";
802
+ }, r.prototype.nodeSize = function(e, t, n) {
803
+ return t === void 0 && (t = 1), n === void 0 && (n = null), [0, 0];
804
+ }, r.prototype.nodeBBox = function(e) {
805
+ return {
806
+ left: 0,
807
+ right: 0,
808
+ top: 0,
809
+ bottom: 0
810
+ };
811
+ }, r;
812
+ }(m.AbstractDOMAdaptor);
813
+ e.LiteBase = S;
814
+ var C = function(e) {
815
+ t(n, e);
816
+ function n() {
817
+ return e !== null && e.apply(this, arguments) || this;
818
+ }
819
+ return n;
820
+ }((0, h.NodeMixin)(S));
821
+ e.LiteAdaptor = C;
822
+ function w(e) {
823
+ return e === void 0 && (e = null), new C(null, e);
824
+ }
825
+ e.liteAdaptor = w;
826
+ }));
827
+ //#endregion
828
+ export default f();