manim-web 0.3.21 → 0.3.23

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 (325) hide show
  1. package/README.md +20 -0
  2. package/dist/{svg-swSF_J59.js → MathJaxBundle-xSidSV0E.js} +18571 -7242
  3. package/dist/animation/Animation.d.ts.map +1 -1
  4. package/dist/animation/AnimationGroup.d.ts.map +1 -1
  5. package/dist/animation/MasterTimeline.d.ts +88 -1
  6. package/dist/animation/MasterTimeline.d.ts.map +1 -1
  7. package/dist/animation/Timeline.d.ts.map +1 -1
  8. package/dist/animation/changing/index.d.ts +2 -2
  9. package/dist/animation/changing/index.d.ts.map +1 -1
  10. package/dist/animation/creation/Create.d.ts.map +1 -1
  11. package/dist/animation/growing/index.d.ts +8 -5
  12. package/dist/animation/growing/index.d.ts.map +1 -1
  13. package/dist/animation/movement/Homotopy.d.ts +37 -7
  14. package/dist/animation/movement/Homotopy.d.ts.map +1 -1
  15. package/dist/animation/movement/MoveAlongPath.d.ts.map +1 -1
  16. package/dist/animation/movement/Rotate.d.ts +2 -7
  17. package/dist/animation/movement/Rotate.d.ts.map +1 -1
  18. package/dist/animation/speed/index.d.ts.map +1 -1
  19. package/dist/animation/transform/ApplyPointwiseFunction.d.ts.map +1 -1
  20. package/dist/animation/transform/ApplyPointwiseFunctionToCenter.d.ts.map +1 -1
  21. package/dist/animation/transform/ApplyTransforms.d.ts.map +1 -1
  22. package/dist/animation/transform/MorphStrategy.d.ts +23 -0
  23. package/dist/animation/transform/MorphStrategy.d.ts.map +1 -1
  24. package/dist/animation/transform/PointCloudMorphStrategy.d.ts +18 -0
  25. package/dist/animation/transform/PointCloudMorphStrategy.d.ts.map +1 -0
  26. package/dist/animation/transform/PointMorphStrategy.d.ts +26 -0
  27. package/dist/animation/transform/PointMorphStrategy.d.ts.map +1 -1
  28. package/dist/animation/transform/Transform.d.ts +2 -0
  29. package/dist/animation/transform/Transform.d.ts.map +1 -1
  30. package/dist/animation/transform/TransformMatching.d.ts.map +1 -1
  31. package/dist/animation/utility/index.d.ts +6 -2
  32. package/dist/animation/utility/index.d.ts.map +1 -1
  33. package/dist/core/AnimateProxy.d.ts +3 -5
  34. package/dist/core/AnimateProxy.d.ts.map +1 -1
  35. package/dist/core/Camera.d.ts +40 -0
  36. package/dist/core/Camera.d.ts.map +1 -1
  37. package/dist/core/Camera2DFrame.d.ts +1 -1
  38. package/dist/core/Camera2DFrame.d.ts.map +1 -1
  39. package/dist/core/CameraExtensions.d.ts +33 -1
  40. package/dist/core/CameraExtensions.d.ts.map +1 -1
  41. package/dist/core/CameraFrame.d.ts.map +1 -1
  42. package/dist/core/Group.d.ts +11 -39
  43. package/dist/core/Group.d.ts.map +1 -1
  44. package/dist/core/InteractiveScene.d.ts.map +1 -1
  45. package/dist/core/Lighting.d.ts.map +1 -1
  46. package/dist/core/Mobject.d.ts +246 -11
  47. package/dist/core/Mobject.d.ts.map +1 -1
  48. package/dist/core/MobjectPositioning.d.ts +0 -8
  49. package/dist/core/MobjectPositioning.d.ts.map +1 -1
  50. package/dist/core/MobjectState.d.ts.map +1 -1
  51. package/dist/core/MobjectTraversal.d.ts +3 -0
  52. package/dist/core/MobjectTraversal.d.ts.map +1 -1
  53. package/dist/core/MobjectTypes.d.ts +29 -4
  54. package/dist/core/MobjectTypes.d.ts.map +1 -1
  55. package/dist/core/PointBounds.d.ts +39 -0
  56. package/dist/core/PointBounds.d.ts.map +1 -0
  57. package/dist/core/Renderer.d.ts +3 -0
  58. package/dist/core/Renderer.d.ts.map +1 -1
  59. package/dist/core/Scene.d.ts +82 -0
  60. package/dist/core/Scene.d.ts.map +1 -1
  61. package/dist/core/TexturedMobject.d.ts +12 -0
  62. package/dist/core/TexturedMobject.d.ts.map +1 -1
  63. package/dist/core/ThreeDScene.d.ts +9 -1
  64. package/dist/core/ThreeDScene.d.ts.map +1 -1
  65. package/dist/core/VDict.d.ts +1 -9
  66. package/dist/core/VDict.d.ts.map +1 -1
  67. package/dist/core/VGroup.d.ts +58 -42
  68. package/dist/core/VGroup.d.ts.map +1 -1
  69. package/dist/core/VMobject.d.ts +102 -28
  70. package/dist/core/VMobject.d.ts.map +1 -1
  71. package/dist/core/VMobjectCurveUtils.d.ts +1 -1
  72. package/dist/core/VMobjectCurveUtils.d.ts.map +1 -1
  73. package/dist/core/VMobjectGeometry.d.ts +20 -10
  74. package/dist/core/VMobjectGeometry.d.ts.map +1 -1
  75. package/dist/core/VMobjectRendering.d.ts +5 -0
  76. package/dist/core/VMobjectRendering.d.ts.map +1 -1
  77. package/dist/core/VMobjectStrokeGeometry.d.ts.map +1 -1
  78. package/dist/core/VMobjectTransformAlignment.d.ts +9 -0
  79. package/dist/core/VMobjectTransformAlignment.d.ts.map +1 -1
  80. package/dist/core/ZoomedScene.d.ts +2 -1
  81. package/dist/core/ZoomedScene.d.ts.map +1 -1
  82. package/dist/export/GifExporter.d.ts.map +1 -1
  83. package/dist/export/VideoExporter.d.ts.map +1 -1
  84. package/dist/index.d.ts +5 -4
  85. package/dist/index.d.ts.map +1 -1
  86. package/dist/index.js +2 -4
  87. package/dist/integrations/react.js +16 -18
  88. package/dist/integrations/vue.js +15 -17
  89. package/dist/interaction/Draggable.d.ts +12 -0
  90. package/dist/interaction/Draggable.d.ts.map +1 -1
  91. package/dist/interaction/OrbitControls.d.ts +1 -1
  92. package/dist/interaction/OrbitControls.d.ts.map +1 -1
  93. package/dist/manim-web.browser.js +12510 -10445
  94. package/dist/mobjects/fractals/MandelbrotSet.d.ts +2 -1
  95. package/dist/mobjects/fractals/MandelbrotSet.d.ts.map +1 -1
  96. package/dist/mobjects/fractals/NewtonFractal.d.ts +2 -1
  97. package/dist/mobjects/fractals/NewtonFractal.d.ts.map +1 -1
  98. package/dist/mobjects/frame/index.d.ts +3 -12
  99. package/dist/mobjects/frame/index.d.ts.map +1 -1
  100. package/dist/mobjects/geometry/AngleShapes.d.ts +4 -8
  101. package/dist/mobjects/geometry/AngleShapes.d.ts.map +1 -1
  102. package/dist/mobjects/geometry/AnnularSector.d.ts +4 -74
  103. package/dist/mobjects/geometry/AnnularSector.d.ts.map +1 -1
  104. package/dist/mobjects/geometry/Annulus.d.ts +1 -62
  105. package/dist/mobjects/geometry/Annulus.d.ts.map +1 -1
  106. package/dist/mobjects/geometry/Arc.d.ts +3 -1
  107. package/dist/mobjects/geometry/Arc.d.ts.map +1 -1
  108. package/dist/mobjects/geometry/ArcBetweenPoints.d.ts +1 -1
  109. package/dist/mobjects/geometry/ArcBetweenPoints.d.ts.map +1 -1
  110. package/dist/mobjects/geometry/ArcPolygon.d.ts +1 -1
  111. package/dist/mobjects/geometry/ArcPolygon.d.ts.map +1 -1
  112. package/dist/mobjects/geometry/Arrow.d.ts +130 -23
  113. package/dist/mobjects/geometry/Arrow.d.ts.map +1 -1
  114. package/dist/mobjects/geometry/ArrowTips.d.ts +7 -7
  115. package/dist/mobjects/geometry/ArrowTips.d.ts.map +1 -1
  116. package/dist/mobjects/geometry/BooleanOperations.d.ts.map +1 -1
  117. package/dist/mobjects/geometry/Circle.d.ts +20 -23
  118. package/dist/mobjects/geometry/Circle.d.ts.map +1 -1
  119. package/dist/mobjects/geometry/CubicBezier.d.ts +1 -1
  120. package/dist/mobjects/geometry/CubicBezier.d.ts.map +1 -1
  121. package/dist/mobjects/geometry/CurvedArrow.d.ts +1 -1
  122. package/dist/mobjects/geometry/CurvedArrow.d.ts.map +1 -1
  123. package/dist/mobjects/geometry/CurvedDoubleArrow.d.ts +1 -1
  124. package/dist/mobjects/geometry/CurvedDoubleArrow.d.ts.map +1 -1
  125. package/dist/mobjects/geometry/DashedLine.d.ts +3 -2
  126. package/dist/mobjects/geometry/DashedLine.d.ts.map +1 -1
  127. package/dist/mobjects/geometry/DashedVMobject.d.ts +3 -2
  128. package/dist/mobjects/geometry/DashedVMobject.d.ts.map +1 -1
  129. package/dist/mobjects/geometry/Dot.d.ts +4 -15
  130. package/dist/mobjects/geometry/Dot.d.ts.map +1 -1
  131. package/dist/mobjects/geometry/Ellipse.d.ts +3 -47
  132. package/dist/mobjects/geometry/Ellipse.d.ts.map +1 -1
  133. package/dist/mobjects/geometry/LabeledGeometry.d.ts +5 -5
  134. package/dist/mobjects/geometry/LabeledGeometry.d.ts.map +1 -1
  135. package/dist/mobjects/geometry/Line.d.ts +15 -9
  136. package/dist/mobjects/geometry/Line.d.ts.map +1 -1
  137. package/dist/mobjects/geometry/Polygon.d.ts +1 -1
  138. package/dist/mobjects/geometry/Polygon.d.ts.map +1 -1
  139. package/dist/mobjects/geometry/PolygonExtensions.d.ts +11 -67
  140. package/dist/mobjects/geometry/PolygonExtensions.d.ts.map +1 -1
  141. package/dist/mobjects/geometry/Polygram.d.ts +1 -1
  142. package/dist/mobjects/geometry/Polygram.d.ts.map +1 -1
  143. package/dist/mobjects/geometry/Rectangle.d.ts +4 -5
  144. package/dist/mobjects/geometry/Rectangle.d.ts.map +1 -1
  145. package/dist/mobjects/geometry/Sector.d.ts +5 -69
  146. package/dist/mobjects/geometry/Sector.d.ts.map +1 -1
  147. package/dist/mobjects/geometry/ShapeMatchers.d.ts +6 -5
  148. package/dist/mobjects/geometry/ShapeMatchers.d.ts.map +1 -1
  149. package/dist/mobjects/geometry/TangentialArc.d.ts +1 -1
  150. package/dist/mobjects/geometry/TangentialArc.d.ts.map +1 -1
  151. package/dist/mobjects/geometry/segment.d.ts +24 -0
  152. package/dist/mobjects/geometry/segment.d.ts.map +1 -0
  153. package/dist/mobjects/graph/DiGraph.d.ts +1 -4
  154. package/dist/mobjects/graph/DiGraph.d.ts.map +1 -1
  155. package/dist/mobjects/graph/GenericGraph.d.ts +2 -1
  156. package/dist/mobjects/graph/GenericGraph.d.ts.map +1 -1
  157. package/dist/mobjects/graph/Graph.d.ts +1 -4
  158. package/dist/mobjects/graph/Graph.d.ts.map +1 -1
  159. package/dist/mobjects/graph/layoutAlgorithms.d.ts.map +1 -1
  160. package/dist/mobjects/graphing/Axes.d.ts +1 -4
  161. package/dist/mobjects/graphing/Axes.d.ts.map +1 -1
  162. package/dist/mobjects/graphing/BarChart.d.ts +1 -4
  163. package/dist/mobjects/graphing/BarChart.d.ts.map +1 -1
  164. package/dist/mobjects/graphing/ComplexPlane.d.ts +43 -9
  165. package/dist/mobjects/graphing/ComplexPlane.d.ts.map +1 -1
  166. package/dist/mobjects/graphing/FunctionGraph.d.ts +1 -4
  167. package/dist/mobjects/graphing/FunctionGraph.d.ts.map +1 -1
  168. package/dist/mobjects/graphing/ImplicitFunction.d.ts +1 -4
  169. package/dist/mobjects/graphing/ImplicitFunction.d.ts.map +1 -1
  170. package/dist/mobjects/graphing/NumberLine.d.ts +2 -8
  171. package/dist/mobjects/graphing/NumberLine.d.ts.map +1 -1
  172. package/dist/mobjects/graphing/NumberPlane.d.ts +1 -4
  173. package/dist/mobjects/graphing/NumberPlane.d.ts.map +1 -1
  174. package/dist/mobjects/graphing/ParametricFunction.d.ts +1 -4
  175. package/dist/mobjects/graphing/ParametricFunction.d.ts.map +1 -1
  176. package/dist/mobjects/graphing/Vector.d.ts +1 -4
  177. package/dist/mobjects/graphing/Vector.d.ts.map +1 -1
  178. package/dist/mobjects/graphing/VectorField.d.ts +3 -12
  179. package/dist/mobjects/graphing/VectorField.d.ts.map +1 -1
  180. package/dist/mobjects/image/index.d.ts +6 -4
  181. package/dist/mobjects/image/index.d.ts.map +1 -1
  182. package/dist/mobjects/matrix/Matrix.d.ts +4 -16
  183. package/dist/mobjects/matrix/Matrix.d.ts.map +1 -1
  184. package/dist/mobjects/point/Mobject1D.d.ts +1 -4
  185. package/dist/mobjects/point/Mobject1D.d.ts.map +1 -1
  186. package/dist/mobjects/point/Mobject2D.d.ts +1 -1
  187. package/dist/mobjects/point/Mobject2D.d.ts.map +1 -1
  188. package/dist/mobjects/point/PGroup.d.ts +2 -4
  189. package/dist/mobjects/point/PGroup.d.ts.map +1 -1
  190. package/dist/mobjects/point/PMobject.d.ts +49 -13
  191. package/dist/mobjects/point/PMobject.d.ts.map +1 -1
  192. package/dist/mobjects/point/PointCloudDot.d.ts +1 -4
  193. package/dist/mobjects/point/PointCloudDot.d.ts.map +1 -1
  194. package/dist/mobjects/point/PointMobject.d.ts +13 -17
  195. package/dist/mobjects/point/PointMobject.d.ts.map +1 -1
  196. package/dist/mobjects/probability/DiceFace.d.ts +1 -5
  197. package/dist/mobjects/probability/DiceFace.d.ts.map +1 -1
  198. package/dist/mobjects/probability/SampleSpace.d.ts +1 -5
  199. package/dist/mobjects/probability/SampleSpace.d.ts.map +1 -1
  200. package/dist/mobjects/svg/Brace.d.ts +5 -20
  201. package/dist/mobjects/svg/Brace.d.ts.map +1 -1
  202. package/dist/mobjects/svg/SVGMobject.d.ts +2 -2
  203. package/dist/mobjects/svg/SVGMobject.d.ts.map +1 -1
  204. package/dist/mobjects/table/Table.d.ts +1 -5
  205. package/dist/mobjects/table/Table.d.ts.map +1 -1
  206. package/dist/mobjects/text/Code.d.ts +1 -4
  207. package/dist/mobjects/text/Code.d.ts.map +1 -1
  208. package/dist/mobjects/text/CodeHighlighting.d.ts.map +1 -1
  209. package/dist/mobjects/text/CodeLanguageData.d.ts.map +1 -1
  210. package/dist/mobjects/text/DecimalNumber.d.ts +2 -8
  211. package/dist/mobjects/text/DecimalNumber.d.ts.map +1 -1
  212. package/dist/mobjects/text/GlyphVMobject.d.ts +1 -1
  213. package/dist/mobjects/text/GlyphVMobject.d.ts.map +1 -1
  214. package/dist/mobjects/text/MarkupText.d.ts +1 -1
  215. package/dist/mobjects/text/MarkupText.d.ts.map +1 -1
  216. package/dist/mobjects/text/MathJaxBundle.d.ts +7 -0
  217. package/dist/mobjects/text/MathJaxBundle.d.ts.map +1 -0
  218. package/dist/mobjects/text/MathJaxRenderer.d.ts +9 -0
  219. package/dist/mobjects/text/MathJaxRenderer.d.ts.map +1 -1
  220. package/dist/mobjects/text/MathTex.d.ts +17 -4
  221. package/dist/mobjects/text/MathTex.d.ts.map +1 -1
  222. package/dist/mobjects/text/MathTexImage.d.ts +19 -4
  223. package/dist/mobjects/text/MathTexImage.d.ts.map +1 -1
  224. package/dist/mobjects/text/Paragraph.d.ts +1 -1
  225. package/dist/mobjects/text/Paragraph.d.ts.map +1 -1
  226. package/dist/mobjects/text/Tex.d.ts +2 -5
  227. package/dist/mobjects/text/Tex.d.ts.map +1 -1
  228. package/dist/mobjects/text/Text.d.ts +17 -1
  229. package/dist/mobjects/text/Text.d.ts.map +1 -1
  230. package/dist/mobjects/text/TextExtensions.d.ts +3 -12
  231. package/dist/mobjects/text/TextExtensions.d.ts.map +1 -1
  232. package/dist/mobjects/text/TextGlyphGroup.d.ts.map +1 -1
  233. package/dist/mobjects/text/Variable.d.ts +2 -4
  234. package/dist/mobjects/text/Variable.d.ts.map +1 -1
  235. package/dist/mobjects/text/katexStyles.d.ts.map +1 -1
  236. package/dist/mobjects/text/svgPathParser.d.ts.map +1 -1
  237. package/dist/mobjects/three-d/Arrow3D.d.ts +4 -3
  238. package/dist/mobjects/three-d/Arrow3D.d.ts.map +1 -1
  239. package/dist/mobjects/three-d/ConvexHull3D.d.ts +4 -3
  240. package/dist/mobjects/three-d/ConvexHull3D.d.ts.map +1 -1
  241. package/dist/mobjects/three-d/Cube.d.ts +6 -11
  242. package/dist/mobjects/three-d/Cube.d.ts.map +1 -1
  243. package/dist/mobjects/three-d/Cylinder.d.ts +5 -10
  244. package/dist/mobjects/three-d/Cylinder.d.ts.map +1 -1
  245. package/dist/mobjects/three-d/Line3D.d.ts +14 -59
  246. package/dist/mobjects/three-d/Line3D.d.ts.map +1 -1
  247. package/dist/mobjects/three-d/Mobject3D.d.ts +19 -0
  248. package/dist/mobjects/three-d/Mobject3D.d.ts.map +1 -0
  249. package/dist/mobjects/three-d/ParametricSurface.d.ts +1 -1
  250. package/dist/mobjects/three-d/ParametricSurface.d.ts.map +1 -1
  251. package/dist/mobjects/three-d/Polyhedra.d.ts +7 -6
  252. package/dist/mobjects/three-d/Polyhedra.d.ts.map +1 -1
  253. package/dist/mobjects/three-d/Sphere.d.ts +4 -6
  254. package/dist/mobjects/three-d/Sphere.d.ts.map +1 -1
  255. package/dist/mobjects/three-d/Surface3D.d.ts +41 -4
  256. package/dist/mobjects/three-d/Surface3D.d.ts.map +1 -1
  257. package/dist/mobjects/three-d/TexturedSurface.d.ts +4 -3
  258. package/dist/mobjects/three-d/TexturedSurface.d.ts.map +1 -1
  259. package/dist/mobjects/three-d/ThreeDAxes.d.ts +1 -1
  260. package/dist/mobjects/three-d/ThreeDAxes.d.ts.map +1 -1
  261. package/dist/mobjects/three-d/ThreeDExtensions.d.ts +7 -15
  262. package/dist/mobjects/three-d/ThreeDExtensions.d.ts.map +1 -1
  263. package/dist/mobjects/three-d/Torus.d.ts +4 -6
  264. package/dist/mobjects/three-d/Torus.d.ts.map +1 -1
  265. package/dist/mobjects/three-d/index.d.ts +1 -0
  266. package/dist/mobjects/three-d/index.d.ts.map +1 -1
  267. package/dist/mobjects/value-tracker/ValueTracker.d.ts +4 -2
  268. package/dist/mobjects/value-tracker/ValueTracker.d.ts.map +1 -1
  269. package/dist/player/Player.d.ts +36 -29
  270. package/dist/player/Player.d.ts.map +1 -1
  271. package/dist/player/PlayerUI.d.ts.map +1 -1
  272. package/dist/player/RecordingScene.d.ts +37 -0
  273. package/dist/player/RecordingScene.d.ts.map +1 -0
  274. package/dist/{src-CW4pfZdP.js → src-Bm3ebFjQ.js} +11003 -8942
  275. package/dist/test-setup/vitest-setup.d.ts +20 -0
  276. package/dist/test-setup/vitest-setup.d.ts.map +1 -0
  277. package/dist/utils/axis.d.ts +4 -0
  278. package/dist/utils/axis.d.ts.map +1 -0
  279. package/dist/utils/logger.d.ts +37 -0
  280. package/dist/utils/logger.d.ts.map +1 -1
  281. package/dist/utils/math.d.ts +4 -0
  282. package/dist/utils/math.d.ts.map +1 -1
  283. package/dist/utils/vectors.d.ts +54 -1
  284. package/dist/utils/vectors.d.ts.map +1 -1
  285. package/package.json +13 -8
  286. package/dist/AmsConfiguration-BMyoprhk.js +0 -847
  287. package/dist/AmsConfiguration-BdxxYRby.js +0 -847
  288. package/dist/ConfigMacrosConfiguration-B8X_JSVI.js +0 -46
  289. package/dist/ConfigMacrosConfiguration-DUxp6DUV.js +0 -46
  290. package/dist/Entities-B1o7gN0J.js +0 -429
  291. package/dist/Entities-C82lnCux.js +0 -429
  292. package/dist/Factory-BKM7FEO-.js +0 -107
  293. package/dist/Factory-D-whCqrb.js +0 -107
  294. package/dist/GifExporter-BrxY_q7e.js +0 -338
  295. package/dist/GifExporter-S2pbxMc5.js +0 -338
  296. package/dist/HtmlNode-BLmQ2r7U.js +0 -981
  297. package/dist/HtmlNode-DXGeKrcW.js +0 -981
  298. package/dist/InputJax-DL9oUQY4.js +0 -41
  299. package/dist/InputJax-DnDWM3Y0.js +0 -41
  300. package/dist/NewcommandConfiguration-BPjclFig.js +0 -32
  301. package/dist/NewcommandConfiguration-bJ6P1rBY.js +0 -32
  302. package/dist/NewcommandMethods-C_E3iLoK.js +0 -187
  303. package/dist/NewcommandMethods-Cb7yFm5P.js +0 -187
  304. package/dist/Options-DRlTi0G8.js +0 -63
  305. package/dist/Options-XPptO-6X.js +0 -63
  306. package/dist/ParseMethods-BMPfzfQC.js +0 -2636
  307. package/dist/ParseMethods-D3_HeS1K.js +0 -2636
  308. package/dist/Styles-Dky5jZUe.js +0 -293
  309. package/dist/Styles-J-6R3Vr8.js +0 -293
  310. package/dist/VideoExporter-6ikT3u9H.js +0 -102
  311. package/dist/VideoExporter-D_RxVahH.js +0 -102
  312. package/dist/html-DU38zqaN.js +0 -829
  313. package/dist/html-DjkQuIHJ.js +0 -829
  314. package/dist/lengths-CP7zmbxJ.js +0 -54
  315. package/dist/lengths-D4tR1gYA.js +0 -54
  316. package/dist/liteAdaptor-BLgze3o2.js +0 -616
  317. package/dist/liteAdaptor-zXv-jsO1.js +0 -616
  318. package/dist/mathjax-7LgaTjtj.js +0 -121
  319. package/dist/mathjax-CoSFlQ0H.js +0 -121
  320. package/dist/mo-C5uLT3Z9.js +0 -2675
  321. package/dist/mo-CNYDGAsg.js +0 -2675
  322. package/dist/rolldown-runtime-DnwLefa7.js +0 -23
  323. package/dist/svg-CYweEoZ1.js +0 -28698
  324. package/dist/tex-C4_queV-.js +0 -1423
  325. package/dist/tex-CA5MLeEe.js +0 -1423
