manim-web 0.3.19 → 0.3.21

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 (165) hide show
  1. package/README.md +1 -1
  2. package/dist/AmsConfiguration-BMyoprhk.js +847 -0
  3. package/dist/AmsConfiguration-BdxxYRby.js +847 -0
  4. package/dist/ConfigMacrosConfiguration-B8X_JSVI.js +46 -0
  5. package/dist/ConfigMacrosConfiguration-DUxp6DUV.js +46 -0
  6. package/dist/Entities-B1o7gN0J.js +429 -0
  7. package/dist/Entities-C82lnCux.js +429 -0
  8. package/dist/Factory-BKM7FEO-.js +107 -0
  9. package/dist/Factory-D-whCqrb.js +107 -0
  10. package/dist/{GifExporter-7EpPGupp.js → GifExporter-BrxY_q7e.js} +1 -1
  11. package/dist/{GifExporter-DCrSD6FV.js → GifExporter-S2pbxMc5.js} +1 -1
  12. package/dist/HtmlNode-BLmQ2r7U.js +981 -0
  13. package/dist/HtmlNode-DXGeKrcW.js +981 -0
  14. package/dist/InputJax-DL9oUQY4.js +41 -0
  15. package/dist/InputJax-DnDWM3Y0.js +41 -0
  16. package/dist/NewcommandConfiguration-BPjclFig.js +32 -0
  17. package/dist/NewcommandConfiguration-bJ6P1rBY.js +32 -0
  18. package/dist/NewcommandMethods-C_E3iLoK.js +187 -0
  19. package/dist/NewcommandMethods-Cb7yFm5P.js +187 -0
  20. package/dist/Options-DRlTi0G8.js +63 -0
  21. package/dist/Options-XPptO-6X.js +63 -0
  22. package/dist/ParseMethods-BMPfzfQC.js +2636 -0
  23. package/dist/ParseMethods-D3_HeS1K.js +2636 -0
  24. package/dist/Styles-Dky5jZUe.js +293 -0
  25. package/dist/Styles-J-6R3Vr8.js +293 -0
  26. package/dist/{VideoExporter-6w8xBpcV.js → VideoExporter-6ikT3u9H.js} +1 -1
  27. package/dist/{VideoExporter-DdQb18dC.js → VideoExporter-D_RxVahH.js} +1 -1
  28. package/dist/animation/Animation.d.ts +15 -0
  29. package/dist/animation/Animation.d.ts.map +1 -1
  30. package/dist/animation/transform/FadeMorphStrategy.d.ts +18 -0
  31. package/dist/animation/transform/FadeMorphStrategy.d.ts.map +1 -0
  32. package/dist/animation/transform/FadeTransforms.d.ts +2 -0
  33. package/dist/animation/transform/FadeTransforms.d.ts.map +1 -1
  34. package/dist/animation/transform/MorphStrategy.d.ts +8 -0
  35. package/dist/animation/transform/MorphStrategy.d.ts.map +1 -0
  36. package/dist/animation/transform/MovementTransforms.d.ts +8 -0
  37. package/dist/animation/transform/MovementTransforms.d.ts.map +1 -1
  38. package/dist/animation/transform/PointMorphStrategy.d.ts +36 -0
  39. package/dist/animation/transform/PointMorphStrategy.d.ts.map +1 -0
  40. package/dist/animation/transform/ShapeMorphStrategy.d.ts +39 -0
  41. package/dist/animation/transform/ShapeMorphStrategy.d.ts.map +1 -0
  42. package/dist/animation/transform/Transform.d.ts +9 -88
  43. package/dist/animation/transform/Transform.d.ts.map +1 -1
  44. package/dist/animation/transform/TransformMatching.d.ts.map +1 -1
  45. package/dist/animation/transform/TransformMatchingBase.d.ts +1 -0
  46. package/dist/animation/transform/TransformMatchingBase.d.ts.map +1 -1
  47. package/dist/animation/transform/TransformMatchingShared.d.ts +37 -0
  48. package/dist/animation/transform/TransformMatchingShared.d.ts.map +1 -0
  49. package/dist/animation/transform/TransformPairing.d.ts +19 -0
  50. package/dist/animation/transform/TransformPairing.d.ts.map +1 -0
  51. package/dist/constants/fontRender.d.ts +19 -0
  52. package/dist/constants/fontRender.d.ts.map +1 -0
  53. package/dist/constants/index.d.ts.map +1 -1
  54. package/dist/core/AnimateProxy.d.ts +1 -0
  55. package/dist/core/AnimateProxy.d.ts.map +1 -1
  56. package/dist/core/Camera.d.ts +19 -6
  57. package/dist/core/Camera.d.ts.map +1 -1
  58. package/dist/core/CameraFrame.d.ts +0 -2
  59. package/dist/core/CameraFrame.d.ts.map +1 -1
  60. package/dist/core/Group.d.ts +2 -0
  61. package/dist/core/Group.d.ts.map +1 -1
  62. package/dist/core/Mobject.d.ts +6 -0
  63. package/dist/core/Mobject.d.ts.map +1 -1
  64. package/dist/core/MobjectTraversal.d.ts +25 -0
  65. package/dist/core/MobjectTraversal.d.ts.map +1 -0
  66. package/dist/core/Scene.d.ts.map +1 -1
  67. package/dist/core/TexturedMobject.d.ts +38 -0
  68. package/dist/core/TexturedMobject.d.ts.map +1 -0
  69. package/dist/core/ThreeDScene.d.ts +18 -3
  70. package/dist/core/ThreeDScene.d.ts.map +1 -1
  71. package/dist/core/VMobject.d.ts +54 -110
  72. package/dist/core/VMobject.d.ts.map +1 -1
  73. package/dist/core/VMobjectCurveUtils.d.ts +106 -0
  74. package/dist/core/VMobjectCurveUtils.d.ts.map +1 -0
  75. package/dist/core/VMobjectGeometry.d.ts +4 -16
  76. package/dist/core/VMobjectGeometry.d.ts.map +1 -1
  77. package/dist/core/VMobjectRendering.d.ts.map +1 -1
  78. package/dist/core/VMobjectStrokeGeometry.d.ts +20 -0
  79. package/dist/core/VMobjectStrokeGeometry.d.ts.map +1 -0
  80. package/dist/core/VMobjectTransformAlignment.d.ts +11 -0
  81. package/dist/core/VMobjectTransformAlignment.d.ts.map +1 -0
  82. package/dist/html-DU38zqaN.js +829 -0
  83. package/dist/html-DjkQuIHJ.js +829 -0
  84. package/dist/index.js +4 -4
  85. package/dist/integrations/react.js +5 -5
  86. package/dist/integrations/vue.js +7 -7
  87. package/dist/interaction/Draggable.d.ts +2 -0
  88. package/dist/interaction/Draggable.d.ts.map +1 -1
  89. package/dist/interaction/OrbitControls.d.ts +2 -0
  90. package/dist/interaction/OrbitControls.d.ts.map +1 -1
  91. package/dist/lengths-CP7zmbxJ.js +54 -0
  92. package/dist/lengths-D4tR1gYA.js +54 -0
  93. package/dist/liteAdaptor-BLgze3o2.js +616 -0
  94. package/dist/liteAdaptor-zXv-jsO1.js +616 -0
  95. package/dist/manim-web.browser.js +35324 -31248
  96. package/dist/mathjax-7LgaTjtj.js +121 -0
  97. package/dist/mathjax-CoSFlQ0H.js +121 -0
  98. package/dist/mo-C5uLT3Z9.js +2675 -0
  99. package/dist/mo-CNYDGAsg.js +2675 -0
  100. package/dist/mobjects/geometry/AngleShapes.d.ts +8 -0
  101. package/dist/mobjects/geometry/AngleShapes.d.ts.map +1 -1
  102. package/dist/mobjects/geometry/BooleanOperations.d.ts +1 -1
  103. package/dist/mobjects/geometry/BooleanOperations.d.ts.map +1 -1
  104. package/dist/mobjects/geometry/PolygonExtensions.d.ts +1 -1
  105. package/dist/mobjects/geometry/PolygonExtensions.d.ts.map +1 -1
  106. package/dist/mobjects/graphing/ComplexPlane.d.ts +18 -0
  107. package/dist/mobjects/graphing/ComplexPlane.d.ts.map +1 -1
  108. package/dist/mobjects/image/index.d.ts +9 -2
  109. package/dist/mobjects/image/index.d.ts.map +1 -1
  110. package/dist/mobjects/text/MarkupText.d.ts.map +1 -1
  111. package/dist/mobjects/text/MathJaxRenderer.d.ts +4 -2
  112. package/dist/mobjects/text/MathJaxRenderer.d.ts.map +1 -1
  113. package/dist/mobjects/text/MathTex.d.ts +9 -2
  114. package/dist/mobjects/text/MathTex.d.ts.map +1 -1
  115. package/dist/mobjects/text/MathTexImage.d.ts +14 -4
  116. package/dist/mobjects/text/MathTexImage.d.ts.map +1 -1
  117. package/dist/mobjects/text/Text.d.ts +10 -5
  118. package/dist/mobjects/text/Text.d.ts.map +1 -1
  119. package/dist/mobjects/text/katexStyles.d.ts.map +1 -1
  120. package/dist/mobjects/text/svgPathParser.d.ts.map +1 -1
  121. package/dist/mobjects/three-d/ThreeDAxes.d.ts +121 -9
  122. package/dist/mobjects/three-d/ThreeDAxes.d.ts.map +1 -1
  123. package/dist/{chunk-DeC0fbbY.js → rolldown-runtime-DnwLefa7.js} +1 -1
  124. package/dist/{src-0ifQdJUj.js → src-CW4pfZdP.js} +33071 -29118
  125. package/dist/svg-CYweEoZ1.js +28698 -0
  126. package/dist/svg-swSF_J59.js +28698 -0
  127. package/dist/tex-C4_queV-.js +1423 -0
  128. package/dist/tex-CA5MLeEe.js +1423 -0
  129. package/dist/utils/math.d.ts +50 -5
  130. package/dist/utils/math.d.ts.map +1 -1
  131. package/package.json +6 -5
  132. package/dist/AllPackages-C4Ha3Jps.js +0 -7912
  133. package/dist/AllPackages-Dwxf_-Ps.js +0 -7912
  134. package/dist/BaseConfiguration-D2fikupy.js +0 -4402
  135. package/dist/BaseConfiguration-DYpI8zxb.js +0 -4402
  136. package/dist/Entities-BxzKxtF2.js +0 -458
  137. package/dist/Entities-gIbwAkB6.js +0 -458
  138. package/dist/InputJax-BszJvLkW.js +0 -43
  139. package/dist/InputJax-CgHBfQsv.js +0 -43
  140. package/dist/MathItem-4gYKatZT.js +0 -77
  141. package/dist/MathItem-BGJUnd1K.js +0 -77
  142. package/dist/Options-CQim5zsr.js +0 -188
  143. package/dist/Options-Cn9jv1mh.js +0 -188
  144. package/dist/PrioritizedList-C1R4aNEC.js +0 -36
  145. package/dist/PrioritizedList-lIkFMNlo.js +0 -36
  146. package/dist/Styles-Bi9Db-2J.js +0 -411
  147. package/dist/Styles-CzHPc-An.js +0 -411
  148. package/dist/TeXAtom-Cinii27y.js +0 -2025
  149. package/dist/TeXAtom-DFdvwkN2.js +0 -2025
  150. package/dist/html-DKkfg_ss.js +0 -1587
  151. package/dist/html-DpiYkktJ.js +0 -1587
  152. package/dist/lengths-C0YS8_KC.js +0 -65
  153. package/dist/lengths-eBH2o1TO.js +0 -65
  154. package/dist/liteAdaptor-CB8lQj3d.js +0 -828
  155. package/dist/liteAdaptor-DvuW8HsZ.js +0 -828
  156. package/dist/mathjax-BVz9WLAG.js +0 -105
  157. package/dist/mathjax-BbWkqal4.js +0 -2
  158. package/dist/mathjax-BrFZxFhK.js +0 -2
  159. package/dist/mathjax-DdKmwllV.js +0 -105
  160. package/dist/mo-B60kIOAG.js +0 -3271
  161. package/dist/mo-cSv2058o.js +0 -3271
  162. package/dist/svg-BDTt4xHZ.js +0 -23879
  163. package/dist/svg-DzbC3CbJ.js +0 -23879
  164. package/dist/tex-CRhAZgfS.js +0 -401
  165. package/dist/tex-D3LEgNlQ.js +0 -401
@@ -1,828 +0,0 @@
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();