discourse_math_bundle 1.0.0

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 (248) hide show
  1. checksums.yaml +7 -0
  2. data/lib/discourse_math_bundle/version.rb +7 -0
  3. data/lib/discourse_math_bundle.rb +55 -0
  4. data/vendor/assets/katex/contrib/copy-tex.min.js +1 -0
  5. data/vendor/assets/katex/contrib/mhchem.min.js +1 -0
  6. data/vendor/assets/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
  7. data/vendor/assets/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  8. data/vendor/assets/katex/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  9. data/vendor/assets/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  10. data/vendor/assets/katex/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  11. data/vendor/assets/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  12. data/vendor/assets/katex/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  13. data/vendor/assets/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  14. data/vendor/assets/katex/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  15. data/vendor/assets/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  16. data/vendor/assets/katex/fonts/KaTeX_Main-Bold.woff +0 -0
  17. data/vendor/assets/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
  18. data/vendor/assets/katex/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  19. data/vendor/assets/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  20. data/vendor/assets/katex/fonts/KaTeX_Main-Italic.woff +0 -0
  21. data/vendor/assets/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
  22. data/vendor/assets/katex/fonts/KaTeX_Main-Regular.woff +0 -0
  23. data/vendor/assets/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
  24. data/vendor/assets/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  25. data/vendor/assets/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  26. data/vendor/assets/katex/fonts/KaTeX_Math-Italic.woff +0 -0
  27. data/vendor/assets/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
  28. data/vendor/assets/katex/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  29. data/vendor/assets/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  30. data/vendor/assets/katex/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  31. data/vendor/assets/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  32. data/vendor/assets/katex/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  33. data/vendor/assets/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  34. data/vendor/assets/katex/fonts/KaTeX_Script-Regular.woff +0 -0
  35. data/vendor/assets/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
  36. data/vendor/assets/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
  37. data/vendor/assets/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  38. data/vendor/assets/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
  39. data/vendor/assets/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  40. data/vendor/assets/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
  41. data/vendor/assets/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  42. data/vendor/assets/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
  43. data/vendor/assets/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  44. data/vendor/assets/katex/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  45. data/vendor/assets/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  46. data/vendor/assets/katex/katex.min.css +1 -0
  47. data/vendor/assets/katex/katex.min.js +1 -0
  48. data/vendor/assets/mathjax/a11y/assistive-mml.js +1 -0
  49. data/vendor/assets/mathjax/a11y/complexity.js +1 -0
  50. data/vendor/assets/mathjax/a11y/explorer.js +1 -0
  51. data/vendor/assets/mathjax/a11y/semantic-enrich.js +1 -0
  52. data/vendor/assets/mathjax/a11y/speech.js +1 -0
  53. data/vendor/assets/mathjax/a11y/sre.js +1 -0
  54. data/vendor/assets/mathjax/adaptors/jsdom.js +1 -0
  55. data/vendor/assets/mathjax/adaptors/linkedom.js +1 -0
  56. data/vendor/assets/mathjax/adaptors/liteDOM.js +1 -0
  57. data/vendor/assets/mathjax/core.js +1 -0
  58. data/vendor/assets/mathjax/input/asciimath.js +1 -0
  59. data/vendor/assets/mathjax/input/mml/entities.js +1 -0
  60. data/vendor/assets/mathjax/input/mml/extensions/mml3.js +1 -0
  61. data/vendor/assets/mathjax/input/mml/extensions/mml3.sef.json +1 -0
  62. data/vendor/assets/mathjax/input/mml.js +1 -0
  63. data/vendor/assets/mathjax/input/tex/extensions/action.js +1 -0
  64. data/vendor/assets/mathjax/input/tex/extensions/ams.js +1 -0
  65. data/vendor/assets/mathjax/input/tex/extensions/amscd.js +1 -0
  66. data/vendor/assets/mathjax/input/tex/extensions/autoload.js +1 -0
  67. data/vendor/assets/mathjax/input/tex/extensions/bbm.js +1 -0
  68. data/vendor/assets/mathjax/input/tex/extensions/bboldx.js +1 -0
  69. data/vendor/assets/mathjax/input/tex/extensions/bbox.js +1 -0
  70. data/vendor/assets/mathjax/input/tex/extensions/begingroup.js +1 -0
  71. data/vendor/assets/mathjax/input/tex/extensions/boldsymbol.js +1 -0
  72. data/vendor/assets/mathjax/input/tex/extensions/braket.js +1 -0
  73. data/vendor/assets/mathjax/input/tex/extensions/bussproofs.js +1 -0
  74. data/vendor/assets/mathjax/input/tex/extensions/cancel.js +1 -0
  75. data/vendor/assets/mathjax/input/tex/extensions/cases.js +1 -0
  76. data/vendor/assets/mathjax/input/tex/extensions/centernot.js +1 -0
  77. data/vendor/assets/mathjax/input/tex/extensions/color.js +1 -0
  78. data/vendor/assets/mathjax/input/tex/extensions/colortbl.js +1 -0
  79. data/vendor/assets/mathjax/input/tex/extensions/colorv2.js +1 -0
  80. data/vendor/assets/mathjax/input/tex/extensions/configmacros.js +1 -0
  81. data/vendor/assets/mathjax/input/tex/extensions/dsfont.js +1 -0
  82. data/vendor/assets/mathjax/input/tex/extensions/empheq.js +1 -0
  83. data/vendor/assets/mathjax/input/tex/extensions/enclose.js +1 -0
  84. data/vendor/assets/mathjax/input/tex/extensions/extpfeil.js +1 -0
  85. data/vendor/assets/mathjax/input/tex/extensions/gensymb.js +1 -0
  86. data/vendor/assets/mathjax/input/tex/extensions/html.js +1 -0
  87. data/vendor/assets/mathjax/input/tex/extensions/mathtools.js +1 -0
  88. data/vendor/assets/mathjax/input/tex/extensions/mhchem.js +34 -0
  89. data/vendor/assets/mathjax/input/tex/extensions/newcommand.js +1 -0
  90. data/vendor/assets/mathjax/input/tex/extensions/noerrors.js +1 -0
  91. data/vendor/assets/mathjax/input/tex/extensions/noundefined.js +1 -0
  92. data/vendor/assets/mathjax/input/tex/extensions/physics.js +1 -0
  93. data/vendor/assets/mathjax/input/tex/extensions/require.js +1 -0
  94. data/vendor/assets/mathjax/input/tex/extensions/setoptions.js +1 -0
  95. data/vendor/assets/mathjax/input/tex/extensions/tagformat.js +1 -0
  96. data/vendor/assets/mathjax/input/tex/extensions/texhtml.js +1 -0
  97. data/vendor/assets/mathjax/input/tex/extensions/textcomp.js +1 -0
  98. data/vendor/assets/mathjax/input/tex/extensions/textmacros.js +1 -0
  99. data/vendor/assets/mathjax/input/tex/extensions/unicode.js +1 -0
  100. data/vendor/assets/mathjax/input/tex/extensions/units.js +1 -0
  101. data/vendor/assets/mathjax/input/tex/extensions/upgreek.js +1 -0
  102. data/vendor/assets/mathjax/input/tex/extensions/verb.js +1 -0
  103. data/vendor/assets/mathjax/input/tex-base.js +1 -0
  104. data/vendor/assets/mathjax/input/tex.js +1 -0
  105. data/vendor/assets/mathjax/loader.js +1 -0
  106. data/vendor/assets/mathjax/mml-chtml-nofont.js +1 -0
  107. data/vendor/assets/mathjax/mml-chtml.js +1 -0
  108. data/vendor/assets/mathjax/mml-svg-nofont.js +1 -0
  109. data/vendor/assets/mathjax/mml-svg.js +1 -0
  110. data/vendor/assets/mathjax/output/chtml.js +1 -0
  111. data/vendor/assets/mathjax/output/svg.js +1 -0
  112. data/vendor/assets/mathjax/sre/mathmaps/af.json +146 -0
  113. data/vendor/assets/mathjax/sre/mathmaps/base.json +137 -0
  114. data/vendor/assets/mathjax/sre/mathmaps/ca.json +140 -0
  115. data/vendor/assets/mathjax/sre/mathmaps/da.json +140 -0
  116. data/vendor/assets/mathjax/sre/mathmaps/de.json +146 -0
  117. data/vendor/assets/mathjax/sre/mathmaps/en.json +158 -0
  118. data/vendor/assets/mathjax/sre/mathmaps/es.json +140 -0
  119. data/vendor/assets/mathjax/sre/mathmaps/euro.json +32 -0
  120. data/vendor/assets/mathjax/sre/mathmaps/fr.json +146 -0
  121. data/vendor/assets/mathjax/sre/mathmaps/hi.json +146 -0
  122. data/vendor/assets/mathjax/sre/mathmaps/it.json +146 -0
  123. data/vendor/assets/mathjax/sre/mathmaps/ko.json +146 -0
  124. data/vendor/assets/mathjax/sre/mathmaps/nb.json +146 -0
  125. data/vendor/assets/mathjax/sre/mathmaps/nemeth.json +125 -0
  126. data/vendor/assets/mathjax/sre/mathmaps/nn.json +146 -0
  127. data/vendor/assets/mathjax/sre/mathmaps/sv.json +146 -0
  128. data/vendor/assets/mathjax/sre/require.d.mts +1 -0
  129. data/vendor/assets/mathjax/sre/require.mjs +2 -0
  130. data/vendor/assets/mathjax/sre/speech-worker.js +1 -0
  131. data/vendor/assets/mathjax/startup.js +1 -0
  132. data/vendor/assets/mathjax/tex-chtml-nofont.js +1 -0
  133. data/vendor/assets/mathjax/tex-chtml.js +1 -0
  134. data/vendor/assets/mathjax/tex-mml-chtml-nofont.js +1 -0
  135. data/vendor/assets/mathjax/tex-mml-chtml.js +1 -0
  136. data/vendor/assets/mathjax/tex-mml-svg-nofont.js +1 -0
  137. data/vendor/assets/mathjax/tex-mml-svg.js +1 -0
  138. data/vendor/assets/mathjax/tex-svg-nofont.js +1 -0
  139. data/vendor/assets/mathjax/tex-svg.js +1 -0
  140. data/vendor/assets/mathjax/ui/lazy.js +1 -0
  141. data/vendor/assets/mathjax/ui/menu.js +1 -0
  142. data/vendor/assets/mathjax/ui/safe.js +1 -0
  143. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ab.woff2 +0 -0
  144. data/vendor/assets/mathjax/woff-v2/mjx-ncm-abi.woff2 +0 -0
  145. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ai.woff2 +0 -0
  146. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ar.woff2 +0 -0
  147. data/vendor/assets/mathjax/woff-v2/mjx-ncm-arl.woff2 +0 -0
  148. data/vendor/assets/mathjax/woff-v2/mjx-ncm-b-a.woff2 +0 -0
  149. data/vendor/assets/mathjax/woff-v2/mjx-ncm-b.woff2 +0 -0
  150. data/vendor/assets/mathjax/woff-v2/mjx-ncm-bi.woff2 +0 -0
  151. data/vendor/assets/mathjax/woff-v2/mjx-ncm-br.woff2 +0 -0
  152. data/vendor/assets/mathjax/woff-v2/mjx-ncm-brd.woff2 +0 -0
  153. data/vendor/assets/mathjax/woff-v2/mjx-ncm-brk.woff2 +0 -0
  154. data/vendor/assets/mathjax/woff-v2/mjx-ncm-c.woff2 +0 -0
  155. data/vendor/assets/mathjax/woff-v2/mjx-ncm-cb.woff2 +0 -0
  156. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ch.woff2 +0 -0
  157. data/vendor/assets/mathjax/woff-v2/mjx-ncm-chb.woff2 +0 -0
  158. data/vendor/assets/mathjax/woff-v2/mjx-ncm-chbi.woff2 +0 -0
  159. data/vendor/assets/mathjax/woff-v2/mjx-ncm-chi.woff2 +0 -0
  160. data/vendor/assets/mathjax/woff-v2/mjx-ncm-cy.woff2 +0 -0
  161. data/vendor/assets/mathjax/woff-v2/mjx-ncm-cyb.woff2 +0 -0
  162. data/vendor/assets/mathjax/woff-v2/mjx-ncm-cybi.woff2 +0 -0
  163. data/vendor/assets/mathjax/woff-v2/mjx-ncm-cyi.woff2 +0 -0
  164. data/vendor/assets/mathjax/woff-v2/mjx-ncm-cyss.woff2 +0 -0
  165. data/vendor/assets/mathjax/woff-v2/mjx-ncm-cyssb.woff2 +0 -0
  166. data/vendor/assets/mathjax/woff-v2/mjx-ncm-cyssbi.woff2 +0 -0
  167. data/vendor/assets/mathjax/woff-v2/mjx-ncm-cyssi.woff2 +0 -0
  168. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ds.woff2 +0 -0
  169. data/vendor/assets/mathjax/woff-v2/mjx-ncm-dv.woff2 +0 -0
  170. data/vendor/assets/mathjax/woff-v2/mjx-ncm-em.woff2 +0 -0
  171. data/vendor/assets/mathjax/woff-v2/mjx-ncm-f.woff2 +0 -0
  172. data/vendor/assets/mathjax/woff-v2/mjx-ncm-fb.woff2 +0 -0
  173. data/vendor/assets/mathjax/woff-v2/mjx-ncm-gk.woff2 +0 -0
  174. data/vendor/assets/mathjax/woff-v2/mjx-ncm-gkb.woff2 +0 -0
  175. data/vendor/assets/mathjax/woff-v2/mjx-ncm-gkbi.woff2 +0 -0
  176. data/vendor/assets/mathjax/woff-v2/mjx-ncm-gki.woff2 +0 -0
  177. data/vendor/assets/mathjax/woff-v2/mjx-ncm-gkss.woff2 +0 -0
  178. data/vendor/assets/mathjax/woff-v2/mjx-ncm-gkssb.woff2 +0 -0
  179. data/vendor/assets/mathjax/woff-v2/mjx-ncm-gkssbi.woff2 +0 -0
  180. data/vendor/assets/mathjax/woff-v2/mjx-ncm-gkssi.woff2 +0 -0
  181. data/vendor/assets/mathjax/woff-v2/mjx-ncm-he.woff2 +0 -0
  182. data/vendor/assets/mathjax/woff-v2/mjx-ncm-heb.woff2 +0 -0
  183. data/vendor/assets/mathjax/woff-v2/mjx-ncm-hebi.woff2 +0 -0
  184. data/vendor/assets/mathjax/woff-v2/mjx-ncm-hei.woff2 +0 -0
  185. data/vendor/assets/mathjax/woff-v2/mjx-ncm-i.woff2 +0 -0
  186. data/vendor/assets/mathjax/woff-v2/mjx-ncm-lb.woff2 +0 -0
  187. data/vendor/assets/mathjax/woff-v2/mjx-ncm-li.woff2 +0 -0
  188. data/vendor/assets/mathjax/woff-v2/mjx-ncm-lib.woff2 +0 -0
  189. data/vendor/assets/mathjax/woff-v2/mjx-ncm-lo.woff2 +0 -0
  190. data/vendor/assets/mathjax/woff-v2/mjx-ncm-lr.woff2 +0 -0
  191. data/vendor/assets/mathjax/woff-v2/mjx-ncm-lt.woff2 +0 -0
  192. data/vendor/assets/mathjax/woff-v2/mjx-ncm-m.woff2 +0 -0
  193. data/vendor/assets/mathjax/woff-v2/mjx-ncm-mar.woff2 +0 -0
  194. data/vendor/assets/mathjax/woff-v2/mjx-ncm-mi.woff2 +0 -0
  195. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ml.woff2 +0 -0
  196. data/vendor/assets/mathjax/woff-v2/mjx-ncm-mm.woff2 +0 -0
  197. data/vendor/assets/mathjax/woff-v2/mjx-ncm-msh.woff2 +0 -0
  198. data/vendor/assets/mathjax/woff-v2/mjx-ncm-mx.woff2 +0 -0
  199. data/vendor/assets/mathjax/woff-v2/mjx-ncm-n.woff2 +0 -0
  200. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ob.woff2 +0 -0
  201. data/vendor/assets/mathjax/woff-v2/mjx-ncm-os.woff2 +0 -0
  202. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ph.woff2 +0 -0
  203. data/vendor/assets/mathjax/woff-v2/mjx-ncm-phb.woff2 +0 -0
  204. data/vendor/assets/mathjax/woff-v2/mjx-ncm-phbi.woff2 +0 -0
  205. data/vendor/assets/mathjax/woff-v2/mjx-ncm-phi.woff2 +0 -0
  206. data/vendor/assets/mathjax/woff-v2/mjx-ncm-phss.woff2 +0 -0
  207. data/vendor/assets/mathjax/woff-v2/mjx-ncm-phssb.woff2 +0 -0
  208. data/vendor/assets/mathjax/woff-v2/mjx-ncm-phssbi.woff2 +0 -0
  209. data/vendor/assets/mathjax/woff-v2/mjx-ncm-phssi.woff2 +0 -0
  210. data/vendor/assets/mathjax/woff-v2/mjx-ncm-pu.woff2 +0 -0
  211. data/vendor/assets/mathjax/woff-v2/mjx-ncm-pub.woff2 +0 -0
  212. data/vendor/assets/mathjax/woff-v2/mjx-ncm-pubi.woff2 +0 -0
  213. data/vendor/assets/mathjax/woff-v2/mjx-ncm-pui.woff2 +0 -0
  214. data/vendor/assets/mathjax/woff-v2/mjx-ncm-rb.woff2 +0 -0
  215. data/vendor/assets/mathjax/woff-v2/mjx-ncm-s.woff2 +0 -0
  216. data/vendor/assets/mathjax/woff-v2/mjx-ncm-s3.woff2 +0 -0
  217. data/vendor/assets/mathjax/woff-v2/mjx-ncm-s4.woff2 +0 -0
  218. data/vendor/assets/mathjax/woff-v2/mjx-ncm-s5.woff2 +0 -0
  219. data/vendor/assets/mathjax/woff-v2/mjx-ncm-s6.woff2 +0 -0
  220. data/vendor/assets/mathjax/woff-v2/mjx-ncm-s7.woff2 +0 -0
  221. data/vendor/assets/mathjax/woff-v2/mjx-ncm-sb.woff2 +0 -0
  222. data/vendor/assets/mathjax/woff-v2/mjx-ncm-sh.woff2 +0 -0
  223. data/vendor/assets/mathjax/woff-v2/mjx-ncm-shb.woff2 +0 -0
  224. data/vendor/assets/mathjax/woff-v2/mjx-ncm-shbi.woff2 +0 -0
  225. data/vendor/assets/mathjax/woff-v2/mjx-ncm-shi.woff2 +0 -0
  226. data/vendor/assets/mathjax/woff-v2/mjx-ncm-so.woff2 +0 -0
  227. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ss.woff2 +0 -0
  228. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ssb.woff2 +0 -0
  229. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ssbi.woff2 +0 -0
  230. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ssbix.woff2 +0 -0
  231. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ssbx.woff2 +0 -0
  232. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ssi.woff2 +0 -0
  233. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ssix.woff2 +0 -0
  234. data/vendor/assets/mathjax/woff-v2/mjx-ncm-sslb.woff2 +0 -0
  235. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ssli.woff2 +0 -0
  236. data/vendor/assets/mathjax/woff-v2/mjx-ncm-sslib.woff2 +0 -0
  237. data/vendor/assets/mathjax/woff-v2/mjx-ncm-sslr.woff2 +0 -0
  238. data/vendor/assets/mathjax/woff-v2/mjx-ncm-ssx.woff2 +0 -0
  239. data/vendor/assets/mathjax/woff-v2/mjx-ncm-sy.woff2 +0 -0
  240. data/vendor/assets/mathjax/woff-v2/mjx-ncm-syb.woff2 +0 -0
  241. data/vendor/assets/mathjax/woff-v2/mjx-ncm-sybi.woff2 +0 -0
  242. data/vendor/assets/mathjax/woff-v2/mjx-ncm-syi.woff2 +0 -0
  243. data/vendor/assets/mathjax/woff-v2/mjx-ncm-u-a.woff2 +0 -0
  244. data/vendor/assets/mathjax/woff-v2/mjx-ncm-u.woff2 +0 -0
  245. data/vendor/assets/mathjax/woff-v2/mjx-ncm-v.woff2 +0 -0
  246. data/vendor/assets/mathjax/woff-v2/mjx-ncm-vx.woff2 +0 -0
  247. data/vendor/assets/mathjax/woff-v2/mjx-ncm-zero.woff2 +0 -0
  248. metadata +304 -0
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{JsdomAdaptor:()=>p,jsdomAdaptor:()=>h});const o=("undefined"!=typeof window?window:t.g).MathJax._.components.global,n=(o.GLOBAL,o.isObject,o.combineConfig,o.combineDefaults,o.combineWithMathJax),r=(o.MathJax,MathJax._.adaptors.HTMLAdaptor.HTMLAdaptor),a=MathJax._.util.Options,s=(a.isObject,a.APPEND,a.REMOVE,a.OPTIONS,a.Expandable,a.expandable,a.makeArray,a.keys,a.copy,a.insert,a.defaultOptions),i=a.userOptions,d=(a.selectOptions,a.selectOptionsFromKeys,a.separateOptions,a.lookup,MathJax._.util.AsyncLoad.asyncLoad);var c=function(t,e,o,n){return new(o||(o=Promise))((function(r,a){function s(t){try{d(n.next(t))}catch(t){a(t)}}function i(t){try{d(n.throw(t))}catch(t){a(t)}}function d(t){var e;t.done?r(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(s,i)}d((n=n.apply(t,e||[])).next())}))};const u={badCSS:!0,badSizes:!0};class p extends(function(t,e={}){var o;return e=i(s({},u),e),(o=class extends t{constructor(...t){super(t[0]),this.canMeasureNodes=!1;const e=this.constructor;this.options=i(s({},e.OPTIONS),t[1])}fontSize(t){return e.badCSS?this.options.fontSize:super.fontSize(t)}fontFamily(t){return e.badCSS?this.options.fontFamily:super.fontFamily(t)}nodeSize(t,n=1,r=null){if(!e.badSizes)return super.nodeSize(t,n,r);const a=this.textContent(t),s=Array.from(a.replace(o.cjkPattern,"")).length;return[(Array.from(a).length-s)*this.options.cjkCharWidth+s*this.options.unknownCharWidth,this.options.unknownCharHeight]}nodeBBox(t){return e.badSizes?{left:0,right:0,top:0,bottom:0}:super.nodeBBox(t)}createWorker(t,e){return c(this,void 0,void 0,(function*(){const{Worker:o}=yield d("node:worker_threads");const{path:n,maps:r}=e,a=`${n}/${e.worker}`,s=new class{constructor(t,e={}){this.worker=new o(t,e)}addEventListener(t,e){this.worker.on(t,e)}postMessage(t){this.worker.postMessage({data:t})}terminate(){this.worker.terminate()}}(a,{type:"module",workerData:{maps:r}});return s.addEventListener("message",t),s}))}}).OPTIONS=Object.assign(Object.assign({},e.badCSS?{fontSize:16,fontFamily:"Times"}:{}),e.badSizes?{cjkCharWidth:1,unknownCharWidth:.6,unknownCharHeight:.8}:{}),o.cjkPattern=new RegExp(["[","\u1100-\u115f","\u2329\u232a","\u2e80-\u303e","\u3040-\u3247","\u3250-\u4dbf","\u4e00-\ua4c6","\ua960-\ua97c","\uac00-\ud7a3","\uf900-\ufaff","\ufe10-\ufe19","\ufe30-\ufe6b","\uff01-\uff60\uffe0-\uffe6","\u{1b000}-\u{1b001}","\u{1f200}-\u{1f251}","\u{20000}-\u{3fffd}","]"].join(""),"gu"),o}(r)){}function h(t,e=null){return new p((new t).window,e)}MathJax.loader&&MathJax.loader.checkVersion("adaptors/jsdom","4.1.0","adaptors"),n({_:{adaptors:{jsdomAdaptor:e}}}),MathJax.startup&&(MathJax.startup.registerConstructor("jsdomAdaptor",(t=>h(MathJax.config.JSDOM,t))),MathJax.startup.useAdaptor("jsdomAdaptor",!0))})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{LinkedomAdaptor:()=>h,linkedomAdaptor:()=>p});const n=("undefined"!=typeof window?window:t.g).MathJax._.components.global,o=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),r=(n.MathJax,MathJax._.adaptors.HTMLAdaptor.HTMLAdaptor),a=MathJax._.util.Options,i=(a.isObject,a.APPEND,a.REMOVE,a.OPTIONS,a.Expandable,a.expandable,a.makeArray,a.keys,a.copy,a.insert,a.defaultOptions),s=a.userOptions,d=(a.selectOptions,a.selectOptionsFromKeys,a.separateOptions,a.lookup,MathJax._.util.AsyncLoad.asyncLoad);var c=function(t,e,n,o){return new(n||(n=Promise))((function(r,a){function i(t){try{d(o.next(t))}catch(t){a(t)}}function s(t){try{d(o.throw(t))}catch(t){a(t)}}function d(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,s)}d((o=o.apply(t,e||[])).next())}))};const u={badCSS:!0,badSizes:!0};class h extends(function(t,e={}){var n;return e=s(i({},u),e),(n=class extends t{constructor(...t){super(t[0]),this.canMeasureNodes=!1;const e=this.constructor;this.options=s(i({},e.OPTIONS),t[1])}fontSize(t){return e.badCSS?this.options.fontSize:super.fontSize(t)}fontFamily(t){return e.badCSS?this.options.fontFamily:super.fontFamily(t)}nodeSize(t,o=1,r=null){if(!e.badSizes)return super.nodeSize(t,o,r);const a=this.textContent(t),i=Array.from(a.replace(n.cjkPattern,"")).length;return[(Array.from(a).length-i)*this.options.cjkCharWidth+i*this.options.unknownCharWidth,this.options.unknownCharHeight]}nodeBBox(t){return e.badSizes?{left:0,right:0,top:0,bottom:0}:super.nodeBBox(t)}createWorker(t,e){return c(this,void 0,void 0,(function*(){const{Worker:n}=yield d("node:worker_threads");const{path:o,maps:r}=e,a=`${o}/${e.worker}`,i=new class{constructor(t,e={}){this.worker=new n(t,e)}addEventListener(t,e){this.worker.on(t,e)}postMessage(t){this.worker.postMessage({data:t})}terminate(){this.worker.terminate()}}(a,{type:"module",workerData:{maps:r}});return i.addEventListener("message",t),i}))}}).OPTIONS=Object.assign(Object.assign({},e.badCSS?{fontSize:16,fontFamily:"Times"}:{}),e.badSizes?{cjkCharWidth:1,unknownCharWidth:.6,unknownCharHeight:.8}:{}),n.cjkPattern=new RegExp(["[","\u1100-\u115f","\u2329\u232a","\u2e80-\u303e","\u3040-\u3247","\u3250-\u4dbf","\u4e00-\ua4c6","\ua960-\ua97c","\uac00-\ud7a3","\uf900-\ufaff","\ufe10-\ufe19","\ufe30-\ufe6b","\uff01-\uff60\uffe0-\uffe6","\u{1b000}-\u{1b001}","\u{1f200}-\u{1f251}","\u{20000}-\u{3fffd}","]"].join(""),"gu"),n}(r)){parse(t,e="text/html"){return t.match(/^(?:\s|\n)*</)||(t="<html>"+t+"</html>"),this.parser.parseFromString(t,e)}serializeXML(t){return this.outerHTML(t)}}function p(t,e=null){const n=t("<html></html>");return n.HTMLCollection=class{},n.Text.prototype.splitText=function(t){const e=this.data;if(t>e.length)throw Error("Index Size Error");const o=n.document.createTextNode(e.substring(t));return this.parentNode.insertBefore(o,this.nextSibling),this.data=e.substring(0,t),o},new h(n,e)}MathJax.loader&&MathJax.loader.checkVersion("adaptors/linkedom","4.1.0","adaptors"),o({_:{adaptors:{linkedomAdaptor:e}}}),MathJax.startup&&(MathJax.startup.registerConstructor("linkedomAdaptor",(t=>p(MathJax.config.LINKEDOM,t))),MathJax.startup.useAdaptor("linkedomAdaptor",!0))})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{LiteElement:()=>y});var n={};t.r(n),t.d(n,{LiteDocument:()=>g});var r={};t.r(r),t.d(r,{LiteComment:()=>x,LiteText:()=>w});var s={};t.r(s),t.d(s,{LiteList:()=>k});var i={};t.r(i),t.d(i,{LiteParser:()=>j,PATTERNS:()=>$});var o={};t.r(o),t.d(o,{LiteWindow:()=>z});var a={};t.r(a),t.d(a,{LiteAdaptor:()=>N,LiteBase:()=>I,liteAdaptor:()=>B});const l=("undefined"!=typeof window?window:t.g).MathJax._.components.global,c=(l.GLOBAL,l.isObject,l.combineConfig,l.combineDefaults,l.combineWithMathJax),u=(l.MathJax,MathJax._.core.DOMAdaptor.AbstractDOMAdaptor),h=MathJax._.util.Options,d=(h.isObject,h.APPEND,h.REMOVE,h.OPTIONS,h.Expandable,h.expandable,h.makeArray,h.keys,h.copy,h.insert,h.defaultOptions),p=h.userOptions,m=(h.selectOptions,h.selectOptionsFromKeys,h.separateOptions,h.lookup,MathJax._.util.AsyncLoad.asyncLoad);var f=function(t,e,n,r){return new(n||(n=Promise))((function(s,i){function o(t){try{l(r.next(t))}catch(t){i(t)}}function a(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,a)}l((r=r.apply(t,e||[])).next())}))};const b={badCSS:!0,badSizes:!0};class y{constructor(t,e={},n=[]){this.kind=t,this.attributes=Object.assign({},e),this.children=[...n];for(const t of this.children)t.parent=this;this.styles=null}}class g{get kind(){return"#document"}constructor(t=null){this.defaultView=null,this.root=new y("html",{},[this.head=new y("head"),this.body=new y("body")]),this.type="",this.defaultView=t}}class w{get kind(){return"#text"}constructor(t=""){this.value=t}}class x extends w{get kind(){return"#comment"}}class k{constructor(t){this.nodes=[],this.nodes=[...t]}append(t){this.nodes.push(t)}[Symbol.iterator](){let t=0;return{next(){return t===this.nodes.length?{value:null,done:!0}:{value:this.nodes[t++],done:!1}}}}}const v=MathJax._.util.Entities,A=(v.options,v.entities,v.add,v.remove,v.translate),S=(v.numeric,"[ \\n]+"),C="[ \\n]*",O="[A-Za-z][^\0-\x1f \"'>/=\x7f-\x9f]*",L="[^\0-\x1f \"'>/=\x7f-\x9f]+",M=`${L}(?:${C}=${C}${`(?:'[^']*'|"[^"]*"|${S})`})?`,T=`(${L})(?:${C}=${C}${`(?:'([^']*)'|"([^"]*)"|(${S}))`})?`,$={tag:new RegExp(`(<(?:${O}(?:${S}${M})*${C}/?|/${O}|!--[^]*?--|![^]*?)(?:>|$))`,"u"),attr:new RegExp(M,"u"),attrsplit:new RegExp(T,"u")};class j{parseFromString(t,e="text/html",n=null){const r=n.createDocument();let s=n.body(r);const i=t.replace(/<\?.*?\?>/g,"").split($.tag);for(;i.length;){const t=i.shift(),e=i.shift();t&&this.addText(n,s,t),e&&">"===e.charAt(e.length-1)&&("!"===e.charAt(1)?this.addComment(n,s,e):s="/"===e.charAt(1)?this.closeTag(n,s,e):this.openTag(n,s,e,i))}return this.checkDocument(n,r),r}addText(t,e,n){return n=A(n),t.append(e,t.text(n))}addComment(t,e,n){return t.append(e,new x(n))}closeTag(t,e,n){const r=n.slice(2,n.length-1).toLowerCase();for(;t.parent(e)&&t.kind(e)!==r;)e=t.parent(e);return t.parent(e)}openTag(t,e,n,r){const s=this.constructor.PCDATA,i=this.constructor.SELF_CLOSING,o=n.match(/<(.*?)[\s\n>/]/)[1].toLowerCase(),a=t.node(o),l=n.replace(/^<.*?[\s\n>]/,"").split($.attrsplit);return(l.pop().match(/>$/)||l.length<5)&&(this.addAttributes(t,a,l),t.append(e,a),i[o]||n.match(/\/>$/)||(s[o]?this.handlePCDATA(t,a,o,r):e=a)),e}addAttributes(t,e,n){for(;n.length;){const[,r,s,i,o]=n.splice(0,5),a=A(s||i||o||"");t.setAttribute(e,r,a)}}handlePCDATA(t,e,n,r){const s=[],i="</"+n+">";let o="";for(;r.length&&o!==i;)s.push(o),s.push(r.shift()),o=r.shift();t.append(e,t.text(s.join("")))}checkDocument(t,e){const n=this.getOnlyChild(t,t.body(e));if(n){for(const r of t.childNodes(t.body(e))){if(r===n)break;r instanceof x&&r.value.match(/^<!DOCTYPE/)&&(e.type=r.value)}switch(t.kind(n)){case"html":for(const r of n.children)switch(t.kind(r)){case"head":e.head=r;break;case"body":e.body=r}e.root=n,t.remove(n),t.parent(e.body)!==n&&t.append(n,e.body),t.parent(e.head)!==n&&t.insert(e.head,e.body);break;case"head":e.head=t.replace(n,e.head);break;case"body":e.body=t.replace(n,e.body)}}}getOnlyChild(t,e){let n=null;for(const r of t.childNodes(e))if(r instanceof y){if(n)return null;n=r}return n}serialize(t,e,n=!1){const r=this.constructor.SELF_CLOSING,s=t.kind(e),i=this.allAttributes(t,e,n).map((t=>t.name+'="'+this.protectAttribute(t.value,n)+'"')).join(" "),o=this.serializeInner(t,e,n);return`<${s}`+(i?" "+i:"")+(n&&!o||r[s]?n?"/>":">":`>${o}</${s}>`)}serializeInner(t,e,n=!1){const r=this.constructor.PCDATA;return Object.hasOwn(r,e.kind)?t.childNodes(e).map((e=>t.value(e))).join(""):t.childNodes(e).map((e=>{const r=t.kind(e);return"#text"===r?this.protectHTML(t.value(e)):"#comment"===r?e.value:this.serialize(t,e,n)})).join("")}allAttributes(t,e,n){const r=t.allAttributes(e);if(!n)return r;const s=t.kind(e),i=this.constructor.XMLNS;if(!Object.hasOwn(i,s))return r;for(const{name:t}of r)if("xmlns"===t)return r;return r.push({name:"xmlns",value:i[s]}),r}protectAttribute(t,e){return"string"!=typeof t&&(t=String(t)),t=t.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),e&&(t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;")),t}protectHTML(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}}j.SELF_CLOSING={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},j.PCDATA={option:!0,textarea:!0,fieldset:!0,title:!0,style:!0,script:!0},j.XMLNS={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML",html:"http://www.w3.org/1999/xhtml"};class z{constructor(){this.DOMParser=j,this.NodeList=k,this.HTMLCollection=k,this.HTMLElement=y,this.DocumentFragment=k,this.Document=g,this.document=new g(this)}}const P=MathJax._.util.Styles,D=(P.TRBL,P.WSC,P.Styles);var E=function(t,e,n,r){return new(n||(n=Promise))((function(s,i){function o(t){try{l(r.next(t))}catch(t){i(t)}}function a(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,a)}l((r=r.apply(t,e||[])).next())}))};class I extends u{constructor(){super(),this.parser=new j,this.window=new z}parse(t,e){return this.parser.parseFromString(t,e,this)}create(t,e=null){return new y(t)}text(t){return new w(t)}comment(t){return new x(t)}createDocument(){return new g}head(t=this.document){return t.head}body(t=this.document){return t.body}root(t=this.document){return t.root}doctype(t=this.document){return t.type}tags(t,e,n=null,r=null){let s=[];const i=[];if(n)return i;let o=t;for(;o;){const t=o.kind;if("#text"!==t&&"#comment"!==t){if(t===e&&(i.push(o),i.length===r))return i;o.children.length&&(s=o.children.concat(s))}o=s.shift()}return i}elementById(t,e){let n=[],r=t;for(;r;){if("#text"!==r.kind&&"#comment"!==r.kind){if(r.attributes.id===e)return r;r.children.length&&(n=r.children.concat(n))}r=n.shift()}return null}elementsByClass(t,e,n=null){let r=[];const s=[];let i=t;for(;i;){if("#text"!==i.kind&&"#comment"!==i.kind){if((i.attributes.class||"").trim().split(/ +/).includes(e)&&(s.push(i),s.length===n))return s;i.children.length&&(r=i.children.concat(r))}i=r.shift()}return s}elementsByAttribute(t,e,n,r=null){let s=[];const i=[];let o=t;for(;o;){if("#text"!==o.kind&&"#comment"!==o.kind){if(o.attributes[e]===n&&(i.push(o),i.length===r))return i;o.children.length&&(s=o.children.concat(s))}o=s.shift()}return i}getElements(t,e){let n=[];const r=this.body(e);for(const e of t)if("string"==typeof e)if("#"===e.charAt(0)){const t=this.elementById(r,e.slice(1));t&&n.push(t)}else if("."===e.charAt(0))n=n.concat(this.elementsByClass(r,e.slice(1)));else if(e.match(/^[-a-z][-a-z0-9]*$/i))n=n.concat(this.tags(r,e));else{const t=e.match(/^\[(.*?)="(.*?)"\]$/);t&&(n=n.concat(this.elementsByAttribute(r,t[1],t[2])))}else Array.isArray(e)?n=n.concat(e):e instanceof this.window.NodeList||e instanceof this.window.HTMLCollection?n=n.concat(e.nodes):n.push(e);return n}getElement(t,e=this.document){if(e instanceof g&&(e=this.body(e)),"#"===t.charAt(0))return this.elementById(e,t.slice(1));if("."===t.charAt(0))return this.elementsByClass(e,t.slice(1),1)[0];if(t.match(/^[-a-z][-a-z0-9]*$/i))return this.tags(e,t,null,1)[0];const n=t.match(/^\[(.*?)="(.*?)"\]$/);return n?this.elementsByAttribute(e,n[1],n[2],1)[0]:null}contains(t,e){for(;e&&e!==t;)e=this.parent(e);return!!e}parent(t){return t.parent}childIndex(t){return t.parent?t.parent.children.findIndex((e=>e===t)):-1}append(t,e){return e.parent&&this.remove(e),t.children.push(e),e.parent=t,e}insert(t,e){if(t.parent&&this.remove(t),e&&e.parent){const n=this.childIndex(e);e.parent.children.splice(n,0,t),t.parent=e.parent}}remove(t){const e=this.childIndex(t);return e>=0&&t.parent.children.splice(e,1),t.parent=null,t}replace(t,e){const n=this.childIndex(e);return n>=0&&(e.parent.children[n]=t,t.parent=e.parent,e.parent=null),e}clone(t,e=!0){const n=new y(t.kind);return n.attributes=Object.assign({},t.attributes),n.children=e?t.children.map((t=>{if("#text"===t.kind)return new w(t.value);if("#comment"===t.kind)return new x(t.value);{const e=this.clone(t);return e.parent=n,e}})):[],n}split(t,e){const n=new w(t.value.slice(e));return t.value=t.value.slice(0,e),t.parent.children.splice(this.childIndex(t)+1,0,n),n.parent=t.parent,n}next(t){const e=t.parent;if(!e)return null;const n=this.childIndex(t)+1;return n>=0&&n<e.children.length?e.children[n]:null}previous(t){const e=t.parent;if(!e)return null;const n=this.childIndex(t)-1;return n>=0?e.children[n]:null}firstChild(t){return t.children[0]}lastChild(t){return t.children[t.children.length-1]}childNodes(t){return[...t.children]}childNode(t,e){return t.children[e]}kind(t){return t.kind}value(t){return"#text"===t.kind?t.value:"#comment"===t.kind?t.value.replace(/^<!(--)?((?:.|\n)*)\1>$/,"$2"):""}textContent(t){return t.children.reduce(((t,e)=>t+("#text"===e.kind?e.value:"#comment"===e.kind?"":this.textContent(e))),"")}innerHTML(t){return this.parser.serializeInner(this,t)}outerHTML(t){return this.parser.serialize(this,t)}serializeXML(t){return this.parser.serialize(this,t,!0)}setAttribute(t,e,n,r=null){"string"!=typeof n&&(n=String(n)),r&&(e=r.replace(/.*\//,"")+":"+e.replace(/^.*:/,"")),t.attributes[e]=n,"style"===e&&(t.styles=null)}getAttribute(t,e){return t.attributes[e]}removeAttribute(t,e){delete t.attributes[e]}hasAttribute(t,e){return Object.hasOwn(t.attributes,e)}allAttributes(t){const e=t.attributes,n=[];for(const t of Object.keys(e))n.push({name:t,value:e[t]});return n}addClass(t,e){const n=t.attributes.class,r=(null==n?void 0:n.split(/ /))||[];r.includes(e)||(r.push(e),t.attributes.class=r.join(" "))}removeClass(t,e){const n=t.attributes.class,r=(null==n?void 0:n.split(/ /))||[],s=r.indexOf(e);s>=0&&(r.splice(s,1),t.attributes.class=r.join(" "))}hasClass(t,e){return(t.attributes.class||"").split(/ /).includes(e)}setStyle(t,e,n){t.styles||(t.styles=new D(this.getAttribute(t,"style"))),t.styles.set(e,n),t.attributes.style=t.styles.cssText}getStyle(t,e){if(!t.styles){const e=this.getAttribute(t,"style");if(!e)return"";t.styles=new D(e)}return t.styles.get(e)}allStyles(t){return this.getAttribute(t,"style")}insertRules(t,e){t.children=[this.text(this.textContent(t)+"\n\n"+e.join("\n\n"))]}fontSize(t){return 0}fontFamily(t){return""}nodeSize(t,e=1,n=null){return[0,0]}nodeBBox(t){return{left:0,right:0,top:0,bottom:0}}createWorker(){return E(this,void 0,void 0,(function*(){return null}))}}class N extends(function(t,e={}){var n;return e=p(d({},b),e),n=class extends t{constructor(...t){super(t[0]),this.canMeasureNodes=!1;const e=this.constructor;this.options=p(d({},e.OPTIONS),t[1])}fontSize(t){return e.badCSS?this.options.fontSize:super.fontSize(t)}fontFamily(t){return e.badCSS?this.options.fontFamily:super.fontFamily(t)}nodeSize(t,r=1,s=null){if(!e.badSizes)return super.nodeSize(t,r,s);const i=this.textContent(t),o=Array.from(i.replace(n.cjkPattern,"")).length;return[(Array.from(i).length-o)*this.options.cjkCharWidth+o*this.options.unknownCharWidth,this.options.unknownCharHeight]}nodeBBox(t){return e.badSizes?{left:0,right:0,top:0,bottom:0}:super.nodeBBox(t)}createWorker(t,e){return f(this,void 0,void 0,(function*(){const{Worker:n}=yield m("node:worker_threads");const{path:r,maps:s}=e,i=`${r}/${e.worker}`,o=new class{constructor(t,e={}){this.worker=new n(t,e)}addEventListener(t,e){this.worker.on(t,e)}postMessage(t){this.worker.postMessage({data:t})}terminate(){this.worker.terminate()}}(i,{type:"module",workerData:{maps:s}});return o.addEventListener("message",t),o}))}},n.OPTIONS=Object.assign(Object.assign({},e.badCSS?{fontSize:16,fontFamily:"Times"}:{}),e.badSizes?{cjkCharWidth:1,unknownCharWidth:.6,unknownCharHeight:.8}:{}),n.cjkPattern=new RegExp(["[","\u1100-\u115f","\u2329\u232a","\u2e80-\u303e","\u3040-\u3247","\u3250-\u4dbf","\u4e00-\ua4c6","\ua960-\ua97c","\uac00-\ud7a3","\uf900-\ufaff","\ufe10-\ufe19","\ufe30-\ufe6b","\uff01-\uff60\uffe0-\uffe6","\u{1b000}-\u{1b001}","\u{1f200}-\u{1f251}","\u{20000}-\u{3fffd}","]"].join(""),"gu"),n}(I)){}function B(t=null){return new N(null,t)}MathJax.loader&&MathJax.loader.checkVersion("adaptors/liteDOM","4.1.0","adaptors"),c({_:{adaptors:{liteAdaptor:a,lite:{Document:n,Element:e,List:s,Parser:i,Text:r,Window:o}}}}),MathJax.startup&&(MathJax.startup.registerConstructor("liteAdaptor",B),MathJax.startup.useAdaptor("liteAdaptor",!0))})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,s)=>{for(var i in s)t.o(s,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:s[i]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{GLOBAL:()=>At,MathJax:()=>Pt,combineConfig:()=>wt,combineDefaults:()=>kt,combineWithMathJax:()=>Mt,isObject:()=>St});var s={};t.r(s),t.d(s,{AbstractDOMAdaptor:()=>Bt});var i={};t.r(i),t.d(i,{HTMLAdaptor:()=>jt});var r={};t.r(r),t.d(r,{browserAdaptor:()=>Ft});var n={};t.r(n),t.d(n,{APPEND:()=>qt,Expandable:()=>$t,OPTIONS:()=>Jt,REMOVE:()=>Kt,copy:()=>Vt,defaultOptions:()=>Zt,expandable:()=>Ut,insert:()=>Yt,isObject:()=>Xt,keys:()=>_t,lookup:()=>ie,makeArray:()=>Gt,selectOptions:()=>te,selectOptionsFromKeys:()=>ee,separateOptions:()=>se,userOptions:()=>Qt});var o={};t.r(o),t.d(o,{AbstractFindMath:()=>re});var a={};t.r(a),t.d(a,{PrioritizedList:()=>ne});var l={};t.r(l),t.d(l,{FunctionList:()=>oe});var h={};t.r(h),t.d(h,{AbstractInputJax:()=>ae});var d={};t.r(d),t.d(d,{AbstractOutputJax:()=>le});var c={};t.r(c),t.d(c,{END:()=>he,LinkedList:()=>ce,ListItem:()=>de});var u={};t.r(u),t.d(u,{AbstractMathList:()=>ue});var E={};t.r(E),t.d(E,{AbstractMathItem:()=>pe,STATE:()=>me,newState:()=>ge,protoItem:()=>Ee});var p={};t.r(p),t.d(p,{AbstractFactory:()=>Re});var m={};t.r(m),t.d(m,{AbstractNodeFactory:()=>fe});var g={};t.r(g),t.d(g,{Attributes:()=>be,INHERIT:()=>Le});var R={};t.r(R),t.d(R,{AbstractEmptyNode:()=>Ne,AbstractNode:()=>ye});var f={};t.r(f),t.d(f,{AbstractMmlBaseNode:()=>we,AbstractMmlEmptyNode:()=>ke,AbstractMmlLayoutNode:()=>Se,AbstractMmlNode:()=>ve,AbstractMmlTokenNode:()=>Ae,MATHVARIANTS:()=>De,TEXCLASS:()=>xe,TEXCLASSNAMES:()=>Ie,TextNode:()=>Me,XMLNode:()=>Pe,indentAttributes:()=>Oe});var L={};t.r(L),t.d(L,{MmlMath:()=>Be});var b={};t.r(b),t.d(b,{MmlMi:()=>We});var y={};t.r(y),t.d(y,{MmlMn:()=>je});var N={};t.r(N),t.d(N,{MMLSPACING:()=>qe,MO:()=>Fe,OPDEF:()=>He,OPTABLE:()=>Ke,RANGES:()=>ze,getRange:()=>Xe});var x={};t.r(x),t.d(x,{isPercent:()=>_e,quotePattern:()=>$e,replaceUnicode:()=>Ye,sortLength:()=>Je,split:()=>Ve,toEntity:()=>Ze,unicodeChars:()=>Ue,unicodeString:()=>Ge});var I={};t.r(I),t.d(I,{MmlMo:()=>Qe});var T={};t.r(T),t.d(T,{MmlMtext:()=>ts});var C={};t.r(C),t.d(C,{MmlMspace:()=>es});var D={};t.r(D),t.d(D,{MmlMs:()=>ss});var O={};t.r(O),t.d(O,{MmlInferredMrow:()=>rs,MmlMrow:()=>is});var v={};t.r(v),t.d(v,{MmlMfrac:()=>ns});var A={};t.r(A),t.d(A,{MmlMsqrt:()=>os});var S={};t.r(S),t.d(S,{MmlMroot:()=>as});var w={};t.r(w),t.d(w,{MmlMstyle:()=>ls});var k={};t.r(k),t.d(k,{MmlMerror:()=>hs});var M={};t.r(M),t.d(M,{MmlMpadded:()=>ds});var P={};t.r(P),t.d(P,{MmlMphantom:()=>cs});var B={};t.r(B),t.d(B,{MmlMfenced:()=>us});var W={};t.r(W),t.d(W,{MmlMenclose:()=>Es});var j={};t.r(j),t.d(j,{MmlMaction:()=>ps});var H={};t.r(H),t.d(H,{MmlMsub:()=>gs,MmlMsubsup:()=>ms,MmlMsup:()=>Rs});var F={};t.r(F),t.d(F,{MmlMover:()=>bs,MmlMunder:()=>Ls,MmlMunderover:()=>fs});var z={};t.r(z),t.d(z,{MmlMmultiscripts:()=>ys,MmlMprescripts:()=>Ns,MmlNone:()=>xs});var X={};t.r(X),t.d(X,{MmlMtable:()=>Is});var q={};t.r(q),t.d(q,{MmlMlabeledtr:()=>Cs,MmlMtr:()=>Ts});var K={};t.r(K),t.d(K,{MmlMtd:()=>Ds});var J={};t.r(J),t.d(J,{MmlMaligngroup:()=>Os});var $={};t.r($),t.d($,{MmlMalignmark:()=>vs});var U={};t.r(U),t.d(U,{MmlMglyph:()=>As});var G={};t.r(G),t.d(G,{MmlAnnotation:()=>ks,MmlAnnotationXML:()=>ws,MmlSemantics:()=>Ss});var _={};t.r(_),t.d(_,{TeXAtom:()=>Ms});var V={};t.r(V),t.d(V,{MathChoice:()=>Ps});var Y={};t.r(Y),t.d(Y,{HtmlNode:()=>Bs});var Z={};t.r(Z),t.d(Z,{MML:()=>Ws});var Q={};t.r(Q),t.d(Q,{MmlFactory:()=>js});var tt={};t.r(tt),t.d(tt,{BitField:()=>Hs,BitFieldClass:()=>Fs});var et={};t.r(et),t.d(et,{handleRetriesFor:()=>zs,retryAfter:()=>Xs});var st={};t.r(st),t.d(st,{AbstractMathDocument:()=>Vs,RenderList:()=>Ks,resetAllOptions:()=>$s,resetOptions:()=>Js});var it={};t.r(it),t.d(it,{AbstractHandler:()=>Zs});var rt={};t.r(rt),t.d(rt,{HandlerList:()=>Qs});var nt={};t.r(nt),t.d(nt,{AbstractVisitor:()=>ti});var ot={};t.r(ot),t.d(ot,{DATAMJX:()=>ei,MmlVisitor:()=>si});var at={};t.r(at),t.d(at,{MathMLVisitor:()=>ii});var lt={};t.r(lt),t.d(lt,{SerializedMmlVisitor:()=>ri});var ht={};t.r(ht),t.d(ht,{AbstractWrapper:()=>ni});var dt={};t.r(dt),t.d(dt,{AbstractWrapperFactory:()=>oi});var ct={};t.r(ct),t.d(ct,{context:()=>li,hasWindow:()=>ai});var ut={};t.r(ut),t.d(ut,{mathjax:()=>hi});var Et={};t.r(Et),t.d(Et,{HTMLMathItem:()=>di});var pt={};t.r(pt),t.d(pt,{HTMLMathList:()=>ci});var mt={};t.r(mt),t.d(mt,{HTMLDomStrings:()=>ui});var gt={};t.r(gt),t.d(gt,{HTMLDocument:()=>Ei});var Rt={};t.r(Rt),t.d(Rt,{HTMLHandler:()=>pi});var ft={};t.r(ft),t.d(ft,{RegisterHTMLHandler:()=>mi});var Lt={};t.r(Lt),t.d(Lt,{StyleJsonSheet:()=>gi});var bt={};t.r(bt),t.d(bt,{DraggableDialog:()=>Li,isDialog:()=>fi});var yt={};t.r(yt),t.d(yt,{InfoDialog:()=>bi});var Nt={};t.r(Nt),t.d(Nt,{asyncLoad:()=>yi});var xt={};t.r(xt),t.d(xt,{BIGDIMEN:()=>Ni,MATHSPACE:()=>Ti,RELUNITS:()=>Ii,UNITS:()=>xi,em:()=>Oi,length2em:()=>Ci,percent:()=>Di,px:()=>vi});var It={};t.r(It),t.d(It,{BBox:()=>Ai});var Tt={};t.r(Tt),t.d(Tt,{add:()=>Mi,entities:()=>wi,numeric:()=>ji,options:()=>Si,remove:()=>Pi,translate:()=>Bi});var Ct={};t.r(Ct),t.d(Ct,{Styles:()=>Vi,TRBL:()=>Hi,WSC:()=>Fi});var Dt={};t.r(Dt),t.d(Dt,{max:()=>Zi,sum:()=>Yi});const Ot="4.1.0",vt={},At="undefined"!=typeof window?window:void 0!==t.g?t.g:"undefined"!=typeof globalThis?globalThis:vt;function St(t){return"object"==typeof t&&null!==t}function wt(t,e,s=!1){var i;for(const r of Object.keys(e))"__esModule"!==r&&t[r]!==e[r]&&null!==e[r]&&void 0!==e[r]&&(St(t[r])&&St(e[r])?wt(t[r],e[r],s||"_"===r):s&&(null===(i=Object.getOwnPropertyDescriptor(t,r))||void 0===i?void 0:i.get)||(t[r]=e[r]));return t}function kt(t,e,s){t[e]||(t[e]={}),t=t[e];for(const e of Object.keys(s))St(t[e])&&St(s[e])?kt(t,e,s[e]):null==t[e]&&null!=s[e]&&(t[e]=s[e]);return t}function Mt(t){return wt(Pt,t)}void 0!==At.MathJax&&At.MathJax.constructor==={}.constructor||(At.MathJax={}),At.MathJax.version||(At.MathJax={version:Ot,_:{},config:At.MathJax});const Pt=At.MathJax;class Bt{constructor(t=null){this.canMeasureNodes=!0,this.document=t}node(t,e={},s=[],i){const r=this.create(t,i);this.setAttributes(r,e);for(const t of s)this.append(r,t);return r}setProperty(t,e,s){t[e]=s}getProperty(t,e){return t[e]}setAttributes(t,e){if(e.style&&"string"!=typeof e.style)for(const s of Object.keys(e.style))this.setStyle(t,s.replace(/-([a-z])/g,((t,e)=>e.toUpperCase())),e.style[s]);if(e.properties)for(const s of Object.keys(e.properties))t[s]=e.properties[s];for(const s of Object.keys(e))"style"===s&&"string"!=typeof e.style||"properties"===s||this.setAttribute(t,s,e[s])}replace(t,e){return this.insert(t,e),this.remove(e),e}childNode(t,e){return this.childNodes(t)[e]}allClasses(t){const e=this.getAttribute(t,"class");return e?e.replace(/ +/g," ").replace(/^ /,"").replace(/ $/,"").split(/ /):[]}cssText(t){return"style"===this.kind(t)?this.textContent(t):""}}var Wt=function(t,e,s,i){return new(s||(s=Promise))((function(r,n){function o(t){try{l(i.next(t))}catch(t){n(t)}}function a(t){try{l(i.throw(t))}catch(t){n(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(o,a)}l((i=i.apply(t,e||[])).next())}))};class jt extends Bt{constructor(t){super(t.document),this.canMeasureNodes=!0,this.window=t,this.parser=new t.DOMParser}parse(t,e="text/html"){return this.parser.parseFromString(t,e)}create(t,e){return e?this.document.createElementNS(e,t):this.document.createElement(t)}text(t){return this.document.createTextNode(t)}head(t=this.document){return t.head||t}body(t=this.document){return t.body||t}root(t=this.document){return t.documentElement||t}doctype(t=this.document){return t.doctype?`<!DOCTYPE ${t.doctype.name}>`:""}tags(t,e,s=null){const i=s?t.getElementsByTagNameNS(s,e):t.getElementsByTagName(e);return Array.from(i)}getElements(t,e){let s=[];for(const e of t)"string"==typeof e?s=s.concat(Array.from(this.document.querySelectorAll(e))):Array.isArray(e)||e instanceof this.window.NodeList||e instanceof this.window.HTMLCollection?s=s.concat(Array.from(e)):s.push(e);return s}getElement(t,e=this.document){return e.querySelector(t)}contains(t,e){return t.contains(e)}parent(t){return t.parentNode}append(t,e){return t.appendChild(e)}insert(t,e){return this.parent(e).insertBefore(t,e)}remove(t){return this.parent(t).removeChild(t)}replace(t,e){return this.parent(e).replaceChild(t,e)}clone(t,e=!0){return t.cloneNode(e)}split(t,e){return t.splitText(e)}next(t){return t.nextSibling}previous(t){return t.previousSibling}firstChild(t){return t.firstChild}lastChild(t){return t.lastChild}childNodes(t){return Array.from(t.childNodes)}childNode(t,e){return t.childNodes[e]}kind(t){const e=t.nodeType;return 1===e||3===e||8===e?t.nodeName.toLowerCase():""}value(t){return t.nodeValue||""}textContent(t){return t.textContent}innerHTML(t){return t.innerHTML}outerHTML(t){return t.outerHTML}serializeXML(t){return(new this.window.XMLSerializer).serializeToString(t)}setAttribute(t,e,s,i=null){return i?(e=i.replace(/.*\//,"")+":"+e.replace(/^.*:/,""),t.setAttributeNS(i,e,s)):("style"===e&&(s=s.replace(/\n/g," ")),t.setAttribute(e,s))}getAttribute(t,e){return t.getAttribute(e)}removeAttribute(t,e){return t.removeAttribute(e)}hasAttribute(t,e){return t.hasAttribute(e)}allAttributes(t){return Array.from(t.attributes).map((t=>({name:t.name,value:t.value})))}addClass(t,e){t.classList?t.classList.add(e):t.className=(t.className+" "+e).trim()}removeClass(t,e){t.classList?t.classList.remove(e):t.className=t.className.split(/ /).filter((t=>t!==e)).join(" ")}hasClass(t,e){return t.classList?t.classList.contains(e):t.className.split(/ /).includes(e)}setStyle(t,e,s){t.style[e]=String(s).replace(/\n/g," ")}getStyle(t,e){return t.style[e]}allStyles(t){return t.style.cssText}insertRules(t,e){for(const s of e)try{t.sheet.insertRule(s,t.sheet.cssRules.length)}catch(t){console.warn(`MathJax: can't insert css rule '${s}': ${t.message}`)}}cssText(t){return"style"!==this.kind(t)?"":Array.from(t.sheet.cssRules).map((t=>t.cssText)).join("\n")}fontSize(t){const e=this.window.getComputedStyle(t);return parseFloat(e.fontSize||String(this.constructor.DEFAULT_FONT_SIZE))}fontFamily(t){return this.window.getComputedStyle(t).fontFamily||""}nodeSize(t,e=1,s=!1){if(s&&t.getBBox){const{width:s,height:i}=t.getBBox();return[s/e,i/e]}return[t.offsetWidth/e,t.offsetHeight/e]}nodeBBox(t){const{left:e,right:s,top:i,bottom:r}=t.getBoundingClientRect();return{left:e,right:s,top:i,bottom:r}}createWorker(t,e){return Wt(this,void 0,void 0,(function*(){const{path:s,maps:i,worker:r}=e,n=`${s}/${r}`,o=`\n self.maps = '${Ht(i)}';\n importScripts('${Ht(n)}');\n `,a=URL.createObjectURL(new Blob([o],{type:"text/javascript"})),l=new Worker(a);return l.onmessage=t,URL.revokeObjectURL(a),l}))}}function Ht(t){return[...t].map((t=>("\\"===t||"'"===t?t="\\"+t:(t<" "||t>"~")&&(t=`\\u{${t.codePointAt(0).toString(16)}}`),t))).join("")}function Ft(){return new jt(window)}jt.DEFAULT_FONT_SIZE=16;const zt={}.constructor;function Xt(t){return"object"==typeof t&&null!==t&&(t.constructor===zt||t.constructor===$t)}const qt="[+]",Kt="[-]",Jt={invalidOption:"warn",optionError:(t,e)=>{if("fatal"===Jt.invalidOption)throw new Error(t);console.warn("MathJax: "+t)}};class $t{}function Ut(t){return Object.assign(Object.create($t.prototype),t)}function Gt(t){return Array.isArray(t)?t:[t]}function _t(t){return t?Object.keys(t).concat(Object.getOwnPropertySymbols(t)):[]}function Vt(t){const e={};for(const s of _t(t)){const i=Object.getOwnPropertyDescriptor(t,s),r=i.value;Array.isArray(r)?i.value=Yt([],r,!1):Xt(r)&&(i.value=Vt(r)),i.enumerable&&(e[s]=i)}return Object.defineProperties(t.constructor===$t?Ut({}):{},e)}function Yt(t,e,s=!0){for(let i of _t(e)){if(s&&void 0===t[i]&&t.constructor!==$t){"symbol"==typeof i&&(i=i.toString()),Jt.optionError(`Invalid option "${i}" (no default value).`,i);continue}const r=e[i];let n=t[i];if(!Xt(r)||null===n||"object"!=typeof n&&"function"!=typeof n)Array.isArray(r)?(t[i]=[],Yt(t[i],r,!1)):Xt(r)?t[i]=Vt(r):t[i]=r;else{const e=_t(r);Array.isArray(n)&&(1===e.length&&(e[0]===qt||e[0]===Kt)&&Array.isArray(r[e[0]])||2===e.length&&e.sort().join(",")===qt+","+Kt&&Array.isArray(r[qt])&&Array.isArray(r[Kt]))?(r[Kt]&&(n=t[i]=n.filter((t=>r[Kt].indexOf(t)<0))),r[qt]&&(t[i]=[...n,...r[qt]])):Yt(n,r,s)}}return t}function Zt(t,...e){return e.forEach((e=>Yt(t,e,!1))),t}function Qt(t,...e){return e.forEach((e=>Yt(t,e,!0))),t}function te(t,...e){const s={};for(const i of e)Object.hasOwn(t,i)&&(s[i]=t[i]);return s}function ee(t,e){return te(t,...Object.keys(e))}function se(t,...e){const s=[];for(const i of e){const e={},r={};for(const s of Object.keys(t||{}))(void 0===i[s]?r:e)[s]=t[s];s.push(e),t=r}return s.unshift(t),s}function ie(t,e,s=null){return Object.hasOwn(e,t)?e[t]:s}class re{constructor(t){const e=this.constructor;this.options=Qt(Zt({},e.OPTIONS),t)}}re.OPTIONS={};class ne{constructor(){this.items=[],this.items=[]}[Symbol.iterator](){let t=0;const e=this.items;return{next:()=>({value:e[t++],done:t>e.length})}}add(t,e=ne.DEFAULTPRIORITY){let s=this.items.length;do{s--}while(s>=0&&e<this.items[s].priority);return this.items.splice(s+1,0,{item:t,priority:e}),t}remove(t){let e=this.items.length;do{e--}while(e>=0&&this.items[e].item!==t);return e>=0&&this.items.splice(e,1),this}}ne.DEFAULTPRIORITY=5;class oe extends ne{constructor(t=null){super(),t&&this.addList(t)}addList(t){for(const e of t)Array.isArray(e)?this.add(e[0],e[1]):this.add(e)}execute(...t){for(const e of this){if(!1===e.item(...t))return!1}return!0}asyncExecute(...t){let e=-1;const s=this.items;return new Promise(((i,r)=>{!function n(){for(;++e<s.length;){const o=s[e].item(...t);if(o instanceof Promise)return void o.then(n).catch((t=>r(t)));if(!1===o)return void i(!1)}i(!0)}()}))}}class ae{constructor(t={}){this.adaptor=null,this.mmlFactory=null;const e=this.constructor;this.options=Qt(Zt({},e.OPTIONS),t),this.preFilters=new oe(this.options.preFilters),this.postFilters=new oe(this.options.postFilters)}get name(){return this.constructor.NAME}setAdaptor(t){this.adaptor=t}setMmlFactory(t){this.mmlFactory=t}initialize(){}reset(...t){}get processStrings(){return!0}findMath(t,e){return[]}executeFilters(t,e,s,i){const r={math:e,document:s,data:i};return t.execute(r),r.data}}ae.NAME="generic",ae.OPTIONS={preFilters:[],postFilters:[]};class le{constructor(t={}){this.adaptor=null;const e=this.constructor;this.options=Qt(Zt({},e.OPTIONS),t),this.preFilters=new oe(this.options.preFilters),this.postFilters=new oe(this.options.postFilters)}get name(){return this.constructor.NAME}setAdaptor(t){this.adaptor=t}initialize(){}reset(...t){}getMetrics(t){}styleSheet(t){return null}pageElements(t){return null}executeFilters(t,e,s,i){const r={math:e,document:s,data:i};return t.execute(r),r.data}}le.NAME="generic",le.OPTIONS={preFilters:[],postFilters:[]};const he=Symbol();class de{constructor(t=null){this.next=null,this.prev=null,this.data=t}}class ce{constructor(...t){this.list=new de(he),this.list.next=this.list.prev=this.list,this.push(...t)}isBefore(t,e){return t<e}push(...t){for(const e of t){const t=new de(e);t.next=this.list,t.prev=this.list.prev,this.list.prev=t,t.prev.next=t}return this}pop(){const t=this.list.prev;return t.data===he?null:(this.list.prev=t.prev,t.prev.next=this.list,t.next=t.prev=null,t.data)}unshift(...t){for(const e of t.slice(0).reverse()){const t=new de(e);t.next=this.list.next,t.prev=this.list,this.list.next=t,t.next.prev=t}return this}shift(){const t=this.list.next;return t.data===he?null:(this.list.next=t.next,t.next.prev=this.list,t.next=t.prev=null,t.data)}remove(...t){const e=new Map;for(const s of t)e.set(s,!0);let s=this.list.next;for(;s.data!==he;){const t=s.next;e.has(s.data)&&(s.prev.next=s.next,s.next.prev=s.prev,s.next=s.prev=null),s=t}return this}clear(){return this.list.next.prev=this.list.prev.next=null,this.list.next=this.list.prev=this.list,this}*[Symbol.iterator](){let t=this.list.next;for(;t.data!==he;)yield t.data,t=t.next}*reversed(){let t=this.list.prev;for(;t.data!==he;)yield t.data,t=t.prev}insert(t,e=null){null===e&&(e=this.isBefore.bind(this));const s=new de(t);let i=this.list.next;for(;i.data!==he&&e(i.data,s.data);)i=i.next;return s.prev=i.prev,s.next=i,i.prev.next=i.prev=s,this}sort(t=null){null===t&&(t=this.isBefore.bind(this));const e=[];for(const t of this)e.push(new ce(t));for(this.list.next=this.list.prev=this.list;e.length>1;){const s=e.shift(),i=e.shift();s.merge(i,t),e.push(s)}return e.length&&(this.list=e[0].list),this}merge(t,e=null){null===e&&(e=this.isBefore.bind(this));let s=this.list.next,i=t.list.next;for(;s.data!==he&&i.data!==he;)e(i.data,s.data)?([i.prev.next,s.prev.next]=[s,i],[i.prev,s.prev]=[s.prev,i.prev],[this.list.prev.next,t.list.prev.next]=[t.list,this.list],[this.list.prev,t.list.prev]=[t.list.prev,this.list.prev],[s,i]=[i.next,s]):s=s.next;return i.data!==he&&(this.list.prev.next=t.list.next,t.list.next.prev=this.list.prev,t.list.prev.next=this.list,this.list.prev=t.list.prev,t.list.next=t.list.prev=t.list),this}}class ue extends ce{isBefore(t,e){return t.start.i<e.start.i||t.start.i===e.start.i&&t.start.n<e.start.n}}function Ee(t,e,s,i,r,n,o=null){return{open:t,math:e,close:s,n:i,start:{n:r},end:{n},display:o}}class pe{get isEscaped(){return null===this.display}constructor(t,e,s=!0,i={i:0,n:0,delim:""},r={i:0,n:0,delim:""}){this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={},this._state=me.UNPROCESSED,this.math=t,this.inputJax=e,this.display=s,this.start=i,this.end=r,this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={}}render(t){t.renderActions.renderMath(this,t)}rerender(t,e=me.RERENDER){this.state()>=e&&this.state(e-1),t.renderActions.renderMath(this,t,e)}convert(t,e=me.LAST){t.renderActions.renderConvert(this,t,e)}compile(t){this.state()<me.COMPILED&&(this.root=this.inputJax.compile(this,t),this.state(me.COMPILED))}typeset(t){this.state()<me.TYPESET&&(this.typesetRoot=t.outputJax[this.isEscaped?"escaped":"typeset"](this,t),this.state(me.TYPESET))}updateDocument(t){}removeFromDocument(t=!1){this.clear()}setMetrics(t,e,s,i){this.metrics={em:t,ex:e,containerWidth:s,scale:i}}state(t=null,e=!1){return null!=t&&(t<me.INSERTED&&this._state>=me.INSERTED&&this.removeFromDocument(e),t<me.TYPESET&&this._state>=me.TYPESET&&(this.outputData={}),t<me.COMPILED&&this._state>=me.COMPILED&&(this.inputData={}),this._state=t),this._state}reset(t=!1){this.state(me.UNPROCESSED,t)}clear(){}}const me={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4};function ge(t,e){if(t in me)throw Error("State "+t+" already exists");me[t]=e}class Re{constructor(t=null){this.defaultKind="unknown",this.nodeMap=new Map,this.node={},null===t&&(t=this.constructor.defaultNodes);for(const e of Object.keys(t))this.setNodeClass(e,t[e])}create(t,...e){return(this.node[t]||this.node[this.defaultKind])(...e)}setNodeClass(t,e){this.nodeMap.set(t,e);const s=this.nodeMap.get(t);this.node[t]=(...t)=>new s(this,...t)}getNodeClass(t){return this.nodeMap.get(t)}deleteNodeClass(t){this.nodeMap.delete(t),delete this.node[t]}nodeIsKind(t,e){return t instanceof this.getNodeClass(e)}getKinds(){return Array.from(this.nodeMap.keys())}}Re.defaultNodes={};class fe extends Re{create(t,e={},s=[]){return this.node[t](e,s)}}const Le="_inherit_";class be{constructor(t,e){this.global=e,this.defaults=Object.create(e),this.inherited=Object.create(this.defaults),this.attributes=Object.create(this.inherited),Object.assign(this.defaults,t)}set(t,e){this.attributes[t]=e}setList(t){Object.assign(this.attributes,t)}unset(t){delete this.attributes[t]}get(t){let e=this.attributes[t];return e===Le&&(e=this.global[t]),e}getExplicit(t){return this.hasExplicit(t)?this.attributes[t]:void 0}hasExplicit(t){return Object.hasOwn(this.attributes,t)}hasOneOf(t){for(const e of t)if(this.hasExplicit(e))return!0;return!1}getList(...t){const e={};for(const s of t)e[s]=this.get(s);return e}setInherited(t,e){this.inherited[t]=e}getInherited(t){return this.inherited[t]}getDefault(t){return this.defaults[t]}isSet(t){return Object.hasOwn(this.attributes,t)||Object.hasOwn(this.inherited,t)}hasDefault(t){return t in this.defaults}getExplicitNames(){return Object.keys(this.attributes)}getInheritedNames(){return Object.keys(this.inherited)}getDefaultNames(){return Object.keys(this.defaults)}getGlobalNames(){return Object.keys(this.global)}getAllAttributes(){return this.attributes}getAllInherited(){return this.inherited}getAllDefaults(){return this.defaults}getAllGlobals(){return this.global}}class ye{constructor(t,e={},s=[]){this.factory=t,this.parent=null,this.properties={},this.childNodes=[];for(const t of Object.keys(e))this.setProperty(t,e[t]);s.length&&this.setChildren(s)}get kind(){return"unknown"}setProperty(t,e){this.properties[t]=e}getProperty(t){return this.properties[t]}getPropertyNames(){return Object.keys(this.properties)}getAllProperties(){return this.properties}removeProperty(...t){for(const e of t)delete this.properties[e]}isKind(t){return this.factory.nodeIsKind(this,t)}setChildren(t){this.childNodes=[];for(const e of t)this.appendChild(e)}appendChild(t){return this.childNodes.push(t),t.parent=this,t}replaceChild(t,e){const s=this.childIndex(e);return null!==s&&(this.childNodes[s]=t,t.parent=this,e.parent===this&&(e.parent=null)),t}removeChild(t){const e=this.childIndex(t);return null!==e&&(this.childNodes.splice(e,1),t.parent=null),t}childIndex(t){const e=this.childNodes.indexOf(t);return-1===e?null:e}copy(){const t=this.factory.create(this.kind);t.properties=Object.assign({},this.properties);for(const e of this.childNodes||[])e&&t.appendChild(e.copy());return t}findNodes(t){const e=[];return this.walkTree((s=>{s.isKind(t)&&e.push(s)})),e}walkTree(t,e){t(this,e);for(const s of this.childNodes)s&&s.walkTree(t,e);return e}toString(){return this.kind+"("+this.childNodes.join(",")+")"}}class Ne extends ye{setChildren(t){}appendChild(t){return t}replaceChild(t,e){return e}childIndex(t){return null}walkTree(t,e){return t(this,e),e}toString(){return this.kind}}const xe={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,NONE:-1},Ie=["ORD","OP","BIN","REL","OPEN","CLOSE","PUNCT","INNER"],Te=["","thinmathspace","mediummathspace","thickmathspace"],Ce=[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]],De=new Set(["normal","bold","italic","bold-italic","double-struck","fraktur","bold-fraktur","script","bold-script","sans-serif","bold-sans-serif","sans-serif-italic","sans-serif-bold-italic","monospace","inital","tailed","looped","stretched"]),Oe=["indentalign","indentalignfirst","indentshift","indentshiftfirst"];class ve extends ye{constructor(t,e={},s=[]){super(t),this.prevClass=null,this.prevLevel=null,this.texclass=null,this.arity<0&&(this.childNodes=[t.create("inferredMrow")],this.childNodes[0].parent=this),this.setChildren(s),this.attributes=new be(t.getNodeClass(this.kind).defaults,t.getNodeClass("math").defaults),this.attributes.setList(e)}copy(t=!1){const e=this.factory.create(this.kind);if(e.properties=Object.assign({},this.properties),this.attributes){const s=this.attributes.getAllAttributes();for(const i of Object.keys(s))("id"!==i||t)&&e.attributes.set(i,s[i])}if(this.childNodes&&this.childNodes.length){let t=this.childNodes;1===t.length&&t[0].isInferred&&(t=t[0].childNodes);for(const s of t)s?e.appendChild(s.copy()):e.childNodes.push(null)}return e}get texClass(){return this.texclass}set texClass(t){this.texclass=t}get isToken(){return!1}get isEmbellished(){return!1}get isSpacelike(){return!1}get linebreakContainer(){return!1}get linebreakAlign(){return"data-align"}get arity(){return 1/0}get isInferred(){return!1}get Parent(){let t=this.parent;for(;t&&t.notParent;)t=t.Parent;return t}get notParent(){return!1}setChildren(t){return this.arity<0?this.childNodes[0].setChildren(t):super.setChildren(t)}appendChild(t){if(this.arity<0)return this.childNodes[0].appendChild(t),t;if(t.isInferred){if(this.arity===1/0)return t.childNodes.forEach((t=>super.appendChild(t))),t;const e=t;(t=this.factory.create("mrow")).setChildren(e.childNodes),t.attributes=e.attributes;for(const s of e.getPropertyNames())t.setProperty(s,e.getProperty(s))}return super.appendChild(t)}replaceChild(t,e){return this.arity<0?(this.childNodes[0].replaceChild(t,e),t):super.replaceChild(t,e)}core(){return this}coreMO(){return this}coreIndex(){return 0}childPosition(){let t=null,e=this.parent;for(;e&&e.notParent;)t=e,e=e.parent;if(t=t||this,e){let s=0;for(const i of e.childNodes){if(i===t)return s;s++}}return null}setTeXclass(t){return this.getPrevClass(t),null!=this.texClass?this:t}updateTeXclass(t){t&&(this.prevClass=t.prevClass,this.prevLevel=t.prevLevel,t.prevClass=t.prevLevel=null,this.texClass=t.texClass)}getPrevClass(t){t&&(this.prevClass=t.texClass,this.prevLevel=t.attributes.get("scriptlevel"))}texSpacing(){const t=null!=this.prevClass?this.prevClass:xe.NONE,e=this.texClass||xe.ORD;if(t===xe.NONE||e===xe.NONE)return"";const s=Ce[t][e];return(this.prevLevel>0||this.attributes.get("scriptlevel")>0)&&s>=0?"":Te[Math.abs(s)]}hasSpacingAttributes(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()}setInheritedAttributes(t={},e=!1,s=0,i=!1){var r,n,o;const a=this.attributes.getAllDefaults();for(const e of Object.keys(t)){if(Object.hasOwn(a,e)||Object.hasOwn(ve.alwaysInherit,e)){const[s,i]=t[e];(null===(n=null===(r=ve.noInherit[s])||void 0===r?void 0:r[this.kind])||void 0===n?void 0:n[e])||this.attributes.setInherited(e,i)}(null===(o=ve.stopInherit[this.kind])||void 0===o?void 0:o[e])&&delete(t=Object.assign({},t))[e]}void 0===this.attributes.getExplicit("displaystyle")&&this.attributes.setInherited("displaystyle",e);void 0===this.attributes.getExplicit("scriptlevel")&&this.attributes.setInherited("scriptlevel",s),i&&this.setProperty("texprimestyle",i);const l=this.arity;if(l>=0&&l!==1/0&&(1===l&&0===this.childNodes.length||1!==l&&this.childNodes.length!==l))if(l<this.childNodes.length)this.childNodes=this.childNodes.slice(0,l);else for(;this.childNodes.length<l;)this.appendChild(this.factory.create("mrow"));if(this.linebreakContainer&&!this.isEmbellished){const e=this.linebreakAlign;if(e){const s=this.attributes.get(e)||"left";t=this.addInheritedAttributes(t,{indentalign:s,indentshift:"0",indentalignfirst:s,indentshiftfirst:"0",indentalignlast:"indentalign",indentshiftlast:"indentshift"})}}this.setChildInheritedAttributes(t,e,s,i)}setChildInheritedAttributes(t,e,s,i){for(const r of this.childNodes)r.setInheritedAttributes(t,e,s,i)}addInheritedAttributes(t,e){const s=Object.assign({},t);for(const t of Object.keys(e))"displaystyle"!==t&&"scriptlevel"!==t&&"style"!==t&&(s[t]=[this.kind,e[t]]);return s}inheritAttributesFrom(t){const e=t.attributes,s=e.get("displaystyle"),i=e.get("scriptlevel"),r=e.isSet("mathsize")?{mathsize:["math",e.get("mathsize")]}:{},n=t.getProperty("texprimestyle")||!1;this.setInheritedAttributes(r,s,i,n)}verifyTree(t=null){if(null===t)return;this.verifyAttributes(t);const e=this.arity;t.checkArity&&e>=0&&e!==1/0&&(1===e&&0===this.childNodes.length||1!==e&&this.childNodes.length!==e)&&this.mError('Wrong number of children for "'+this.kind+'" node',t,!0),this.verifyChildren(t)}verifyAttributes(t){if(t.checkAttributes){const e=this.attributes,s=[];for(const t of e.getExplicitNames())"data-"===t.substring(0,5)||void 0!==e.getDefault(t)||t.match(/^(?:class|style|id|(?:xlink:)?href)$/)||s.push(t);s.length&&this.mError("Unknown attributes for "+this.kind+" node: "+s.join(", "),t)}if(t.checkMathvariants){const e=this.attributes.getExplicit("mathvariant");!e||De.has(e)||this.getProperty("ignore-variant")||this.mError(`Invalid mathvariant: ${e}`,t,!0)}}verifyChildren(t){for(const e of this.childNodes)e.verifyTree(t)}mError(t,e,s=!1){if(this.parent&&this.parent.isKind("merror"))return null;const i=this.factory.create("merror");if(i.attributes.set("data-mjx-message",t),e.fullErrors||s){const s=this.factory.create("mtext"),r=this.factory.create("text");r.setText(e.fullErrors?t:this.kind),s.appendChild(r),i.appendChild(s),this.parent.replaceChild(i,this),e.fullErrors||i.attributes.set("title",t)}else this.parent.replaceChild(i,this),i.appendChild(this);return i}}ve.defaults={mathbackground:Le,mathcolor:Le,mathsize:Le,dir:Le},ve.noInherit={mstyle:{mpadded:{width:!0,height:!0,depth:!0,lspace:!0,voffset:!0},mtable:{width:!0,height:!0,depth:!0,align:!0}},maligngroup:{mrow:{groupalign:!0},mtable:{groupalign:!0}},mtr:{msqrt:{"data-vertical-align":!0},mroot:{"data-vertical-align":!0}},mlabeledtr:{msqrt:{"data-vertical-align":!0},mroot:{"data-vertical-align":!0}}},ve.stopInherit={mtd:{columnalign:!0,rowalign:!0,groupalign:!0}},ve.alwaysInherit={scriptminsize:!0,scriptsizemultiplier:!0,infixlinebreakstyle:!0},ve.verifyDefaults={checkArity:!0,checkAttributes:!1,checkMathvariants:!0,fullErrors:!1,fixMmultiscripts:!0,fixMtables:!0};class Ae extends ve{get isToken(){return!0}getText(){let t="";for(const e of this.childNodes)e instanceof Me?t+=e.getText():"textContent"in e&&(t+=e.textContent());return t}setChildInheritedAttributes(t,e,s,i){for(const r of this.childNodes)r instanceof ve&&r.setInheritedAttributes(t,e,s,i)}walkTree(t,e){t(this,e);for(const s of this.childNodes)s instanceof ve&&s.walkTree(t,e);return e}}Ae.defaults=Object.assign(Object.assign({},ve.defaults),{mathvariant:"normal",mathsize:Le});class Se extends ve{get isSpacelike(){return this.childNodes[0].isSpacelike}get isEmbellished(){return this.childNodes[0].isEmbellished}get arity(){return-1}core(){return this.childNodes[0]}coreMO(){return this.childNodes[0].coreMO()}setTeXclass(t){return t=this.childNodes[0].setTeXclass(t),this.updateTeXclass(this.childNodes[0]),t}}Se.defaults=ve.defaults;class we extends ve{get isEmbellished(){return this.childNodes[0].isEmbellished}core(){return this.childNodes[0]}coreMO(){return this.childNodes[0].coreMO()}setTeXclass(t){this.getPrevClass(t),this.texClass=xe.ORD;const e=this.childNodes[0];let s=null;e&&(this.isEmbellished||e.isKind("mi")?(s=e.setTeXclass(t),this.updateTeXclass(this.core())):e.isKind("TeXAtom")?this.texClass=e.texClass:e.setTeXclass(null));for(const t of this.childNodes.slice(1))t&&t.setTeXclass(null);return s||this}}we.defaults=ve.defaults;class ke extends Ne{get isToken(){return!1}get isEmbellished(){return!1}get isSpacelike(){return!1}get linebreakContainer(){return!1}get linebreakAlign(){return""}get arity(){return 0}get isInferred(){return!1}get notParent(){return!1}get Parent(){return this.parent}get texClass(){return xe.NONE}get prevClass(){return xe.NONE}get prevLevel(){return 0}hasSpacingAttributes(){return!1}get attributes(){return null}core(){return this}coreMO(){return this}coreIndex(){return 0}childPosition(){return 0}setTeXclass(t){return t}texSpacing(){return""}setInheritedAttributes(t,e,s,i){}inheritAttributesFrom(t){}verifyTree(t){}mError(t,e,s=!1){return null}}class Me extends ke{constructor(){super(...arguments),this.text=""}get kind(){return"text"}getText(){return this.text}setText(t){return this.text=t,this}copy(){return this.factory.create(this.kind).setText(this.getText())}toString(){return this.text}}class Pe extends ke{constructor(){super(...arguments),this.xml=null,this.adaptor=null}get kind(){return"XML"}getXML(){return this.xml}setXML(t,e=null){return this.xml=t,this.adaptor=e,this}getSerializedXML(){return this.adaptor.serializeXML(this.xml)}copy(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))}toString(){return"XML data"}}class Be extends Se{get kind(){return"math"}get linebreakContainer(){return!0}get linebreakAlign(){return""}setChildInheritedAttributes(t,e,s,i){"display"===this.attributes.get("mode")&&this.attributes.setInherited("display","block"),t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),e=!!this.attributes.get("displaystyle")||!this.attributes.get("displaystyle")&&"block"===this.attributes.get("display"),this.attributes.setInherited("displaystyle",e),s=this.attributes.get("scriptlevel")||this.constructor.defaults.scriptlevel,super.setChildInheritedAttributes(t,e,s,i)}verifyTree(t=null){super.verifyTree(t),this.parent&&this.mError("Improper nesting of math tags",t,!0)}}Be.defaults=Object.assign(Object.assign({},Se.defaults),{mathvariant:"normal",mathsize:"normal",mathcolor:"",mathbackground:"transparent",dir:"ltr",scriptlevel:0,displaystyle:!1,display:"inline",maxwidth:"",overflow:"linebreak",altimg:"","altimg-width":"","altimg-height":"","altimg-valign":"",alttext:"",cdgroup:"",scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:".4em",infixlinebreakstyle:"before",lineleading:"100%",linebreakmultchar:"\u2062",indentshift:"auto",indentalign:"auto",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"});class We extends Ae{constructor(){super(...arguments),this.texclass=xe.ORD}get kind(){return"mi"}setInheritedAttributes(t={},e=!1,s=0,i=!1){super.setInheritedAttributes(t,e,s,i);this.getText().match(We.singleCharacter)&&!t.mathvariant&&this.attributes.setInherited("mathvariant","italic")}setTeXclass(t){this.getPrevClass(t);const e=this.getText();return e.length>1&&e.match(We.operatorName)&&"normal"===this.attributes.get("mathvariant")&&void 0===this.getProperty("autoOP")&&void 0===this.getProperty("texClass")&&(this.texClass=xe.OP,this.setProperty("autoOP",!0)),this}}We.defaults=Object.assign({},Ae.defaults),We.operatorName=/^[a-z][a-z0-9]*$/i,We.singleCharacter=/^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/;class je extends Ae{constructor(){super(...arguments),this.texclass=xe.ORD}get kind(){return"mn"}}function He(t,e,s=xe.BIN,i=null){return[t,e,s,i]}je.defaults=Object.assign({},Ae.defaults);const Fe={REL:He(5,5,xe.REL),WIDEREL:He(5,5,xe.REL,{accent:!0,stretchy:!0}),BIN4:He(4,4,xe.BIN),RELSTRETCH:He(5,5,xe.REL,{stretchy:!0}),ORD:He(0,0,xe.ORD),BIN3:He(3,3,xe.BIN),OPEN:He(0,0,xe.OPEN,{fence:!0,stretchy:!0,symmetric:!0}),CLOSE:He(0,0,xe.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}),INTEGRAL:He(3,3,xe.OP,{largeop:!0,symmetric:!0}),ACCENT:He(0,0,xe.ORD,{accent:!0}),WIDEACCENT:He(0,0,xe.ORD,{accent:!0,stretchy:!0}),OP:He(3,3,xe.OP,{largeop:!0,movablelimits:!0,symmetric:!0}),RELACCENT:He(5,5,xe.REL,{accent:!0}),BIN0:He(0,0,xe.BIN),BIN5:He(5,5,xe.BIN),FENCE:He(0,0,xe.ORD,{fence:!0,stretchy:!0,symmetric:!0}),INNER:He(1,1,xe.INNER),ORD30:He(3,0,xe.ORD),NONE:He(0,0,xe.NONE),ORDSTRETCH0:He(0,0,xe.ORD,{stretchy:!0}),BINSTRETCH0:He(0,0,xe.BIN,{stretchy:!0}),RELSTRETCH0:He(0,0,xe.REL,{stretchy:!0}),CLOSE0:He(0,0,xe.CLOSE,{fence:!0}),ORD3:He(3,3,xe.ORD),PUNCT03:He(0,3,xe.PUNCT,{linebreakstyle:"after"}),OPEN0:He(0,0,xe.OPEN,{fence:!0}),STRETCH4:He(4,4,xe.BIN,{stretchy:!0})},ze=[[32,127,xe.REL,"mo"],[160,191,xe.ORD,"mo"],[192,591,xe.ORD,"mi"],[688,879,xe.ORD,"mo"],[880,6688,xe.ORD,"mi"],[6832,6911,xe.ORD,"mo"],[6912,7615,xe.ORD,"mi"],[7616,7679,xe.ORD,"mo"],[7680,8191,xe.ORD,"mi"],[8192,8303,xe.ORD,"mo"],[8304,8351,xe.ORD,"mo"],[8448,8527,xe.ORD,"mi"],[8528,8591,xe.ORD,"mn"],[8592,8703,xe.REL,"mo"],[8704,8959,xe.BIN,"mo"],[8960,9215,xe.ORD,"mo"],[9312,9471,xe.ORD,"mn"],[9472,10223,xe.ORD,"mo"],[10224,10239,xe.REL,"mo"],[10240,10495,xe.ORD,"mtext"],[10496,10623,xe.REL,"mo"],[10624,10751,xe.ORD,"mo"],[10752,11007,xe.BIN,"mo"],[11008,11055,xe.ORD,"mo"],[11056,11087,xe.REL,"mo"],[11088,11263,xe.ORD,"mo"],[11264,11744,xe.ORD,"mi"],[11776,11903,xe.ORD,"mo"],[11904,12255,xe.ORD,"mi","normal"],[12272,12351,xe.ORD,"mo"],[12352,42143,xe.ORD,"mi","normal"],[42192,43055,xe.ORD,"mi"],[43056,43071,xe.ORD,"mn"],[43072,55295,xe.ORD,"mi"],[63744,64255,xe.ORD,"mi","normal"],[64256,65023,xe.ORD,"mi"],[65024,65135,xe.ORD,"mo"],[65136,65791,xe.ORD,"mi"],[65792,65935,xe.ORD,"mn"],[65936,74751,xe.ORD,"mi","normal"],[74752,74879,xe.ORD,"mn"],[74880,113823,xe.ORD,"mi","normal"],[113824,119391,xe.ORD,"mo"],[119648,119679,xe.ORD,"mn"],[119808,120781,xe.ORD,"mi"],[120782,120831,xe.ORD,"mn"],[122624,129023,xe.ORD,"mo"],[129024,129279,xe.REL,"mo"],[129280,129535,xe.ORD,"mo"],[131072,195103,xe.ORD,"mi","normal"]];function Xe(t){const e=Ke.infix[t]||Ke.prefix[t]||Ke.postfix[t];if(e)return[0,0,e[2],"mo"];const s=t.codePointAt(0);for(const t of ze)if(s<=t[1]){if(s>=t[0])return t;break}return[0,0,xe.REL,"mo"]}const qe=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3],[1,1]],Ke={prefix:{"!":Fe.ORD,"(":Fe.OPEN,"+":Fe.BIN0,"-":Fe.BIN0,"[":Fe.OPEN,"{":Fe.OPEN,"|":Fe.OPEN,"||":Fe.BIN0,"\xac":Fe.ORD,"\xb1":Fe.BIN0,"\u2016":Fe.FENCE,"\u2018":Fe.OPEN0,"\u201c":Fe.OPEN0,\u2145:Fe.ORD30,\u2146:Fe.ORD30,"\u2200":Fe.ORD,"\u2201":Fe.ORD,"\u2202":Fe.ORD30,"\u2203":Fe.ORD,"\u2204":Fe.ORD,"\u2207":Fe.ORD,"\u220f":Fe.OP,"\u2210":Fe.OP,"\u2211":Fe.OP,"\u2212":Fe.BIN0,"\u2213":Fe.BIN0,"\u221a":[3,0,xe.ORD,{stretchy:!0}],"\u221b":Fe.ORD30,"\u221c":Fe.ORD30,"\u221f":Fe.ORD,"\u2220":Fe.ORD,"\u2221":Fe.ORD,"\u2222":Fe.ORD,"\u222b":Fe.INTEGRAL,"\u222c":Fe.INTEGRAL,"\u222d":Fe.INTEGRAL,"\u222e":Fe.INTEGRAL,"\u222f":Fe.INTEGRAL,"\u2230":Fe.INTEGRAL,"\u2231":Fe.INTEGRAL,"\u2232":Fe.INTEGRAL,"\u2233":Fe.INTEGRAL,"\u2234":Fe.REL,"\u2235":Fe.REL,"\u223c":[0,0,xe.REL,{}],"\u22be":Fe.ORD,"\u22bf":Fe.ORD,"\u22c0":Fe.OP,"\u22c1":Fe.OP,"\u22c2":Fe.OP,"\u22c3":Fe.OP,"\u2308":Fe.OPEN,"\u230a":Fe.OPEN,"\u2310":Fe.ORD,"\u2319":Fe.ORD,"\u2772":Fe.OPEN,"\u2795":Fe.ORD,"\u2796":Fe.ORD,"\u27c0":Fe.ORD,"\u27e6":Fe.OPEN,"\u27e8":Fe.OPEN,"\u27ea":Fe.OPEN,"\u27ec":Fe.OPEN,"\u27ee":Fe.OPEN,"\u2980":Fe.FENCE,"\u2983":Fe.OPEN,"\u2985":Fe.OPEN,"\u2987":Fe.OPEN,"\u2989":Fe.OPEN,"\u298b":Fe.OPEN,"\u298d":Fe.OPEN,"\u298f":Fe.OPEN,"\u2991":Fe.OPEN,"\u2993":Fe.OPEN,"\u2995":Fe.OPEN,"\u2997":Fe.OPEN,"\u2999":Fe.FENCE,"\u299b":Fe.ORD,"\u299c":Fe.ORD,"\u299d":Fe.ORD,"\u299e":Fe.ORD,"\u299f":Fe.ORD,"\u29a0":Fe.ORD,"\u29a1":Fe.ORD,"\u29a2":Fe.ORD,"\u29a3":Fe.ORD,"\u29a4":Fe.ORD,"\u29a5":Fe.ORD,"\u29a6":Fe.ORD,"\u29a7":Fe.ORD,"\u29a8":Fe.ORD,"\u29a9":Fe.ORD,"\u29aa":Fe.ORD,"\u29ab":Fe.ORD,"\u29ac":Fe.ORD,"\u29ad":Fe.ORD,"\u29ae":Fe.ORD,"\u29af":Fe.ORD,"\u29d8":Fe.OPEN,"\u29da":Fe.OPEN,"\u29fc":Fe.OPEN,"\u2a00":Fe.OP,"\u2a01":Fe.OP,"\u2a02":Fe.OP,"\u2a03":Fe.OP,"\u2a04":Fe.OP,"\u2a05":Fe.OP,"\u2a06":Fe.OP,"\u2a07":Fe.OP,"\u2a08":Fe.OP,"\u2a09":Fe.OP,"\u2a0a":Fe.OP,"\u2a0b":Fe.INTEGRAL,"\u2a0c":Fe.INTEGRAL,"\u2a0d":Fe.INTEGRAL,"\u2a0e":Fe.INTEGRAL,"\u2a0f":Fe.INTEGRAL,"\u2a10":Fe.INTEGRAL,"\u2a11":Fe.INTEGRAL,"\u2a12":Fe.INTEGRAL,"\u2a13":Fe.INTEGRAL,"\u2a14":Fe.INTEGRAL,"\u2a15":Fe.INTEGRAL,"\u2a16":Fe.INTEGRAL,"\u2a17":Fe.INTEGRAL,"\u2a18":Fe.INTEGRAL,"\u2a19":Fe.INTEGRAL,"\u2a1a":Fe.INTEGRAL,"\u2a1b":Fe.INTEGRAL,"\u2a1c":Fe.INTEGRAL,"\u2a1d":Fe.OP,"\u2a1e":Fe.OP,"\u2aec":Fe.ORD,"\u2aed":Fe.ORD,"\u2afc":Fe.OP,"\u2aff":Fe.OP,"\u3008":Fe.OPEN},postfix:{"!!":Fe.BIN0,"!":Fe.CLOSE0,'"':Fe.ORD,"%":Fe.ORD,"&":Fe.ORD,"'":Fe.ACCENT,")":Fe.CLOSE,"++":Fe.BIN0,"--":Fe.BIN0,"]":Fe.CLOSE,"^":Fe.WIDEACCENT,_:Fe.WIDEACCENT,"`":Fe.ACCENT,"|":Fe.CLOSE,"||":Fe.BIN0,"}":Fe.CLOSE,"~":Fe.WIDEACCENT,"\xa8":Fe.ACCENT,"\xaf":Fe.WIDEACCENT,"\xb0":Fe.ACCENT,"\xb2":Fe.ORD,"\xb3":Fe.ORD,"\xb4":Fe.ACCENT,"\xb8":Fe.ACCENT,"\xb9":Fe.ORD,\u02c6:Fe.WIDEACCENT,\u02c7:Fe.WIDEACCENT,\u02c9:Fe.WIDEACCENT,\u02ca:Fe.ACCENT,\u02cb:Fe.ACCENT,\u02cd:Fe.WIDEACCENT,"\u02d8":Fe.ACCENT,"\u02d9":Fe.ACCENT,"\u02da":Fe.ACCENT,"\u02dc":Fe.WIDEACCENT,"\u02dd":Fe.ACCENT,"\u02f7":Fe.WIDEACCENT,"\u0302":Fe.WIDEACCENT,"\u0311":Fe.ACCENT,"\u2016":Fe.FENCE,"\u2019":Fe.CLOSE0,"\u201a":Fe.ORD,"\u201b":Fe.ORD,"\u201d":Fe.CLOSE0,"\u201e":Fe.ORD,"\u201f":Fe.ORD,"\u2032":Fe.ORD,"\u2033":Fe.ORD,"\u2034":Fe.ORD,"\u2035":Fe.ORD,"\u2036":Fe.ORD,"\u2037":Fe.ORD,"\u203e":Fe.WIDEACCENT,"\u2057":Fe.ORD,"\u20db":Fe.ACCENT,"\u20dc":Fe.ACCENT,"\u2309":Fe.CLOSE,"\u230b":Fe.CLOSE,"\u2322":Fe.RELSTRETCH0,"\u2323":Fe.RELSTRETCH0,"\u23b4":Fe.WIDEACCENT,"\u23b5":Fe.WIDEACCENT,"\u23cd":Fe.ORD,"\u23dc":Fe.WIDEACCENT,"\u23dd":Fe.WIDEACCENT,"\u23de":Fe.WIDEACCENT,"\u23df":Fe.WIDEACCENT,"\u23e0":Fe.WIDEACCENT,"\u23e1":Fe.WIDEACCENT,"\u2773":Fe.CLOSE,"\u27e7":Fe.CLOSE,"\u27e9":Fe.CLOSE,"\u27eb":Fe.CLOSE,"\u27ed":Fe.CLOSE,"\u27ef":Fe.CLOSE,"\u2980":Fe.FENCE,"\u2984":Fe.CLOSE,"\u2986":Fe.CLOSE,"\u2988":Fe.CLOSE,"\u298a":Fe.CLOSE,"\u298c":Fe.CLOSE,"\u298e":Fe.CLOSE,"\u2990":Fe.CLOSE,"\u2992":Fe.CLOSE,"\u2994":Fe.CLOSE,"\u2996":Fe.CLOSE,"\u2998":Fe.CLOSE,"\u2999":Fe.FENCE,"\u29d9":Fe.CLOSE,"\u29db":Fe.CLOSE,"\u29fd":Fe.CLOSE,"\u3009":Fe.CLOSE,"\u{1eef0}":Fe.BINSTRETCH0,"\u{1eef1}":Fe.BINSTRETCH0},infix:{"!":Fe.ORD,"!=":Fe.BIN5,"#":Fe.ORD,$:Fe.ORD,"%":Fe.ORD3,"&&":Fe.BIN4,"**":Fe.BIN3,"*":Fe.BIN3,"*=":Fe.BIN5,"+":Fe.BIN4,"+=":Fe.BIN5,",":Fe.PUNCT03,"":Fe.ORD,"-":Fe.BIN4,"-=":Fe.BIN5,"->":Fe.BIN5,".":Fe.ORD3,"..":Fe.BIN3,"...":Fe.INNER,"/":[4,4,xe.ORD,{}],"//":Fe.BIN5,"/=":Fe.BIN5,":":[0,3,xe.REL,{}],":=":Fe.BIN5,";":Fe.PUNCT03,"<":Fe.REL,"<=":Fe.REL,"<>":[3,3,xe.REL,{}],"=":Fe.REL,"==":Fe.REL,">":Fe.REL,">=":Fe.REL,"?":[3,3,xe.CLOSE,{fence:!0}],"@":Fe.ORD3,"\\":Fe.ORD,"^":[3,3,xe.ORD,{accent:!0,stretchy:!0}],_:Fe.WIDEACCENT,"|":[5,5,xe.ORD,{}],"||":Fe.BIN5,"\xb1":Fe.BIN4,"\xb7":Fe.BIN3,"\xd7":Fe.BIN3,"\xf7":Fe.BIN4,\u02b9:Fe.ORD,"\u0300":Fe.ACCENT,"\u0301":Fe.ACCENT,"\u0303":Fe.WIDEACCENT,"\u0304":Fe.ACCENT,"\u0306":Fe.ACCENT,"\u0307":Fe.ACCENT,"\u0308":Fe.ACCENT,"\u030c":Fe.ACCENT,"\u0332":Fe.WIDEACCENT,"\u0338":Fe.REL,"\u03f6":Fe.REL,"\u2015":Fe.ORDSTRETCH0,"\u2017":Fe.ORDSTRETCH0,"\u2020":Fe.BIN3,"\u2021":Fe.BIN3,"\u2022":Fe.BIN3,"\u2026":Fe.INNER,"\u2043":Fe.BIN3,"\u2044":Fe.STRETCH4,"\u2061":Fe.NONE,"\u2062":Fe.NONE,"\u2063":[0,0,xe.NONE,{linebreakstyle:"after"}],"\u2064":Fe.NONE,"\u20d7":Fe.ACCENT,\u2111:Fe.ORD,\u2113:Fe.ORD,\u2118:Fe.ORD,\u211c:Fe.ORD,"\u2190":Fe.WIDEREL,"\u2191":Fe.RELSTRETCH,"\u2192":Fe.WIDEREL,"\u2193":Fe.RELSTRETCH,"\u2194":Fe.WIDEREL,"\u2195":Fe.RELSTRETCH,"\u2196":Fe.REL,"\u2197":Fe.REL,"\u2198":Fe.REL,"\u2199":Fe.REL,"\u219a":Fe.WIDEREL,"\u219b":Fe.WIDEREL,"\u219c":Fe.WIDEREL,"\u219d":Fe.WIDEREL,"\u219e":Fe.WIDEREL,"\u219f":Fe.RELSTRETCH,"\u21a0":Fe.WIDEREL,"\u21a1":Fe.RELSTRETCH,"\u21a2":Fe.WIDEREL,"\u21a3":Fe.WIDEREL,"\u21a4":Fe.WIDEREL,"\u21a5":Fe.RELSTRETCH,"\u21a6":Fe.WIDEREL,"\u21a7":Fe.RELSTRETCH,"\u21a8":Fe.RELSTRETCH,"\u21a9":Fe.WIDEREL,"\u21aa":Fe.WIDEREL,"\u21ab":Fe.WIDEREL,"\u21ac":Fe.WIDEREL,"\u21ad":Fe.WIDEREL,"\u21ae":Fe.WIDEREL,"\u21af":Fe.REL,"\u21b0":Fe.RELSTRETCH,"\u21b1":Fe.RELSTRETCH,"\u21b2":Fe.RELSTRETCH,"\u21b3":Fe.RELSTRETCH,"\u21b4":Fe.RELSTRETCH,"\u21b5":Fe.RELSTRETCH,"\u21b6":Fe.REL,"\u21b7":Fe.REL,"\u21b8":Fe.REL,"\u21b9":Fe.WIDEREL,"\u21ba":Fe.REL,"\u21bb":Fe.REL,"\u21bc":Fe.WIDEREL,"\u21bd":Fe.WIDEREL,"\u21be":Fe.RELSTRETCH,"\u21bf":Fe.RELSTRETCH,"\u21c0":Fe.WIDEREL,"\u21c1":Fe.WIDEREL,"\u21c2":Fe.RELSTRETCH,"\u21c3":Fe.RELSTRETCH,"\u21c4":Fe.WIDEREL,"\u21c5":Fe.RELSTRETCH,"\u21c6":Fe.WIDEREL,"\u21c7":Fe.WIDEREL,"\u21c8":Fe.RELSTRETCH,"\u21c9":Fe.WIDEREL,"\u21ca":Fe.RELSTRETCH,"\u21cb":Fe.WIDEREL,"\u21cc":Fe.WIDEREL,"\u21cd":Fe.WIDEREL,"\u21ce":Fe.WIDEREL,"\u21cf":Fe.WIDEREL,"\u21d0":Fe.WIDEREL,"\u21d1":Fe.RELSTRETCH,"\u21d2":Fe.WIDEREL,"\u21d3":Fe.RELSTRETCH,"\u21d4":Fe.WIDEREL,"\u21d5":Fe.RELSTRETCH,"\u21d6":Fe.REL,"\u21d7":Fe.REL,"\u21d8":Fe.REL,"\u21d9":Fe.REL,"\u21da":Fe.WIDEREL,"\u21db":Fe.WIDEREL,"\u21dc":Fe.WIDEREL,"\u21dd":Fe.WIDEREL,"\u21de":Fe.RELSTRETCH,"\u21df":Fe.RELSTRETCH,"\u21e0":Fe.WIDEREL,"\u21e1":Fe.RELSTRETCH,"\u21e2":Fe.WIDEREL,"\u21e3":Fe.RELSTRETCH,"\u21e4":Fe.WIDEREL,"\u21e5":Fe.WIDEREL,"\u21e6":Fe.WIDEREL,"\u21e7":Fe.RELSTRETCH,"\u21e8":Fe.WIDEREL,"\u21e9":Fe.RELSTRETCH,"\u21ea":Fe.RELSTRETCH,"\u21eb":Fe.RELSTRETCH,"\u21ec":Fe.RELSTRETCH,"\u21ed":Fe.RELSTRETCH,"\u21ee":Fe.RELSTRETCH,"\u21ef":Fe.RELSTRETCH,"\u21f0":Fe.WIDEREL,"\u21f1":Fe.REL,"\u21f2":Fe.REL,"\u21f3":Fe.RELSTRETCH,"\u21f4":Fe.WIDEREL,"\u21f5":Fe.RELSTRETCH,"\u21f6":Fe.WIDEREL,"\u21f7":Fe.WIDEREL,"\u21f8":Fe.WIDEREL,"\u21f9":Fe.WIDEREL,"\u21fa":Fe.WIDEREL,"\u21fb":Fe.WIDEREL,"\u21fc":Fe.WIDEREL,"\u21fd":Fe.WIDEREL,"\u21fe":Fe.WIDEREL,"\u21ff":Fe.WIDEREL,"\u2205":Fe.ORD,"\u2206":Fe.ORD,"\u2208":Fe.REL,"\u2209":Fe.REL,"\u220a":Fe.REL,"\u220b":Fe.REL,"\u220c":Fe.REL,"\u220d":Fe.REL,"\u2212":Fe.BIN4,"\u2213":Fe.BIN4,"\u2214":Fe.BIN4,"\u2215":Fe.STRETCH4,"\u2216":Fe.BIN4,"\u2217":Fe.BIN3,"\u2218":Fe.BIN3,"\u2219":Fe.BIN3,"\u221d":Fe.REL,"\u221e":Fe.ORD,"\u2223":Fe.REL,"\u2224":Fe.REL,"\u2225":Fe.REL,"\u2226":Fe.REL,"\u2227":Fe.BIN4,"\u2228":Fe.BIN4,"\u2229":Fe.BIN4,"\u222a":Fe.BIN4,"\u2236":Fe.BIN4,"\u2237":Fe.REL,"\u2238":Fe.BIN4,"\u2239":Fe.REL,"\u223a":Fe.REL,"\u223b":Fe.REL,"\u223c":Fe.REL,"\u223d":Fe.REL,"\u223e":Fe.REL,"\u2240":Fe.BIN3,"\u2241":Fe.REL,"\u2242":Fe.REL,"\u2242\u0338":Fe.REL,"\u2243":Fe.REL,"\u2244":Fe.REL,"\u2245":Fe.REL,"\u2246":Fe.REL,"\u2247":Fe.REL,"\u2248":Fe.REL,"\u2249":Fe.REL,"\u224a":Fe.REL,"\u224b":Fe.REL,"\u224c":Fe.REL,"\u224d":Fe.REL,"\u224e":Fe.REL,"\u224f":Fe.REL,"\u2250":Fe.REL,"\u2251":Fe.REL,"\u2252":Fe.REL,"\u2253":Fe.REL,"\u2254":Fe.REL,"\u2255":Fe.REL,"\u2256":Fe.REL,"\u2257":Fe.REL,"\u2258":Fe.REL,"\u2259":Fe.REL,"\u225a":Fe.REL,"\u225b":Fe.REL,"\u225c":Fe.REL,"\u225d":Fe.REL,"\u225e":Fe.REL,"\u225f":Fe.REL,"\u2260":Fe.REL,"\u2261":Fe.REL,"\u2262":Fe.REL,"\u2263":Fe.REL,"\u2264":Fe.REL,"\u2265":Fe.REL,"\u2266":Fe.REL,"\u2266\u0338":Fe.REL,"\u2267":Fe.REL,"\u2267\u0338":Fe.REL,"\u2268":Fe.REL,"\u2269":Fe.REL,"\u226a":Fe.REL,"\u226a\u0338":Fe.REL,"\u226b":Fe.REL,"\u226b\u0338":Fe.REL,"\u226c":Fe.REL,"\u226d":Fe.REL,"\u226e":Fe.REL,"\u226f":Fe.REL,"\u2270":Fe.REL,"\u2271":Fe.REL,"\u2272":Fe.REL,"\u2273":Fe.REL,"\u2274":Fe.REL,"\u2275":Fe.REL,"\u2276":Fe.REL,"\u2277":Fe.REL,"\u2278":Fe.REL,"\u2279":Fe.REL,"\u227a":Fe.REL,"\u227b":Fe.REL,"\u227c":Fe.REL,"\u227d":Fe.REL,"\u227e":Fe.REL,"\u227e\u0338":Fe.REL,"\u227f":Fe.REL,"\u227f\u0338":Fe.REL,"\u2280":Fe.REL,"\u2281":Fe.REL,"\u2282":Fe.REL,"\u2283":Fe.REL,"\u2284":Fe.REL,"\u2285":Fe.REL,"\u2286":Fe.REL,"\u2287":Fe.REL,"\u2288":Fe.REL,"\u2289":Fe.REL,"\u228a":Fe.REL,"\u228b":Fe.REL,"\u228c":Fe.BIN4,"\u228d":Fe.BIN4,"\u228e":Fe.BIN4,"\u228f":Fe.REL,"\u228f\u0338":Fe.REL,"\u2290":Fe.REL,"\u2290\u0338":Fe.REL,"\u2291":Fe.REL,"\u2292":Fe.REL,"\u2293":Fe.BIN4,"\u2294":Fe.BIN4,"\u2295":Fe.BIN4,"\u2296":Fe.BIN4,"\u2297":Fe.BIN3,"\u2298":Fe.BIN4,"\u2299":Fe.BIN3,"\u229a":Fe.BIN3,"\u229b":Fe.BIN3,"\u229c":Fe.REL,"\u229d":Fe.BIN4,"\u229e":Fe.BIN4,"\u229f":Fe.BIN4,"\u22a0":Fe.BIN3,"\u22a1":Fe.BIN3,"\u22a2":Fe.REL,"\u22a3":Fe.REL,"\u22a4":Fe.ORD,"\u22a5":Fe.ORD,"\u22a6":Fe.REL,"\u22a7":Fe.REL,"\u22a8":Fe.REL,"\u22a9":Fe.REL,"\u22aa":Fe.REL,"\u22ab":Fe.REL,"\u22ac":Fe.REL,"\u22ad":Fe.REL,"\u22ae":Fe.REL,"\u22af":Fe.REL,"\u22b0":Fe.REL,"\u22b1":Fe.REL,"\u22b2":Fe.REL,"\u22b3":Fe.REL,"\u22b4":Fe.REL,"\u22b5":Fe.REL,"\u22b6":Fe.REL,"\u22b7":Fe.REL,"\u22b8":Fe.REL,"\u22ba":Fe.BIN3,"\u22bb":Fe.BIN4,"\u22bc":Fe.BIN4,"\u22bd":Fe.BIN4,"\u22c4":Fe.BIN3,"\u22c5":Fe.BIN3,"\u22c6":Fe.BIN3,"\u22c7":Fe.BIN3,"\u22c8":Fe.REL,"\u22c9":Fe.BIN3,"\u22ca":Fe.BIN3,"\u22cb":Fe.BIN3,"\u22cc":Fe.BIN3,"\u22cd":Fe.REL,"\u22ce":Fe.BIN4,"\u22cf":Fe.BIN4,"\u22d0":Fe.REL,"\u22d1":Fe.REL,"\u22d2":Fe.BIN4,"\u22d3":Fe.BIN4,"\u22d4":Fe.REL,"\u22d5":Fe.REL,"\u22d6":Fe.REL,"\u22d7":Fe.REL,"\u22d8":Fe.REL,"\u22d9":Fe.REL,"\u22da":Fe.REL,"\u22db":Fe.REL,"\u22dc":Fe.REL,"\u22dd":Fe.REL,"\u22de":Fe.REL,"\u22df":Fe.REL,"\u22e0":Fe.REL,"\u22e1":Fe.REL,"\u22e2":Fe.REL,"\u22e3":Fe.REL,"\u22e4":Fe.REL,"\u22e5":Fe.REL,"\u22e6":Fe.REL,"\u22e7":Fe.REL,"\u22e8":Fe.REL,"\u22e9":Fe.REL,"\u22ea":Fe.REL,"\u22eb":Fe.REL,"\u22ec":Fe.REL,"\u22ed":Fe.REL,"\u22ee":Fe.ORD,"\u22ef":Fe.INNER,"\u22f0":Fe.INNER,"\u22f1":Fe.INNER,"\u22f2":Fe.REL,"\u22f3":Fe.REL,"\u22f4":Fe.REL,"\u22f5":Fe.REL,"\u22f6":Fe.REL,"\u22f7":Fe.REL,"\u22f8":Fe.REL,"\u22f9":Fe.REL,"\u22fa":Fe.REL,"\u22fb":Fe.REL,"\u22fc":Fe.REL,"\u22fd":Fe.REL,"\u22fe":Fe.REL,"\u22ff":Fe.REL,"\u2301":Fe.REL,"\u2305":Fe.BIN3,"\u2306":Fe.BIN3,"\u2329":Fe.OPEN,"\u232a":Fe.CLOSE,"\u237c":Fe.REL,"\u238b":Fe.REL,"\u23aa":Fe.ORD,"\u23af":Fe.ORDSTRETCH0,"\u23b0":Fe.OPEN,"\u23b1":Fe.CLOSE,"\u2500":Fe.ORD,"\u25b3":Fe.BIN3,"\u25b5":Fe.BIN3,"\u25b9":Fe.BIN3,"\u25bd":Fe.BIN3,"\u25bf":Fe.BIN3,"\u25c3":Fe.BIN3,"\u25ef":Fe.BIN3,"\u2660":Fe.ORD,"\u2661":Fe.ORD,"\u2662":Fe.ORD,"\u2663":Fe.ORD,"\u266d":Fe.ORD,"\u266e":Fe.ORD,"\u266f":Fe.ORD,"\u2758":[5,5,xe.REL,{stretchy:!0,symmetric:!0}],"\u2794":Fe.WIDEREL,"\u2795":Fe.BIN4,"\u2796":Fe.BIN4,"\u2797":Fe.BIN4,"\u2798":Fe.REL,"\u2799":Fe.WIDEREL,"\u279a":Fe.REL,"\u279b":Fe.WIDEREL,"\u279c":Fe.WIDEREL,"\u279d":Fe.WIDEREL,"\u279e":Fe.WIDEREL,"\u279f":Fe.WIDEREL,"\u27a0":Fe.WIDEREL,"\u27a1":Fe.WIDEREL,"\u27a5":Fe.WIDEREL,"\u27a6":Fe.WIDEREL,"\u27a7":Fe.RELACCENT,"\u27a8":Fe.WIDEREL,"\u27a9":Fe.WIDEREL,"\u27aa":Fe.WIDEREL,"\u27ab":Fe.WIDEREL,"\u27ac":Fe.WIDEREL,"\u27ad":Fe.WIDEREL,"\u27ae":Fe.WIDEREL,"\u27af":Fe.WIDEREL,"\u27b1":Fe.WIDEREL,"\u27b2":Fe.RELACCENT,"\u27b3":Fe.WIDEREL,"\u27b4":Fe.REL,"\u27b5":Fe.WIDEREL,"\u27b6":Fe.REL,"\u27b7":Fe.REL,"\u27b8":Fe.WIDEREL,"\u27b9":Fe.REL,"\u27ba":Fe.WIDEREL,"\u27bb":Fe.WIDEREL,"\u27bc":Fe.WIDEREL,"\u27bd":Fe.WIDEREL,"\u27be":Fe.WIDEREL,"\u27c2":Fe.REL,"\u27c2\u0338":Fe.REL,"\u27cb":Fe.BIN3,"\u27cd":Fe.BIN3,"\u27f0":Fe.RELSTRETCH,"\u27f1":Fe.RELSTRETCH,"\u27f2":Fe.REL,"\u27f3":Fe.REL,"\u27f4":Fe.RELSTRETCH,"\u27f5":Fe.WIDEREL,"\u27f6":Fe.WIDEREL,"\u27f7":Fe.WIDEREL,"\u27f8":Fe.WIDEREL,"\u27f9":Fe.WIDEREL,"\u27fa":Fe.WIDEREL,"\u27fb":Fe.WIDEREL,"\u27fc":Fe.WIDEREL,"\u27fd":Fe.WIDEREL,"\u27fe":Fe.WIDEREL,"\u27ff":Fe.WIDEREL,"\u2900":Fe.WIDEREL,"\u2901":Fe.WIDEREL,"\u2902":Fe.WIDEREL,"\u2903":Fe.WIDEREL,"\u2904":Fe.WIDEREL,"\u2905":Fe.WIDEREL,"\u2906":Fe.WIDEREL,"\u2907":Fe.WIDEREL,"\u2908":Fe.RELSTRETCH,"\u2909":Fe.RELSTRETCH,"\u290a":Fe.RELSTRETCH,"\u290b":Fe.RELSTRETCH,"\u290c":Fe.WIDEREL,"\u290d":Fe.WIDEREL,"\u290e":Fe.WIDEREL,"\u290f":Fe.WIDEREL,"\u2910":Fe.WIDEREL,"\u2911":Fe.WIDEREL,"\u2912":Fe.RELSTRETCH,"\u2913":Fe.RELSTRETCH,"\u2914":Fe.WIDEREL,"\u2915":Fe.WIDEREL,"\u2916":Fe.WIDEREL,"\u2917":Fe.WIDEREL,"\u2918":Fe.WIDEREL,"\u2919":Fe.WIDEREL,"\u291a":Fe.WIDEREL,"\u291b":Fe.WIDEREL,"\u291c":Fe.WIDEREL,"\u291d":Fe.WIDEREL,"\u291e":Fe.WIDEREL,"\u291f":Fe.WIDEREL,"\u2920":Fe.WIDEREL,"\u2921":Fe.REL,"\u2922":Fe.REL,"\u2923":Fe.REL,"\u2924":Fe.REL,"\u2925":Fe.REL,"\u2926":Fe.REL,"\u2927":Fe.REL,"\u2928":Fe.REL,"\u2929":Fe.REL,"\u292a":Fe.REL,"\u292b":Fe.REL,"\u292c":Fe.REL,"\u292d":Fe.REL,"\u292e":Fe.REL,"\u292f":Fe.REL,"\u2930":Fe.REL,"\u2931":Fe.REL,"\u2932":Fe.REL,"\u2933":Fe.RELACCENT,"\u2934":Fe.RELSTRETCH,"\u2935":Fe.RELSTRETCH,"\u2936":Fe.RELSTRETCH,"\u2937":Fe.RELSTRETCH,"\u2938":Fe.REL,"\u2939":Fe.REL,"\u293a":Fe.RELACCENT,"\u293b":Fe.RELACCENT,"\u293c":Fe.RELACCENT,"\u293d":Fe.RELACCENT,"\u293e":Fe.REL,"\u293f":Fe.REL,"\u2940":Fe.REL,"\u2941":Fe.REL,"\u2942":Fe.WIDEREL,"\u2943":Fe.WIDEREL,"\u2944":Fe.WIDEREL,"\u2945":Fe.RELSTRETCH,"\u2946":Fe.RELSTRETCH,"\u2947":Fe.WIDEREL,"\u2948":Fe.WIDEREL,"\u2949":Fe.RELSTRETCH,"\u294a":Fe.WIDEREL,"\u294b":Fe.WIDEREL,"\u294c":Fe.RELSTRETCH,"\u294d":Fe.RELSTRETCH,"\u294e":Fe.WIDEREL,"\u294f":Fe.RELSTRETCH,"\u2950":Fe.WIDEREL,"\u2951":Fe.RELSTRETCH,"\u2952":Fe.WIDEREL,"\u2953":Fe.WIDEREL,"\u2954":Fe.RELSTRETCH,"\u2955":Fe.RELSTRETCH,"\u2956":Fe.WIDEREL,"\u2957":Fe.WIDEREL,"\u2958":Fe.RELSTRETCH,"\u2959":Fe.RELSTRETCH,"\u295a":Fe.WIDEREL,"\u295b":Fe.WIDEREL,"\u295c":Fe.RELSTRETCH,"\u295d":Fe.RELSTRETCH,"\u295e":Fe.WIDEREL,"\u295f":Fe.WIDEREL,"\u2960":Fe.RELSTRETCH,"\u2961":Fe.RELSTRETCH,"\u2962":Fe.WIDEREL,"\u2963":Fe.RELSTRETCH,"\u2964":Fe.WIDEREL,"\u2965":Fe.RELSTRETCH,"\u2966":Fe.WIDEREL,"\u2967":Fe.WIDEREL,"\u2968":Fe.WIDEREL,"\u2969":Fe.WIDEREL,"\u296a":Fe.WIDEREL,"\u296b":Fe.WIDEREL,"\u296c":Fe.WIDEREL,"\u296d":Fe.WIDEREL,"\u296e":Fe.RELSTRETCH,"\u296f":Fe.RELSTRETCH,"\u2970":Fe.WIDEREL,"\u2971":Fe.WIDEREL,"\u2972":Fe.WIDEREL,"\u2973":Fe.WIDEREL,"\u2974":Fe.WIDEREL,"\u2975":Fe.WIDEREL,"\u2976":Fe.RELACCENT,"\u2977":Fe.RELACCENT,"\u2978":Fe.RELACCENT,"\u2979":Fe.RELACCENT,"\u297a":Fe.RELACCENT,"\u297b":Fe.RELACCENT,"\u297c":Fe.WIDEREL,"\u297d":Fe.WIDEREL,"\u297e":Fe.RELSTRETCH,"\u297f":Fe.RELSTRETCH,"\u2981":Fe.REL,"\u2982":Fe.REL,"\u29b6":Fe.REL,"\u29b7":Fe.REL,"\u29b8":Fe.BIN4,"\u29b9":Fe.REL,"\u29bc":Fe.BIN4,"\u29c0":Fe.REL,"\u29c1":Fe.REL,"\u29c4":Fe.BIN4,"\u29c5":Fe.BIN4,"\u29c6":Fe.BIN3,"\u29c7":Fe.BIN3,"\u29c8":Fe.BIN3,"\u29ce":Fe.REL,"\u29cf":Fe.REL,"\u29d0":Fe.REL,"\u29d1":Fe.REL,"\u29d2":Fe.REL,"\u29d3":Fe.REL,"\u29d4":Fe.BIN3,"\u29d5":Fe.BIN3,"\u29d6":Fe.BIN3,"\u29d7":Fe.BIN3,"\u29df":Fe.REL,"\u29e1":Fe.REL,"\u29e2":Fe.BIN3,"\u29e3":Fe.REL,"\u29e4":Fe.REL,"\u29e5":Fe.REL,"\u29e6":Fe.REL,"\u29f4":Fe.REL,"\u29f5":Fe.BIN4,"\u29f6":Fe.BIN4,"\u29f7":Fe.BIN4,"\u29f8":Fe.BIN4,"\u29f9":Fe.BIN4,"\u29fa":Fe.BIN4,"\u29fb":Fe.BIN4,"\u2a1d":Fe.BIN3,"\u2a1e":Fe.BIN3,"\u2a1f":Fe.BIN4,"\u2a20":Fe.BIN4,"\u2a21":Fe.BIN4,"\u2a22":Fe.BIN4,"\u2a23":Fe.BIN4,"\u2a24":Fe.BIN4,"\u2a25":Fe.BIN4,"\u2a26":Fe.BIN4,"\u2a27":Fe.BIN4,"\u2a28":Fe.BIN4,"\u2a29":Fe.BIN4,"\u2a2a":Fe.BIN4,"\u2a2b":Fe.BIN4,"\u2a2c":Fe.BIN4,"\u2a2d":Fe.BIN4,"\u2a2e":Fe.BIN4,"\u2a2f":Fe.BIN3,"\u2a30":Fe.BIN3,"\u2a31":Fe.BIN3,"\u2a32":Fe.BIN3,"\u2a33":Fe.BIN3,"\u2a34":Fe.BIN3,"\u2a35":Fe.BIN3,"\u2a36":Fe.BIN3,"\u2a37":Fe.BIN3,"\u2a38":Fe.BIN4,"\u2a39":Fe.BIN4,"\u2a3a":Fe.BIN4,"\u2a3b":Fe.BIN3,"\u2a3c":Fe.BIN3,"\u2a3d":Fe.BIN3,"\u2a3e":Fe.BIN4,"\u2a3f":Fe.BIN3,"\u2a40":Fe.BIN4,"\u2a41":Fe.BIN4,"\u2a42":Fe.BIN4,"\u2a43":Fe.BIN4,"\u2a44":Fe.BIN4,"\u2a45":Fe.BIN4,"\u2a46":Fe.BIN4,"\u2a47":Fe.BIN4,"\u2a48":Fe.BIN4,"\u2a49":Fe.BIN4,"\u2a4a":Fe.BIN4,"\u2a4b":Fe.BIN4,"\u2a4c":Fe.BIN4,"\u2a4d":Fe.BIN4,"\u2a4e":Fe.BIN4,"\u2a4f":Fe.BIN4,"\u2a50":Fe.BIN3,"\u2a51":Fe.BIN4,"\u2a52":Fe.BIN4,"\u2a53":Fe.BIN4,"\u2a54":Fe.BIN4,"\u2a55":Fe.BIN4,"\u2a56":Fe.BIN4,"\u2a57":Fe.BIN4,"\u2a58":Fe.BIN4,"\u2a59":Fe.BIN4,"\u2a5a":Fe.BIN4,"\u2a5b":Fe.BIN4,"\u2a5c":Fe.BIN4,"\u2a5d":Fe.BIN4,"\u2a5e":Fe.BIN4,"\u2a5f":Fe.BIN4,"\u2a60":Fe.BIN4,"\u2a61":Fe.BIN4,"\u2a62":Fe.BIN4,"\u2a63":Fe.BIN4,"\u2a64":Fe.BIN3,"\u2a65":Fe.BIN3,"\u2a66":Fe.REL,"\u2a67":Fe.REL,"\u2a68":Fe.REL,"\u2a69":Fe.REL,"\u2a6a":Fe.REL,"\u2a6b":Fe.REL,"\u2a6c":Fe.REL,"\u2a6d":Fe.REL,"\u2a6e":Fe.REL,"\u2a6f":Fe.REL,"\u2a70":Fe.REL,"\u2a71":Fe.REL,"\u2a72":Fe.REL,"\u2a73":Fe.REL,"\u2a74":Fe.REL,"\u2a75":Fe.REL,"\u2a76":Fe.REL,"\u2a77":Fe.REL,"\u2a78":Fe.REL,"\u2a79":Fe.REL,"\u2a7a":Fe.REL,"\u2a7b":Fe.REL,"\u2a7c":Fe.REL,"\u2a7d":Fe.REL,"\u2a7d\u0338":Fe.REL,"\u2a7e":Fe.REL,"\u2a7e\u0338":Fe.REL,"\u2a7f":Fe.REL,"\u2a80":Fe.REL,"\u2a81":Fe.REL,"\u2a82":Fe.REL,"\u2a83":Fe.REL,"\u2a84":Fe.REL,"\u2a85":Fe.REL,"\u2a86":Fe.REL,"\u2a87":Fe.REL,"\u2a88":Fe.REL,"\u2a89":Fe.REL,"\u2a8a":Fe.REL,"\u2a8b":Fe.REL,"\u2a8c":Fe.REL,"\u2a8d":Fe.REL,"\u2a8e":Fe.REL,"\u2a8f":Fe.REL,"\u2a90":Fe.REL,"\u2a91":Fe.REL,"\u2a92":Fe.REL,"\u2a93":Fe.REL,"\u2a94":Fe.REL,"\u2a95":Fe.REL,"\u2a96":Fe.REL,"\u2a97":Fe.REL,"\u2a98":Fe.REL,"\u2a99":Fe.REL,"\u2a9a":Fe.REL,"\u2a9b":Fe.REL,"\u2a9c":Fe.REL,"\u2a9d":Fe.REL,"\u2a9e":Fe.REL,"\u2a9f":Fe.REL,"\u2aa0":Fe.REL,"\u2aa1":Fe.REL,"\u2aa2":Fe.REL,"\u2aa3":Fe.REL,"\u2aa4":Fe.REL,"\u2aa5":Fe.REL,"\u2aa6":Fe.REL,"\u2aa7":Fe.REL,"\u2aa8":Fe.REL,"\u2aa9":Fe.REL,"\u2aaa":Fe.REL,"\u2aab":Fe.REL,"\u2aac":Fe.REL,"\u2aad":Fe.REL,"\u2aae":Fe.REL,"\u2aaf":Fe.REL,"\u2aaf\u0338":Fe.REL,"\u2ab0":Fe.REL,"\u2ab0\u0338":Fe.REL,"\u2ab1":Fe.REL,"\u2ab2":Fe.REL,"\u2ab3":Fe.REL,"\u2ab4":Fe.REL,"\u2ab5":Fe.REL,"\u2ab6":Fe.REL,"\u2ab7":Fe.REL,"\u2ab8":Fe.REL,"\u2ab9":Fe.REL,"\u2aba":Fe.REL,"\u2abb":Fe.REL,"\u2abc":Fe.REL,"\u2abd":Fe.REL,"\u2abe":Fe.REL,"\u2abf":Fe.REL,"\u2ac0":Fe.REL,"\u2ac1":Fe.REL,"\u2ac2":Fe.REL,"\u2ac3":Fe.REL,"\u2ac4":Fe.REL,"\u2ac5":Fe.REL,"\u2ac6":Fe.REL,"\u2ac7":Fe.REL,"\u2ac8":Fe.REL,"\u2ac9":Fe.REL,"\u2aca":Fe.REL,"\u2acb":Fe.REL,"\u2acc":Fe.REL,"\u2acd":Fe.REL,"\u2ace":Fe.REL,"\u2acf":Fe.REL,"\u2ad0":Fe.REL,"\u2ad1":Fe.REL,"\u2ad2":Fe.REL,"\u2ad3":Fe.REL,"\u2ad4":Fe.REL,"\u2ad5":Fe.REL,"\u2ad6":Fe.REL,"\u2ad7":Fe.REL,"\u2ad8":Fe.REL,"\u2ad9":Fe.REL,"\u2ada":Fe.REL,"\u2adb":Fe.BIN4,"\u2add":Fe.BIN3,"\u2add\u0338":Fe.REL,"\u2ade":Fe.REL,"\u2adf":Fe.REL,"\u2ae0":Fe.REL,"\u2ae1":Fe.REL,"\u2ae2":Fe.REL,"\u2ae3":Fe.REL,"\u2ae4":Fe.REL,"\u2ae5":Fe.REL,"\u2ae6":Fe.REL,"\u2ae7":Fe.REL,"\u2ae8":Fe.REL,"\u2ae9":Fe.REL,"\u2aea":Fe.REL,"\u2aeb":Fe.REL,"\u2aee":Fe.REL,"\u2af2":Fe.REL,"\u2af3":Fe.REL,"\u2af4":Fe.REL,"\u2af5":Fe.REL,"\u2af6":Fe.BIN4,"\u2af7":Fe.REL,"\u2af8":Fe.REL,"\u2af9":Fe.REL,"\u2afa":Fe.REL,"\u2afb":Fe.BIN4,"\u2afd":Fe.BIN4,"\u2afe":Fe.BIN3,"\u2b00":Fe.REL,"\u2b01":Fe.REL,"\u2b02":Fe.REL,"\u2b03":Fe.REL,"\u2b04":Fe.WIDEREL,"\u2b05":Fe.WIDEREL,"\u2b06":Fe.RELSTRETCH,"\u2b07":Fe.RELSTRETCH,"\u2b08":Fe.REL,"\u2b09":Fe.REL,"\u2b0a":Fe.REL,"\u2b0b":Fe.REL,"\u2b0c":Fe.WIDEREL,"\u2b0d":Fe.RELSTRETCH,"\u2b0e":Fe.RELSTRETCH,"\u2b0f":Fe.RELSTRETCH,"\u2b10":Fe.RELSTRETCH,"\u2b11":Fe.RELSTRETCH,"\u2b30":Fe.WIDEREL,"\u2b31":Fe.WIDEREL,"\u2b32":Fe.RELSTRETCH,"\u2b33":Fe.WIDEREL,"\u2b34":Fe.WIDEREL,"\u2b35":Fe.WIDEREL,"\u2b36":Fe.WIDEREL,"\u2b37":Fe.WIDEREL,"\u2b38":Fe.WIDEREL,"\u2b39":Fe.WIDEREL,"\u2b3a":Fe.WIDEREL,"\u2b3b":Fe.WIDEREL,"\u2b3c":Fe.WIDEREL,"\u2b3d":Fe.WIDEREL,"\u2b3e":Fe.WIDEREL,"\u2b3f":Fe.RELACCENT,"\u2b40":Fe.WIDEREL,"\u2b41":Fe.WIDEREL,"\u2b42":Fe.WIDEREL,"\u2b43":Fe.WIDEREL,"\u2b44":Fe.WIDEREL,"\u2b45":Fe.WIDEREL,"\u2b46":Fe.WIDEREL,"\u2b47":Fe.WIDEREL,"\u2b48":Fe.WIDEREL,"\u2b49":Fe.WIDEREL,"\u2b4a":Fe.WIDEREL,"\u2b4b":Fe.WIDEREL,"\u2b4c":Fe.WIDEREL,"\u2b4d":Fe.REL,"\u2b4e":Fe.REL,"\u2b4f":Fe.REL,"\u2b5a":Fe.REL,"\u2b5b":Fe.REL,"\u2b5c":Fe.REL,"\u2b5d":Fe.REL,"\u2b5e":Fe.REL,"\u2b5f":Fe.REL,"\u2b60":Fe.WIDEREL,"\u2b61":Fe.RELSTRETCH,"\u2b62":Fe.WIDEREL,"\u2b63":Fe.RELSTRETCH,"\u2b64":Fe.WIDEREL,"\u2b65":Fe.RELSTRETCH,"\u2b66":Fe.REL,"\u2b67":Fe.REL,"\u2b68":Fe.REL,"\u2b69":Fe.REL,"\u2b6a":Fe.WIDEREL,"\u2b6b":Fe.RELSTRETCH,"\u2b6c":Fe.WIDEREL,"\u2b6d":Fe.RELSTRETCH,"\u2b6e":Fe.REL,"\u2b6f":Fe.REL,"\u2b70":Fe.WIDEREL,"\u2b71":Fe.RELSTRETCH,"\u2b72":Fe.WIDEREL,"\u2b73":Fe.RELSTRETCH,"\u2b76":Fe.REL,"\u2b77":Fe.REL,"\u2b78":Fe.REL,"\u2b79":Fe.REL,"\u2b7a":Fe.WIDEREL,"\u2b7b":Fe.RELSTRETCH,"\u2b7c":Fe.WIDEREL,"\u2b7d":Fe.RELSTRETCH,"\u2b80":Fe.WIDEREL,"\u2b81":Fe.RELSTRETCH,"\u2b82":Fe.WIDEREL,"\u2b83":Fe.RELSTRETCH,"\u2b84":Fe.WIDEREL,"\u2b85":Fe.RELSTRETCH,"\u2b86":Fe.WIDEREL,"\u2b87":Fe.RELSTRETCH,"\u2b88":Fe.RELACCENT,"\u2b89":Fe.REL,"\u2b8a":Fe.RELACCENT,"\u2b8b":Fe.REL,"\u2b8c":Fe.REL,"\u2b8d":Fe.REL,"\u2b8e":Fe.REL,"\u2b8f":Fe.REL,"\u2b94":Fe.REL,"\u2b95":Fe.WIDEREL,"\u2ba0":Fe.RELSTRETCH,"\u2ba1":Fe.RELSTRETCH,"\u2ba2":Fe.RELSTRETCH,"\u2ba3":Fe.RELSTRETCH,"\u2ba4":Fe.RELSTRETCH,"\u2ba5":Fe.RELSTRETCH,"\u2ba6":Fe.RELSTRETCH,"\u2ba7":Fe.RELSTRETCH,"\u2ba8":Fe.WIDEREL,"\u2ba9":Fe.WIDEREL,"\u2baa":Fe.WIDEREL,"\u2bab":Fe.WIDEREL,"\u2bac":Fe.RELSTRETCH,"\u2bad":Fe.RELSTRETCH,"\u2bae":Fe.RELSTRETCH,"\u2baf":Fe.RELSTRETCH,"\u2bb0":Fe.REL,"\u2bb1":Fe.REL,"\u2bb2":Fe.REL,"\u2bb3":Fe.REL,"\u2bb4":Fe.REL,"\u2bb5":Fe.REL,"\u2bb6":Fe.REL,"\u2bb7":Fe.REL,"\u2bb8":Fe.RELSTRETCH,"\u2bd1":Fe.REL,\u3adc:Fe.BIN3,"\ufe37":Fe.WIDEACCENT,"\ufe38":Fe.WIDEACCENT}};function Je(t,e){return t.length!==e.length?e.length-t.length:t===e?0:t<e?-1:1}function $e(t){return t.replace(/([\^$(){}.+*?\-|[\]:\\])/g,"\\$1")}function Ue(t){return Array.from(t).map((t=>t.codePointAt(0)))}function Ge(t){return String.fromCodePoint(...t)}function _e(t){return!!t.match(/%\s*$/)}function Ve(t){return t.trim().split(/\s+/)}function Ye(t){return t.replace(/\\U(?:([0-9A-Fa-f]{4})|\{\s*([0-9A-Fa-f]{1,6})\s*\})|\\./g,((t,e,s)=>"\\\\"===t?"\\":String.fromCodePoint(parseInt(e||s,16))))}function Ze(t){return`&#x${t.codePointAt(0).toString(16).toUpperCase()};`}class Qe extends Ae{constructor(){super(...arguments),this._texClass=null,this.lspace=5/18,this.rspace=5/18}get texClass(){return null===this._texClass?this.getOperatorDef(this.getText())[2]:this._texClass}set texClass(t){this._texClass=t}get kind(){return"mo"}get isEmbellished(){return!0}coreParent(){let t=null,e=this;const s=this.factory.getNodeClass("math");for(;e&&e.isEmbellished&&e.coreMO()===this&&!(e instanceof s);)t=e,e=e.parent;return t||this}coreText(t){if(!t)return"";if(t.isEmbellished)return t.coreMO().getText();for(;((t.isKind("mrow")||t.isKind("TeXAtom")||t.isKind("mstyle")||t.isKind("mphantom"))&&1===t.childNodes.length||t.isKind("munderover"))&&t.childNodes[0];)t=t.childNodes[0];return t.isToken?t.getText():""}hasSpacingAttributes(){return this.attributes.isSet("lspace")||this.attributes.isSet("rspace")}get isAccent(){let t=!1;const e=this.coreParent().parent;if(e){const s=e.isKind("mover")?e.childNodes[e.over].coreMO()?"accent":"":e.isKind("munder")?e.childNodes[e.under].coreMO()?"accentunder":"":e.isKind("munderover")?this===e.childNodes[e.over].coreMO()?"accent":this===e.childNodes[e.under].coreMO()?"accentunder":"":"";if(s){t=void 0!==e.attributes.getExplicit(s)?t:this.attributes.get("accent")}}return t}setTeXclass(t){const{form:e,fence:s}=this.attributes.getList("form","fence");return void 0===this.getProperty("texClass")&&this.hasSpacingAttributes()?null:(s&&this.texClass===xe.REL&&("prefix"===e&&(this.texClass=xe.OPEN),"postfix"===e&&(this.texClass=xe.CLOSE)),this.adjustTeXclass(t))}adjustTeXclass(t){const e=this.texClass;let s=this.prevClass;if(e===xe.NONE)return t;if(t?(!t.getProperty("autoOP")||e!==xe.BIN&&e!==xe.REL||(s=t.texClass=xe.ORD),s=this.prevClass=t.texClass||xe.ORD,this.prevLevel=this.attributes.getInherited("scriptlevel")):s=this.prevClass=xe.NONE,e!==xe.BIN||s!==xe.NONE&&s!==xe.BIN&&s!==xe.OP&&s!==xe.REL&&s!==xe.OPEN&&s!==xe.PUNCT)if(s!==xe.BIN||e!==xe.REL&&e!==xe.CLOSE&&e!==xe.PUNCT){if(e===xe.BIN){let t=null,e=this.parent;for(;e&&e.parent&&e.isEmbellished&&(1===e.childNodes.length||!e.isKind("mrow")&&e.core()===t);)t=e,e=e.parent;t=t||this,e.childNodes[e.childNodes.length-1]===t&&(this.texClass=xe.ORD)}}else t.texClass=this.prevClass=xe.ORD;else this.texClass=xe.ORD;return this}setInheritedAttributes(t={},e=!1,s=0,i=!1){super.setInheritedAttributes(t,e,s,i);const r=this.getText();this.checkOperatorTable(r),this.checkPseudoScripts(r),this.checkPrimes(r),this.checkMathAccent(r)}getOperatorDef(t){const[e,s,i]=this.handleExplicitForm(this.getForms());this.attributes.setInherited("form",e);const r=this.constructor,n=r.OPTABLE,o=n[e][t]||n[s][t]||n[i][t];if(o)return o;this.setProperty("noDictDef",!0);const a=this.attributes.get("movablelimits");if((!!t.match(r.opPattern)||a)&&void 0===this.getProperty("texClass"))return He(1,2,xe.OP);const l=Xe(t),[h,d]=r.MMLSPACING[l[2]];return He(h,d,l[2])}checkOperatorTable(t){const e=this.getOperatorDef(t);void 0===this.getProperty("texClass")&&(this.texClass=e[2]);for(const t of Object.keys(e[3]||{}))this.attributes.setInherited(t,e[3][t]);this.lspace=e[0]/18,this.rspace=e[1]/18}getForms(){let t=null,e=this.parent,s=this.Parent;for(;s&&s.isEmbellished;)t=e,e=s.parent,s=s.Parent;if(t=t||this,e&&e.isKind("mrow")&&1!==e.nonSpaceLength()){if(e.firstNonSpace()===t)return["prefix","infix","postfix"];if(e.lastNonSpace()===t)return["postfix","infix","prefix"]}return["infix","prefix","postfix"]}handleExplicitForm(t){if(this.attributes.isSet("form")){const e=this.attributes.get("form");t=[e].concat(t.filter((t=>t!==e)))}return t}checkPseudoScripts(t){const e=this.constructor.pseudoScripts;if(!t.match(e))return;const s=this.coreParent().Parent,i=!s||!(s.isKind("msubsup")&&!s.isKind("msub"));this.setProperty("pseudoscript",i),i&&(this.attributes.setInherited("lspace",0),this.attributes.setInherited("rspace",0))}checkPrimes(t){const e=this.constructor.primes;if(!t.match(e))return;const s=this.constructor.remapPrimes,i=Ge(Ue(t).map((t=>s[t])));this.setProperty("primes",i)}checkMathAccent(t){const e=this.Parent;if(void 0!==this.getProperty("mathaccent")||!e||!e.isKind("munderover"))return;const[s,i,r]=e.childNodes;if(s.isEmbellished&&s.coreMO()===this)return;const n=!(!i||!i.isEmbellished||i.coreMO()!==this),o=!(!r||!r.isEmbellished||i.coreMO()!==this);(n||o)&&(this.isMathAccent(t)?this.setProperty("mathaccent",!0):this.isMathAccentWithWidth(t)&&this.setProperty("mathaccent",!1))}isMathAccent(t=this.getText()){const e=this.constructor.mathaccents;return!!t.match(e)}isMathAccentWithWidth(t=this.getText()){const e=this.constructor.mathaccentsWithWidth;return!!t.match(e)}}Qe.defaults=Object.assign(Object.assign({},Ae.defaults),{form:"infix",fence:!1,separator:!1,lspace:"thickmathspace",rspace:"thickmathspace",stretchy:!1,symmetric:!1,maxsize:"infinity",minsize:"0em",largeop:!1,movablelimits:!1,accent:!1,linebreak:"auto",lineleading:"100%",linebreakstyle:"before",indentalign:"auto",indentshift:"0",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),Qe.MMLSPACING=qe,Qe.OPTABLE=Ke,Qe.pseudoScripts=new RegExp(["^[\"'*`","\xaa","\xb0","\xb2-\xb4","\xb9","\xba","\u2018-\u201f","\u2032-\u2037\u2057","\u2070\u2071","\u2074-\u207f","\u2080-\u208e","]+$"].join("")),Qe.primes=new RegExp(["^[\"'","\u2018-\u201f","]+$"].join("")),Qe.opPattern=/^[a-zA-Z]{2,}$/,Qe.remapPrimes={34:8243,39:8242,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246},Qe.mathaccents=new RegExp(["^[","\xb4\u0301\u02ca","`\u0300\u02cb","\xa8\u0308","~\u0303\u02dc","\xaf\u0304\u02c9","\u02d8\u0306","\u02c7\u030c","^\u0302\u02c6","\u20d0\u20d1","\u20d6\u20d7\u20e1","\u02d9\u0307","\u02da\u030a","\u20db","\u20dc","]$"].join("")),Qe.mathaccentsWithWidth=new RegExp(["^[","\u2190\u2192\u2194","\u23dc\u23dd","\u23de\u23df","]$"].join(""));class ts extends Ae{constructor(){super(...arguments),this.texclass=xe.ORD}get kind(){return"mtext"}get isSpacelike(){return!!this.getText().match(/^\s*$/)&&!this.attributes.hasOneOf(ts.NONSPACELIKE)}}ts.NONSPACELIKE=["style","mathbackground","background"],ts.defaults=Object.assign({},Ae.defaults);class es extends Ae{constructor(){super(...arguments),this.texclass=xe.NONE}setTeXclass(t){return t}get kind(){return"mspace"}get arity(){return 0}get isSpacelike(){return!this.attributes.hasExplicit("linebreak")&&this.canBreak}get hasNewline(){const t=this.attributes.get("linebreak");return this.canBreak&&("newline"===t||"indentingnewline"===t)}get canBreak(){return!this.attributes.hasOneOf(es.NONSPACELIKE)&&"-"!==String(this.attributes.get("width")).trim().charAt(0)}}es.NONSPACELIKE=["height","depth","style","mathbackground","background"],es.defaults=Object.assign(Object.assign({},Ae.defaults),{width:"0em",height:"0ex",depth:"0ex",linebreak:"auto",indentshift:"auto",indentalign:"auto",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"});class ss extends Ae{constructor(){super(...arguments),this.texclass=xe.ORD}get kind(){return"ms"}}ss.defaults=Object.assign(Object.assign({},Ae.defaults),{lquote:'"',rquote:'"'});class is extends ve{constructor(){super(...arguments),this._core=null}get kind(){return"mrow"}get isSpacelike(){for(const t of this.childNodes)if(!t.isSpacelike)return!1;return!0}get isEmbellished(){let t=!1,e=0;for(const s of this.childNodes){if(s)if(s.isEmbellished){if(t)return!1;t=!0,this._core=e}else if(!s.isSpacelike)return!1;e++}return t}core(){return this.isEmbellished&&null!=this._core?this.childNodes[this._core]:this}coreMO(){return this.isEmbellished&&null!=this._core?this.childNodes[this._core].coreMO():this}nonSpaceLength(){let t=0;for(const e of this.childNodes)e&&!e.isSpacelike&&t++;return t}firstNonSpace(){for(const t of this.childNodes)if(t&&!t.isSpacelike)return t;return null}lastNonSpace(){let t=this.childNodes.length;for(;--t>=0;){const e=this.childNodes[t];if(e&&!e.isSpacelike)return e}return null}setTeXclass(t){if(null!=this.getProperty("open")||null!=this.getProperty("close")){this.getPrevClass(t),t=null;for(const e of this.childNodes)t=e.setTeXclass(t);return null==this.texClass&&(this.texClass=xe.INNER),this}for(const e of this.childNodes)t=e.setTeXclass(t);return this.childNodes[0]&&this.updateTeXclass(this.childNodes[0]),t}}is.defaults=Object.assign({},ve.defaults);class rs extends is{get kind(){return"inferredMrow"}get isInferred(){return!0}get notParent(){return!0}toString(){return"["+this.childNodes.join(",")+"]"}}rs.defaults=is.defaults;class ns extends we{get kind(){return"mfrac"}get arity(){return 2}get linebreakContainer(){return!0}get linebreakAlign(){return""}setTeXclass(t){this.getPrevClass(t);for(const t of this.childNodes)t.setTeXclass(null);return this}setChildInheritedAttributes(t,e,s,i){(!e||s>0)&&s++;const r=this.attributes.get("numalign"),n=this.attributes.get("denomalign"),o=this.addInheritedAttributes(Object.assign({},t),{numalign:r,indentshift:"0",indentalignfirst:r,indentshiftfirst:"0",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),a=this.addInheritedAttributes(Object.assign({},t),{denalign:n,indentshift:"0",indentalignfirst:n,indentshiftfirst:"0",indentalignlast:"indentalign",indentshiftlast:"indentshift"});this.childNodes[0].setInheritedAttributes(o,!1,s,i),this.childNodes[1].setInheritedAttributes(a,!1,s,!0)}}ns.defaults=Object.assign(Object.assign({},we.defaults),{linethickness:"medium",numalign:"center",denomalign:"center",bevelled:!1});class os extends ve{constructor(){super(...arguments),this.texclass=xe.ORD}get kind(){return"msqrt"}get arity(){return-1}get linebreakContainer(){return!0}setTeXclass(t){return this.getPrevClass(t),this.childNodes[0].setTeXclass(null),this}setChildInheritedAttributes(t,e,s,i){this.childNodes[0].setInheritedAttributes(t,e,s,!0)}}os.defaults=Object.assign(Object.assign({},ve.defaults),{"data-vertical-align":"bottom"});class as extends ve{constructor(){super(...arguments),this.texclass=xe.ORD}get kind(){return"mroot"}get arity(){return 2}get linebreakContainer(){return!0}setTeXclass(t){return this.getPrevClass(t),this.childNodes[0].setTeXclass(null),this.childNodes[1].setTeXclass(null),this}setChildInheritedAttributes(t,e,s,i){this.childNodes[0].setInheritedAttributes(t,e,s,!0),this.childNodes[1].setInheritedAttributes(t,!1,s+2,i)}}as.defaults=Object.assign(Object.assign({},ve.defaults),{"data-vertical-align":"bottom"});class ls extends Se{get kind(){return"mstyle"}get notParent(){return this.childNodes[0]&&1===this.childNodes[0].childNodes.length}setInheritedAttributes(t={},e=!1,s=0,i=!1){this.attributes.setInherited("displaystyle",e),this.attributes.setInherited("scriptlevel",s),super.setInheritedAttributes(t,e,s,i)}setChildInheritedAttributes(t,e,s,i){let r=this.attributes.getExplicit("scriptlevel");null!=r&&(r=r.toString(),r.match(/^\s*[-+]/)?s+=parseInt(r):s=parseInt(r),i=!1);const n=this.attributes.getExplicit("displaystyle");null!=n&&(e=!0===n,i=!1);const o=this.attributes.getExplicit("data-cramped");null!=o&&(i=o),t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),this.childNodes[0].setInheritedAttributes(t,e,s,i)}}ls.defaults=Object.assign(Object.assign({},Se.defaults),{scriptlevel:Le,displaystyle:Le,scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:".4em",mathbackground:Le,mathcolor:Le,dir:Le,infixlinebreakstyle:"before"});class hs extends ve{constructor(){super(...arguments),this.texclass=xe.ORD}get kind(){return"merror"}get arity(){return-1}get linebreakContainer(){return!0}}hs.defaults=Object.assign({},ve.defaults);class ds extends Se{get kind(){return"mpadded"}get linebreakContainer(){return!0}setTeXclass(t){return this.getProperty("vbox")?(this.getPrevClass(t),this.texClass=xe.ORD,this.childNodes[0].setTeXclass(null),this):super.setTeXclass(t)}}ds.defaults=Object.assign(Object.assign({},Se.defaults),{width:"",height:"",depth:"",lspace:0,voffset:0});class cs extends Se{constructor(){super(...arguments),this.texclass=xe.ORD}get kind(){return"mphantom"}}cs.defaults=Object.assign({},Se.defaults);class us extends ve{constructor(){super(...arguments),this.texclass=xe.INNER,this.separators=[],this.open=null,this.close=null}get kind(){return"mfenced"}setTeXclass(t){this.getPrevClass(t),this.open&&(t=this.open.setTeXclass(t)),this.childNodes[0]&&(t=this.childNodes[0].setTeXclass(t));for(let e=1,s=this.childNodes.length;e<s;e++)this.separators[e-1]&&(t=this.separators[e-1].setTeXclass(t)),this.childNodes[e]&&(t=this.childNodes[e].setTeXclass(t));return this.close&&(t=this.close.setTeXclass(t)),this.updateTeXclass(this.open),t}setChildInheritedAttributes(t,e,s,i){this.addFakeNodes();for(const r of[this.open,this.close].concat(this.separators))r&&r.setInheritedAttributes(t,e,s,i);super.setChildInheritedAttributes(t,e,s,i)}addFakeNodes(){let{open:t,close:e,separators:s}=this.attributes.getList("open","close","separators");if(t=t.replace(/[ \t\n\r]/g,""),e=e.replace(/[ \t\n\r]/g,""),s=s.replace(/[ \t\n\r]/g,""),t&&(this.open=this.fakeNode(t,{fence:!0,form:"prefix"},xe.OPEN)),s){for(;s.length<this.childNodes.length-1;)s+=s.charAt(s.length-1);let t=0;for(const e of this.childNodes.slice(1))e&&this.separators.push(this.fakeNode(s.charAt(t++)))}e&&(this.close=this.fakeNode(e,{fence:!0,form:"postfix"},xe.CLOSE))}fakeNode(t,e={},s=null){const i=this.factory.create("text").setText(t),r=this.factory.create("mo",e,[i]);return r.texClass=s,r.parent=this,r}}us.defaults=Object.assign(Object.assign({},ve.defaults),{open:"(",close:")",separators:","});class Es extends ve{constructor(){super(...arguments),this.texclass=xe.ORD}get kind(){return"menclose"}get arity(){return-1}get linebreakContainer(){return!0}setTeXclass(t){return t=this.childNodes[0].setTeXclass(t),this.updateTeXclass(this.childNodes[0]),t}}Es.defaults=Object.assign(Object.assign({},ve.defaults),{notation:"longdiv"});class ps extends ve{get kind(){return"maction"}get arity(){return 1}get selected(){const t=this.attributes.get("selection"),e=Math.max(1,Math.min(this.childNodes.length,t))-1;return this.childNodes[e]||this.factory.create("mrow")}get isEmbellished(){return this.selected.isEmbellished}get isSpacelike(){return this.selected.isSpacelike}core(){return this.selected.core()}coreMO(){return this.selected.coreMO()}verifyAttributes(t){super.verifyAttributes(t),"toggle"!==this.attributes.get("actiontype")&&this.attributes.hasExplicit("selection")&&this.attributes.unset("selection")}setTeXclass(t){"tooltip"===this.attributes.get("actiontype")&&this.childNodes[1]&&this.childNodes[1].setTeXclass(null);const e=this.selected;return t=e.setTeXclass(t),this.updateTeXclass(e),t}nextToggleSelection(){let t=Math.max(1,parseInt(this.attributes.get("selection"))+1);t>this.childNodes.length&&(t=1),this.attributes.set("selection",t)}setChildInheritedAttributes(t,e,s,i){var r,n;"tooltip"===this.attributes.get("actiontype").toLowerCase()?(null===(r=this.childNodes[0])||void 0===r||r.setInheritedAttributes(t,e,s,i),null===(n=this.childNodes[1])||void 0===n||n.setInheritedAttributes(t,!1,1,!1)):super.setChildInheritedAttributes(t,e,s,i)}}ps.defaults=Object.assign(Object.assign({},ve.defaults),{actiontype:"toggle",selection:1});class ms extends we{get kind(){return"msubsup"}get arity(){return 3}get base(){return 0}get sub(){return 1}get sup(){return 2}setChildInheritedAttributes(t,e,s,i){const r=this.childNodes;r[0].setInheritedAttributes(t,e,s,i),r[1].setInheritedAttributes(t,!1,s+1,i||1===this.sub),r[2]&&r[2].setInheritedAttributes(t,!1,s+1,i||2===this.sub)}}ms.defaults=Object.assign(Object.assign({},we.defaults),{subscriptshift:"",superscriptshift:""});class gs extends ms{get kind(){return"msub"}get arity(){return 2}}gs.defaults=Object.assign({},ms.defaults);class Rs extends ms{get kind(){return"msup"}get arity(){return 2}get sup(){return 1}get sub(){return 2}}Rs.defaults=Object.assign({},ms.defaults);class fs extends we{get kind(){return"munderover"}get arity(){return 3}get base(){return 0}get under(){return 1}get over(){return 2}get linebreakContainer(){return!0}setChildInheritedAttributes(t,e,s,i){const r=this.childNodes;r[0].setInheritedAttributes(t,e,s,i||!!r[this.over]);const n=!(e||!r[0].coreMO().attributes.get("movablelimits")),o=this.constructor.ACCENTS;r[1].setInheritedAttributes(t,!1,this.getScriptlevel(o[1],n,s),i||1===this.under),this.setInheritedAccent(1,o[1],e,s,i,n),r[2]&&(r[2].setInheritedAttributes(t,!1,this.getScriptlevel(o[2],n,s),i||2===this.under),this.setInheritedAccent(2,o[2],e,s,i,n))}getScriptlevel(t,e,s){return!e&&this.attributes.get(t)||s++,s}setInheritedAccent(t,e,s,i,r,n){const o=this.childNodes[t];if(!this.attributes.hasExplicit(e)&&o.isEmbellished){const t=o.coreMO().attributes.get("accent");this.attributes.setInherited(e,t),t!==this.attributes.getDefault(e)&&o.setInheritedAttributes({},s,this.getScriptlevel(e,n,i),r)}}}fs.defaults=Object.assign(Object.assign({},we.defaults),{accent:!1,accentunder:!1,align:"center"}),fs.ACCENTS=["","accentunder","accent"];class Ls extends fs{get kind(){return"munder"}get arity(){return 2}}Ls.defaults=Object.assign({},fs.defaults);class bs extends fs{get kind(){return"mover"}get arity(){return 2}get over(){return 1}get under(){return 2}}bs.defaults=Object.assign({},fs.defaults),bs.ACCENTS=["","accent","accentunder"];class ys extends ms{get kind(){return"mmultiscripts"}get arity(){return 1}setChildInheritedAttributes(t,e,s,i){this.childNodes[0].setInheritedAttributes(t,e,s,i);let r=!1;for(let e=1,n=0;e<this.childNodes.length;e++){const o=this.childNodes[e];if(o.isKind("mprescripts")){if(!r&&(r=!0,e%2==0)){const t=this.factory.create("none");this.childNodes.splice(e,0,t),t.parent=this,e++}}else{const e=i||n%2==0;o.setInheritedAttributes(t,!1,s+1,e),n++}}this.childNodes.length%2==(r?1:0)&&(this.appendChild(this.factory.create("none")),this.childNodes[this.childNodes.length-1].setInheritedAttributes(t,!1,s+1,i))}verifyChildren(t){let e=!1;const s=t.fixMmultiscripts;for(let i=0;i<this.childNodes.length;i++){const r=this.childNodes[i];r.isKind("mprescripts")&&(e?r.mError(r.kind+" can only appear once in "+this.kind,t,!0):(e=!0,i%2!=0||s||this.mError("There must be an equal number of prescripts of each type",t)))}this.childNodes.length%2!=(e?1:0)||s||this.mError("There must be an equal number of scripts of each type",t),super.verifyChildren(t)}}ys.defaults=Object.assign({},ms.defaults);class Ns extends ve{get kind(){return"mprescripts"}get arity(){return 0}verifyTree(t){super.verifyTree(t),this.parent&&!this.parent.isKind("mmultiscripts")&&this.mError(this.kind+" must be a child of mmultiscripts",t,!0)}}Ns.defaults=Object.assign({},ve.defaults);class xs extends ve{get kind(){return"none"}get arity(){return 0}verifyTree(t){super.verifyTree(t),this.parent&&!this.parent.isKind("mmultiscripts")&&this.mError(this.kind+" must be a child of mmultiscripts",t,!0)}}xs.defaults=Object.assign({},ve.defaults);class Is extends ve{constructor(){super(...arguments),this.properties={useHeight:!0},this.texclass=xe.ORD}get kind(){return"mtable"}get linebreakContainer(){return!0}get linebreakAlign(){return""}setInheritedAttributes(t,e,s,i){for(const e of Oe)t[e]&&this.attributes.setInherited(e,t[e][1]),this.attributes.hasExplicit(e)&&this.attributes.unset(e);super.setInheritedAttributes(t,e,s,i)}setChildInheritedAttributes(t,e,s,i){for(const t of this.childNodes)t.isKind("mtr")||this.replaceChild(this.factory.create("mtr"),t).appendChild(t);e=!(!this.attributes.getExplicit("displaystyle")&&!this.attributes.getDefault("displaystyle")),t=this.addInheritedAttributes(t,{columnalign:this.attributes.get("columnalign"),rowalign:"center","data-break-align":this.attributes.get("data-break-align")});const r=this.attributes.getExplicit("data-cramped"),n=Ve(this.attributes.get("rowalign"));for(const i of this.childNodes)t.rowalign[1]=n.shift()||t.rowalign[1],i.setInheritedAttributes(t,e,s,!!r)}verifyChildren(t){let e=null;const s=this.factory;for(let i=0;i<this.childNodes.length;i++){const r=this.childNodes[i];if(r.isKind("mtr"))e=null;else{const n=r.isKind("mtd");if(e?(this.removeChild(r),i--):e=this.replaceChild(s.create("mtr"),r),e.appendChild(n?r:s.create("mtd",{},[r])),!t.fixMtables){r.parent.removeChild(r),r.parent=this,n&&e.appendChild(s.create("mtd"));const i=r.mError("Children of "+this.kind+" must be mtr or mlabeledtr",t,n);e.childNodes[e.childNodes.length-1].appendChild(i)}}}super.verifyChildren(t)}setTeXclass(t){this.getPrevClass(t);for(const t of this.childNodes)t.setTeXclass(null);return this}}Is.defaults=Object.assign(Object.assign({},ve.defaults),{align:"axis",rowalign:"baseline",columnalign:"center",groupalign:"{left}",alignmentscope:!0,columnwidth:"auto",width:"auto",rowspacing:"1ex",columnspacing:".8em",rowlines:"none",columnlines:"none",frame:"none",framespacing:"0.4em 0.5ex",equalrows:!1,equalcolumns:!1,displaystyle:!1,side:"right",minlabelspacing:"0.8em","data-break-align":"top"});class Ts extends ve{get kind(){return"mtr"}get linebreakContainer(){return!0}get linebreakAlign(){return""}setChildInheritedAttributes(t,e,s,i){for(const t of this.childNodes)t.isKind("mtd")||this.replaceChild(this.factory.create("mtd"),t).appendChild(t);const r=Ve(this.attributes.get("columnalign")),n=Ve(this.attributes.get("data-break-align"));1===this.arity&&(r.unshift(this.parent.attributes.get("side")),n.unshift("top")),t=this.addInheritedAttributes(t,{rowalign:this.attributes.get("rowalign"),columnalign:"center","data-break-align":"top"});for(const o of this.childNodes)t.columnalign[1]=r.shift()||t.columnalign[1],t["data-vertical-align"]=[this.kind,n.shift()||t["data-break-align"][1]],o.setInheritedAttributes(t,e,s,i)}verifyChildren(t){if(!this.parent||this.parent.isKind("mtable")){for(const e of this.childNodes)if(!e.isKind("mtd")){this.replaceChild(this.factory.create("mtd"),e).appendChild(e),t.fixMtables||e.mError("Children of "+this.kind+" must be mtd",t)}super.verifyChildren(t)}else this.mError(this.kind+" can only be a child of an mtable",t,!0)}setTeXclass(t){this.getPrevClass(t);for(const t of this.childNodes)t.setTeXclass(null);return this}}Ts.defaults=Object.assign(Object.assign({},ve.defaults),{rowalign:Le,columnalign:Le,groupalign:Le,"data-break-align":"top"});class Cs extends Ts{get kind(){return"mlabeledtr"}get arity(){return 1}}class Ds extends we{get kind(){return"mtd"}get arity(){return-1}get linebreakContainer(){return!0}get linebreakAlign(){return"columnalign"}verifyChildren(t){!this.parent||this.parent.isKind("mtr")?super.verifyChildren(t):this.mError(this.kind+" can only be a child of an mtr or mlabeledtr",t,!0)}setTeXclass(t){return this.getPrevClass(t),this.childNodes[0].setTeXclass(null),this}}Ds.defaults=Object.assign(Object.assign({},we.defaults),{rowspan:1,columnspan:1,rowalign:Le,columnalign:Le,groupalign:Le,"data-vertical-align":"top"});class Os extends Se{get kind(){return"maligngroup"}get isSpacelike(){return!0}setChildInheritedAttributes(t,e,s,i){t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),super.setChildInheritedAttributes(t,e,s,i)}}Os.defaults=Object.assign(Object.assign({},Se.defaults),{groupalign:Le});class vs extends ve{get kind(){return"malignmark"}get arity(){return 0}get isSpacelike(){return!0}}vs.defaults=Object.assign(Object.assign({},ve.defaults),{edge:"left"});class As extends Ae{constructor(){super(...arguments),this.texclass=xe.ORD}get kind(){return"mglyph"}verifyAttributes(t){const{src:e,fontfamily:s,index:i}=this.attributes.getList("src","fontfamily","index");""!==e||""!==s&&""!==i?super.verifyAttributes(t):this.mError("mglyph must have either src or fontfamily and index attributes",t,!0)}}As.defaults=Object.assign(Object.assign({},Ae.defaults),{alt:"",src:"",index:"",width:"auto",height:"auto",valign:"0em"});class Ss extends we{get kind(){return"semantics"}get arity(){return 1}get notParent(){return!0}}Ss.defaults=Object.assign(Object.assign({},we.defaults),{definitionUrl:null,encoding:null});class ws extends ve{get kind(){return"annotation-xml"}setChildInheritedAttributes(){}}ws.defaults=Object.assign(Object.assign({},ve.defaults),{definitionUrl:null,encoding:null,cd:"mathmlkeys",name:"",src:null});class ks extends ws{constructor(){super(...arguments),this.properties={isChars:!0}}get kind(){return"annotation"}}ks.defaults=Object.assign({},ws.defaults);class Ms extends we{get kind(){return"TeXAtom"}get arity(){return-1}get notParent(){return!0}constructor(t,e,s){super(t,e,s),this.texclass=xe.ORD,this.setProperty("texClass",this.texClass)}setTeXclass(t){return this.childNodes[0].setTeXclass(null),this.adjustTeXclass(t)}adjustTeXclass(t){return t}}Ms.defaults=Object.assign({},we.defaults),Ms.prototype.adjustTeXclass=Qe.prototype.adjustTeXclass;class Ps extends we{get kind(){return"MathChoice"}get arity(){return 4}get notParent(){return!0}setInheritedAttributes(t,e,s,i){const r=e?0:Math.max(0,Math.min(s,2))+1,n=this.childNodes[r]||this.factory.create("mrow");this.parent.replaceChild(n,this),n.setInheritedAttributes(t,e,s,i)}}Ps.defaults=Object.assign({},we.defaults);class Bs extends Pe{get kind(){return"html"}getHTML(){return this.getXML()}setHTML(t,e=null){try{e.getAttribute(t,"data-mjx-hdw")}catch(s){t=e.node("span",{},[t])}return this.setXML(t,e)}getSerializedHTML(){return this.adaptor.outerHTML(this.xml)}textContent(){return this.adaptor.textContent(this.xml)}toString(){const t=this.adaptor.kind(this.xml);return`HTML=<${t}>...</${t}>`}verifyTree(t){!this.parent||this.parent.isToken||this.mError("HTML can only be a child of a token element",t,!0)}}const Ws={[Be.prototype.kind]:Be,[We.prototype.kind]:We,[je.prototype.kind]:je,[Qe.prototype.kind]:Qe,[ts.prototype.kind]:ts,[es.prototype.kind]:es,[ss.prototype.kind]:ss,[is.prototype.kind]:is,[rs.prototype.kind]:rs,[ns.prototype.kind]:ns,[os.prototype.kind]:os,[as.prototype.kind]:as,[ls.prototype.kind]:ls,[hs.prototype.kind]:hs,[ds.prototype.kind]:ds,[cs.prototype.kind]:cs,[us.prototype.kind]:us,[Es.prototype.kind]:Es,[ps.prototype.kind]:ps,[gs.prototype.kind]:gs,[Rs.prototype.kind]:Rs,[ms.prototype.kind]:ms,[Ls.prototype.kind]:Ls,[bs.prototype.kind]:bs,[fs.prototype.kind]:fs,[ys.prototype.kind]:ys,[Ns.prototype.kind]:Ns,[xs.prototype.kind]:xs,[Is.prototype.kind]:Is,[Cs.prototype.kind]:Cs,[Ts.prototype.kind]:Ts,[Ds.prototype.kind]:Ds,[Os.prototype.kind]:Os,[vs.prototype.kind]:vs,[As.prototype.kind]:As,[Ss.prototype.kind]:Ss,[ks.prototype.kind]:ks,[ws.prototype.kind]:ws,[Ms.prototype.kind]:Ms,[Ps.prototype.kind]:Ps,[Me.prototype.kind]:Me,[Pe.prototype.kind]:Pe,[Bs.prototype.kind]:Bs};class js extends fe{get MML(){return this.node}}js.defaultNodes=Ws;class Hs{constructor(){this.bits=0}static allocate(...t){for(const e of t){if(this.has(e))throw new Error("Bit already allocated for "+e);if(this.next===Hs.MAXBIT)throw new Error("Maximum number of bits already allocated");this.names.set(e,this.next),this.next<<=1}}static has(t){return this.names.has(t)}set(t){this.bits|=this.getBit(t)}clear(t){this.bits&=~this.getBit(t)}isSet(t){return!!(this.bits&this.getBit(t))}reset(){this.bits=0}getBit(t){const e=this.constructor.names.get(t);if(!e)throw new Error("Unknown bit-field name: "+t);return e}}function Fs(...t){const e=class extends Hs{};return e.allocate(...t),e}function zs(t){return new Promise((function e(s,i){const r=t=>{var r;t.retry instanceof Promise?t.retry.then((()=>e(s,i))).catch((t=>i(t))):(null===(r=t.restart)||void 0===r?void 0:r.isCallback)?MathJax.Callback.After((()=>e(s,i)),t.restart):i(t)};try{const e=t();e instanceof Promise?e.then((t=>s(t))).catch((t=>r(t))):s(e)}catch(t){r(t)}}))}function Xs(t){const e=new Error("MathJax retry -- an asynchronous action is required; try using one of the promise-based functions and await its resolution.");throw e.retry=t,e}Hs.MAXBIT=1<<31,Hs.next=1,Hs.names=new Map;var qs=function(t,e,s,i){return new(s||(s=Promise))((function(r,n){function o(t){try{l(i.next(t))}catch(t){n(t)}}function a(t){try{l(i.throw(t))}catch(t){n(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(o,a)}l((i=i.apply(t,e||[])).next())}))};class Ks extends ne{static create(t){const e=new this;for(const s of Object.keys(t)){const[i,r]=this.action(s,t[s]);r&&e.add(i,r)}return e}static action(t,e){let s,i,r=!0;const n=e[0];if(1===e.length||"boolean"==typeof e[1])2===e.length&&(r=e[1]),[s,i]=this.methodActions(t);else if("string"==typeof e[1])if("string"==typeof e[2]){4===e.length&&(r=e[3]);const[t,n]=e.slice(1);[s,i]=this.methodActions(t,n)}else 3===e.length&&(r=e[2]),[s,i]=this.methodActions(e[1]);else 4===e.length&&(r=e[3]),[s,i]=e.slice(1);return[{id:t,renderDoc:s,renderMath:i,convert:r},n]}static methodActions(t,e=t){return[e=>(t&&e[t](),!1),(t,s)=>(e&&t[e](s),!1)]}renderDoc(t,e=me.UNPROCESSED){for(const s of this.items)if(s.priority>=e&&s.item.renderDoc(t))return}renderMath(t,e,s=me.UNPROCESSED){for(const i of this.items)if(i.priority>=s&&i.item.renderMath(t,e))return}renderConvert(t,e,s=me.LAST){for(const i of this.items){if(i.priority>s)return;if(i.item.convert&&i.item.renderMath(t,e))return}}findID(t){for(const e of this.items)if(e.item.id===t)return e.item;return null}}const Js={all:!1,processed:!1,inputJax:null,outputJax:null},$s={all:!0,processed:!0,inputJax:[],outputJax:[]};class Us extends ae{compile(t){return null}}class Gs extends le{typeset(t,e=null){return null}escaped(t,e){return null}}class _s extends ue{}class Vs{constructor(t,e,s){const i=this.constructor;this.document=t,this.options=Qt(Zt({},i.OPTIONS),s),this.math=new(this.options.MathList||_s),this.renderActions=Ks.create(this.options.renderActions),this._actionPromises=[],this._readyPromise=Promise.resolve(),this.processed=new Vs.ProcessBits,this.outputJax=this.options.OutputJax||new Gs;let r=this.options.InputJax||[new Us];Array.isArray(r)||(r=[r]),this.inputJax=r,this.adaptor=e,this.outputJax.setAdaptor(e),this.inputJax.map((t=>t.setAdaptor(e))),this.mmlFactory=this.options.MmlFactory||new js,this.inputJax.map((t=>t.setMmlFactory(this.mmlFactory))),this.outputJax.initialize(),this.inputJax.map((t=>t.initialize()))}get kind(){return this.constructor.KIND}addRenderAction(t,...e){const[s,i]=Ks.action(t,e);this.renderActions.add(s,i)}removeRenderAction(t){const e=this.renderActions.findID(t);e&&this.renderActions.remove(e)}render(){return this.clearPromises(),this.renderActions.renderDoc(this),this}renderPromise(){return this.whenReady((()=>zs((()=>qs(this,void 0,void 0,(function*(){return this.render(),yield this.actionPromises(),this.clearPromises(),this}))))))}rerender(t=me.RERENDER){return this.state(t-1),this.render(),this}rerenderPromise(t=me.RERENDER){return this.whenReady((()=>zs((()=>qs(this,void 0,void 0,(function*(){return this.rerender(t),yield this.actionPromises(),this.clearPromises(),this}))))))}convert(t,e={}){let{format:s,display:i,end:r,ex:n,em:o,containerWidth:a,scale:l,family:h}=Qt({format:this.inputJax[0].name,display:!0,end:me.LAST,em:16,ex:8,containerWidth:null,scale:1,family:""},e);null===a&&(a=80*n);const d=this.inputJax.reduce(((t,e)=>e.name===s?e:t),null),c=new this.options.MathItem(t,d,i);return c.start.node=this.adaptor.body(this.document),c.setMetrics(o,n,a,l),h&&this.outputJax.options.mtextInheritFont&&(c.outputData.mtextFamily=h),h&&this.outputJax.options.merrorInheritFont&&(c.outputData.merrorFamily=h),this.clearPromises(),c.convert(this,r),c.typesetRoot||c.root}convertPromise(t,e={}){return this.whenReady((()=>zs((()=>qs(this,void 0,void 0,(function*(){const s=this.convert(t,e);return yield this.actionPromises(),this.clearPromises(),s}))))))}whenReady(t){return this._readyPromise=this._readyPromise.catch((t=>{})).then((()=>{const e=this._readyPromise;this._readyPromise=Promise.resolve();const s=t(),i=this._readyPromise.then((()=>s));return this._readyPromise=e,i}))}actionPromises(){return Promise.all(this._actionPromises)}clearPromises(){this._actionPromises=[]}savePromise(t){this._actionPromises.push(t)}findMath(t=null){return this.processed.set("findMath"),this}compile(){if(!this.processed.isSet("compile")){const t=[];for(const e of this.math)this.compileMath(e),void 0!==e.inputData.recompile&&t.push(e);for(const e of t){const t=e.inputData.recompile;e.state(t.state),e.inputData.recompile=t,this.compileMath(e)}this.processed.set("compile")}return this}compileMath(t){try{t.compile(this)}catch(e){if(e.retry||e.restart)throw e;this.options.compileError(this,t,e),t.inputData.error=e}}compileError(t,e){t.root=this.mmlFactory.create("math",null,[this.mmlFactory.create("merror",{"data-mjx-error":e.message,title:e.message},[this.mmlFactory.create("mtext",null,[this.mmlFactory.create("text").setText("Math input error")])])]),t.display&&t.root.attributes.set("display","block"),t.inputData.error=e.message}typeset(){if(!this.processed.isSet("typeset")){for(const t of this.math)try{t.typeset(this)}catch(e){if(e.retry||e.restart)throw e;this.options.typesetError(this,t,e),t.outputData.error=e}this.processed.set("typeset")}return this}typesetError(t,e){t.typesetRoot=this.adaptor.node("mjx-container",{class:"MathJax mjx-output-error",jax:this.outputJax.name},[this.adaptor.node("span",{"data-mjx-error":e.message,title:e.message,style:{color:"red","background-color":"yellow","line-height":"normal"}},[this.adaptor.text("Math output error")])]),t.display&&this.adaptor.setAttributes(t.typesetRoot,{style:{display:"block",margin:"1em 0","text-align":"center"}}),t.outputData.error=e.message}getMetrics(){return this.processed.isSet("getMetrics")||(this.outputJax.getMetrics(this),this.processed.set("getMetrics")),this}updateDocument(){if(!this.processed.isSet("updateDocument")){for(const t of this.math.reversed())t.updateDocument(this);this.processed.set("updateDocument")}return this}removeFromDocument(t=!1){return this}state(t,e=!1){for(const s of this.math)s.state(t,e);return t<me.INSERTED&&this.processed.clear("updateDocument"),t<me.TYPESET&&(this.processed.clear("typeset"),this.processed.clear("getMetrics")),t<me.COMPILED&&this.processed.clear("compile"),t<me.FINDMATH&&this.processed.clear("findMath"),this}reset(t={processed:!0}){return(t=Qt(Object.assign({},Js),t)).all&&Object.assign(t,$s),t.processed&&this.processed.reset(),t.inputJax&&this.inputJax.forEach((e=>e.reset(...t.inputJax))),t.outputJax&&this.outputJax.reset(...t.outputJax),this}clear(){return this.reset(),this.math.clear(),this}done(){return Promise.resolve()}concat(t){return this.math.merge(t),this}clearMathItemsWithin(t){const e=this.getMathItemsWithin(t);for(const t of e.slice(0).reverse())t.clear();return this.math.remove(...e),e}getMathItemsWithin(t){Array.isArray(t)||(t=[t]);const e=this.adaptor,s=[],i=e.getElements(t,this.document);t:for(const t of this.math)for(const r of i)if(t.start.node&&e.contains(r,t.start.node)){s.push(t);continue t}return s}}Vs.KIND="MathDocument",Vs.OPTIONS={OutputJax:null,InputJax:null,MmlFactory:null,MathList:_s,MathItem:class extends pe{},compileError:(t,e,s)=>{t.compileError(e,s)},typesetError:(t,e,s)=>{t.typesetError(e,s)},renderActions:Ut({find:[me.FINDMATH,"findMath","",!1],compile:[me.COMPILED],metrics:[me.METRICS,"getMetrics","",!1],typeset:[me.TYPESET],update:[me.INSERTED,"updateDocument",!1]})},Vs.ProcessBits=Fs("findMath","compile","getMetrics","typeset","updateDocument");class Ys extends Vs{}class Zs{constructor(t,e=5){this.documentClass=Ys,this.adaptor=t,this.priority=e}get name(){return this.constructor.NAME}handlesDocument(t){return!1}create(t,e){return new this.documentClass(t,this.adaptor,e)}}Zs.NAME="generic";class Qs extends ne{register(t){return this.add(t,t.priority)}unregister(t){this.remove(t)}handlesDocument(t){for(const e of this){const s=e.item;if(s.handlesDocument(t))return s}throw new Error("Can't find handler for document")}document(t,e=null){return this.handlesDocument(t).create(t,e)}}class ti{static methodName(t){return"visit"+(t.charAt(0).toUpperCase()+t.substring(1)).replace(/[^a-z0-9_]/gi,"_")+"Node"}constructor(t){this.nodeHandlers=new Map;for(const e of t.getKinds()){const t=this[ti.methodName(e)];t&&this.nodeHandlers.set(e,t)}}visitTree(t,...e){return this.visitNode(t,...e)}visitNode(t,...e){return(this.nodeHandlers.get(t.kind)||this.visitDefault).call(this,t,...e)}visitDefault(t,...e){if("childNodes"in t)for(const s of t.childNodes)this.visitNode(s,...e)}setNodeHandler(t,e){this.nodeHandlers.set(t,e)}removeNodeHandler(t){this.nodeHandlers.delete(t)}}const ei="data-mjx-";class si extends ti{constructor(t=null){t||(t=new js),super(t)}visitTextNode(t,...e){}visitXMLNode(t,...e){}visitHtmlNode(t,...e){}getKind(t){const e=t.kind;return ie(e,this.constructor.rename,e)}getAttributeList(t){const e=this.constructor,s=ie(t.kind,e.defaultAttributes,{}),i=Object.assign({},s,this.getDataAttributes(t),t.attributes.getAllAttributes()),r=e.variants;return Object.hasOwn(i,"mathvariant")&&(Object.hasOwn(r,i.mathvariant)?i.mathvariant=r[i.mathvariant]:t.getProperty("ignore-variant")&&delete i.mathvariant),i}getDataAttributes(t){const e={},s=t.attributes.getExplicit("mathvariant"),i=this.constructor.variants;s&&(t.getProperty("ignore-variant")||Object.hasOwn(i,s))&&this.setDataAttribute(e,"variant",s),t.getProperty("variantForm")&&this.setDataAttribute(e,"alternate","1"),t.getProperty("pseudoscript")&&this.setDataAttribute(e,"pseudoscript","true"),!1===t.getProperty("autoOP")&&this.setDataAttribute(e,"auto-op","false");const r=t.getProperty("vbox");r&&this.setDataAttribute(e,"vbox",r);const n=t.getProperty("scriptalign");n&&this.setDataAttribute(e,"script-align",n);const o=t.getProperty("mathaccent");void 0!==o&&(o&&!t.isMathAccent()||!o&&!t.isMathAccentWithWidth())&&this.setDataAttribute(e,"mathaccent",o.toString());const a=t.getProperty("texClass");if(void 0!==a){let s=!0;if(a===xe.OP&&t.isKind("mi")){const e=t.getText();s=!(e.length>1&&e.match(We.operatorName))}s&&this.setDataAttribute(e,"texclass",a<0?"NONE":Ie[a])}return t.getProperty("smallmatrix")&&this.setDataAttribute(e,"smallmatrix","true"),e}setDataAttribute(t,e,s){t[ei+e]=s}}si.rename={TeXAtom:"mrow"},si.variants={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold","-tex-mathit":"italic"},si.defaultAttributes={math:{xmlns:"http://www.w3.org/1998/Math/MathML"}};class ii extends si{constructor(){super(...arguments),this.document=null}visitTree(t,e){this.document=e;const s=e.createElement("top");return this.visitNode(t,s),this.document=null,s.firstChild}visitTextNode(t,e){e.appendChild(this.document.createTextNode(t.getText()))}visitXMLNode(t,e){e.appendChild(t.getXML().cloneNode(!0))}visitHtmlNode(t,e){e.appendChild(t.getHTML().cloneNode(!0))}visitInferredMrowNode(t,e){for(const s of t.childNodes)this.visitNode(s,e)}visitDefault(t,e){const s=this.document.createElement(this.getKind(t));this.addAttributes(t,s);for(const e of t.childNodes)this.visitNode(e,s);e.appendChild(s)}addAttributes(t,e){const s=this.getAttributeList(t);for(const t of Object.keys(s))e.setAttribute(t,s[t].toString())}}class ri extends si{visitTree(t){return this.visitNode(t,"")}visitTextNode(t,e){return this.quoteHTML(t.getText())}visitXMLNode(t,e){return e+t.getSerializedXML()}visitHtmlNode(t,e){return t.getSerializedHTML()}visitInferredMrowNode(t,e){const s=[];for(const i of t.childNodes)s.push(this.visitNode(i,e));return s.join("\n")}visitAnnotationNode(t,e){const s=this.childNodeMml(t,"","");return`${e}<annotation${this.getAttributes(t)}>${s}</annotation>`}visitDefault(t,e){const s=this.getKind(t),[i,r]=t.isToken||0===t.childNodes.length?["",""]:["\n",e],n=this.childNodeMml(t,e+" ",i),o=n.match(/\S/)?i+n+r:"";return`${e}<${s}${this.getAttributes(t)}>${o}</${s}>`}childNodeMml(t,e,s){let i="";for(const r of t.childNodes)i+=this.visitNode(r,e)+s;return i}getAttributes(t){const e=[],s=this.getAttributeList(t);for(const t of Object.keys(s)){const i=String(s[t]);void 0!==i&&e.push(t+'="'+this.quoteHTML(i)+'"')}return e.length?" "+e.join(" "):""}quoteHTML(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/[\uD800-\uDBFF]./g,this.toEntity).replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g,this.toEntity)}toEntity(t){return Ze(t)}}class ni{get kind(){return this.node.kind}constructor(t,e){this.factory=t,this.node=e}wrap(t){return this.factory.wrap(t)}walkTree(t,e){if(t(this,e),"childNodes"in this)for(const s of this.childNodes)s&&s.walkTree(t,e);return e}}class oi extends Re{wrap(t,...e){return this.create(t.kind,t,...e)}}const ai="undefined"!=typeof window,li={window:ai?window:null,document:ai?window.document:null,os:(()=>{if(ai&&window.navigator){const t=window.navigator.appVersion,e=[["Win","Windows"],["Mac","MacOS"],["X11","Unix"],["Linux","Unix"]];for(const[s,i]of e)if(t.includes(s))return i;if(window.navigator.userAgent.includes("Android"))return"Unix"}else if("undefined"!=typeof process)return{linux:"Unix",android:"Unix",aix:"Unix",freebsd:"Unix",netbsd:"Unix",openbsd:"Unix",sunos:"Unix",darwin:"MacOS",win32:"Windows",cygwin:"Windows"}[process.platform]||process.platform;return"unknown"})(),path:t=>t};"Windows"===li.os&&(li.path=t=>t.match(/^[/\\]?[a-zA-Z]:[/\\]/)?t.replace(/\\/g,"/").replace(/^\//,""):t);const hi={version:Ot,context:li,handlers:new Qs,document:function(t,e){return hi.handlers.document(t,e)},handleRetriesFor:zs,retryAfter:Xs,asyncLoad:null,asyncIsSynchronous:!1};class di extends pe{get adaptor(){return this.inputJax.adaptor}constructor(t,e,s=!0,i={node:null,n:0,delim:""},r={node:null,n:0,delim:""}){super(t,e,s,i,r)}updateDocument(t){if(this.state()<me.INSERTED){if(this.inputJax.processStrings){let t=this.start.node;if(t===this.end.node)this.end.n&&this.end.n<this.adaptor.value(this.end.node).length&&this.adaptor.split(this.end.node,this.end.n),this.start.n&&(t=this.adaptor.split(this.start.node,this.start.n)),this.adaptor.parent(t)&&this.adaptor.replace(this.typesetRoot,t);else{for(this.start.n&&(t=this.adaptor.split(t,this.start.n));t!==this.end.node;){const e=this.adaptor.next(t);this.adaptor.remove(t),t=e}this.adaptor.insert(this.typesetRoot,t),this.end.n<this.adaptor.value(t).length&&this.adaptor.split(t,this.end.n),this.adaptor.remove(t)}}else this.adaptor.replace(this.typesetRoot,this.start.node);this.start.node=this.end.node=this.typesetRoot,this.start.n=this.end.n=0,this.state(me.INSERTED)}}updateStyleSheet(t){t.addStyleSheet()}removeFromDocument(t=!1){if(super.removeFromDocument(t),this.state()>=me.TYPESET){const e=this.adaptor,s=this.start.node;let i=e.text("");if(t){const t=this.start.delim+this.math+this.end.delim;if(this.inputJax.processStrings)i=e.text(t);else{const s=e.parse(t,"text/html");i=e.firstChild(e.body(s))}}e.parent(s)&&e.replace(i,s),this.start.node=this.end.node=i,this.start.n=this.end.n=0}}}class ci extends ue{}class ui{constructor(t=null){const e=this.constructor;this.options=Qt(Zt({},e.OPTIONS),t),this.init(),this.getPatterns()}init(){this.strings=[],this.string="",this.snodes=[],this.nodes=[],this.stack=[]}getPatterns(){const t=Gt(this.options.skipHtmlTags),e=Gt(this.options.ignoreHtmlClass),s=Gt(this.options.processHtmlClass);this.skipHtmlTags=new RegExp("^(?:"+t.join("|")+")$","i"),this.ignoreHtmlClass=new RegExp("(?:^| )(?:"+e.join("|")+")(?: |$)"),this.processHtmlClass=new RegExp("(?:^| )(?:"+s+")(?: |$)")}pushString(){this.string.match(/\S/)&&(this.strings.push(this.string),this.nodes.push(this.snodes)),this.string="",this.snodes=[]}extendString(t,e){this.snodes.push([t,e.length]),this.string+=e}handleText(t,e){return e||this.extendString(t,this.adaptor.value(t)),this.adaptor.next(t)}handleTag(t,e){if(!e){const e=this.options.includeHtmlTags[this.adaptor.kind(t)];e instanceof Function?this.extendString(t,e(t,this.adaptor)):this.extendString(t,e)}return this.adaptor.next(t)}handleContainer(t,e){this.pushString();const s=this.adaptor.getAttribute(t,"class")||"",i=this.adaptor.kind(t)||"",r=this.processHtmlClass.exec(s);let n=t;return!this.adaptor.firstChild(t)||this.adaptor.getAttribute(t,"data-MJX")||!r&&this.skipHtmlTags.exec(i)?n=this.adaptor.next(t):(this.adaptor.next(t)&&this.stack.push([this.adaptor.next(t),e]),n=this.adaptor.firstChild(t),e=(e||this.ignoreHtmlClass.exec(s))&&!r),[n,e]}handleOther(t,e){return this.pushString(),this.adaptor.next(t)}find(t){this.init();const e=this.adaptor.next(t);let s=!1;const i=this.options.includeHtmlTags;for(;t&&t!==e;){const e=this.adaptor.kind(t);"#text"===e?t=this.handleText(t,s):Object.hasOwn(i,e)?t=this.handleTag(t,s):e?[t,s]=this.handleContainer(t,s):t=this.handleOther(t,s),!t&&this.stack.length&&(this.pushString(),[t,s]=this.stack.pop())}this.pushString();const r=[this.strings,this.nodes];return this.init(),r}}ui.OPTIONS={skipHtmlTags:["script","noscript","style","textarea","pre","code","math","select","option","mjx-container"],includeHtmlTags:Ut({br:"\n",wbr:"","#comment":""}),ignoreHtmlClass:"mathjax_ignore",processHtmlClass:"mathjax_process"},ge("STYLES",me.INSERTED+1);class Ei extends Vs{constructor(t,e,s){const[i,r]=se(s,ui.OPTIONS);super(t,e,i),this.domStrings=this.options.DomStrings||new ui(r),this.domStrings.adaptor=e,this.styles=[]}findPosition(t,e,s,i){const r=this.adaptor,n=1/(i[t].length||1);let o=t;for(const[a,l]of i[t]){if(e<=l&&"#text"===r.kind(a))return{i:o,node:a,n:Math.max(e,0),delim:s};e-=l,o+=n}return{node:null,n:0,delim:s}}mathItem(t,e,s){const i=t.math,r=this.findPosition(t.n,t.start.n,t.open,s),n=this.findPosition(t.n,t.end.n,t.close,s);return new this.options.MathItem(i,e,t.display,r,n)}findMath(t){if(!this.processed.isSet("findMath")){this.adaptor.document=this.document,t=Qt({elements:this.options.elements||[this.adaptor.body(this.document)]},t);const e=this.adaptor.getElements(t.elements,this.document);for(const t of this.inputJax){const s=t.processStrings?this.findMathFromStrings(t,e):this.findMathFromDOM(t,e);this.math.merge(s)}this.processed.set("findMath")}return this}findMathFromStrings(t,e){const s=[],i=[];for(const t of e){const[e,r]=this.domStrings.find(t);s.push(...e),i.push(...r)}const r=new this.options.MathList;for(const e of t.findMath(s))r.push(this.mathItem(e,t,i));return r}findMathFromDOM(t,e){const s=[];for(const i of e)for(const e of t.findMath(i))s.push(new this.options.MathItem(e.math,t,e.display,e.start,e.end));return new this.options.MathList(...s)}updateDocument(){return this.processed.isSet("updateDocument")||(this.addPageElements(),this.addStyleSheet(),super.updateDocument(),this.processed.set("updateDocument")),this}addPageElements(){const t=this.adaptor,e=t.body(this.document),s=this.documentPageElements();if(s){const i=t.firstChild(e);i?t.insert(s,i):t.append(e,s)}}addStyleSheet(){const t=this.documentStyleSheet(),e=this.adaptor;if(t&&!e.parent(t)){const s=e.head(this.document),i=this.findSheet(s,e.getAttribute(t,"id"));i?e.replace(t,i):e.append(s,t)}}findSheet(t,e){if(e)for(const s of this.adaptor.tags(t,"style"))if(this.adaptor.getAttribute(s,"id")===e)return s;return null}removeFromDocument(t=!1){if(this.processed.isSet("updateDocument"))for(const e of this.math)e.state()>=me.INSERTED&&e.state(me.TYPESET,t);return this.processed.clear("updateDocument"),this}documentStyleSheet(){return this.outputJax.styleSheet(this)}documentPageElements(){return this.outputJax.pageElements(this)}addStyles(t){this.styles.push(t),"insertStyles"in this.outputJax&&this.outputJax.insertStyles(t)}getStyles(){return this.styles}}Ei.KIND="HTML",Ei.OPTIONS=Object.assign(Object.assign({},Vs.OPTIONS),{renderActions:Ut(Object.assign(Object.assign({},Vs.OPTIONS.renderActions),{styles:[me.STYLES,"","updateStyleSheet",!1]})),MathList:ci,MathItem:di,DomStrings:null});class pi extends Zs{constructor(){super(...arguments),this.documentClass=Ei}handlesDocument(t){const e=this.adaptor;if("string"==typeof t)try{t=e.parse(t,"text/html")}catch(t){}return t instanceof e.window.Document||t instanceof e.window.HTMLElement||t instanceof e.window.DocumentFragment}create(t,e){const s=this.adaptor;if("string"==typeof t)t=s.parse(t,"text/html");else if(t instanceof s.window.HTMLElement||t instanceof s.window.DocumentFragment){const e=t;t=s.parse("","text/html"),s.append(s.body(t),e)}return super.create(t,e)}}function mi(t){const e=new pi(t);return hi.handlers.register(e),e}class gi{get cssText(){return this.getStyleString()}constructor(t=null){this.styles={},this.addStyles(t)}addStyles(t){if(t)for(const e of Object.keys(t))this.styles[e]||(this.styles[e]={}),Object.assign(this.styles[e],t[e])}removeStyles(...t){for(const e of t)delete this.styles[e]}clear(){this.styles={}}getStyleString(){return this.getStyleRules().join("\n\n")}getStyleRules(t=this.styles,e=""){const s=Object.keys(t),i=new Array(s.length);let r=0;for(const n of s){const s=t[n];i[r++]=`${e}${n} {\n${this.getStyleDefString(s,e)}\n${e}}`}return i}getStyleDefString(t,e){const s=Object.keys(t),i=new Array(s.length);let r=0;for(const n of s)i[r++]=t[n]instanceof Object?e+this.getStyleRules({[n]:t[n]},e+" ").join("\n"+e):" "+e+n+": "+t[n]+";";return i.join("\n"+e)}}var Ri;const fi=!!(null===(Ri=li.window)||void 0===Ri?void 0:Ri.HTMLDialogElement);class Li{constructor(t){this.minW=200,this.minH=80,this.tx=0,this.ty=0,this.dragging=!1,this.events=[["mousemove",this.MouseMove.bind(this)],["mouseup",this.MouseUp.bind(this)]],this.mode="",this.actions={down:{move:t=>{t.dialog.classList.add("mjx-moving")}},move:{move:(t,e)=>[e.x-t.x,e.y-t.y,0,0],top:(t,e)=>[0,(e.y-t.y)/2,0,t.y-e.y],bottom:(t,e)=>[0,(e.y-t.y)/2,0,e.y-t.y],left:(t,e)=>[(e.x-t.x)/2,0,t.x-e.x,0],right:(t,e)=>[(e.x-t.x)/2,0,e.x-t.x,0],topleft:(t,e)=>[(e.x-t.x)/2,(e.y-t.y)/2,t.x-e.x,t.y-e.y],topright:(t,e)=>[(e.x-t.x)/2,(e.y-t.y)/2,e.x-t.x,t.y-e.y],botleft:(t,e)=>[(e.x-t.x)/2,(e.y-t.y)/2,t.x-e.x,e.y-t.y],botright:(t,e)=>[(e.x-t.x)/2,(e.y-t.y)/2,e.x-t.x,e.y-t.y]},up:{move:t=>{t.dialog.classList.remove("mjx-moving")}},keymove:{left:()=>[-5,0,0,0],right:()=>[5,0,0,0],up:()=>[0,-5,0,0],down:()=>[0,5,0,0]},bigmove:{left:()=>[-20,0,0,0],right:()=>[20,0,0,0],up:()=>[0,-20,0,0],down:()=>[0,20,0,0]},keysize:{left:()=>[-3,0,-6,0],right:()=>[3,0,6,0],up:()=>[0,-3,0,-6],down:()=>[0,3,0,6]},bigsize:{left:()=>[-10,0,-20,0],right:()=>[10,0,20,0],up:()=>[0,-10,0,-20],down:()=>[0,10,0,20]}};const{adaptor:e,node:s=null}=t;this.init(e),this.node=s,this.background=fi?null:e.node("mjx-dialog-background"),this.x=this.y=0,this.dragging=!1,this.action="",this.dialog=this.html(t),this.title=this.dialog.firstChild.firstChild.firstChild,this.content=this.dialog.firstChild.firstChild.nextSibling;const i=this.dialog.lastChild;i.addEventListener("click",this.closeDialog.bind(this)),i.addEventListener("keydown",this.actionKey.bind(this,this.closeDialog.bind(this)));const r=this.dialog.lastChild.previousSibling;r.addEventListener("click",this.helpDialog.bind(this,e)),r.addEventListener("keydown",this.actionKey.bind(this,this.helpDialog.bind(this,e))),this.noDrag=Array.from(this.dialog.querySelectorAll('[data-drag="none"]'))}init(t){const e=this.constructor;if(!t.document.head.querySelector("#"+e.styleId)){const s=t.node("style",{id:e.styleId});s.textContent=new gi(e.styles).cssText,t.document.head.append(s)}}html(t){const{title:e,message:s,adaptor:i,styles:r=null,extraNodes:n=[],className:o=Li.className}=t;if(r){const t=i.node("style");t.textContent=new gi(r).cssText,n.unshift(t)}const a="mjx-dialog-label-"+Li.id++,l=i.node("dialog",{closedby:"any",class:("mjx-dialog "+o).trim()},[i.node("mjx-dialog",{"aria-labeledby":a},[i.node("mjx-title",{},[i.node("h1",{id:a,tabIndex:0})]),i.node("div",{"data-drag":"none",tabIndex:0})]),...n,i.node("mjx-dialog-spacer",{"aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"top","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"bottom","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"left","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"right","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"topleft","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"topright","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"botleft","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"botright","aria-hidden":!0}),i.node("mjx-dialog-help",{class:"mjx-dialog-button","data-drag":"none",tabIndex:0,role:"button","aria-label":"Dialog Help"},[i.node("mjx-dialog-icon",{"aria-hidden":!0},[i.text("?")])]),i.node("mjx-dialog-close",{class:"mjx-dialog-button","data-drag":"none",tabIndex:0,role:"button","aria-label":"Close Dialog Box"},[i.node("mjx-dialog-icon",{"aria-hidden":!0},[i.text("\xd7")])])]);return l.firstChild.firstChild.firstChild.innerHTML=e,l.firstChild.childNodes[1].innerHTML=s,l}attach(){fi?(this.dialog.addEventListener("mousedown",this.MouseDown.bind(this)),this.dialog.addEventListener("keydown",this.KeyDown.bind(this),!0),document.body.append(this.dialog),this.dialog.showModal()):(this.background.addEventListener("mousedown",this.MouseDown.bind(this)),this.background.addEventListener("keydown",this.KeyDown.bind(this),!0),this.dialog.setAttribute("tabindex","0"),this.dialog.addEventListener("click",this.stop),this.background.append(this.dialog),document.body.append(this.background)),li.window.addEventListener("visibilitychange",this.Visibility.bind(this)),this.minW=Math.min(this.minW,this.dialog.clientWidth-8),this.minH=Math.min(this.minH,this.dialog.clientHeight-this.title.offsetHeight-8),this.title.focus()}dragAction(t,e=null){e&&this.stop(e);const s=this.actions[t][this.action],i=s?s(this,e):null;if(!i)return;let[r,n,o,a]=i;if(o){const t=this.w+o;t>=this.minW?(this.x=null==e?void 0:e.x,this.w=t,this.dialog.style.maxWidth=this.dialog.style.width=t+"px"):r=0}if(a){const t=this.h+a;t>=this.minH+this.title.offsetHeight?(this.y=null==e?void 0:e.y,this.h=t,this.dialog.style.maxHeight=this.dialog.style.height=t+"px"):n=0}(r||n)&&(r&&(this.x=null==e?void 0:e.x,this.tx+=r||0),n&&(this.y=null==e?void 0:e.y,this.ty+=n||0),this.dialog.style.transform=`translate(${this.tx}px, ${this.ty}px)`)}MouseDown(t){const e=t.target;if(!(1!==t.buttons||t.shiftKey||t.metaKey||t.altKey||t.ctrlKey))if(this.inDialog(t)){for(const t of this.noDrag)if(e===t||t.contains(e))return;this.action=e.getAttribute("data-drag")||"move",this.startDrag(t),this.dragAction("down",t)}else this.closeDialog(t)}MouseMove(t){1!==t.buttons&&this.endDrag(),this.dragging&&this.dragAction("move",t)}MouseUp(t){this.dragging&&(this.dragAction("up",t),this.endDrag())}Visibility(){li.document.hidden&&this.closeDialog()}KeyDown(t){const e=this.constructor.keyActions.get(t.key);e&&e(this,t)}escKey(t){this.closeDialog(t)}aKey(t){(t.ctrlKey||t.metaKey)&&(this.selectAll(),this.stop(t))}mKey(t){this.mode="move"===this.mode?"":"move",this.stop(t)}sKey(t){this.mode="size"===this.mode?"":"size",this.stop(t)}arrowKey(t,e){t.ctrlKey||this.dragging||(this.action=e,this.getWH(),t.altKey||"move"===this.mode?(this.dragAction(t.shiftKey?"bigmove":"keymove"),this.stop(t)):(t.metaKey||"size"===this.mode)&&(this.dragAction(t.shiftKey?"bigsize":"keysize"),this.stop(t)),this.action="")}actionKey(t,e){"Enter"!==e.code&&"Space"!==e.code||t(e)}selectAll(){document.getSelection().selectAllChildren(this.content)}copyToClipboard(){this.selectAll();try{document.execCommand("copy")}catch(t){alert(`Can't copy to clipboard: ${t.message}`)}document.getSelection().removeAllRanges()}startDrag(t){this.x=t.x,this.y=t.y,this.getWH(),this.dragging=!0;const e=this.background||this.dialog;for(const[t,s]of this.events)e.addEventListener(t,s)}getWH(){this.w=this.dialog.clientWidth-8,this.h=this.dialog.clientHeight-8}endDrag(){this.action="",this.dragging=!1;const t=this.background||this.dialog;for(const[e,s]of this.events)t.removeEventListener(e,s)}closeDialog(t){var e;fi?(this.dialog.close(),this.dialog.remove()):this.background.remove(),null===(e=this.node)||void 0===e||e.focus(),t&&this.stop(t)}helpDialog(t,e){new Li({title:"MathJax Dialog Help",message:this.constructor.helpMessage,adaptor:t,className:"mjx-dialog-help",styles:{".mjx-dialog-help":{"max-width":"calc(min(50em, 80%))"}}}).attach(),this.stop(e)}inDialog(t){if(!this.dialog.contains(t.target))return!1;const{x:e,y:s}=t,{left:i,right:r,top:n,bottom:o}=this.dialog.getBoundingClientRect();return e>=i&&e<=r&&s>=n&&s<=o}stop(t){t.preventDefault&&t.preventDefault(),t.stopImmediatePropagation?t.stopImmediatePropagation():t.stopPropagation&&t.stopPropagation()}}Li.keyActions=new Map([["Escape",(t,e)=>t.escKey(e)],["a",(t,e)=>t.aKey(e)],["m",(t,e)=>t.mKey(e)],["s",(t,e)=>t.sKey(e)],["ArrowRight",(t,e)=>t.arrowKey(e,"right")],["ArrowLeft",(t,e)=>t.arrowKey(e,"left")],["ArrowUp",(t,e)=>t.arrowKey(e,"up")],["ArrowDown",(t,e)=>t.arrowKey(e,"down")]]),Li.styleId="MJX-DIALOG-styles",Li.className="",Li.id=0,Li.styles={"mjx-dialog-background":{display:"flex","flex-direction":"column","justify-content":"center",position:"fixed",top:0,left:0,right:0,bottom:0,"z-index":1001},".mjx-dialog":{"max-width":"calc(min(60em, 90%))","max-height":"calc(min(50em, 85%))",border:"3px outset","border-radius":"15px",color:"black","background-color":"#DDDDDD","box-shadow":"0px 10px 20px #808080",padding:"4px 4px",cursor:"grab",overflow:"visible",display:"flex","flex-direction":"column","align-items":"center",position:"relative",top:"-4%"},".mjx-dialog.mjx-moving":{cursor:"grabbing"},'.mjx-dialog > input[type="button"]':{width:"fit-content"},".mjx-dialog > mjx-dialog-spacer":{display:"block",height:".75em","flex-shrink":0},".mjx-dialog::backdrop":{opacity:0,cursor:"default"},"mjx-dialog":{all:"initial",cursor:"inherit",width:"100%",display:"flex","flex-direction":"column","flex-grow":1,"flex-shrink":1,overflow:"hidden"},"mjx-dialog > mjx-title":{display:"block","text-align":"center",margin:".25em 1.75em",overflow:"hidden","white-space":"nowrap","-webkit-user-select":"none","user-select":"none","flex-shrink":0},"mjx-dialog > mjx-title > h1":{"font-size":"125%",margin:0},"mjx-dialog > div":{margin:"0 1em .5em",padding:"8px 18px",overflow:"auto",border:"2px inset black","background-color":"white","text-align":"left",cursor:"default","flex-grow":1,"flex-shrink":1},"mjx-dialog > div > pre":{margin:0},".mjx-dialog-button":{position:"absolute",top:"6px",height:"17px",width:"17px",cursor:"default",display:"block",border:"2px solid #AAA","border-radius":"18px","font-family":'"Courier New", Courier',"text-align":"center",color:"#F0F0F0","-webkit-user-select":"none","user-select":"none"},".mjx-dialog-button:hover":{color:"white !important",border:"2px solid #CCC !important"},".mjx-dialog-button > mjx-dialog-icon":{display:"block","background-color":"#AAA",border:"1.5px solid","border-radius":"18px","line-height":0,padding:"8px 0 6px"},".mjx-dialog-button > mjx-dialog-icon:hover":{"background-color":"#CCC !important"},"mjx-dialog-close":{right:"6px","font-size":"20px;"},"mjx-dialog-help":{left:"6px","font-size":"14px;","font-weight":"bold"},".mjx-dialog-help mjx-dialog-help":{display:"none"},"mjx-dialog kbd":{display:"inline-block",padding:"3px 5px","font-size":"11px","line-height":"10px",color:"#444d56","vertical-align":"middle","background-color":"#fafbfc",border:"solid 1.5px #c6cbd1","border-bottom-color":"#959da5","border-radius":"3px","box-shadow":"inset -.5px -1px 0 #959da5"},'mjx-dialog-drag[data-drag="top"]':{height:"5px",position:"absolute",top:"-3px",left:"10px",right:"10px",cursor:"ns-resize"},'mjx-dialog-drag[data-drag="bottom"]':{height:"5px",position:"absolute",bottom:"-3px",left:"10px",right:"10px",cursor:"ns-resize"},'mjx-dialog-drag[data-drag="left"]':{width:"5px",position:"absolute",left:"-3px",top:"10px",bottom:"10px",cursor:"ew-resize"},'mjx-dialog-drag[data-drag="right"]':{width:"5px",position:"absolute",right:"-3px",top:"10px",bottom:"10px",cursor:"ew-resize"},'mjx-dialog-drag[data-drag="topleft"]':{width:"13px",height:"13px",position:"absolute",left:"-3px",top:"-3px",cursor:"nwse-resize"},'mjx-dialog-drag[data-drag="topright"]':{width:"13px",height:"13px",position:"absolute",right:"-3px",top:"-3px",cursor:"nesw-resize"},'mjx-dialog-drag[data-drag="botleft"]':{width:"13px",height:"13px",position:"absolute",left:"-3px",bottom:"-3px",cursor:"nesw-resize"},'mjx-dialog-drag[data-drag="botright"]':{width:"13px",height:"13px",position:"absolute",right:"-3px",bottom:"-3px",cursor:"nwse-resize"},"@media (prefers-color-scheme: dark)":{".mjx-dialog":{"background-color":"#303030","box-shadow":"0px 10px 20px #000",border:"3px outset #7C7C7C"},"mjx-dialog":{color:"#E0E0E0"},"mjx-dialog > div":{border:"2px inset #7C7C7C","background-color":"#222025"},"a[href]":{color:"#86A7F5"},"a[href]:visited":{color:"#DD98E2"},"mjx-dialog kbd":{color:"#F8F8F8","background-color":"#545454",border:"solid 1.5px #7A7C7E","border-bottom-color":"#707070","box-shadow":"inset -.5px -1px 0 #818589"},".mjx-dialog-button":{border:"2px solid #686868",color:"#A4A4A4"},".mjx-dialog-button:hover":{color:"#CBCBCB !important",border:"2px solid #888888 !important"},".mjx-dialog-button > mjx-dialog-icon":{"background-color":"#646464"},".mjx-dialog-button > mjx-dialog-icon:hover":{"background-color":"#888888 !important"}}},Li.helpMessage='\n <p>The dialog boxes in MathJax are movable and sizeable.</p>\n\n <p>For mouse users, dragging any of the edges will enlarge or shrink\n the dialog box by moving that side. Dragging any of the corners\n changes the two sides that meet at that corner. Dragging elsewhere on\n the dialog frame will move the dialog without changing its size.</p>\n\n <p>For keyboard users, there are two ways to adjust the position\n and size of the dialog box. The first is to hold the\n <kbd>Alt</kbd> or <kbd>Option</kbd> key and press any of the arrow\n keys to move the dialog box in the given direction. Hold the\n <kbd>Win</kbd> or <kbd>Command</kbd> key and press any of the\n arrow keys to enlarge or shrink the dialog box. Left and right\n move the right-hand edge of the dialog, while up and down move the\n bottom edge of the dialog.\n </p>\n\n <p>For some users, holding two keys down at once may be difficult,\n so the second way is to press the <kbd>m</kbd> to start "move"\n mode, then use the arrow keys to move the dialog box in the given\n direction. Press <kbd>m</kbd> again to stop moving the dialog.\n Similarly, press <kbd>s</kbd> to start and stop "sizing" mode,\n where the arrows will change the size of the dialog box.</p>\n\n <p>Holding a <kbd>shift</kbd> key along with the arrow key will\n make larger changes in the size or position, for either method\n described above.</p>\n\n <p>Use <kbd>Tab</kbd> to move among the text, buttons, and links\n within the dialog. The <kbd>Enter</kbd> or <kbd>Space</kbd> key\n activates the focused item. The <kbd>Escape</kbd> key closes the\n dialog, as does clicking outside the dialog box, or clicking the\n "\xd7" icon in the upper right-hand corner of the dialog.</p>\n ';class bi extends Li{static post(t){const e=new this(t);return e.attach(),e}}function yi(t){return hi.asyncLoad?new Promise(((e,s)=>{const i=hi.asyncLoad(t);i instanceof Promise?i.then((t=>e(t))).catch((t=>s(t))):e(i)})):Promise.reject(`Can't load '${t}': No mathjax.asyncLoad method specified`)}const Ni=1e6,xi={px:1,in:96,cm:96/2.54,mm:96/25.4},Ii={em:1,ex:.431,pt:.1,pc:1.2,mu:1/18},Ti={veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:.04,medium:.06,thick:.1,normal:1,big:2,small:1/Math.sqrt(2),infinity:Ni};function Ci(t,e=0,s=1,i=16){if("string"!=typeof t&&(t=String(t)),""===t||null==t)return e;if(Ti[t])return Ti[t];const r=t.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!r||""===r[0])return e;const n=parseFloat(r[1]||"1"),o=r[2];return Object.hasOwn(xi,o)?n*xi[o]/i/s:Object.hasOwn(Ii,o)?n*Ii[o]:"%"===o?n/100*e:n*e}function Di(t){return(100*t).toFixed(1).replace(/\.?0+$/,"")+"%"}function Oi(t){return Math.abs(t)<.001?"0":t.toFixed(3).replace(/\.?0+$/,"")+"em"}function vi(t,e=-Ni,s=16){return t*=s,e&&t<e&&(t=e),Math.abs(t)<.1?"0":t.toFixed(1).replace(/\.0$/,"")+"px"}class Ai{static zero(){return new Ai({h:0,d:0,w:0})}static empty(){return new Ai}constructor(t={w:0,h:-Ni,d:-Ni}){this.w=t.w||0,this.h="h"in t?t.h:-Ni,this.d="d"in t?t.d:-Ni,this.L=this.R=this.ic=this.oc=this.sk=this.dx=0,this.scale=this.rscale=1,this.pwidth=""}empty(){return this.w=0,this.h=this.d=-Ni,this}clean(){this.w===-Ni&&(this.w=0),this.h===-Ni&&(this.h=0),this.d===-Ni&&(this.d=0)}rescale(t){this.w*=t,this.h*=t,this.d*=t}combine(t,e=0,s=0){const i=t.rscale,r=e+i*(t.w+t.L+t.R),n=s+i*t.h,o=i*t.d-s;r>this.w&&(this.w=r),n>this.h&&(this.h=n),o>this.d&&(this.d=o)}append(t){const e=t.rscale;this.w+=e*(t.w+t.L+t.R),e*t.h>this.h&&(this.h=e*t.h),e*t.d>this.d&&(this.d=e*t.d)}updateFrom(t){this.h=t.h,this.d=t.d,this.w=t.w,t.pwidth&&(this.pwidth=t.pwidth)}copy(){const t=new Ai;return Object.assign(t,this),t}}Ai.fullWidth="100%",Ai.boxSides=[["Top",0,"h"],["Right",1,"w"],["Bottom",2,"d"],["Left",3,"w"]];const Si={loadMissingEntities:!0},wi={ApplyFunction:"\u2061",Backslash:"\u2216",Because:"\u2235",Breve:"\u02d8",Cap:"\u22d2",CenterDot:"\xb7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",Congruent:"\u2261",ContourIntegral:"\u222e",Coproduct:"\u2210",Cross:"\u2a2f",Cup:"\u22d3",CupCap:"\u224d",Dagger:"\u2021",Del:"\u2207",Delta:"\u0394",Diamond:"\u22c4",DifferentialD:"\u2146",DotEqual:"\u2250",DoubleDot:"\xa8",DoubleRightTee:"\u22a8",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownLeftVector:"\u21bd",DownRightVector:"\u21c1",DownTee:"\u22a4",Downarrow:"\u21d3",Element:"\u2208",EqualTilde:"\u2242",Equilibrium:"\u21cc",Exists:"\u2203",ExponentialE:"\u2147",FilledVerySmallSquare:"\u25aa",ForAll:"\u2200",Gamma:"\u0393",Gg:"\u22d9",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Hacek:"\u02c7",Hat:"^",HumpDownHump:"\u224e",HumpEqual:"\u224f",Im:"\u2111",ImaginaryI:"\u2148",Integral:"\u222b",Intersection:"\u22c2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Lambda:"\u039b",Larr:"\u219e",LeftAngleBracket:"\u27e8",LeftArrow:"\u2190",LeftArrowRightArrow:"\u21c6",LeftCeiling:"\u2308",LeftDownVector:"\u21c3",LeftFloor:"\u230a",LeftRightArrow:"\u2194",LeftTee:"\u22a3",LeftTriangle:"\u22b2",LeftTriangleEqual:"\u22b4",LeftUpVector:"\u21bf",LeftVector:"\u21bc",Leftarrow:"\u21d0",Leftrightarrow:"\u21d4",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",Ll:"\u22d8",Lleftarrow:"\u21da",LongLeftArrow:"\u27f5",LongLeftRightArrow:"\u27f7",LongRightArrow:"\u27f6",Longleftarrow:"\u27f8",Longleftrightarrow:"\u27fa",Longrightarrow:"\u27f9",Lsh:"\u21b0",MinusPlus:"\u2213",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotLeftTriangle:"\u22ea",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotPrecedes:"\u2280",NotPrecedesSlantEqual:"\u22e0",NotRightTriangle:"\u22eb",NotRightTriangleEqual:"\u22ed",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsSlantEqual:"\u22e1",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotVerticalBar:"\u2224",Omega:"\u03a9",OverBar:"\u203e",OverBrace:"\u23de",PartialD:"\u2202",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",Product:"\u220f",Proportional:"\u221d",Psi:"\u03a8",Rarr:"\u21a0",Re:"\u211c",ReverseEquilibrium:"\u21cb",RightAngleBracket:"\u27e9",RightArrow:"\u2192",RightArrowLeftArrow:"\u21c4",RightCeiling:"\u2309",RightDownVector:"\u21c2",RightFloor:"\u230b",RightTee:"\u22a2",RightTeeArrow:"\u21a6",RightTriangle:"\u22b3",RightTriangleEqual:"\u22b5",RightUpVector:"\u21be",RightVector:"\u21c0",Rightarrow:"\u21d2",Rrightarrow:"\u21db",Rsh:"\u21b1",Sigma:"\u03a3",SmallCircle:"\u2218",Sqrt:"\u221a",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Star:"\u22c6",Subset:"\u22d0",SubsetEqual:"\u2286",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",SuchThat:"\u220b",Sum:"\u2211",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22d1",Therefore:"\u2234",Theta:"\u0398",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",UnderBar:"_",UnderBrace:"\u23df",Union:"\u22c3",UnionPlus:"\u228e",UpArrow:"\u2191",UpDownArrow:"\u2195",UpTee:"\u22a5",Uparrow:"\u21d1",Updownarrow:"\u21d5",Upsilon:"\u03a5",Vdash:"\u22a9",Vee:"\u22c1",VerticalBar:"\u2223",VerticalTilde:"\u2240",Vvdash:"\u22aa",Wedge:"\u22c0",Xi:"\u039e",amp:"&",acute:"\xb4",aleph:"\u2135",alpha:"\u03b1",amalg:"\u2a3f",and:"\u2227",ang:"\u2220",angmsd:"\u2221",angsph:"\u2222",ape:"\u224a",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",beta:"\u03b2",beth:"\u2136",between:"\u226c",bigcirc:"\u25ef",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",blacklozenge:"\u29eb",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",bowtie:"\u22c8",boxdl:"\u2510",boxdr:"\u250c",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxur:"\u2514",bsol:"\\",bull:"\u2022",cap:"\u2229",check:"\u2713",chi:"\u03c7",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledR:"\xae",circledS:"\u24c8",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",clubs:"\u2663",colon:":",comp:"\u2201",ctdot:"\u22ef",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cup:"\u222a",curarr:"\u21b7",curlyvee:"\u22ce",curlywedge:"\u22cf",dagger:"\u2020",daleth:"\u2138",ddarr:"\u21ca",deg:"\xb0",delta:"\u03b4",digamma:"\u03dd",div:"\xf7",divideontimes:"\u22c7",dot:"\u02d9",doteqdot:"\u2251",dotplus:"\u2214",dotsquare:"\u22a1",dtdot:"\u22f1",ecir:"\u2256",efDot:"\u2252",egs:"\u2a96",ell:"\u2113",els:"\u2a95",empty:"\u2205",epsi:"\u03b5",epsiv:"\u03f5",erDot:"\u2253",eta:"\u03b7",eth:"\xf0",flat:"\u266d",fork:"\u22d4",frown:"\u2322",gEl:"\u2a8c",gamma:"\u03b3",gap:"\u2a86",gimel:"\u2137",gnE:"\u2269",gnap:"\u2a8a",gne:"\u2a88",gnsim:"\u22e7",gt:">",gtdot:"\u22d7",harrw:"\u21ad",hbar:"\u210f",hellip:"\u2026",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",imath:"\u0131",infin:"\u221e",intcal:"\u22ba",iota:"\u03b9",jmath:"\u0237",kappa:"\u03ba",kappav:"\u03f0",lEg:"\u2a8b",lambda:"\u03bb",lap:"\u2a85",larrlp:"\u21ab",larrtl:"\u21a2",lbrace:"{",lbrack:"[",le:"\u2264",leftleftarrows:"\u21c7",leftthreetimes:"\u22cb",lessdot:"\u22d6",lmoust:"\u23b0",lnE:"\u2268",lnap:"\u2a89",lne:"\u2a87",lnsim:"\u22e6",longmapsto:"\u27fc",looparrowright:"\u21ac",lowast:"\u2217",loz:"\u25ca",lt:"<",ltimes:"\u22c9",ltri:"\u25c3",macr:"\xaf",malt:"\u2720",mho:"\u2127",mu:"\u03bc",multimap:"\u22b8",nLeftarrow:"\u21cd",nLeftrightarrow:"\u21ce",nRightarrow:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",natur:"\u266e",nearr:"\u2197",nharr:"\u21ae",nlarr:"\u219a",not:"\xac",nrarr:"\u219b",nu:"\u03bd",nvDash:"\u22ad",nvdash:"\u22ac",nwarr:"\u2196",omega:"\u03c9",omicron:"\u03bf",or:"\u2228",osol:"\u2298",period:".",phi:"\u03c6",phiv:"\u03d5",pi:"\u03c0",piv:"\u03d6",prap:"\u2ab7",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",prime:"\u2032",psi:"\u03c8",quot:'"',rarrtl:"\u21a3",rbrace:"}",rbrack:"]",rho:"\u03c1",rhov:"\u03f1",rightrightarrows:"\u21c9",rightthreetimes:"\u22cc",ring:"\u02da",rmoust:"\u23b1",rtimes:"\u22ca",rtri:"\u25b9",scap:"\u2ab8",scnE:"\u2ab6",scnap:"\u2aba",scnsim:"\u22e9",sdot:"\u22c5",searr:"\u2198",sect:"\xa7",sharp:"\u266f",sigma:"\u03c3",sigmav:"\u03c2",simne:"\u2246",smile:"\u2323",spades:"\u2660",sub:"\u2282",subE:"\u2ac5",subnE:"\u2acb",subne:"\u228a",supE:"\u2ac6",supnE:"\u2acc",supne:"\u228b",swarr:"\u2199",tau:"\u03c4",theta:"\u03b8",thetav:"\u03d1",tilde:"\u02dc",times:"\xd7",triangle:"\u25b5",triangleq:"\u225c",upsi:"\u03c5",upuparrows:"\u21c8",veebar:"\u22bb",vellip:"\u22ee",weierp:"\u2118",xi:"\u03be",yen:"\xa5",zeta:"\u03b6",zigrarr:"\u21dd",nbsp:"\xa0",rsquo:"\u2019",lsquo:"\u2018"},ki={};function Mi(t,e){Object.assign(wi,t),ki[e]=!0}function Pi(t){delete wi[t]}function Bi(t){return t.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/gi,Wi)}function Wi(t,e){if("#"===e.charAt(0))return ji(e.slice(1));if(wi[e])return wi[e];if(Si.loadMissingEntities){const t=e.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:e.charAt(0).toLowerCase();ki[t]||(ki[t]=!0,Xs(yi("./util/entities/"+t+".js")))}return t}function ji(t){const e="x"===t.charAt(0)?parseInt(t.slice(1),16):parseInt(t);return String.fromCodePoint(e)}const Hi=["top","right","bottom","left"],Fi=["width","style","color"];function zi(t){const e=t.split(/((?:'[^'\n]*'|"[^"\n]*"|,[\s\n]|[^\s\n])*)/g),s=[];for(;e.length>1;)e.shift(),s.push(e.shift());return s}function Xi(t){const e=zi(this.styles[t]);0===e.length&&e.push(""),1===e.length&&e.push(e[0]),2===e.length&&e.push(e[0]),3===e.length&&e.push(e[1]);for(const s of Vi.connect[t].children)this.setStyle(this.childName(t,s),e.shift())}function qi(t){const e=Vi.connect[t].children,s=[];for(const i of e){const e=this.styles[t+"-"+i];if(!e)return void delete this.styles[t];s.push(e)}s[3]===s[1]&&(s.pop(),s[2]===s[0]&&(s.pop(),s[1]===s[0]&&s.pop())),this.styles[t]=s.join(" ")}const Ki=/^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,Ji=/^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/;function $i(t){const e={width:"",style:"",color:""};for(const s of zi(this.styles[t]))s.match(Ki)&&""===e.width?e.width=s:s.match(Ji)&&""===e.style?e.style=s:e.color=s;for(const s of Vi.connect[t].children)this.setStyle(this.childName(t,s),e[s])}function Ui(t){const e=[];for(const s of Vi.connect[t].children){const i=this.styles[this.childName(t,s)];i&&e.push(i)}e.length?this.styles[t]=e.join(" "):delete this.styles[t]}const Gi={style:/^(?:normal|italic|oblique|inherit|initial|unset)$/,variant:new RegExp("^(?:"+["normal|none","inherit|initial|unset","common-ligatures|no-common-ligatures","discretionary-ligatures|no-discretionary-ligatures","historical-ligatures|no-historical-ligatures","contextual|no-contextual","(?:stylistic|character-variant|swash|ornaments|annotation)\\([^)]*\\)","small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","lining-nums|oldstyle-nums|proportional-nums|tabular-nums","diagonal-fractions|stacked-fractions","ordinal|slashed-zero","jis78|jis83|jis90|jis04|simplified|traditional","full-width|proportional-width","ruby"].join("|")+")$"),weight:/^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/,stretch:new RegExp("^(?:"+["normal","(?:(?:ultra|extra|semi)-)?(?:condensed|expanded)","inherit|initial|unset"].join("|")+")$"),size:new RegExp("^(?:"+["xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller","[\\d.]+%|[\\d.]+[a-z]+","inherit|initial|unset"].join("|")+")(?:/(?:normal|[\\d.]+(?:%|[a-z]+)?))?$")};function _i(t,e){for(const s of Vi.connect[t].children){const i=this.childName(t,s);if(Array.isArray(e[s])){const t=e[s];t.length&&(this.styles[i]=t.join(" "))}else""!==e[s]&&(this.styles[i]=e[s])}}class Vi{constructor(t=""){this.parse(t)}sanitizeValue(t){const e=this.constructor.pattern;if(!t.match(e.sanitize))return t;const s=(t=t.replace(e.value,"$1")).replace(/\\./g,"").replace(/(['"]).*?\1/g,"").replace(/[^'"]/g,"");return s.length&&(t+=s.charAt(0)),t}get cssText(){var t,e;const s=[];for(const i of Object.keys(this.styles)){const r=this.parentName(i),n=i.replace(/.*-/,"");this.styles[r]&&(null===(e=null===(t=Vi.connect[r])||void 0===t?void 0:t.children)||void 0===e?void 0:e.includes(n))||s.push(`${i}: ${this.styles[i]};`)}return s.join(" ")}get styleList(){return Object.assign({},this.styles)}set(t,e){var s,i;for(t=this.normalizeName(t),this.setStyle(t,String(e)),Vi.connect[t]&&!Vi.connect[t].combine&&(this.combineChildren(t),delete this.styles[t]);t.match(/-/);){const e=t;if(t=this.parentName(t),!Vi.connect[e]&&!(null===(i=null===(s=Vi.connect[t])||void 0===s?void 0:s.children)||void 0===i?void 0:i.includes(e.substring(t.length+1))))break;Vi.connect[t].combine.call(this,t)}}get(t){return t=this.normalizeName(t),Object.hasOwn(this.styles,t)?this.styles[t]:""}setStyle(t,e){this.styles[t]=this.sanitizeValue(e),Vi.connect[t]&&Vi.connect[t].children&&Vi.connect[t].split.call(this,t),""===e&&delete this.styles[t]}combineChildren(t){const e=this.parentName(t);for(const s of Vi.connect[t].children){const t=this.childName(e,s);Vi.connect[t].combine.call(this,t)}}parentName(t){const e=t.replace(/-[^-]*$/,"");return t===e?"":e}childName(t,e){return e.match(/-/)?e:(Vi.connect[t]&&!Vi.connect[t].combine&&(e+=t.replace(/.*-/,"-"),t=this.parentName(t)),t+"-"+e)}normalizeName(t){return t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()))}parse(t=""){const e=this.constructor.pattern;this.styles={};const s=t.replace(/\n/g," ").replace(e.comment,"").split(e.style);for(;s.length>1;){const[t,e,i]=s.splice(0,3);if(t.match(/[^\s\n;]/))return;this.set(e,i)}}}function Yi(t){return t.reduce(((t,e)=>t+e),0)}function Zi(t){return t.reduce(((t,e)=>Math.max(t,e)),0)}if(Vi.pattern={sanitize:/['";]/,value:/^((:?'(?:\\.|[^'])*(?:'|$)|"(?:\\.|[^"])*(?:"|$)|\n|\\.|[^'";])*?)[\s\n]*(?:;|$).*/,style:/([-a-z]+)[\s\n]*:[\s\n]*((?:'(?:\\.|[^'])*(?:'|$)|"(?:\\.|[^"])*(?:"|$)|\n|\\.|[^'";])*?)[\s\n]*(?:;|$)/g,comment:/\/\*[^]*?\*\//g},Vi.connect={padding:{children:Hi,split:Xi,combine:qi},margin:{children:Hi,split:Xi,combine:qi},border:{children:Hi,split:function(t){for(const e of Vi.connect[t].children)this.setStyle(this.childName(t,e),this.styles[t])},combine:function(t){const e=[...Vi.connect[t].children],s=this.styles[this.childName(t,e.shift())];for(const i of e)if(this.styles[this.childName(t,i)]!==s)return void delete this.styles[t];this.styles[t]=s}},"border-top":{children:Fi,split:$i,combine:Ui},"border-right":{children:Fi,split:$i,combine:Ui},"border-bottom":{children:Fi,split:$i,combine:Ui},"border-left":{children:Fi,split:$i,combine:Ui},"border-width":{children:Hi,split:Xi,combine:null},"border-style":{children:Hi,split:Xi,combine:null},"border-color":{children:Hi,split:Xi,combine:null},font:{children:["style","variant","weight","stretch","line-height","size","family"],split:function(t){const e=zi(this.styles[t]),s={style:"",variant:[],weight:"",stretch:"",size:"",family:"","line-height":""};for(const t of e){s.family||(s.family=t);for(const e of Object.keys(Gi))if((Array.isArray(s[e])||""===s[e])&&t.match(Gi[e]))if(s.family===t&&(s.family=""),"size"===e){const[i,r]=t.split(/\//);s[e]=i,r&&(s["line-height"]=r)}else""===s.size&&(Array.isArray(s[e])?s[e].push(t):""===s[e]&&(s[e]=t))}_i.call(this,t,s),delete this.styles[t]},combine:function(t){}}},MathJax.loader&&MathJax.loader.checkVersion("core",Ot,"core"),Mt({_:{adaptors:{HTMLAdaptor:i,browserAdaptor:r},components:{global:e},core:{DOMAdaptor:s,FindMath:o,Handler:it,HandlerList:rt,InputJax:h,MathDocument:st,MathItem:E,MathList:u,MmlTree:{Attributes:g,MML:Z,MathMLVisitor:at,MmlFactory:Q,MmlNode:f,MmlNodes:{HtmlNode:Y,TeXAtom:_,maction:j,maligngroup:J,malignmark:$,math:L,mathchoice:V,menclose:W,merror:k,mfenced:B,mfrac:v,mglyph:U,mi:b,mmultiscripts:z,mn:y,mo:I,mpadded:M,mphantom:P,mroot:S,mrow:O,ms:D,mspace:C,msqrt:A,mstyle:w,msubsup:H,mtable:X,mtd:K,mtext:T,mtr:q,munderover:F,semantics:G},MmlVisitor:ot,OperatorDictionary:N,SerializedMmlVisitor:lt},OutputJax:d,Tree:{Factory:p,Node:R,NodeFactory:m,Visitor:nt,Wrapper:ht,WrapperFactory:dt}},handlers:{html_ts:ft,html:{HTMLDocument:gt,HTMLDomStrings:mt,HTMLHandler:Rt,HTMLMathItem:Et,HTMLMathList:pt}},mathjax:ut,ui:{dialog:{DraggableDialog:bt,InfoDialog:yt}},util:{AsyncLoad:Nt,BBox:It,BitField:tt,Entities:Tt,FunctionList:l,LinkedList:c,Options:n,PrioritizedList:a,Retries:et,StyleJson:Lt,Styles:Ct,context:ct,lengths:xt,numeric:Dt,string:x}}}),MathJax.startup&&(MathJax.startup.registerConstructor("HTMLHandler",pi),MathJax.startup.registerConstructor("browserAdaptor",Ft),MathJax.startup.useHandler("HTMLHandler"),MathJax.startup.useAdaptor("browserAdaptor")),MathJax.loader){const t=MathJax.config.loader;MathJax._.mathjax.mathjax.asyncLoad=e=>"node:"===e.substring(0,5)?t.require(e):MathJax.loader.load(e).then((t=>t[0]))}})();