@@ -1,616 +0,0 @@
1
- import { o as e, t } from "./Options-XPptO-6X.js";
2
- import { r as n, t as r } from "./Styles-J-6R3Vr8.js";
3
- import { n as i } from "./Entities-B1o7gN0J.js";
4
- //#region node_modules/@mathjax/src/mjs/core/DOMAdaptor.js
5
- var a = class {
6
- constructor(e = null) {
7
- this.canMeasureNodes = !0, this.document = e;
8
- }
9
- node(e, t = {}, n = [], r) {
10
- let i = this.create(e, r);
11
- this.setAttributes(i, t);
12
- for (let e of n) this.append(i, e);
13
- return i;
14
- }
15
- setProperty(e, t, n) {
16
- e[t] = n;
17
- }
18
- getProperty(e, t) {
19
- return e[t];
20
- }
21
- setAttributes(e, t) {
22
- if (t.style && typeof t.style != "string") for (let n of Object.keys(t.style)) this.setStyle(e, n.replace(/-([a-z])/g, (e, t) => t.toUpperCase()), t.style[n]);
23
- if (t.properties) for (let n of Object.keys(t.properties)) e[n] = t.properties[n];
24
- for (let n of Object.keys(t)) (n !== "style" || typeof t.style == "string") && n !== "properties" && this.setAttribute(e, n, t[n]);
25
- }
26
- replace(e, t) {
27
- return this.insert(e, t), this.remove(t), t;
28
- }
29
- childNode(e, t) {
30
- return this.childNodes(e)[t];
31
- }
32
- allClasses(e) {
33
- let t = this.getAttribute(e, "class");
34
- return t ? t.replace(/ +/g, " ").replace(/^ /, "").replace(/ $/, "").split(/ /) : [];
35
- }
36
- cssText(e) {
37
- return this.kind(e) === "style" ? this.textContent(e) : "";
38
- }
39
- }, o = function(e, t, n, r) {
40
- function i(e) {
41
- return e instanceof n ? e : new n(function(t) {
42
- t(e);
43
- });
44
- }
45
- return new (n ||= Promise)(function(n, a) {
46
- function o(e) {
47
- try {
48
- c(r.next(e));
49
- } catch (e) {
50
- a(e);
51
- }
52
- }
53
- function s(e) {
54
- try {
55
- c(r.throw(e));
56
- } catch (e) {
57
- a(e);
58
- }
59
- }
60
- function c(e) {
61
- e.done ? n(e.value) : i(e.value).then(o, s);
62
- }
63
- c((r = r.apply(e, t || [])).next());
64
- });
65
- }, s = {
66
- badCSS: !0,
67
- badSizes: !0
68
- };
69
- function c(r, i = {}) {
70
- var a;
71
- return i = e(t({}, s), i), a = class extends r {
72
- constructor(...n) {
73
- super(n[0]), this.canMeasureNodes = !1;
74
- let r = this.constructor;
75
- this.options = e(t({}, r.OPTIONS), n[1]);
76
- }
77
- fontSize(e) {
78
- return i.badCSS ? this.options.fontSize : super.fontSize(e);
79
- }
80
- fontFamily(e) {
81
- return i.badCSS ? this.options.fontFamily : super.fontFamily(e);
82
- }
83
- nodeSize(e, t = 1, n = null) {
84
- if (!i.badSizes) return super.nodeSize(e, t, n);
85
- let r = this.textContent(e), o = Array.from(r.replace(a.cjkPattern, "")).length;
86
- return [(Array.from(r).length - o) * this.options.cjkCharWidth + o * this.options.unknownCharWidth, this.options.unknownCharHeight];
87
- }
88
- nodeBBox(e) {
89
- return i.badSizes ? {
90
- left: 0,
91
- right: 0,
92
- top: 0,
93
- bottom: 0
94
- } : super.nodeBBox(e);
95
- }
96
- createWorker(e, t) {
97
- return o(this, void 0, void 0, function* () {
98
- let { Worker: r } = yield n("node:worker_threads");
99
- class i {
100
- constructor(e, t = {}) {
101
- this.worker = new r(e, t);
102
- }
103
- addEventListener(e, t) {
104
- this.worker.on(e, t);
105
- }
106
- postMessage(e) {
107
- this.worker.postMessage({ data: e });
108
- }
109
- terminate() {
110
- this.worker.terminate();
111
- }
112
- }
113
- let { path: a, maps: o } = t, s = new i(`${a}/${t.worker}`, {
114
- type: "module",
115
- workerData: { maps: o }
116
- });
117
- return s.addEventListener("message", e), s;
118
- });
119
- }
120
- }, a.OPTIONS = Object.assign(Object.assign({}, i.badCSS ? {
121
- fontSize: 16,
122
- fontFamily: "Times"
123
- } : {}), i.badSizes ? {
124
- cjkCharWidth: 1,
125
- unknownCharWidth: .6,
126
- unknownCharHeight: .8
127
- } : {}), a.cjkPattern = new RegExp([
128
- "[",
129
- "ᄀ-ᅟ",
130
- "〈〉",
131
- "⺀-〾",
132
- "぀-㉇",
133
- "㉐-䶿",
134
- "一-꓆",
135
- "ꥠ-ꥼ",
136
- "가-힣",
137
- "豈-﫿",
138
- "︐-︙",
139
- "︰-﹫",
140
- "!-⦆¢-₩",
141
- "𛀀-𛀁",
142
- "🈀-🉑",
143
- "𠀀-𿿽",
144
- "]"
145
- ].join(""), "gu"), a;
146
- }
147
- //#endregion
148
- //#region node_modules/@mathjax/src/mjs/adaptors/lite/Element.js
149
- var l = class {
150
- constructor(e, t = {}, n = []) {
151
- this.kind = e, this.attributes = Object.assign({}, t), this.children = [...n];
152
- for (let e of this.children) e.parent = this;
153
- this.styles = null;
154
- }
155
- }, u = class {
156
- get kind() {
157
- return "#document";
158
- }
159
- constructor(e = null) {
160
- this.defaultView = null, this.root = new l("html", {}, [this.head = new l("head"), this.body = new l("body")]), this.type = "", this.defaultView = e;
161
- }
162
- }, d = class {
163
- get kind() {
164
- return "#text";
165
- }
166
- constructor(e = "") {
167
- this.value = e;
168
- }
169
- }, f = class extends d {
170
- get kind() {
171
- return "#comment";
172
- }
173
- }, p = class {
174
- constructor(e) {
175
- this.nodes = [], this.nodes = [...e];
176
- }
177
- append(e) {
178
- this.nodes.push(e);
179
- }
180
- [Symbol.iterator]() {
181
- let e = 0;
182
- return { next() {
183
- return e === this.nodes.length ? {
184
- value: null,
185
- done: !0
186
- } : {
187
- value: this.nodes[e++],
188
- done: !1
189
- };
190
- } };
191
- }
192
- }, m = "[ \\n]+", h = "[ \\n]*", g = "[A-Za-z][^\0- \"'>/=-Ÿ]*", _ = "[^\0- \"'>/=-Ÿ]+", v = `(?:'[^']*'|"[^"]*"|${m})`, y = `(?:'([^']*)'|"([^"]*)"|(${m}))`, b = `${_}(?:${h}=${h}${v})?`, x = `(${_})(?:${h}=${h}${y})?`, S = `(<(?:${g}(?:${m}${b})*${h}/?|/${g}|!--[^]*?--|![^]*?)(?:>|$))`, C = {
193
- tag: new RegExp(S, "u"),
194
- attr: new RegExp(b, "u"),
195
- attrsplit: new RegExp(x, "u")
196
- }, w = class {
197
- parseFromString(e, t = "text/html", n = null) {
198
- let r = n.createDocument(), i = n.body(r), a = e.replace(/<\?.*?\?>/g, "").split(C.tag);
199
- for (; a.length;) {
200
- let e = a.shift(), t = a.shift();
201
- e && this.addText(n, i, e), t && t.charAt(t.length - 1) === ">" && (t.charAt(1) === "!" ? this.addComment(n, i, t) : i = t.charAt(1) === "/" ? this.closeTag(n, i, t) : this.openTag(n, i, t, a));
202
- }
203
- return this.checkDocument(n, r), r;
204
- }
205
- addText(e, t, n) {
206
- return n = i(n), e.append(t, e.text(n));
207
- }
208
- addComment(e, t, n) {
209
- return e.append(t, new f(n));
210
- }
211
- closeTag(e, t, n) {
212
- let r = n.slice(2, n.length - 1).toLowerCase();
213
- for (; e.parent(t) && e.kind(t) !== r;) t = e.parent(t);
214
- return e.parent(t);
215
- }
216
- openTag(e, t, n, r) {
217
- let 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(C.attrsplit);
218
- 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;
219
- }
220
- addAttributes(e, t, n) {
221
- for (; n.length;) {
222
- let [, r, a, o, s] = n.splice(0, 5), c = i(a || o || s || "");
223
- e.setAttribute(t, r, c);
224
- }
225
- }
226
- handlePCDATA(e, t, n, r) {
227
- let i = [], a = "</" + n + ">", o = "";
228
- for (; r.length && o !== a;) i.push(o), i.push(r.shift()), o = r.shift();
229
- e.append(t, e.text(i.join("")));
230
- }
231
- checkDocument(e, t) {
232
- let n = this.getOnlyChild(e, e.body(t));
233
- if (n) {
234
- for (let r of e.childNodes(e.body(t))) {
235
- if (r === n) break;
236
- r instanceof f && r.value.match(/^<!DOCTYPE/) && (t.type = r.value);
237
- }
238
- switch (e.kind(n)) {
239
- case "html":
240
- for (let r of n.children) switch (e.kind(r)) {
241
- case "head":
242
- t.head = r;
243
- break;
244
- case "body":
245
- t.body = r;
246
- break;
247
- }
248
- t.root = n, e.remove(n), e.parent(t.body) !== n && e.append(n, t.body), e.parent(t.head) !== n && e.insert(t.head, t.body);
249
- break;
250
- case "head":
251
- t.head = e.replace(n, t.head);
252
- break;
253
- case "body":
254
- t.body = e.replace(n, t.body);
255
- break;
256
- }
257
- }
258
- }
259
- getOnlyChild(e, t) {
260
- let n = null;
261
- for (let r of e.childNodes(t)) if (r instanceof l) {
262
- if (n) return null;
263
- n = r;
264
- }
265
- return n;
266
- }
267
- serialize(e, t, n = !1) {
268
- let r = this.constructor.SELF_CLOSING, i = e.kind(t), a = this.allAttributes(e, t, n).map((e) => e.name + "=\"" + this.protectAttribute(e.value, n) + "\"").join(" "), o = this.serializeInner(e, t, n);
269
- return `<${i}` + (a ? " " + a : "") + ((!n || o) && !r[i] ? `>${o}</${i}>` : n ? "/>" : ">");
270
- }
271
- serializeInner(e, t, n = !1) {
272
- let r = this.constructor.PCDATA;
273
- return Object.hasOwn(r, t.kind) ? e.childNodes(t).map((t) => e.value(t)).join("") : e.childNodes(t).map((t) => {
274
- let r = e.kind(t);
275
- return r === "#text" ? this.protectHTML(e.value(t)) : r === "#comment" ? t.value : this.serialize(e, t, n);
276
- }).join("");
277
- }
278
- allAttributes(e, t, n) {
279
- let r = e.allAttributes(t);
280
- if (!n) return r;
281
- let i = e.kind(t), a = this.constructor.XMLNS;
282
- if (!Object.hasOwn(a, i)) return r;
283
- for (let { name: e } of r) if (e === "xmlns") return r;
284
- return r.push({
285
- name: "xmlns",
286
- value: a[i]
287
- }), r;
288
- }
289
- protectAttribute(e, t) {
290
- return typeof e != "string" && (e = String(e)), e = e.replace(/&/g, "&amp;").replace(/"/g, "&quot;"), t && (e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;")), e;
291
- }
292
- protectHTML(e) {
293
- return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
294
- }
295
- };
296
- w.SELF_CLOSING = {
297
- area: !0,
298
- base: !0,
299
- br: !0,
300
- col: !0,
301
- command: !0,
302
- embed: !0,
303
- hr: !0,
304
- img: !0,
305
- input: !0,
306
- keygen: !0,
307
- link: !0,
308
- menuitem: !0,
309
- meta: !0,
310
- param: !0,
311
- source: !0,
312
- track: !0,
313
- wbr: !0
314
- }, w.PCDATA = {
315
- option: !0,
316
- textarea: !0,
317
- fieldset: !0,
318
- title: !0,
319
- style: !0,
320
- script: !0
321
- }, w.XMLNS = {
322
- svg: "http://www.w3.org/2000/svg",
323
- math: "http://www.w3.org/1998/Math/MathML",
324
- html: "http://www.w3.org/1999/xhtml"
325
- };
326
- //#endregion
327
- //#region node_modules/@mathjax/src/mjs/adaptors/lite/Window.js
328
- var T = class {
329
- constructor() {
330
- this.DOMParser = w, this.NodeList = p, this.HTMLCollection = p, this.HTMLElement = l, this.DocumentFragment = p, this.Document = u, this.document = new u(this);
331
- }
332
- }, E = function(e, t, n, r) {
333
- function i(e) {
334
- return e instanceof n ? e : new n(function(t) {
335
- t(e);
336
- });
337
- }
338
- return new (n ||= Promise)(function(n, a) {
339
- function o(e) {
340
- try {
341
- c(r.next(e));
342
- } catch (e) {
343
- a(e);
344
- }
345
- }
346
- function s(e) {
347
- try {
348
- c(r.throw(e));
349
- } catch (e) {
350
- a(e);
351
- }
352
- }
353
- function c(e) {
354
- e.done ? n(e.value) : i(e.value).then(o, s);
355
- }
356
- c((r = r.apply(e, t || [])).next());
357
- });
358
- }, D = class extends a {
359
- constructor() {
360
- super(), this.parser = new w(), this.window = new T();
361
- }
362
- parse(e, t) {
363
- return this.parser.parseFromString(e, t, this);
364
- }
365
- create(e, t = null) {
366
- return new l(e);
367
- }
368
- text(e) {
369
- return new d(e);
370
- }
371
- comment(e) {
372
- return new f(e);
373
- }
374
- createDocument() {
375
- return new u();
376
- }
377
- head(e = this.document) {
378
- return e.head;
379
- }
380
- body(e = this.document) {
381
- return e.body;
382
- }
383
- root(e = this.document) {
384
- return e.root;
385
- }
386
- doctype(e = this.document) {
387
- return e.type;
388
- }
389
- tags(e, t, n = null, r = null) {
390
- let i = [], a = [];
391
- if (n) return a;
392
- let o = e;
393
- for (; o;) {
394
- let e = o.kind;
395
- if (e !== "#text" && e !== "#comment") {
396
- if (o = o, e === t && (a.push(o), a.length === r)) return a;
397
- o.children.length && (i = o.children.concat(i));
398
- }
399
- o = i.shift();
400
- }
401
- return a;
402
- }
403
- elementById(e, t) {
404
- let n = [], r = e;
405
- for (; r;) {
406
- if (r.kind !== "#text" && r.kind !== "#comment") {
407
- if (r = r, r.attributes.id === t) return r;
408
- r.children.length && (n = r.children.concat(n));
409
- }
410
- r = n.shift();
411
- }
412
- return null;
413
- }
414
- elementsByClass(e, t, n = null) {
415
- let r = [], i = [], a = e;
416
- for (; a;) {
417
- if (a.kind !== "#text" && a.kind !== "#comment") {
418
- if (a = a, (a.attributes.class || "").trim().split(/ +/).includes(t) && (i.push(a), i.length === n)) return i;
419
- a.children.length && (r = a.children.concat(r));
420
- }
421
- a = r.shift();
422
- }
423
- return i;
424
- }
425
- elementsByAttribute(e, t, n, r = null) {
426
- let i = [], a = [], o = e;
427
- for (; o;) {
428
- if (o.kind !== "#text" && o.kind !== "#comment") {
429
- if (o = o, o.attributes[t] === n && (a.push(o), a.length === r)) return a;
430
- o.children.length && (i = o.children.concat(i));
431
- }
432
- o = i.shift();
433
- }
434
- return a;
435
- }
436
- getElements(e, t) {
437
- let n = [], r = this.body(t);
438
- for (let t of e) if (typeof t == "string") if (t.charAt(0) === "#") {
439
- let e = this.elementById(r, t.slice(1));
440
- e && n.push(e);
441
- } else if (t.charAt(0) === ".") n = n.concat(this.elementsByClass(r, t.slice(1)));
442
- else if (t.match(/^[-a-z][-a-z0-9]*$/i)) n = n.concat(this.tags(r, t));
443
- else {
444
- let e = t.match(/^\[(.*?)="(.*?)"\]$/);
445
- e && (n = n.concat(this.elementsByAttribute(r, e[1], e[2])));
446
- }
447
- else Array.isArray(t) ? n = n.concat(t) : t instanceof this.window.NodeList || t instanceof this.window.HTMLCollection ? n = n.concat(t.nodes) : n.push(t);
448
- return n;
449
- }
450
- getElement(e, t = this.document) {
451
- if (t instanceof u && (t = this.body(t)), e.charAt(0) === "#") return this.elementById(t, e.slice(1));
452
- if (e.charAt(0) === ".") return this.elementsByClass(t, e.slice(1), 1)[0];
453
- if (e.match(/^[-a-z][-a-z0-9]*$/i)) return this.tags(t, e, null, 1)[0];
454
- let n = e.match(/^\[(.*?)="(.*?)"\]$/);
455
- return n ? this.elementsByAttribute(t, n[1], n[2], 1)[0] : null;
456
- }
457
- contains(e, t) {
458
- for (; t && t !== e;) t = this.parent(t);
459
- return !!t;
460
- }
461
- parent(e) {
462
- return e.parent;
463
- }
464
- childIndex(e) {
465
- return e.parent ? e.parent.children.findIndex((t) => t === e) : -1;
466
- }
467
- append(e, t) {
468
- return t.parent && this.remove(t), e.children.push(t), t.parent = e, t;
469
- }
470
- insert(e, t) {
471
- if (e.parent && this.remove(e), t && t.parent) {
472
- let n = this.childIndex(t);
473
- t.parent.children.splice(n, 0, e), e.parent = t.parent;
474
- }
475
- }
476
- remove(e) {
477
- let t = this.childIndex(e);
478
- return t >= 0 && e.parent.children.splice(t, 1), e.parent = null, e;
479
- }
480
- replace(e, t) {
481
- let n = this.childIndex(t);
482
- return n >= 0 && (t.parent.children[n] = e, e.parent = t.parent, t.parent = null), t;
483
- }
484
- clone(e, t = !0) {
485
- let n = new l(e.kind);
486
- return n.attributes = Object.assign({}, e.attributes), n.children = t ? e.children.map((e) => {
487
- if (e.kind === "#text") return new d(e.value);
488
- if (e.kind === "#comment") return new f(e.value);
489
- {
490
- let t = this.clone(e);
491
- return t.parent = n, t;
492
- }
493
- }) : [], n;
494
- }
495
- split(e, t) {
496
- let n = new d(e.value.slice(t));
497
- return e.value = e.value.slice(0, t), e.parent.children.splice(this.childIndex(e) + 1, 0, n), n.parent = e.parent, n;
498
- }
499
- next(e) {
500
- let t = e.parent;
501
- if (!t) return null;
502
- let n = this.childIndex(e) + 1;
503
- return n >= 0 && n < t.children.length ? t.children[n] : null;
504
- }
505
- previous(e) {
506
- let t = e.parent;
507
- if (!t) return null;
508
- let n = this.childIndex(e) - 1;
509
- return n >= 0 ? t.children[n] : null;
510
- }
511
- firstChild(e) {
512
- return e.children[0];
513
- }
514
- lastChild(e) {
515
- return e.children[e.children.length - 1];
516
- }
517
- childNodes(e) {
518
- return [...e.children];
519
- }
520
- childNode(e, t) {
521
- return e.children[t];
522
- }
523
- kind(e) {
524
- return e.kind;
525
- }
526
- value(e) {
527
- return e.kind === "#text" ? e.value : e.kind === "#comment" ? e.value.replace(/^<!(--)?((?:.|\n)*)\1>$/, "$2") : "";
528
- }
529
- textContent(e) {
530
- return e.children.reduce((e, t) => e + (t.kind === "#text" ? t.value : t.kind === "#comment" ? "" : this.textContent(t)), "");
531
- }
532
- innerHTML(e) {
533
- return this.parser.serializeInner(this, e);
534
- }
535
- outerHTML(e) {
536
- return this.parser.serialize(this, e);
537
- }
538
- serializeXML(e) {
539
- return this.parser.serialize(this, e, !0);
540
- }
541
- setAttribute(e, t, n, r = null) {
542
- typeof n != "string" && (n = String(n)), r && (t = r.replace(/.*\//, "") + ":" + t.replace(/^.*:/, "")), e.attributes[t] = n, t === "style" && (e.styles = null);
543
- }
544
- getAttribute(e, t) {
545
- return e.attributes[t];
546
- }
547
- removeAttribute(e, t) {
548
- delete e.attributes[t];
549
- }
550
- hasAttribute(e, t) {
551
- return Object.hasOwn(e.attributes, t);
552
- }
553
- allAttributes(e) {
554
- let t = e.attributes, n = [];
555
- for (let e of Object.keys(t)) n.push({
556
- name: e,
557
- value: t[e]
558
- });
559
- return n;
560
- }
561
- addClass(e, t) {
562
- let n = e.attributes.class?.split(/ /) || [];
563
- n.includes(t) || (n.push(t), e.attributes.class = n.join(" "));
564
- }
565
- removeClass(e, t) {
566
- let n = e.attributes.class?.split(/ /) || [], r = n.indexOf(t);
567
- r >= 0 && (n.splice(r, 1), e.attributes.class = n.join(" "));
568
- }
569
- hasClass(e, t) {
570
- return (e.attributes.class || "").split(/ /).includes(t);
571
- }
572
- setStyle(e, t, n) {
573
- e.styles ||= new r(this.getAttribute(e, "style")), e.styles.set(t, n), e.attributes.style = e.styles.cssText;
574
- }
575
- getStyle(e, t) {
576
- if (!e.styles) {
577
- let t = this.getAttribute(e, "style");
578
- if (!t) return "";
579
- e.styles = new r(t);
580
- }
581
- return e.styles.get(t);
582
- }
583
- allStyles(e) {
584
- return this.getAttribute(e, "style");
585
- }
586
- insertRules(e, t) {
587
- e.children = [this.text(this.textContent(e) + "\n\n" + t.join("\n\n"))];
588
- }
589
- fontSize(e) {
590
- return 0;
591
- }
592
- fontFamily(e) {
593
- return "";
594
- }
595
- nodeSize(e, t = 1, n = null) {
596
- return [0, 0];
597
- }
598
- nodeBBox(e) {
599
- return {
600
- left: 0,
601
- right: 0,
602
- top: 0,
603
- bottom: 0
604
- };
605
- }
606
- createWorker() {
607
- return E(this, void 0, void 0, function* () {
608
- return null;
609
- });
610
- }
611
- }, O = class extends c(D) {};
612
- function k(e = null) {
613
- return new O(null, e);
614
- }
615
- //#endregion
616
- export { k as liteAdaptor };