mathjax-modern-font 1.0.0-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (591) hide show
  1. package/build/output/fonts/mathjax-modern/chtml/PUA/PUA.js +6 -0
  2. package/build/output/fonts/mathjax-modern/chtml/PUA/webpack.config.js +8 -0
  3. package/build/output/fonts/mathjax-modern/chtml/accents/accents.js +6 -0
  4. package/build/output/fonts/mathjax-modern/chtml/accents/webpack.config.js +8 -0
  5. package/build/output/fonts/mathjax-modern/chtml/accents-b-i/accents-b-i.js +6 -0
  6. package/build/output/fonts/mathjax-modern/chtml/accents-b-i/webpack.config.js +8 -0
  7. package/build/output/fonts/mathjax-modern/chtml/arrows/arrows.js +6 -0
  8. package/build/output/fonts/mathjax-modern/chtml/arrows/webpack.config.js +8 -0
  9. package/build/output/fonts/mathjax-modern/chtml/build.json +7 -0
  10. package/build/output/fonts/mathjax-modern/chtml/calligraphic/calligraphic.js +6 -0
  11. package/build/output/fonts/mathjax-modern/chtml/calligraphic/webpack.config.js +8 -0
  12. package/build/output/fonts/mathjax-modern/chtml/chtml.js +22 -0
  13. package/build/output/fonts/mathjax-modern/chtml/copy.json +5 -0
  14. package/build/output/fonts/mathjax-modern/chtml/double-struck/double-struck.js +6 -0
  15. package/build/output/fonts/mathjax-modern/chtml/double-struck/webpack.config.js +8 -0
  16. package/build/output/fonts/mathjax-modern/chtml/fraktur/fraktur.js +6 -0
  17. package/build/output/fonts/mathjax-modern/chtml/fraktur/webpack.config.js +8 -0
  18. package/build/output/fonts/mathjax-modern/chtml/latin/latin.js +6 -0
  19. package/build/output/fonts/mathjax-modern/chtml/latin/webpack.config.js +8 -0
  20. package/build/output/fonts/mathjax-modern/chtml/latin-b/latin-b.js +6 -0
  21. package/build/output/fonts/mathjax-modern/chtml/latin-b/webpack.config.js +8 -0
  22. package/build/output/fonts/mathjax-modern/chtml/latin-bi/latin-bi.js +6 -0
  23. package/build/output/fonts/mathjax-modern/chtml/latin-bi/webpack.config.js +8 -0
  24. package/build/output/fonts/mathjax-modern/chtml/latin-i/latin-i.js +6 -0
  25. package/build/output/fonts/mathjax-modern/chtml/latin-i/webpack.config.js +8 -0
  26. package/build/output/fonts/mathjax-modern/chtml/lib/chtml.js +18 -0
  27. package/build/output/fonts/mathjax-modern/chtml/lib/output/fonts/mathjax-modern/chtml.js +3 -0
  28. package/build/output/fonts/mathjax-modern/chtml/math/math.js +6 -0
  29. package/build/output/fonts/mathjax-modern/chtml/math/webpack.config.js +8 -0
  30. package/build/output/fonts/mathjax-modern/chtml/monospace/monospace.js +6 -0
  31. package/build/output/fonts/mathjax-modern/chtml/monospace/webpack.config.js +8 -0
  32. package/build/output/fonts/mathjax-modern/chtml/monospace-ex/monospace-ex.js +6 -0
  33. package/build/output/fonts/mathjax-modern/chtml/monospace-ex/webpack.config.js +8 -0
  34. package/build/output/fonts/mathjax-modern/chtml/monospace-l/monospace-l.js +6 -0
  35. package/build/output/fonts/mathjax-modern/chtml/monospace-l/webpack.config.js +8 -0
  36. package/build/output/fonts/mathjax-modern/chtml/sans-serif/sans-serif.js +6 -0
  37. package/build/output/fonts/mathjax-modern/chtml/sans-serif/webpack.config.js +8 -0
  38. package/build/output/fonts/mathjax-modern/chtml/sans-serif-b/sans-serif-b.js +6 -0
  39. package/build/output/fonts/mathjax-modern/chtml/sans-serif-b/webpack.config.js +8 -0
  40. package/build/output/fonts/mathjax-modern/chtml/sans-serif-bi/sans-serif-bi.js +6 -0
  41. package/build/output/fonts/mathjax-modern/chtml/sans-serif-bi/webpack.config.js +8 -0
  42. package/build/output/fonts/mathjax-modern/chtml/sans-serif-ex/sans-serif-ex.js +6 -0
  43. package/build/output/fonts/mathjax-modern/chtml/sans-serif-ex/webpack.config.js +8 -0
  44. package/build/output/fonts/mathjax-modern/chtml/sans-serif-i/sans-serif-i.js +6 -0
  45. package/build/output/fonts/mathjax-modern/chtml/sans-serif-i/webpack.config.js +8 -0
  46. package/build/output/fonts/mathjax-modern/chtml/sans-serif-r/sans-serif-r.js +6 -0
  47. package/build/output/fonts/mathjax-modern/chtml/sans-serif-r/webpack.config.js +8 -0
  48. package/build/output/fonts/mathjax-modern/chtml/script/script.js +6 -0
  49. package/build/output/fonts/mathjax-modern/chtml/script/webpack.config.js +8 -0
  50. package/build/output/fonts/mathjax-modern/chtml/shapes/shapes.js +6 -0
  51. package/build/output/fonts/mathjax-modern/chtml/shapes/webpack.config.js +8 -0
  52. package/build/output/fonts/mathjax-modern/chtml/symbols/symbols.js +6 -0
  53. package/build/output/fonts/mathjax-modern/chtml/symbols/webpack.config.js +8 -0
  54. package/build/output/fonts/mathjax-modern/chtml/symbols-b-i/symbols-b-i.js +6 -0
  55. package/build/output/fonts/mathjax-modern/chtml/symbols-b-i/webpack.config.js +8 -0
  56. package/build/output/fonts/mathjax-modern/chtml/variants/variants.js +6 -0
  57. package/build/output/fonts/mathjax-modern/chtml/variants/webpack.config.js +8 -0
  58. package/build/output/fonts/mathjax-modern/chtml/webpack.config.js +11 -0
  59. package/build/output/fonts/mathjax-modern/svg/PUA/PUA.js +6 -0
  60. package/build/output/fonts/mathjax-modern/svg/PUA/webpack.config.js +8 -0
  61. package/build/output/fonts/mathjax-modern/svg/accents/accents.js +6 -0
  62. package/build/output/fonts/mathjax-modern/svg/accents/webpack.config.js +8 -0
  63. package/build/output/fonts/mathjax-modern/svg/accents-b-i/accents-b-i.js +6 -0
  64. package/build/output/fonts/mathjax-modern/svg/accents-b-i/webpack.config.js +8 -0
  65. package/build/output/fonts/mathjax-modern/svg/arrows/arrows.js +6 -0
  66. package/build/output/fonts/mathjax-modern/svg/arrows/webpack.config.js +8 -0
  67. package/build/output/fonts/mathjax-modern/svg/build.json +7 -0
  68. package/build/output/fonts/mathjax-modern/svg/calligraphic/calligraphic.js +6 -0
  69. package/build/output/fonts/mathjax-modern/svg/calligraphic/webpack.config.js +8 -0
  70. package/build/output/fonts/mathjax-modern/svg/double-struck/double-struck.js +6 -0
  71. package/build/output/fonts/mathjax-modern/svg/double-struck/webpack.config.js +8 -0
  72. package/build/output/fonts/mathjax-modern/svg/fraktur/fraktur.js +6 -0
  73. package/build/output/fonts/mathjax-modern/svg/fraktur/webpack.config.js +8 -0
  74. package/build/output/fonts/mathjax-modern/svg/latin/latin.js +6 -0
  75. package/build/output/fonts/mathjax-modern/svg/latin/webpack.config.js +8 -0
  76. package/build/output/fonts/mathjax-modern/svg/latin-b/latin-b.js +6 -0
  77. package/build/output/fonts/mathjax-modern/svg/latin-b/webpack.config.js +8 -0
  78. package/build/output/fonts/mathjax-modern/svg/latin-bi/latin-bi.js +6 -0
  79. package/build/output/fonts/mathjax-modern/svg/latin-bi/webpack.config.js +8 -0
  80. package/build/output/fonts/mathjax-modern/svg/latin-i/latin-i.js +6 -0
  81. package/build/output/fonts/mathjax-modern/svg/latin-i/webpack.config.js +8 -0
  82. package/build/output/fonts/mathjax-modern/svg/lib/output/fonts/mathjax-modern/svg.js +3 -0
  83. package/build/output/fonts/mathjax-modern/svg/lib/svg.js +18 -0
  84. package/build/output/fonts/mathjax-modern/svg/math/math.js +6 -0
  85. package/build/output/fonts/mathjax-modern/svg/math/webpack.config.js +8 -0
  86. package/build/output/fonts/mathjax-modern/svg/monospace/monospace.js +6 -0
  87. package/build/output/fonts/mathjax-modern/svg/monospace/webpack.config.js +8 -0
  88. package/build/output/fonts/mathjax-modern/svg/monospace-ex/monospace-ex.js +6 -0
  89. package/build/output/fonts/mathjax-modern/svg/monospace-ex/webpack.config.js +8 -0
  90. package/build/output/fonts/mathjax-modern/svg/monospace-l/monospace-l.js +6 -0
  91. package/build/output/fonts/mathjax-modern/svg/monospace-l/webpack.config.js +8 -0
  92. package/build/output/fonts/mathjax-modern/svg/sans-serif/sans-serif.js +6 -0
  93. package/build/output/fonts/mathjax-modern/svg/sans-serif/webpack.config.js +8 -0
  94. package/build/output/fonts/mathjax-modern/svg/sans-serif-b/sans-serif-b.js +6 -0
  95. package/build/output/fonts/mathjax-modern/svg/sans-serif-b/webpack.config.js +8 -0
  96. package/build/output/fonts/mathjax-modern/svg/sans-serif-bi/sans-serif-bi.js +6 -0
  97. package/build/output/fonts/mathjax-modern/svg/sans-serif-bi/webpack.config.js +8 -0
  98. package/build/output/fonts/mathjax-modern/svg/sans-serif-ex/sans-serif-ex.js +6 -0
  99. package/build/output/fonts/mathjax-modern/svg/sans-serif-ex/webpack.config.js +8 -0
  100. package/build/output/fonts/mathjax-modern/svg/sans-serif-i/sans-serif-i.js +6 -0
  101. package/build/output/fonts/mathjax-modern/svg/sans-serif-i/webpack.config.js +8 -0
  102. package/build/output/fonts/mathjax-modern/svg/sans-serif-r/sans-serif-r.js +6 -0
  103. package/build/output/fonts/mathjax-modern/svg/sans-serif-r/webpack.config.js +8 -0
  104. package/build/output/fonts/mathjax-modern/svg/script/script.js +6 -0
  105. package/build/output/fonts/mathjax-modern/svg/script/webpack.config.js +8 -0
  106. package/build/output/fonts/mathjax-modern/svg/shapes/shapes.js +6 -0
  107. package/build/output/fonts/mathjax-modern/svg/shapes/webpack.config.js +8 -0
  108. package/build/output/fonts/mathjax-modern/svg/svg.js +18 -0
  109. package/build/output/fonts/mathjax-modern/svg/symbols/symbols.js +6 -0
  110. package/build/output/fonts/mathjax-modern/svg/symbols/webpack.config.js +8 -0
  111. package/build/output/fonts/mathjax-modern/svg/symbols-b-i/symbols-b-i.js +6 -0
  112. package/build/output/fonts/mathjax-modern/svg/symbols-b-i/webpack.config.js +8 -0
  113. package/build/output/fonts/mathjax-modern/svg/variants/variants.js +6 -0
  114. package/build/output/fonts/mathjax-modern/svg/variants/webpack.config.js +8 -0
  115. package/build/output/fonts/mathjax-modern/svg/webpack.config.js +11 -0
  116. package/build/tex-mml-chtml-mathjax-modern/tex-mml-chtml-mathjax-modern.js +28 -0
  117. package/build/tex-mml-chtml-mathjax-modern/webpack.config.js +19 -0
  118. package/build/tex-mml-svg-mathjax-modern/tex-mml-svg-mathjax-modern.js +28 -0
  119. package/build/tex-mml-svg-mathjax-modern/webpack.config.js +19 -0
  120. package/es5/output/fonts/mathjax-modern/chtml/dynamic/PUA.js +1 -0
  121. package/es5/output/fonts/mathjax-modern/chtml/dynamic/accents-b-i.js +1 -0
  122. package/es5/output/fonts/mathjax-modern/chtml/dynamic/accents.js +1 -0
  123. package/es5/output/fonts/mathjax-modern/chtml/dynamic/arrows.js +1 -0
  124. package/es5/output/fonts/mathjax-modern/chtml/dynamic/calligraphic.js +1 -0
  125. package/es5/output/fonts/mathjax-modern/chtml/dynamic/double-struck.js +1 -0
  126. package/es5/output/fonts/mathjax-modern/chtml/dynamic/fraktur.js +1 -0
  127. package/es5/output/fonts/mathjax-modern/chtml/dynamic/latin-b.js +1 -0
  128. package/es5/output/fonts/mathjax-modern/chtml/dynamic/latin-bi.js +1 -0
  129. package/es5/output/fonts/mathjax-modern/chtml/dynamic/latin-i.js +1 -0
  130. package/es5/output/fonts/mathjax-modern/chtml/dynamic/latin.js +1 -0
  131. package/es5/output/fonts/mathjax-modern/chtml/dynamic/math.js +1 -0
  132. package/es5/output/fonts/mathjax-modern/chtml/dynamic/monospace-ex.js +1 -0
  133. package/es5/output/fonts/mathjax-modern/chtml/dynamic/monospace-l.js +1 -0
  134. package/es5/output/fonts/mathjax-modern/chtml/dynamic/monospace.js +1 -0
  135. package/es5/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-b.js +1 -0
  136. package/es5/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-bi.js +1 -0
  137. package/es5/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-ex.js +1 -0
  138. package/es5/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-i.js +1 -0
  139. package/es5/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-r.js +1 -0
  140. package/es5/output/fonts/mathjax-modern/chtml/dynamic/sans-serif.js +1 -0
  141. package/es5/output/fonts/mathjax-modern/chtml/dynamic/script.js +1 -0
  142. package/es5/output/fonts/mathjax-modern/chtml/dynamic/shapes.js +1 -0
  143. package/es5/output/fonts/mathjax-modern/chtml/dynamic/symbols-b-i.js +1 -0
  144. package/es5/output/fonts/mathjax-modern/chtml/dynamic/symbols.js +1 -0
  145. package/es5/output/fonts/mathjax-modern/chtml/dynamic/variants.js +1 -0
  146. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-ab.woff +0 -0
  147. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-abi.woff +0 -0
  148. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-ai.woff +0 -0
  149. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-ar.woff +0 -0
  150. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-b.woff +0 -0
  151. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-bi.woff +0 -0
  152. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-brk.woff +0 -0
  153. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-c.woff +0 -0
  154. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-cb.woff +0 -0
  155. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-ds.woff +0 -0
  156. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-em.woff +0 -0
  157. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-f.woff +0 -0
  158. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-fb.woff +0 -0
  159. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-i.woff +0 -0
  160. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-lb.woff +0 -0
  161. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-li.woff +0 -0
  162. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-lib.woff +0 -0
  163. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-lo.woff +0 -0
  164. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-lr.woff +0 -0
  165. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-lt.woff +0 -0
  166. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-m.woff +0 -0
  167. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-mi.woff +0 -0
  168. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-ml.woff +0 -0
  169. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-mm.woff +0 -0
  170. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-mx.woff +0 -0
  171. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-n.woff +0 -0
  172. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-ob.woff +0 -0
  173. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-os.woff +0 -0
  174. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-pu.woff +0 -0
  175. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-pub.woff +0 -0
  176. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-pubi.woff +0 -0
  177. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-pui.woff +0 -0
  178. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-rb.woff +0 -0
  179. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-s.woff +0 -0
  180. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-s3.woff +0 -0
  181. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-s4.woff +0 -0
  182. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-s5.woff +0 -0
  183. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-s6.woff +0 -0
  184. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-s7.woff +0 -0
  185. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-sb.woff +0 -0
  186. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-sh.woff +0 -0
  187. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-shb.woff +0 -0
  188. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-shbi.woff +0 -0
  189. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-shi.woff +0 -0
  190. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-so.woff +0 -0
  191. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-ss.woff +0 -0
  192. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-ssb.woff +0 -0
  193. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-ssbi.woff +0 -0
  194. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-ssbix.woff +0 -0
  195. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-ssbx.woff +0 -0
  196. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-ssi.woff +0 -0
  197. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-ssix.woff +0 -0
  198. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-sslb.woff +0 -0
  199. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-ssli.woff +0 -0
  200. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-sslib.woff +0 -0
  201. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-sslr.woff +0 -0
  202. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-ssx.woff +0 -0
  203. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-sy.woff +0 -0
  204. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-syb.woff +0 -0
  205. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-sybi.woff +0 -0
  206. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-syi.woff +0 -0
  207. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-v.woff +0 -0
  208. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-vx.woff +0 -0
  209. package/es5/output/fonts/mathjax-modern/chtml/woff/mjx-mm-zero.woff +0 -0
  210. package/es5/output/fonts/mathjax-modern/chtml.js +1 -0
  211. package/es5/output/fonts/mathjax-modern/svg/dynamic/PUA.js +1 -0
  212. package/es5/output/fonts/mathjax-modern/svg/dynamic/accents-b-i.js +1 -0
  213. package/es5/output/fonts/mathjax-modern/svg/dynamic/accents.js +1 -0
  214. package/es5/output/fonts/mathjax-modern/svg/dynamic/arrows.js +1 -0
  215. package/es5/output/fonts/mathjax-modern/svg/dynamic/calligraphic.js +1 -0
  216. package/es5/output/fonts/mathjax-modern/svg/dynamic/double-struck.js +1 -0
  217. package/es5/output/fonts/mathjax-modern/svg/dynamic/fraktur.js +1 -0
  218. package/es5/output/fonts/mathjax-modern/svg/dynamic/latin-b.js +1 -0
  219. package/es5/output/fonts/mathjax-modern/svg/dynamic/latin-bi.js +1 -0
  220. package/es5/output/fonts/mathjax-modern/svg/dynamic/latin-i.js +1 -0
  221. package/es5/output/fonts/mathjax-modern/svg/dynamic/latin.js +1 -0
  222. package/es5/output/fonts/mathjax-modern/svg/dynamic/math.js +1 -0
  223. package/es5/output/fonts/mathjax-modern/svg/dynamic/monospace-ex.js +1 -0
  224. package/es5/output/fonts/mathjax-modern/svg/dynamic/monospace-l.js +1 -0
  225. package/es5/output/fonts/mathjax-modern/svg/dynamic/monospace.js +1 -0
  226. package/es5/output/fonts/mathjax-modern/svg/dynamic/sans-serif-b.js +1 -0
  227. package/es5/output/fonts/mathjax-modern/svg/dynamic/sans-serif-bi.js +1 -0
  228. package/es5/output/fonts/mathjax-modern/svg/dynamic/sans-serif-ex.js +1 -0
  229. package/es5/output/fonts/mathjax-modern/svg/dynamic/sans-serif-i.js +1 -0
  230. package/es5/output/fonts/mathjax-modern/svg/dynamic/sans-serif-r.js +1 -0
  231. package/es5/output/fonts/mathjax-modern/svg/dynamic/sans-serif.js +1 -0
  232. package/es5/output/fonts/mathjax-modern/svg/dynamic/script.js +1 -0
  233. package/es5/output/fonts/mathjax-modern/svg/dynamic/shapes.js +1 -0
  234. package/es5/output/fonts/mathjax-modern/svg/dynamic/symbols-b-i.js +1 -0
  235. package/es5/output/fonts/mathjax-modern/svg/dynamic/symbols.js +1 -0
  236. package/es5/output/fonts/mathjax-modern/svg/dynamic/variants.js +1 -0
  237. package/es5/output/fonts/mathjax-modern/svg.js +1 -0
  238. package/es5/tex-mml-chtml-mathjax-modern.js +1 -0
  239. package/es5/tex-mml-svg-mathjax-modern.js +1 -0
  240. package/js/output/fonts/mathjax-modern/chtml/bold-italic.d.ts +2 -0
  241. package/js/output/fonts/mathjax-modern/chtml/bold-italic.js +92 -0
  242. package/js/output/fonts/mathjax-modern/chtml/bold-italic.js.map +1 -0
  243. package/js/output/fonts/mathjax-modern/chtml/bold.d.ts +2 -0
  244. package/js/output/fonts/mathjax-modern/chtml/bold.js +105 -0
  245. package/js/output/fonts/mathjax-modern/chtml/bold.js.map +1 -0
  246. package/js/output/fonts/mathjax-modern/chtml/delimiters.d.ts +2 -0
  247. package/js/output/fonts/mathjax-modern/chtml/delimiters.js +1059 -0
  248. package/js/output/fonts/mathjax-modern/chtml/delimiters.js.map +1 -0
  249. package/js/output/fonts/mathjax-modern/chtml/double-struck.d.ts +2 -0
  250. package/js/output/fonts/mathjax-modern/chtml/double-struck.js +5 -0
  251. package/js/output/fonts/mathjax-modern/chtml/double-struck.js.map +1 -0
  252. package/js/output/fonts/mathjax-modern/chtml/dynamic/PUA.d.ts +1 -0
  253. package/js/output/fonts/mathjax-modern/chtml/dynamic/PUA.js +277 -0
  254. package/js/output/fonts/mathjax-modern/chtml/dynamic/PUA.js.map +1 -0
  255. package/js/output/fonts/mathjax-modern/chtml/dynamic/accents-b-i.d.ts +1 -0
  256. package/js/output/fonts/mathjax-modern/chtml/dynamic/accents-b-i.js +67 -0
  257. package/js/output/fonts/mathjax-modern/chtml/dynamic/accents-b-i.js.map +1 -0
  258. package/js/output/fonts/mathjax-modern/chtml/dynamic/accents.d.ts +1 -0
  259. package/js/output/fonts/mathjax-modern/chtml/dynamic/accents.js +175 -0
  260. package/js/output/fonts/mathjax-modern/chtml/dynamic/accents.js.map +1 -0
  261. package/js/output/fonts/mathjax-modern/chtml/dynamic/arrows.d.ts +1 -0
  262. package/js/output/fonts/mathjax-modern/chtml/dynamic/arrows.js +302 -0
  263. package/js/output/fonts/mathjax-modern/chtml/dynamic/arrows.js.map +1 -0
  264. package/js/output/fonts/mathjax-modern/chtml/dynamic/calligraphic.d.ts +1 -0
  265. package/js/output/fonts/mathjax-modern/chtml/dynamic/calligraphic.js +67 -0
  266. package/js/output/fonts/mathjax-modern/chtml/dynamic/calligraphic.js.map +1 -0
  267. package/js/output/fonts/mathjax-modern/chtml/dynamic/double-struck.d.ts +1 -0
  268. package/js/output/fonts/mathjax-modern/chtml/dynamic/double-struck.js +87 -0
  269. package/js/output/fonts/mathjax-modern/chtml/dynamic/double-struck.js.map +1 -0
  270. package/js/output/fonts/mathjax-modern/chtml/dynamic/fraktur.d.ts +1 -0
  271. package/js/output/fonts/mathjax-modern/chtml/dynamic/fraktur.js +231 -0
  272. package/js/output/fonts/mathjax-modern/chtml/dynamic/fraktur.js.map +1 -0
  273. package/js/output/fonts/mathjax-modern/chtml/dynamic/latin-b.d.ts +1 -0
  274. package/js/output/fonts/mathjax-modern/chtml/dynamic/latin-b.js +378 -0
  275. package/js/output/fonts/mathjax-modern/chtml/dynamic/latin-b.js.map +1 -0
  276. package/js/output/fonts/mathjax-modern/chtml/dynamic/latin-bi.d.ts +1 -0
  277. package/js/output/fonts/mathjax-modern/chtml/dynamic/latin-bi.js +378 -0
  278. package/js/output/fonts/mathjax-modern/chtml/dynamic/latin-bi.js.map +1 -0
  279. package/js/output/fonts/mathjax-modern/chtml/dynamic/latin-i.d.ts +1 -0
  280. package/js/output/fonts/mathjax-modern/chtml/dynamic/latin-i.js +378 -0
  281. package/js/output/fonts/mathjax-modern/chtml/dynamic/latin-i.js.map +1 -0
  282. package/js/output/fonts/mathjax-modern/chtml/dynamic/latin.d.ts +1 -0
  283. package/js/output/fonts/mathjax-modern/chtml/dynamic/latin.js +379 -0
  284. package/js/output/fonts/mathjax-modern/chtml/dynamic/latin.js.map +1 -0
  285. package/js/output/fonts/mathjax-modern/chtml/dynamic/math.d.ts +1 -0
  286. package/js/output/fonts/mathjax-modern/chtml/dynamic/math.js +73 -0
  287. package/js/output/fonts/mathjax-modern/chtml/dynamic/math.js.map +1 -0
  288. package/js/output/fonts/mathjax-modern/chtml/dynamic/monospace-ex.d.ts +1 -0
  289. package/js/output/fonts/mathjax-modern/chtml/dynamic/monospace-ex.js +145 -0
  290. package/js/output/fonts/mathjax-modern/chtml/dynamic/monospace-ex.js.map +1 -0
  291. package/js/output/fonts/mathjax-modern/chtml/dynamic/monospace-l.d.ts +1 -0
  292. package/js/output/fonts/mathjax-modern/chtml/dynamic/monospace-l.js +376 -0
  293. package/js/output/fonts/mathjax-modern/chtml/dynamic/monospace-l.js.map +1 -0
  294. package/js/output/fonts/mathjax-modern/chtml/dynamic/monospace.d.ts +1 -0
  295. package/js/output/fonts/mathjax-modern/chtml/dynamic/monospace.js +188 -0
  296. package/js/output/fonts/mathjax-modern/chtml/dynamic/monospace.js.map +1 -0
  297. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-b.d.ts +1 -0
  298. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-b.js +378 -0
  299. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-b.js.map +1 -0
  300. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-bi.d.ts +1 -0
  301. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-bi.js +378 -0
  302. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-bi.js.map +1 -0
  303. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-ex.d.ts +1 -0
  304. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-ex.js +603 -0
  305. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-ex.js.map +1 -0
  306. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-i.d.ts +1 -0
  307. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-i.js +378 -0
  308. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-i.js.map +1 -0
  309. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-r.d.ts +1 -0
  310. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-r.js +378 -0
  311. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif-r.js.map +1 -0
  312. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif.d.ts +1 -0
  313. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif.js +1383 -0
  314. package/js/output/fonts/mathjax-modern/chtml/dynamic/sans-serif.js.map +1 -0
  315. package/js/output/fonts/mathjax-modern/chtml/dynamic/script.d.ts +1 -0
  316. package/js/output/fonts/mathjax-modern/chtml/dynamic/script.js +199 -0
  317. package/js/output/fonts/mathjax-modern/chtml/dynamic/script.js.map +1 -0
  318. package/js/output/fonts/mathjax-modern/chtml/dynamic/shapes.d.ts +1 -0
  319. package/js/output/fonts/mathjax-modern/chtml/dynamic/shapes.js +70 -0
  320. package/js/output/fonts/mathjax-modern/chtml/dynamic/shapes.js.map +1 -0
  321. package/js/output/fonts/mathjax-modern/chtml/dynamic/symbols-b-i.d.ts +1 -0
  322. package/js/output/fonts/mathjax-modern/chtml/dynamic/symbols-b-i.js +207 -0
  323. package/js/output/fonts/mathjax-modern/chtml/dynamic/symbols-b-i.js.map +1 -0
  324. package/js/output/fonts/mathjax-modern/chtml/dynamic/symbols.d.ts +1 -0
  325. package/js/output/fonts/mathjax-modern/chtml/dynamic/symbols.js +75 -0
  326. package/js/output/fonts/mathjax-modern/chtml/dynamic/symbols.js.map +1 -0
  327. package/js/output/fonts/mathjax-modern/chtml/dynamic/variants.d.ts +1 -0
  328. package/js/output/fonts/mathjax-modern/chtml/dynamic/variants.js +53 -0
  329. package/js/output/fonts/mathjax-modern/chtml/dynamic/variants.js.map +1 -0
  330. package/js/output/fonts/mathjax-modern/chtml/ex-md.d.ts +2 -0
  331. package/js/output/fonts/mathjax-modern/chtml/ex-md.js +42 -0
  332. package/js/output/fonts/mathjax-modern/chtml/ex-md.js.map +1 -0
  333. package/js/output/fonts/mathjax-modern/chtml/fraktur-bold.d.ts +2 -0
  334. package/js/output/fonts/mathjax-modern/chtml/fraktur-bold.js +5 -0
  335. package/js/output/fonts/mathjax-modern/chtml/fraktur-bold.js.map +1 -0
  336. package/js/output/fonts/mathjax-modern/chtml/fraktur.d.ts +2 -0
  337. package/js/output/fonts/mathjax-modern/chtml/fraktur.js +5 -0
  338. package/js/output/fonts/mathjax-modern/chtml/fraktur.js.map +1 -0
  339. package/js/output/fonts/mathjax-modern/chtml/italic.d.ts +2 -0
  340. package/js/output/fonts/mathjax-modern/chtml/italic.js +92 -0
  341. package/js/output/fonts/mathjax-modern/chtml/italic.js.map +1 -0
  342. package/js/output/fonts/mathjax-modern/chtml/largeop.d.ts +2 -0
  343. package/js/output/fonts/mathjax-modern/chtml/largeop.js +71 -0
  344. package/js/output/fonts/mathjax-modern/chtml/largeop.js.map +1 -0
  345. package/js/output/fonts/mathjax-modern/chtml/lf-tp.d.ts +2 -0
  346. package/js/output/fonts/mathjax-modern/chtml/lf-tp.js +50 -0
  347. package/js/output/fonts/mathjax-modern/chtml/lf-tp.js.map +1 -0
  348. package/js/output/fonts/mathjax-modern/chtml/monospace.d.ts +2 -0
  349. package/js/output/fonts/mathjax-modern/chtml/monospace.js +5 -0
  350. package/js/output/fonts/mathjax-modern/chtml/monospace.js.map +1 -0
  351. package/js/output/fonts/mathjax-modern/chtml/normal.d.ts +2 -0
  352. package/js/output/fonts/mathjax-modern/chtml/normal.js +1118 -0
  353. package/js/output/fonts/mathjax-modern/chtml/normal.js.map +1 -0
  354. package/js/output/fonts/mathjax-modern/chtml/rt-bt.d.ts +2 -0
  355. package/js/output/fonts/mathjax-modern/chtml/rt-bt.js +49 -0
  356. package/js/output/fonts/mathjax-modern/chtml/rt-bt.js.map +1 -0
  357. package/js/output/fonts/mathjax-modern/chtml/sans-serif-bold-italic.d.ts +2 -0
  358. package/js/output/fonts/mathjax-modern/chtml/sans-serif-bold-italic.js +5 -0
  359. package/js/output/fonts/mathjax-modern/chtml/sans-serif-bold-italic.js.map +1 -0
  360. package/js/output/fonts/mathjax-modern/chtml/sans-serif-bold.d.ts +2 -0
  361. package/js/output/fonts/mathjax-modern/chtml/sans-serif-bold.js +5 -0
  362. package/js/output/fonts/mathjax-modern/chtml/sans-serif-bold.js.map +1 -0
  363. package/js/output/fonts/mathjax-modern/chtml/sans-serif-italic.d.ts +2 -0
  364. package/js/output/fonts/mathjax-modern/chtml/sans-serif-italic.js +5 -0
  365. package/js/output/fonts/mathjax-modern/chtml/sans-serif-italic.js.map +1 -0
  366. package/js/output/fonts/mathjax-modern/chtml/sans-serif.d.ts +2 -0
  367. package/js/output/fonts/mathjax-modern/chtml/sans-serif.js +5 -0
  368. package/js/output/fonts/mathjax-modern/chtml/sans-serif.js.map +1 -0
  369. package/js/output/fonts/mathjax-modern/chtml/script-bold.d.ts +2 -0
  370. package/js/output/fonts/mathjax-modern/chtml/script-bold.js +5 -0
  371. package/js/output/fonts/mathjax-modern/chtml/script-bold.js.map +1 -0
  372. package/js/output/fonts/mathjax-modern/chtml/script.d.ts +2 -0
  373. package/js/output/fonts/mathjax-modern/chtml/script.js +5 -0
  374. package/js/output/fonts/mathjax-modern/chtml/script.js.map +1 -0
  375. package/js/output/fonts/mathjax-modern/chtml/size3.d.ts +2 -0
  376. package/js/output/fonts/mathjax-modern/chtml/size3.js +44 -0
  377. package/js/output/fonts/mathjax-modern/chtml/size3.js.map +1 -0
  378. package/js/output/fonts/mathjax-modern/chtml/size4.d.ts +2 -0
  379. package/js/output/fonts/mathjax-modern/chtml/size4.js +44 -0
  380. package/js/output/fonts/mathjax-modern/chtml/size4.js.map +1 -0
  381. package/js/output/fonts/mathjax-modern/chtml/size5.d.ts +2 -0
  382. package/js/output/fonts/mathjax-modern/chtml/size5.js +43 -0
  383. package/js/output/fonts/mathjax-modern/chtml/size5.js.map +1 -0
  384. package/js/output/fonts/mathjax-modern/chtml/size6.d.ts +2 -0
  385. package/js/output/fonts/mathjax-modern/chtml/size6.js +43 -0
  386. package/js/output/fonts/mathjax-modern/chtml/size6.js.map +1 -0
  387. package/js/output/fonts/mathjax-modern/chtml/size7.d.ts +2 -0
  388. package/js/output/fonts/mathjax-modern/chtml/size7.js +43 -0
  389. package/js/output/fonts/mathjax-modern/chtml/size7.js.map +1 -0
  390. package/js/output/fonts/mathjax-modern/chtml/smallop.d.ts +2 -0
  391. package/js/output/fonts/mathjax-modern/chtml/smallop.js +54 -0
  392. package/js/output/fonts/mathjax-modern/chtml/smallop.js.map +1 -0
  393. package/js/output/fonts/mathjax-modern/chtml/tex-calligraphic-bold.d.ts +2 -0
  394. package/js/output/fonts/mathjax-modern/chtml/tex-calligraphic-bold.js +5 -0
  395. package/js/output/fonts/mathjax-modern/chtml/tex-calligraphic-bold.js.map +1 -0
  396. package/js/output/fonts/mathjax-modern/chtml/tex-calligraphic.d.ts +2 -0
  397. package/js/output/fonts/mathjax-modern/chtml/tex-calligraphic.js +5 -0
  398. package/js/output/fonts/mathjax-modern/chtml/tex-calligraphic.js.map +1 -0
  399. package/js/output/fonts/mathjax-modern/chtml/tex-mathit.d.ts +2 -0
  400. package/js/output/fonts/mathjax-modern/chtml/tex-mathit.js +58 -0
  401. package/js/output/fonts/mathjax-modern/chtml/tex-mathit.js.map +1 -0
  402. package/js/output/fonts/mathjax-modern/chtml/tex-oldstyle-bold.d.ts +2 -0
  403. package/js/output/fonts/mathjax-modern/chtml/tex-oldstyle-bold.js +16 -0
  404. package/js/output/fonts/mathjax-modern/chtml/tex-oldstyle-bold.js.map +1 -0
  405. package/js/output/fonts/mathjax-modern/chtml/tex-oldstyle.d.ts +2 -0
  406. package/js/output/fonts/mathjax-modern/chtml/tex-oldstyle.js +16 -0
  407. package/js/output/fonts/mathjax-modern/chtml/tex-oldstyle.js.map +1 -0
  408. package/js/output/fonts/mathjax-modern/chtml/tex-variant.d.ts +2 -0
  409. package/js/output/fonts/mathjax-modern/chtml/tex-variant.js +49 -0
  410. package/js/output/fonts/mathjax-modern/chtml/tex-variant.js.map +1 -0
  411. package/js/output/fonts/mathjax-modern/chtml.d.ts +242 -0
  412. package/js/output/fonts/mathjax-modern/chtml.js +540 -0
  413. package/js/output/fonts/mathjax-modern/chtml.js.map +1 -0
  414. package/js/output/fonts/mathjax-modern/common.d.ts +2 -0
  415. package/js/output/fonts/mathjax-modern/common.js +96 -0
  416. package/js/output/fonts/mathjax-modern/common.js.map +1 -0
  417. package/js/output/fonts/mathjax-modern/svg/bold-italic.d.ts +2 -0
  418. package/js/output/fonts/mathjax-modern/svg/bold-italic.js +92 -0
  419. package/js/output/fonts/mathjax-modern/svg/bold-italic.js.map +1 -0
  420. package/js/output/fonts/mathjax-modern/svg/bold.d.ts +2 -0
  421. package/js/output/fonts/mathjax-modern/svg/bold.js +105 -0
  422. package/js/output/fonts/mathjax-modern/svg/bold.js.map +1 -0
  423. package/js/output/fonts/mathjax-modern/svg/delimiters.d.ts +2 -0
  424. package/js/output/fonts/mathjax-modern/svg/delimiters.js +1059 -0
  425. package/js/output/fonts/mathjax-modern/svg/delimiters.js.map +1 -0
  426. package/js/output/fonts/mathjax-modern/svg/double-struck.d.ts +2 -0
  427. package/js/output/fonts/mathjax-modern/svg/double-struck.js +5 -0
  428. package/js/output/fonts/mathjax-modern/svg/double-struck.js.map +1 -0
  429. package/js/output/fonts/mathjax-modern/svg/dynamic/PUA.d.ts +1 -0
  430. package/js/output/fonts/mathjax-modern/svg/dynamic/PUA.js +268 -0
  431. package/js/output/fonts/mathjax-modern/svg/dynamic/PUA.js.map +1 -0
  432. package/js/output/fonts/mathjax-modern/svg/dynamic/accents-b-i.d.ts +1 -0
  433. package/js/output/fonts/mathjax-modern/svg/dynamic/accents-b-i.js +60 -0
  434. package/js/output/fonts/mathjax-modern/svg/dynamic/accents-b-i.js.map +1 -0
  435. package/js/output/fonts/mathjax-modern/svg/dynamic/accents.d.ts +1 -0
  436. package/js/output/fonts/mathjax-modern/svg/dynamic/accents.js +172 -0
  437. package/js/output/fonts/mathjax-modern/svg/dynamic/accents.js.map +1 -0
  438. package/js/output/fonts/mathjax-modern/svg/dynamic/arrows.d.ts +1 -0
  439. package/js/output/fonts/mathjax-modern/svg/dynamic/arrows.js +297 -0
  440. package/js/output/fonts/mathjax-modern/svg/dynamic/arrows.js.map +1 -0
  441. package/js/output/fonts/mathjax-modern/svg/dynamic/calligraphic.d.ts +1 -0
  442. package/js/output/fonts/mathjax-modern/svg/dynamic/calligraphic.js +62 -0
  443. package/js/output/fonts/mathjax-modern/svg/dynamic/calligraphic.js.map +1 -0
  444. package/js/output/fonts/mathjax-modern/svg/dynamic/double-struck.d.ts +1 -0
  445. package/js/output/fonts/mathjax-modern/svg/dynamic/double-struck.js +84 -0
  446. package/js/output/fonts/mathjax-modern/svg/dynamic/double-struck.js.map +1 -0
  447. package/js/output/fonts/mathjax-modern/svg/dynamic/fraktur.d.ts +1 -0
  448. package/js/output/fonts/mathjax-modern/svg/dynamic/fraktur.js +120 -0
  449. package/js/output/fonts/mathjax-modern/svg/dynamic/fraktur.js.map +1 -0
  450. package/js/output/fonts/mathjax-modern/svg/dynamic/latin-b.d.ts +1 -0
  451. package/js/output/fonts/mathjax-modern/svg/dynamic/latin-b.js +375 -0
  452. package/js/output/fonts/mathjax-modern/svg/dynamic/latin-b.js.map +1 -0
  453. package/js/output/fonts/mathjax-modern/svg/dynamic/latin-bi.d.ts +1 -0
  454. package/js/output/fonts/mathjax-modern/svg/dynamic/latin-bi.js +375 -0
  455. package/js/output/fonts/mathjax-modern/svg/dynamic/latin-bi.js.map +1 -0
  456. package/js/output/fonts/mathjax-modern/svg/dynamic/latin-i.d.ts +1 -0
  457. package/js/output/fonts/mathjax-modern/svg/dynamic/latin-i.js +375 -0
  458. package/js/output/fonts/mathjax-modern/svg/dynamic/latin-i.js.map +1 -0
  459. package/js/output/fonts/mathjax-modern/svg/dynamic/latin.d.ts +1 -0
  460. package/js/output/fonts/mathjax-modern/svg/dynamic/latin.js +376 -0
  461. package/js/output/fonts/mathjax-modern/svg/dynamic/latin.js.map +1 -0
  462. package/js/output/fonts/mathjax-modern/svg/dynamic/math.d.ts +1 -0
  463. package/js/output/fonts/mathjax-modern/svg/dynamic/math.js +70 -0
  464. package/js/output/fonts/mathjax-modern/svg/dynamic/math.js.map +1 -0
  465. package/js/output/fonts/mathjax-modern/svg/dynamic/monospace-ex.d.ts +1 -0
  466. package/js/output/fonts/mathjax-modern/svg/dynamic/monospace-ex.js +142 -0
  467. package/js/output/fonts/mathjax-modern/svg/dynamic/monospace-ex.js.map +1 -0
  468. package/js/output/fonts/mathjax-modern/svg/dynamic/monospace-l.d.ts +1 -0
  469. package/js/output/fonts/mathjax-modern/svg/dynamic/monospace-l.js +373 -0
  470. package/js/output/fonts/mathjax-modern/svg/dynamic/monospace-l.js.map +1 -0
  471. package/js/output/fonts/mathjax-modern/svg/dynamic/monospace.d.ts +1 -0
  472. package/js/output/fonts/mathjax-modern/svg/dynamic/monospace.js +185 -0
  473. package/js/output/fonts/mathjax-modern/svg/dynamic/monospace.js.map +1 -0
  474. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif-b.d.ts +1 -0
  475. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif-b.js +375 -0
  476. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif-b.js.map +1 -0
  477. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif-bi.d.ts +1 -0
  478. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif-bi.js +375 -0
  479. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif-bi.js.map +1 -0
  480. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif-ex.d.ts +1 -0
  481. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif-ex.js +594 -0
  482. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif-ex.js.map +1 -0
  483. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif-i.d.ts +1 -0
  484. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif-i.js +375 -0
  485. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif-i.js.map +1 -0
  486. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif-r.d.ts +1 -0
  487. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif-r.js +375 -0
  488. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif-r.js.map +1 -0
  489. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif.d.ts +1 -0
  490. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif.js +681 -0
  491. package/js/output/fonts/mathjax-modern/svg/dynamic/sans-serif.js.map +1 -0
  492. package/js/output/fonts/mathjax-modern/svg/dynamic/script.d.ts +1 -0
  493. package/js/output/fonts/mathjax-modern/svg/dynamic/script.js +104 -0
  494. package/js/output/fonts/mathjax-modern/svg/dynamic/script.js.map +1 -0
  495. package/js/output/fonts/mathjax-modern/svg/dynamic/shapes.d.ts +1 -0
  496. package/js/output/fonts/mathjax-modern/svg/dynamic/shapes.js +61 -0
  497. package/js/output/fonts/mathjax-modern/svg/dynamic/shapes.js.map +1 -0
  498. package/js/output/fonts/mathjax-modern/svg/dynamic/symbols-b-i.d.ts +1 -0
  499. package/js/output/fonts/mathjax-modern/svg/dynamic/symbols-b-i.js +200 -0
  500. package/js/output/fonts/mathjax-modern/svg/dynamic/symbols-b-i.js.map +1 -0
  501. package/js/output/fonts/mathjax-modern/svg/dynamic/symbols.d.ts +1 -0
  502. package/js/output/fonts/mathjax-modern/svg/dynamic/symbols.js +72 -0
  503. package/js/output/fonts/mathjax-modern/svg/dynamic/symbols.js.map +1 -0
  504. package/js/output/fonts/mathjax-modern/svg/dynamic/variants.d.ts +1 -0
  505. package/js/output/fonts/mathjax-modern/svg/dynamic/variants.js +50 -0
  506. package/js/output/fonts/mathjax-modern/svg/dynamic/variants.js.map +1 -0
  507. package/js/output/fonts/mathjax-modern/svg/ex-md.d.ts +2 -0
  508. package/js/output/fonts/mathjax-modern/svg/ex-md.js +42 -0
  509. package/js/output/fonts/mathjax-modern/svg/ex-md.js.map +1 -0
  510. package/js/output/fonts/mathjax-modern/svg/fraktur-bold.d.ts +2 -0
  511. package/js/output/fonts/mathjax-modern/svg/fraktur-bold.js +5 -0
  512. package/js/output/fonts/mathjax-modern/svg/fraktur-bold.js.map +1 -0
  513. package/js/output/fonts/mathjax-modern/svg/fraktur.d.ts +2 -0
  514. package/js/output/fonts/mathjax-modern/svg/fraktur.js +5 -0
  515. package/js/output/fonts/mathjax-modern/svg/fraktur.js.map +1 -0
  516. package/js/output/fonts/mathjax-modern/svg/italic.d.ts +2 -0
  517. package/js/output/fonts/mathjax-modern/svg/italic.js +92 -0
  518. package/js/output/fonts/mathjax-modern/svg/italic.js.map +1 -0
  519. package/js/output/fonts/mathjax-modern/svg/largeop.d.ts +2 -0
  520. package/js/output/fonts/mathjax-modern/svg/largeop.js +71 -0
  521. package/js/output/fonts/mathjax-modern/svg/largeop.js.map +1 -0
  522. package/js/output/fonts/mathjax-modern/svg/lf-tp.d.ts +2 -0
  523. package/js/output/fonts/mathjax-modern/svg/lf-tp.js +50 -0
  524. package/js/output/fonts/mathjax-modern/svg/lf-tp.js.map +1 -0
  525. package/js/output/fonts/mathjax-modern/svg/monospace.d.ts +2 -0
  526. package/js/output/fonts/mathjax-modern/svg/monospace.js +5 -0
  527. package/js/output/fonts/mathjax-modern/svg/monospace.js.map +1 -0
  528. package/js/output/fonts/mathjax-modern/svg/normal.d.ts +2 -0
  529. package/js/output/fonts/mathjax-modern/svg/normal.js +1118 -0
  530. package/js/output/fonts/mathjax-modern/svg/normal.js.map +1 -0
  531. package/js/output/fonts/mathjax-modern/svg/rt-bt.d.ts +2 -0
  532. package/js/output/fonts/mathjax-modern/svg/rt-bt.js +49 -0
  533. package/js/output/fonts/mathjax-modern/svg/rt-bt.js.map +1 -0
  534. package/js/output/fonts/mathjax-modern/svg/sans-serif-bold-italic.d.ts +2 -0
  535. package/js/output/fonts/mathjax-modern/svg/sans-serif-bold-italic.js +5 -0
  536. package/js/output/fonts/mathjax-modern/svg/sans-serif-bold-italic.js.map +1 -0
  537. package/js/output/fonts/mathjax-modern/svg/sans-serif-bold.d.ts +2 -0
  538. package/js/output/fonts/mathjax-modern/svg/sans-serif-bold.js +5 -0
  539. package/js/output/fonts/mathjax-modern/svg/sans-serif-bold.js.map +1 -0
  540. package/js/output/fonts/mathjax-modern/svg/sans-serif-italic.d.ts +2 -0
  541. package/js/output/fonts/mathjax-modern/svg/sans-serif-italic.js +5 -0
  542. package/js/output/fonts/mathjax-modern/svg/sans-serif-italic.js.map +1 -0
  543. package/js/output/fonts/mathjax-modern/svg/sans-serif.d.ts +2 -0
  544. package/js/output/fonts/mathjax-modern/svg/sans-serif.js +5 -0
  545. package/js/output/fonts/mathjax-modern/svg/sans-serif.js.map +1 -0
  546. package/js/output/fonts/mathjax-modern/svg/script-bold.d.ts +2 -0
  547. package/js/output/fonts/mathjax-modern/svg/script-bold.js +5 -0
  548. package/js/output/fonts/mathjax-modern/svg/script-bold.js.map +1 -0
  549. package/js/output/fonts/mathjax-modern/svg/script.d.ts +2 -0
  550. package/js/output/fonts/mathjax-modern/svg/script.js +5 -0
  551. package/js/output/fonts/mathjax-modern/svg/script.js.map +1 -0
  552. package/js/output/fonts/mathjax-modern/svg/size3.d.ts +2 -0
  553. package/js/output/fonts/mathjax-modern/svg/size3.js +44 -0
  554. package/js/output/fonts/mathjax-modern/svg/size3.js.map +1 -0
  555. package/js/output/fonts/mathjax-modern/svg/size4.d.ts +2 -0
  556. package/js/output/fonts/mathjax-modern/svg/size4.js +44 -0
  557. package/js/output/fonts/mathjax-modern/svg/size4.js.map +1 -0
  558. package/js/output/fonts/mathjax-modern/svg/size5.d.ts +2 -0
  559. package/js/output/fonts/mathjax-modern/svg/size5.js +43 -0
  560. package/js/output/fonts/mathjax-modern/svg/size5.js.map +1 -0
  561. package/js/output/fonts/mathjax-modern/svg/size6.d.ts +2 -0
  562. package/js/output/fonts/mathjax-modern/svg/size6.js +43 -0
  563. package/js/output/fonts/mathjax-modern/svg/size6.js.map +1 -0
  564. package/js/output/fonts/mathjax-modern/svg/size7.d.ts +2 -0
  565. package/js/output/fonts/mathjax-modern/svg/size7.js +43 -0
  566. package/js/output/fonts/mathjax-modern/svg/size7.js.map +1 -0
  567. package/js/output/fonts/mathjax-modern/svg/smallop.d.ts +2 -0
  568. package/js/output/fonts/mathjax-modern/svg/smallop.js +54 -0
  569. package/js/output/fonts/mathjax-modern/svg/smallop.js.map +1 -0
  570. package/js/output/fonts/mathjax-modern/svg/tex-calligraphic-bold.d.ts +2 -0
  571. package/js/output/fonts/mathjax-modern/svg/tex-calligraphic-bold.js +5 -0
  572. package/js/output/fonts/mathjax-modern/svg/tex-calligraphic-bold.js.map +1 -0
  573. package/js/output/fonts/mathjax-modern/svg/tex-calligraphic.d.ts +2 -0
  574. package/js/output/fonts/mathjax-modern/svg/tex-calligraphic.js +5 -0
  575. package/js/output/fonts/mathjax-modern/svg/tex-calligraphic.js.map +1 -0
  576. package/js/output/fonts/mathjax-modern/svg/tex-mathit.d.ts +2 -0
  577. package/js/output/fonts/mathjax-modern/svg/tex-mathit.js +58 -0
  578. package/js/output/fonts/mathjax-modern/svg/tex-mathit.js.map +1 -0
  579. package/js/output/fonts/mathjax-modern/svg/tex-oldstyle-bold.d.ts +2 -0
  580. package/js/output/fonts/mathjax-modern/svg/tex-oldstyle-bold.js +16 -0
  581. package/js/output/fonts/mathjax-modern/svg/tex-oldstyle-bold.js.map +1 -0
  582. package/js/output/fonts/mathjax-modern/svg/tex-oldstyle.d.ts +2 -0
  583. package/js/output/fonts/mathjax-modern/svg/tex-oldstyle.js +16 -0
  584. package/js/output/fonts/mathjax-modern/svg/tex-oldstyle.js.map +1 -0
  585. package/js/output/fonts/mathjax-modern/svg/tex-variant.d.ts +2 -0
  586. package/js/output/fonts/mathjax-modern/svg/tex-variant.js +49 -0
  587. package/js/output/fonts/mathjax-modern/svg/tex-variant.js.map +1 -0
  588. package/js/output/fonts/mathjax-modern/svg.d.ts +17 -0
  589. package/js/output/fonts/mathjax-modern/svg.js +407 -0
  590. package/js/output/fonts/mathjax-modern/svg.js.map +1 -0
  591. package/package.json +36 -0
@@ -0,0 +1 @@
1
+ (function(){var __webpack_modules__={8191:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AssistiveMmlHandler=e.AssistiveMmlMathDocumentMixin=e.AssistiveMmlMathItemMixin=e.LimitedMmlVisitor=void 0;var c=r(6e3),u=r(3861),h=r(7173),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getAttributes=function(e){return t.prototype.getAttributes.call(this,e).replace(/ ?id=".*?"/,"")},e}(u.SerializedMmlVisitor);function d(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.assistiveMml=function(t,e){if(void 0===e&&(e=!1),!(this.state()>=c.STATE.ASSISTIVEMML)){if(!this.isEscaped&&(t.options.enableAssistiveMml||e)){var r=t.adaptor,n=t.toMML(this.root).replace(/\n */g,"").replace(/<!--.*?-->/g,""),i=r.firstChild(r.body(r.parse(n,"text/html"))),o=r.node("mjx-assistive-mml",{unselectable:"on",display:this.display?"block":"inline"},[i]);r.setAttribute(r.firstChild(this.typesetRoot),"aria-hidden","true"),r.setStyle(this.typesetRoot,"position","relative"),r.append(this.typesetRoot,o)}this.state(c.STATE.ASSISTIVEMML)}},e}(t)}function f(t){var e;return e=function(t){function e(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,a([],s(e),!1))||this,i=n.constructor,o=i.ProcessBits;return o.has("assistive-mml")||o.allocate("assistive-mml"),n.visitor=new p(n.mmlFactory),n.options.MathItem=d(n.options.MathItem),"addStyles"in n&&n.addStyles(i.assistiveStyles),n}return i(e,t),e.prototype.toMML=function(t){return this.visitor.visitTree(t)},e.prototype.assistiveMml=function(){var t,e;if(!this.processed.isSet("assistive-mml")){try{for(var r=l(this.math),n=r.next();!n.done;n=r.next()){n.value.assistiveMml(this)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}this.processed.set("assistive-mml")}return this},e.prototype.state=function(e,r){return void 0===r&&(r=!1),t.prototype.state.call(this,e,r),e<c.STATE.ASSISTIVEMML&&this.processed.clear("assistive-mml"),this},e}(t),e.OPTIONS=o(o({},t.OPTIONS),{enableAssistiveMml:!0,renderActions:(0,h.expandable)(o(o({},t.OPTIONS.renderActions),{assistiveMml:[c.STATE.ASSISTIVEMML]}))}),e.assistiveStyles={"mjx-assistive-mml":{position:"absolute !important",top:"0px",left:"0px",clip:"rect(1px, 1px, 1px, 1px)",padding:"1px 0px 0px 0px !important",border:"0px !important",display:"block !important",width:"auto !important",overflow:"hidden !important","-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"},'mjx-assistive-mml[display="block"]':{width:"100% !important"}},e}e.LimitedMmlVisitor=p,(0,c.newState)("ASSISTIVEMML",153),e.AssistiveMmlMathItemMixin=d,e.AssistiveMmlMathDocumentMixin=f,e.AssistiveMmlHandler=function(t){return t.documentClass=f(t.documentClass),t}},7243:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=new Map;e.default=r},2445:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}l((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.sreReady=e.Sre=void 0;var c,u=o(r(4703)),h=o(r(1034)),p=o(r(775)),d=o(r(292)),f=l(r(5771)),m=r(7632),y=o(r(9896)),g=r(6261),b=l(r(7243));!function(t){t.locales=g.Variables.LOCALES,t.sreReady=u.engineReady,t.setupEngine=u.setupEngine,t.engineSetup=u.engineSetup,t.toEnriched=u.toEnriched,t.toSpeech=u.toSpeech,t.clearspeakPreferences=m.ClearspeakPreferences,t.getHighlighter=y.highlighter,t.getSpeechGenerator=p.generator,t.getWalker=h.walker,t.clearspeakStyle=function(){return d.DOMAIN_TO_STYLES.clearspeak},t.preloadLocales=function(t){return s(this,void 0,void 0,(function(){var e;return a(this,(function(r){return[2,(e=b.default.get(t))?new Promise((function(t,r){return t(JSON.stringify(e))})):u.localeLoader()(t)]}))}))}}(c=e.Sre||(e.Sre={})),e.sreReady=c.sreReady,f.default.getInstance().delay=!0,e.default=c},7232:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLAdaptor=void 0;var s=function(t){function e(e){var r=t.call(this,e.document)||this;return r.canMeasureNodes=!0,r.window=e,r.parser=new e.DOMParser,r}return i(e,t),e.prototype.parse=function(t,e){return void 0===e&&(e="text/html"),this.parser.parseFromString(t,e)},e.prototype.create=function(t,e){return e?this.document.createElementNS(e,t):this.document.createElement(t)},e.prototype.text=function(t){return this.document.createTextNode(t)},e.prototype.head=function(t){return t.head||t},e.prototype.body=function(t){return t.body||t},e.prototype.root=function(t){return t.documentElement||t},e.prototype.doctype=function(t){return t.doctype?"<!DOCTYPE ".concat(t.doctype.name,">"):""},e.prototype.tags=function(t,e,r){void 0===r&&(r=null);var n=r?t.getElementsByTagNameNS(r,e):t.getElementsByTagName(e);return Array.from(n)},e.prototype.getElements=function(t,e){var r,n,i=[];try{for(var s=o(t),a=s.next();!a.done;a=s.next()){var l=a.value;"string"==typeof l?i=i.concat(Array.from(this.document.querySelectorAll(l))):Array.isArray(l)||l instanceof this.window.NodeList||l instanceof this.window.HTMLCollection?i=i.concat(Array.from(l)):i.push(l)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return i},e.prototype.contains=function(t,e){return t.contains(e)},e.prototype.parent=function(t){return t.parentNode},e.prototype.append=function(t,e){return t.appendChild(e)},e.prototype.insert=function(t,e){return this.parent(e).insertBefore(t,e)},e.prototype.remove=function(t){return this.parent(t).removeChild(t)},e.prototype.replace=function(t,e){return this.parent(e).replaceChild(t,e)},e.prototype.clone=function(t,e){return void 0===e&&(e=!0),t.cloneNode(e)},e.prototype.split=function(t,e){return t.splitText(e)},e.prototype.next=function(t){return t.nextSibling},e.prototype.previous=function(t){return t.previousSibling},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.lastChild=function(t){return t.lastChild},e.prototype.childNodes=function(t){return Array.from(t.childNodes)},e.prototype.childNode=function(t,e){return t.childNodes[e]},e.prototype.kind=function(t){var e=t.nodeType;return 1===e||3===e||8===e?t.nodeName.toLowerCase():""},e.prototype.value=function(t){return t.nodeValue||""},e.prototype.textContent=function(t){return t.textContent},e.prototype.innerHTML=function(t){return t.innerHTML},e.prototype.outerHTML=function(t){return t.outerHTML},e.prototype.serializeXML=function(t){return(new this.window.XMLSerializer).serializeToString(t)},e.prototype.setAttribute=function(t,e,r,n){return void 0===n&&(n=null),n?(e=n.replace(/.*\//,"")+":"+e.replace(/^.*:/,""),t.setAttributeNS(n,e,r)):t.setAttribute(e,r)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.removeAttribute=function(t,e){return t.removeAttribute(e)},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.allAttributes=function(t){return Array.from(t.attributes).map((function(t){return{name:t.name,value:t.value}}))},e.prototype.addClass=function(t,e){t.classList?t.classList.add(e):t.className=(t.className+" "+e).trim()},e.prototype.removeClass=function(t,e){t.classList?t.classList.remove(e):t.className=t.className.split(/ /).filter((function(t){return t!==e})).join(" ")},e.prototype.hasClass=function(t,e){return t.classList?t.classList.contains(e):t.className.split(/ /).indexOf(e)>=0},e.prototype.setStyle=function(t,e,r){t.style[e]=r},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.allStyles=function(t){return t.style.cssText},e.prototype.insertRules=function(t,e){var r,n;try{for(var i=o(e.reverse()),s=i.next();!s.done;s=i.next()){var a=s.value;try{t.sheet.insertRule(a,0)}catch(t){console.warn("MathJax: can't insert css rule '".concat(a,"': ").concat(t.message))}}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.fontSize=function(t){var e=this.window.getComputedStyle(t);return parseFloat(e.fontSize)},e.prototype.fontFamily=function(t){return this.window.getComputedStyle(t).fontFamily||""},e.prototype.nodeSize=function(t,e,r){if(void 0===e&&(e=1),void 0===r&&(r=!1),r&&t.getBBox){var n=t.getBBox();return[n.width/e,n.height/e]}return[t.offsetWidth/e,t.offsetHeight/e]},e.prototype.nodeBBox=function(t){var e=t.getBoundingClientRect();return{left:e.left,right:e.right,top:e.top,bottom:e.bottom}},e}(r(734).AbstractDOMAdaptor);e.HTMLAdaptor=s},8960:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.browserAdaptor=void 0;var n=r(7232);e.browserAdaptor=function(){return new n.HTMLAdaptor(window)}},3284:function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MathJax=e.combineWithMathJax=e.combineDefaults=e.combineConfig=e.isObject=void 0;var i=r(8055);function o(t){return"object"==typeof t&&null!==t}function s(t,e){var r,i;try{for(var a=n(Object.keys(e)),l=a.next();!l.done;l=a.next()){var c=l.value;"__esModule"!==c&&(!o(t[c])||!o(e[c])||e[c]instanceof Promise?null!==e[c]&&void 0!==e[c]&&(t[c]=e[c]):s(t[c],e[c]))}}catch(t){r={error:t}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return t}e.isObject=o,e.combineConfig=s,e.combineDefaults=function t(e,r,i){var s,a;e[r]||(e[r]={}),e=e[r];try{for(var l=n(Object.keys(i)),c=l.next();!c.done;c=l.next()){var u=c.value;o(e[u])&&o(i[u])?t(e,u,i[u]):null==e[u]&&null!=i[u]&&(e[u]=i[u])}}catch(t){s={error:t}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(s)throw s.error}}return e},e.combineWithMathJax=function(t){return s(e.MathJax,t)},void 0===r.g.MathJax&&(r.g.MathJax={}),r.g.MathJax.version||(r.g.MathJax={version:i.VERSION,_:{},config:r.g.MathJax}),e.MathJax=r.g.MathJax},4892:function(t,e,r){"use strict";var n,i,o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CONFIG=e.MathJax=e.Loader=e.PathFilters=e.PackageError=e.Package=void 0;var s=r(3284),a=r(894),l=r(894);Object.defineProperty(e,"Package",{enumerable:!0,get:function(){return l.Package}}),Object.defineProperty(e,"PackageError",{enumerable:!0,get:function(){return l.PackageError}});var c,u=r(4005);if(e.PathFilters={source:function(t){return e.CONFIG.source.hasOwnProperty(t.name)&&(t.name=e.CONFIG.source[t.name]),!0},normalize:function(t){var e=t.name;return e.match(/^(?:[a-z]+:\/)?\/|[a-z]:\\|\[/i)||(t.name="[mathjax]/"+e.replace(/^\.\//,"")),t.addExtension&&!e.match(/\.[^\/]+$/)&&(t.name+=".js"),!0},prefix:function(t){for(var r;(r=t.name.match(/^\[([^\]]*)\]/))&&e.CONFIG.paths.hasOwnProperty(r[1]);)t.name=e.CONFIG.paths[r[1]]+t.name.substr(r[0].length);return!0}},function(t){var r=s.MathJax.version;t.versions=new Map,t.ready=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];0===r.length&&(r=Array.from(a.Package.packages.keys()));var i=[];try{for(var s=o(r),l=s.next();!l.done;l=s.next()){var c=l.value,u=a.Package.packages.get(c)||new a.Package(c,!0);i.push(u.promise)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}return Promise.all(i)},t.load=function(){for(var r,n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];if(0===i.length)return Promise.resolve();var l=[],c=function(r){var n=a.Package.packages.get(r);n||(n=new a.Package(r)).provides(e.CONFIG.provides[r]),n.checkNoLoad(),l.push(n.promise.then((function(){e.CONFIG.versionWarnings&&n.isLoaded&&!t.versions.has(a.Package.resolvePath(r))&&console.warn("No version information available for component ".concat(r))})))};try{for(var u=o(i),h=u.next();!h.done;h=u.next()){var p=h.value;c(p)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}return a.Package.loadAll(),Promise.all(l)},t.preLoad=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{for(var s=o(n),l=s.next();!l.done;l=s.next()){var c=l.value,u=a.Package.packages.get(c);u||(u=new a.Package(c,!0)).provides(e.CONFIG.provides[c]),u.loaded()}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}},t.defaultReady=function(){void 0!==e.MathJax.startup&&e.MathJax.config.startup.ready()},t.getRoot=function(){var t="//../../es5";if("undefined"!=typeof document){var e=document.currentScript||document.getElementById("MathJax-script");e&&(t=e.src.replace(/\/[^\/]*$/,""))}return t},t.checkVersion=function(n,i,o){return t.versions.set(a.Package.resolvePath(n),r),!(!e.CONFIG.versionWarnings||i===r)&&(console.warn("Component ".concat(n," uses ").concat(i," of MathJax; version in use is ").concat(r)),!0)},t.pathFilters=new u.FunctionList,t.pathFilters.add(e.PathFilters.source,0),t.pathFilters.add(e.PathFilters.normalize,10),t.pathFilters.add(e.PathFilters.prefix,20)}(c=e.Loader||(e.Loader={})),e.MathJax=s.MathJax,void 0===e.MathJax.loader){(0,s.combineDefaults)(e.MathJax.config,"loader",{paths:{mathjax:c.getRoot()},source:{},dependencies:{},provides:{},load:[],ready:c.defaultReady.bind(c),failed:function(t){return console.log("MathJax(".concat(t.package||"?","): ").concat(t.message))},require:null,pathFilters:[],versionWarnings:!0}),(0,s.combineWithMathJax)({loader:c});try{for(var h=o(e.MathJax.config.loader.pathFilters),p=h.next();!p.done;p=h.next()){var d=p.value;Array.isArray(d)?c.pathFilters.add(d[0],d[1]):c.pathFilters.add(d)}}catch(t){n={error:t}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}}e.CONFIG=e.MathJax.config.loader},894:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Package=e.PackageError=void 0;var l=r(4892),c=function(t){function e(e,r){var n=t.call(this,e)||this;return n.package=r,n}return i(e,t),e}(Error);e.PackageError=c;var u=function(){function t(e,r){void 0===r&&(r=!1),this.isLoaded=!1,this.isLoading=!1,this.hasFailed=!1,this.dependents=[],this.dependencies=[],this.dependencyCount=0,this.provided=[],this.name=e,this.noLoad=r,t.packages.set(e,this),this.promise=this.makePromise(this.makeDependencies())}return Object.defineProperty(t.prototype,"canLoad",{get:function(){return 0===this.dependencyCount&&!this.noLoad&&!this.isLoading&&!this.hasFailed},enumerable:!1,configurable:!0}),t.resolvePath=function(t,e){void 0===e&&(e=!0);var r={name:t,original:t,addExtension:e};return l.Loader.pathFilters.execute(r),r.name},t.loadAll=function(){var t,e;try{for(var r=o(this.packages.values()),n=r.next();!n.done;n=r.next()){var i=n.value;i.canLoad&&i.load()}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},t.prototype.makeDependencies=function(){var e,r,n=[],i=t.packages,c=this.noLoad,u=this.name,h=[];l.CONFIG.dependencies.hasOwnProperty(u)?h.push.apply(h,a([],s(l.CONFIG.dependencies[u]),!1)):"core"!==u&&h.push("core");try{for(var p=o(h),d=p.next();!d.done;d=p.next()){var f=d.value,m=i.get(f)||new t(f,c);this.dependencies.indexOf(m)<0&&(m.addDependent(this,c),this.dependencies.push(m),m.isLoaded||(this.dependencyCount++,n.push(m.promise)))}}catch(t){e={error:t}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(e)throw e.error}}return n},t.prototype.makePromise=function(t){var e=this,r=new Promise((function(t,r){e.resolve=t,e.reject=r})),n=l.CONFIG[this.name]||{};return n.ready&&(r=r.then((function(t){return n.ready(e.name)}))),t.length&&(t.push(r),r=Promise.all(t).then((function(t){return t.join(", ")}))),n.failed&&r.catch((function(t){return n.failed(new c(t,e.name))})),r},t.prototype.load=function(){if(!this.isLoaded&&!this.isLoading&&!this.noLoad){this.isLoading=!0;var e=t.resolvePath(this.name);l.CONFIG.require?this.loadCustom(e):this.loadScript(e)}},t.prototype.loadCustom=function(t){var e=this;try{var r=l.CONFIG.require(t);r instanceof Promise?r.then((function(){return e.checkLoad()})).catch((function(r){return e.failed("Can't load \""+t+'"\n'+r.message.trim())})):this.checkLoad()}catch(t){this.failed(t.message)}},t.prototype.loadScript=function(t){var e=this,r=document.createElement("script");r.src=t,r.charset="UTF-8",r.onload=function(t){return e.checkLoad()},r.onerror=function(r){return e.failed("Can't load \""+t+'"')},document.head.appendChild(r)},t.prototype.loaded=function(){var t,e,r,n;this.isLoaded=!0,this.isLoading=!1;try{for(var i=o(this.dependents),s=i.next();!s.done;s=i.next()){s.value.requirementSatisfied()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}try{for(var a=o(this.provided),l=a.next();!l.done;l=a.next()){l.value.loaded()}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}this.resolve(this.name)},t.prototype.failed=function(t){this.hasFailed=!0,this.isLoading=!1,this.reject(new c(t,this.name))},t.prototype.checkLoad=function(){var t=this;((l.CONFIG[this.name]||{}).checkReady||function(){return Promise.resolve()})().then((function(){return t.loaded()})).catch((function(e){return t.failed(e)}))},t.prototype.requirementSatisfied=function(){this.dependencyCount&&(this.dependencyCount--,this.canLoad&&this.load())},t.prototype.provides=function(e){var r,n;void 0===e&&(e=[]);try{for(var i=o(e),s=i.next();!s.done;s=i.next()){var a=s.value,c=t.packages.get(a);c||(l.CONFIG.dependencies[a]||(l.CONFIG.dependencies[a]=[]),l.CONFIG.dependencies[a].push(a),(c=new t(a,!0)).isLoading=!0),this.provided.push(c)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},t.prototype.addDependent=function(t,e){this.dependents.push(t),e||this.checkNoLoad()},t.prototype.checkNoLoad=function(){var t,e;if(this.noLoad){this.noLoad=!1;try{for(var r=o(this.dependencies),n=r.next();!n.done;n=r.next()){n.value.checkNoLoad()}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}},t.packages=new Map,t}();e.Package=u},2390:function(t,e,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.CONFIG=e.MathJax=e.Startup=void 0;var a,l=r(3284),c=r(4372),u=r(7173);!function(t){var a,l,u=new c.PrioritizedList;function p(e){return a.visitTree(e,t.document)}function d(){a=new e.MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor,l=e.MathJax._.mathjax.mathjax,t.input=v(),t.output=M(),t.adaptor=O(),t.handler&&l.handlers.unregister(t.handler),t.handler=x(),t.handler&&(l.handlers.register(t.handler),t.document=S())}function f(){var e,r;t.input&&t.output&&m();var n=t.output?t.output.name.toLowerCase():"";try{for(var o=i(t.input),s=o.next();!s.done;s=o.next()){var a=s.value,l=a.name.toLowerCase();g(l,a),b(l,a),t.output&&y(l,n,a)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}function m(){e.MathJax.typeset=function(e){void 0===e&&(e=null),t.document.options.elements=e,t.document.reset(),t.document.render()},e.MathJax.typesetPromise=function(e){return void 0===e&&(e=null),t.document.options.elements=e,t.document.reset(),l.handleRetriesFor((function(){t.document.render()}))},e.MathJax.typesetClear=function(e){void 0===e&&(e=null),e?t.document.clearMathItemsWithin(e):t.document.clear()}}function y(r,n,i){var o=r+"2"+n;e.MathJax[o]=function(e,r){return void 0===r&&(r={}),r.format=i.name,t.document.convert(e,r)},e.MathJax[o+"Promise"]=function(e,r){return void 0===r&&(r={}),r.format=i.name,l.handleRetriesFor((function(){return t.document.convert(e,r)}))},e.MathJax[n+"Stylesheet"]=function(){return t.output.styleSheet(t.document)},"getMetricsFor"in t.output&&(e.MathJax.getMetricsFor=function(e,r){return t.output.getMetricsFor(e,r)})}function g(r,n){var i=e.MathJax._.core.MathItem.STATE;e.MathJax[r+"2mml"]=function(e,r){return void 0===r&&(r={}),r.end=i.CONVERT,r.format=n.name,p(t.document.convert(e,r))},e.MathJax[r+"2mmlPromise"]=function(e,r){return void 0===r&&(r={}),r.end=i.CONVERT,r.format=n.name,l.handleRetriesFor((function(){return p(t.document.convert(e,r))}))}}function b(t,r){e.MathJax[t+"Reset"]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.reset.apply(r,s([],o(t),!1))}}function v(){var r,n,o=[];try{for(var s=i(e.CONFIG.input),a=s.next();!a.done;a=s.next()){var l=a.value,c=t.constructors[l];if(!c)throw Error('Input Jax "'+l+'" is not defined (has it been loaded?)');o.push(new c(e.MathJax.config[l]))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o}function M(){var r=e.CONFIG.output;if(!r)return null;var n=t.constructors[r];if(!n)throw Error('Output Jax "'+r+'" is not defined (has it been loaded?)');return new n(e.MathJax.config[r])}function O(){var r=e.CONFIG.adaptor;if(!r||"none"===r)return null;var n=t.constructors[r];if(!n)throw Error('DOMAdaptor "'+r+'" is not defined (has it been loaded?)');return n(e.MathJax.config[r])}function x(){var r,n,o=e.CONFIG.handler;if(!o||"none"===o||!t.adaptor)return null;var s=t.constructors[o];if(!s)throw Error('Handler "'+o+'" is not defined (has it been loaded?)');var a=new s(t.adaptor,5);try{for(var l=i(u),c=l.next();!c.done;c=l.next()){a=c.value.item(a)}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}return a}function S(r){return void 0===r&&(r=null),l.document(r||e.CONFIG.document,n(n({},e.MathJax.config.options),{InputJax:t.input,OutputJax:t.output}))}t.constructors={},t.input=[],t.output=null,t.handler=null,t.adaptor=null,t.elements=null,t.document=null,t.promise=new Promise((function(e,r){t.promiseResolve=e,t.promiseReject=r})),t.pagePromise=new Promise((function(t,e){var n=r.g.document;if(n&&n.readyState&&"complete"!==n.readyState&&"interactive"!==n.readyState){var i=function(){return t()};n.defaultView.addEventListener("load",i,!0),n.defaultView.addEventListener("DOMContentLoaded",i,!0)}else t()})),t.toMML=p,t.registerConstructor=function(e,r){t.constructors[e]=r},t.useHandler=function(t,r){void 0===r&&(r=!1),e.CONFIG.handler&&!r||(e.CONFIG.handler=t)},t.useAdaptor=function(t,r){void 0===r&&(r=!1),e.CONFIG.adaptor&&!r||(e.CONFIG.adaptor=t)},t.useInput=function(t,r){void 0===r&&(r=!1),h&&!r||e.CONFIG.input.push(t)},t.useOutput=function(t,r){void 0===r&&(r=!1),e.CONFIG.output&&!r||(e.CONFIG.output=t)},t.extendHandler=function(t,e){void 0===e&&(e=10),u.add(t,e)},t.defaultReady=function(){d(),f(),t.pagePromise.then((function(){return e.CONFIG.pageReady()})).then((function(){return t.promiseResolve()})).catch((function(e){return t.promiseReject(e)}))},t.defaultPageReady=function(){return(e.CONFIG.loadAllFontFiles&&t.output.font?t.output.font.loadDynamicFiles():Promise.resolve()).then(e.CONFIG.typeset&&e.MathJax.typesetPromise?e.MathJax.typesetPromise(e.CONFIG.elements):Promise.resolve())},t.getComponents=d,t.makeMethods=f,t.makeTypesetMethods=m,t.makeOutputMethods=y,t.makeMmlMethods=g,t.makeResetMethod=b,t.getInputJax=v,t.getOutputJax=M,t.getAdaptor=O,t.getHandler=x,t.getDocument=S}(a=e.Startup||(e.Startup={})),e.MathJax=l.MathJax,void 0===e.MathJax._.startup&&((0,l.combineDefaults)(e.MathJax.config,"startup",{input:[],output:"",handler:null,adaptor:null,document:"undefined"==typeof document?"":document,elements:null,typeset:!0,ready:a.defaultReady.bind(a),pageReady:a.defaultPageReady.bind(a)}),(0,l.combineWithMathJax)({startup:a,options:{}}),e.MathJax.config.startup.invalidOption&&(u.OPTIONS.invalidOption=e.MathJax.config.startup.invalidOption),e.MathJax.config.startup.optionError&&(u.OPTIONS.optionError=e.MathJax.config.startup.optionError)),e.CONFIG=e.MathJax.config.startup;var h=0!==e.CONFIG.input.length},8055:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION="3.2.2"},734:function(t,e){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractDOMAdaptor=void 0;var n=function(){function t(t){void 0===t&&(t=null),this.canMeasureNodes=!0,this.document=t}return t.prototype.node=function(t,e,n,i){var o,s;void 0===e&&(e={}),void 0===n&&(n=[]);var a=this.create(t,i);this.setAttributes(a,e);try{for(var l=r(n),c=l.next();!c.done;c=l.next()){var u=c.value;this.append(a,u)}}catch(t){o={error:t}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return a},t.prototype.setAttributes=function(t,e){var n,i,o,s,a,l;if(e.style&&"string"!=typeof e.style)try{for(var c=r(Object.keys(e.style)),u=c.next();!u.done;u=c.next()){var h=u.value;this.setStyle(t,h.replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()})),e.style[h])}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}if(e.properties)try{for(var p=r(Object.keys(e.properties)),d=p.next();!d.done;d=p.next()){t[h=d.value]=e.properties[h]}}catch(t){o={error:t}}finally{try{d&&!d.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}try{for(var f=r(Object.keys(e)),m=f.next();!m.done;m=f.next()){"style"===(h=m.value)&&"string"!=typeof e.style||"properties"===h||this.setAttribute(t,h,e[h])}}catch(t){a={error:t}}finally{try{m&&!m.done&&(l=f.return)&&l.call(f)}finally{if(a)throw a.error}}},t.prototype.replace=function(t,e){return this.insert(t,e),this.remove(e),e},t.prototype.childNode=function(t,e){return this.childNodes(t)[e]},t.prototype.allClasses=function(t){var e=this.getAttribute(t,"class");return e?e.replace(/ +/g," ").replace(/^ /,"").replace(/ $/,"").split(/ /):[]},t}();e.AbstractDOMAdaptor=n},5382:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractFindMath=void 0;var n=r(7173),i=function(){function t(t){var e=this.constructor;this.options=(0,n.userOptions)((0,n.defaultOptions)({},e.OPTIONS),t)}return t.OPTIONS={},t}();e.AbstractFindMath=i},6021:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractHandler=void 0;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(r(1943).AbstractMathDocument),s=function(){function t(t,e){void 0===e&&(e=5),this.documentClass=o,this.adaptor=t,this.priority=e}return Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),t.prototype.handlesDocument=function(t){return!1},t.prototype.create=function(t,e){return new this.documentClass(t,this.adaptor,e)},t.NAME="generic",t}();e.AbstractHandler=s},1592:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.HandlerList=void 0;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.register=function(t){return this.add(t,t.priority)},e.prototype.unregister=function(t){this.remove(t)},e.prototype.handlesDocument=function(t){var e,r;try{for(var n=o(this),i=n.next();!i.done;i=n.next()){var s=i.value.item;if(s.handlesDocument(t))return s}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}throw new Error("Can't find handler for document")},e.prototype.document=function(t,e){return void 0===e&&(e=null),this.handlesDocument(t).create(t,e)},e}(r(4372).PrioritizedList);e.HandlerList=s},5829:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractInputJax=void 0;var n=r(7173),i=r(4005),o=function(){function t(t){void 0===t&&(t={}),this.adaptor=null,this.mmlFactory=null;var e=this.constructor;this.options=(0,n.userOptions)((0,n.defaultOptions)({},e.OPTIONS),t),this.preFilters=new i.FunctionList,this.postFilters=new i.FunctionList}return Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),t.prototype.setAdaptor=function(t){this.adaptor=t},t.prototype.setMmlFactory=function(t){this.mmlFactory=t},t.prototype.initialize=function(){},t.prototype.reset=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},Object.defineProperty(t.prototype,"processStrings",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.findMath=function(t,e){return[]},t.prototype.executeFilters=function(t,e,r,n){var i={math:e,document:r,data:n};return t.execute(i),i.data},t.NAME="generic",t.OPTIONS={},t}();e.AbstractInputJax=o},1943:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMathDocument=e.resetAllOptions=e.resetOptions=e.RenderList=void 0;var l=r(7173),c=r(5829),u=r(9084),h=r(5134),p=r(6e3),d=r(8108),f=r(7811),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.create=function(t){var e,r,n=new this;try{for(var i=o(Object.keys(t)),a=i.next();!a.done;a=i.next()){var l=a.value,c=s(this.action(l,t[l]),2),u=c[0],h=c[1];h&&n.add(u,h)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n},e.action=function(t,e){var r,n,i,o,a,l,c=!0,u=e[0];if(1===e.length||"boolean"==typeof e[1])2===e.length&&(c=e[1]),a=(r=s(this.methodActions(t),2))[0],l=r[1];else if("string"==typeof e[1])if("string"==typeof e[2]){4===e.length&&(c=e[3]);var h=s(e.slice(1),2),p=h[0],d=h[1];a=(n=s(this.methodActions(p,d),2))[0],l=n[1]}else 3===e.length&&(c=e[2]),a=(i=s(this.methodActions(e[1]),2))[0],l=i[1];else 4===e.length&&(c=e[3]),a=(o=s(e.slice(1),2))[0],l=o[1];return[{id:t,renderDoc:a,renderMath:l,convert:c},u]},e.methodActions=function(t,e){return void 0===e&&(e=t),[function(e){return t&&e[t](),!1},function(t,r){return e&&t[e](r),!1}]},e.prototype.renderDoc=function(t,e){var r,n;void 0===e&&(e=p.STATE.UNPROCESSED);try{for(var i=o(this.items),s=i.next();!s.done;s=i.next()){var a=s.value;if(a.priority>=e&&a.item.renderDoc(t))return}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.renderMath=function(t,e,r){var n,i;void 0===r&&(r=p.STATE.UNPROCESSED);try{for(var s=o(this.items),a=s.next();!a.done;a=s.next()){var l=a.value;if(l.priority>=r&&l.item.renderMath(t,e))return}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},e.prototype.renderConvert=function(t,e,r){var n,i;void 0===r&&(r=p.STATE.LAST);try{for(var s=o(this.items),a=s.next();!a.done;a=s.next()){var l=a.value;if(l.priority>r)return;if(l.item.convert&&l.item.renderMath(t,e))return}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},e.prototype.findID=function(t){var e,r;try{for(var n=o(this.items),i=n.next();!i.done;i=n.next()){var s=i.value;if(s.item.id===t)return s.item}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return null},e}(r(4372).PrioritizedList);e.RenderList=m,e.resetOptions={all:!1,processed:!1,inputJax:null,outputJax:null},e.resetAllOptions={all:!0,processed:!0,inputJax:[],outputJax:[]};var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.compile=function(t){return null},e}(c.AbstractInputJax),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.typeset=function(t,e){return void 0===e&&(e=null),null},e.prototype.escaped=function(t,e){return null},e}(u.AbstractOutputJax),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(h.AbstractMathList),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(p.AbstractMathItem),M=function(){function t(e,r,n){var i=this,o=this.constructor;this.document=e,this.options=(0,l.userOptions)((0,l.defaultOptions)({},o.OPTIONS),n),this.math=new(this.options.MathList||b),this.renderActions=m.create(this.options.renderActions),this.processed=new t.ProcessBits,this.outputJax=this.options.OutputJax||new g;var s=this.options.InputJax||[new y];Array.isArray(s)||(s=[s]),this.inputJax=s,this.adaptor=r,this.outputJax.setAdaptor(r),this.inputJax.map((function(t){return t.setAdaptor(r)})),this.mmlFactory=this.options.MmlFactory||new d.MmlFactory,this.inputJax.map((function(t){return t.setMmlFactory(i.mmlFactory)})),this.outputJax.initialize(),this.inputJax.map((function(t){return t.initialize()}))}return Object.defineProperty(t.prototype,"kind",{get:function(){return this.constructor.KIND},enumerable:!1,configurable:!0}),t.prototype.addRenderAction=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=s(m.action(t,e),2),i=n[0],o=n[1];this.renderActions.add(i,o)},t.prototype.removeRenderAction=function(t){var e=this.renderActions.findID(t);e&&this.renderActions.remove(e)},t.prototype.render=function(){return this.renderActions.renderDoc(this),this},t.prototype.rerender=function(t){return void 0===t&&(t=p.STATE.RERENDER),this.state(t-1),this.render(),this},t.prototype.convert=function(t,e){void 0===e&&(e={});var r=(0,l.userOptions)({format:this.inputJax[0].name,display:!0,end:p.STATE.LAST,em:16,ex:8,containerWidth:null,lineWidth:1e6,scale:1,family:""},e),n=r.format,i=r.display,o=r.end,s=r.ex,a=r.em,c=r.containerWidth,u=r.lineWidth,h=r.scale,d=r.family;null===c&&(c=80*s);var f=this.inputJax.reduce((function(t,e){return e.name===n?e:t}),null),m=new this.options.MathItem(t,f,i);return m.start.node=this.adaptor.body(this.document),m.setMetrics(a,s,c,u,h),this.outputJax.options.mtextInheritFont&&(m.outputData.mtextFamily=d),this.outputJax.options.merrorInheritFont&&(m.outputData.merrorFamily=d),m.convert(this,o),m.typesetRoot||m.root},t.prototype.findMath=function(t){return void 0===t&&(t=null),this.processed.set("findMath"),this},t.prototype.compile=function(){var t,e,r,n;if(!this.processed.isSet("compile")){var i=[];try{for(var s=o(this.math),a=s.next();!a.done;a=s.next()){var l=a.value;this.compileMath(l),void 0!==l.inputData.recompile&&i.push(l)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}try{for(var c=o(i),u=c.next();!u.done;u=c.next()){var h=(l=u.value).inputData.recompile;l.state(h.state),l.inputData.recompile=h,this.compileMath(l)}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}this.processed.set("compile")}return this},t.prototype.compileMath=function(t){try{t.compile(this)}catch(e){if(e.retry||e.restart)throw e;this.options.compileError(this,t,e),t.inputData.error=e}},t.prototype.compileError=function(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},t.prototype.typeset=function(){var t,e;if(!this.processed.isSet("typeset")){try{for(var r=o(this.math),n=r.next();!n.done;n=r.next()){var i=n.value;try{i.typeset(this)}catch(t){if(t.retry||t.restart)throw t;this.options.typesetError(this,i,t),i.outputData.error=t}}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}this.processed.set("typeset")}return this},t.prototype.typesetError=function(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},t.prototype.getMetrics=function(){return this.processed.isSet("getMetrics")||(this.outputJax.getMetrics(this),this.processed.set("getMetrics")),this},t.prototype.updateDocument=function(){var t,e;if(!this.processed.isSet("updateDocument")){try{for(var r=o(this.math.reversed()),n=r.next();!n.done;n=r.next()){n.value.updateDocument(this)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}this.processed.set("updateDocument")}return this},t.prototype.removeFromDocument=function(t){return void 0===t&&(t=!1),this},t.prototype.state=function(t,e){var r,n;void 0===e&&(e=!1);try{for(var i=o(this.math),s=i.next();!s.done;s=i.next()){s.value.state(t,e)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return t<p.STATE.INSERTED&&this.processed.clear("updateDocument"),t<p.STATE.TYPESET&&(this.processed.clear("typeset"),this.processed.clear("getMetrics")),t<p.STATE.COMPILED&&this.processed.clear("compile"),this},t.prototype.reset=function(t){var r;return void 0===t&&(t={processed:!0}),(t=(0,l.userOptions)(Object.assign({},e.resetOptions),t)).all&&Object.assign(t,e.resetAllOptions),t.processed&&this.processed.reset(),t.inputJax&&this.inputJax.forEach((function(e){return e.reset.apply(e,a([],s(t.inputJax),!1))})),t.outputJax&&(r=this.outputJax).reset.apply(r,a([],s(t.outputJax),!1)),this},t.prototype.clear=function(){return this.reset(),this.math.clear(),this},t.prototype.concat=function(t){return this.math.merge(t),this},t.prototype.clearMathItemsWithin=function(t){var e,r=this.getMathItemsWithin(t);return(e=this.math).remove.apply(e,a([],s(r),!1)),r},t.prototype.getMathItemsWithin=function(t){var e,r,n,i;Array.isArray(t)||(t=[t]);var s=this.adaptor,a=[],l=s.getElements(t,this.document);try{t:for(var c=o(this.math),u=c.next();!u.done;u=c.next()){var h=u.value;try{for(var p=(n=void 0,o(l)),d=p.next();!d.done;d=p.next()){var f=d.value;if(h.start.node&&s.contains(f,h.start.node)){a.push(h);continue t}}}catch(t){n={error:t}}finally{try{d&&!d.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}return a},t.KIND="MathDocument",t.OPTIONS={OutputJax:null,InputJax:null,MmlFactory:null,MathList:b,MathItem:v,compileError:function(t,e,r){t.compileError(e,r)},typesetError:function(t,e,r){t.typesetError(e,r)},renderActions:(0,l.expandable)({find:[p.STATE.FINDMATH,"findMath","",!1],compile:[p.STATE.COMPILED],metrics:[p.STATE.METRICS,"getMetrics","",!1],typeset:[p.STATE.TYPESET],update:[p.STATE.INSERTED,"updateDocument",!1]})},t.ProcessBits=(0,f.BitFieldClass)("findMath","compile","getMetrics","typeset","updateDocument"),t}();e.AbstractMathDocument=M},6e3:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.newState=e.STATE=e.AbstractMathItem=e.protoItem=void 0,e.protoItem=function(t,e,r,n,i,o,s){return void 0===s&&(s=null),{open:t,math:e,close:r,n:n,start:{n:i},end:{n:o},display:s}};var r=function(){function t(t,r,n,i,o){void 0===n&&(n=!0),void 0===i&&(i={i:0,n:0,delim:""}),void 0===o&&(o={i:0,n:0,delim:""}),this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={},this._state=e.STATE.UNPROCESSED,this.math=t,this.inputJax=r,this.display=n,this.start=i,this.end=o,this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={}}return Object.defineProperty(t.prototype,"isEscaped",{get:function(){return null===this.display},enumerable:!1,configurable:!0}),t.prototype.render=function(t){t.renderActions.renderMath(this,t)},t.prototype.rerender=function(t,r){void 0===r&&(r=e.STATE.RERENDER),this.state()>=r&&this.state(r-1),t.renderActions.renderMath(this,t,r)},t.prototype.convert=function(t,r){void 0===r&&(r=e.STATE.LAST),t.renderActions.renderConvert(this,t,r)},t.prototype.compile=function(t){this.state()<e.STATE.COMPILED&&(this.root=this.inputJax.compile(this,t),this.state(e.STATE.COMPILED))},t.prototype.typeset=function(t){this.state()<e.STATE.TYPESET&&(this.typesetRoot=t.outputJax[this.isEscaped?"escaped":"typeset"](this,t),this.state(e.STATE.TYPESET))},t.prototype.updateDocument=function(t){},t.prototype.removeFromDocument=function(t){void 0===t&&(t=!1)},t.prototype.setMetrics=function(t,e,r,n,i){this.metrics={em:t,ex:e,containerWidth:r,lineWidth:n,scale:i}},t.prototype.state=function(t,r){return void 0===t&&(t=null),void 0===r&&(r=!1),null!=t&&(t<e.STATE.INSERTED&&this._state>=e.STATE.INSERTED&&this.removeFromDocument(r),t<e.STATE.TYPESET&&this._state>=e.STATE.TYPESET&&(this.outputData={}),t<e.STATE.COMPILED&&this._state>=e.STATE.COMPILED&&(this.inputData={}),this._state=t),this._state},t.prototype.reset=function(t){void 0===t&&(t=!1),this.state(e.STATE.UNPROCESSED,t)},t}();e.AbstractMathItem=r,e.STATE={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4},e.newState=function(t,r){if(t in e.STATE)throw Error("State "+t+" already exists");e.STATE[t]=r}},5134:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMathList=void 0;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isBefore=function(t,e){return t.start.i<e.start.i||t.start.i===e.start.i&&t.start.n<e.start.n},e}(r(8150).LinkedList);e.AbstractMathList=o},8e3:function(t,e){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Attributes=e.INHERIT=void 0,e.INHERIT="_inherit_";var n=function(){function t(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)}return t.prototype.set=function(t,e){this.attributes[t]=e},t.prototype.setList=function(t){Object.assign(this.attributes,t)},t.prototype.get=function(t){var r=this.attributes[t];return r===e.INHERIT&&(r=this.global[t]),r},t.prototype.getExplicit=function(t){if(this.attributes.hasOwnProperty(t))return this.attributes[t]},t.prototype.getList=function(){for(var t,e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o={};try{for(var s=r(n),a=s.next();!a.done;a=s.next()){var l=a.value;o[l]=this.get(l)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}return o},t.prototype.setInherited=function(t,e){this.inherited[t]=e},t.prototype.getInherited=function(t){return this.inherited[t]},t.prototype.getDefault=function(t){return this.defaults[t]},t.prototype.isSet=function(t){return this.attributes.hasOwnProperty(t)||this.inherited.hasOwnProperty(t)},t.prototype.hasDefault=function(t){return t in this.defaults},t.prototype.getExplicitNames=function(){return Object.keys(this.attributes)},t.prototype.getInheritedNames=function(){return Object.keys(this.inherited)},t.prototype.getDefaultNames=function(){return Object.keys(this.defaults)},t.prototype.getGlobalNames=function(){return Object.keys(this.global)},t.prototype.getAllAttributes=function(){return this.attributes},t.prototype.getAllInherited=function(){return this.inherited},t.prototype.getAllDefaults=function(){return this.defaults},t.prototype.getAllGlobals=function(){return this.global},t}();e.Attributes=n},14:function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.MML=void 0;var i=r(8594),o=r(1365),s=r(9979),a=r(1096),l=r(91),c=r(2507),u=r(3660),h=r(1506),p=r(5424),d=r(3785),f=r(1299),m=r(3208),y=r(2728),g=r(4249),b=r(2522),v=r(5510),M=r(2275),O=r(5282),x=r(1137),S=r(8111),E=r(758),C=r(7530),_=r(8848),A=r(7525),N=r(4463),w=r(831),T=r(1187),L=r(5373),P=r(2183),k=r(1105),I=r(7371),R=r(1338);e.MML=((n={})[o.MmlMath.prototype.kind]=o.MmlMath,n[s.MmlMi.prototype.kind]=s.MmlMi,n[a.MmlMn.prototype.kind]=a.MmlMn,n[l.MmlMo.prototype.kind]=l.MmlMo,n[c.MmlMtext.prototype.kind]=c.MmlMtext,n[u.MmlMspace.prototype.kind]=u.MmlMspace,n[h.MmlMs.prototype.kind]=h.MmlMs,n[p.MmlMrow.prototype.kind]=p.MmlMrow,n[p.MmlInferredMrow.prototype.kind]=p.MmlInferredMrow,n[d.MmlMfrac.prototype.kind]=d.MmlMfrac,n[f.MmlMsqrt.prototype.kind]=f.MmlMsqrt,n[m.MmlMroot.prototype.kind]=m.MmlMroot,n[y.MmlMstyle.prototype.kind]=y.MmlMstyle,n[g.MmlMerror.prototype.kind]=g.MmlMerror,n[b.MmlMpadded.prototype.kind]=b.MmlMpadded,n[v.MmlMphantom.prototype.kind]=v.MmlMphantom,n[M.MmlMfenced.prototype.kind]=M.MmlMfenced,n[O.MmlMenclose.prototype.kind]=O.MmlMenclose,n[x.MmlMaction.prototype.kind]=x.MmlMaction,n[S.MmlMsub.prototype.kind]=S.MmlMsub,n[S.MmlMsup.prototype.kind]=S.MmlMsup,n[S.MmlMsubsup.prototype.kind]=S.MmlMsubsup,n[E.MmlMunder.prototype.kind]=E.MmlMunder,n[E.MmlMover.prototype.kind]=E.MmlMover,n[E.MmlMunderover.prototype.kind]=E.MmlMunderover,n[C.MmlMmultiscripts.prototype.kind]=C.MmlMmultiscripts,n[C.MmlMprescripts.prototype.kind]=C.MmlMprescripts,n[C.MmlNone.prototype.kind]=C.MmlNone,n[_.MmlMtable.prototype.kind]=_.MmlMtable,n[A.MmlMlabeledtr.prototype.kind]=A.MmlMlabeledtr,n[A.MmlMtr.prototype.kind]=A.MmlMtr,n[N.MmlMtd.prototype.kind]=N.MmlMtd,n[w.MmlMaligngroup.prototype.kind]=w.MmlMaligngroup,n[T.MmlMalignmark.prototype.kind]=T.MmlMalignmark,n[L.MmlMglyph.prototype.kind]=L.MmlMglyph,n[P.MmlSemantics.prototype.kind]=P.MmlSemantics,n[P.MmlAnnotation.prototype.kind]=P.MmlAnnotation,n[P.MmlAnnotationXML.prototype.kind]=P.MmlAnnotationXML,n[k.TeXAtom.prototype.kind]=k.TeXAtom,n[I.MathChoice.prototype.kind]=I.MathChoice,n[i.TextNode.prototype.kind]=i.TextNode,n[i.XMLNode.prototype.kind]=i.XMLNode,n[R.HtmlNode.prototype.kind]=R.HtmlNode,n)},1869:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MathMLVisitor=void 0;var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.document=null,e}return i(e,t),e.prototype.visitTree=function(t,e){this.document=e;var r=e.createElement("top");return this.visitNode(t,r),this.document=null,r.firstChild},e.prototype.visitTextNode=function(t,e){e.appendChild(this.document.createTextNode(t.getText()))},e.prototype.visitXMLNode=function(t,e){e.appendChild(t.getXML().cloneNode(!0))},e.prototype.visitHtmlNode=function(t,e){e.appendChild(t.getHTML().cloneNode(!0))},e.prototype.visitInferredMrowNode=function(t,e){var r,n;try{for(var i=o(t.childNodes),s=i.next();!s.done;s=i.next()){var a=s.value;this.visitNode(a,e)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.visitDefault=function(t,e){var r,n,i=this.document.createElement(this.getKind(t));this.addAttributes(t,i);try{for(var s=o(t.childNodes),a=s.next();!a.done;a=s.next()){var l=a.value;this.visitNode(l,i)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}e.appendChild(i)},e.prototype.addAttributes=function(t,e){var r,n,i=this.getAttributeList(t);try{for(var s=o(Object.keys(i)),a=s.next();!a.done;a=s.next()){var l=a.value;e.setAttribute(l,i[l].toString())}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}},e}(r(2863).MmlVisitor);e.MathMLVisitor=s},8108:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.MmlFactory=void 0;var o=r(2254),s=r(14),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"MML",{get:function(){return this.node},enumerable:!1,configurable:!0}),e.defaultNodes=s.MML,e}(o.AbstractNodeFactory);e.MmlFactory=a},8594:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.XMLNode=e.TextNode=e.AbstractMmlEmptyNode=e.AbstractMmlBaseNode=e.AbstractMmlLayoutNode=e.AbstractMmlTokenNode=e.AbstractMmlNode=e.indentAttributes=e.TEXCLASSNAMES=e.TEXCLASS=void 0;var l=r(8e3),c=r(553);e.TEXCLASS={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,VTOP:9,VBOX:10,NONE:-1},e.TEXCLASSNAMES=["ORD","OP","BIN","REL","OPEN","CLOSE","PUNCT","INNER","VCENTER","VTOP","VBOX"];var u=["","thinmathspace","mediummathspace","thickmathspace"],h=[[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]];e.indentAttributes=["indentalign","indentalignfirst","indentshift","indentshiftfirst"];var p=function(t){function r(e,r,n){void 0===r&&(r={}),void 0===n&&(n=[]);var i=t.call(this,e)||this;return i.prevClass=null,i.prevLevel=null,i.texclass=null,i.arity<0&&(i.childNodes=[e.create("inferredMrow")],i.childNodes[0].parent=i),i.setChildren(n),i.attributes=new l.Attributes(e.getNodeClass(i.kind).defaults,e.getNodeClass("math").defaults),i.attributes.setList(r),i}return i(r,t),r.prototype.copy=function(t){var e,r,n,i;void 0===t&&(t=!1);var a=this.factory.create(this.kind);if(a.properties=o({},this.properties),this.attributes){var l=this.attributes.getAllAttributes();try{for(var c=s(Object.keys(l)),u=c.next();!u.done;u=c.next()){var h=u.value;("id"!==h||t)&&a.attributes.set(h,l[h])}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}}if(this.childNodes&&this.childNodes.length){var p=this.childNodes;1===p.length&&p[0].isInferred&&(p=p[0].childNodes);try{for(var d=s(p),f=d.next();!f.done;f=d.next()){var m=f.value;m?a.appendChild(m.copy()):a.childNodes.push(null)}}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}}return a},Object.defineProperty(r.prototype,"texClass",{get:function(){return this.texclass},set:function(t){this.texclass=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"linebreakAlign",{get:function(){return"data-align"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"arity",{get:function(){return 1/0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Parent",{get:function(){for(var t=this.parent;t&&t.notParent;)t=t.Parent;return t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.setChildren=function(e){return this.arity<0?this.childNodes[0].setChildren(e):t.prototype.setChildren.call(this,e)},r.prototype.appendChild=function(e){var r,n,i=this;if(this.arity<0)return this.childNodes[0].appendChild(e),e;if(e.isInferred){if(this.arity===1/0)return e.childNodes.forEach((function(e){return t.prototype.appendChild.call(i,e)})),e;var o=e;(e=this.factory.create("mrow")).setChildren(o.childNodes),e.attributes=o.attributes;try{for(var a=s(o.getPropertyNames()),l=a.next();!l.done;l=a.next()){var c=l.value;e.setProperty(c,o.getProperty(c))}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}}return t.prototype.appendChild.call(this,e)},r.prototype.replaceChild=function(e,r){return this.arity<0?(this.childNodes[0].replaceChild(e,r),e):t.prototype.replaceChild.call(this,e,r)},r.prototype.core=function(){return this},r.prototype.coreMO=function(){return this},r.prototype.coreIndex=function(){return 0},r.prototype.childPosition=function(){for(var t,e,r=this,n=r.parent;n&&n.notParent;)r=n,n=n.parent;if(n){var i=0;try{for(var o=s(n.childNodes),a=o.next();!a.done;a=o.next()){if(a.value===r)return i;i++}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}}return null},r.prototype.setTeXclass=function(t){return this.getPrevClass(t),null!=this.texClass?this:t},r.prototype.updateTeXclass=function(t){t&&(this.prevClass=t.prevClass,this.prevLevel=t.prevLevel,t.prevClass=t.prevLevel=null,this.texClass=t.texClass)},r.prototype.getPrevClass=function(t){t&&(this.prevClass=t.texClass,this.prevLevel=t.attributes.get("scriptlevel"))},r.prototype.texSpacing=function(){var t=null!=this.prevClass?this.prevClass:e.TEXCLASS.NONE,r=this.texClass||e.TEXCLASS.ORD;if(t===e.TEXCLASS.NONE||r===e.TEXCLASS.NONE)return"";t>=e.TEXCLASS.VCENTER&&(t=e.TEXCLASS.ORD),r>=e.TEXCLASS.VCENTER&&(r=e.TEXCLASS.ORD);var n=h[t][r];return(this.prevLevel>0||this.attributes.get("scriptlevel")>0)&&n>=0?"":u[Math.abs(n)]},r.prototype.hasSpacingAttributes=function(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()},r.prototype.setInheritedAttributes=function(t,e,n,i){var l,c,u,h,p;void 0===t&&(t={}),void 0===e&&(e=!1),void 0===n&&(n=0),void 0===i&&(i=!1);var d=this.attributes.getAllDefaults();try{for(var f=s(Object.keys(t)),m=f.next();!m.done;m=f.next()){var y=m.value;if(d.hasOwnProperty(y)||r.alwaysInherit.hasOwnProperty(y)){var g=a(t[y],2),b=g[0],v=g[1];!(null===(h=null===(u=r.noInherit[b])||void 0===u?void 0:u[this.kind])||void 0===h?void 0:h[y])&&this.attributes.setInherited(y,v)}(null===(p=r.stopInherit[this.kind])||void 0===p?void 0:p[y])&&delete(t=o({},t))[y]}}catch(t){l={error:t}}finally{try{m&&!m.done&&(c=f.return)&&c.call(f)}finally{if(l)throw l.error}}void 0===this.attributes.getExplicit("displaystyle")&&this.attributes.setInherited("displaystyle",e),void 0===this.attributes.getExplicit("scriptlevel")&&this.attributes.setInherited("scriptlevel",n),i&&this.setProperty("texprimestyle",i);var M=this.arity;if(M>=0&&M!==1/0&&(1===M&&0===this.childNodes.length||1!==M&&this.childNodes.length!==M))if(M<this.childNodes.length)this.childNodes=this.childNodes.slice(0,M);else for(;this.childNodes.length<M;)this.appendChild(this.factory.create("mrow"));if(this.linebreakContainer&&!this.isEmbellished){var O=this.linebreakAlign;if(O){var x=this.attributes.get(O)||"left";t=this.addInheritedAttributes(t,{indentalign:x,indentshift:"0",indentalignfirst:x,indentshiftfirst:"0",indentalignlast:"indentalign",indentshiftlast:"indentshift"})}}this.setChildInheritedAttributes(t,e,n,i)},r.prototype.setChildInheritedAttributes=function(t,e,r,n){var i,o;try{for(var a=s(this.childNodes),l=a.next();!l.done;l=a.next()){l.value.setInheritedAttributes(t,e,r,n)}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}},r.prototype.addInheritedAttributes=function(t,e){var r,n,i=o({},t);try{for(var a=s(Object.keys(e)),l=a.next();!l.done;l=a.next()){var c=l.value;"displaystyle"!==c&&"scriptlevel"!==c&&"style"!==c&&(i[c]=[this.kind,e[c]])}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},r.prototype.inheritAttributesFrom=function(t){var e=t.attributes,r=e.get("displaystyle"),n=e.get("scriptlevel"),i=e.isSet("mathsize")?{mathsize:["math",e.get("mathsize")]}:{},o=t.getProperty("texprimestyle")||!1;this.setInheritedAttributes(i,r,n,o)},r.prototype.verifyTree=function(t){if(void 0===t&&(t=null),null!==t){this.verifyAttributes(t);var 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)}},r.prototype.verifyAttributes=function(t){var e,r;if(t.checkAttributes){var n=this.attributes,i=[];try{for(var o=s(n.getExplicitNames()),a=o.next();!a.done;a=o.next()){var l=a.value;"data-"===l.substr(0,5)||void 0!==n.getDefault(l)||l.match(/^(?:class|style|id|(?:xlink:)?href)$/)||i.push(l)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}i.length&&this.mError("Unknown attributes for "+this.kind+" node: "+i.join(", "),t)}},r.prototype.verifyChildren=function(t){var e,r;try{for(var n=s(this.childNodes),i=n.next();!i.done;i=n.next()){i.value.verifyTree(t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},r.prototype.mError=function(t,e,r){if(void 0===r&&(r=!1),this.parent&&this.parent.isKind("merror"))return null;var n=this.factory.create("merror");if(n.attributes.set("data-mjx-message",t),e.fullErrors||r){var i=this.factory.create("mtext"),o=this.factory.create("text");o.setText(e.fullErrors?t:this.kind),i.appendChild(o),n.appendChild(i),this.parent.replaceChild(n,this)}else this.parent.replaceChild(n,this),n.appendChild(this);return n},r.defaults={mathbackground:l.INHERIT,mathcolor:l.INHERIT,mathsize:l.INHERIT,dir:l.INHERIT},r.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}}},r.stopInherit={mtd:{columnalign:!0,rowalign:!0,groupalign:!0}},r.alwaysInherit={scriptminsize:!0,scriptsizemultiplier:!0,infixlinebreakstyle:!0},r.verifyDefaults={checkArity:!0,checkAttributes:!1,fullErrors:!1,fixMmultiscripts:!0,fixMtables:!0},r}(c.AbstractNode);e.AbstractMmlNode=p;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"isToken",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.getText=function(){var t,e,r="";try{for(var n=s(this.childNodes),i=n.next();!i.done;i=n.next()){var o=i.value;o instanceof g?r+=o.getText():"textContent"in o&&(r+=o.textContent())}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},e.prototype.setChildInheritedAttributes=function(t,e,r,n){var i,o;try{for(var a=s(this.childNodes),l=a.next();!l.done;l=a.next()){var c=l.value;c instanceof p&&c.setInheritedAttributes(t,e,r,n)}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}},e.prototype.walkTree=function(t,e){var r,n;t(this,e);try{for(var i=s(this.childNodes),o=i.next();!o.done;o=i.next()){var a=o.value;a instanceof p&&a.walkTree(t,e)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e},e.defaults=o(o({},p.defaults),{mathvariant:"normal",mathsize:l.INHERIT}),e}(p);e.AbstractMmlTokenNode=d;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"isSpacelike",{get:function(){return this.childNodes[0].isSpacelike},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),e.prototype.core=function(){return this.childNodes[0]},e.prototype.coreMO=function(){return this.childNodes[0].coreMO()},e.prototype.setTeXclass=function(t){return t=this.childNodes[0].setTeXclass(t),this.updateTeXclass(this.childNodes[0]),t},e.defaults=p.defaults,e}(p);e.AbstractMmlLayoutNode=f;var m=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return i(r,t),Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),r.prototype.core=function(){return this.childNodes[0]},r.prototype.coreMO=function(){return this.childNodes[0].coreMO()},r.prototype.setTeXclass=function(t){var r,n;this.getPrevClass(t),this.texClass=e.TEXCLASS.ORD;var i=this.childNodes[0];i?this.isEmbellished||i.isKind("mi")?(t=i.setTeXclass(t),this.updateTeXclass(this.core())):(i.setTeXclass(null),t=this):t=this;try{for(var o=s(this.childNodes.slice(1)),a=o.next();!a.done;a=o.next()){var l=a.value;l&&l.setTeXclass(null)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return t},r.defaults=p.defaults,r}(p);e.AbstractMmlBaseNode=m;var y=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return i(r,t),Object.defineProperty(r.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"linebreakAlign",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"Parent",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"texClass",{get:function(){return e.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"prevClass",{get:function(){return e.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"prevLevel",{get:function(){return 0},enumerable:!1,configurable:!0}),r.prototype.hasSpacingAttributes=function(){return!1},Object.defineProperty(r.prototype,"attributes",{get:function(){return null},enumerable:!1,configurable:!0}),r.prototype.core=function(){return this},r.prototype.coreMO=function(){return this},r.prototype.coreIndex=function(){return 0},r.prototype.childPosition=function(){return 0},r.prototype.setTeXclass=function(t){return t},r.prototype.texSpacing=function(){return""},r.prototype.setInheritedAttributes=function(t,e,r,n){},r.prototype.inheritAttributesFrom=function(t){},r.prototype.verifyTree=function(t){},r.prototype.mError=function(t,e,r){return void 0===r&&(r=!1),null},r}(c.AbstractEmptyNode);e.AbstractMmlEmptyNode=y;var g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.text="",e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"text"},enumerable:!1,configurable:!0}),e.prototype.getText=function(){return this.text},e.prototype.setText=function(t){return this.text=t,this},e.prototype.copy=function(){return this.factory.create(this.kind).setText(this.getText())},e.prototype.toString=function(){return this.text},e}(y);e.TextNode=g;var b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.xml=null,e.adaptor=null,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"XML"},enumerable:!1,configurable:!0}),e.prototype.getXML=function(){return this.xml},e.prototype.setXML=function(t,e){return void 0===e&&(e=null),this.xml=t,this.adaptor=e,this},e.prototype.getSerializedXML=function(){return this.adaptor.serializeXML(this.xml)},e.prototype.copy=function(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))},e.prototype.toString=function(){return"XML data"},e}(y);e.XMLNode=b},1338:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.HtmlNode=void 0;var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.html=null,e.adaptor=null,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"html"},enumerable:!1,configurable:!0}),e.prototype.getHTML=function(){return this.html},e.prototype.setHTML=function(t,e){void 0===e&&(e=null);try{e.getAttribute(t,"data-mjx-hdw")}catch(r){t=e.node("span",{},[t])}return this.html=t,this.adaptor=e,this},e.prototype.getSerializedHTML=function(){return this.adaptor.outerHTML(this.html)},e.prototype.textContent=function(){return this.adaptor.textContent(this.html)},e.prototype.copy=function(){return this.factory.create(this.kind).setHTML(this.adaptor.clone(this.html))},e.prototype.toString=function(){var t=this.adaptor.kind(this.html);return"HTML=<".concat(t,">...</").concat(t,">")},e.prototype.verifyTree=function(t){!this.parent||this.parent.isToken||this.mError("HTML can only be a child of a token element",t,!0)},e}(r(8594).AbstractMmlEmptyNode);e.HtmlNode=o},1105:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.TeXAtom=void 0;var s=r(8594),a=r(91),l=function(t){function e(e,r,n){var i=t.call(this,e,r,n)||this;return i.texclass=s.TEXCLASS.ORD,i.setProperty("texClass",i.texClass),i}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"TeXAtom"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return this.texClass>=s.TEXCLASS.VCENTER},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notParent",{get:function(){return this.texClass<s.TEXCLASS.VCENTER},enumerable:!1,configurable:!0}),e.prototype.setTeXclass=function(t){return this.childNodes[0].setTeXclass(null),this.adjustTeXclass(t)},e.prototype.adjustTeXclass=function(t){return t},e.defaults=o({},s.AbstractMmlBaseNode.defaults),e}(s.AbstractMmlBaseNode);e.TeXAtom=l,l.prototype.adjustTeXclass=a.MmlMo.prototype.adjustTeXclass},1137:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMaction=void 0;var s=r(8594),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"maction"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){var t=this.attributes.get("selection"),e=Math.max(1,Math.min(this.childNodes.length,t))-1;return this.childNodes[e]||this.factory.create("mrow")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmbellished",{get:function(){return this.selected.isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSpacelike",{get:function(){return this.selected.isSpacelike},enumerable:!1,configurable:!0}),e.prototype.core=function(){return this.selected.core()},e.prototype.coreMO=function(){return this.selected.coreMO()},e.prototype.verifyAttributes=function(e){(t.prototype.verifyAttributes.call(this,e),"toggle"!==this.attributes.get("actiontype")&&void 0!==this.attributes.getExplicit("selection"))&&delete this.attributes.getAllAttributes().selection},e.prototype.setTeXclass=function(t){"tooltip"===this.attributes.get("actiontype")&&this.childNodes[1]&&this.childNodes[1].setTeXclass(null);var e=this.selected;return t=e.setTeXclass(t),this.updateTeXclass(e),t},e.prototype.nextToggleSelection=function(){var t=Math.max(1,parseInt(this.attributes.get("selection"))+1);t>this.childNodes.length&&(t=1),this.attributes.set("selection",t)},e.defaults=o(o({},s.AbstractMmlNode.defaults),{actiontype:"toggle",selection:1}),e}(s.AbstractMmlNode);e.MmlMaction=a},831:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMaligngroup=void 0;var s=r(8594),a=r(8e3),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"maligngroup"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.setChildInheritedAttributes=function(e,r,n,i){e=this.addInheritedAttributes(e,this.attributes.getAllAttributes()),t.prototype.setChildInheritedAttributes.call(this,e,r,n,i)},e.defaults=o(o({},s.AbstractMmlLayoutNode.defaults),{groupalign:a.INHERIT}),e}(s.AbstractMmlLayoutNode);e.MmlMaligngroup=l},1187:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMalignmark=void 0;var s=r(8594),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"malignmark"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),e.defaults=o(o({},s.AbstractMmlNode.defaults),{edge:"left"}),e}(s.AbstractMmlNode);e.MmlMalignmark=a},1365:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMath=void 0;var s=r(8594),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"math"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakAlign",{get:function(){return""},enumerable:!1,configurable:!0}),e.prototype.setChildInheritedAttributes=function(e,r,n,i){"display"===this.attributes.get("mode")&&this.attributes.setInherited("display","block"),e=this.addInheritedAttributes(e,this.attributes.getAllAttributes()),r=!!this.attributes.get("displaystyle")||!this.attributes.get("displaystyle")&&"block"===this.attributes.get("display"),this.attributes.setInherited("displaystyle",r),n=this.attributes.get("scriptlevel")||this.constructor.defaults.scriptlevel,t.prototype.setChildInheritedAttributes.call(this,e,r,n,i)},e.defaults=o(o({},s.AbstractMmlLayoutNode.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:"8px",infixlinebreakstyle:"before",lineleading:"100%",linebreakmultchar:"\u2062",indentshift:"auto",indentalign:"auto",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),e}(s.AbstractMmlLayoutNode);e.MmlMath=a},7371:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MathChoice=void 0;var s=r(8594),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"MathChoice"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 4},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.setInheritedAttributes=function(t,e,r,n){var i=e?0:Math.max(0,Math.min(r,2))+1,o=this.childNodes[i]||this.factory.create("mrow");this.parent.replaceChild(o,this),o.setInheritedAttributes(t,e,r,n)},e.defaults=o({},s.AbstractMmlBaseNode.defaults),e}(s.AbstractMmlBaseNode);e.MathChoice=a},5282:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMenclose=void 0;var s=r(8594),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.texclass=s.TEXCLASS.ORD,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"menclose"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.setTeXclass=function(t){return t=this.childNodes[0].setTeXclass(t),this.updateTeXclass(this.childNodes[0]),t},e.defaults=o(o({},s.AbstractMmlNode.defaults),{notation:"longdiv"}),e}(s.AbstractMmlNode);e.MmlMenclose=a},4249:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMerror=void 0;var s=r(8594),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.texclass=s.TEXCLASS.ORD,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"merror"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),e.defaults=o({},s.AbstractMmlNode.defaults),e}(s.AbstractMmlNode);e.MmlMerror=a},2275:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMfenced=void 0;var a=r(8594),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.texclass=a.TEXCLASS.INNER,e.separators=[],e.open=null,e.close=null,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mfenced"},enumerable:!1,configurable:!0}),e.prototype.setTeXclass=function(t){this.getPrevClass(t),this.open&&(t=this.open.setTeXclass(t)),this.childNodes[0]&&(t=this.childNodes[0].setTeXclass(t));for(var e=1,r=this.childNodes.length;e<r;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},e.prototype.setChildInheritedAttributes=function(e,r,n,i){var o,a;this.addFakeNodes();try{for(var l=s([this.open,this.close].concat(this.separators)),c=l.next();!c.done;c=l.next()){var u=c.value;u&&u.setInheritedAttributes(e,r,n,i)}}catch(t){o={error:t}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}t.prototype.setChildInheritedAttributes.call(this,e,r,n,i)},e.prototype.addFakeNodes=function(){var t,e,r=this.attributes.getList("open","close","separators"),n=r.open,i=r.close,o=r.separators;if(n=n.replace(/[ \t\n\r]/g,""),i=i.replace(/[ \t\n\r]/g,""),o=o.replace(/[ \t\n\r]/g,""),n&&(this.open=this.fakeNode(n,{fence:!0,form:"prefix"},a.TEXCLASS.OPEN)),o){for(;o.length<this.childNodes.length-1;)o+=o.charAt(o.length-1);var l=0;try{for(var c=s(this.childNodes.slice(1)),u=c.next();!u.done;u=c.next()){u.value&&this.separators.push(this.fakeNode(o.charAt(l++)))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}}i&&(this.close=this.fakeNode(i,{fence:!0,form:"postfix"},a.TEXCLASS.CLOSE))},e.prototype.fakeNode=function(t,e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=this.factory.create("text").setText(t),i=this.factory.create("mo",e,[n]);return i.texClass=r,i.parent=this,i},e.defaults=o(o({},a.AbstractMmlNode.defaults),{open:"(",close:")",separators:","}),e}(a.AbstractMmlNode);e.MmlMfenced=l},3785:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMfrac=void 0;var a=r(8594),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mfrac"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakAlign",{get:function(){return""},enumerable:!1,configurable:!0}),e.prototype.setTeXclass=function(t){var e,r;this.getPrevClass(t);try{for(var n=s(this.childNodes),i=n.next();!i.done;i=n.next()){i.value.setTeXclass(null)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this},e.prototype.setChildInheritedAttributes=function(t,e,r,n){(!e||r>0)&&r++;var i=this.attributes.get("numalign"),s=this.attributes.get("denomalign"),a=this.addInheritedAttributes(o({},t),{numalign:i,indentshift:"0",indentalignfirst:i,indentshiftfirst:"0",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),l=this.addInheritedAttributes(o({},t),{denalign:s,indentshift:"0",indentalignfirst:s,indentshiftfirst:"0",indentalignlast:"indentalign",indentshiftlast:"indentshift"});this.childNodes[0].setInheritedAttributes(a,!1,r,n),this.childNodes[1].setInheritedAttributes(l,!1,r,!0)},e.defaults=o(o({},a.AbstractMmlBaseNode.defaults),{linethickness:"medium",numalign:"center",denomalign:"center",bevelled:!1}),e}(a.AbstractMmlBaseNode);e.MmlMfrac=l},5373:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMglyph=void 0;var s=r(8594),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.texclass=s.TEXCLASS.ORD,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mglyph"},enumerable:!1,configurable:!0}),e.prototype.verifyAttributes=function(e){var r=this.attributes.getList("src","fontfamily","index"),n=r.src,i=r.fontfamily,o=r.index;""!==n||""!==i&&""!==o?t.prototype.verifyAttributes.call(this,e):this.mError("mglyph must have either src or fontfamily and index attributes",e,!0)},e.defaults=o(o({},s.AbstractMmlTokenNode.defaults),{alt:"",src:"",index:"",width:"auto",height:"auto",valign:"0em"}),e}(s.AbstractMmlTokenNode);e.MmlMglyph=a},9979:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMi=void 0;var s=r(8594),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.texclass=s.TEXCLASS.ORD,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mi"},enumerable:!1,configurable:!0}),e.prototype.setInheritedAttributes=function(r,n,i,o){void 0===r&&(r={}),void 0===n&&(n=!1),void 0===i&&(i=0),void 0===o&&(o=!1),t.prototype.setInheritedAttributes.call(this,r,n,i,o),this.getText().match(e.singleCharacter)&&!r.mathvariant&&this.attributes.setInherited("mathvariant","italic")},e.prototype.setTeXclass=function(t){this.getPrevClass(t);var r=this.getText();return r.length>1&&r.match(e.operatorName)&&"normal"===this.attributes.get("mathvariant")&&void 0===this.getProperty("autoOP")&&void 0===this.getProperty("texClass")&&(this.texClass=s.TEXCLASS.OP,this.setProperty("autoOP",!0)),this},e.defaults=o({},s.AbstractMmlTokenNode.defaults),e.operatorName=/^[a-z][a-z0-9]*$/i,e.singleCharacter=/^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/,e}(s.AbstractMmlTokenNode);e.MmlMi=a},7530:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlNone=e.MmlMprescripts=e.MmlMmultiscripts=void 0;var s=r(8594),a=r(8111),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mmultiscripts"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),e.prototype.setChildInheritedAttributes=function(t,e,r,n){this.childNodes[0].setInheritedAttributes(t,e,r,n);for(var i=!1,o=1,s=0;o<this.childNodes.length;o++){var a=this.childNodes[o];if(a.isKind("mprescripts")){if(!i&&(i=!0,o%2==0)){var l=this.factory.create("none");this.childNodes.splice(o,0,l),l.parent=this,o++}}else{var c=n||s%2==0;a.setInheritedAttributes(t,!1,r+1,c),s++}}this.childNodes.length%2==(i?1:0)&&(this.appendChild(this.factory.create("none")),this.childNodes[this.childNodes.length-1].setInheritedAttributes(t,!1,r+1,n))},e.prototype.verifyChildren=function(e){for(var r=!1,n=e.fixMmultiscripts,i=0;i<this.childNodes.length;i++){var o=this.childNodes[i];o.isKind("mprescripts")&&(r?o.mError(o.kind+" can only appear once in "+this.kind,e,!0):(r=!0,i%2!=0||n||this.mError("There must be an equal number of prescripts of each type",e)))}this.childNodes.length%2!=(r?1:0)||n||this.mError("There must be an equal number of scripts of each type",e),t.prototype.verifyChildren.call(this,e)},e.defaults=o({},a.MmlMsubsup.defaults),e}(a.MmlMsubsup);e.MmlMmultiscripts=l;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mprescripts"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),e.prototype.verifyTree=function(e){t.prototype.verifyTree.call(this,e),this.parent&&!this.parent.isKind("mmultiscripts")&&this.mError(this.kind+" must be a child of mmultiscripts",e,!0)},e.defaults=o({},s.AbstractMmlNode.defaults),e}(s.AbstractMmlNode);e.MmlMprescripts=c;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"none"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),e.prototype.verifyTree=function(e){t.prototype.verifyTree.call(this,e),this.parent&&!this.parent.isKind("mmultiscripts")&&this.mError(this.kind+" must be a child of mmultiscripts",e,!0)},e.defaults=o({},s.AbstractMmlNode.defaults),e}(s.AbstractMmlNode);e.MmlNone=u},1096:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMn=void 0;var s=r(8594),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.texclass=s.TEXCLASS.ORD,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mn"},enumerable:!1,configurable:!0}),e.defaults=o({},s.AbstractMmlTokenNode.defaults),e}(s.AbstractMmlTokenNode);e.MmlMn=a},91:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMo=void 0;var l=r(8594),c=r(5891),u=r(6707),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._texClass=null,e.lspace=5/18,e.rspace=5/18,e}return i(e,t),Object.defineProperty(e.prototype,"texClass",{get:function(){if(null===this._texClass){var t=this.getText(),e=s(this.handleExplicitForm(this.getForms()),3),r=e[0],n=e[1],i=e[2],o=this.constructor.OPTABLE,a=o[r][t]||o[n][t]||o[i][t];return a?a[2]:l.TEXCLASS.REL}return this._texClass},set:function(t){this._texClass=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"kind",{get:function(){return"mo"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmbellished",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.coreParent=function(){for(var t=this,e=this,r=this.factory.getNodeClass("math");e&&e.isEmbellished&&e.coreMO()===this&&!(e instanceof r);)t=e,e=e.parent;return t},e.prototype.coreText=function(t){if(!t)return"";if(t.isEmbellished)return t.coreMO().getText();for(;((t.isKind("mrow")||t.isKind("TeXAtom")&&t.texClass<l.TEXCLASS.VCENTER||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():""},e.prototype.hasSpacingAttributes=function(){return this.attributes.isSet("lspace")||this.attributes.isSet("rspace")},Object.defineProperty(e.prototype,"isAccent",{get:function(){var t=!1,e=this.coreParent().parent;if(e){var r=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(r)t=void 0!==e.attributes.getExplicit(r)?t:this.attributes.get("accent")}return t},enumerable:!1,configurable:!0}),e.prototype.setTeXclass=function(t){var e=this.attributes.getList("form","fence"),r=e.form,n=e.fence;return void 0===this.getProperty("texClass")&&(this.attributes.isSet("lspace")||this.attributes.isSet("rspace"))?null:(n&&this.texClass===l.TEXCLASS.REL&&("prefix"===r&&(this.texClass=l.TEXCLASS.OPEN),"postfix"===r&&(this.texClass=l.TEXCLASS.CLOSE)),this.adjustTeXclass(t))},e.prototype.adjustTeXclass=function(t){var e=this.texClass,r=this.prevClass;if(e===l.TEXCLASS.NONE)return t;if(t?(!t.getProperty("autoOP")||e!==l.TEXCLASS.BIN&&e!==l.TEXCLASS.REL||(r=t.texClass=l.TEXCLASS.ORD),r=this.prevClass=t.texClass||l.TEXCLASS.ORD,this.prevLevel=this.attributes.getInherited("scriptlevel")):r=this.prevClass=l.TEXCLASS.NONE,e!==l.TEXCLASS.BIN||r!==l.TEXCLASS.NONE&&r!==l.TEXCLASS.BIN&&r!==l.TEXCLASS.OP&&r!==l.TEXCLASS.REL&&r!==l.TEXCLASS.OPEN&&r!==l.TEXCLASS.PUNCT)if(r!==l.TEXCLASS.BIN||e!==l.TEXCLASS.REL&&e!==l.TEXCLASS.CLOSE&&e!==l.TEXCLASS.PUNCT){if(e===l.TEXCLASS.BIN){for(var n=this,i=this.parent;i&&i.parent&&i.isEmbellished&&(1===i.childNodes.length||!i.isKind("mrow")&&i.core()===n);)n=i,i=i.parent;i.childNodes[i.childNodes.length-1]===n&&(this.texClass=l.TEXCLASS.ORD)}}else t.texClass=this.prevClass=l.TEXCLASS.ORD;else this.texClass=l.TEXCLASS.ORD;return this},e.prototype.setInheritedAttributes=function(e,r,n,i){void 0===e&&(e={}),void 0===r&&(r=!1),void 0===n&&(n=0),void 0===i&&(i=!1),t.prototype.setInheritedAttributes.call(this,e,r,n,i);var o=this.getText();this.checkOperatorTable(o),this.checkPseudoScripts(o),this.checkPrimes(o),this.checkMathAccent(o)},e.prototype.checkOperatorTable=function(t){var e,r,n=s(this.handleExplicitForm(this.getForms()),3),i=n[0],o=n[1],l=n[2];this.attributes.setInherited("form",i);var u=this.constructor.OPTABLE,h=u[i][t]||u[o][t]||u[l][t];if(h){void 0===this.getProperty("texClass")&&(this.texClass=h[2]);try{for(var p=a(Object.keys(h[3]||{})),d=p.next();!d.done;d=p.next()){var f=d.value;this.attributes.setInherited(f,h[3][f])}}catch(t){e={error:t}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(e)throw e.error}}this.lspace=(h[0]+1)/18,this.rspace=(h[1]+1)/18}else{var m=(0,c.getRange)(t);if(m){void 0===this.getProperty("texClass")&&(this.texClass=m[2]);var y=this.constructor.MMLSPACING[m[2]];this.lspace=(y[0]+1)/18,this.rspace=(y[1]+1)/18}}},e.prototype.getForms=function(){for(var t=this,e=this.parent,r=this.Parent;r&&r.isEmbellished;)t=e,e=r.parent,r=r.Parent;if(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"]},e.prototype.handleExplicitForm=function(t){if(this.attributes.isSet("form")){var e=this.attributes.get("form");t=[e].concat(t.filter((function(t){return t!==e})))}return t},e.prototype.checkPseudoScripts=function(t){var e=this.constructor.pseudoScripts;if(t.match(e)){var r=this.coreParent().Parent,n=!r||!(r.isKind("msubsup")&&!r.isKind("msub"));this.setProperty("pseudoscript",n),n&&(this.attributes.setInherited("lspace",0),this.attributes.setInherited("rspace",0))}},e.prototype.checkPrimes=function(t){var e=this.constructor.primes;if(t.match(e)){var r=this.constructor.remapPrimes,n=(0,u.unicodeString)((0,u.unicodeChars)(t).map((function(t){return r[t]})));this.setProperty("primes",n)}},e.prototype.checkMathAccent=function(t){var e=this.Parent;if(void 0===this.getProperty("mathaccent")&&e&&e.isKind("munderover")){var r=s(e.childNodes,3),n=r[0],i=r[1],o=r[2];if(!n.isEmbellished||n.coreMO()!==this){var a=!(!i||!i.isEmbellished||i.coreMO()!==this),l=!(!o||!o.isEmbellished||i.coreMO()!==this);if(a||l){var c=this.constructor.mathaccents;t.match(c)&&this.setProperty("mathaccent",!0)}}}},e.defaults=o(o({},l.AbstractMmlTokenNode.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"}),e.MMLSPACING=c.MMLSPACING,e.OPTABLE=c.OPTABLE,e.pseudoScripts=new RegExp(["^[\"'*`","\xaa","\xb0","\xb2-\xb4","\xb9","\xba","\u2018-\u201f","\u2032-\u2037\u2057","\u2070\u2071","\u2074-\u207f","\u2080-\u208e","]+$"].join("")),e.primes=new RegExp(["^[\"'`","\u2018-\u201f","]+$"].join("")),e.remapPrimes={34:8243,39:8242,96:8245,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246},e.mathaccents=new RegExp(["^[","\xb4\u0301\u02ca","`\u0300\u02cb","\xa8\u0308","~\u0303\u02dc","\xaf\u0304\u02c9","\u02d8\u0306","\u02c7\u030c","^\u0302\u02c6","\u2192\u20d7","\u02d9\u0307","\u02da\u030a","\u20db","\u20dc","]$"].join("")),e}(l.AbstractMmlTokenNode);e.MmlMo=h},2522:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMpadded=void 0;var s=r(8594),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mpadded"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),e.defaults=o(o({},s.AbstractMmlLayoutNode.defaults),{width:"",height:"",depth:"",lspace:0,voffset:0}),e}(s.AbstractMmlLayoutNode);e.MmlMpadded=a},5510:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMphantom=void 0;var s=r(8594),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.texclass=s.TEXCLASS.ORD,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mphantom"},enumerable:!1,configurable:!0}),e.defaults=o({},s.AbstractMmlLayoutNode.defaults),e}(s.AbstractMmlLayoutNode);e.MmlMphantom=a},3208:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMroot=void 0;var s=r(8594),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.texclass=s.TEXCLASS.ORD,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mroot"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.setTeXclass=function(t){return this.getPrevClass(t),this.childNodes[0].setTeXclass(null),this.childNodes[1].setTeXclass(null),this},e.prototype.setChildInheritedAttributes=function(t,e,r,n){this.childNodes[0].setInheritedAttributes(t,e,r,!0),this.childNodes[1].setInheritedAttributes(t,!1,r+2,n)},e.defaults=o({},s.AbstractMmlNode.defaults),e}(s.AbstractMmlNode);e.MmlMroot=a},5424:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlInferredMrow=e.MmlMrow=void 0;var a=r(8594),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._core=null,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mrow"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSpacelike",{get:function(){var t,e;try{for(var r=s(this.childNodes),n=r.next();!n.done;n=r.next()){if(!n.value.isSpacelike)return!1}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmbellished",{get:function(){var t,e,r=!1,n=0;try{for(var i=s(this.childNodes),o=i.next();!o.done;o=i.next()){var a=o.value;if(a)if(a.isEmbellished){if(r)return!1;r=!0,this._core=n}else if(!a.isSpacelike)return!1;n++}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return r},enumerable:!1,configurable:!0}),e.prototype.core=function(){return this.isEmbellished&&null!=this._core?this.childNodes[this._core]:this},e.prototype.coreMO=function(){return this.isEmbellished&&null!=this._core?this.childNodes[this._core].coreMO():this},e.prototype.nonSpaceLength=function(){var t,e,r=0;try{for(var n=s(this.childNodes),i=n.next();!i.done;i=n.next()){var o=i.value;o&&!o.isSpacelike&&r++}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},e.prototype.firstNonSpace=function(){var t,e;try{for(var r=s(this.childNodes),n=r.next();!n.done;n=r.next()){var i=n.value;if(i&&!i.isSpacelike)return i}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return null},e.prototype.lastNonSpace=function(){for(var t=this.childNodes.length;--t>=0;){var e=this.childNodes[t];if(e&&!e.isSpacelike)return e}return null},e.prototype.setTeXclass=function(t){var e,r,n,i;if(null!=this.getProperty("open")||null!=this.getProperty("close")){this.getPrevClass(t),t=null;try{for(var o=s(this.childNodes),l=o.next();!l.done;l=o.next()){t=l.value.setTeXclass(t)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}null==this.texClass&&(this.texClass=a.TEXCLASS.INNER)}else{try{for(var c=s(this.childNodes),u=c.next();!u.done;u=c.next()){t=u.value.setTeXclass(t)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}this.childNodes[0]&&this.updateTeXclass(this.childNodes[0])}return t},e.defaults=o({},a.AbstractMmlNode.defaults),e}(a.AbstractMmlNode);e.MmlMrow=l;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"inferredMrow"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInferred",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"["+this.childNodes.join(",")+"]"},e.defaults=l.defaults,e}(l);e.MmlInferredMrow=c},1506:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMs=void 0;var s=r(8594),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.texclass=s.TEXCLASS.ORD,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"ms"},enumerable:!1,configurable:!0}),e.defaults=o(o({},s.AbstractMmlTokenNode.defaults),{lquote:'"',rquote:'"'}),e}(s.AbstractMmlTokenNode);e.MmlMs=a},3660:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMspace=void 0;var s=r(8594),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.texclass=s.TEXCLASS.NONE,e}return i(e,t),e.prototype.setTeXclass=function(t){return t},Object.defineProperty(e.prototype,"kind",{get:function(){return"mspace"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasNewline",{get:function(){var t=this.attributes,e=t.get("linebreak");return null==t.getExplicit("width")&&null==t.getExplicit("height")&&null==t.getExplicit("depth")&&("newline"===e||"indentingnewline"===e)},enumerable:!1,configurable:!0}),e.defaults=o(o({},s.AbstractMmlTokenNode.defaults),{width:"0em",height:"0ex",depth:"0ex",linebreak:"auto",indentshift:"auto",indentalign:"auto",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),e}(s.AbstractMmlTokenNode);e.MmlMspace=a},1299:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMsqrt=void 0;var s=r(8594),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.texclass=s.TEXCLASS.ORD,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"msqrt"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.setTeXclass=function(t){return this.getPrevClass(t),this.childNodes[0].setTeXclass(null),this},e.prototype.setChildInheritedAttributes=function(t,e,r,n){this.childNodes[0].setInheritedAttributes(t,e,r,!0)},e.defaults=o({},s.AbstractMmlNode.defaults),e}(s.AbstractMmlNode);e.MmlMsqrt=a},2728:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMstyle=void 0;var s=r(8594),a=r(8e3),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mstyle"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notParent",{get:function(){return this.childNodes[0]&&1===this.childNodes[0].childNodes.length},enumerable:!1,configurable:!0}),e.prototype.setChildInheritedAttributes=function(t,e,r,n){var i=this.attributes.getExplicit("scriptlevel");null!=i&&((i=i.toString()).match(/^\s*[-+]/)?r+=parseInt(i):r=parseInt(i),n=!1);var o=this.attributes.getExplicit("displaystyle");null!=o&&(e=!0===o,n=!1);var s=this.attributes.getExplicit("data-cramped");null!=s&&(n=s),t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),this.childNodes[0].setInheritedAttributes(t,e,r,n)},e.defaults=o(o({},s.AbstractMmlLayoutNode.defaults),{scriptlevel:a.INHERIT,displaystyle:a.INHERIT,scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:"8px",mathbackground:a.INHERIT,mathcolor:a.INHERIT,dir:a.INHERIT,infixlinebreakstyle:"before"}),e}(s.AbstractMmlLayoutNode);e.MmlMstyle=l},8111:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMsup=e.MmlMsub=e.MmlMsubsup=void 0;var s=r(8594),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"msubsup"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 3},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sub",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sup",{get:function(){return 2},enumerable:!1,configurable:!0}),e.prototype.setChildInheritedAttributes=function(t,e,r,n){var i=this.childNodes;i[0].setInheritedAttributes(t,e,r,n),i[1].setInheritedAttributes(t,!1,r+1,n||1===this.sub),i[2]&&i[2].setInheritedAttributes(t,!1,r+1,n||2===this.sub)},e.defaults=o(o({},s.AbstractMmlBaseNode.defaults),{subscriptshift:"",superscriptshift:""}),e}(s.AbstractMmlBaseNode);e.MmlMsubsup=a;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"msub"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),e.defaults=o({},a.defaults),e}(a);e.MmlMsub=l;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"msup"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sup",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sub",{get:function(){return 2},enumerable:!1,configurable:!0}),e.defaults=o({},a.defaults),e}(a);e.MmlMsup=c},8848:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtable=void 0;var a=r(8594),l=r(6707),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.properties={useHeight:!0},e.texclass=a.TEXCLASS.ORD,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mtable"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakAlign",{get:function(){return""},enumerable:!1,configurable:!0}),e.prototype.setInheritedAttributes=function(e,r,n,i){var o,l;try{for(var c=s(a.indentAttributes),u=c.next();!u.done;u=c.next()){var h=u.value;e[h]&&this.attributes.setInherited(h,e[h][1]),void 0!==this.attributes.getExplicit(h)&&delete this.attributes.getAllAttributes()[h]}}catch(t){o={error:t}}finally{try{u&&!u.done&&(l=c.return)&&l.call(c)}finally{if(o)throw o.error}}t.prototype.setInheritedAttributes.call(this,e,r,n,i)},e.prototype.setChildInheritedAttributes=function(t,e,r,n){var i,o,a,c;try{for(var u=s(this.childNodes),h=u.next();!h.done;h=u.next()){(y=h.value).isKind("mtr")||this.replaceChild(this.factory.create("mtr"),y).appendChild(y)}}catch(t){i={error:t}}finally{try{h&&!h.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}r=this.getProperty("scriptlevel")||r,e=!(!this.attributes.getExplicit("displaystyle")&&!this.attributes.getDefault("displaystyle")),t=this.addInheritedAttributes(t,{columnalign:this.attributes.get("columnalign"),rowalign:"center"});var p=this.attributes.getExplicit("data-cramped"),d=(0,l.split)(this.attributes.get("rowalign"));try{for(var f=s(this.childNodes),m=f.next();!m.done;m=f.next()){var y=m.value;t.rowalign[1]=d.shift()||t.rowalign[1],y.setInheritedAttributes(t,e,r,!!p)}}catch(t){a={error:t}}finally{try{m&&!m.done&&(c=f.return)&&c.call(f)}finally{if(a)throw a.error}}},e.prototype.verifyChildren=function(e){for(var r=null,n=this.factory,i=0;i<this.childNodes.length;i++){var o=this.childNodes[i];if(o.isKind("mtr"))r=null;else{var s=o.isKind("mtd");if(r?(this.removeChild(o),i--):r=this.replaceChild(n.create("mtr"),o),r.appendChild(s?o:n.create("mtd",{},[o])),!e.fixMtables){o.parent.removeChild(o),o.parent=this,s&&r.appendChild(n.create("mtd"));var a=o.mError("Children of "+this.kind+" must be mtr or mlabeledtr",e,s);r.childNodes[r.childNodes.length-1].appendChild(a)}}}t.prototype.verifyChildren.call(this,e)},e.prototype.setTeXclass=function(t){var e,r;this.getPrevClass(t);try{for(var n=s(this.childNodes),i=n.next();!i.done;i=n.next()){i.value.setTeXclass(null)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this},e.defaults=o(o({},a.AbstractMmlNode.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"}),e}(a.AbstractMmlNode);e.MmlMtable=c},4463:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtd=void 0;var s=r(8594),a=r(8e3),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mtd"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakAlign",{get:function(){return"columnalign"},enumerable:!1,configurable:!0}),e.prototype.verifyChildren=function(e){!this.parent||this.parent.isKind("mtr")?t.prototype.verifyChildren.call(this,e):this.mError(this.kind+" can only be a child of an mtr or mlabeledtr",e,!0)},e.prototype.setTeXclass=function(t){return this.getPrevClass(t),this.childNodes[0].setTeXclass(null),this},e.defaults=o(o({},s.AbstractMmlBaseNode.defaults),{rowspan:1,columnspan:1,rowalign:a.INHERIT,columnalign:a.INHERIT,groupalign:a.INHERIT}),e}(s.AbstractMmlBaseNode);e.MmlMtd=l},2507:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtext=void 0;var s=r(8594),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.texclass=s.TEXCLASS.ORD,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mtext"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),e.defaults=o({},s.AbstractMmlTokenNode.defaults),e}(s.AbstractMmlTokenNode);e.MmlMtext=a},7525:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMlabeledtr=e.MmlMtr=void 0;var a=r(8594),l=r(8e3),c=r(6707),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mtr"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakAlign",{get:function(){return""},enumerable:!1,configurable:!0}),e.prototype.setChildInheritedAttributes=function(t,e,r,n){var i,o,a,l;try{for(var u=s(this.childNodes),h=u.next();!h.done;h=u.next()){(m=h.value).isKind("mtd")||this.replaceChild(this.factory.create("mtd"),m).appendChild(m)}}catch(t){i={error:t}}finally{try{h&&!h.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}var p=(0,c.split)(this.attributes.get("columnalign"));1===this.arity&&p.unshift(this.parent.attributes.get("side")),t=this.addInheritedAttributes(t,{rowalign:this.attributes.get("rowalign"),columnalign:"center"});try{for(var d=s(this.childNodes),f=d.next();!f.done;f=d.next()){var m=f.value;t.columnalign[1]=p.shift()||t.columnalign[1],m.setInheritedAttributes(t,e,r,n)}}catch(t){a={error:t}}finally{try{f&&!f.done&&(l=d.return)&&l.call(d)}finally{if(a)throw a.error}}},e.prototype.verifyChildren=function(e){var r,n;if(!this.parent||this.parent.isKind("mtable")){try{for(var i=s(this.childNodes),o=i.next();!o.done;o=i.next()){var a=o.value;if(!a.isKind("mtd"))this.replaceChild(this.factory.create("mtd"),a).appendChild(a),e.fixMtables||a.mError("Children of "+this.kind+" must be mtd",e)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.prototype.verifyChildren.call(this,e)}else this.mError(this.kind+" can only be a child of an mtable",e,!0)},e.prototype.setTeXclass=function(t){var e,r;this.getPrevClass(t);try{for(var n=s(this.childNodes),i=n.next();!i.done;i=n.next()){i.value.setTeXclass(null)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this},e.defaults=o(o({},a.AbstractMmlNode.defaults),{rowalign:l.INHERIT,columnalign:l.INHERIT,groupalign:l.INHERIT}),e}(a.AbstractMmlNode);e.MmlMtr=u;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mlabeledtr"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(u);e.MmlMlabeledtr=h},758:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMover=e.MmlMunder=e.MmlMunderover=void 0;var s=r(8594),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"munderover"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 3},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"under",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"over",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.setChildInheritedAttributes=function(t,e,r,n){var i=this.childNodes;i[0].setInheritedAttributes(t,e,r,n||!!i[this.over]);var o=!(e||!i[0].coreMO().attributes.get("movablelimits")),s=this.constructor.ACCENTS;i[1].setInheritedAttributes(t,!1,this.getScriptlevel(s[1],o,r),n||1===this.under),this.setInheritedAccent(1,s[1],e,r,n,o),i[2]&&(i[2].setInheritedAttributes(t,!1,this.getScriptlevel(s[2],o,r),n||2===this.under),this.setInheritedAccent(2,s[2],e,r,n,o))},e.prototype.getScriptlevel=function(t,e,r){return!e&&this.attributes.get(t)||r++,r},e.prototype.setInheritedAccent=function(t,e,r,n,i,o){var s=this.childNodes[t];if(null==this.attributes.getExplicit(e)&&s.isEmbellished){var a=s.coreMO().attributes.get("accent");this.attributes.setInherited(e,a),a!==this.attributes.getDefault(e)&&s.setInheritedAttributes({},r,this.getScriptlevel(e,o,n),i)}},e.defaults=o(o({},s.AbstractMmlBaseNode.defaults),{accent:!1,accentunder:!1,align:"center"}),e.ACCENTS=["","accentunder","accent"],e}(s.AbstractMmlBaseNode);e.MmlMunderover=a;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"munder"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),e.defaults=o({},a.defaults),e}(a);e.MmlMunder=l;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mover"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"over",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"under",{get:function(){return 2},enumerable:!1,configurable:!0}),e.defaults=o({},a.defaults),e.ACCENTS=["","accent","accentunder"],e}(a);e.MmlMover=c},2183:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MmlAnnotation=e.MmlAnnotationXML=e.MmlSemantics=void 0;var s=r(8594),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"semantics"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),e.defaults=o(o({},s.AbstractMmlBaseNode.defaults),{definitionUrl:null,encoding:null}),e}(s.AbstractMmlBaseNode);e.MmlSemantics=a;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"annotation-xml"},enumerable:!1,configurable:!0}),e.prototype.setChildInheritedAttributes=function(){},e.defaults=o(o({},s.AbstractMmlNode.defaults),{definitionUrl:null,encoding:null,cd:"mathmlkeys",name:"",src:null}),e}(s.AbstractMmlNode);e.MmlAnnotationXML=l;var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.properties={isChars:!0},e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.defaults=o({},l.defaults),e}(l);e.MmlAnnotation=c},2863:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.MmlVisitor=e.DATAMJX=void 0;var o=r(8594),s=r(9979),a=r(8108),l=r(9021),c=r(7173);e.DATAMJX="data-mjx-";var u=function(t){function r(e){return void 0===e&&(e=null),e||(e=new a.MmlFactory),t.call(this,e)||this}return i(r,t),r.prototype.visitTextNode=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r]},r.prototype.visitXMLNode=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r]},r.prototype.visitHtmlNode=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r]},r.prototype.getKind=function(t){var e=t.kind;return(0,c.lookup)(e,this.constructor.rename,e)},r.prototype.getAttributeList=function(t){var e=this.constructor,r=(0,c.lookup)(t.kind,e.defaultAttributes,{}),n=Object.assign({},r,this.getDataAttributes(t),t.attributes.getAllAttributes()),i=e.variants;return n.hasOwnProperty("mathvariant")&&i.hasOwnProperty(n.mathvariant)&&(n.mathvariant=i[n.mathvariant]),n},r.prototype.getDataAttributes=function(t){var e={},r=t.attributes.getExplicit("mathvariant"),n=this.constructor.variants;r&&n.hasOwnProperty(r)&&this.setDataAttribute(e,"variant",r),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");var i=t.getProperty("scriptalign");i&&this.setDataAttribute(e,"script-align",i);var a=t.getProperty("texClass");if(void 0!==a){var l=!0;if(a===o.TEXCLASS.OP&&t.isKind("mi")){var c=t.getText();l=!(c.length>1&&c.match(s.MmlMi.operatorName))}l&&this.setDataAttribute(e,"texclass",a<0?"NONE":o.TEXCLASSNAMES[a])}return t.getProperty("scriptlevel")&&!1===t.getProperty("useHeight")&&this.setDataAttribute(e,"smallmatrix","true"),e},r.prototype.setDataAttribute=function(t,r,n){t[e.DATAMJX+r]=n},r.rename={TeXAtom:"mrow"},r.variants={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold","-tex-mathit":"italic"},r.defaultAttributes={math:{xmlns:"http://www.w3.org/1998/Math/MathML"}},r}(l.AbstractVisitor);e.MmlVisitor=u},5891:function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.OPTABLE=e.MMLSPACING=e.getRange=e.RANGES=e.MO=e.OPDEF=void 0;var i=r(8594);function o(t,e,r,n){return void 0===r&&(r=i.TEXCLASS.BIN),void 0===n&&(n=null),[t,e,r,n]}e.OPDEF=o,e.MO={ORD:o(0,0,i.TEXCLASS.ORD),ORD11:o(1,1,i.TEXCLASS.ORD),ORD21:o(2,1,i.TEXCLASS.ORD),ORD02:o(0,2,i.TEXCLASS.ORD),ORD55:o(5,5,i.TEXCLASS.ORD),NONE:o(0,0,i.TEXCLASS.NONE),OP:o(1,2,i.TEXCLASS.OP,{largeop:!0,movablelimits:!0,symmetric:!0}),OPFIXED:o(1,2,i.TEXCLASS.OP,{largeop:!0,movablelimits:!0}),INTEGRAL:o(0,1,i.TEXCLASS.OP,{largeop:!0,symmetric:!0}),INTEGRAL2:o(1,2,i.TEXCLASS.OP,{largeop:!0,symmetric:!0}),BIN3:o(3,3,i.TEXCLASS.BIN),BIN4:o(4,4,i.TEXCLASS.BIN),BIN01:o(0,1,i.TEXCLASS.BIN),BIN5:o(5,5,i.TEXCLASS.BIN),TALLBIN:o(4,4,i.TEXCLASS.BIN,{stretchy:!0}),BINOP:o(4,4,i.TEXCLASS.BIN,{largeop:!0,movablelimits:!0}),REL:o(5,5,i.TEXCLASS.REL),REL1:o(1,1,i.TEXCLASS.REL,{stretchy:!0}),REL4:o(4,4,i.TEXCLASS.REL),RELSTRETCH:o(5,5,i.TEXCLASS.REL,{stretchy:!0}),RELACCENT:o(5,5,i.TEXCLASS.REL,{accent:!0}),WIDEREL:o(5,5,i.TEXCLASS.REL,{accent:!0,stretchy:!0}),OPEN:o(0,0,i.TEXCLASS.OPEN,{fence:!0,stretchy:!0,symmetric:!0}),CLOSE:o(0,0,i.TEXCLASS.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}),INNER:o(0,0,i.TEXCLASS.INNER),PUNCT:o(0,3,i.TEXCLASS.PUNCT),ACCENT:o(0,0,i.TEXCLASS.ORD,{accent:!0}),WIDEACCENT:o(0,0,i.TEXCLASS.ORD,{accent:!0,stretchy:!0})},e.RANGES=[[32,127,i.TEXCLASS.REL,"mo"],[160,191,i.TEXCLASS.ORD,"mo"],[192,591,i.TEXCLASS.ORD,"mi"],[688,879,i.TEXCLASS.ORD,"mo"],[880,6688,i.TEXCLASS.ORD,"mi"],[6832,6911,i.TEXCLASS.ORD,"mo"],[6912,7615,i.TEXCLASS.ORD,"mi"],[7616,7679,i.TEXCLASS.ORD,"mo"],[7680,8191,i.TEXCLASS.ORD,"mi"],[8192,8303,i.TEXCLASS.ORD,"mo"],[8304,8351,i.TEXCLASS.ORD,"mo"],[8448,8527,i.TEXCLASS.ORD,"mi"],[8528,8591,i.TEXCLASS.ORD,"mn"],[8592,8703,i.TEXCLASS.REL,"mo"],[8704,8959,i.TEXCLASS.BIN,"mo"],[8960,9215,i.TEXCLASS.ORD,"mo"],[9312,9471,i.TEXCLASS.ORD,"mn"],[9472,10223,i.TEXCLASS.ORD,"mo"],[10224,10239,i.TEXCLASS.REL,"mo"],[10240,10495,i.TEXCLASS.ORD,"mtext"],[10496,10623,i.TEXCLASS.REL,"mo"],[10624,10751,i.TEXCLASS.ORD,"mo"],[10752,11007,i.TEXCLASS.BIN,"mo"],[11008,11055,i.TEXCLASS.ORD,"mo"],[11056,11087,i.TEXCLASS.REL,"mo"],[11088,11263,i.TEXCLASS.ORD,"mo"],[11264,11744,i.TEXCLASS.ORD,"mi"],[11776,11903,i.TEXCLASS.ORD,"mo"],[11904,12255,i.TEXCLASS.ORD,"mi","normal"],[12272,12351,i.TEXCLASS.ORD,"mo"],[12352,42143,i.TEXCLASS.ORD,"mi","normal"],[42192,43055,i.TEXCLASS.ORD,"mi"],[43056,43071,i.TEXCLASS.ORD,"mn"],[43072,55295,i.TEXCLASS.ORD,"mi"],[63744,64255,i.TEXCLASS.ORD,"mi","normal"],[64256,65023,i.TEXCLASS.ORD,"mi"],[65024,65135,i.TEXCLASS.ORD,"mo"],[65136,65791,i.TEXCLASS.ORD,"mi"],[65792,65935,i.TEXCLASS.ORD,"mn"],[65936,74751,i.TEXCLASS.ORD,"mi","normal"],[74752,74879,i.TEXCLASS.ORD,"mn"],[74880,113823,i.TEXCLASS.ORD,"mi","normal"],[113824,119391,i.TEXCLASS.ORD,"mo"],[119648,119679,i.TEXCLASS.ORD,"mn"],[119808,120781,i.TEXCLASS.ORD,"mi"],[120782,120831,i.TEXCLASS.ORD,"mn"],[122624,129023,i.TEXCLASS.ORD,"mo"],[129024,129279,i.TEXCLASS.REL,"mo"],[129280,129535,i.TEXCLASS.ORD,"mo"],[131072,195103,i.TEXCLASS.ORD,"mi","normal"]],e.getRange=function(t){var r,i,o=t.codePointAt(0);try{for(var s=n(e.RANGES),a=s.next();!a.done;a=s.next()){var l=a.value;if(o<=l[1]){if(o>=l[0])return l;break}}}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return null},e.MMLSPACING=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3]],e.OPTABLE={prefix:{"(":e.MO.OPEN,"+":e.MO.BIN01,"-":e.MO.BIN01,"[":e.MO.OPEN,"{":e.MO.OPEN,"|":e.MO.OPEN,"||":[0,0,i.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,i.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"\xac":e.MO.ORD21,"\xb1":e.MO.BIN01,"\u2016":[0,0,i.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"\u2018":[0,0,i.TEXCLASS.OPEN,{fence:!0}],"\u201c":[0,0,i.TEXCLASS.OPEN,{fence:!0}],"\u2145":e.MO.ORD21,"\u2146":o(2,0,i.TEXCLASS.ORD),"\u2200":e.MO.ORD21,"\u2202":e.MO.ORD21,"\u2203":e.MO.ORD21,"\u2204":e.MO.ORD21,"\u2207":e.MO.ORD21,"\u220f":e.MO.OP,"\u2210":e.MO.OP,"\u2211":e.MO.OP,"\u2212":e.MO.BIN01,"\u2213":e.MO.BIN01,"\u221a":[1,1,i.TEXCLASS.ORD,{stretchy:!0}],"\u221b":e.MO.ORD11,"\u221c":e.MO.ORD11,"\u2220":e.MO.ORD,"\u2221":e.MO.ORD,"\u2222":e.MO.ORD,"\u222b":e.MO.INTEGRAL,"\u222c":e.MO.INTEGRAL,"\u222d":e.MO.INTEGRAL,"\u222e":e.MO.INTEGRAL,"\u222f":e.MO.INTEGRAL,"\u2230":e.MO.INTEGRAL,"\u2231":e.MO.INTEGRAL,"\u2232":e.MO.INTEGRAL,"\u2233":e.MO.INTEGRAL,"\u22c0":e.MO.OP,"\u22c1":e.MO.OP,"\u22c2":e.MO.OP,"\u22c3":e.MO.OP,"\u2308":e.MO.OPEN,"\u230a":e.MO.OPEN,"\u2329":e.MO.OPEN,"\u2772":e.MO.OPEN,"\u27e6":e.MO.OPEN,"\u27e8":e.MO.OPEN,"\u27ea":e.MO.OPEN,"\u27ec":e.MO.OPEN,"\u27ee":e.MO.OPEN,"\u2980":[0,0,i.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"\u2983":e.MO.OPEN,"\u2985":e.MO.OPEN,"\u2987":e.MO.OPEN,"\u2989":e.MO.OPEN,"\u298b":e.MO.OPEN,"\u298d":e.MO.OPEN,"\u298f":e.MO.OPEN,"\u2991":e.MO.OPEN,"\u2993":e.MO.OPEN,"\u2995":e.MO.OPEN,"\u2997":e.MO.OPEN,"\u29fc":e.MO.OPEN,"\u2a00":e.MO.OP,"\u2a01":e.MO.OP,"\u2a02":e.MO.OP,"\u2a03":e.MO.OP,"\u2a04":e.MO.OP,"\u2a05":e.MO.OP,"\u2a06":e.MO.OP,"\u2a07":e.MO.OP,"\u2a08":e.MO.OP,"\u2a09":e.MO.OP,"\u2a0a":e.MO.OP,"\u2a0b":e.MO.INTEGRAL2,"\u2a0c":e.MO.INTEGRAL,"\u2a0d":e.MO.INTEGRAL2,"\u2a0e":e.MO.INTEGRAL2,"\u2a0f":e.MO.INTEGRAL2,"\u2a10":e.MO.OP,"\u2a11":e.MO.OP,"\u2a12":e.MO.OP,"\u2a13":e.MO.OP,"\u2a14":e.MO.OP,"\u2a15":e.MO.INTEGRAL2,"\u2a16":e.MO.INTEGRAL2,"\u2a17":e.MO.INTEGRAL2,"\u2a18":e.MO.INTEGRAL2,"\u2a19":e.MO.INTEGRAL2,"\u2a1a":e.MO.INTEGRAL2,"\u2a1b":e.MO.INTEGRAL2,"\u2a1c":e.MO.INTEGRAL2,"\u2afc":e.MO.OP,"\u2aff":e.MO.OP},postfix:{"!!":o(1,0),"!":[1,0,i.TEXCLASS.CLOSE,null],'"':e.MO.ACCENT,"&":e.MO.ORD,")":e.MO.CLOSE,"++":o(0,0),"--":o(0,0),"..":o(0,0),"...":e.MO.ORD,"'":e.MO.ACCENT,"]":e.MO.CLOSE,"^":e.MO.WIDEACCENT,_:e.MO.WIDEACCENT,"`":e.MO.ACCENT,"|":e.MO.CLOSE,"}":e.MO.CLOSE,"~":e.MO.WIDEACCENT,"||":[0,0,i.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,i.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"\xa8":e.MO.ACCENT,"\xaa":e.MO.ACCENT,"\xaf":e.MO.WIDEACCENT,"\xb0":e.MO.ORD,"\xb2":e.MO.ACCENT,"\xb3":e.MO.ACCENT,"\xb4":e.MO.ACCENT,"\xb8":e.MO.ACCENT,"\xb9":e.MO.ACCENT,"\xba":e.MO.ACCENT,"\u02c6":e.MO.WIDEACCENT,"\u02c7":e.MO.WIDEACCENT,"\u02c9":e.MO.WIDEACCENT,"\u02ca":e.MO.ACCENT,"\u02cb":e.MO.ACCENT,"\u02cd":e.MO.WIDEACCENT,"\u02d8":e.MO.ACCENT,"\u02d9":e.MO.ACCENT,"\u02da":e.MO.ACCENT,"\u02dc":e.MO.WIDEACCENT,"\u02dd":e.MO.ACCENT,"\u02f7":e.MO.WIDEACCENT,"\u0302":e.MO.WIDEACCENT,"\u0311":e.MO.ACCENT,"\u03f6":e.MO.REL,"\u2016":[0,0,i.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"\u2019":[0,0,i.TEXCLASS.CLOSE,{fence:!0}],"\u201a":e.MO.ACCENT,"\u201b":e.MO.ACCENT,"\u201d":[0,0,i.TEXCLASS.CLOSE,{fence:!0}],"\u201e":e.MO.ACCENT,"\u201f":e.MO.ACCENT,"\u2032":e.MO.ORD,"\u2033":e.MO.ACCENT,"\u2034":e.MO.ACCENT,"\u2035":e.MO.ACCENT,"\u2036":e.MO.ACCENT,"\u2037":e.MO.ACCENT,"\u203e":e.MO.WIDEACCENT,"\u2057":e.MO.ACCENT,"\u20db":e.MO.ACCENT,"\u20dc":e.MO.ACCENT,"\u2309":e.MO.CLOSE,"\u230b":e.MO.CLOSE,"\u232a":e.MO.CLOSE,"\u23b4":e.MO.WIDEACCENT,"\u23b5":e.MO.WIDEACCENT,"\u23dc":e.MO.WIDEACCENT,"\u23dd":e.MO.WIDEACCENT,"\u23de":e.MO.WIDEACCENT,"\u23df":e.MO.WIDEACCENT,"\u23e0":e.MO.WIDEACCENT,"\u23e1":e.MO.WIDEACCENT,"\u25a0":e.MO.BIN3,"\u25a1":e.MO.BIN3,"\u25aa":e.MO.BIN3,"\u25ab":e.MO.BIN3,"\u25ad":e.MO.BIN3,"\u25ae":e.MO.BIN3,"\u25af":e.MO.BIN3,"\u25b0":e.MO.BIN3,"\u25b1":e.MO.BIN3,"\u25b2":e.MO.BIN4,"\u25b4":e.MO.BIN4,"\u25b6":e.MO.BIN4,"\u25b7":e.MO.BIN4,"\u25b8":e.MO.BIN4,"\u25bc":e.MO.BIN4,"\u25be":e.MO.BIN4,"\u25c0":e.MO.BIN4,"\u25c1":e.MO.BIN4,"\u25c2":e.MO.BIN4,"\u25c4":e.MO.BIN4,"\u25c5":e.MO.BIN4,"\u25c6":e.MO.BIN4,"\u25c7":e.MO.BIN4,"\u25c8":e.MO.BIN4,"\u25c9":e.MO.BIN4,"\u25cc":e.MO.BIN4,"\u25cd":e.MO.BIN4,"\u25ce":e.MO.BIN4,"\u25cf":e.MO.BIN4,"\u25d6":e.MO.BIN4,"\u25d7":e.MO.BIN4,"\u25e6":e.MO.BIN4,"\u266d":e.MO.ORD02,"\u266e":e.MO.ORD02,"\u266f":e.MO.ORD02,"\u2773":e.MO.CLOSE,"\u27e7":e.MO.CLOSE,"\u27e9":e.MO.CLOSE,"\u27eb":e.MO.CLOSE,"\u27ed":e.MO.CLOSE,"\u27ef":e.MO.CLOSE,"\u2980":[0,0,i.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"\u2984":e.MO.CLOSE,"\u2986":e.MO.CLOSE,"\u2988":e.MO.CLOSE,"\u298a":e.MO.CLOSE,"\u298c":e.MO.CLOSE,"\u298e":e.MO.CLOSE,"\u2990":e.MO.CLOSE,"\u2992":e.MO.CLOSE,"\u2994":e.MO.CLOSE,"\u2996":e.MO.CLOSE,"\u2998":e.MO.CLOSE,"\u29fd":e.MO.CLOSE},infix:{"!=":e.MO.BIN4,"#":e.MO.ORD,$:e.MO.ORD,"%":[3,3,i.TEXCLASS.ORD,null],"&&":e.MO.BIN4,"":e.MO.ORD,"*":e.MO.BIN3,"**":o(1,1),"*=":e.MO.BIN4,"+":e.MO.BIN4,"+=":e.MO.BIN4,",":[0,3,i.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"-":e.MO.BIN4,"-=":e.MO.BIN4,"->":e.MO.BIN5,".":[0,3,i.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"/":e.MO.ORD11,"//":o(1,1),"/=":e.MO.BIN4,":":[1,2,i.TEXCLASS.REL,null],":=":e.MO.BIN4,";":[0,3,i.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"<":e.MO.REL,"<=":e.MO.BIN5,"<>":o(1,1),"=":e.MO.REL,"==":e.MO.BIN4,">":e.MO.REL,">=":e.MO.BIN5,"?":[1,1,i.TEXCLASS.CLOSE,null],"@":e.MO.ORD11,"\\":e.MO.ORD,"^":e.MO.ORD11,_:e.MO.ORD11,"|":[2,2,i.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"||":[2,2,i.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[2,2,i.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"\xb1":e.MO.BIN4,"\xb7":e.MO.BIN4,"\xd7":e.MO.BIN4,"\xf7":e.MO.BIN4,"\u02b9":e.MO.ORD,"\u0300":e.MO.ACCENT,"\u0301":e.MO.ACCENT,"\u0303":e.MO.WIDEACCENT,"\u0304":e.MO.ACCENT,"\u0306":e.MO.ACCENT,"\u0307":e.MO.ACCENT,"\u0308":e.MO.ACCENT,"\u030c":e.MO.ACCENT,"\u0332":e.MO.WIDEACCENT,"\u0338":e.MO.REL4,"\u2015":[0,0,i.TEXCLASS.ORD,{stretchy:!0}],"\u2017":[0,0,i.TEXCLASS.ORD,{stretchy:!0}],"\u2020":e.MO.BIN3,"\u2021":e.MO.BIN3,"\u2022":e.MO.BIN4,"\u2026":e.MO.INNER,"\u2043":e.MO.BIN4,"\u2044":e.MO.TALLBIN,"\u2061":e.MO.NONE,"\u2062":e.MO.NONE,"\u2063":[0,0,i.TEXCLASS.NONE,{linebreakstyle:"after",separator:!0}],"\u2064":e.MO.NONE,"\u20d7":e.MO.ACCENT,"\u2111":e.MO.ORD,"\u2113":e.MO.ORD,"\u2118":e.MO.ORD,"\u211c":e.MO.ORD,"\u2190":e.MO.WIDEREL,"\u2191":e.MO.RELSTRETCH,"\u2192":e.MO.WIDEREL,"\u2193":e.MO.RELSTRETCH,"\u2194":e.MO.WIDEREL,"\u2195":e.MO.RELSTRETCH,"\u2196":e.MO.RELSTRETCH,"\u2197":e.MO.RELSTRETCH,"\u2198":e.MO.RELSTRETCH,"\u2199":e.MO.RELSTRETCH,"\u219a":e.MO.RELACCENT,"\u219b":e.MO.RELACCENT,"\u219c":e.MO.WIDEREL,"\u219d":e.MO.WIDEREL,"\u219e":e.MO.WIDEREL,"\u219f":e.MO.WIDEREL,"\u21a0":e.MO.WIDEREL,"\u21a1":e.MO.RELSTRETCH,"\u21a2":e.MO.WIDEREL,"\u21a3":e.MO.WIDEREL,"\u21a4":e.MO.WIDEREL,"\u21a5":e.MO.RELSTRETCH,"\u21a6":e.MO.WIDEREL,"\u21a7":e.MO.RELSTRETCH,"\u21a8":e.MO.RELSTRETCH,"\u21a9":e.MO.WIDEREL,"\u21aa":e.MO.WIDEREL,"\u21ab":e.MO.WIDEREL,"\u21ac":e.MO.WIDEREL,"\u21ad":e.MO.WIDEREL,"\u21ae":e.MO.RELACCENT,"\u21af":e.MO.RELSTRETCH,"\u21b0":e.MO.RELSTRETCH,"\u21b1":e.MO.RELSTRETCH,"\u21b2":e.MO.RELSTRETCH,"\u21b3":e.MO.RELSTRETCH,"\u21b4":e.MO.RELSTRETCH,"\u21b5":e.MO.RELSTRETCH,"\u21b6":e.MO.RELACCENT,"\u21b7":e.MO.RELACCENT,"\u21b8":e.MO.REL,"\u21b9":e.MO.WIDEREL,"\u21ba":e.MO.REL,"\u21bb":e.MO.REL,"\u21bc":e.MO.WIDEREL,"\u21bd":e.MO.WIDEREL,"\u21be":e.MO.RELSTRETCH,"\u21bf":e.MO.RELSTRETCH,"\u21c0":e.MO.WIDEREL,"\u21c1":e.MO.WIDEREL,"\u21c2":e.MO.RELSTRETCH,"\u21c3":e.MO.RELSTRETCH,"\u21c4":e.MO.WIDEREL,"\u21c5":e.MO.RELSTRETCH,"\u21c6":e.MO.WIDEREL,"\u21c7":e.MO.WIDEREL,"\u21c8":e.MO.RELSTRETCH,"\u21c9":e.MO.WIDEREL,"\u21ca":e.MO.RELSTRETCH,"\u21cb":e.MO.WIDEREL,"\u21cc":e.MO.WIDEREL,"\u21cd":e.MO.RELACCENT,"\u21ce":e.MO.RELACCENT,"\u21cf":e.MO.RELACCENT,"\u21d0":e.MO.WIDEREL,"\u21d1":e.MO.RELSTRETCH,"\u21d2":e.MO.WIDEREL,"\u21d3":e.MO.RELSTRETCH,"\u21d4":e.MO.WIDEREL,"\u21d5":e.MO.RELSTRETCH,"\u21d6":e.MO.RELSTRETCH,"\u21d7":e.MO.RELSTRETCH,"\u21d8":e.MO.RELSTRETCH,"\u21d9":e.MO.RELSTRETCH,"\u21da":e.MO.WIDEREL,"\u21db":e.MO.WIDEREL,"\u21dc":e.MO.WIDEREL,"\u21dd":e.MO.WIDEREL,"\u21de":e.MO.REL,"\u21df":e.MO.REL,"\u21e0":e.MO.WIDEREL,"\u21e1":e.MO.RELSTRETCH,"\u21e2":e.MO.WIDEREL,"\u21e3":e.MO.RELSTRETCH,"\u21e4":e.MO.WIDEREL,"\u21e5":e.MO.WIDEREL,"\u21e6":e.MO.WIDEREL,"\u21e7":e.MO.RELSTRETCH,"\u21e8":e.MO.WIDEREL,"\u21e9":e.MO.RELSTRETCH,"\u21ea":e.MO.RELSTRETCH,"\u21eb":e.MO.RELSTRETCH,"\u21ec":e.MO.RELSTRETCH,"\u21ed":e.MO.RELSTRETCH,"\u21ee":e.MO.RELSTRETCH,"\u21ef":e.MO.RELSTRETCH,"\u21f0":e.MO.WIDEREL,"\u21f1":e.MO.REL,"\u21f2":e.MO.REL,"\u21f3":e.MO.RELSTRETCH,"\u21f4":e.MO.RELACCENT,"\u21f5":e.MO.RELSTRETCH,"\u21f6":e.MO.WIDEREL,"\u21f7":e.MO.RELACCENT,"\u21f8":e.MO.RELACCENT,"\u21f9":e.MO.RELACCENT,"\u21fa":e.MO.RELACCENT,"\u21fb":e.MO.RELACCENT,"\u21fc":e.MO.RELACCENT,"\u21fd":e.MO.WIDEREL,"\u21fe":e.MO.WIDEREL,"\u21ff":e.MO.WIDEREL,"\u2201":o(1,2,i.TEXCLASS.ORD),"\u2205":e.MO.ORD,"\u2206":e.MO.BIN3,"\u2208":e.MO.REL,"\u2209":e.MO.REL,"\u220a":e.MO.REL,"\u220b":e.MO.REL,"\u220c":e.MO.REL,"\u220d":e.MO.REL,"\u220e":e.MO.BIN3,"\u2212":e.MO.BIN4,"\u2213":e.MO.BIN4,"\u2214":e.MO.BIN4,"\u2215":e.MO.TALLBIN,"\u2216":e.MO.BIN4,"\u2217":e.MO.BIN4,"\u2218":e.MO.BIN4,"\u2219":e.MO.BIN4,"\u221d":e.MO.REL,"\u221e":e.MO.ORD,"\u221f":e.MO.REL,"\u2223":e.MO.REL,"\u2224":e.MO.REL,"\u2225":e.MO.REL,"\u2226":e.MO.REL,"\u2227":e.MO.BIN4,"\u2228":e.MO.BIN4,"\u2229":e.MO.BIN4,"\u222a":e.MO.BIN4,"\u2234":e.MO.REL,"\u2235":e.MO.REL,"\u2236":e.MO.REL,"\u2237":e.MO.REL,"\u2238":e.MO.BIN4,"\u2239":e.MO.REL,"\u223a":e.MO.BIN4,"\u223b":e.MO.REL,"\u223c":e.MO.REL,"\u223d":e.MO.REL,"\u223d\u0331":e.MO.BIN3,"\u223e":e.MO.REL,"\u223f":e.MO.BIN3,"\u2240":e.MO.BIN4,"\u2241":e.MO.REL,"\u2242":e.MO.REL,"\u2242\u0338":e.MO.REL,"\u2243":e.MO.REL,"\u2244":e.MO.REL,"\u2245":e.MO.REL,"\u2246":e.MO.REL,"\u2247":e.MO.REL,"\u2248":e.MO.REL,"\u2249":e.MO.REL,"\u224a":e.MO.REL,"\u224b":e.MO.REL,"\u224c":e.MO.REL,"\u224d":e.MO.REL,"\u224e":e.MO.REL,"\u224e\u0338":e.MO.REL,"\u224f":e.MO.REL,"\u224f\u0338":e.MO.REL,"\u2250":e.MO.REL,"\u2251":e.MO.REL,"\u2252":e.MO.REL,"\u2253":e.MO.REL,"\u2254":e.MO.REL,"\u2255":e.MO.REL,"\u2256":e.MO.REL,"\u2257":e.MO.REL,"\u2258":e.MO.REL,"\u2259":e.MO.REL,"\u225a":e.MO.REL,"\u225b":e.MO.REL,"\u225c":e.MO.REL,"\u225d":e.MO.REL,"\u225e":e.MO.REL,"\u225f":e.MO.REL,"\u2260":e.MO.REL,"\u2261":e.MO.REL,"\u2262":e.MO.REL,"\u2263":e.MO.REL,"\u2264":e.MO.REL,"\u2265":e.MO.REL,"\u2266":e.MO.REL,"\u2266\u0338":e.MO.REL,"\u2267":e.MO.REL,"\u2268":e.MO.REL,"\u2269":e.MO.REL,"\u226a":e.MO.REL,"\u226a\u0338":e.MO.REL,"\u226b":e.MO.REL,"\u226b\u0338":e.MO.REL,"\u226c":e.MO.REL,"\u226d":e.MO.REL,"\u226e":e.MO.REL,"\u226f":e.MO.REL,"\u2270":e.MO.REL,"\u2271":e.MO.REL,"\u2272":e.MO.REL,"\u2273":e.MO.REL,"\u2274":e.MO.REL,"\u2275":e.MO.REL,"\u2276":e.MO.REL,"\u2277":e.MO.REL,"\u2278":e.MO.REL,"\u2279":e.MO.REL,"\u227a":e.MO.REL,"\u227b":e.MO.REL,"\u227c":e.MO.REL,"\u227d":e.MO.REL,"\u227e":e.MO.REL,"\u227f":e.MO.REL,"\u227f\u0338":e.MO.REL,"\u2280":e.MO.REL,"\u2281":e.MO.REL,"\u2282":e.MO.REL,"\u2282\u20d2":e.MO.REL,"\u2283":e.MO.REL,"\u2283\u20d2":e.MO.REL,"\u2284":e.MO.REL,"\u2285":e.MO.REL,"\u2286":e.MO.REL,"\u2287":e.MO.REL,"\u2288":e.MO.REL,"\u2289":e.MO.REL,"\u228a":e.MO.REL,"\u228b":e.MO.REL,"\u228c":e.MO.BIN4,"\u228d":e.MO.BIN4,"\u228e":e.MO.BIN4,"\u228f":e.MO.REL,"\u228f\u0338":e.MO.REL,"\u2290":e.MO.REL,"\u2290\u0338":e.MO.REL,"\u2291":e.MO.REL,"\u2292":e.MO.REL,"\u2293":e.MO.BIN4,"\u2294":e.MO.BIN4,"\u2295":e.MO.BIN4,"\u2296":e.MO.BIN4,"\u2297":e.MO.BIN4,"\u2298":e.MO.BIN4,"\u2299":e.MO.BIN4,"\u229a":e.MO.BIN4,"\u229b":e.MO.BIN4,"\u229c":e.MO.BIN4,"\u229d":e.MO.BIN4,"\u229e":e.MO.BIN4,"\u229f":e.MO.BIN4,"\u22a0":e.MO.BIN4,"\u22a1":e.MO.BIN4,"\u22a2":e.MO.REL,"\u22a3":e.MO.REL,"\u22a4":e.MO.ORD55,"\u22a5":e.MO.REL,"\u22a6":e.MO.REL,"\u22a7":e.MO.REL,"\u22a8":e.MO.REL,"\u22a9":e.MO.REL,"\u22aa":e.MO.REL,"\u22ab":e.MO.REL,"\u22ac":e.MO.REL,"\u22ad":e.MO.REL,"\u22ae":e.MO.REL,"\u22af":e.MO.REL,"\u22b0":e.MO.REL,"\u22b1":e.MO.REL,"\u22b2":e.MO.REL,"\u22b3":e.MO.REL,"\u22b4":e.MO.REL,"\u22b5":e.MO.REL,"\u22b6":e.MO.REL,"\u22b7":e.MO.REL,"\u22b8":e.MO.REL,"\u22b9":e.MO.REL,"\u22ba":e.MO.BIN4,"\u22bb":e.MO.BIN4,"\u22bc":e.MO.BIN4,"\u22bd":e.MO.BIN4,"\u22be":e.MO.BIN3,"\u22bf":e.MO.BIN3,"\u22c4":e.MO.BIN4,"\u22c5":e.MO.BIN4,"\u22c6":e.MO.BIN4,"\u22c7":e.MO.BIN4,"\u22c8":e.MO.REL,"\u22c9":e.MO.BIN4,"\u22ca":e.MO.BIN4,"\u22cb":e.MO.BIN4,"\u22cc":e.MO.BIN4,"\u22cd":e.MO.REL,"\u22ce":e.MO.BIN4,"\u22cf":e.MO.BIN4,"\u22d0":e.MO.REL,"\u22d1":e.MO.REL,"\u22d2":e.MO.BIN4,"\u22d3":e.MO.BIN4,"\u22d4":e.MO.REL,"\u22d5":e.MO.REL,"\u22d6":e.MO.REL,"\u22d7":e.MO.REL,"\u22d8":e.MO.REL,"\u22d9":e.MO.REL,"\u22da":e.MO.REL,"\u22db":e.MO.REL,"\u22dc":e.MO.REL,"\u22dd":e.MO.REL,"\u22de":e.MO.REL,"\u22df":e.MO.REL,"\u22e0":e.MO.REL,"\u22e1":e.MO.REL,"\u22e2":e.MO.REL,"\u22e3":e.MO.REL,"\u22e4":e.MO.REL,"\u22e5":e.MO.REL,"\u22e6":e.MO.REL,"\u22e7":e.MO.REL,"\u22e8":e.MO.REL,"\u22e9":e.MO.REL,"\u22ea":e.MO.REL,"\u22eb":e.MO.REL,"\u22ec":e.MO.REL,"\u22ed":e.MO.REL,"\u22ee":e.MO.ORD55,"\u22ef":e.MO.INNER,"\u22f0":e.MO.REL,"\u22f1":[5,5,i.TEXCLASS.INNER,null],"\u22f2":e.MO.REL,"\u22f3":e.MO.REL,"\u22f4":e.MO.REL,"\u22f5":e.MO.REL,"\u22f6":e.MO.REL,"\u22f7":e.MO.REL,"\u22f8":e.MO.REL,"\u22f9":e.MO.REL,"\u22fa":e.MO.REL,"\u22fb":e.MO.REL,"\u22fc":e.MO.REL,"\u22fd":e.MO.REL,"\u22fe":e.MO.REL,"\u22ff":e.MO.REL,"\u2305":e.MO.BIN3,"\u2306":e.MO.BIN3,"\u2322":e.MO.REL4,"\u2323":e.MO.REL4,"\u2329":e.MO.OPEN,"\u232a":e.MO.CLOSE,"\u23aa":e.MO.ORD,"\u23af":[0,0,i.TEXCLASS.ORD,{stretchy:!0}],"\u23b0":e.MO.OPEN,"\u23b1":e.MO.CLOSE,"\u2500":e.MO.ORD,"\u25b3":e.MO.BIN4,"\u25b5":e.MO.BIN4,"\u25b9":e.MO.BIN4,"\u25bd":e.MO.BIN4,"\u25bf":e.MO.BIN4,"\u25c3":e.MO.BIN4,"\u25ef":e.MO.BIN3,"\u2660":e.MO.ORD,"\u2661":e.MO.ORD,"\u2662":e.MO.ORD,"\u2663":e.MO.ORD,"\u2758":e.MO.REL,"\u27f0":e.MO.RELSTRETCH,"\u27f1":e.MO.RELSTRETCH,"\u27f5":e.MO.WIDEREL,"\u27f6":e.MO.WIDEREL,"\u27f7":e.MO.WIDEREL,"\u27f8":e.MO.WIDEREL,"\u27f9":e.MO.WIDEREL,"\u27fa":e.MO.WIDEREL,"\u27fb":e.MO.WIDEREL,"\u27fc":e.MO.WIDEREL,"\u27fd":e.MO.WIDEREL,"\u27fe":e.MO.WIDEREL,"\u27ff":e.MO.WIDEREL,"\u2900":e.MO.RELACCENT,"\u2901":e.MO.RELACCENT,"\u2902":e.MO.RELACCENT,"\u2903":e.MO.RELACCENT,"\u2904":e.MO.RELACCENT,"\u2905":e.MO.RELACCENT,"\u2906":e.MO.RELACCENT,"\u2907":e.MO.RELACCENT,"\u2908":e.MO.REL,"\u2909":e.MO.REL,"\u290a":e.MO.RELSTRETCH,"\u290b":e.MO.RELSTRETCH,"\u290c":e.MO.WIDEREL,"\u290d":e.MO.WIDEREL,"\u290e":e.MO.WIDEREL,"\u290f":e.MO.WIDEREL,"\u2910":e.MO.WIDEREL,"\u2911":e.MO.RELACCENT,"\u2912":e.MO.RELSTRETCH,"\u2913":e.MO.RELSTRETCH,"\u2914":e.MO.RELACCENT,"\u2915":e.MO.RELACCENT,"\u2916":e.MO.RELACCENT,"\u2917":e.MO.RELACCENT,"\u2918":e.MO.RELACCENT,"\u2919":e.MO.RELACCENT,"\u291a":e.MO.RELACCENT,"\u291b":e.MO.RELACCENT,"\u291c":e.MO.RELACCENT,"\u291d":e.MO.RELACCENT,"\u291e":e.MO.RELACCENT,"\u291f":e.MO.RELACCENT,"\u2920":e.MO.RELACCENT,"\u2921":e.MO.RELSTRETCH,"\u2922":e.MO.RELSTRETCH,"\u2923":e.MO.REL,"\u2924":e.MO.REL,"\u2925":e.MO.REL,"\u2926":e.MO.REL,"\u2927":e.MO.REL,"\u2928":e.MO.REL,"\u2929":e.MO.REL,"\u292a":e.MO.REL,"\u292b":e.MO.REL,"\u292c":e.MO.REL,"\u292d":e.MO.REL,"\u292e":e.MO.REL,"\u292f":e.MO.REL,"\u2930":e.MO.REL,"\u2931":e.MO.REL,"\u2932":e.MO.REL,"\u2933":e.MO.RELACCENT,"\u2934":e.MO.REL,"\u2935":e.MO.REL,"\u2936":e.MO.REL,"\u2937":e.MO.REL,"\u2938":e.MO.REL,"\u2939":e.MO.REL,"\u293a":e.MO.RELACCENT,"\u293b":e.MO.RELACCENT,"\u293c":e.MO.RELACCENT,"\u293d":e.MO.RELACCENT,"\u293e":e.MO.REL,"\u293f":e.MO.REL,"\u2940":e.MO.REL,"\u2941":e.MO.REL,"\u2942":e.MO.RELACCENT,"\u2943":e.MO.RELACCENT,"\u2944":e.MO.RELACCENT,"\u2945":e.MO.RELACCENT,"\u2946":e.MO.RELACCENT,"\u2947":e.MO.RELACCENT,"\u2948":e.MO.RELACCENT,"\u2949":e.MO.REL,"\u294a":e.MO.RELACCENT,"\u294b":e.MO.RELACCENT,"\u294c":e.MO.REL,"\u294d":e.MO.REL,"\u294e":e.MO.WIDEREL,"\u294f":e.MO.RELSTRETCH,"\u2950":e.MO.WIDEREL,"\u2951":e.MO.RELSTRETCH,"\u2952":e.MO.WIDEREL,"\u2953":e.MO.WIDEREL,"\u2954":e.MO.RELSTRETCH,"\u2955":e.MO.RELSTRETCH,"\u2956":e.MO.RELSTRETCH,"\u2957":e.MO.RELSTRETCH,"\u2958":e.MO.RELSTRETCH,"\u2959":e.MO.RELSTRETCH,"\u295a":e.MO.WIDEREL,"\u295b":e.MO.WIDEREL,"\u295c":e.MO.RELSTRETCH,"\u295d":e.MO.RELSTRETCH,"\u295e":e.MO.WIDEREL,"\u295f":e.MO.WIDEREL,"\u2960":e.MO.RELSTRETCH,"\u2961":e.MO.RELSTRETCH,"\u2962":e.MO.RELACCENT,"\u2963":e.MO.REL,"\u2964":e.MO.RELACCENT,"\u2965":e.MO.REL,"\u2966":e.MO.RELACCENT,"\u2967":e.MO.RELACCENT,"\u2968":e.MO.RELACCENT,"\u2969":e.MO.RELACCENT,"\u296a":e.MO.RELACCENT,"\u296b":e.MO.RELACCENT,"\u296c":e.MO.RELACCENT,"\u296d":e.MO.RELACCENT,"\u296e":e.MO.RELSTRETCH,"\u296f":e.MO.RELSTRETCH,"\u2970":e.MO.RELACCENT,"\u2971":e.MO.RELACCENT,"\u2972":e.MO.RELACCENT,"\u2973":e.MO.RELACCENT,"\u2974":e.MO.RELACCENT,"\u2975":e.MO.RELACCENT,"\u2976":e.MO.RELACCENT,"\u2977":e.MO.RELACCENT,"\u2978":e.MO.RELACCENT,"\u2979":e.MO.RELACCENT,"\u297a":e.MO.RELACCENT,"\u297b":e.MO.RELACCENT,"\u297c":e.MO.RELACCENT,"\u297d":e.MO.RELACCENT,"\u297e":e.MO.REL,"\u297f":e.MO.REL,"\u2981":e.MO.BIN3,"\u2982":e.MO.BIN3,"\u2999":e.MO.BIN3,"\u299a":e.MO.BIN3,"\u299b":e.MO.BIN3,"\u299c":e.MO.BIN3,"\u299d":e.MO.BIN3,"\u299e":e.MO.BIN3,"\u299f":e.MO.BIN3,"\u29a0":e.MO.BIN3,"\u29a1":e.MO.BIN3,"\u29a2":e.MO.BIN3,"\u29a3":e.MO.BIN3,"\u29a4":e.MO.BIN3,"\u29a5":e.MO.BIN3,"\u29a6":e.MO.BIN3,"\u29a7":e.MO.BIN3,"\u29a8":e.MO.BIN3,"\u29a9":e.MO.BIN3,"\u29aa":e.MO.BIN3,"\u29ab":e.MO.BIN3,"\u29ac":e.MO.BIN3,"\u29ad":e.MO.BIN3,"\u29ae":e.MO.BIN3,"\u29af":e.MO.BIN3,"\u29b0":e.MO.BIN3,"\u29b1":e.MO.BIN3,"\u29b2":e.MO.BIN3,"\u29b3":e.MO.BIN3,"\u29b4":e.MO.BIN3,"\u29b5":e.MO.BIN3,"\u29b6":e.MO.BIN4,"\u29b7":e.MO.BIN4,"\u29b8":e.MO.BIN4,"\u29b9":e.MO.BIN4,"\u29ba":e.MO.BIN4,"\u29bb":e.MO.BIN4,"\u29bc":e.MO.BIN4,"\u29bd":e.MO.BIN4,"\u29be":e.MO.BIN4,"\u29bf":e.MO.BIN4,"\u29c0":e.MO.REL,"\u29c1":e.MO.REL,"\u29c2":e.MO.BIN3,"\u29c3":e.MO.BIN3,"\u29c4":e.MO.BIN4,"\u29c5":e.MO.BIN4,"\u29c6":e.MO.BIN4,"\u29c7":e.MO.BIN4,"\u29c8":e.MO.BIN4,"\u29c9":e.MO.BIN3,"\u29ca":e.MO.BIN3,"\u29cb":e.MO.BIN3,"\u29cc":e.MO.BIN3,"\u29cd":e.MO.BIN3,"\u29ce":e.MO.REL,"\u29cf":e.MO.REL,"\u29cf\u0338":e.MO.REL,"\u29d0":e.MO.REL,"\u29d0\u0338":e.MO.REL,"\u29d1":e.MO.REL,"\u29d2":e.MO.REL,"\u29d3":e.MO.REL,"\u29d4":e.MO.REL,"\u29d5":e.MO.REL,"\u29d6":e.MO.BIN4,"\u29d7":e.MO.BIN4,"\u29d8":e.MO.BIN3,"\u29d9":e.MO.BIN3,"\u29db":e.MO.BIN3,"\u29dc":e.MO.BIN3,"\u29dd":e.MO.BIN3,"\u29de":e.MO.REL,"\u29df":e.MO.BIN3,"\u29e0":e.MO.BIN3,"\u29e1":e.MO.REL,"\u29e2":e.MO.BIN4,"\u29e3":e.MO.REL,"\u29e4":e.MO.REL,"\u29e5":e.MO.REL,"\u29e6":e.MO.REL,"\u29e7":e.MO.BIN3,"\u29e8":e.MO.BIN3,"\u29e9":e.MO.BIN3,"\u29ea":e.MO.BIN3,"\u29eb":e.MO.BIN3,"\u29ec":e.MO.BIN3,"\u29ed":e.MO.BIN3,"\u29ee":e.MO.BIN3,"\u29ef":e.MO.BIN3,"\u29f0":e.MO.BIN3,"\u29f1":e.MO.BIN3,"\u29f2":e.MO.BIN3,"\u29f3":e.MO.BIN3,"\u29f4":e.MO.REL,"\u29f5":e.MO.BIN4,"\u29f6":e.MO.BIN4,"\u29f7":e.MO.BIN4,"\u29f8":e.MO.BIN3,"\u29f9":e.MO.BIN3,"\u29fa":e.MO.BIN3,"\u29fb":e.MO.BIN3,"\u29fe":e.MO.BIN4,"\u29ff":e.MO.BIN4,"\u2a1d":e.MO.BIN3,"\u2a1e":e.MO.BIN3,"\u2a1f":e.MO.BIN3,"\u2a20":e.MO.BIN3,"\u2a21":e.MO.BIN3,"\u2a22":e.MO.BIN4,"\u2a23":e.MO.BIN4,"\u2a24":e.MO.BIN4,"\u2a25":e.MO.BIN4,"\u2a26":e.MO.BIN4,"\u2a27":e.MO.BIN4,"\u2a28":e.MO.BIN4,"\u2a29":e.MO.BIN4,"\u2a2a":e.MO.BIN4,"\u2a2b":e.MO.BIN4,"\u2a2c":e.MO.BIN4,"\u2a2d":e.MO.BIN4,"\u2a2e":e.MO.BIN4,"\u2a2f":e.MO.BIN4,"\u2a30":e.MO.BIN4,"\u2a31":e.MO.BIN4,"\u2a32":e.MO.BIN4,"\u2a33":e.MO.BIN4,"\u2a34":e.MO.BIN4,"\u2a35":e.MO.BIN4,"\u2a36":e.MO.BIN4,"\u2a37":e.MO.BIN4,"\u2a38":e.MO.BIN4,"\u2a39":e.MO.BIN4,"\u2a3a":e.MO.BIN4,"\u2a3b":e.MO.BIN4,"\u2a3c":e.MO.BIN4,"\u2a3d":e.MO.BIN4,"\u2a3e":e.MO.BIN4,"\u2a3f":e.MO.BIN4,"\u2a40":e.MO.BIN4,"\u2a41":e.MO.BIN4,"\u2a42":e.MO.BIN4,"\u2a43":e.MO.BIN4,"\u2a44":e.MO.BIN4,"\u2a45":e.MO.BIN4,"\u2a46":e.MO.BIN4,"\u2a47":e.MO.BIN4,"\u2a48":e.MO.BIN4,"\u2a49":e.MO.BIN4,"\u2a4a":e.MO.BIN4,"\u2a4b":e.MO.BIN4,"\u2a4c":e.MO.BIN4,"\u2a4d":e.MO.BIN4,"\u2a4e":e.MO.BIN4,"\u2a4f":e.MO.BIN4,"\u2a50":e.MO.BIN4,"\u2a51":e.MO.BIN4,"\u2a52":e.MO.BIN4,"\u2a53":e.MO.BIN4,"\u2a54":e.MO.BIN4,"\u2a55":e.MO.BIN4,"\u2a56":e.MO.BIN4,"\u2a57":e.MO.BIN4,"\u2a58":e.MO.BIN4,"\u2a59":e.MO.REL,"\u2a5a":e.MO.BIN4,"\u2a5b":e.MO.BIN4,"\u2a5c":e.MO.BIN4,"\u2a5d":e.MO.BIN4,"\u2a5e":e.MO.BIN4,"\u2a5f":e.MO.BIN4,"\u2a60":e.MO.BIN4,"\u2a61":e.MO.BIN4,"\u2a62":e.MO.BIN4,"\u2a63":e.MO.BIN4,"\u2a64":e.MO.BIN4,"\u2a65":e.MO.BIN4,"\u2a66":e.MO.REL,"\u2a67":e.MO.REL,"\u2a68":e.MO.REL,"\u2a69":e.MO.REL,"\u2a6a":e.MO.REL,"\u2a6b":e.MO.REL,"\u2a6c":e.MO.REL,"\u2a6d":e.MO.REL,"\u2a6e":e.MO.REL,"\u2a6f":e.MO.REL,"\u2a70":e.MO.REL,"\u2a71":e.MO.BIN4,"\u2a72":e.MO.BIN4,"\u2a73":e.MO.REL,"\u2a74":e.MO.REL,"\u2a75":e.MO.REL,"\u2a76":e.MO.REL,"\u2a77":e.MO.REL,"\u2a78":e.MO.REL,"\u2a79":e.MO.REL,"\u2a7a":e.MO.REL,"\u2a7b":e.MO.REL,"\u2a7c":e.MO.REL,"\u2a7d":e.MO.REL,"\u2a7d\u0338":e.MO.REL,"\u2a7e":e.MO.REL,"\u2a7e\u0338":e.MO.REL,"\u2a7f":e.MO.REL,"\u2a80":e.MO.REL,"\u2a81":e.MO.REL,"\u2a82":e.MO.REL,"\u2a83":e.MO.REL,"\u2a84":e.MO.REL,"\u2a85":e.MO.REL,"\u2a86":e.MO.REL,"\u2a87":e.MO.REL,"\u2a88":e.MO.REL,"\u2a89":e.MO.REL,"\u2a8a":e.MO.REL,"\u2a8b":e.MO.REL,"\u2a8c":e.MO.REL,"\u2a8d":e.MO.REL,"\u2a8e":e.MO.REL,"\u2a8f":e.MO.REL,"\u2a90":e.MO.REL,"\u2a91":e.MO.REL,"\u2a92":e.MO.REL,"\u2a93":e.MO.REL,"\u2a94":e.MO.REL,"\u2a95":e.MO.REL,"\u2a96":e.MO.REL,"\u2a97":e.MO.REL,"\u2a98":e.MO.REL,"\u2a99":e.MO.REL,"\u2a9a":e.MO.REL,"\u2a9b":e.MO.REL,"\u2a9c":e.MO.REL,"\u2a9d":e.MO.REL,"\u2a9e":e.MO.REL,"\u2a9f":e.MO.REL,"\u2aa0":e.MO.REL,"\u2aa1":e.MO.REL,"\u2aa1\u0338":e.MO.REL,"\u2aa2":e.MO.REL,"\u2aa2\u0338":e.MO.REL,"\u2aa3":e.MO.REL,"\u2aa4":e.MO.REL,"\u2aa5":e.MO.REL,"\u2aa6":e.MO.REL,"\u2aa7":e.MO.REL,"\u2aa8":e.MO.REL,"\u2aa9":e.MO.REL,"\u2aaa":e.MO.REL,"\u2aab":e.MO.REL,"\u2aac":e.MO.REL,"\u2aad":e.MO.REL,"\u2aae":e.MO.REL,"\u2aaf":e.MO.REL,"\u2aaf\u0338":e.MO.REL,"\u2ab0":e.MO.REL,"\u2ab0\u0338":e.MO.REL,"\u2ab1":e.MO.REL,"\u2ab2":e.MO.REL,"\u2ab3":e.MO.REL,"\u2ab4":e.MO.REL,"\u2ab5":e.MO.REL,"\u2ab6":e.MO.REL,"\u2ab7":e.MO.REL,"\u2ab8":e.MO.REL,"\u2ab9":e.MO.REL,"\u2aba":e.MO.REL,"\u2abb":e.MO.REL,"\u2abc":e.MO.REL,"\u2abd":e.MO.REL,"\u2abe":e.MO.REL,"\u2abf":e.MO.REL,"\u2ac0":e.MO.REL,"\u2ac1":e.MO.REL,"\u2ac2":e.MO.REL,"\u2ac3":e.MO.REL,"\u2ac4":e.MO.REL,"\u2ac5":e.MO.REL,"\u2ac6":e.MO.REL,"\u2ac7":e.MO.REL,"\u2ac8":e.MO.REL,"\u2ac9":e.MO.REL,"\u2aca":e.MO.REL,"\u2acb":e.MO.REL,"\u2acc":e.MO.REL,"\u2acd":e.MO.REL,"\u2ace":e.MO.REL,"\u2acf":e.MO.REL,"\u2ad0":e.MO.REL,"\u2ad1":e.MO.REL,"\u2ad2":e.MO.REL,"\u2ad3":e.MO.REL,"\u2ad4":e.MO.REL,"\u2ad5":e.MO.REL,"\u2ad6":e.MO.REL,"\u2ad7":e.MO.REL,"\u2ad8":e.MO.REL,"\u2ad9":e.MO.REL,"\u2ada":e.MO.REL,"\u2adb":e.MO.REL,"\u2add":e.MO.REL,"\u2add\u0338":e.MO.REL,"\u2ade":e.MO.REL,"\u2adf":e.MO.REL,"\u2ae0":e.MO.REL,"\u2ae1":e.MO.REL,"\u2ae2":e.MO.REL,"\u2ae3":e.MO.REL,"\u2ae4":e.MO.REL,"\u2ae5":e.MO.REL,"\u2ae6":e.MO.REL,"\u2ae7":e.MO.REL,"\u2ae8":e.MO.REL,"\u2ae9":e.MO.REL,"\u2aea":e.MO.REL,"\u2aeb":e.MO.REL,"\u2aec":e.MO.REL,"\u2aed":e.MO.REL,"\u2aee":e.MO.REL,"\u2aef":e.MO.REL,"\u2af0":e.MO.REL,"\u2af1":e.MO.REL,"\u2af2":e.MO.REL,"\u2af3":e.MO.REL,"\u2af4":e.MO.BIN4,"\u2af5":e.MO.BIN4,"\u2af6":e.MO.BIN4,"\u2af7":e.MO.REL,"\u2af8":e.MO.REL,"\u2af9":e.MO.REL,"\u2afa":e.MO.REL,"\u2afb":e.MO.BIN4,"\u2afd":e.MO.BIN4,"\u2afe":e.MO.BIN3,"\u2b45":e.MO.RELSTRETCH,"\u2b46":e.MO.RELSTRETCH,"\u3008":e.MO.OPEN,"\u3009":e.MO.CLOSE,"\ufe37":e.MO.WIDEACCENT,"\ufe38":e.MO.WIDEACCENT}},e.OPTABLE.infix["^"]=e.MO.WIDEREL,e.OPTABLE.infix._=e.MO.WIDEREL,e.OPTABLE.infix["\u2adc"]=e.MO.REL},3861:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.SerializedMmlVisitor=e.toEntity=void 0;var a=r(2863);e.toEntity=function(t){return"&#x"+t.codePointAt(0).toString(16).toUpperCase()+";"};var l=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return i(r,t),r.prototype.visitTree=function(t){return this.visitNode(t,"")},r.prototype.visitTextNode=function(t,e){return this.quoteHTML(t.getText())},r.prototype.visitXMLNode=function(t,e){return e+t.getSerializedXML()},r.prototype.visitHtmlNode=function(t,e){return t.getSerializedHTML()},r.prototype.visitInferredMrowNode=function(t,e){var r,n,i=[];try{for(var s=o(t.childNodes),a=s.next();!a.done;a=s.next()){var l=a.value;i.push(this.visitNode(l,e))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return i.join("\n")},r.prototype.visitAnnotationNode=function(t,e){return e+"<annotation"+this.getAttributes(t)+">"+this.childNodeMml(t,"","")+"</annotation>"},r.prototype.visitDefault=function(t,e){var r=this.getKind(t),n=s(t.isToken||0===t.childNodes.length?["",""]:["\n",e],2),i=n[0],o=n[1],a=this.childNodeMml(t,e+" ",i);return e+"<"+r+this.getAttributes(t)+">"+(a.match(/\S/)?i+a+o:"")+"</"+r+">"},r.prototype.childNodeMml=function(t,e,r){var n,i,s="";try{for(var a=o(t.childNodes),l=a.next();!l.done;l=a.next()){var c=l.value;s+=this.visitNode(c,e)+r}}catch(t){n={error:t}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return s},r.prototype.getAttributes=function(t){var e,r,n=[],i=this.getAttributeList(t);try{for(var s=o(Object.keys(i)),a=s.next();!a.done;a=s.next()){var l=a.value,c=String(i[l]);void 0!==c&&n.push(l+'="'+this.quoteHTML(c)+'"')}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return n.length?" "+n.join(" "):""},r.prototype.quoteHTML=function(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/[\uD800-\uDBFF]./g,e.toEntity).replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g,e.toEntity)},r}(a.MmlVisitor);e.SerializedMmlVisitor=l},9084:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractOutputJax=void 0;var n=r(7173),i=r(4005),o=function(){function t(t){void 0===t&&(t={}),this.adaptor=null;var e=this.constructor;this.options=(0,n.userOptions)((0,n.defaultOptions)({},e.OPTIONS),t),this.postFilters=new i.FunctionList}return Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),t.prototype.setAdaptor=function(t){this.adaptor=t},t.prototype.initialize=function(){},t.prototype.reset=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},t.prototype.getMetrics=function(t){},t.prototype.styleSheet=function(t){return null},t.prototype.pageElements=function(t){return null},t.prototype.executeFilters=function(t,e,r,n){var i={math:e,document:r,data:n};return t.execute(i),i.data},t.NAME="generic",t.OPTIONS={},t}();e.AbstractOutputJax=o},1873:function(t,e){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractFactory=void 0;var o=function(){function t(t){var e,n;void 0===t&&(t=null),this.defaultKind="unknown",this.nodeMap=new Map,this.node={},null===t&&(t=this.constructor.defaultNodes);try{for(var i=r(Object.keys(t)),o=i.next();!o.done;o=i.next()){var s=o.value;this.setNodeClass(s,t[s])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}return t.prototype.create=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return(this.node[t]||this.node[this.defaultKind]).apply(void 0,i([],n(e),!1))},t.prototype.setNodeClass=function(t,e){this.nodeMap.set(t,e);var r=this,o=this.nodeMap.get(t);this.node[t]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new(o.bind.apply(o,i([void 0,r],n(t),!1)))}},t.prototype.getNodeClass=function(t){return this.nodeMap.get(t)},t.prototype.deleteNodeClass=function(t){this.nodeMap.delete(t),delete this.node[t]},t.prototype.nodeIsKind=function(t,e){return t instanceof this.getNodeClass(e)},t.prototype.getKinds=function(){return Array.from(this.nodeMap.keys())},t.defaultNodes={},t}();e.AbstractFactory=o},553:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)},o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEmptyNode=e.AbstractNode=void 0;var s=function(){function t(t,e,r){var n,i;void 0===e&&(e={}),void 0===r&&(r=[]),this.factory=t,this.parent=null,this.properties={},this.childNodes=[];try{for(var s=o(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value;this.setProperty(l,e[l])}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}r.length&&this.setChildren(r)}return Object.defineProperty(t.prototype,"kind",{get:function(){return"unknown"},enumerable:!1,configurable:!0}),t.prototype.setProperty=function(t,e){this.properties[t]=e},t.prototype.getProperty=function(t){return this.properties[t]},t.prototype.getPropertyNames=function(){return Object.keys(this.properties)},t.prototype.getAllProperties=function(){return this.properties},t.prototype.removeProperty=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var i=o(r),s=i.next();!s.done;s=i.next()){var a=s.value;delete this.properties[a]}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},t.prototype.isKind=function(t){return this.factory.nodeIsKind(this,t)},t.prototype.setChildren=function(t){var e,r;this.childNodes=[];try{for(var n=o(t),i=n.next();!i.done;i=n.next()){var s=i.value;this.appendChild(s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},t.prototype.appendChild=function(t){return this.childNodes.push(t),t.parent=this,t},t.prototype.replaceChild=function(t,e){var r=this.childIndex(e);return null!==r&&(this.childNodes[r]=t,t.parent=this,e.parent===this&&(e.parent=null)),t},t.prototype.removeChild=function(t){var e=this.childIndex(t);return null!==e&&(this.childNodes.splice(e,1),t.parent=null),t},t.prototype.childIndex=function(t){var e=this.childNodes.indexOf(t);return-1===e?null:e},t.prototype.copy=function(){var t,e,r=this.factory.create(this.kind);r.properties=i({},this.properties);try{for(var n=o(this.childNodes||[]),s=n.next();!s.done;s=n.next()){var a=s.value;a&&r.appendChild(a.copy())}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},t.prototype.findNodes=function(t){var e=[];return this.walkTree((function(r){r.isKind(t)&&e.push(r)})),e},t.prototype.walkTree=function(t,e){var r,n;t(this,e);try{for(var i=o(this.childNodes),s=i.next();!s.done;s=i.next()){var a=s.value;a&&a.walkTree(t,e)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e},t.prototype.toString=function(){return this.kind+"("+this.childNodes.join(",")+")"},t}();e.AbstractNode=s;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.setChildren=function(t){},e.prototype.appendChild=function(t){return t},e.prototype.replaceChild=function(t,e){return e},e.prototype.childIndex=function(t){return null},e.prototype.walkTree=function(t,e){return t(this,e),e},e.prototype.toString=function(){return this.kind},e}(s);e.AbstractEmptyNode=a},2254:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractNodeFactory=void 0;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.create=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r=[]),this.node[t](e,r)},e}(r(1873).AbstractFactory);e.AbstractNodeFactory=o},9021:function(t,e){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractVisitor=void 0;var o=function(){function t(e){var n,i;this.nodeHandlers=new Map;try{for(var o=r(e.getKinds()),s=o.next();!s.done;s=o.next()){var a=s.value,l=this[t.methodName(a)];l&&this.nodeHandlers.set(a,l)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}return t.methodName=function(t){return"visit"+(t.charAt(0).toUpperCase()+t.substr(1)).replace(/[^a-z0-9_]/gi,"_")+"Node"},t.prototype.visitTree=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return this.visitNode.apply(this,i([t],n(e),!1))},t.prototype.visitNode=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var o=this.nodeHandlers.get(t.kind)||this.visitDefault;return o.call.apply(o,i([this,t],n(e),!1))},t.prototype.visitDefault=function(t){for(var e,o,s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];if("childNodes"in t)try{for(var l=r(t.childNodes),c=l.next();!c.done;c=l.next()){var u=c.value;this.visitNode.apply(this,i([u],n(s),!1))}}catch(t){e={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(e)throw e.error}}},t.prototype.setNodeHandler=function(t,e){this.nodeHandlers.set(t,e)},t.prototype.removeNodeHandler=function(t){this.nodeHandlers.delete(t)},t}();e.AbstractVisitor=o},1822:function(t,e){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractWrapper=void 0;var n=function(){function t(t,e){this.factory=t,this.node=e}return Object.defineProperty(t.prototype,"kind",{get:function(){return this.node.kind},enumerable:!1,configurable:!0}),t.prototype.wrap=function(t){return this.factory.wrap(t)},t.prototype.walkTree=function(t,e){var n,i;if(t(this,e),"childNodes"in this)try{for(var o=r(this.childNodes),s=o.next();!s.done;s=o.next()){var a=s.value;a&&a.walkTree(t,e)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return e},t}();e.AbstractWrapper=n},7994:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractWrapperFactory=void 0;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.wrap=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return this.create.apply(this,s([t.kind,t],o(e),!1))},e}(r(1873).AbstractFactory);e.AbstractWrapperFactory=a},6308:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterHTMLHandler=void 0;var n=r(3198),i=r(4689);e.RegisterHTMLHandler=function(t){var e=new i.HTMLHandler(t);return n.mathjax.handlers.register(e),e}},8774:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLDocument=void 0;var l=r(1943),c=r(7173),u=r(2245),h=r(145),p=r(5919),d=r(6e3),f=function(t){function e(e,r,n){var i=this,o=s((0,c.separateOptions)(n,p.HTMLDomStrings.OPTIONS),2),a=o[0],l=o[1];return(i=t.call(this,e,r,a)||this).domStrings=i.options.DomStrings||new p.HTMLDomStrings(l),i.domStrings.adaptor=r,i.styles=[],i}return i(e,t),e.prototype.findPosition=function(t,e,r,n){var i,o,l=this.adaptor;try{for(var c=a(n[t]),u=c.next();!u.done;u=c.next()){var h=u.value,p=s(h,2),d=p[0],f=p[1];if(e<=f&&"#text"===l.kind(d))return{node:d,n:Math.max(e,0),delim:r};e-=f}}catch(t){i={error:t}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return{node:null,n:0,delim:r}},e.prototype.mathItem=function(t,e,r){var n=t.math,i=this.findPosition(t.n,t.start.n,t.open,r),o=this.findPosition(t.n,t.end.n,t.close,r);return new this.options.MathItem(n,e,t.display,i,o)},e.prototype.findMath=function(t){var e,r,n,i,o,l,u,h,p;if(!this.processed.isSet("findMath")){this.adaptor.document=this.document,t=(0,c.userOptions)({elements:this.options.elements||[this.adaptor.body(this.document)]},t);try{for(var d=a(this.adaptor.getElements(t.elements,this.document)),f=d.next();!f.done;f=d.next()){var m=f.value,y=s([null,null],2),g=y[0],b=y[1];try{for(var v=(n=void 0,a(this.inputJax)),M=v.next();!M.done;M=v.next()){var O=M.value,x=new this.options.MathList;if(O.processStrings){null===g&&(g=(o=s(this.domStrings.find(m),2))[0],b=o[1]);try{for(var S=(l=void 0,a(O.findMath(g))),E=S.next();!E.done;E=S.next()){var C=E.value;x.push(this.mathItem(C,O,b))}}catch(t){l={error:t}}finally{try{E&&!E.done&&(u=S.return)&&u.call(S)}finally{if(l)throw l.error}}}else try{for(var _=(h=void 0,a(O.findMath(m))),A=_.next();!A.done;A=_.next()){C=A.value;var N=new this.options.MathItem(C.math,O,C.display,C.start,C.end);x.push(N)}}catch(t){h={error:t}}finally{try{A&&!A.done&&(p=_.return)&&p.call(_)}finally{if(h)throw h.error}}this.math.merge(x)}}catch(t){n={error:t}}finally{try{M&&!M.done&&(i=v.return)&&i.call(v)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(e)throw e.error}}this.processed.set("findMath")}return this},e.prototype.updateDocument=function(){return this.processed.isSet("updateDocument")||(this.addPageElements(),this.addStyleSheet(),t.prototype.updateDocument.call(this),this.processed.set("updateDocument")),this},e.prototype.addPageElements=function(){var t=this.adaptor.body(this.document),e=this.documentPageElements();e&&this.adaptor.append(t,e)},e.prototype.addStyleSheet=function(){var t=this.documentStyleSheet(),e=this.adaptor;if(t&&!e.parent(t)){var r=e.head(this.document),n=this.findSheet(r,e.getAttribute(t,"id"));n?e.replace(t,n):e.append(r,t)}},e.prototype.findSheet=function(t,e){var r,n;if(e)try{for(var i=a(this.adaptor.tags(t,"style")),o=i.next();!o.done;o=i.next()){var s=o.value;if(this.adaptor.getAttribute(s,"id")===e)return s}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return null},e.prototype.removeFromDocument=function(t){var e,r;if(void 0===t&&(t=!1),this.processed.isSet("updateDocument"))try{for(var n=a(this.math),i=n.next();!i.done;i=n.next()){var o=i.value;o.state()>=d.STATE.INSERTED&&o.state(d.STATE.TYPESET,t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this.processed.clear("updateDocument"),this},e.prototype.documentStyleSheet=function(){return this.outputJax.styleSheet(this)},e.prototype.documentPageElements=function(){return this.outputJax.pageElements(this)},e.prototype.addStyles=function(t){this.styles.push(t)},e.prototype.getStyles=function(){return this.styles},e.KIND="HTML",e.OPTIONS=o(o({},l.AbstractMathDocument.OPTIONS),{renderActions:(0,c.expandable)(o(o({},l.AbstractMathDocument.OPTIONS.renderActions),{styles:[d.STATE.INSERTED+1,"","updateStyleSheet",!1]})),MathList:h.HTMLMathList,MathItem:u.HTMLMathItem,DomStrings:null}),e}(l.AbstractMathDocument);e.HTMLDocument=f},5919:function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLDomStrings=void 0;var i=r(7173),o=function(){function t(t){void 0===t&&(t=null);var e=this.constructor;this.options=(0,i.userOptions)((0,i.defaultOptions)({},e.OPTIONS),t),this.init(),this.getPatterns()}return t.prototype.init=function(){this.strings=[],this.string="",this.snodes=[],this.nodes=[],this.stack=[]},t.prototype.getPatterns=function(){var t=(0,i.makeArray)(this.options.skipHtmlTags),e=(0,i.makeArray)(this.options.ignoreHtmlClass),r=(0,i.makeArray)(this.options.processHtmlClass);this.skipHtmlTags=new RegExp("^(?:"+t.join("|")+")$","i"),this.ignoreHtmlClass=new RegExp("(?:^| )(?:"+e.join("|")+")(?: |$)"),this.processHtmlClass=new RegExp("(?:^| )(?:"+r+")(?: |$)")},t.prototype.pushString=function(){this.string.match(/\S/)&&(this.strings.push(this.string),this.nodes.push(this.snodes)),this.string="",this.snodes=[]},t.prototype.extendString=function(t,e){this.snodes.push([t,e.length]),this.string+=e},t.prototype.handleText=function(t,e){return e||this.extendString(t,this.adaptor.value(t)),this.adaptor.next(t)},t.prototype.handleTag=function(t,e){if(!e){var r=this.options.includeHtmlTags[this.adaptor.kind(t)];r instanceof Function?this.extendString(t,r(t,this.adaptor)):this.extendString(t,r)}return this.adaptor.next(t)},t.prototype.handleContainer=function(t,e){this.pushString();var r=this.adaptor.getAttribute(t,"class")||"",n=this.adaptor.kind(t)||"",i=this.processHtmlClass.exec(r),o=t;return!this.adaptor.firstChild(t)||this.adaptor.getAttribute(t,"data-MJX")||!i&&this.skipHtmlTags.exec(n)?o=this.adaptor.next(t):(this.adaptor.next(t)&&this.stack.push([this.adaptor.next(t),e]),o=this.adaptor.firstChild(t),e=(e||this.ignoreHtmlClass.exec(r))&&!i),[o,e]},t.prototype.handleOther=function(t,e){return this.pushString(),this.adaptor.next(t)},t.prototype.find=function(t){var e,r;this.init();for(var i=this.adaptor.next(t),o=!1,s=this.options.includeHtmlTags;t&&t!==i;){var a=this.adaptor.kind(t);"#text"===a?t=this.handleText(t,o):s.hasOwnProperty(a)?t=this.handleTag(t,o):a?(t=(e=n(this.handleContainer(t,o),2))[0],o=e[1]):t=this.handleOther(t,o),!t&&this.stack.length&&(this.pushString(),t=(r=n(this.stack.pop(),2))[0],o=r[1])}this.pushString();var l=[this.strings,this.nodes];return this.init(),l},t.OPTIONS={skipHtmlTags:["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],includeHtmlTags:(0,i.expandable)({br:"\n",wbr:"","#comment":""}),ignoreHtmlClass:"mathjax_ignore",processHtmlClass:"mathjax_process"},t}();e.HTMLDomStrings=o},4689:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLHandler=void 0;var o=r(6021),s=r(8774),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.documentClass=s.HTMLDocument,e}return i(e,t),e.prototype.handlesDocument=function(t){var 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},e.prototype.create=function(e,r){var n=this.adaptor;if("string"==typeof e)e=n.parse(e,"text/html");else if(e instanceof n.window.HTMLElement||e instanceof n.window.DocumentFragment){var i=e;e=n.parse("","text/html"),n.append(n.body(e),i)}return t.prototype.create.call(this,e,r)},e}(o.AbstractHandler);e.HTMLHandler=a},2245:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLMathItem=void 0;var o=r(6e3),s=function(t){function e(e,r,n,i,o){return void 0===n&&(n=!0),void 0===i&&(i={node:null,n:0,delim:""}),void 0===o&&(o={node:null,n:0,delim:""}),t.call(this,e,r,n,i,o)||this}return i(e,t),Object.defineProperty(e.prototype,"adaptor",{get:function(){return this.inputJax.adaptor},enumerable:!1,configurable:!0}),e.prototype.updateDocument=function(t){if(this.state()<o.STATE.INSERTED){if(this.inputJax.processStrings){var e=this.start.node;if(e===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&&(e=this.adaptor.split(this.start.node,this.start.n)),this.adaptor.replace(this.typesetRoot,e);else{for(this.start.n&&(e=this.adaptor.split(e,this.start.n));e!==this.end.node;){var r=this.adaptor.next(e);this.adaptor.remove(e),e=r}this.adaptor.insert(this.typesetRoot,e),this.end.n<this.adaptor.value(e).length&&this.adaptor.split(e,this.end.n),this.adaptor.remove(e)}}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(o.STATE.INSERTED)}},e.prototype.updateStyleSheet=function(t){t.addStyleSheet()},e.prototype.removeFromDocument=function(t){if(void 0===t&&(t=!1),this.state()>=o.STATE.TYPESET){var e=this.adaptor,r=this.start.node,n=e.text("");if(t){var i=this.start.delim+this.math+this.end.delim;if(this.inputJax.processStrings)n=e.text(i);else{var s=e.parse(i,"text/html");n=e.firstChild(e.body(s))}}e.parent(r)&&e.replace(n,r),this.start.node=this.end.node=n,this.start.n=this.end.n=0}},e}(o.AbstractMathItem);e.HTMLMathItem=s},145:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLMathList=void 0;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(r(5134).AbstractMathList);e.HTMLMathList=o},7100:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.MathML=void 0;var s=r(5829),a=r(7173),l=r(4005),c=r(3327),u=r(8366),h=function(t){function e(e){void 0===e&&(e={});var r=this,n=o((0,a.separateOptions)(e,c.FindMathML.OPTIONS,u.MathMLCompile.OPTIONS),3),i=n[0],s=n[1],h=n[2];return(r=t.call(this,i)||this).findMathML=r.options.FindMathML||new c.FindMathML(s),r.mathml=r.options.MathMLCompile||new u.MathMLCompile(h),r.mmlFilters=new l.FunctionList,r}return i(e,t),e.prototype.setAdaptor=function(e){t.prototype.setAdaptor.call(this,e),this.findMathML.adaptor=e,this.mathml.adaptor=e},e.prototype.setMmlFactory=function(e){t.prototype.setMmlFactory.call(this,e),this.mathml.setMmlFactory(e)},Object.defineProperty(e.prototype,"processStrings",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.compile=function(t,e){var r=t.start.node;if(!r||!t.end.node||this.options.forceReparse||"#text"===this.adaptor.kind(r)){var n=this.executeFilters(this.preFilters,t,e,(t.math||"<math></math>").trim()),i=this.checkForErrors(this.adaptor.parse(n,"text/"+this.options.parseAs)),o=this.adaptor.body(i);1!==this.adaptor.childNodes(o).length&&this.error("MathML must consist of a single element"),r=this.adaptor.remove(this.adaptor.firstChild(o)),"math"!==this.adaptor.kind(r).replace(/^[a-z]+:/,"")&&this.error("MathML must be formed by a <math> element, not <"+this.adaptor.kind(r)+">")}r=this.executeFilters(this.mmlFilters,t,e,r);var s=this.mathml.compile(r);return s=this.executeFilters(this.postFilters,t,e,s),t.display="block"===s.attributes.get("display"),s},e.prototype.checkForErrors=function(t){var e=this.adaptor.tags(this.adaptor.body(t),"parsererror")[0];return e&&(""===this.adaptor.textContent(e)&&this.error("Error processing MathML"),this.options.parseError.call(this,e)),t},e.prototype.error=function(t){throw new Error(t)},e.prototype.findMath=function(t){return this.findMathML.findMath(t)},e.NAME="MathML",e.OPTIONS=(0,a.defaultOptions)({parseAs:"html",forceReparse:!1,FindMathML:null,MathMLCompile:null,parseError:function(t){this.error(this.adaptor.textContent(t).replace(/\n.*/g,""))}},s.AbstractInputJax.OPTIONS),e}(s.AbstractInputJax);e.MathML=h},3327:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.FindMathML=void 0;var s=r(5382),a="http://www.w3.org/1998/Math/MathML",l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.findMath=function(t){var e=new Set;this.findMathNodes(t,e),this.findMathPrefixed(t,e);var r=this.adaptor.root(this.adaptor.document);return"html"===this.adaptor.kind(r)&&0===e.size&&this.findMathNS(t,e),this.processMath(e)},e.prototype.findMathNodes=function(t,e){var r,n;try{for(var i=o(this.adaptor.tags(t,"math")),s=i.next();!s.done;s=i.next()){var a=s.value;e.add(a)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.findMathPrefixed=function(t,e){var r,n,i,s,l=this.adaptor.root(this.adaptor.document);try{for(var c=o(this.adaptor.allAttributes(l)),u=c.next();!u.done;u=c.next()){var h=u.value;if("xmlns:"===h.name.substr(0,6)&&h.value===a){var p=h.name.substr(6);try{for(var d=(i=void 0,o(this.adaptor.tags(t,p+":math"))),f=d.next();!f.done;f=d.next()){var m=f.value;e.add(m)}}catch(t){i={error:t}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}},e.prototype.findMathNS=function(t,e){var r,n;try{for(var i=o(this.adaptor.tags(t,"math",a)),s=i.next();!s.done;s=i.next()){var l=s.value;e.add(l)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.processMath=function(t){var e,r,n=this.adaptor,i=[];try{for(var s=o(t.values()),a=s.next();!a.done;a=s.next()){var l=a.value;if("mjx-assistive-mml"!==n.kind(n.parent(l))){var c="block"===n.getAttribute(l,"display")||"display"===n.getAttribute(l,"mode"),u={node:l,n:0,delim:""},h={node:l,n:0,delim:""};i.push({math:n.outerHTML(l),start:u,end:h,display:c})}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return i},e.OPTIONS={},e}(s.AbstractFindMath);e.FindMathML=l},8366:function(t,e,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return o(e,t),e},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MathMLCompile=void 0;var l=r(8594),c=r(7173),u=s(r(6913)),h=function(){function t(t){void 0===t&&(t={});var e=this.constructor;this.options=(0,c.userOptions)((0,c.defaultOptions)({},e.OPTIONS),t)}return t.prototype.setMmlFactory=function(t){this.factory=t},t.prototype.compile=function(t){var e=this.makeNode(t);return e.verifyTree(this.options.verify),e.setInheritedAttributes({},!1,0,!1),e.walkTree(this.markMrows),e},t.prototype.makeNode=function(t){var e,r,n=this.adaptor,i=!1,o=n.kind(t).replace(/^.*:/,""),s=n.getAttribute(t,"data-mjx-texclass")||"";s&&(s=this.filterAttribute("data-mjx-texclass",s)||"");var l=s&&"mrow"===o?"TeXAtom":o;try{for(var c=a(this.filterClassList(n.allClasses(t))),u=c.next();!u.done;u=c.next()){var h=u.value;h.match(/^MJX-TeXAtom-/)&&"mrow"===o?(s=h.substr(12),l="TeXAtom"):"MJX-fixedlimits"===h&&(i=!0)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}return this.factory.getNodeClass(l)?this.createMml(l,t,s,i):this.unknownNode(l,t)},t.prototype.createMml=function(t,e,r,n){var i=this.factory.create(t);return"TeXAtom"!==t||"OP"!==r||n||(i.setProperty("movesupsub",!0),i.attributes.setInherited("movablelimits",!0)),r&&(i.texClass=l.TEXCLASS[r],i.setProperty("texClass",i.texClass)),this.addAttributes(i,e),this.checkClass(i,e),this.addChildren(i,e),i},t.prototype.unknownNode=function(t,e){return this.factory.getNodeClass("html")&&this.options.allowHtmlInTokenNodes?this.factory.create("html").setHTML(e,this.adaptor):(this.error('Unknown node type "'+t+'"'),null)},t.prototype.addAttributes=function(t,e){var r,n,i=!1;try{for(var o=a(this.adaptor.allAttributes(e)),s=o.next();!s.done;s=o.next()){var l=s.value,c=l.name,u=this.filterAttribute(c,l.value);if(null!==u&&"xmlns"!==c)if("data-mjx-"===c.substr(0,9))switch(c.substr(9)){case"alternate":t.setProperty("variantForm",!0);break;case"variant":t.attributes.set("mathvariant",u),i=!0;break;case"smallmatrix":t.setProperty("scriptlevel",1),t.setProperty("useHeight",!1);break;case"accent":t.setProperty("mathaccent","true"===u);break;case"auto-op":t.setProperty("autoOP","true"===u);break;case"script-align":t.setProperty("scriptalign",u)}else if("class"!==c){var h=u.toLowerCase();"true"===h||"false"===h?t.attributes.set(c,"true"===h):i&&"mathvariant"===c||t.attributes.set(c,u)}}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},t.prototype.filterAttribute=function(t,e){return e},t.prototype.filterClassList=function(t){return t},t.prototype.addChildren=function(t,e){var r,n;if(0!==t.arity){var i=this.adaptor;try{for(var o=a(i.childNodes(e)),s=o.next();!s.done;s=o.next()){var l=s.value,c=i.kind(l);if("#comment"!==c)if("#text"===c)this.addText(t,l);else if(t.isKind("annotation-xml"))t.appendChild(this.factory.create("XML").setXML(l,i));else{var u=t.appendChild(this.makeNode(l));0===u.arity&&i.childNodes(l).length&&!u.isKind("html")&&(this.options.fixMisplacedChildren?this.addChildren(t,l):u.mError("There should not be children for "+u.kind+" nodes",this.options.verify,!0))}}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.isToken&&this.trimSpace(t)}},t.prototype.addText=function(t,e){var r=this.adaptor.value(e);(t.isToken||t.getProperty("isChars"))&&t.arity?(t.isToken&&(r=u.translate(r),r=this.normalizeSpace(r)),t.appendChild(this.factory.create("text").setText(r))):r.match(/\S/)&&this.error('Unexpected text node "'+r+'"')},t.prototype.checkClass=function(t,e){var r,n,i=[];try{for(var o=a(this.filterClassList(this.adaptor.allClasses(e))),s=o.next();!s.done;s=o.next()){var l=s.value;"MJX-"===l.substr(0,4)?"MJX-variant"===l?t.setProperty("variantForm",!0):"MJX-TeXAtom"!==l.substr(0,11)&&t.attributes.set("mathvariant",this.fixCalligraphic(l.substr(3))):i.push(l)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}i.length&&t.attributes.set("class",i.join(" "))},t.prototype.fixCalligraphic=function(t){return t.replace(/caligraphic/,"calligraphic")},t.prototype.markMrows=function(t){if(t.isKind("mrow")&&!t.isInferred&&t.childNodes.length>=2){var e=t.childNodes[0],r=t.childNodes[t.childNodes.length-1];e.isKind("mo")&&e.attributes.get("fence")&&e.attributes.get("stretchy")&&r.isKind("mo")&&r.attributes.get("fence")&&r.attributes.get("stretchy")&&(e.childNodes.length&&t.setProperty("open",e.getText()),r.childNodes.length&&t.setProperty("close",r.getText()))}},t.prototype.normalizeSpace=function(t){return t.replace(/[\t\n\r]/g," ").replace(/ +/g," ")},t.prototype.trimSpace=function(t){var e=t.childNodes[0];e&&(e.isKind("text")&&e.setText(e.getText().replace(/^ +/,"")),(e=t.childNodes[t.childNodes.length-1]).isKind("text")&&e.setText(e.getText().replace(/ +$/,"")))},t.prototype.error=function(t){throw new Error(t)},t.OPTIONS={MmlFactory:null,allowHtmlInTokenNodes:!1,fixMisplacedChildren:!0,verify:n({},l.AbstractMmlNode.verifyDefaults),translateEntities:!0},t}();e.MathMLCompile=h},3031:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.TeX=void 0;var l=r(5829),c=r(7173),u=r(9019),h=a(r(5275)),p=a(r(4454)),d=a(r(161)),f=a(r(2085)),m=a(r(253)),y=r(3983),g=r(6181);r(7763);var b=function(t){function e(r){void 0===r&&(r={});var n=this,i=s((0,c.separateOptions)(r,e.OPTIONS,u.FindTeX.OPTIONS),3),o=i[0],a=i[1],l=i[2];(n=t.call(this,a)||this).findTeX=n.options.FindTeX||new u.FindTeX(l);var p=n.options.packages,d=n.configuration=e.configure(p),f=n._parseOptions=new m.default(d,[n.options,y.TagsFactory.OPTIONS]);return(0,c.userOptions)(f.options,o),d.config(n),e.tags(f,d),n.postFilters.add(h.default.cleanSubSup,-6),n.postFilters.add(h.default.setInherited,-5),n.postFilters.add(h.default.moveLimits,-4),n.postFilters.add(h.default.cleanStretchy,-3),n.postFilters.add(h.default.cleanAttributes,-2),n.postFilters.add(h.default.combineRelations,-1),n}return i(e,t),e.configure=function(t){var e=new g.ParserConfiguration(t,["tex"]);return e.init(),e},e.tags=function(t,e){y.TagsFactory.addTags(e.tags),y.TagsFactory.setDefault(t.options.tags),t.tags=y.TagsFactory.getDefault(),t.tags.configuration=t},e.prototype.setMmlFactory=function(e){t.prototype.setMmlFactory.call(this,e),this._parseOptions.nodeFactory.setMmlFactory(e)},Object.defineProperty(e.prototype,"parseOptions",{get:function(){return this._parseOptions},enumerable:!1,configurable:!0}),e.prototype.reset=function(t){void 0===t&&(t=0),this.parseOptions.tags.reset(t)},e.prototype.compile=function(t,e){this.parseOptions.clear(),this.executeFilters(this.preFilters,t,e,this.parseOptions);var r,n,i,o=t.display;this.latex=t.math,this.parseOptions.tags.startEquation(t);try{r=(i=new d.default(this.latex,{display:o,isInner:!1},this.parseOptions)).mml(),n=i.stack.global}catch(t){if(!(t instanceof f.default))throw t;this.parseOptions.error=!0,r=this.options.formatError(this,t)}return r=this.parseOptions.nodeFactory.create("node","math",[r]),(null==n?void 0:n.indentalign)&&p.default.setAttribute(r,"indentalign",n.indentalign),o&&p.default.setAttribute(r,"display","block"),this.parseOptions.tags.finishEquation(t),this.parseOptions.root=r,this.executeFilters(this.postFilters,t,e,this.parseOptions),i&&i.stack.env.hsize&&(p.default.setAttribute(r,"maxwidth",i.stack.env.hsize),p.default.setAttribute(r,"overflow","linebreak")),this.mathNode=this.parseOptions.root,this.mathNode},e.prototype.findMath=function(t){return this.findTeX.findMath(t)},e.prototype.formatError=function(t){var e=t.message.replace(/\n.*/,"");return this.parseOptions.nodeFactory.create("error",e,t.id,this.latex)},e.NAME="TeX",e.OPTIONS=o(o({},l.AbstractInputJax.OPTIONS),{FindTeX:null,packages:["base"],digits:/^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)?|\.[0-9]+)/,maxBuffer:5120,formatError:function(t,e){return t.formatError(e)}}),e}(l.AbstractInputJax);e.TeX=b},2102:function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ColumnParser=void 0;var s=o(r(2085)),a=r(7173),l=o(r(5174)),c=r(8594),u=function(){function t(){var t=this;this.columnHandler={l:function(t){return t.calign[t.j++]="left"},c:function(t){return t.calign[t.j++]="center"},r:function(t){return t.calign[t.j++]="right"},p:function(e){return t.getColumn(e,c.TEXCLASS.VTOP)},m:function(e){return t.getColumn(e,c.TEXCLASS.VCENTER)},b:function(e){return t.getColumn(e,c.TEXCLASS.VBOX)},w:function(e){return t.getColumn(e,c.TEXCLASS.VTOP,"")},W:function(e){return t.getColumn(e,c.TEXCLASS.VTOP,"")},"|":function(e){return t.addRule(e,"solid")},":":function(e){return t.addRule(e,"dashed")},">":function(e){return e.cstart[e.j]=(e.cstart[e.j]||"")+t.getBraces(e)},"<":function(e){return e.cend[e.j-1]=(e.cend[e.j-1]||"")+t.getBraces(e)},"@":function(e){return t.addAt(e,t.getBraces(e))},"!":function(e){return t.addBang(e,t.getBraces(e))},P:function(e){return t.macroColumn(e,">{$}p{#1}<{$}",1)},M:function(e){return t.macroColumn(e,">{$}m{#1}<{$}",1)},B:function(e){return t.macroColumn(e,">{$}b{#1}<{$}",1)}," ":function(t){}},this.MAXCOLUMNS=1e4}return t.prototype.process=function(t,e,r){for(var o={parser:t,template:e,i:0,j:0,c:"",cwidth:[],calign:[],cspace:[],clines:[],cstart:r.cstart,cend:r.cend,ralign:r.ralign,cextra:r.cextra},a=0;o.i<o.template.length;){if(a++>this.MAXCOLUMNS)throw new s.default("MaxColumns","Too many column specifiers (perhaps looping column definitions?)");var l=o.c=String.fromCodePoint(o.template.codePointAt(o.i));if(o.i+=l.length,!this.columnHandler.hasOwnProperty(l))throw new s.default("BadPreamToken","Illegal pream-token (%1)",l);this.columnHandler[l](o)}var c=o.calign;if(r.arraydef.columnalign=c.join(" "),o.cwidth.length){var u=i([],n(o.cwidth),!1);u.length<c.length&&u.push("auto"),r.arraydef.columnwidth=u.map((function(t){return t||"auto"})).join(" ")}o.cspace.length&&((p=i([],n(o.cspace),!1)).length<c.length&&p.push("1em"),r.arraydef.columnspacing=p.slice(1).map((function(t){return t||"1em"})).join(" "));if(o.clines.length){var h=i([],n(o.clines),!1);h[0]&&(r.frame.push("left"),r.dashed="dashed"===h[0]),h.length>c.length?(r.frame.push("right"),h.pop()):h.length<c.length&&h.push("none"),r.arraydef.columnlines=h.slice(1).map((function(t){return t||"none"})).join(" ")}if(o.cextra[0]||o.cextra[c.length-1]){var p=o.cspace;r.arraydef["data-array-padding"]=[p[0]||".5em",p[c.length-1]||".5em"].join(" ")}},t.prototype.getColumn=function(t,e,r){void 0===r&&(r="left"),t.calign[t.j]=r||this.getAlign(t),t.cwidth[t.j]=this.getDimen(t),t.ralign[t.j]=[e,t.cwidth[t.j],t.calign[t.j]],t.j++},t.prototype.getDimen=function(t){var e=this.getBraces(t)||"";if(!l.default.matchDimen(e)[0])throw new s.default("MissingColumnDimOrUnits","Missing dimension or its units for %1 column declaration",t.c);return e},t.prototype.getAlign=function(t){var e=this.getBraces(t);return(0,a.lookup)(e.toLowerCase(),{l:"left",c:"center",r:"right"},"")},t.prototype.getBraces=function(t){for(;" "===t.template[t.i];)t.i++;if(t.i>t.template.length)throw new s.default("MissingArgForColumn","Missing argument for %1 column declaration",t.c);if("{"!==t.template[t.i])return t.template[t.i++];for(var e=++t.i,r=1;t.i<t.template.length;)switch(t.template.charAt(t.i++)){case"\\":t.i++;break;case"{":r++;break;case"}":if(0==--r)return t.template.slice(e,t.i-1)}throw new s.default("MissingCloseBrace","Missing close brace")},t.prototype.macroColumn=function(t,e,r){for(var n=[];r>0&&r--;)n.push(this.getBraces(t));t.template=l.default.substituteArgs(t.parser,n,e)+t.template.slice(t.i),t.i=0},t.prototype.addRule=function(t,e){t.clines[t.j]&&this.addAt(t,"\\,"),t.clines[t.j]=e,"0"===t.cspace[t.j]&&(t.cstart[t.j]="\\hspace{.5em}")},t.prototype.addAt=function(t,e){var r=t.cstart,n=t.cspace,i=t.j;t.cextra[i]=!0,t.calign[i]="center",t.clines[i]&&(".5em"===n[i]?r[i-1]+="\\hspace{.25em}":n[i]||(t.cend[i-1]=(t.cend[i-1]||"")+"\\hspace{.5em}")),r[i]=e,n[i]="0",n[++t.j]="0"},t.prototype.addBang=function(t,e){var r=t.cstart,n=t.cspace,i=t.j;t.cextra[i]=!0,t.calign[i]="center",r[i]=("0"===n[i]&&t.clines[i]?"\\hspace{.25em}":"")+e,n[i]||(n[i]=".5em"),n[++t.j]=".5em"},t}();e.ColumnParser=u},6181:function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserConfiguration=e.ConfigurationHandler=e.Configuration=void 0;var o,s=r(7173),a=r(6685),l=r(4005),c=r(4372),u=r(3983),h=function(){function t(t,e,r,n,i,o,s,a,l,c,u,h,p){void 0===e&&(e={}),void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i={}),void 0===o&&(o={}),void 0===s&&(s={}),void 0===a&&(a=[]),void 0===l&&(l=[]),void 0===c&&(c=null),void 0===u&&(u=null),this.name=t,this.handler=e,this.fallback=r,this.items=n,this.tags=i,this.options=o,this.nodes=s,this.preprocessors=a,this.postprocessors=l,this.initMethod=c,this.configMethod=u,this.priority=h,this.parser=p,this.handler=Object.assign({character:[],delimiter:[],macro:[],environment:[]},e)}return t.makeProcessor=function(t,e){return Array.isArray(t)?t:[t,e]},t._create=function(e,r){var n=this;void 0===r&&(r={});var i=r.priority||c.PrioritizedList.DEFAULTPRIORITY,o=r.init?this.makeProcessor(r.init,i):null,s=r.config?this.makeProcessor(r.config,i):null,a=(r.preprocessors||[]).map((function(t){return n.makeProcessor(t,i)})),l=(r.postprocessors||[]).map((function(t){return n.makeProcessor(t,i)})),u=r.parser||"tex";return new t(e,r.handler||{},r.fallback||{},r.items||{},r.tags||{},r.options||{},r.nodes||{},a,l,o,s,i,u)},t.create=function(e,r){void 0===r&&(r={});var n=t._create(e,r);return o.set(e,n),n},t.local=function(e){return void 0===e&&(e={}),t._create("",e)},Object.defineProperty(t.prototype,"init",{get:function(){return this.initMethod?this.initMethod[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"config",{get:function(){return this.configMethod?this.configMethod[0]:null},enumerable:!1,configurable:!0}),t}();e.Configuration=h,function(t){var e=new Map;t.set=function(t,r){e.set(t,r)},t.get=function(t){return e.get(t)},t.keys=function(){return e.keys()}}(o=e.ConfigurationHandler||(e.ConfigurationHandler={}));var p=function(){function t(t,e){var r,i,o,s;void 0===e&&(e=["tex"]),this.initMethod=new l.FunctionList,this.configMethod=new l.FunctionList,this.configurations=new c.PrioritizedList,this.parsers=[],this.handlers=new a.SubHandlers,this.items={},this.tags={},this.options={},this.nodes={},this.parsers=e;try{for(var u=n(t.slice().reverse()),h=u.next();!h.done;h=u.next()){var p=h.value;this.addPackage(p)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}try{for(var d=n(this.configurations),f=d.next();!f.done;f=d.next()){var m=f.value,y=m.item,g=m.priority;this.append(y,g)}}catch(t){o={error:t}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(o)throw o.error}}}return t.prototype.init=function(){this.initMethod.execute(this)},t.prototype.config=function(t){var e,r;this.configMethod.execute(this,t);try{for(var i=n(this.configurations),o=i.next();!o.done;o=i.next()){var s=o.value;this.addFilters(t,s.item)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}},t.prototype.addPackage=function(t){var e="string"==typeof t?t:t[0],r=this.getPackage(e);r&&this.configurations.add(r,"string"==typeof t?r.priority:t[1])},t.prototype.add=function(t,e,r){var i,o;void 0===r&&(r={});var a=this.getPackage(t);this.append(a),this.configurations.add(a,a.priority),this.init();var l=e.parseOptions;l.nodeFactory.setCreators(a.nodes);try{for(var c=n(Object.keys(a.items)),h=c.next();!h.done;h=c.next()){var p=h.value;l.itemFactory.setNodeClass(p,a.items[p])}}catch(t){i={error:t}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}u.TagsFactory.addTags(a.tags),(0,s.defaultOptions)(l.options,a.options),(0,s.userOptions)(l.options,r),this.addFilters(e,a),a.config&&a.config(this,e)},t.prototype.getPackage=function(t){var e=o.get(t);if(e&&this.parsers.indexOf(e.parser)<0)throw Error("Package ".concat(t," doesn't target the proper parser"));return e},t.prototype.append=function(t,e){e=e||t.priority,t.initMethod&&this.initMethod.add(t.initMethod[0],t.initMethod[1]),t.configMethod&&this.configMethod.add(t.configMethod[0],t.configMethod[1]),this.handlers.add(t.handler,t.fallback,e),Object.assign(this.items,t.items),Object.assign(this.tags,t.tags),(0,s.defaultOptions)(this.options,t.options),Object.assign(this.nodes,t.nodes)},t.prototype.addFilters=function(t,e){var r,o,s,a;try{for(var l=n(e.preprocessors),c=l.next();!c.done;c=l.next()){var u=i(c.value,2),h=u[0],p=u[1];t.preFilters.add(h,p)}}catch(t){r={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}try{for(var d=n(e.postprocessors),f=d.next();!f.done;f=d.next()){var m=i(f.value,2),y=m[0];p=m[1];t.postFilters.add(y,p)}}catch(t){s={error:t}}finally{try{f&&!f.done&&(a=d.return)&&a.call(d)}finally{if(s)throw s.error}}},t}();e.ParserConfiguration=p},5275:function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o,s=r(8594),a=i(r(4454));!function(t){t.cleanStretchy=function(t){var e,r,i=t.data;try{for(var o=n(i.getList("fixStretchy")),s=o.next();!s.done;s=o.next()){var l=s.value;if(a.default.getProperty(l,"fixStretchy")){var c=a.default.getForm(l);c&&c[3]&&c[3].stretchy&&a.default.setAttribute(l,"stretchy",!1);var u=l.parent;if(!(a.default.getTexClass(l)||c&&c[2])){var h=i.nodeFactory.create("node","TeXAtom",[l]);u.replaceChild(h,l),h.inheritAttributesFrom(l)}a.default.removeProperties(l,"fixStretchy")}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},t.cleanAttributes=function(t){t.data.root.walkTree((function(t,e){var r,i,o=t.attributes;if(o){var s=new Set((o.get("mjx-keep-attrs")||"").split(/ /));delete o.getAllAttributes()["mjx-keep-attrs"];try{for(var a=n(o.getExplicitNames()),l=a.next();!l.done;l=a.next()){var c=l.value;s.has(c)||o.attributes[c]!==t.attributes.getInherited(c)||delete o.attributes[c]}}catch(t){r={error:t}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}}}),{})},t.combineRelations=function(t){var i,o,l,c,u=[];try{for(var h=n(t.data.getList("mo")),p=h.next();!p.done;p=h.next()){var d=p.value;if(!d.getProperty("relationsCombined")&&d.parent&&(!d.parent||a.default.isType(d.parent,"mrow"))&&a.default.getTexClass(d)===s.TEXCLASS.REL){for(var f=d.parent,m=void 0,y=f.childNodes,g=y.indexOf(d)+1,b=a.default.getProperty(d,"variantForm");g<y.length&&(m=y[g])&&a.default.isType(m,"mo")&&a.default.getTexClass(m)===s.TEXCLASS.REL;){if(b!==a.default.getProperty(m,"variantForm")||!r(d,m)){null==d.attributes.getExplicit("rspace")&&a.default.setAttribute(d,"rspace","0pt"),null==m.attributes.getExplicit("lspace")&&a.default.setAttribute(m,"lspace","0pt");break}a.default.appendChildren(d,a.default.getChildren(m)),e(["stretchy","rspace"],d,m);try{for(var v=(l=void 0,n(m.getPropertyNames())),M=v.next();!M.done;M=v.next()){var O=M.value;d.setProperty(O,m.getProperty(O))}}catch(t){l={error:t}}finally{try{M&&!M.done&&(c=v.return)&&c.call(v)}finally{if(l)throw l.error}}y.splice(g,1),u.push(m),m.parent=null,m.setProperty("relationsCombined",!0)}d.attributes.setInherited("form",d.getForms()[0])}}}catch(t){i={error:t}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}t.data.removeFromList("mo",u)};var e=function(t,e,r){var n=e.attributes,i=r.attributes;t.forEach((function(t){var e=i.getExplicit(t);null!=e&&n.set(t,e)}))},r=function(t,e){var r,i,o=function(t,e){return t.getExplicitNames().filter((function(r){return r!==e&&("stretchy"!==r||t.getExplicit("stretchy"))}))},s=t.attributes,a=e.attributes,l=o(s,"lspace"),c=o(a,"rspace");if(l.length!==c.length)return!1;try{for(var u=n(l),h=u.next();!h.done;h=u.next()){var p=h.value;if(s.getExplicit(p)!==a.getExplicit(p))return!1}}catch(t){r={error:t}}finally{try{h&&!h.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return!0},i=function(t,e,r){var i,o,s=[];try{for(var l=n(t.getList("m"+e+r)),c=l.next();!c.done;c=l.next()){var u=c.value,h=u.childNodes;if(!h[u[e]]||!h[u[r]]){var p=u.parent,d=h[u[e]]?t.nodeFactory.create("node","m"+e,[h[u.base],h[u[e]]]):t.nodeFactory.create("node","m"+r,[h[u.base],h[u[r]]]);a.default.copyAttributes(u,d),p?p.replaceChild(d,u):t.root=d,s.push(u)}}}catch(t){i={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}t.removeFromList("m"+e+r,s)};t.cleanSubSup=function(t){var e=t.data;e.error||(i(e,"sub","sup"),i(e,"under","over"))};var o=function(t,e,r){var i,o,s=[];try{for(var l=n(t.getList(e)),c=l.next();!c.done;c=l.next()){var u=c.value;if(!u.attributes.get("displaystyle")){var h=u.childNodes[u.base],p=h.coreMO();if(h.getProperty("movablelimits")&&!p.attributes.getExplicit("movablelimits")){var d=t.nodeFactory.create("node",r,u.childNodes);a.default.copyAttributes(u,d),u.parent?u.parent.replaceChild(d,u):t.root=d,s.push(u)}}}}catch(t){i={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}t.removeFromList(e,s)};t.moveLimits=function(t){var e=t.data;o(e,"munderover","msubsup"),o(e,"munder","msub"),o(e,"mover","msup")},t.setInherited=function(t){t.data.root.setInheritedAttributes({},t.math.display,0,!1)}}(o||(o={})),e.default=o},9019:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.FindTeX=void 0;var s=r(5382),a=r(6707),l=r(6e3),c=function(t){function e(e){var r=t.call(this,e)||this;return r.getPatterns(),r}return i(e,t),e.prototype.getPatterns=function(){var t=this,e=this.options,r=[],n=[],i=[];this.end={},this.env=this.sub=0;var o=1;e.inlineMath.forEach((function(e){return t.addPattern(r,e,!1)})),e.displayMath.forEach((function(e){return t.addPattern(r,e,!0)})),r.length&&n.push(r.sort(a.sortLength).join("|")),e.processEnvironments&&(n.push("\\\\begin\\s*\\{([^}]*)\\}"),this.env=o,o++),e.processEscapes&&i.push("\\\\([\\\\$])"),e.processRefs&&i.push("(\\\\(?:eq)?ref\\s*\\{[^}]*\\})"),i.length&&(n.push("("+i.join("|")+")"),this.sub=o),this.start=new RegExp(n.join("|"),"g"),this.hasPatterns=n.length>0},e.prototype.addPattern=function(t,e,r){var n=o(e,2),i=n[0],s=n[1];t.push((0,a.quotePattern)(i)),this.end[i]=[s,r,this.endPattern(s)]},e.prototype.endPattern=function(t,e){return new RegExp((e||(0,a.quotePattern)(t))+"|\\\\(?:[a-zA-Z]|.)|[{}]","g")},e.prototype.findEnd=function(t,e,r,n){for(var i,s=o(n,3),a=s[0],c=s[1],u=s[2],h=u.lastIndex=r.index+r[0].length,p=0;i=u.exec(t);){if((i[1]||i[0])===a&&0===p)return(0,l.protoItem)(r[0],t.substr(h,i.index-h),i[0],e,r.index,i.index+i[0].length,c);"{"===i[0]?p++:"}"===i[0]&&p&&p--}return null},e.prototype.findMathInString=function(t,e,r){var n,i;for(this.start.lastIndex=0;n=this.start.exec(r);){if(void 0!==n[this.env]&&this.env){var o="\\\\end\\s*(\\{"+(0,a.quotePattern)(n[this.env])+"\\})";(i=this.findEnd(r,e,n,["{"+n[this.env]+"}",!0,this.endPattern(null,o)]))&&(i.math=i.open+i.math+i.close,i.open=i.close="")}else if(void 0!==n[this.sub]&&this.sub){var s=n[this.sub];o=n.index+n[this.sub].length;i=2===s.length?(0,l.protoItem)("",s.substr(1),"",e,n.index,o):(0,l.protoItem)("",s,"",e,n.index,o,!1)}else i=this.findEnd(r,e,n,this.end[n[0]]);i&&(t.push(i),this.start.lastIndex=i.end.n)}},e.prototype.findMath=function(t){var e=[];if(this.hasPatterns)for(var r=0,n=t.length;r<n;r++)this.findMathInString(e,r,t[r]);return e},e.OPTIONS={inlineMath:[["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],processEscapes:!0,processEnvironments:!0,processRefs:!0},e}(s.AbstractFindMath);e.FindTeX=c},6685:function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.SubHandlers=e.SubHandler=e.MapHandler=void 0;var o,s=r(4372),a=r(4005);!function(t){var e=new Map;t.register=function(t){e.set(t.name,t)},t.getMap=function(t){return e.get(t)}}(o=e.MapHandler||(e.MapHandler={}));var l=function(){function t(){this._configuration=new s.PrioritizedList,this._fallback=new a.FunctionList}return t.prototype.add=function(t,e,r){var i,a;void 0===r&&(r=s.PrioritizedList.DEFAULTPRIORITY);try{for(var l=n(t.slice().reverse()),c=l.next();!c.done;c=l.next()){var u=c.value,h=o.getMap(u);if(!h)return void this.warn("Configuration "+u+" not found! Omitted.");this._configuration.add(h,r)}}catch(t){i={error:t}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}e&&this._fallback.add(e,r)},t.prototype.parse=function(t){var e,r;try{for(var o=n(this._configuration),s=o.next();!s.done;s=o.next()){var a=s.value.item.parse(t);if(a)return a}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}var l=i(t,2),c=l[0],u=l[1];Array.from(this._fallback)[0].item(c,u)},t.prototype.lookup=function(t){var e=this.applicable(t);return e?e.lookup(t):null},t.prototype.contains=function(t){return!!this.applicable(t)},t.prototype.toString=function(){var t,e,r=[];try{for(var i=n(this._configuration),o=i.next();!o.done;o=i.next()){var s=o.value.item;r.push(s.name)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return r.join(", ")},t.prototype.applicable=function(t){var e,r;try{for(var i=n(this._configuration),o=i.next();!o.done;o=i.next()){var s=o.value.item;if(s.contains(t))return s}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return null},t.prototype.retrieve=function(t){var e,r;try{for(var i=n(this._configuration),o=i.next();!o.done;o=i.next()){var s=o.value.item;if(s.name===t)return s}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return null},t.prototype.warn=function(t){console.log("TexParser Warning: "+t)},t}();e.SubHandler=l;var c=function(){function t(){this.map=new Map}return t.prototype.add=function(t,e,r){var i,o;void 0===r&&(r=s.PrioritizedList.DEFAULTPRIORITY);try{for(var a=n(Object.keys(t)),c=a.next();!c.done;c=a.next()){var u=c.value,h=this.get(u);h||(h=new l,this.set(u,h)),h.add(t[u],e[u],r)}}catch(t){i={error:t}}finally{try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}},t.prototype.set=function(t,e){this.map.set(t,e)},t.prototype.get=function(t){return this.map.get(t)},t.prototype.retrieve=function(t){var e,r;try{for(var i=n(this.map.values()),o=i.next();!o.done;o=i.next()){var s=o.value.retrieve(t);if(s)return s}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return null},t.prototype.keys=function(){return this.map.keys()},t}();e.SubHandlers=c},2533:function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.NodeFactory=void 0;var s=o(r(4454)),a=function(){function t(){this.mmlFactory=null,this.factory={node:t.createNode,token:t.createToken,text:t.createText,error:t.createError}}return t.createNode=function(t,e,r,n,i){void 0===r&&(r=[]),void 0===n&&(n={});var o=t.mmlFactory.create(e);return o.setChildren(r),i&&o.appendChild(i),s.default.setProperties(o,n),o},t.createToken=function(t,e,r,n){void 0===r&&(r={}),void 0===n&&(n="");var i=t.create("text",n);return t.create("node",e,[],r,i)},t.createText=function(t,e){return null==e?null:t.mmlFactory.create("text").setText(e)},t.createError=function(t,e){var r=t.create("text",e),n=t.create("node","mtext",[],{},r);return t.create("node","merror",[n],{"data-mjx-error":e})},t.prototype.setMmlFactory=function(t){this.mmlFactory=t},t.prototype.set=function(t,e){this.factory[t]=e},t.prototype.setCreators=function(t){for(var e in t)this.set(e,t[e])},t.prototype.create=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var o=this.factory[t]||this.factory.node,s=o.apply(void 0,i([this,e[0]],n(e.slice(1)),!1));return"node"===t&&this.configuration.addNode(e[0],s),s},t.prototype.get=function(t){return this.factory[t]},t}();e.NodeFactory=a},4454:function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},o=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0});var s,a=r(8594),l=r(91);!function(t){var e=new Map([["autoOP",!0],["fnOP",!0],["movesupsub",!0],["subsupOK",!0],["texprimestyle",!0],["useHeight",!0],["variantForm",!0],["withDelims",!0],["mathaccent",!0],["open",!0],["close",!0]]);function r(t,r){var i,o;try{for(var s=n(Object.keys(r)),a=s.next();!a.done;a=s.next()){var l=a.value,c=r[l];"texClass"===l?(t.texClass=c,t.setProperty(l,c)):"movablelimits"===l?(t.setProperty("movablelimits",c),(t.isKind("mo")||t.isKind("mstyle"))&&t.attributes.set("movablelimits",c)):"inferred"===l||(e.has(l)?t.setProperty(l,c):t.attributes.set(l,c))}}catch(t){i={error:t}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}function s(t,e,r){t.childNodes[e]=r,r&&(r.parent=t)}function c(t,e){return t.isKind(e)}t.createEntity=function(t){return String.fromCodePoint(parseInt(t,16))},t.getChildren=function(t){return t.childNodes},t.getText=function(t){return t.getText()},t.appendChildren=function(t,e){var r,i;try{for(var o=n(e),s=o.next();!s.done;s=o.next()){var a=s.value;t.appendChild(a)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}},t.setAttribute=function(t,e,r){t.attributes.set(e,r)},t.setProperty=function(t,e,r){t.setProperty(e,r)},t.setProperties=r,t.getProperty=function(t,e){return t.getProperty(e)},t.getAttribute=function(t,e){return t.attributes.get(e)},t.removeAttribute=function(t,e){delete t.attributes.getAllAttributes()[e]},t.removeProperties=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];t.removeProperty.apply(t,o([],i(e),!1))},t.getChildAt=function(t,e){return t.childNodes[e]},t.setChild=s,t.copyChildren=function(t,e){for(var r=t.childNodes,n=0;n<r.length;n++)s(e,n,r[n])},t.copyAttributes=function(t,e){e.attributes=t.attributes,r(e,t.getAllProperties())},t.isType=c,t.isEmbellished=function(t){return t.isEmbellished},t.getTexClass=function(t){return t.texClass},t.getCoreMO=function(t){return t.coreMO()},t.isNode=function(t){return t instanceof a.AbstractMmlNode||t instanceof a.AbstractMmlEmptyNode},t.isInferred=function(t){return t.isInferred},t.getForm=function(t){var e,r;if(!c(t,"mo"))return null;var i=t,o=i.getForms();try{for(var s=n(o),a=s.next();!a.done;a=s.next()){var l=a.value,u=this.getOp(i,l);if(u)return u}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return null},t.getOp=function(t,e){return void 0===e&&(e="infix"),l.MmlMo.OPTABLE[e][t.getText()]||null}}(s||(s={})),e.default=s},4214:function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s,a=o(r(4454)),l=r(3431),c=o(r(5174));!function(t){t.variable=function(t,e){var r=c.default.getFontDef(t),n=t.stack.env;n.multiLetterIdentifiers&&""!==n.font&&(e=t.string.substr(t.i-1).match(n.multiLetterIdentifiers)[0],t.i+=e.length-1,r.mathvariant===l.TexConstant.Variant.NORMAL&&n.noAutoOP&&e.length>1&&(r.autoOP=!1));var i=t.create("token","mi",r,e);t.Push(i)},t.digit=function(t,e){var r,n=t.configuration.options.digits,i=t.string.slice(t.i-1).match(n),o=c.default.getFontDef(t);i?(r=t.create("token","mn",o,i[0].replace(/[{}]/g,"")),t.i+=i[0].length-1):r=t.create("token","mo",o,e),t.Push(r)},t.controlSequence=function(t,e){var r=t.GetCS();t.parse("macro",[t,r])},t.mathchar0mi=function(t,e){var r=e.attributes||{mathvariant:l.TexConstant.Variant.ITALIC},n=t.create("token","mi",r,e.char);t.Push(n)},t.mathchar0mo=function(t,e){var r=e.attributes||{};r.stretchy=!1;var n=t.create("token","mo",r,e.char);a.default.setProperty(n,"fixStretchy",!0),t.configuration.addNode("fixStretchy",n),t.Push(n)},t.mathchar7=function(t,e){var r=e.attributes||{mathvariant:l.TexConstant.Variant.NORMAL};t.stack.env.font&&(r.mathvariant=t.stack.env.font);var n=t.create("token","mi",r,e.char);t.Push(n)},t.delimiter=function(t,e){var r=e.attributes||{};r=Object.assign({fence:!1,stretchy:!1},r);var n=t.create("token","mo",r,e.char);t.Push(n)},t.environment=function(t,e,r,o){var s=o[0],a=t.itemFactory.create("begin").setProperties({name:e,end:s});a=r.apply(void 0,i([t,a],n(o.slice(1)),!1)),t.Push(a)}}(s||(s={})),e.default=s},253:function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=s(r(1942)),l=r(2533),c=s(r(4454)),u=r(7173),h=r(2102),p=function(){function t(t,e){void 0===e&&(e=[]),this.options={},this.columnParser=new h.ColumnParser,this.packageData=new Map,this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.handlers=t.handlers,this.nodeFactory=new l.NodeFactory,this.nodeFactory.configuration=this,this.nodeFactory.setCreators(t.nodes),this.itemFactory=new a.default(t.items),this.itemFactory.configuration=this,u.defaultOptions.apply(void 0,i([this.options],n(e),!1)),(0,u.defaultOptions)(this.options,t.options)}return t.prototype.pushParser=function(t){this.parsers.unshift(t)},t.prototype.popParser=function(){this.parsers.shift()},Object.defineProperty(t.prototype,"parser",{get:function(){return this.parsers[0]},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.tags.resetTag()},t.prototype.addNode=function(t,e){var r=this.nodeLists[t];if(r||(r=this.nodeLists[t]=[]),r.push(e),e.kind!==t){var n=c.default.getProperty(e,"in-lists")||"",i=(n?n.split(/,/):[]).concat(t).join(",");c.default.setProperty(e,"in-lists",i)}},t.prototype.getList=function(t){var e,r,n=this.nodeLists[t]||[],i=[];try{for(var s=o(n),a=s.next();!a.done;a=s.next()){var l=a.value;this.inTree(l)&&i.push(l)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return this.nodeLists[t]=i,i},t.prototype.removeFromList=function(t,e){var r,n,i=this.nodeLists[t]||[];try{for(var s=o(e),a=s.next();!a.done;a=s.next()){var l=a.value,c=i.indexOf(l);c>=0&&i.splice(c,1)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}},t.prototype.inTree=function(t){for(;t&&t!==this.root;)t=t.parent;return!!t},t}();e.default=p},5174:function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s,a=r(8594),l=o(r(4454)),c=o(r(161)),u=o(r(2085)),h=r(6913);!function(t){var e=7.2,r={em:function(t){return t},ex:function(t){return.43*t},pt:function(t){return t/10},pc:function(t){return 1.2*t},px:function(t){return t*e/72},in:function(t){return t*e},cm:function(t){return t*e/2.54},mm:function(t){return t*e/25.4},mu:function(t){return t/18}},o="([-+]?([.,]\\d+|\\d+([.,]\\d*)?))",s="(pt|em|ex|mu|px|mm|cm|in|pc)",p=RegExp("^\\s*"+o+"\\s*"+s+"\\s*$"),d=RegExp("^\\s*"+o+"\\s*"+s+" ?");function f(t,e){void 0===e&&(e=!1);var i=t.match(e?d:p);return i?function(t){var e=n(t,3),i=e[0],o=e[1],s=e[2];if("mu"!==o)return[i,o,s];return[m(r[o](parseFloat(i||"1"))).slice(0,-2),"em",s]}([i[1].replace(/,/,"."),i[4],i[0].length]):[null,null,0]}function m(t){return Math.abs(t)<6e-4?"0em":t.toFixed(3).replace(/\.?0+$/,"")+"em"}function y(t,e,r){"{"!==e&&"}"!==e||(e="\\"+e);var n="{\\bigg"+r+" "+e+"}",i="{\\big"+r+" "+e+"}";return new c.default("\\mathchoice"+n+i+i+i,{},t).mml()}function g(t,e,r){e=e.replace(/^\s+/,h.entities.nbsp).replace(/\s+$/,h.entities.nbsp);var n=t.create("text",e);return t.create("node","mtext",[],r,n)}function b(t,e,r){if(r.match(/^[a-z]/i)&&e.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)&&(e+=" "),e.length+r.length>t.configuration.options.maxBuffer)throw new u.default("MaxBufferSize","MathJax internal buffer size exceeded; is there a recursive macro call?");return e+r}function v(t,e){for(;e>0;)t=t.trim().slice(1,-1),e--;return t.trim()}function M(t,e){for(var r=t.length,n=0,i="",o=0,s=0,a=!0,l=!1;o<r;){var c=t[o++];switch(c){case" ":break;case"{":a?s++:(l=!1,s>n&&(s=n)),n++;break;case"}":n&&n--,(a||l)&&(s--,l=!0),a=!1;break;default:if(!n&&-1!==e.indexOf(c))return[l?"true":v(i,s),c,t.slice(o)];a=!1,l=!1}i+=c}if(n)throw new u.default("ExtraOpenMissingClose","Extra open brace or missing close brace");return[l?"true":v(i,s),"",t.slice(o)]}t.matchDimen=f,t.dimen2em=function(t){var e=n(f(t),2),i=e[0],o=e[1],s=parseFloat(i||"1"),a=r[o];return a?a(s):0},t.Em=m,t.cols=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.map((function(t){return m(t)})).join(" ")},t.fenced=function(t,e,r,n,i,o){void 0===i&&(i=""),void 0===o&&(o="");var s,u=t.nodeFactory,h=u.create("node","mrow",[],{open:e,close:n,texClass:a.TEXCLASS.INNER});if(i)s=new c.default("\\"+i+"l"+e,t.parser.stack.env,t).mml();else{var p=u.create("text",e);s=u.create("node","mo",[],{fence:!0,stretchy:!0,symmetric:!0,texClass:a.TEXCLASS.OPEN},p)}if(l.default.appendChildren(h,[s,r]),i)s=new c.default("\\"+i+"r"+n,t.parser.stack.env,t).mml();else{var d=u.create("text",n);s=u.create("node","mo",[],{fence:!0,stretchy:!0,symmetric:!0,texClass:a.TEXCLASS.CLOSE},d)}return o&&s.attributes.set("mathcolor",o),l.default.appendChildren(h,[s]),h},t.fixedFence=function(t,e,r,n){var i=t.nodeFactory.create("node","mrow",[],{open:e,close:n,texClass:a.TEXCLASS.ORD});return e&&l.default.appendChildren(i,[y(t,e,"l")]),l.default.isType(r,"mrow")?l.default.appendChildren(i,l.default.getChildren(r)):l.default.appendChildren(i,[r]),n&&l.default.appendChildren(i,[y(t,n,"r")]),i},t.mathPalette=y,t.fixInitialMO=function(t,e){for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i&&!l.default.isType(i,"mspace")&&(!l.default.isType(i,"TeXAtom")||l.default.getChildren(i)[0]&&l.default.getChildren(l.default.getChildren(i)[0]).length)){if(l.default.isEmbellished(i)||l.default.isType(i,"TeXAtom")&&l.default.getTexClass(i)===a.TEXCLASS.REL){var o=t.nodeFactory.create("node","mi");e.unshift(o)}break}}},t.internalMath=function(t,e,r,n){if(t.configuration.options.internalMath)return t.configuration.options.internalMath(t,e,r,n);var i,o,s=n||t.stack.env.font,a=s?{mathvariant:s}:{},l=[],h=0,p=0,d="",f=0;if(e.match(/\\?[${}\\]|\\\(|\\(eq)?ref\s*\{/)){for(;h<e.length;)if("$"===(i=e.charAt(h++)))"$"===d&&0===f?(o=t.create("node","TeXAtom",[new c.default(e.slice(p,h-1),{},t.configuration).mml()]),l.push(o),d="",p=h):""===d&&(p<h-1&&l.push(g(t,e.slice(p,h-1),a)),d="$",p=h);else if("{"===i&&""!==d)f++;else if("}"===i)if("}"===d&&0===f){var m=new c.default(e.slice(p,h),{},t.configuration).mml();o=t.create("node","TeXAtom",[m],a),l.push(o),d="",p=h}else""!==d&&f&&f--;else if("\\"===i)if(""===d&&e.substr(h).match(/^(eq)?ref\s*\{/)){var y=RegExp["$&"].length;p<h-1&&l.push(g(t,e.slice(p,h-1),a)),d="}",p=h-1,h+=y}else"("===(i=e.charAt(h++))&&""===d?(p<h-2&&l.push(g(t,e.slice(p,h-2),a)),d=")",p=h):")"===i&&")"===d&&0===f?(o=t.create("node","TeXAtom",[new c.default(e.slice(p,h-2),{},t.configuration).mml()]),l.push(o),d="",p=h):i.match(/[${}\\]/)&&""===d&&(h--,e=e.substr(0,h-1)+e.substr(h));if(""!==d)throw new u.default("MathNotTerminated","Math not terminated in text box")}return p<e.length&&l.push(g(t,e.slice(p),a)),null!=r?l=[t.create("node","mstyle",l,{displaystyle:!1,scriptlevel:r})]:l.length>1&&(l=[t.create("node","mrow",l)]),l},t.internalText=g,t.underOver=function(e,r,n,i,o){if(t.checkMovableLimits(r),l.default.isType(r,"munderover")&&l.default.isEmbellished(r)){l.default.setProperties(l.default.getCoreMO(r),{lspace:0,rspace:0});var s=e.create("node","mo",[],{rspace:0});r=e.create("node","mrow",[s,r])}var c=e.create("node","munderover",[r]);l.default.setChild(c,"over"===i?c.over:c.under,n);var u=c;return o&&(u=e.create("node","TeXAtom",[c],{texClass:a.TEXCLASS.OP,movesupsub:!0})),l.default.setProperty(u,"subsupOK",!0),u},t.checkMovableLimits=function(t){var e=l.default.isType(t,"mo")?l.default.getForm(t):null;(l.default.getProperty(t,"movablelimits")||e&&e[3]&&e[3].movablelimits)&&l.default.setProperties(t,{movablelimits:!1})},t.trimSpaces=function(t){if("string"!=typeof t)return t;var e=t.trim();return e.match(/\\$/)&&t.match(/ $/)&&(e+=" "),e},t.setArrayAlign=function(e,r,n){return n||(r=t.trimSpaces(r||"")),"t"===r?e.arraydef.align="baseline 1":"b"===r?e.arraydef.align="baseline -1":"c"===r?e.arraydef.align="axis":r&&(n?(n.string="[".concat(r,"]")+n.string.slice(n.i),n.i=0):e.arraydef.align=r),e},t.substituteArgs=function(t,e,r){for(var n="",i="",o=0;o<r.length;){var s=r.charAt(o++);if("\\"===s)n+=s+r.charAt(o++);else if("#"===s)if("#"===(s=r.charAt(o++)))n+=s;else{if(!s.match(/[1-9]/)||parseInt(s,10)>e.length)throw new u.default("IllegalMacroParam","Illegal macro parameter reference");i=b(t,b(t,i,n),e[parseInt(s,10)-1]),n=""}else n+=s}return b(t,i,n)},t.addArgs=b,t.checkMaxMacros=function(t,e){if(void 0===e&&(e=!0),!(++t.macroCount<=t.configuration.options.maxMacros))throw e?new u.default("MaxMacroSub1","MathJax maximum macro substitution count exceeded; is here a recursive macro call?"):new u.default("MaxMacroSub2","MathJax maximum substitution count exceeded; is there a recursive latex environment?")},t.checkEqnEnv=function(t){if(t.stack.global.eqnenv)throw new u.default("ErroneousNestingEq","Erroneous nesting of equation structures");t.stack.global.eqnenv=!0},t.copyNode=function(t,e){var r=t.copy(),n=e.configuration;return r.walkTree((function(t){var e,r;n.addNode(t.kind,t);var o=(t.getProperty("in-lists")||"").split(/,/);try{for(var s=i(o),a=s.next();!a.done;a=s.next()){var l=a.value;l&&n.addNode(l,t)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}})),r},t.MmlFilterAttribute=function(t,e,r){return r},t.getFontDef=function(t){var e=t.stack.env.font;return e?{mathvariant:e}:{}},t.keyvalOptions=function(t,e,r){var o,s;void 0===e&&(e=null),void 0===r&&(r=!1);var a=function(t){var e,r,i,o,s,a={},l=t;for(;l;)o=(e=n(M(l,["=",","]),3))[0],i=e[1],l=e[2],"="===i?(s=(r=n(M(l,[","]),3))[0],i=r[1],l=r[2],s="false"===s||"true"===s?JSON.parse(s):s,a[o]=s):o&&(a[o]=!0);return a}(t);if(e)try{for(var l=i(Object.keys(a)),c=l.next();!c.done;c=l.next()){var h=c.value;if(!e.hasOwnProperty(h)){if(r)throw new u.default("InvalidOption","Invalid option: %1",h);delete a[h]}}}catch(t){o={error:t}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return a}}(s||(s={})),e.default=s},6672:function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},o=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=s(r(4454)),l=function(){function t(t,e,r){this._factory=t,this._env=e,this.global={},this.stack=[],this.global={isInner:r},this.stack=[this._factory.create("start",this.global)],e&&(this.stack[0].env=e),this.env=this.stack[0].env}return Object.defineProperty(t.prototype,"env",{get:function(){return this._env},set:function(t){this._env=t},enumerable:!1,configurable:!0}),t.prototype.Push=function(){for(var t,e,r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];try{for(var l=n(r),c=l.next();!c.done;c=l.next()){var u=c.value;if(u){var h=a.default.isNode(u)?this._factory.create("mml",u):u;h.global=this.global;var p=i(this.stack.length?this.Top().checkItem(h):[null,!0],2),d=p[0],f=p[1];f&&(d?(this.Pop(),this.Push.apply(this,o([],i(d),!1))):(this.stack.push(h),h.env?(h.copyEnv&&Object.assign(h.env,this.env),this.env=h.env):h.env=this.env))}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}},t.prototype.Pop=function(){var t=this.stack.pop();return t.isOpen||delete t.env,this.env=this.stack.length?this.Top().env:{},t},t.prototype.Top=function(t){return void 0===t&&(t=1),this.stack.length<t?null:this.stack[this.stack.length-t]},t.prototype.Prev=function(t){var e=this.Top();return t?e.First:e.Pop()},t.prototype.toString=function(){return"stack[\n "+this.stack.join("\n ")+"\n]"},t}();e.default=l},4066:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseItem=e.MmlStack=void 0;var c=l(r(2085)),u=function(){function t(t){this._nodes=t}return Object.defineProperty(t.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),t.prototype.Push=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];(t=this._nodes).push.apply(t,s([],o(e),!1))},t.prototype.Pop=function(){return this._nodes.pop()},Object.defineProperty(t.prototype,"First",{get:function(){return this._nodes[this.Size()-1]},set:function(t){this._nodes[this.Size()-1]=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Last",{get:function(){return this._nodes[0]},set:function(t){this._nodes[0]=t},enumerable:!1,configurable:!0}),t.prototype.Peek=function(t){return null==t&&(t=1),this._nodes.slice(this.Size()-t)},t.prototype.Size=function(){return this._nodes.length},t.prototype.Clear=function(){this._nodes=[]},t.prototype.toMml=function(t,e){return void 0===t&&(t=!0),1!==this._nodes.length||e?this.create("node",t?"inferredMrow":"mrow",this._nodes,{}):this.First},t.prototype.create=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(e=this.factory.configuration.nodeFactory).create.apply(e,s([t],o(r),!1))},t}();e.MmlStack=u;var h=function(t){function e(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=t.call(this,r)||this;return i.factory=e,i.global={},i._properties={},i.isOpen&&(i._env={}),i}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"base"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"env",{get:function(){return this._env},set:function(t){this._env=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"copyEnv",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.getProperty=function(t){return this._properties[t]},e.prototype.setProperty=function(t,e){return this._properties[t]=e,this},Object.defineProperty(e.prototype,"isOpen",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isClose",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFinal",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.isKind=function(t){return t===this.kind},e.prototype.checkItem=function(t){if(t.isKind("over")&&this.isOpen&&(t.setProperty("num",this.toMml(!1)),this.Clear()),t.isKind("cell")&&this.isOpen){if(t.getProperty("linebreak"))return e.fail;throw new c.default("Misplaced","Misplaced %1",t.getName())}if(t.isClose&&this.getErrors(t.kind)){var r=o(this.getErrors(t.kind),2),n=r[0],i=r[1];throw new c.default(n,i,t.getName())}return t.isFinal?(this.Push(t.First),e.fail):e.success},e.prototype.clearEnv=function(){var t,e;try{for(var r=a(Object.keys(this.env)),n=r.next();!n.done;n=r.next()){var i=n.value;delete this.env[i]}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},e.prototype.setProperties=function(t){return Object.assign(this._properties,t),this},e.prototype.getName=function(){return this.getProperty("name")},e.prototype.toString=function(){return this.kind+"["+this.nodes.join("; ")+"]"},e.prototype.getErrors=function(t){return(this.constructor.errors||{})[t]||e.errors[t]},e.fail=[null,!1],e.success=[null,!0],e.errors={end:["MissingBeginExtraEnd","Missing \\begin{%1} or extra \\end{%1}"],close:["ExtraCloseMissingOpen","Extra close brace or missing open brace"],right:["MissingLeftExtraRight","Missing \\left or extra \\right"],middle:["ExtraMiddle","Extra \\middle"]},e}(u);e.BaseItem=h},1942:function(t,e,r){"use strict";var n,i,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var s=r(4066),a=r(1873),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(s.BaseItem),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultKind="dummy",e.configuration=null,e}return o(e,t),e.DefaultStackItems=((i={})[l.prototype.kind]=l,i),e}(a.AbstractFactory);e.default=c},3233:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Macro=e.Symbol=void 0;var r=function(){function t(t,e,r){this._symbol=t,this._char=e,this._attributes=r}return Object.defineProperty(t.prototype,"symbol",{get:function(){return this._symbol},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"char",{get:function(){return this._char},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this._attributes},enumerable:!1,configurable:!0}),t}();e.Symbol=r;var n=function(){function t(t,e,r){void 0===r&&(r=[]),this._symbol=t,this._func=e,this._args=r}return Object.defineProperty(t.prototype,"symbol",{get:function(){return this._symbol},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"func",{get:function(){return this._func},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"args",{get:function(){return this._args},enumerable:!1,configurable:!0}),t}();e.Macro=n},3403:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.EnvironmentMap=e.CommandMap=e.MacroMap=e.DelimiterMap=e.CharacterMap=e.AbstractParseMap=e.RegExpMap=e.AbstractSymbolMap=e.parseResult=void 0;var l=r(3233),c=r(6685);function u(t){return void 0===t||t}e.parseResult=u;var h=function(){function t(t,e){this._name=t,this._parser=e,c.MapHandler.register(this)}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t.prototype.parserFor=function(t){return this.contains(t)?this.parser:null},t.prototype.parse=function(t){var e=o(t,2),r=e[0],n=e[1],i=this.parserFor(n),s=this.lookup(n);return i&&s?u(i(r,s)):null},Object.defineProperty(t.prototype,"parser",{get:function(){return this._parser},set:function(t){this._parser=t},enumerable:!1,configurable:!0}),t}();e.AbstractSymbolMap=h;var p=function(t){function e(e,r,n){var i=t.call(this,e,r)||this;return i._regExp=n,i}return i(e,t),e.prototype.contains=function(t){return this._regExp.test(t)},e.prototype.lookup=function(t){return this.contains(t)?t:null},e}(h);e.RegExpMap=p;var d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.map=new Map,e}return i(e,t),e.prototype.lookup=function(t){return this.map.get(t)},e.prototype.contains=function(t){return this.map.has(t)},e.prototype.add=function(t,e){this.map.set(t,e)},e.prototype.remove=function(t){this.map.delete(t)},e}(h);e.AbstractParseMap=d;var f=function(t){function e(e,r,n){var i,a,c=t.call(this,e,r)||this;try{for(var u=s(Object.keys(n)),h=u.next();!h.done;h=u.next()){var p=h.value,d=n[p],f=o("string"==typeof d?[d,null]:d,2),m=f[0],y=f[1],g=new l.Symbol(p,m,y);c.add(p,g)}}catch(t){i={error:t}}finally{try{h&&!h.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}return c}return i(e,t),e}(d);e.CharacterMap=f;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.parse=function(e){var r=o(e,2),n=r[0],i=r[1];return t.prototype.parse.call(this,[n,"\\"+i])},e}(f);e.DelimiterMap=m;var y=function(t){function e(e,r,n){var i,a,c=t.call(this,e,null)||this;try{for(var u=s(Object.keys(r)),h=u.next();!h.done;h=u.next()){var p=h.value,d=r[p],f=o("string"==typeof d?[d]:d),m=f[0],y=f.slice(1),g=new l.Macro(p,n[m],y);c.add(p,g)}}catch(t){i={error:t}}finally{try{h&&!h.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}return c}return i(e,t),e.prototype.parserFor=function(t){var e=this.lookup(t);return e?e.func:null},e.prototype.parse=function(t){var e=o(t,2),r=e[0],n=e[1],i=this.lookup(n),s=this.parserFor(n);return i&&s?u(s.apply(void 0,a([r,i.symbol],o(i.args),!1))):null},e}(d);e.MacroMap=y;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.parse=function(t){var e=o(t,2),r=e[0],n=e[1],i=this.lookup(n),s=this.parserFor(n);if(!i||!s)return null;var l=r.currentCS;r.currentCS="\\"+n;var c=s.apply(void 0,a([r,"\\"+i.symbol],o(i.args),!1));return r.currentCS=l,u(c)},e}(y);e.CommandMap=g;var b=function(t){function e(e,r,n,i){var o=t.call(this,e,n,i)||this;return o.parser=r,o}return i(e,t),e.prototype.parse=function(t){var e=o(t,2),r=e[0],n=e[1],i=this.lookup(n),s=this.parserFor(n);return i&&s?u(this.parser(r,i.symbol,s,i.args)):null},e}(y);e.EnvironmentMap=b},3983:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.TagsFactory=e.AllTags=e.NoTags=e.AbstractTags=e.TagInfo=e.Label=void 0;var a=s(r(161)),l=function(t,e){void 0===t&&(t="???"),void 0===e&&(e=""),this.tag=t,this.id=e};e.Label=l;var c=function(t,e,r,n,i,o,s,a){void 0===t&&(t=""),void 0===e&&(e=!1),void 0===r&&(r=!1),void 0===n&&(n=null),void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s=!1),void 0===a&&(a=""),this.env=t,this.taggable=e,this.defaultTags=r,this.tag=n,this.tagId=i,this.tagFormat=o,this.noTag=s,this.labelId=a};e.TagInfo=c;var u=function(){function t(){this.counter=0,this.allCounter=0,this.configuration=null,this.ids={},this.allIds={},this.labels={},this.allLabels={},this.redo=!1,this.refUpdate=!1,this.currentTag=new c,this.history=[],this.stack=[],this.enTag=function(t,e){var r=this.configuration.nodeFactory,n=r.create("node","mtd",[t]),i=r.create("node","mlabeledtr",[e,n]);return r.create("node","mtable",[i],{side:this.configuration.options.tagSide,minlabelspacing:this.configuration.options.tagIndent,displaystyle:!0})}}return t.prototype.start=function(t,e,r){this.currentTag&&this.stack.push(this.currentTag);var n=this.label;this.currentTag=new c(t,e,r),this.label=n},Object.defineProperty(t.prototype,"env",{get:function(){return this.currentTag.env},enumerable:!1,configurable:!0}),t.prototype.end=function(){this.history.push(this.currentTag);var t=this.label;this.currentTag=this.stack.pop(),t&&!this.label&&(this.label=t)},t.prototype.tag=function(t,e){this.currentTag.tag=t,this.currentTag.tagFormat=e?t:this.formatTag(t),this.currentTag.noTag=!1},t.prototype.notag=function(){this.tag("",!0),this.currentTag.noTag=!0},Object.defineProperty(t.prototype,"noTag",{get:function(){return this.currentTag.noTag},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this.currentTag.labelId},set:function(t){this.currentTag.labelId=t},enumerable:!1,configurable:!0}),t.prototype.formatUrl=function(t,e){return e+"#"+encodeURIComponent(t)},t.prototype.formatTag=function(t){return"("+t+")"},t.prototype.formatId=function(t){return"mjx-eqn:"+t.replace(/\s/g,"_")},t.prototype.formatNumber=function(t){return t.toString()},t.prototype.autoTag=function(){null==this.currentTag.tag&&(this.counter++,this.tag(this.formatNumber(this.counter),!1))},t.prototype.clearTag=function(){this.tag(null,!0),this.currentTag.tagId=""},t.prototype.getTag=function(t){if(void 0===t&&(t=!1),t)return this.autoTag(),this.makeTag();var e=this.currentTag;return e.taggable&&!e.noTag&&(e.defaultTags&&this.autoTag(),e.tag)?this.makeTag():null},t.prototype.resetTag=function(){this.history=[],this.redo=!1,this.refUpdate=!1,this.clearTag()},t.prototype.reset=function(t){void 0===t&&(t=0),this.resetTag(),this.counter=this.allCounter=t,this.allLabels={},this.allIds={},this.label=""},t.prototype.startEquation=function(t){this.history=[],this.stack=[],this.clearTag(),this.currentTag=new c("",void 0,void 0),this.labels={},this.ids={},this.counter=this.allCounter,this.redo=!1;var e=t.inputData.recompile;e&&(this.refUpdate=!0,this.counter=e.counter)},t.prototype.finishEquation=function(t){this.redo&&(t.inputData.recompile={state:t.state(),counter:this.allCounter}),this.refUpdate||(this.allCounter=this.counter),Object.assign(this.allIds,this.ids),Object.assign(this.allLabels,this.labels)},t.prototype.finalize=function(t,e){if(!e.display||this.currentTag.env||null==this.currentTag.tag)return t;var r=this.makeTag();return this.enTag(t,r)},t.prototype.makeId=function(){this.currentTag.tagId=this.formatId(this.configuration.options.useLabelIds&&this.label||this.currentTag.tag)},t.prototype.makeTag=function(){this.makeId(),this.label&&(this.labels[this.label]=new l(this.currentTag.tag,this.currentTag.tagId),this.label="");var t=new a.default("\\text{"+this.currentTag.tagFormat+"}",{},this.configuration).mml();return this.configuration.nodeFactory.create("node","mtd",[t],{id:this.currentTag.tagId})},t}();e.AbstractTags=u;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.autoTag=function(){},e.prototype.getTag=function(){return this.currentTag.tag?t.prototype.getTag.call(this):null},e}(u);e.NoTags=h;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.finalize=function(t,e){if(!e.display||this.history.find((function(t){return t.taggable})))return t;var r=this.getTag(!0);return this.enTag(t,r)},e}(u);e.AllTags=p,function(t){var e=new Map([["none",h],["all",p]]),r="none";t.OPTIONS={tags:r,tagSide:"right",tagIndent:"0.8em",useLabelIds:!0,ignoreDuplicateLabels:!1},t.add=function(t,r){e.set(t,r)},t.addTags=function(e){var r,n;try{for(var i=o(Object.keys(e)),s=i.next();!s.done;s=i.next()){var a=s.value;t.add(a,e[a])}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},t.create=function(t){var n=e.get(t)||e.get(r);if(!n)throw Error("Unknown tags class");return new n},t.setDefault=function(t){r=t},t.getDefault=function(){return t.create(r)}}(e.TagsFactory||(e.TagsFactory={}))},3431:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TexConstant=void 0,function(t){t.Variant={NORMAL:"normal",BOLD:"bold",ITALIC:"italic",BOLDITALIC:"bold-italic",DOUBLESTRUCK:"double-struck",FRAKTUR:"fraktur",BOLDFRAKTUR:"bold-fraktur",SCRIPT:"script",BOLDSCRIPT:"bold-script",SANSSERIF:"sans-serif",BOLDSANSSERIF:"bold-sans-serif",SANSSERIFITALIC:"sans-serif-italic",SANSSERIFBOLDITALIC:"sans-serif-bold-italic",MONOSPACE:"monospace",INITIAL:"inital",TAILED:"tailed",LOOPED:"looped",STRETCHED:"stretched",CALLIGRAPHIC:"-tex-calligraphic",BOLDCALLIGRAPHIC:"-tex-bold-calligraphic",OLDSTYLE:"-tex-oldstyle",BOLDOLDSTYLE:"-tex-bold-oldstyle",MATHITALIC:"-tex-mathit"},t.Form={PREFIX:"prefix",INFIX:"infix",POSTFIX:"postfix"},t.LineBreak={AUTO:"auto",NEWLINE:"newline",NOBREAK:"nobreak",GOODBREAK:"goodbreak",BADBREAK:"badbreak"},t.LineBreakStyle={BEFORE:"before",AFTER:"after",DUPLICATE:"duplicate",INFIXLINBREAKSTYLE:"infixlinebreakstyle"},t.IndentAlign={LEFT:"left",CENTER:"center",RIGHT:"right",AUTO:"auto",ID:"id",INDENTALIGN:"indentalign"},t.IndentShift={INDENTSHIFT:"indentshift"},t.LineThickness={THIN:"thin",MEDIUM:"medium",THICK:"thick"},t.Notation={LONGDIV:"longdiv",ACTUARIAL:"actuarial",PHASORANGLE:"phasorangle",RADICAL:"radical",BOX:"box",ROUNDEDBOX:"roundedbox",CIRCLE:"circle",LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom",UPDIAGONALSTRIKE:"updiagonalstrike",DOWNDIAGONALSTRIKE:"downdiagonalstrike",VERTICALSTRIKE:"verticalstrike",HORIZONTALSTRIKE:"horizontalstrike",NORTHEASTARROW:"northeastarrow",MADRUWB:"madruwb",UPDIAGONALARROW:"updiagonalarrow"},t.Align={TOP:"top",BOTTOM:"bottom",CENTER:"center",BASELINE:"baseline",AXIS:"axis",LEFT:"left",RIGHT:"right"},t.Lines={NONE:"none",SOLID:"solid",DASHED:"dashed"},t.Side={LEFT:"left",RIGHT:"right",LEFTOVERLAP:"leftoverlap",RIGHTOVERLAP:"rightoverlap"},t.Width={AUTO:"auto",FIT:"fit"},t.Actiontype={TOGGLE:"toggle",STATUSLINE:"statusline",TOOLTIP:"tooltip",INPUT:"input"},t.Overflow={LINBREAK:"linebreak",SCROLL:"scroll",ELIDE:"elide",TRUNCATE:"truncate",SCALE:"scale"},t.Unit={EM:"em",EX:"ex",PX:"px",IN:"in",CM:"cm",MM:"mm",PT:"pt",PC:"pc"}}(e.TexConstant||(e.TexConstant={}))},2085:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(e,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.id=e,this.message=t.processString(r,n)}return t.processString=function(e,r){for(var n=e.split(t.pattern),i=1,o=n.length;i<o;i+=2){var s=n[i].charAt(0);if(s>="0"&&s<="9")n[i]=r[parseInt(n[i],10)-1],"number"==typeof n[i]&&(n[i]=n[i].toString());else if("{"===s){if((s=n[i].substr(1))>="0"&&s<="9")n[i]=r[parseInt(n[i].substr(1,n[i].length-2),10)-1],"number"==typeof n[i]&&(n[i]=n[i].toString());else n[i].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/)&&(n[i]="%"+n[i])}null==n[i]&&(n[i]="???")}return n.join("")},t.pattern=/%(\d+|\{\d+\}|\{[a-z]+:\%\d+(?:\|(?:%\{\d+\}|%.|[^\}])*)+\}|.)/g,t}();e.default=r},161:function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},o=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=s(r(5174)),l=s(r(6672)),c=s(r(2085)),u=r(8594),h=function(){function t(t,e,r){var i,o;this._string=t,this.configuration=r,this.macroCount=0,this.i=0,this.currentCS="";var s,a=e.hasOwnProperty("isInner"),c=e.isInner;if(delete e.isInner,e){s={};try{for(var u=n(Object.keys(e)),h=u.next();!h.done;h=u.next()){var p=h.value;s[p]=e[p]}}catch(t){i={error:t}}finally{try{h&&!h.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}}this.configuration.pushParser(this),this.stack=new l.default(this.itemFactory,s,!a||c),this.Parse(),this.Push(this.itemFactory.create("stop")),this.stack.env=s}return Object.defineProperty(t.prototype,"options",{get:function(){return this.configuration.options},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemFactory",{get:function(){return this.configuration.itemFactory},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tags",{get:function(){return this.configuration.tags},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"string",{get:function(){return this._string},set:function(t){this._string=t},enumerable:!1,configurable:!0}),t.prototype.parse=function(t,e){return this.configuration.handlers.get(t).parse(e)},t.prototype.lookup=function(t,e){return this.configuration.handlers.get(t).lookup(e)},t.prototype.contains=function(t,e){return this.configuration.handlers.get(t).contains(e)},t.prototype.toString=function(){var t,e,r="";try{for(var i=n(Array.from(this.configuration.handlers.keys())),o=i.next();!o.done;o=i.next()){var s=o.value;r+=s+": "+this.configuration.handlers.get(s)+"\n"}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return r},t.prototype.Parse=function(){for(var t;this.i<this.string.length;)t=this.getCodePoint(),this.i+=t.length,this.parse("character",[this,t])},t.prototype.Push=function(t){t instanceof u.AbstractMmlNode&&t.isInferred?this.PushAll(t.childNodes):this.stack.Push(t)},t.prototype.PushAll=function(t){var e,r;try{for(var i=n(t),o=i.next();!o.done;o=i.next()){var s=o.value;this.stack.Push(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}},t.prototype.mml=function(){if(!this.stack.Top().isKind("mml"))return null;var t=this.stack.Top().First;return this.configuration.popParser(),t},t.prototype.convertDelimiter=function(t){var e=this.lookup("delimiter",t);return e?e.char:null},t.prototype.getCodePoint=function(){var t=this.string.codePointAt(this.i);return void 0===t?"":String.fromCodePoint(t)},t.prototype.nextIsSpace=function(){return!!this.string.charAt(this.i).match(/\s/)},t.prototype.GetNext=function(){for(;this.nextIsSpace();)this.i++;return this.getCodePoint()},t.prototype.GetCS=function(){var t=this.string.slice(this.i).match(/^(([a-z]+) ?|[\uD800-\uDBFF].|.)/i);return t?(this.i+=t[0].length,t[2]||t[1]):(this.i++," ")},t.prototype.GetArgument=function(t,e){switch(this.GetNext()){case"":if(!e)throw new c.default("MissingArgFor","Missing argument for %1",this.currentCS);return null;case"}":if(!e)throw new c.default("ExtraCloseMissingOpen","Extra close brace or missing open brace");return null;case"\\":return this.i++,"\\"+this.GetCS();case"{":for(var r=++this.i,n=1;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"\\":this.i++;break;case"{":n++;break;case"}":if(0==--n)return this.string.slice(r,this.i-1)}throw new c.default("MissingCloseBrace","Missing close brace")}var i=this.getCodePoint();return this.i+=i.length,i},t.prototype.GetBrackets=function(t,e){if("["!==this.GetNext())return e;for(var r=++this.i,n=0;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"{":n++;break;case"\\":this.i++;break;case"}":if(n--<=0)throw new c.default("ExtraCloseLooking","Extra close brace while looking for %1","']'");break;case"]":if(0===n)return this.string.slice(r,this.i-1)}throw new c.default("MissingCloseBracket","Could not find closing ']' for argument to %1",this.currentCS)},t.prototype.GetDelimiter=function(t,e){var r=this.GetNext();if(this.i+=r.length,this.i<=this.string.length&&("\\"===r?r+=this.GetCS():"{"===r&&e&&(this.i--,r=this.GetArgument(t).trim()),this.contains("delimiter",r)))return this.convertDelimiter(r);throw new c.default("MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",this.currentCS)},t.prototype.GetDimen=function(t){if("{"===this.GetNext()){var e=this.GetArgument(t),r=i(a.default.matchDimen(e),2),n=r[0],o=r[1];if(n)return n+o}else{e=this.string.slice(this.i);var s=i(a.default.matchDimen(e,!0),3),l=(n=s[0],o=s[1],s[2]);if(n)return this.i+=l,n+o}throw new c.default("MissingDimOrUnits","Missing dimension or its units for %1",this.currentCS)},t.prototype.GetUpTo=function(t,e){for(;this.nextIsSpace();)this.i++;for(var r=this.i,n=0;this.i<this.string.length;){var i=this.i,o=this.GetNext();switch(this.i+=o.length,o){case"\\":o+=this.GetCS();break;case"{":n++;break;case"}":if(0===n)throw new c.default("ExtraCloseLooking","Extra close brace while looking for %1",e);n--}if(0===n&&o===e)return this.string.slice(r,i)}throw new c.default("TokenNotFoundForCommand","Could not find %1 for %2",e,this.currentCS)},t.prototype.ParseArg=function(e){return new t(this.GetArgument(e),this.stack.env,this.configuration).mml()},t.prototype.ParseUpTo=function(e,r){return new t(this.GetUpTo(e,r),this.stack.env,this.configuration).mml()},t.prototype.GetDelimiterArg=function(t){var e=a.default.trimSpaces(this.GetArgument(t));if(""===e)return null;if(this.contains("delimiter",e))return e;throw new c.default("MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",this.currentCS)},t.prototype.GetStar=function(){var t="*"===this.GetNext();return t&&this.i++,t},t.prototype.create=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(e=this.configuration.nodeFactory).create.apply(e,o([t],i(r),!1))},t}();e.default=h},1975:function(t,e,r){"use strict";var n,i,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.AmsConfiguration=e.AmsTags=void 0;var s=r(6181),a=r(2255),l=r(3983),c=r(8782);r(9102);var u=r(3403),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(l.AbstractTags);e.AmsTags=h;e.AmsConfiguration=s.Configuration.create("ams",{handler:{character:["AMSmath-operatorLetter"],delimiter:["AMSsymbols-delimiter","AMSmath-delimiter"],macro:["AMSsymbols-mathchar0mi","AMSsymbols-mathchar0mo","AMSsymbols-delimiter","AMSsymbols-macros","AMSmath-mathchar0mo","AMSmath-macros","AMSmath-delimiter"],environment:["AMSmath-environment"]},items:(i={},i[a.MultlineItem.prototype.kind]=a.MultlineItem,i[a.FlalignItem.prototype.kind]=a.FlalignItem,i),tags:{ams:h},init:function(t){new u.CommandMap(c.NEW_OPS,{},{}),t.append(s.Configuration.local({handler:{macro:[c.NEW_OPS]},priority:-1}))},config:function(t,e){e.parseOptions.options.multlineWidth&&(e.parseOptions.options.ams.multlineWidth=e.parseOptions.options.multlineWidth),delete e.parseOptions.options.multlineWidth},options:{multlineWidth:"",ams:{multlineWidth:"100%",multlineIndent:"1em"}}})},2255:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.FlalignItem=e.MultlineItem=void 0;var a=r(3435),l=s(r(5174)),c=s(r(4454)),u=s(r(2085)),h=r(3431),p=function(t){function e(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=t.call(this,e)||this;return i.factory.configuration.tags.start("multline",!0,r[0]),i}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"multline"},enumerable:!1,configurable:!0}),e.prototype.EndEntry=function(){this.table.length&&l.default.fixInitialMO(this.factory.configuration,this.nodes);var t=this.getProperty("shove"),e=this.create("node","mtd",this.nodes,t?{columnalign:t}:{});this.setProperty("shove",null),this.row.push(e),this.Clear()},e.prototype.EndRow=function(){if(1!==this.row.length)throw new u.default("MultlineRowsOneCol","The rows within the %1 environment must have exactly one column","multline");var t=this.create("node","mtr",this.row);this.table.push(t),this.row=[]},e.prototype.EndTable=function(){if(t.prototype.EndTable.call(this),this.table.length){var e=this.table.length-1,r=-1;c.default.getAttribute(c.default.getChildren(this.table[0])[0],"columnalign")||c.default.setAttribute(c.default.getChildren(this.table[0])[0],"columnalign",h.TexConstant.Align.LEFT),c.default.getAttribute(c.default.getChildren(this.table[e])[0],"columnalign")||c.default.setAttribute(c.default.getChildren(this.table[e])[0],"columnalign",h.TexConstant.Align.RIGHT);var n=this.factory.configuration.tags.getTag();if(n){r=this.arraydef.side===h.TexConstant.Align.LEFT?0:this.table.length-1;var i=this.table[r],o=this.create("node","mlabeledtr",[n].concat(c.default.getChildren(i)));c.default.copyAttributes(i,o),this.table[r]=o}}this.factory.configuration.tags.end()},e}(a.ArrayItem);e.MultlineItem=p;var d=function(t){function e(e,r,n,i,o){var s=t.call(this,e)||this;return s.name=r,s.numbered=n,s.padded=i,s.center=o,s.factory.configuration.tags.start(r,n,n),s}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"flalign"},enumerable:!1,configurable:!0}),e.prototype.EndEntry=function(){t.prototype.EndEntry.call(this);var e=this.getProperty("xalignat");if(e&&this.row.length>e)throw new u.default("XalignOverflow","Extra %1 in row of %2","&",this.name)},e.prototype.EndRow=function(){for(var e,r=this.row,n=this.getProperty("xalignat");r.length<n;)r.push(this.create("node","mtd"));for(this.row=[],this.padded&&this.row.push(this.create("node","mtd"));e=r.shift();)this.row.push(e),(e=r.shift())&&this.row.push(e),(r.length||this.padded)&&this.row.push(this.create("node","mtd"));this.row.length>this.maxrow&&(this.maxrow=this.row.length),t.prototype.EndRow.call(this);var i=this.table[this.table.length-1];if(this.getProperty("zeroWidthLabel")&&i.isKind("mlabeledtr")){var s=c.default.getChildren(i)[0],a=this.factory.configuration.options.tagSide,l=o({width:0},"right"===a?{lspace:"-1width"}:{}),u=this.create("node","mpadded",c.default.getChildren(s),l);s.setChildren([u])}},e.prototype.EndTable=function(){(t.prototype.EndTable.call(this),this.center)&&(this.maxrow<=2&&(delete this.arraydef.width,delete this.global.indentalign))},e}(a.EqnArrayItem);e.FlalignItem=d},9102:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=r(8782),l=o(r(3403)),c=r(3431),u=s(r(4214)),h=s(r(5174)),p=r(8594),d=r(7661);new l.CharacterMap("AMSmath-mathchar0mo",u.default.mathchar0mo,{iiiint:["\u2a0c",{texClass:p.TEXCLASS.OP}]}),new l.RegExpMap("AMSmath-operatorLetter",a.AmsMethods.operatorLetter,/[-*]/i),new l.CommandMap("AMSmath-macros",{mathring:["Accent","02DA"],nobreakspace:"Tilde",negmedspace:["Spacer",d.MATHSPACE.negativemediummathspace],negthickspace:["Spacer",d.MATHSPACE.negativethickmathspace],idotsint:["MultiIntegral","\\int\\cdots\\int"],dddot:["Accent","20DB"],ddddot:["Accent","20DC"],sideset:"SideSet",boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],tag:"HandleTag",notag:"HandleNoTag",eqref:["HandleRef",!0],substack:["Macro","\\begin{subarray}{c}#1\\end{subarray}",1],injlim:["NamedOp","inj&thinsp;lim"],projlim:["NamedOp","proj&thinsp;lim"],varliminf:["Macro","\\mathop{\\underline{\\mmlToken{mi}{lim}}}"],varlimsup:["Macro","\\mathop{\\overline{\\mmlToken{mi}{lim}}}"],varinjlim:["Macro","\\mathop{\\underrightarrow{\\mmlToken{mi}{lim}}}"],varprojlim:["Macro","\\mathop{\\underleftarrow{\\mmlToken{mi}{lim}}}"],DeclareMathOperator:"HandleDeclareOp",operatorname:"HandleOperatorName",genfrac:"Genfrac",frac:["Genfrac","","","",""],tfrac:["Genfrac","","","","1"],dfrac:["Genfrac","","","","0"],binom:["Genfrac","(",")","0",""],tbinom:["Genfrac","(",")","0","1"],dbinom:["Genfrac","(",")","0","0"],cfrac:"CFrac",shoveleft:["HandleShove",c.TexConstant.Align.LEFT],shoveright:["HandleShove",c.TexConstant.Align.RIGHT],xrightarrow:["xArrow",8594,5,10],xleftarrow:["xArrow",8592,10,5]},a.AmsMethods),new l.EnvironmentMap("AMSmath-environment",u.default.environment,{"equation*":["Equation",null,!1],"eqnarray*":["EqnArray",null,!1,!0,"rcl",h.default.cols(0,d.MATHSPACE.thickmathspace),".5em"],align:["EqnArray",null,!0,!0,"rl",h.default.cols(0,2)],"align*":["EqnArray",null,!1,!0,"rl",h.default.cols(0,2)],multline:["Multline",null,!0],"multline*":["Multline",null,!1],split:["EqnArray",null,!1,!1,"rl",h.default.cols(0)],gather:["EqnArray",null,!0,!0,"c"],"gather*":["EqnArray",null,!1,!0,"c"],alignat:["AlignAt",null,!0,!0],"alignat*":["AlignAt",null,!1,!0],alignedat:["AlignAt",null,!1,!1],aligned:["AmsEqnArray",null,null,null,"rl",h.default.cols(0,2),".5em","D"],gathered:["AmsEqnArray",null,null,null,"c",null,".5em","D"],xalignat:["XalignAt",null,!0,!0],"xalignat*":["XalignAt",null,!1,!0],xxalignat:["XalignAt",null,!1,!1],flalign:["FlalignArray",null,!0,!1,!0,"rlc","auto auto fit"],"flalign*":["FlalignArray",null,!1,!1,!0,"rlc","auto auto fit"],subarray:["Array",null,null,null,null,h.default.cols(0),"0.1em","S",1],smallmatrix:["Array",null,null,null,"c",h.default.cols(1/3),".2em","S",1],matrix:["Array",null,null,null,"c"],pmatrix:["Array",null,"(",")","c"],bmatrix:["Array",null,"[","]","c"],Bmatrix:["Array",null,"\\{","\\}","c"],vmatrix:["Array",null,"\\vert","\\vert","c"],Vmatrix:["Array",null,"\\Vert","\\Vert","c"],cases:["Array",null,"\\{",".","ll",null,".2em","T"]},a.AmsMethods),new l.DelimiterMap("AMSmath-delimiter",u.default.delimiter,{"\\lvert":["|",{texClass:p.TEXCLASS.OPEN}],"\\rvert":["|",{texClass:p.TEXCLASS.CLOSE}],"\\lVert":["\u2016",{texClass:p.TEXCLASS.OPEN}],"\\rVert":["\u2016",{texClass:p.TEXCLASS.CLOSE}]}),new l.CharacterMap("AMSsymbols-mathchar0mi",u.default.mathchar0mi,{digamma:"\u03dd",varkappa:"\u03f0",varGamma:["\u0393",{mathvariant:c.TexConstant.Variant.ITALIC}],varDelta:["\u0394",{mathvariant:c.TexConstant.Variant.ITALIC}],varTheta:["\u0398",{mathvariant:c.TexConstant.Variant.ITALIC}],varLambda:["\u039b",{mathvariant:c.TexConstant.Variant.ITALIC}],varXi:["\u039e",{mathvariant:c.TexConstant.Variant.ITALIC}],varPi:["\u03a0",{mathvariant:c.TexConstant.Variant.ITALIC}],varSigma:["\u03a3",{mathvariant:c.TexConstant.Variant.ITALIC}],varUpsilon:["\u03a5",{mathvariant:c.TexConstant.Variant.ITALIC}],varPhi:["\u03a6",{mathvariant:c.TexConstant.Variant.ITALIC}],varPsi:["\u03a8",{mathvariant:c.TexConstant.Variant.ITALIC}],varOmega:["\u03a9",{mathvariant:c.TexConstant.Variant.ITALIC}],beth:"\u2136",gimel:"\u2137",daleth:"\u2138",backprime:["\u2035",{variantForm:!0}],hslash:"\u210f",varnothing:["\u2205",{variantForm:!0}],blacktriangle:"\u25b4",triangledown:["\u25bd",{variantForm:!0}],blacktriangledown:"\u25be",square:"\u25fb",Box:"\u25fb",blacksquare:"\u25fc",lozenge:"\u25ca",Diamond:"\u25ca",blacklozenge:"\u29eb",circledS:["\u24c8",{mathvariant:c.TexConstant.Variant.NORMAL}],bigstar:"\u2605",sphericalangle:"\u2222",measuredangle:"\u2221",nexists:"\u2204",complement:"\u2201",mho:"\u2127",eth:["\xf0",{mathvariant:c.TexConstant.Variant.NORMAL}],Finv:"\u2132",diagup:"\u2571",Game:"\u2141",diagdown:"\u2572",Bbbk:["k",{mathvariant:c.TexConstant.Variant.DOUBLESTRUCK}],yen:"\xa5",circledR:"\xae",checkmark:"\u2713",maltese:"\u2720"}),new l.CharacterMap("AMSsymbols-mathchar0mo",u.default.mathchar0mo,{dotplus:"\u2214",ltimes:"\u22c9",smallsetminus:["\u2216",{variantForm:!0}],rtimes:"\u22ca",Cap:"\u22d2",doublecap:"\u22d2",leftthreetimes:"\u22cb",Cup:"\u22d3",doublecup:"\u22d3",rightthreetimes:"\u22cc",barwedge:"\u22bc",curlywedge:"\u22cf",veebar:"\u22bb",curlyvee:"\u22ce",doublebarwedge:"\u2a5e",boxminus:"\u229f",circleddash:"\u229d",boxtimes:"\u22a0",circledast:"\u229b",boxdot:"\u22a1",circledcirc:"\u229a",boxplus:"\u229e",centerdot:["\u22c5",{variantForm:!0}],divideontimes:"\u22c7",intercal:"\u22ba",leqq:"\u2266",geqq:"\u2267",leqslant:"\u2a7d",geqslant:"\u2a7e",eqslantless:"\u2a95",eqslantgtr:"\u2a96",lesssim:"\u2272",gtrsim:"\u2273",lessapprox:"\u2a85",gtrapprox:"\u2a86",approxeq:"\u224a",lessdot:"\u22d6",gtrdot:"\u22d7",lll:"\u22d8",llless:"\u22d8",ggg:"\u22d9",gggtr:"\u22d9",lessgtr:"\u2276",gtrless:"\u2277",lesseqgtr:"\u22da",gtreqless:"\u22db",lesseqqgtr:"\u2a8b",gtreqqless:"\u2a8c",doteqdot:"\u2251",Doteq:"\u2251",eqcirc:"\u2256",risingdotseq:"\u2253",circeq:"\u2257",fallingdotseq:"\u2252",triangleq:"\u225c",backsim:"\u223d",thicksim:["\u223c",{variantForm:!0}],backsimeq:"\u22cd",thickapprox:["\u2248",{variantForm:!0}],subseteqq:"\u2ac5",supseteqq:"\u2ac6",Subset:"\u22d0",Supset:"\u22d1",sqsubset:"\u228f",sqsupset:"\u2290",preccurlyeq:"\u227c",succcurlyeq:"\u227d",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",precsim:"\u227e",succsim:"\u227f",precapprox:"\u2ab7",succapprox:"\u2ab8",vartriangleleft:"\u22b2",lhd:"\u22b2",vartriangleright:"\u22b3",rhd:"\u22b3",trianglelefteq:"\u22b4",unlhd:"\u22b4",trianglerighteq:"\u22b5",unrhd:"\u22b5",vDash:["\u22a8",{variantForm:!0}],Vdash:"\u22a9",Vvdash:"\u22aa",smallsmile:["\u2323",{variantForm:!0}],shortmid:["\u2223",{variantForm:!0}],smallfrown:["\u2322",{variantForm:!0}],shortparallel:["\u2225",{variantForm:!0}],bumpeq:"\u224f",between:"\u226c",Bumpeq:"\u224e",pitchfork:"\u22d4",varpropto:["\u221d",{variantForm:!0}],backepsilon:"\u220d",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",therefore:"\u2234",because:"\u2235",eqsim:"\u2242",vartriangle:["\u25b3",{variantForm:!0}],Join:"\u22c8",nless:"\u226e",ngtr:"\u226f",nleq:"\u2270",ngeq:"\u2271",nleqslant:["\u2a87",{variantForm:!0}],ngeqslant:["\u2a88",{variantForm:!0}],nleqq:["\u2270",{variantForm:!0}],ngeqq:["\u2271",{variantForm:!0}],lneq:"\u2a87",gneq:"\u2a88",lneqq:"\u2268",gneqq:"\u2269",lvertneqq:["\u2268",{variantForm:!0}],gvertneqq:["\u2269",{variantForm:!0}],lnsim:"\u22e6",gnsim:"\u22e7",lnapprox:"\u2a89",gnapprox:"\u2a8a",nprec:"\u2280",nsucc:"\u2281",npreceq:["\u22e0",{variantForm:!0}],nsucceq:["\u22e1",{variantForm:!0}],precneqq:"\u2ab5",succneqq:"\u2ab6",precnsim:"\u22e8",succnsim:"\u22e9",precnapprox:"\u2ab9",succnapprox:"\u2aba",nsim:"\u2241",ncong:"\u2247",nshortmid:["\u2224",{variantForm:!0}],nshortparallel:["\u2226",{variantForm:!0}],nmid:"\u2224",nparallel:"\u2226",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",ntriangleleft:"\u22ea",ntriangleright:"\u22eb",ntrianglelefteq:"\u22ec",ntrianglerighteq:"\u22ed",nsubseteq:"\u2288",nsupseteq:"\u2289",nsubseteqq:["\u2288",{variantForm:!0}],nsupseteqq:["\u2289",{variantForm:!0}],subsetneq:"\u228a",supsetneq:"\u228b",varsubsetneq:["\u228a",{variantForm:!0}],varsupsetneq:["\u228b",{variantForm:!0}],subsetneqq:"\u2acb",supsetneqq:"\u2acc",varsubsetneqq:["\u2acb",{variantForm:!0}],varsupsetneqq:["\u2acc",{variantForm:!0}],leftleftarrows:"\u21c7",rightrightarrows:"\u21c9",leftrightarrows:"\u21c6",rightleftarrows:"\u21c4",Lleftarrow:"\u21da",Rrightarrow:"\u21db",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",leftarrowtail:"\u21a2",rightarrowtail:"\u21a3",looparrowleft:"\u21ab",looparrowright:"\u21ac",leftrightharpoons:"\u21cb",rightleftharpoons:["\u21cc",{variantForm:!0}],curvearrowleft:"\u21b6",curvearrowright:"\u21b7",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",Lsh:"\u21b0",Rsh:"\u21b1",upuparrows:"\u21c8",downdownarrows:"\u21ca",upharpoonleft:"\u21bf",upharpoonright:"\u21be",downharpoonleft:"\u21c3",restriction:"\u21be",multimap:"\u22b8",downharpoonright:"\u21c2",leftrightsquigarrow:"\u21ad",rightsquigarrow:"\u21dd",leadsto:"\u21dd",dashrightarrow:"\u21e2",dashleftarrow:"\u21e0",nleftarrow:"\u219a",nrightarrow:"\u219b",nLeftarrow:"\u21cd",nRightarrow:"\u21cf",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce"}),new l.DelimiterMap("AMSsymbols-delimiter",u.default.delimiter,{"\\ulcorner":"\u231c","\\urcorner":"\u231d","\\llcorner":"\u231e","\\lrcorner":"\u231f"}),new l.CommandMap("AMSsymbols-macros",{implies:["Macro","\\;\\Longrightarrow\\;"],impliedby:["Macro","\\;\\Longleftarrow\\;"]},a.AmsMethods)},8782:function(t,e,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.NEW_OPS=e.AmsMethods=void 0;var s=o(r(5174)),a=o(r(4214)),l=o(r(4454)),c=r(3431),u=o(r(161)),h=o(r(2085)),p=r(3233),d=o(r(7890)),f=r(8594);function m(t){if(!t||t.isInferred&&0===t.childNodes.length)return[null,null];if(t.isKind("msubsup")&&y(t))return[t,null];var e=l.default.getChildAt(t,0);return t.isInferred&&e&&y(e)?(t.childNodes.splice(0,1),[e,t]):[null,t]}function y(t){var e=t.childNodes[0];return e&&e.isKind("mi")&&""===e.getText()}e.AmsMethods={},e.AmsMethods.AmsEqnArray=function(t,e,r,n,i,o,a){var l=t.GetBrackets("\\begin{"+e.getName()+"}"),c=d.default.EqnArray(t,e,r,n,i,o,a);return s.default.setArrayAlign(c,l,t)},e.AmsMethods.AlignAt=function(t,r,n,i){var o,a,l=r.getName(),c="",u=[];if(i||(a=t.GetBrackets("\\begin{"+l+"}")),(o=t.GetArgument("\\begin{"+l+"}")).match(/[^0-9]/))throw new h.default("PositiveIntegerArg","Argument to %1 must be a positive integer","\\begin{"+l+"}");for(var p=parseInt(o,10);p>0;)c+="rl",u.push("0em 0em"),p--;var d=u.join(" ");if(i)return e.AmsMethods.EqnArray(t,r,n,i,c,d);var f=e.AmsMethods.EqnArray(t,r,n,i,c,d);return s.default.setArrayAlign(f,a,i?null:t)},e.AmsMethods.Multline=function(t,e,r){t.Push(e),s.default.checkEqnEnv(t);var n=t.itemFactory.create("multline",r,t.stack);return n.arraydef={displaystyle:!0,rowspacing:".5em",columnspacing:"100%",width:t.options.ams.multlineWidth,side:t.options.tagSide,minlabelspacing:t.options.tagIndent,framespacing:t.options.ams.multlineIndent+" 0",frame:"","data-width-includes-label":!0},n},e.AmsMethods.XalignAt=function(t,r,n,i){var o=t.GetArgument("\\begin{"+r.getName()+"}");if(o.match(/[^0-9]/))throw new h.default("PositiveIntegerArg","Argument to %1 must be a positive integer","\\begin{"+r.getName()+"}");var s=i?"crl":"rlc",a=i?"fit auto auto":"auto auto fit",l=e.AmsMethods.FlalignArray(t,r,n,i,!1,s,a,!0);return l.setProperty("xalignat",2*parseInt(o)),l},e.AmsMethods.FlalignArray=function(t,e,r,n,i,o,a,l){void 0===l&&(l=!1),t.Push(e),s.default.checkEqnEnv(t),o=o.split("").join(" ").replace(/r/g,"right").replace(/l/g,"left").replace(/c/g,"center");var c=t.itemFactory.create("flalign",e.getName(),r,n,i,t.stack);return c.arraydef={width:"100%",displaystyle:!0,columnalign:o,columnspacing:"0em",columnwidth:a,rowspacing:"3pt",side:t.options.tagSide,minlabelspacing:l?"0":t.options.tagIndent,"data-width-includes-label":!0},c.setProperty("zeroWidthLabel",l),c},e.NEW_OPS="ams-declare-ops",e.AmsMethods.HandleDeclareOp=function(t,r){var n=t.GetStar()?"*":"",i=s.default.trimSpaces(t.GetArgument(r));"\\"===i.charAt(0)&&(i=i.substr(1));var o=t.GetArgument(r);t.configuration.handlers.retrieve(e.NEW_OPS).add(i,new p.Macro(i,e.AmsMethods.Macro,["\\operatorname".concat(n,"{").concat(o,"}")]))},e.AmsMethods.HandleOperatorName=function(t,e){var r=t.GetStar(),i=s.default.trimSpaces(t.GetArgument(e)),o=new u.default(i,n(n({},t.stack.env),{font:c.TexConstant.Variant.NORMAL,multiLetterIdentifiers:/^[-*a-z]+/i,operatorLetters:!0}),t.configuration).mml();if(o.isKind("mi")||(o=t.create("node","TeXAtom",[o])),l.default.setProperties(o,{movesupsub:r,movablelimits:!0,texClass:f.TEXCLASS.OP}),!r){var a=t.GetNext(),h=t.i;"\\"===a&&++t.i&&"limits"!==t.GetCS()&&(t.i=h)}t.Push(t.itemFactory.create("fn",o))},e.AmsMethods.SideSet=function(t,e){var r=i(m(t.ParseArg(e)),2),n=r[0],o=r[1],a=i(m(t.ParseArg(e)),2),c=a[0],u=a[1],h=t.ParseArg(e),p=h;n&&(o?n.replaceChild(t.create("node","mphantom",[t.create("node","mpadded",[s.default.copyNode(h,t)],{width:0})]),l.default.getChildAt(n,0)):(p=t.create("node","mmultiscripts",[h]),c&&l.default.appendChildren(p,[l.default.getChildAt(c,1)||t.create("node","none"),l.default.getChildAt(c,2)||t.create("node","none")]),l.default.setProperty(p,"scriptalign","left"),l.default.appendChildren(p,[t.create("node","mprescripts"),l.default.getChildAt(n,1)||t.create("node","none"),l.default.getChildAt(n,2)||t.create("node","none")]))),c&&p===h&&(c.replaceChild(h,l.default.getChildAt(c,0)),p=c);var d=t.create("node","TeXAtom",[],{texClass:f.TEXCLASS.OP,movesupsub:!0,movablelimits:!0});o&&(n&&d.appendChild(n),d.appendChild(o)),d.appendChild(p),u&&d.appendChild(u),t.Push(d)},e.AmsMethods.operatorLetter=function(t,e){return!!t.stack.env.operatorLetters&&a.default.variable(t,e)},e.AmsMethods.MultiIntegral=function(t,e,r){var n=t.GetNext();if("\\"===n){var i=t.i;n=t.GetArgument(e),t.i=i,"\\limits"===n&&(r="\\idotsint"===e?"\\!\\!\\mathop{\\,\\,"+r+"}":"\\!\\!\\!\\mathop{\\,\\,\\,"+r+"}")}t.string=r+" "+t.string.slice(t.i),t.i=0},e.AmsMethods.xArrow=function(t,e,r,n,i){var o={width:"+"+s.default.Em((n+i)/18),lspace:s.default.Em(n/18)},a=t.GetBrackets(e),c=t.ParseArg(e),h=t.create("node","mspace",[],{depth:".25em"}),p=t.create("token","mo",{stretchy:!0,texClass:f.TEXCLASS.REL},String.fromCodePoint(r));p=t.create("node","mstyle",[p],{scriptlevel:0});var d=t.create("node","munderover",[p]),m=t.create("node","mpadded",[c,h],o);if(l.default.setAttribute(m,"voffset","-.2em"),l.default.setAttribute(m,"height","-.2em"),l.default.setChild(d,d.over,m),a){var y=new u.default(a,t.stack.env,t.configuration).mml(),g=t.create("node","mspace",[],{height:".75em"});m=t.create("node","mpadded",[y,g],o),l.default.setAttribute(m,"voffset",".15em"),l.default.setAttribute(m,"depth","-.15em"),l.default.setChild(d,d.under,m)}l.default.setProperty(d,"subsupOK",!0),t.Push(d)},e.AmsMethods.HandleShove=function(t,e,r){var n=t.stack.Top();if("multline"!==n.kind)throw new h.default("CommandOnlyAllowedInEnv","%1 only allowed in %2 environment",t.currentCS,"multline");if(n.Size())throw new h.default("CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",t.currentCS);n.setProperty("shove",r)},e.AmsMethods.CFrac=function(t,e){var r=s.default.trimSpaces(t.GetBrackets(e,"")),n=t.GetArgument(e),i=t.GetArgument(e),o={l:c.TexConstant.Align.LEFT,r:c.TexConstant.Align.RIGHT,"":""},a=new u.default("\\strut\\textstyle{"+n+"}",t.stack.env,t.configuration).mml(),p=new u.default("\\strut\\textstyle{"+i+"}",t.stack.env,t.configuration).mml(),d=t.create("node","mfrac",[a,p]);if(null==(r=o[r]))throw new h.default("IllegalAlign","Illegal alignment specified in %1",t.currentCS);r&&l.default.setProperties(d,{numalign:r,denomalign:r}),t.Push(d)},e.AmsMethods.Genfrac=function(t,e,r,n,i,o){null==r&&(r=t.GetDelimiterArg(e)),null==n&&(n=t.GetDelimiterArg(e)),null==i&&(i=t.GetArgument(e)),null==o&&(o=s.default.trimSpaces(t.GetArgument(e)));var a=t.ParseArg(e),c=t.ParseArg(e),u=t.create("node","mfrac",[a,c]);if(""!==i&&l.default.setAttribute(u,"linethickness",i),(r||n)&&(l.default.setProperty(u,"withDelims",!0),u=s.default.fixedFence(t.configuration,r,u,n)),""!==o){var p=parseInt(o,10),d=["D","T","S","SS"][p];if(null==d)throw new h.default("BadMathStyleFor","Bad math style for %1",t.currentCS);u=t.create("node","mstyle",[u]),"D"===d?l.default.setProperties(u,{displaystyle:!0,scriptlevel:0}):l.default.setProperties(u,{displaystyle:!1,scriptlevel:p-1})}t.Push(u)},e.AmsMethods.HandleTag=function(t,e){if(!t.tags.currentTag.taggable&&t.tags.env)throw new h.default("CommandNotAllowedInEnv","%1 not allowed in %2 environment",t.currentCS,t.tags.env);if(t.tags.currentTag.tag)throw new h.default("MultipleCommand","Multiple %1",t.currentCS);var r=t.GetStar(),n=s.default.trimSpaces(t.GetArgument(e));t.tags.tag(n,r)},e.AmsMethods.HandleNoTag=d.default.HandleNoTag,e.AmsMethods.HandleRef=d.default.HandleRef,e.AmsMethods.Macro=d.default.Macro,e.AmsMethods.Accent=d.default.Accent,e.AmsMethods.Tilde=d.default.Tilde,e.AmsMethods.Array=d.default.Array,e.AmsMethods.Spacer=d.default.Spacer,e.AmsMethods.NamedOp=d.default.NamedOp,e.AmsMethods.EqnArray=d.default.EqnArray,e.AmsMethods.Equation=d.default.Equation},3318:function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AutoloadConfiguration=void 0;var o=r(6181),s=r(3403),a=r(3233),l=r(3707),c=r(894),u=r(7173);function h(t,e,r,o){var s,a,u,h;if(c.Package.packages.has(t.options.require.prefix+r)){var f=t.options.autoload[r],m=n(2===f.length&&Array.isArray(f[0])?f:[f,[]],2),y=m[0],g=m[1];try{for(var b=i(y),v=b.next();!v.done;v=b.next()){var M=v.value;p.remove(M)}}catch(t){s={error:t}}finally{try{v&&!v.done&&(a=b.return)&&a.call(b)}finally{if(s)throw s.error}}try{for(var O=i(g),x=O.next();!x.done;x=O.next()){var S=x.value;d.remove(S)}}catch(t){u={error:t}}finally{try{x&&!x.done&&(h=O.return)&&h.call(O)}finally{if(u)throw u.error}}t.string=(o?e+" ":"\\begin{"+e.slice(1)+"}")+t.string.slice(t.i),t.i=0}(0,l.RequireLoad)(t,r)}var p=new s.CommandMap("autoload-macros",{},{}),d=new s.CommandMap("autoload-environments",{},{});e.AutoloadConfiguration=o.Configuration.create("autoload",{handler:{macro:["autoload-macros"],environment:["autoload-environments"]},options:{autoload:(0,u.expandable)({action:["toggle","mathtip","texttip"],amscd:[[],["CD"]],bbox:["bbox"],boldsymbol:["boldsymbol"],braket:["bra","ket","braket","set","Bra","Ket","Braket","Set","ketbra","Ketbra"],bussproofs:[[],["prooftree"]],cancel:["cancel","bcancel","xcancel","cancelto"],color:["color","definecolor","textcolor","colorbox","fcolorbox"],enclose:["enclose"],extpfeil:["xtwoheadrightarrow","xtwoheadleftarrow","xmapsto","xlongequal","xtofrom","Newextarrow"],html:["data","href","class","style","cssId"],mhchem:["ce","pu"],newcommand:["newcommand","renewcommand","newenvironment","renewenvironment","def","let"],unicode:["unicode"],verb:["verb"]})},config:function(t,e){var r,o,s,c,u,f,m=e.parseOptions,y=m.handlers.get("macro"),g=m.handlers.get("environment"),b=m.options.autoload;m.packageData.set("autoload",{Autoload:h});try{for(var v=i(Object.keys(b)),M=v.next();!M.done;M=v.next()){var O=M.value,x=b[O],S=n(2===x.length&&Array.isArray(x[0])?x:[x,[]],2),E=S[0],C=S[1];try{for(var _=(s=void 0,i(E)),A=_.next();!A.done;A=_.next()){var N=A.value;y.lookup(N)&&"color"!==N||p.add(N,new a.Macro(N,h,[O,!0]))}}catch(t){s={error:t}}finally{try{A&&!A.done&&(c=_.return)&&c.call(_)}finally{if(s)throw s.error}}try{for(var w=(u=void 0,i(C)),T=w.next();!T.done;T=w.next()){var L=T.value;g.lookup(L)||d.add(L,new a.Macro(L,h,[O,!1]))}}catch(t){u={error:t}}finally{try{T&&!T.done&&(f=w.return)&&f.call(w)}finally{if(u)throw u.error}}}}catch(t){r={error:t}}finally{try{M&&!M.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}m.packageData.get("require")||l.RequireConfiguration.config(t,e)},init:function(t){t.options.require||(0,u.defaultOptions)(t.options,l.RequireConfiguration.options)},priority:10})},7763:function(t,e,r){"use strict";var n,i,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),l=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&s(e,t,r);return a(e,t),e},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseConfiguration=e.BaseTags=e.Other=void 0;var h=r(6181),p=r(6685),d=u(r(2085)),f=u(r(4454)),m=r(3403),y=l(r(3435)),g=r(3983);r(3613);var b=r(5891);function v(t,e){var r=t.stack.env.font?{mathvariant:t.stack.env.font}:{},n=p.MapHandler.getMap("remap").lookup(e),i=(0,b.getRange)(e),o=i?i[3]:"mo",s=t.create("token",o,r,n?n.char:e);i[4]&&s.attributes.set("mathvariant",i[4]),"mo"===o&&(f.default.setProperty(s,"fixStretchy",!0),t.configuration.addNode("fixStretchy",s)),t.Push(s)}new m.CharacterMap("remap",null,{"-":"\u2212","*":"\u2217","`":"\u2018"}),e.Other=v;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(g.AbstractTags);e.BaseTags=M,e.BaseConfiguration=h.Configuration.create("base",{handler:{character:["command","special","letter","digit"],delimiter:["delimiter"],macro:["delimiter","macros","mathchar0mi","mathchar0mo","mathchar7"],environment:["environment"]},fallback:{character:v,macro:function(t,e){throw new d.default("UndefinedControlSequence","Undefined control sequence %1","\\"+e)},environment:function(t,e){throw new d.default("UnknownEnv","Unknown environment '%1'",e)}},items:(i={},i[y.StartItem.prototype.kind]=y.StartItem,i[y.StopItem.prototype.kind]=y.StopItem,i[y.OpenItem.prototype.kind]=y.OpenItem,i[y.CloseItem.prototype.kind]=y.CloseItem,i[y.PrimeItem.prototype.kind]=y.PrimeItem,i[y.SubsupItem.prototype.kind]=y.SubsupItem,i[y.OverItem.prototype.kind]=y.OverItem,i[y.LeftItem.prototype.kind]=y.LeftItem,i[y.Middle.prototype.kind]=y.Middle,i[y.RightItem.prototype.kind]=y.RightItem,i[y.BreakItem.prototype.kind]=y.BreakItem,i[y.BeginItem.prototype.kind]=y.BeginItem,i[y.EndItem.prototype.kind]=y.EndItem,i[y.StyleItem.prototype.kind]=y.StyleItem,i[y.PositionItem.prototype.kind]=y.PositionItem,i[y.CellItem.prototype.kind]=y.CellItem,i[y.MmlItem.prototype.kind]=y.MmlItem,i[y.FnItem.prototype.kind]=y.FnItem,i[y.NotItem.prototype.kind]=y.NotItem,i[y.NonscriptItem.prototype.kind]=y.NonscriptItem,i[y.DotsItem.prototype.kind]=y.DotsItem,i[y.ArrayItem.prototype.kind]=y.ArrayItem,i[y.EqnArrayItem.prototype.kind]=y.EqnArrayItem,i[y.EquationItem.prototype.kind]=y.EquationItem,i[y.MstyleItem.prototype.kind]=y.MstyleItem,i),options:{maxMacros:1e3,baseURL:"undefined"==typeof document||0===document.getElementsByTagName("base").length?"":String(document.location).replace(/#.*$/,"")},tags:{base:M},postprocessors:[[function(t){var e,r,n=t.data;try{for(var i=c(n.getList("nonscript")),o=i.next();!o.done;o=i.next()){var s=o.value;if(s.attributes.get("scriptlevel")>0){var a=s.parent;if(a.childNodes.splice(a.childIndex(s),1),n.removeFromList(s.kind,[s]),s.isKind("mrow")){var l=s.childNodes[0];n.removeFromList("mstyle",[l]),n.removeFromList("mspace",l.childNodes[0].childNodes)}}else s.isKind("mrow")&&(s.parent.replaceChild(s.childNodes[0],s),n.removeFromList("mrow",[s]))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}},-4]]})},3435:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.EquationItem=e.MstyleItem=e.EqnArrayItem=e.ArrayItem=e.DotsItem=e.NonscriptItem=e.NotItem=e.FnItem=e.MmlItem=e.CellItem=e.PositionItem=e.StyleItem=e.EndItem=e.BeginItem=e.BreakItem=e.RightItem=e.Middle=e.LeftItem=e.OverItem=e.SubsupItem=e.PrimeItem=e.CloseItem=e.OpenItem=e.StopItem=e.StartItem=void 0;var c=r(6685),u=r(6913),h=r(8594),p=l(r(2085)),d=l(r(5174)),f=l(r(4454)),m=r(4066),y=function(t){function e(e,r){var n=t.call(this,e)||this;return n.global=r,n}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"start"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(e){if(e.isKind("stop")){var r=this.toMml();return this.global.isInner||(r=this.factory.configuration.tags.finalize(r,this.env)),[[this.factory.create("mml",r)],!0]}return t.prototype.checkItem.call(this,e)},e}(m.BaseItem);e.StartItem=y;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"stop"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),e}(m.BaseItem);e.StopItem=g;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"open"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(e){if(e.isKind("close")){var r=this.toMml(),n=this.create("node","TeXAtom",[r]);return[[this.factory.create("mml",n)],!0]}return t.prototype.checkItem.call(this,e)},e.errors=Object.assign(Object.create(m.BaseItem.errors),{stop:["ExtraOpenMissingClose","Extra open brace or missing close brace"]}),e}(m.BaseItem);e.OpenItem=b;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"close"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),e}(m.BaseItem);e.CloseItem=v;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"prime"},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(t){var e=o(this.Peek(2),2),r=e[0],n=e[1];return!f.default.isType(r,"msubsup")||f.default.isType(r,"msup")?[[this.create("node","msup",[r,n]),t],!0]:(f.default.setChild(r,r.sup,n),[[r,t],!0])},e}(m.BaseItem);e.PrimeItem=M;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"subsup"},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(e){if(e.isKind("open")||e.isKind("left"))return m.BaseItem.success;var r=this.First,n=this.getProperty("position");if(e.isKind("mml")){if(this.getProperty("primes"))if(2!==n)f.default.setChild(r,2,this.getProperty("primes"));else{f.default.setProperty(this.getProperty("primes"),"variantForm",!0);var i=this.create("node","mrow",[this.getProperty("primes"),e.First]);e.First=i}return f.default.setChild(r,n,e.First),null!=this.getProperty("movesupsub")&&f.default.setProperty(r,"movesupsub",this.getProperty("movesupsub")),[[this.factory.create("mml",r)],!0]}if(t.prototype.checkItem.call(this,e)[1]){var a=this.getErrors(["","sub","sup"][n]);throw new(p.default.bind.apply(p.default,s([void 0,a[0],a[1]],o(a.splice(2)),!1)))}return null},e.errors=Object.assign(Object.create(m.BaseItem.errors),{stop:["MissingScript","Missing superscript or subscript argument"],sup:["MissingOpenForSup","Missing open brace for superscript"],sub:["MissingOpenForSub","Missing open brace for subscript"]}),e}(m.BaseItem);e.SubsupItem=O;var x=function(t){function e(e){var r=t.call(this,e)||this;return r.setProperty("name","\\over"),r}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"over"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(e){if(e.isKind("over"))throw new p.default("AmbiguousUseOf","Ambiguous use of %1",e.getName());if(e.isClose){var r=this.create("node","mfrac",[this.getProperty("num"),this.toMml(!1)]);return null!=this.getProperty("thickness")&&f.default.setAttribute(r,"linethickness",this.getProperty("thickness")),(this.getProperty("open")||this.getProperty("close"))&&(f.default.setProperty(r,"withDelims",!0),r=d.default.fixedFence(this.factory.configuration,this.getProperty("open"),r,this.getProperty("close"))),[[this.factory.create("mml",r),e],!0]}return t.prototype.checkItem.call(this,e)},e.prototype.toString=function(){return"over["+this.getProperty("num")+" / "+this.nodes.join("; ")+"]"},e}(m.BaseItem);e.OverItem=x;var S=function(t){function e(e,r){var n=t.call(this,e)||this;return n.setProperty("delim",r),n}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"left"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(e){if(e.isKind("right"))return[[this.factory.create("mml",d.default.fenced(this.factory.configuration,this.getProperty("delim"),this.toMml(),e.getProperty("delim"),"",e.getProperty("color")))],!0];if(e.isKind("middle")){var r={stretchy:!0};return e.getProperty("color")&&(r.mathcolor=e.getProperty("color")),this.Push(this.create("node","TeXAtom",[],{texClass:h.TEXCLASS.CLOSE}),this.create("token","mo",r,e.getProperty("delim")),this.create("node","TeXAtom",[],{texClass:h.TEXCLASS.OPEN})),this.env={},[[this],!0]}return t.prototype.checkItem.call(this,e)},e.errors=Object.assign(Object.create(m.BaseItem.errors),{stop:["ExtraLeftMissingRight","Extra \\left or missing \\right"]}),e}(m.BaseItem);e.LeftItem=S;var E=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.setProperty("delim",r),n&&i.setProperty("color",n),i}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"middle"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),e}(m.BaseItem);e.Middle=E;var C=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.setProperty("delim",r),n&&i.setProperty("color",n),i}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"right"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),e}(m.BaseItem);e.RightItem=C;var _=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.setProperty("linebreak",r),i.setProperty("insert",n),i}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"break"},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(t){var e,r,n=this.getProperty("linebreak");if(t.isKind("mml")){var i=t.First;if(i.isKind("mo")){if("after"!==((null===(r=null===(e=f.default.getOp(i))||void 0===e?void 0:e[3])||void 0===r?void 0:r.linebreakstyle)||f.default.getAttribute(i,"linebreakstyle")))return f.default.setAttribute(i,"linebreak",n),[[t],!0];if(!this.getProperty("insert"))return[[t],!0]}}var o=this.create("token","mo",{linebreak:n});return[[this.factory.create("mml",o),t],!0]},e}(m.BaseItem);e.BreakItem=_;var A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"begin"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(e){if(e.isKind("end")){if(e.getName()!==this.getName())throw new p.default("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),e.getName());return this.getProperty("end")?m.BaseItem.fail:[[this.factory.create("mml",this.toMml())],!0]}if(e.isKind("stop"))throw new p.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return t.prototype.checkItem.call(this,e)},e}(m.BaseItem);e.BeginItem=A;var N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"end"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),e}(m.BaseItem);e.EndItem=N;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"style"},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(e){if(!e.isClose)return t.prototype.checkItem.call(this,e);var r=this.create("node","mstyle",this.nodes,this.getProperty("styles"));return[[this.factory.create("mml",r),e],!0]},e}(m.BaseItem);e.StyleItem=w;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"position"},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(e){if(e.isClose)throw new p.default("MissingBoxFor","Missing box for %1",this.getName());if(e.isFinal){var r=e.toMml();switch(this.getProperty("move")){case"vertical":return r=this.create("node","mpadded",[r],{height:this.getProperty("dh"),depth:this.getProperty("dd"),voffset:this.getProperty("dh")}),[[this.factory.create("mml",r)],!0];case"horizontal":return[[this.factory.create("mml",this.getProperty("left")),e,this.factory.create("mml",this.getProperty("right"))],!0]}}return t.prototype.checkItem.call(this,e)},e}(m.BaseItem);e.PositionItem=T;var L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"cell"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),e}(m.BaseItem);e.CellItem=L;var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"isFinal",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"kind",{get:function(){return"mml"},enumerable:!1,configurable:!0}),e}(m.BaseItem);e.MmlItem=P;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"fn"},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(e){var r=this.First;if(r){if(e.isOpen)return m.BaseItem.success;if(!e.isKind("fn")){var n=e.First;if(!e.isKind("mml")||!n)return[[r,e],!0];if(f.default.isType(n,"mstyle")&&n.childNodes.length&&f.default.isType(n.childNodes[0].childNodes[0],"mspace")||f.default.isType(n,"mspace"))return[[r,e],!0];f.default.isEmbellished(n)&&(n=f.default.getCoreMO(n));var i=f.default.getForm(n);if(null!=i&&[0,0,1,1,0,1,1,0,0,0][i[2]])return[[r,e],!0]}var o=this.create("token","mo",{texClass:h.TEXCLASS.NONE},u.entities.ApplyFunction);return[[r,o,e],!0]}return t.prototype.checkItem.apply(this,arguments)},e}(m.BaseItem);e.FnItem=k;var I=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.remap=c.MapHandler.getMap("not_remap"),e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"not"},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(t){var e,r,n;if(t.isKind("open")||t.isKind("left"))return m.BaseItem.success;if(t.isKind("mml")&&(f.default.isType(t.First,"mo")||f.default.isType(t.First,"mi")||f.default.isType(t.First,"mtext"))&&(e=t.First,1===(r=f.default.getText(e)).length&&!f.default.getProperty(e,"movesupsub")&&1===f.default.getChildren(e).length))return this.remap.contains(r)?(n=this.create("text",this.remap.lookup(r).char),f.default.setChild(e,0,n)):(n=this.create("text","\u0338"),f.default.appendChildren(e,[n])),[[t],!0];n=this.create("text","\u29f8");var i=this.create("node","mtext",[],{},n),o=this.create("node","mpadded",[i],{width:0});return[[e=this.create("node","TeXAtom",[o],{texClass:h.TEXCLASS.REL}),t],!0]},e}(m.BaseItem);e.NotItem=I;var R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"nonscript"},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(t){if(t.isKind("mml")&&1===t.Size()){var e=t.First;if(e.isKind("mstyle")&&e.notParent&&(e=f.default.getChildren(f.default.getChildren(e)[0])[0]),e.isKind("mspace")){if(e!==t.First){var r=this.create("node","mrow",[t.Pop()]);t.Push(r)}this.factory.configuration.addNode("nonscript",t.First)}}return[[t],!0]},e}(m.BaseItem);e.NonscriptItem=R;var j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"dots"},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(t){if(t.isKind("open")||t.isKind("left"))return m.BaseItem.success;var e=this.getProperty("ldots"),r=t.First;if(t.isKind("mml")&&f.default.isEmbellished(r)){var n=f.default.getTexClass(f.default.getCoreMO(r));n!==h.TEXCLASS.BIN&&n!==h.TEXCLASS.REL||(e=this.getProperty("cdots"))}return[[e,t],!0]},e}(m.BaseItem);e.DotsItem=j;var B=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.table=[],e.row=[],e.frame=[],e.hfill=[],e.arraydef={},e.cstart=[],e.cend=[],e.cextra=[],e.atEnd=!1,e.ralign=[],e.dashed=!1,e}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"array"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"copyEnv",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(e){if(e.isClose&&!e.isKind("over")){if(e.getProperty("isEntry"))return this.EndEntry(),this.clearEnv(),this.StartEntry(),m.BaseItem.fail;if(e.getProperty("isCR"))return this.EndEntry(),this.EndRow(),this.clearEnv(),this.StartEntry(),m.BaseItem.fail;this.EndTable(),this.clearEnv();var r=this.factory.create("mml",this.createMml());if(this.getProperty("requireClose")){if(e.isKind("close"))return[[r],!0];throw new p.default("MissingCloseBrace","Missing close brace")}return[[r,e],!0]}return t.prototype.checkItem.call(this,e)},e.prototype.createMml=function(){var t=this.arraydef.scriptlevel;delete this.arraydef.scriptlevel;var e=this.create("node","mtable",this.table,this.arraydef);return t&&e.setProperty("scriptlevel",t),this.getProperty("arrayPadding")&&(f.default.setAttribute(e,"frame",""),f.default.setAttribute(e,"framespacing",this.getProperty("arrayPadding"))),4===this.frame.length?f.default.setAttribute(e,"frame",this.dashed?"dashed":"solid"):this.frame.length&&(this.arraydef.rowlines&&(this.arraydef.rowlines=this.arraydef.rowlines.replace(/none( none)+$/,"none")),this.getProperty("arrayPadding")||f.default.removeAttribute(e,"frame"),e=this.create("node","menclose",[e],{notation:this.frame.join(" ")}),"none"===(this.arraydef.columnlines||"none")&&"none"===(this.arraydef.rowlines||"none")||f.default.setAttribute(e,"data-padding",0)),(this.getProperty("open")||this.getProperty("close"))&&(e=d.default.fenced(this.factory.configuration,this.getProperty("open"),e,this.getProperty("close"))),e},e.prototype.StartEntry=function(){var t=this.row.length,e=this.cstart[t],r=this.cend[t],n=this.ralign[t],i=this.cextra;if(e||r||n||i[t]||i[t+1]){var s=o(this.getEntry(),4),a=s[0],l=s[1],c=s[2],u=s[3];if(!i[t]||this.atEnd&&!i[t+1]||(e+="&"),"&"!==c&&(u=!!l.trim()||!(!t&&"\\end"===c.substr(0,4)),i[t+1]&&!i[t]&&(r=(r||"")+"&",this.atEnd=!0)),u||a){var h=this.parser;u&&(e&&(l=d.default.addArgs(h,e,l)),r&&(l=d.default.addArgs(h,l,r)),n&&(l="\\text{"+l.trim()+"}")),a&&(l=d.default.addArgs(h,a,l)),h.string=d.default.addArgs(h,l,h.string),h.i=0}}},e.prototype.getEntry=function(){for(var t,e=this.parser,r=/^([^]*?)([&{}]|\\\\|\\(?:begin|end)\{array\}|\\cr|\\)/,n=0,i=0,o=e.i,s=["","","",!1];null!==(t=e.string.slice(o).match(r));)switch(o+=t[0].length,t[2]){case"\\":o++;break;case"{":n++;break;case"}":if(!n)return s;n--;break;case"\\begin{array}":!n&&i++;break;case"\\end{array}":if(!n&&i){i--;break}default:if(n||i)continue;o-=t[2].length;var a=e.string.slice(e.i,o).trim(),l=a.match(/^(?:\s*\\(?:hline|hfil{1,3}|rowcolor\s*\{.*?\}))+/);return l&&(a=a.slice(l[0].length)),e.string=e.string.slice(o),e.i=0,[(null==l?void 0:l[0])||"",a,t[2],!0]}return s},e.prototype.EndEntry=function(){var t=this.create("node","mtd",this.nodes);this.hfill.length&&(0===this.hfill[0]&&f.default.setAttribute(t,"columnalign","right"),this.hfill[this.hfill.length-1]===this.Size()&&f.default.setAttribute(t,"columnalign",f.default.getAttribute(t,"columnalign")?"center":"left"));var e=this.ralign[this.row.length];if(e){var r=o(e,3),n=r[0],i=r[1],s=r[2],a=this.create("node","TeXAtom",[this.create("node","mpadded",t.childNodes[0].childNodes,{width:i,"data-overflow":"auto","data-align":s})],{texClass:n});t.childNodes[0].childNodes=[],t.appendChild(a)}this.row.push(t),this.Clear(),this.hfill=[]},e.prototype.EndRow=function(){var t;this.getProperty("isNumbered")&&3===this.row.length?(this.row.unshift(this.row.pop()),t=this.create("node","mlabeledtr",this.row)):t=this.create("node","mtr",this.row),this.table.push(t),this.row=[],this.atEnd=!1},e.prototype.EndTable=function(){(this.Size()||this.row.length)&&(this.EndEntry(),this.EndRow()),this.checkLines()},e.prototype.checkLines=function(){if(this.arraydef.rowlines){var t=this.arraydef.rowlines.split(/ /);t.length===this.table.length?(this.frame.push("bottom"),t.pop(),this.arraydef.rowlines=t.join(" ")):t.length<this.table.length-1&&(this.arraydef.rowlines+=" none")}if(this.getProperty("rowspacing")){for(var e=this.arraydef.rowspacing.split(/ /);e.length<this.table.length;)e.push(this.getProperty("rowspacing")+"em");this.arraydef.rowspacing=e.join(" ")}},e.prototype.addRowSpacing=function(t){if(this.arraydef.rowspacing){var e=this.arraydef.rowspacing.split(/ /);if(!this.getProperty("rowspacing")){var r=d.default.dimen2em(e[0]);this.setProperty("rowspacing",r)}for(var n=this.getProperty("rowspacing");e.length<this.table.length;)e.push(d.default.Em(n));e[this.table.length-1]=d.default.Em(Math.max(0,n+d.default.dimen2em(t))),this.arraydef.rowspacing=e.join(" ")}},e}(m.BaseItem);e.ArrayItem=B;var D=function(t){function e(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=t.call(this,e)||this;return i.maxrow=0,i.factory.configuration.tags.start(r[0],r[2],r[1]),i}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"eqnarray"},enumerable:!1,configurable:!0}),e.prototype.EndEntry=function(){this.row.length&&d.default.fixInitialMO(this.factory.configuration,this.nodes);var t=this.create("node","mtd",this.nodes);this.row.push(t),this.Clear()},e.prototype.EndRow=function(){this.row.length>this.maxrow&&(this.maxrow=this.row.length);var t="mtr",e=this.factory.configuration.tags.getTag();e&&(this.row=[e].concat(this.row),t="mlabeledtr"),this.factory.configuration.tags.clearTag();var r=this.create("node",t,this.row);this.table.push(r),this.row=[]},e.prototype.EndTable=function(){t.prototype.EndTable.call(this),this.factory.configuration.tags.end(),this.extendArray("columnalign",this.maxrow),this.extendArray("columnwidth",this.maxrow),this.extendArray("columnspacing",this.maxrow-1),this.addIndentshift()},e.prototype.extendArray=function(t,e){if(this.arraydef[t]){var r=this.arraydef[t].split(/ /),n=s([],o(r),!1);if(n.length>1){for(;n.length<e;)n.push.apply(n,s([],o(r),!1));this.arraydef[t]=n.slice(0,e).join(" ")}}},e.prototype.addIndentshift=function(){var t,e,r,n;if(this.arraydef.columnalign){var i=this.arraydef.columnalign.split(/ /),o="";try{for(var s=a(i.keys()),l=s.next();!l.done;l=s.next()){var c=l.value;if("left"===i[c]){var u="center"===o?".7em":"2em";try{for(var h=(r=void 0,a(this.table)),p=h.next();!p.done;p=h.next()){var d=p.value,f=d.childNodes[d.isKind("mlabeledtr")?c+1:c];if(f){var m=this.create("node","mstyle",f.childNodes[0].childNodes,{indentshift:u});f.childNodes[0].childNodes=[],f.appendChild(m)}}}catch(t){r={error:t}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}}o=i[c]}}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}}},e}(B);e.EqnArrayItem=D;var F=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.attrList=r,i.setProperty("name",n),i}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"mstyle"},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(e){return e.isKind("end")&&e.getName()===this.getName()?[[this.create("node","mstyle",[this.toMml()],this.attrList)],!0]:t.prototype.checkItem.call(this,e)},e}(A);e.MstyleItem=F;var H=function(t){function e(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=t.call(this,e)||this;return i.factory.configuration.tags.start("equation",!0,r[0]),i}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"equation"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(e){if(e.isKind("end")){var r=this.toMml(),n=this.factory.configuration.tags.getTag();return this.factory.configuration.tags.end(),[[n?this.factory.configuration.tags.enTag(r,n):r,e],!0]}if(e.isKind("stop"))throw new p.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return t.prototype.checkItem.call(this,e)},e}(m.BaseItem);e.EquationItem=H},3613:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(r(3403)),l=r(3431),c=s(r(7890)),u=s(r(4214)),h=s(r(5174)),p=r(8594),d=r(7661),f=(0,d.em)(d.MATHSPACE.thickmathspace);new a.RegExpMap("letter",u.default.variable,/[a-z]/i),new a.RegExpMap("digit",u.default.digit,/[0-9.,]/),new a.RegExpMap("command",u.default.controlSequence,/^\\/),new a.MacroMap("special",{"{":"Open","}":"Close","~":"Tilde","^":"Superscript",_:"Subscript"," ":"Space","\t":"Space","\r":"Space","\n":"Space","'":"Prime","%":"Comment","&":"Entry","#":"Hash","\xa0":"Space","\u2019":"Prime"},c.default),new a.CharacterMap("mathchar0mi",u.default.mathchar0mi,{alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03f5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03d5",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",varepsilon:"\u03b5",vartheta:"\u03d1",varpi:"\u03d6",varrho:"\u03f1",varsigma:"\u03c2",varphi:"\u03c6",S:["\xa7",{mathvariant:l.TexConstant.Variant.NORMAL}],aleph:["\u2135",{mathvariant:l.TexConstant.Variant.NORMAL}],hbar:["\u210f",{variantForm:!0}],imath:"\u0131",jmath:"\u0237",ell:"\u2113",wp:["\u2118",{mathvariant:l.TexConstant.Variant.NORMAL}],Re:["\u211c",{mathvariant:l.TexConstant.Variant.NORMAL}],Im:["\u2111",{mathvariant:l.TexConstant.Variant.NORMAL}],partial:["\u2202",{mathvariant:l.TexConstant.Variant.ITALIC}],infty:["\u221e",{mathvariant:l.TexConstant.Variant.NORMAL}],prime:["\u2032",{variantForm:!0}],emptyset:["\u2205",{mathvariant:l.TexConstant.Variant.NORMAL}],nabla:["\u2207",{mathvariant:l.TexConstant.Variant.NORMAL}],top:["\u22a4",{mathvariant:l.TexConstant.Variant.NORMAL}],bot:["\u22a5",{mathvariant:l.TexConstant.Variant.NORMAL}],angle:["\u2220",{mathvariant:l.TexConstant.Variant.NORMAL}],triangle:["\u25b3",{mathvariant:l.TexConstant.Variant.NORMAL}],backslash:["\u2216",{mathvariant:l.TexConstant.Variant.NORMAL}],forall:["\u2200",{mathvariant:l.TexConstant.Variant.NORMAL}],exists:["\u2203",{mathvariant:l.TexConstant.Variant.NORMAL}],neg:["\xac",{mathvariant:l.TexConstant.Variant.NORMAL}],lnot:["\xac",{mathvariant:l.TexConstant.Variant.NORMAL}],flat:["\u266d",{mathvariant:l.TexConstant.Variant.NORMAL}],natural:["\u266e",{mathvariant:l.TexConstant.Variant.NORMAL}],sharp:["\u266f",{mathvariant:l.TexConstant.Variant.NORMAL}],clubsuit:["\u2663",{mathvariant:l.TexConstant.Variant.NORMAL}],diamondsuit:["\u2662",{mathvariant:l.TexConstant.Variant.NORMAL}],heartsuit:["\u2661",{mathvariant:l.TexConstant.Variant.NORMAL}],spadesuit:["\u2660",{mathvariant:l.TexConstant.Variant.NORMAL}]}),new a.CharacterMap("mathchar0mo",u.default.mathchar0mo,{surd:"\u221a",coprod:["\u2210",{texClass:p.TEXCLASS.OP,movesupsub:!0}],bigvee:["\u22c1",{texClass:p.TEXCLASS.OP,movesupsub:!0}],bigwedge:["\u22c0",{texClass:p.TEXCLASS.OP,movesupsub:!0}],biguplus:["\u2a04",{texClass:p.TEXCLASS.OP,movesupsub:!0}],bigcap:["\u22c2",{texClass:p.TEXCLASS.OP,movesupsub:!0}],bigcup:["\u22c3",{texClass:p.TEXCLASS.OP,movesupsub:!0}],int:["\u222b",{texClass:p.TEXCLASS.OP}],intop:["\u222b",{texClass:p.TEXCLASS.OP,movesupsub:!0,movablelimits:!0}],iint:["\u222c",{texClass:p.TEXCLASS.OP}],iiint:["\u222d",{texClass:p.TEXCLASS.OP}],prod:["\u220f",{texClass:p.TEXCLASS.OP,movesupsub:!0}],sum:["\u2211",{texClass:p.TEXCLASS.OP,movesupsub:!0}],bigotimes:["\u2a02",{texClass:p.TEXCLASS.OP,movesupsub:!0}],bigoplus:["\u2a01",{texClass:p.TEXCLASS.OP,movesupsub:!0}],bigodot:["\u2a00",{texClass:p.TEXCLASS.OP,movesupsub:!0}],oint:["\u222e",{texClass:p.TEXCLASS.OP}],bigsqcup:["\u2a06",{texClass:p.TEXCLASS.OP,movesupsub:!0}],smallint:["\u222b",{largeop:!1}],triangleleft:"\u25c3",triangleright:"\u25b9",bigtriangleup:"\u25b3",bigtriangledown:"\u25bd",wedge:"\u2227",land:"\u2227",vee:"\u2228",lor:"\u2228",cap:"\u2229",cup:"\u222a",ddagger:"\u2021",dagger:"\u2020",sqcap:"\u2293",sqcup:"\u2294",uplus:"\u228e",amalg:"\u2a3f",diamond:"\u22c4",bullet:"\u2219",wr:"\u2240",div:"\xf7",divsymbol:"\xf7",odot:["\u2299",{largeop:!1}],oslash:["\u2298",{largeop:!1}],otimes:["\u2297",{largeop:!1}],ominus:["\u2296",{largeop:!1}],oplus:["\u2295",{largeop:!1}],mp:"\u2213",pm:"\xb1",circ:"\u2218",bigcirc:"\u25ef",setminus:"\u2216",cdot:"\u22c5",ast:"\u2217",times:"\xd7",star:"\u22c6",propto:"\u221d",sqsubseteq:"\u2291",sqsupseteq:"\u2292",parallel:"\u2225",mid:"\u2223",dashv:"\u22a3",vdash:"\u22a2",leq:"\u2264",le:"\u2264",geq:"\u2265",ge:"\u2265",lt:"<",gt:">",succ:"\u227b",prec:"\u227a",approx:"\u2248",succeq:"\u2ab0",preceq:"\u2aaf",supset:"\u2283",subset:"\u2282",supseteq:"\u2287",subseteq:"\u2286",in:"\u2208",ni:"\u220b",notin:"\u2209",owns:"\u220b",gg:"\u226b",ll:"\u226a",sim:"\u223c",simeq:"\u2243",perp:"\u22a5",equiv:"\u2261",asymp:"\u224d",smile:"\u2323",frown:"\u2322",ne:"\u2260",neq:"\u2260",cong:"\u2245",doteq:"\u2250",bowtie:"\u22c8",models:"\u22a8",notChar:"\u29f8",Leftrightarrow:"\u21d4",Leftarrow:"\u21d0",Rightarrow:"\u21d2",leftrightarrow:"\u2194",leftarrow:"\u2190",gets:"\u2190",rightarrow:"\u2192",to:["\u2192",{accent:!1}],mapsto:"\u21a6",leftharpoonup:"\u21bc",leftharpoondown:"\u21bd",rightharpoonup:"\u21c0",rightharpoondown:"\u21c1",nearrow:"\u2197",searrow:"\u2198",nwarrow:"\u2196",swarrow:"\u2199",rightleftharpoons:"\u21cc",hookrightarrow:"\u21aa",hookleftarrow:"\u21a9",longleftarrow:"\u27f5",Longleftarrow:"\u27f8",longrightarrow:"\u27f6",Longrightarrow:"\u27f9",Longleftrightarrow:"\u27fa",longleftrightarrow:"\u27f7",longmapsto:"\u27fc",ldots:"\u2026",cdots:"\u22ef",vdots:"\u22ee",ddots:"\u22f1",dotsc:"\u2026",dotsb:"\u22ef",dotsm:"\u22ef",dotsi:"\u22ef",dotso:"\u2026",ldotp:[".",{texClass:p.TEXCLASS.PUNCT}],cdotp:["\u22c5",{texClass:p.TEXCLASS.PUNCT}],colon:[":",{texClass:p.TEXCLASS.PUNCT}]}),new a.CharacterMap("mathchar7",u.default.mathchar7,{Gamma:"\u0393",Delta:"\u0394",Theta:"\u0398",Lambda:"\u039b",Xi:"\u039e",Pi:"\u03a0",Sigma:"\u03a3",Upsilon:"\u03a5",Phi:"\u03a6",Psi:"\u03a8",Omega:"\u03a9",_:"_","#":"#",$:"$","%":"%","&":"&",And:"&"}),new a.DelimiterMap("delimiter",u.default.delimiter,{"(":"(",")":")","[":"[","]":"]","<":"\u27e8",">":"\u27e9","\\lt":"\u27e8","\\gt":"\u27e9","/":"/","|":["|",{texClass:p.TEXCLASS.ORD}],".":"","\\\\":"\\","\\lmoustache":"\u23b0","\\rmoustache":"\u23b1","\\lgroup":"\u27ee","\\rgroup":"\u27ef","\\arrowvert":"\u23d0","\\Arrowvert":"\u2016","\\bracevert":"\u23aa","\\Vert":["\u2016",{texClass:p.TEXCLASS.ORD}],"\\|":["\u2016",{texClass:p.TEXCLASS.ORD}],"\\vert":["|",{texClass:p.TEXCLASS.ORD}],"\\uparrow":"\u2191","\\downarrow":"\u2193","\\updownarrow":"\u2195","\\Uparrow":"\u21d1","\\Downarrow":"\u21d3","\\Updownarrow":"\u21d5","\\backslash":"\\","\\rangle":"\u27e9","\\langle":"\u27e8","\\rbrace":"}","\\lbrace":"{","\\}":"}","\\{":"{","\\rceil":"\u2309","\\lceil":"\u2308","\\rfloor":"\u230b","\\lfloor":"\u230a","\\lbrack":"[","\\rbrack":"]"}),new a.CommandMap("macros",{displaystyle:["SetStyle","D",!0,0],textstyle:["SetStyle","T",!1,0],scriptstyle:["SetStyle","S",!1,1],scriptscriptstyle:["SetStyle","SS",!1,2],rm:["SetFont",l.TexConstant.Variant.NORMAL],mit:["SetFont",l.TexConstant.Variant.ITALIC],oldstyle:["SetFont",l.TexConstant.Variant.OLDSTYLE],cal:["SetFont",l.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont",l.TexConstant.Variant.MATHITALIC],bf:["SetFont",l.TexConstant.Variant.BOLD],bbFont:["SetFont",l.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",l.TexConstant.Variant.SCRIPT],frak:["SetFont",l.TexConstant.Variant.FRAKTUR],sf:["SetFont",l.TexConstant.Variant.SANSSERIF],tt:["SetFont",l.TexConstant.Variant.MONOSPACE],mathrm:["MathFont",l.TexConstant.Variant.NORMAL],mathup:["MathFont",l.TexConstant.Variant.NORMAL],mathnormal:["MathFont",""],mathbf:["MathFont",l.TexConstant.Variant.BOLD],mathbfup:["MathFont",l.TexConstant.Variant.BOLD],mathit:["MathFont",l.TexConstant.Variant.MATHITALIC],mathbfit:["MathFont",l.TexConstant.Variant.BOLDITALIC],mathbb:["MathFont",l.TexConstant.Variant.DOUBLESTRUCK],Bbb:["MathFont",l.TexConstant.Variant.DOUBLESTRUCK],mathfrak:["MathFont",l.TexConstant.Variant.FRAKTUR],mathbffrak:["MathFont",l.TexConstant.Variant.BOLDFRAKTUR],mathscr:["MathFont",l.TexConstant.Variant.SCRIPT],mathbfscr:["MathFont",l.TexConstant.Variant.BOLDSCRIPT],mathsf:["MathFont",l.TexConstant.Variant.SANSSERIF],mathsfup:["MathFont",l.TexConstant.Variant.SANSSERIF],mathbfsf:["MathFont",l.TexConstant.Variant.BOLDSANSSERIF],mathbfsfup:["MathFont",l.TexConstant.Variant.BOLDSANSSERIF],mathsfit:["MathFont",l.TexConstant.Variant.SANSSERIFITALIC],mathbfsfit:["MathFont",l.TexConstant.Variant.SANSSERIFBOLDITALIC],mathtt:["MathFont",l.TexConstant.Variant.MONOSPACE],mathcal:["MathFont",l.TexConstant.Variant.CALLIGRAPHIC],mathbfcal:["MathFont",l.TexConstant.Variant.BOLDCALLIGRAPHIC],symrm:["MathFont",l.TexConstant.Variant.NORMAL],symup:["MathFont",l.TexConstant.Variant.NORMAL],symnormal:["MathFont",""],symbf:["MathFont",l.TexConstant.Variant.BOLD],symbfup:["MathFont",l.TexConstant.Variant.BOLD],symit:["MathFont",l.TexConstant.Variant.ITALIC],symbfit:["MathFont",l.TexConstant.Variant.BOLDITALIC],symbb:["MathFont",l.TexConstant.Variant.DOUBLESTRUCK],symfrak:["MathFont",l.TexConstant.Variant.FRAKTUR],symbffrak:["MathFont",l.TexConstant.Variant.BOLDFRAKTUR],symscr:["MathFont",l.TexConstant.Variant.SCRIPT],symbfscr:["MathFont",l.TexConstant.Variant.BOLDSCRIPT],symsf:["MathFont",l.TexConstant.Variant.SANSSERIF],symsfup:["MathFont",l.TexConstant.Variant.SANSSERIF],symbfsf:["MathFont",l.TexConstant.Variant.BOLDSANSSERIF],symbfsfup:["MathFont",l.TexConstant.Variant.BOLDSANSSERIF],symsfit:["MathFont",l.TexConstant.Variant.SANSSERIFITALIC],symbfsfit:["MathFont",l.TexConstant.Variant.SANSSERIFBOLDITALIC],symtt:["MathFont",l.TexConstant.Variant.MONOSPACE],symcal:["MathFont",l.TexConstant.Variant.CALLIGRAPHIC],symbfcal:["MathFont",l.TexConstant.Variant.BOLDCALLIGRAPHIC],textrm:["HBox",null,l.TexConstant.Variant.NORMAL],textup:["HBox",null,l.TexConstant.Variant.NORMAL],textnormal:["HBox"],textit:["HBox",null,l.TexConstant.Variant.ITALIC],textbf:["HBox",null,l.TexConstant.Variant.BOLD],textsf:["HBox",null,l.TexConstant.Variant.SANSSERIF],texttt:["HBox",null,l.TexConstant.Variant.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],arcsin:"NamedFn",arccos:"NamedFn",arctan:"NamedFn",arg:"NamedFn",cos:"NamedFn",cosh:"NamedFn",cot:"NamedFn",coth:"NamedFn",csc:"NamedFn",deg:"NamedFn",det:"NamedOp",dim:"NamedFn",exp:"NamedFn",gcd:"NamedOp",hom:"NamedFn",inf:"NamedOp",ker:"NamedFn",lg:"NamedFn",lim:"NamedOp",liminf:["NamedOp","lim&thinsp;inf"],limsup:["NamedOp","lim&thinsp;sup"],ln:"NamedFn",log:"NamedFn",max:"NamedOp",min:"NamedOp",Pr:"NamedOp",sec:"NamedFn",sin:"NamedFn",sinh:"NamedFn",sup:"NamedOp",tan:"NamedFn",tanh:"NamedFn",limits:["Limits",1],nolimits:["Limits",0],overline:["UnderOver","2015"],underline:["UnderOver","2015"],overbrace:["UnderOver","23DE",1],underbrace:["UnderOver","23DF",1],overparen:["UnderOver","23DC"],underparen:["UnderOver","23DD"],overrightarrow:["UnderOver","2192"],underrightarrow:["UnderOver","2192"],overleftarrow:["UnderOver","2190"],underleftarrow:["UnderOver","2190"],overleftrightarrow:["UnderOver","2194"],underleftrightarrow:["UnderOver","2194"],overset:"Overset",underset:"Underset",overunderset:"Overunderset",stackrel:["Macro","\\mathrel{\\mathop{#2}\\limits^{#1}}",2],stackbin:["Macro","\\mathbin{\\mathop{#2}\\limits^{#1}}",2],over:"Over",overwithdelims:"Over",atop:"Over",atopwithdelims:"Over",above:"Over",abovewithdelims:"Over",brace:["Over","{","}"],brack:["Over","[","]"],choose:["Over","(",")"],frac:"Frac",sqrt:"Sqrt",root:"Root",uproot:["MoveRoot","upRoot"],leftroot:["MoveRoot","leftRoot"],left:"LeftRight",right:"LeftRight",middle:"LeftRight",llap:"Lap",rlap:"Lap",raise:"RaiseLower",lower:"RaiseLower",moveleft:"MoveLeftRight",moveright:"MoveLeftRight",",":["Spacer",d.MATHSPACE.thinmathspace],":":["Spacer",d.MATHSPACE.mediummathspace],">":["Spacer",d.MATHSPACE.mediummathspace],";":["Spacer",d.MATHSPACE.thickmathspace],"!":["Spacer",d.MATHSPACE.negativethinmathspace],enspace:["Spacer",.5],quad:["Spacer",1],qquad:["Spacer",2],thinspace:["Spacer",d.MATHSPACE.thinmathspace],negthinspace:["Spacer",d.MATHSPACE.negativethinmathspace],"*":"DiscretionaryTimes",allowbreak:"AllowBreak",goodbreak:["Linebreak",l.TexConstant.LineBreak.GOODBREAK],badbreak:["Linebreak",l.TexConstant.LineBreak.BADBREAK],nobreak:["Linebreak",l.TexConstant.LineBreak.NOBREAK],break:"Break",hskip:"Hskip",hspace:"Hskip",kern:["Hskip",!0],mskip:"Hskip",mspace:"Hskip",mkern:["Hskip",!0],rule:"rule",Rule:["Rule"],Space:["Rule","blank"],nonscript:"Nonscript",big:["MakeBig",p.TEXCLASS.ORD,.85],Big:["MakeBig",p.TEXCLASS.ORD,1.15],bigg:["MakeBig",p.TEXCLASS.ORD,1.45],Bigg:["MakeBig",p.TEXCLASS.ORD,1.75],bigl:["MakeBig",p.TEXCLASS.OPEN,.85],Bigl:["MakeBig",p.TEXCLASS.OPEN,1.15],biggl:["MakeBig",p.TEXCLASS.OPEN,1.45],Biggl:["MakeBig",p.TEXCLASS.OPEN,1.75],bigr:["MakeBig",p.TEXCLASS.CLOSE,.85],Bigr:["MakeBig",p.TEXCLASS.CLOSE,1.15],biggr:["MakeBig",p.TEXCLASS.CLOSE,1.45],Biggr:["MakeBig",p.TEXCLASS.CLOSE,1.75],bigm:["MakeBig",p.TEXCLASS.REL,.85],Bigm:["MakeBig",p.TEXCLASS.REL,1.15],biggm:["MakeBig",p.TEXCLASS.REL,1.45],Biggm:["MakeBig",p.TEXCLASS.REL,1.75],mathord:["TeXAtom",p.TEXCLASS.ORD],mathop:["TeXAtom",p.TEXCLASS.OP],mathopen:["TeXAtom",p.TEXCLASS.OPEN],mathclose:["TeXAtom",p.TEXCLASS.CLOSE],mathbin:["TeXAtom",p.TEXCLASS.BIN],mathrel:["TeXAtom",p.TEXCLASS.REL],mathpunct:["TeXAtom",p.TEXCLASS.PUNCT],mathinner:["TeXAtom",p.TEXCLASS.INNER],vtop:["TeXAtom",p.TEXCLASS.VTOP],vcenter:["TeXAtom",p.TEXCLASS.VCENTER],vbox:["TeXAtom",p.TEXCLASS.VBOX],hsize:"Hsize",parbox:"ParBox",buildrel:"BuildRel",hbox:["HBox",0],text:"HBox",mbox:["HBox",0],fbox:"FBox",boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],framebox:"FrameBox",makebox:"MakeBox",strut:"Strut",mathstrut:["Macro","\\vphantom{(}"],phantom:"Phantom",vphantom:["Phantom",1,0],hphantom:["Phantom",0,1],smash:"Smash",acute:["Accent","00B4"],grave:["Accent","0060"],ddot:["Accent","00A8"],tilde:["Accent","007E"],bar:["Accent","00AF"],breve:["Accent","02D8"],check:["Accent","02C7"],hat:["Accent","005E"],vec:["Accent","2192"],dot:["Accent","02D9"],widetilde:["Accent","007E",1],widehat:["Accent","005E",1],matrix:"Matrix",array:"Matrix",pmatrix:["Matrix","(",")"],cases:["Matrix","{","","left left",null,".2em",null,!0],eqalign:["Matrix",null,null,"right left",f,".5em","D"],displaylines:["Matrix",null,null,"center",null,".5em","D"],cr:"Cr","\\":"CrLaTeX",newline:["CrLaTeX",!0],hline:["HLine","solid"],hdashline:["HLine","dashed"],eqalignno:["Matrix",null,null,"right left",f,".5em","D",null,"right"],leqalignno:["Matrix",null,null,"right left",f,".5em","D",null,"left"],hfill:"HFill",hfil:"HFill",hfilll:"HFill",bmod:["Macro",'\\mmlToken{mo}[lspace="'+f+'" rspace="'+f+'"]{mod}'],pmod:["Macro","\\pod{\\mmlToken{mi}{mod}\\kern 6mu #1}",1],mod:["Macro","\\mathchoice{\\kern18mu}{\\kern12mu}{\\kern12mu}{\\kern12mu}\\mmlToken{mi}{mod}\\,\\,#1",1],pod:["Macro","\\mathchoice{\\kern18mu}{\\kern8mu}{\\kern8mu}{\\kern8mu}(#1)",1],iff:["Macro","\\;\\Longleftrightarrow\\;"],skew:["Macro","{{#2{#3\\mkern#1mu}\\mkern-#1mu}{}}",3],pmb:["Macro","\\rlap{#1}\\kern1px{#1}",1],TeX:["Macro","T\\kern-.14em\\lower.5ex{E}\\kern-.115em X"],LaTeX:["Macro","L\\kern-.325em\\raise.21em{\\scriptstyle{A}}\\kern-.17em\\TeX"]," ":["Macro","\\text{ }"],not:"Not",dots:"Dots",space:"Tilde","\xa0":"Tilde",begin:"BeginEnd",end:"BeginEnd",label:"HandleLabel",ref:"HandleRef",nonumber:"HandleNoTag",newcolumntype:"NewColumnType",mathchoice:"MathChoice",mmlToken:"MmlToken"},c.default),new a.EnvironmentMap("environment",u.default.environment,{array:["AlignedArray"],equation:["Equation",null,!0],eqnarray:["EqnArray",null,!0,!0,"rcl",h.default.cols(0,d.MATHSPACE.thickmathspace),".5em"],indentalign:["IndentAlign"]},c.default),new a.CharacterMap("not_remap",null,{"\u2190":"\u219a","\u2192":"\u219b","\u2194":"\u21ae","\u21d0":"\u21cd","\u21d2":"\u21cf","\u21d4":"\u21ce","\u2208":"\u2209","\u220b":"\u220c","\u2223":"\u2224","\u2225":"\u2226","\u223c":"\u2241","~":"\u2241","\u2243":"\u2244","\u2245":"\u2247","\u2248":"\u2249","\u224d":"\u226d","=":"\u2260","\u2261":"\u2262","<":"\u226e",">":"\u226f","\u2264":"\u2270","\u2265":"\u2271","\u2272":"\u2274","\u2273":"\u2275","\u2276":"\u2278","\u2277":"\u2279","\u227a":"\u2280","\u227b":"\u2281","\u2282":"\u2284","\u2283":"\u2285","\u2286":"\u2288","\u2287":"\u2289","\u22a2":"\u22ac","\u22a8":"\u22ad","\u22a9":"\u22ae","\u22ab":"\u22af","\u227c":"\u22e0","\u227d":"\u22e1","\u2291":"\u22e2","\u2292":"\u22e3","\u22b2":"\u22ea","\u22b3":"\u22eb","\u22b4":"\u22ec","\u22b5":"\u22ed","\u2203":"\u2204"})},7890:function(t,e,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return o(e,t),e},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},l=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var h=s(r(3435)),p=u(r(4454)),d=u(r(2085)),f=u(r(161)),m=r(3431),y=u(r(5174)),g=r(8594),b=r(3983),v=r(7661),M=r(6913),O=r(7173),x={},S={fontfamily:1,fontsize:1,fontweight:1,fontstyle:1,color:1,background:1,id:1,class:1,href:1,style:1};function E(t,e){var r=t.stack.env,n=r.inRoot;r.inRoot=!0;var i=new f.default(e,r,t.configuration),o=i.mml(),s=i.stack.global;if(s.leftRoot||s.upRoot){var a={};s.leftRoot&&(a.width=s.leftRoot),s.upRoot&&(a.voffset=s.upRoot,a.height=s.upRoot),o=t.create("node","mpadded",[o],a)}return r.inRoot=n,o}x.Open=function(t,e){t.Push(t.itemFactory.create("open"))},x.Close=function(t,e){t.Push(t.itemFactory.create("close"))},x.Tilde=function(t,e){t.Push(t.create("token","mtext",{},M.entities.nbsp))},x.Space=function(t,e){},x.Superscript=function(t,e){var r,n,i;t.GetNext().match(/\d/)&&(t.string=t.string.substr(0,t.i+1)+" "+t.string.substr(t.i+1));var o=t.stack.Top();o.isKind("prime")?(i=(r=a(o.Peek(2),2))[0],n=r[1],t.stack.Pop()):(i=t.stack.Prev())||(i=t.create("token","mi",{},""));var s=p.default.getProperty(i,"movesupsub"),l=p.default.isType(i,"msubsup")?i.sup:i.over;if(p.default.isType(i,"msubsup")&&!p.default.isType(i,"msup")&&p.default.getChildAt(i,i.sup)||p.default.isType(i,"munderover")&&!p.default.isType(i,"mover")&&p.default.getChildAt(i,i.over)&&!p.default.getProperty(i,"subsupOK"))throw new d.default("DoubleExponent","Double exponent: use braces to clarify");p.default.isType(i,"msubsup")&&!p.default.isType(i,"msup")||(s?((!p.default.isType(i,"munderover")||p.default.isType(i,"mover")||p.default.getChildAt(i,i.over))&&(i=t.create("node","munderover",[i],{movesupsub:!0})),l=i.over):l=(i=t.create("node","msubsup",[i])).sup),t.Push(t.itemFactory.create("subsup",i).setProperties({position:l,primes:n,movesupsub:s}))},x.Subscript=function(t,e){var r,n,i;t.GetNext().match(/\d/)&&(t.string=t.string.substr(0,t.i+1)+" "+t.string.substr(t.i+1));var o=t.stack.Top();o.isKind("prime")?(i=(r=a(o.Peek(2),2))[0],n=r[1],t.stack.Pop()):(i=t.stack.Prev())||(i=t.create("token","mi",{},""));var s=p.default.getProperty(i,"movesupsub"),l=p.default.isType(i,"msubsup")?i.sub:i.under;if(p.default.isType(i,"msubsup")&&!p.default.isType(i,"msup")&&p.default.getChildAt(i,i.sub)||p.default.isType(i,"munderover")&&!p.default.isType(i,"mover")&&p.default.getChildAt(i,i.under)&&!p.default.getProperty(i,"subsupOK"))throw new d.default("DoubleSubscripts","Double subscripts: use braces to clarify");p.default.isType(i,"msubsup")&&!p.default.isType(i,"msup")||(s?((!p.default.isType(i,"munderover")||p.default.isType(i,"mover")||p.default.getChildAt(i,i.under))&&(i=t.create("node","munderover",[i],{movesupsub:!0})),l=i.under):l=(i=t.create("node","msubsup",[i])).sub),t.Push(t.itemFactory.create("subsup",i).setProperties({position:l,primes:n,movesupsub:s}))},x.Prime=function(t,e){var r=t.stack.Prev();if(r||(r=t.create("token","mi")),p.default.isType(r,"msubsup")&&!p.default.isType(r,"msup")&&p.default.getChildAt(r,r.sup))throw new d.default("DoubleExponentPrime","Prime causes double exponent: use braces to clarify");var n="";t.i--;do{n+=M.entities.prime,t.i++,e=t.GetNext()}while("'"===e||e===M.entities.rsquo);n=["","\u2032","\u2033","\u2034","\u2057"][n.length]||n;var i=t.create("token","mo",{variantForm:!0},n);t.Push(t.itemFactory.create("prime",r,i))},x.Comment=function(t,e){for(;t.i<t.string.length&&"\n"!==t.string.charAt(t.i);)t.i++},x.Hash=function(t,e){throw new d.default("CantUseHash1","You can't use 'macro parameter character #' in math mode")},x.MathFont=function(t,e,r){var i=t.GetArgument(e),o=new f.default(i,n(n({},t.stack.env),{font:r,multiLetterIdentifiers:/^[a-zA-Z]+/,noAutoOP:!0}),t.configuration).mml();t.Push(t.create("node","TeXAtom",[o]))},x.SetFont=function(t,e,r){t.stack.env.font=r},x.SetStyle=function(t,e,r,n,i){t.stack.env.style=r,t.stack.env.level=i,t.Push(t.itemFactory.create("style").setProperty("styles",{displaystyle:n,scriptlevel:i}))},x.SetSize=function(t,e,r){t.stack.env.size=r,t.Push(t.itemFactory.create("style").setProperty("styles",{mathsize:(0,v.em)(r)}))},x.Spacer=function(t,e,r){var n=t.create("node","mspace",[],{width:(0,v.em)(r)}),i=t.create("node","mstyle",[n],{scriptlevel:0});t.Push(i)},x.DiscretionaryTimes=function(t,e){t.Push(t.create("token","mo",{linebreakmultchar:"\xd7"},"\u2062"))},x.AllowBreak=function(t,e){t.Push(t.create("token","mo",{"data-allowbreak":!0}))},x.Break=function(t,e){t.Push(t.create("token","mo",{linebreak:m.TexConstant.LineBreak.NEWLINE}))},x.Linebreak=function(t,e,r){var n,i,o=!0,s=t.stack.Prev(!0);s&&s.isKind("mo")&&(((null===(i=null===(n=p.default.getOp(s))||void 0===n?void 0:n[3])||void 0===i?void 0:i.linebreakstyle)||p.default.getAttribute(s,"linebreakstyle"))!==m.TexConstant.LineBreakStyle.BEFORE&&(s.attributes.set("linebreak",r),o=!1));t.Push(t.itemFactory.create("break",r,o))},x.LeftRight=function(t,e){var r=e.substr(1);t.Push(t.itemFactory.create(r,t.GetDelimiter(e),t.stack.env.color))},x.NamedFn=function(t,e,r){r||(r=e.substr(1));var n=t.create("token","mi",{texClass:g.TEXCLASS.OP},r);t.Push(t.itemFactory.create("fn",n))},x.NamedOp=function(t,e,r){r||(r=e.substr(1)),r=r.replace(/&thinsp;/,"\u2006");var n=t.create("token","mo",{movablelimits:!0,movesupsub:!0,form:m.TexConstant.Form.PREFIX,texClass:g.TEXCLASS.OP},r);t.Push(n)},x.Limits=function(t,e,r){var n=t.stack.Prev(!0);if(!n||p.default.getTexClass(p.default.getCoreMO(n))!==g.TEXCLASS.OP&&null==p.default.getProperty(n,"movesupsub"))throw new d.default("MisplacedLimits","%1 is allowed only on operators",t.currentCS);var i,o=t.stack.Top();p.default.isType(n,"munderover")&&!r?(i=t.create("node","msubsup"),p.default.copyChildren(n,i),n=o.Last=i):p.default.isType(n,"msubsup")&&r&&(i=t.create("node","munderover"),p.default.copyChildren(n,i),n=o.Last=i),p.default.setProperty(n,"movesupsub",!!r),p.default.setProperties(p.default.getCoreMO(n),{movablelimits:!1}),(p.default.getAttribute(n,"movablelimits")||p.default.getProperty(n,"movablelimits"))&&p.default.setProperties(n,{movablelimits:!1})},x.Over=function(t,e,r,n){var i=t.itemFactory.create("over").setProperty("name",t.currentCS);r||n?(i.setProperty("open",r),i.setProperty("close",n)):e.match(/withdelims$/)&&(i.setProperty("open",t.GetDelimiter(e)),i.setProperty("close",t.GetDelimiter(e))),e.match(/^\\above/)?i.setProperty("thickness",t.GetDimen(e)):(e.match(/^\\atop/)||r||n)&&i.setProperty("thickness",0),t.Push(i)},x.Frac=function(t,e){var r=t.ParseArg(e),n=t.ParseArg(e),i=t.create("node","mfrac",[r,n]);t.Push(i)},x.Sqrt=function(t,e){var r=t.GetBrackets(e),n=t.GetArgument(e);"\\frac"===n&&(n+="{"+t.GetArgument(n)+"}{"+t.GetArgument(n)+"}");var i=new f.default(n,t.stack.env,t.configuration).mml();i=r?t.create("node","mroot",[i,E(t,r)]):t.create("node","msqrt",[i]),t.Push(i)},x.Root=function(t,e){var r=t.GetUpTo(e,"\\of"),n=t.ParseArg(e),i=t.create("node","mroot",[n,E(t,r)]);t.Push(i)},x.MoveRoot=function(t,e,r){if(!t.stack.env.inRoot)throw new d.default("MisplacedMoveRoot","%1 can appear only within a root",t.currentCS);if(t.stack.global[r])throw new d.default("MultipleMoveRoot","Multiple use of %1",t.currentCS);var n=t.GetArgument(e);if(!n.match(/-?[0-9]+/))throw new d.default("IntegerArg","The argument to %1 must be an integer",t.currentCS);"-"!==(n=parseInt(n,10)/15+"em").substr(0,1)&&(n="+"+n),t.stack.global[r]=n},x.Accent=function(t,e,r,i){var o=t.ParseArg(e),s=n(n({},y.default.getFontDef(t)),{accent:!0,mathaccent:!0}),a=p.default.createEntity(r),l=t.create("token","mo",s,a);p.default.setAttribute(l,"stretchy",!!i);var c=p.default.isEmbellished(o)?p.default.getCoreMO(o):o;(p.default.isType(c,"mo")||p.default.getProperty(c,"movablelimits"))&&p.default.setProperties(c,{movablelimits:!1});var u=t.create("node","munderover");p.default.setChild(u,0,o),p.default.setChild(u,1,null),p.default.setChild(u,2,l);var h=t.create("node","TeXAtom",[u]);t.Push(h)},x.UnderOver=function(t,e,r,n){var i=p.default.createEntity(r),o=t.create("token","mo",{stretchy:!0,accent:!0},i),s="o"===e.charAt(1)?"over":"under",a=t.ParseArg(e);t.Push(y.default.underOver(t,a,o,s,n))},x.Overset=function(t,e){var r=t.ParseArg(e),n=t.ParseArg(e);y.default.checkMovableLimits(n),r.isKind("mo")&&p.default.setAttribute(r,"accent",!1);var i=t.create("node","mover",[n,r]);t.Push(i)},x.Underset=function(t,e){var r=t.ParseArg(e),n=t.ParseArg(e);y.default.checkMovableLimits(n),r.isKind("mo")&&p.default.setAttribute(r,"accent",!1);var i=t.create("node","munder",[n,r],{accentunder:!1});t.Push(i)},x.Overunderset=function(t,e){var r=t.ParseArg(e),n=t.ParseArg(e),i=t.ParseArg(e);y.default.checkMovableLimits(i),r.isKind("mo")&&p.default.setAttribute(r,"accent",!1),n.isKind("mo")&&p.default.setAttribute(n,"accent",!1);var o=t.create("node","munderover",[i,n,r],{accent:!1,accentunder:!1});t.Push(o)},x.TeXAtom=function(t,e,r){var n,i,o={texClass:r};if(r===g.TEXCLASS.OP){o.movesupsub=o.movablelimits=!0;var s=(l=t.GetArgument(e)).match(/^\s*\\rm\s+([a-zA-Z0-9 ]+)$/);if(s)o.mathvariant=m.TexConstant.Variant.NORMAL,i=t.create("token","mi",o,s[1]);else{var a=new f.default(l,t.stack.env,t.configuration).mml();i=t.create("node","TeXAtom",[a],o)}n=t.itemFactory.create("fn",i)}else{n=t.create("node","TeXAtom",[],o);var l=new f.default(t.GetArgument(e),t.stack.env,t.configuration);r>=g.TEXCLASS.VCENTER&&l.stack.env.hsize?n.appendChild(t.create("node","mpadded",[l.mml()],{width:l.stack.env.hsize,"data-overflow":"linebreak"})):n.appendChild(l.mml())}t.Push(n)},x.Hsize=function(t,e){"="===t.GetNext()&&t.i++,t.stack.env.hsize=t.GetDimen(e)},x.ParBox=function(t,e){var r=t.GetBrackets(e,"c"),n=t.GetDimen(e),i=y.default.internalMath(t,t.GetArgument(e)),o=(0,O.lookup)(r,{t:g.TEXCLASS.VTOP,b:g.TEXCLASS.VBOX,c:g.TEXCLASS.VCENTER,m:g.TEXCLASS.VCENTER},g.TEXCLASS.VCENTER);t.Push(t.create("node","TeXAtom",[t.create("node","mpadded",i,{width:n,"data-overflow":"linebreak"})],{texClass:o}))},x.MmlToken=function(t,e){var r,n=t.GetArgument(e),i=t.GetBrackets(e,"").replace(/^\s+/,""),o=t.GetArgument(e),s={},a=[];try{r=t.create("node",n)}catch(t){r=null}if(!r||!r.isToken)throw new d.default("NotMathMLToken","%1 is not a token element",n);for(;""!==i;){var l=i.match(/^([a-z]+)\s*=\s*('[^']*'|"[^"]*"|[^ ,]*)\s*,?\s*/i);if(!l)throw new d.default("InvalidMathMLAttr","Invalid MathML attribute: %1",i);if(!r.attributes.hasDefault(l[1])&&!S[l[1]])throw new d.default("UnknownAttrForElement","%1 is not a recognized attribute for %2",l[1],n);var c=y.default.MmlFilterAttribute(t,l[1],l[2].replace(/^(['"])(.*)\1$/,"$2"));c&&("true"===c.toLowerCase()?c=!0:"false"===c.toLowerCase()&&(c=!1),s[l[1]]=c,a.push(l[1])),i=i.substr(l[0].length)}a.length&&(s["mjx-keep-attrs"]=a.join(" "));var u=t.create("text",o);r.appendChild(u),p.default.setProperties(r,s),t.Push(r)},x.Strut=function(t,e){var r=t.create("node","mrow"),n=t.create("node","mpadded",[r],{height:"8.6pt",depth:"3pt",width:0});t.Push(n)},x.Phantom=function(t,e,r,n){var i=t.create("node","mphantom",[t.ParseArg(e)]);(r||n)&&(i=t.create("node","mpadded",[i]),n&&(p.default.setAttribute(i,"height",0),p.default.setAttribute(i,"depth",0)),r&&p.default.setAttribute(i,"width",0));var o=t.create("node","TeXAtom",[i]);t.Push(o)},x.Smash=function(t,e){var r=y.default.trimSpaces(t.GetBrackets(e,"")),n=t.create("node","mpadded",[t.ParseArg(e)]);switch(r){case"b":p.default.setAttribute(n,"depth",0);break;case"t":p.default.setAttribute(n,"height",0);break;default:p.default.setAttribute(n,"height",0),p.default.setAttribute(n,"depth",0)}var i=t.create("node","TeXAtom",[n]);t.Push(i)},x.Lap=function(t,e){var r=t.create("node","mpadded",[t.ParseArg(e)],{width:0});"\\llap"===e&&p.default.setAttribute(r,"lspace","-1width");var n=t.create("node","TeXAtom",[r]);t.Push(n)},x.RaiseLower=function(t,e){var r=t.GetDimen(e),n=t.itemFactory.create("position").setProperties({name:t.currentCS,move:"vertical"});"-"===r.charAt(0)&&(r=r.slice(1),e="raise"===e.substr(1)?"\\lower":"\\raise"),"\\lower"===e?(n.setProperty("dh","-"+r),n.setProperty("dd","+"+r)):(n.setProperty("dh","+"+r),n.setProperty("dd","-"+r)),t.Push(n)},x.MoveLeftRight=function(t,e){var r=t.GetDimen(e),n="-"===r.charAt(0)?r.slice(1):"-"+r;if("\\moveleft"===e){var i=r;r=n,n=i}t.Push(t.itemFactory.create("position").setProperties({name:t.currentCS,move:"horizontal",left:t.create("node","mspace",[],{width:r}),right:t.create("node","mspace",[],{width:n})}))},x.Hskip=function(t,e,r){void 0===r&&(r=!1);var n=t.create("node","mspace",[],{width:t.GetDimen(e)});r&&p.default.setAttribute(n,"linebreak","nobreak"),t.Push(n)},x.Nonscript=function(t,e){t.Push(t.itemFactory.create("nonscript"))},x.Rule=function(t,e,r){var n={width:t.GetDimen(e),height:t.GetDimen(e),depth:t.GetDimen(e)};"blank"!==r&&(n.mathbackground=t.stack.env.color||"black");var i=t.create("node","mspace",[],n);t.Push(i)},x.rule=function(t,e){var r=t.GetBrackets(e),n=t.GetDimen(e),i=t.GetDimen(e),o=t.create("node","mspace",[],{width:n,height:i,mathbackground:t.stack.env.color||"black"});r&&(o=t.create("node","mpadded",[o],{voffset:r}),r.match(/^\-/)?(p.default.setAttribute(o,"height",r),p.default.setAttribute(o,"depth","+"+r.substr(1))):p.default.setAttribute(o,"height","+"+r)),t.Push(o)},x.MakeBig=function(t,e,r,n){var i=String(n*=1.411764705882353).replace(/(\.\d\d\d).+/,"$1")+"em",o=t.GetDelimiter(e,!0),s=t.create("token","mo",{minsize:i,maxsize:i,fence:!0,stretchy:!0,symmetric:!0},o),a=t.create("node","TeXAtom",[s],{texClass:r});t.Push(a)},x.BuildRel=function(t,e){var r=t.ParseUpTo(e,"\\over"),n=t.ParseArg(e),i=t.create("node","munderover");p.default.setChild(i,0,n),p.default.setChild(i,1,null),p.default.setChild(i,2,r);var o=t.create("node","TeXAtom",[i],{texClass:g.TEXCLASS.REL});t.Push(o)},x.HBox=function(t,e,r,n){t.PushAll(y.default.internalMath(t,t.GetArgument(e),r,n))},x.FBox=function(t,e){var r=y.default.internalMath(t,t.GetArgument(e)),n=t.create("node","menclose",r,{notation:"box"});t.Push(n)},x.FrameBox=function(t,e){var r=t.GetBrackets(e),n=t.GetBrackets(e)||"c",i=y.default.internalMath(t,t.GetArgument(e));r&&(i=[t.create("node","mpadded",i,{width:r,"data-align":(0,O.lookup)(n,{l:"left",r:"right"},"center")})]);var o=t.create("node","TeXAtom",[t.create("node","menclose",i,{notation:"box"})],{texClass:g.TEXCLASS.ORD});t.Push(o)},x.MakeBox=function(t,e){var r=t.GetBrackets(e),n=t.GetBrackets(e,"c"),i=t.create("node","mpadded",y.default.internalMath(t,t.GetArgument(e)));r&&p.default.setAttribute(i,"width",r);var o=(0,O.lookup)(n.toLowerCase(),{c:"center",r:"right"},"");o&&p.default.setAttribute(i,"data-align",o),n.toLowerCase()!==n&&p.default.setAttribute(i,"data-overflow","linebreak"),t.Push(i)},x.Not=function(t,e){t.Push(t.itemFactory.create("not"))},x.Dots=function(t,e){var r=p.default.createEntity("2026"),n=p.default.createEntity("22EF"),i=t.create("token","mo",{stretchy:!1},r),o=t.create("token","mo",{stretchy:!1},n);t.Push(t.itemFactory.create("dots").setProperties({ldots:i,cdots:o}))},x.Matrix=function(t,e,r,n,i,o,s,a,l,c){var u=t.GetNext();if(""===u)throw new d.default("MissingArgFor","Missing argument for %1",t.currentCS);"{"===u?t.i++:(t.string=u+"}"+t.string.slice(t.i+1),t.i=0);var h=t.itemFactory.create("array").setProperty("requireClose",!0);(r||!i)&&h.setProperty("arrayPadding",".2em .125em"),h.arraydef={rowspacing:s||"4pt",columnspacing:o||"1em"},l&&h.setProperty("isCases",!0),c&&(h.setProperty("isNumbered",!0),h.arraydef.side=c),(r||n)&&(h.setProperty("open",r),h.setProperty("close",n)),"D"===a&&(h.arraydef.displaystyle=!0),null!=i&&(h.arraydef.columnalign=i),t.Push(h)},x.Entry=function(t,e){t.Push(t.itemFactory.create("cell").setProperties({isEntry:!0,name:e}));var r=t.stack.Top(),n=r.getProperty("casesEnv");if(r.getProperty("isCases")||n){for(var i=t.string,o=0,s=-1,a=t.i,l=i.length,c=n?new RegExp("^\\\\end\\s*\\{".concat(n.replace(/\*/,"\\*"),"\\}")):null;a<l;){var u=i.charAt(a);if("{"===u)o++,a++;else if("}"===u)0===o?l=0:(0===--o&&s<0&&(s=a-t.i),a++);else{if("&"===u&&0===o)throw new d.default("ExtraAlignTab","Extra alignment tab in \\cases text");if("\\"===u){var h=i.substr(a);h.match(/^((\\cr)[^a-zA-Z]|\\\\)/)||c&&h.match(c)?l=0:a+=2}else a++}}var p=i.substr(t.i,a-t.i);if(!p.match(/^\s*\\text[^a-zA-Z]/)||s!==p.replace(/\s+$/,"").length-1){var f=y.default.internalMath(t,y.default.trimSpaces(p),0);t.PushAll(f),t.i=a}}},x.Cr=function(t,e){t.Push(t.itemFactory.create("cell").setProperties({isCR:!0,name:e}))},x.CrLaTeX=function(t,e,r){var n;if(void 0===r&&(r=!1),!r&&("*"===t.string.charAt(t.i)&&t.i++,"["===t.string.charAt(t.i))){var i=t.GetBrackets(e,""),o=a(y.default.matchDimen(i),2),s=o[0],l=o[1];if(i&&!s)throw new d.default("BracketMustBeDimension","Bracket argument to %1 must be a dimension",t.currentCS);n=s+l}t.Push(t.itemFactory.create("cell").setProperties({isCR:!0,name:e,linebreak:!0}));var c,u=t.stack.Top();u instanceof h.ArrayItem?n&&u.addRowSpacing(n):(c=t.create("node","mspace",[],{linebreak:m.TexConstant.LineBreak.NEWLINE}),n&&p.default.setAttribute(c,"data-lineleading",n),t.Push(c))},x.HLine=function(t,e,r){null==r&&(r="solid");var n=t.stack.Top();if(!(n instanceof h.ArrayItem)||n.Size())throw new d.default("Misplaced","Misplaced %1",t.currentCS);if(n.table.length){for(var i=n.arraydef.rowlines?n.arraydef.rowlines.split(/ /):[];i.length<n.table.length;)i.push("none");i[n.table.length-1]=r,n.arraydef.rowlines=i.join(" ")}else n.frame.push("top")},x.HFill=function(t,e){var r=t.stack.Top();if(!(r instanceof h.ArrayItem))throw new d.default("UnsupportedHFill","Unsupported use of %1",t.currentCS);r.hfill.push(r.Size())},x.NewColumnType=function(t,e){var r=t.GetArgument(e),n=t.GetBrackets(e,"0"),i=t.GetArgument(e);if(1!==r.length)throw new d.default("BadColumnName","Column specifier must be exactly one character: %1",r);if(!n.match(/^\d+$/))throw new d.default("PositiveIntegerArg","Argument to %1 must me a positive integer",n);var o=t.configuration.columnParser;o.columnHandler[r]=function(t){return o.macroColumn(t,i,parseInt(n))}},x.BeginEnd=function(t,e){var r=t.GetArgument(e);if(r.match(/\\/))throw new d.default("InvalidEnv","Invalid environment name '%1'",r);var n=t.configuration.handlers.get("environment").lookup(r);if(n&&"\\end"===e){if(!n.args[0]){var i=t.itemFactory.create("end").setProperty("name",r);return void t.Push(i)}t.stack.env.closing=r}y.default.checkMaxMacros(t,!1),t.parse("environment",[t,r])},x.Array=function(t,e,r,n,i,o,s,a,l){i||(i=t.GetArgument("\\begin{"+e.getName()+"}"));var c=t.itemFactory.create("array");return"array"===e.getName()&&c.setProperty("arrayPadding",".5em .125em"),c.parser=t,c.arraydef={columnspacing:o||"1em",rowspacing:s||"4pt"},t.configuration.columnParser.process(t,i,c),r&&c.setProperty("open",t.convertDelimiter(r)),n&&c.setProperty("close",t.convertDelimiter(n)),"'"===(a||"").charAt(1)&&(c.arraydef["data-cramped"]=!0,a=a.charAt(0)),"D"===a?c.arraydef.displaystyle=!0:a&&(c.arraydef.displaystyle=!1),"S"===a&&(c.arraydef.scriptlevel=1),l&&(c.arraydef.useHeight=!1),t.Push(e),c.StartEntry(),c},x.AlignedArray=function(t,e){var r=t.GetBrackets("\\begin{"+e.getName()+"}"),n=x.Array(t,e);return y.default.setArrayAlign(n,r)},x.IndentAlign=function(t,e){var r,n,i="\\begin{".concat(e.getName(),"}"),o=t.GetBrackets(i,""),s=t.GetBrackets(i,""),u=t.GetBrackets(i,"");if(o&&!y.default.matchDimen(o)[0]||s&&!y.default.matchDimen(s)[0]||u&&!y.default.matchDimen(u)[0])throw new d.default("BracketMustBeDimension","Bracket argument to %1 must be a dimension",i);var h=t.GetArgument(i);if(h&&!h.match(/^([lcr]{1,3})?$/))throw new d.default("BadAlignment","Alignment must be one to three copies of l, c, or r");var p=l([],a(h),!1).map((function(t){return{l:"left",c:"center",r:"right"}[t]}));1===p.length&&p.push(p[0]);var f={};try{for(var m=c([["indentshiftfirst",o],["indentshift",s||o],["indentshiftlast",u],["indentalignfirst",p[0]],["indentalign",p[1]],["indentalignlast",p[2]]]),g=m.next();!g.done;g=m.next()){var b=a(g.value,2),v=b[0],M=b[1];M&&(f[v]=M)}}catch(t){r={error:t}}finally{try{g&&!g.done&&(n=m.return)&&n.call(m)}finally{if(r)throw r.error}}t.Push(t.itemFactory.create("mstyle",f,e.getName()))},x.Equation=function(t,e,r){return t.Push(e),y.default.checkEqnEnv(t),t.itemFactory.create("equation",r).setProperty("name",e.getName())},x.EqnArray=function(t,e,r,n,i,o){t.Push(e),n&&y.default.checkEqnEnv(t),i=(i=i.replace(/[^clr]/g,"").split("").join(" ")).replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center");var s=t.itemFactory.create("eqnarray",e.getName(),r,n,t.stack.global);return s.arraydef={displaystyle:!0,columnalign:i,columnspacing:o||"1em",rowspacing:"3pt",side:t.options.tagSide,minlabelspacing:t.options.tagIndent},s},x.HandleNoTag=function(t,e){t.tags.notag()},x.HandleLabel=function(t,e){var r=t.GetArgument(e);if(""!==r&&!t.tags.refUpdate){if(t.tags.label)throw new d.default("MultipleCommand","Multiple %1",t.currentCS);if(t.tags.label=r,(t.tags.allLabels[r]||t.tags.labels[r])&&!t.options.ignoreDuplicateLabels)throw new d.default("MultipleLabel","Label '%1' multiply defined",r);t.tags.labels[r]=new b.Label}},x.HandleRef=function(t,e,r){var n=t.GetArgument(e),i=t.tags.allLabels[n]||t.tags.labels[n];i||(t.tags.refUpdate||(t.tags.redo=!0),i=new b.Label);var o=i.tag;r&&(o=t.tags.formatTag(o));var s=t.create("node","mrow",y.default.internalMath(t,o),{href:t.tags.formatUrl(i.id,t.options.baseURL),class:"MathJax_ref"});t.Push(s)},x.Macro=function(t,e,r,n,i){if(n){var o=[];if(null!=i){var s=t.GetBrackets(e);o.push(null==s?i:s)}for(var a=o.length;a<n;a++)o.push(t.GetArgument(e));r=y.default.substituteArgs(t,o,r)}t.string=y.default.addArgs(t,r,t.string.slice(t.i)),t.i=0,y.default.checkMaxMacros(t)},x.MathChoice=function(t,e){var r=t.ParseArg(e),n=t.ParseArg(e),i=t.ParseArg(e),o=t.ParseArg(e);t.Push(t.create("node","MathChoice",[r,n,i,o]))},e.default=x},9777:function(t,e,r){"use strict";var n,i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigMacrosConfiguration=void 0;var s=r(6181),a=r(7173),l=r(3403),c=o(r(4214)),u=r(3233),h=o(r(4845)),p=r(7447),d="configmacros-map",f="configmacros-env-map";e.ConfigMacrosConfiguration=s.Configuration.create("configmacros",{init:function(t){new l.CommandMap(d,{},{}),new l.EnvironmentMap(f,c.default.environment,{},{}),t.append(s.Configuration.local({handler:{macro:[d],environment:[f]},priority:3}))},config:function(t,e){!function(t){var e,r,n=t.parseOptions.handlers.retrieve(d),o=t.parseOptions.options.macros;try{for(var s=i(Object.keys(o)),a=s.next();!a.done;a=s.next()){var l=a.value,c="string"==typeof o[l]?[o[l]]:o[l],p=Array.isArray(c[2])?new u.Macro(l,h.default.MacroWithTemplate,c.slice(0,2).concat(c[2])):new u.Macro(l,h.default.Macro,c);n.add(l,p)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}}(e),function(t){var e,r,n=t.parseOptions.handlers.retrieve(f),o=t.parseOptions.options.environments;try{for(var s=i(Object.keys(o)),a=s.next();!a.done;a=s.next()){var l=a.value;n.add(l,new u.Macro(l,h.default.BeginEnv,[!0].concat(o[l])))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}}(e)},items:(n={},n[p.BeginEnvItem.prototype.kind]=p.BeginEnvItem,n),options:{macros:(0,a.expandable)({}),environments:(0,a.expandable)({})}})},7849:function(t,e,r){"use strict";var n,i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.NewcommandConfiguration=void 0;var l=r(6181),c=r(7447),u=a(r(7356));r(1236);var h=a(r(4214)),p=s(r(3403));e.NewcommandConfiguration=l.Configuration.create("newcommand",{handler:{macro:["Newcommand-macros"]},items:(n={},n[c.BeginEnvItem.prototype.kind]=c.BeginEnvItem,n),options:{maxMacros:1e3},init:function(t){new p.DelimiterMap(u.default.NEW_DELIMITER,h.default.delimiter,{}),new p.CommandMap(u.default.NEW_COMMAND,{},{}),new p.EnvironmentMap(u.default.NEW_ENVIRONMENT,h.default.environment,{},{}),t.append(l.Configuration.local({handler:{character:[],delimiter:[u.default.NEW_DELIMITER],macro:[u.default.NEW_DELIMITER,u.default.NEW_COMMAND],environment:[u.default.NEW_ENVIRONMENT]},priority:-1}))}})},7447:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BeginEnvItem=void 0;var s=o(r(2085)),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"kind",{get:function(){return"beginEnv"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.checkItem=function(e){if(e.isKind("end")){if(e.getName()!==this.getName())throw new s.default("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),e.getName());return[[this.factory.create("mml",this.toMml())],!0]}if(e.isKind("stop"))throw new s.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return t.prototype.checkItem.call(this,e)},e}(r(4066).BaseItem);e.BeginEnvItem=a},1236:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(4845));new(r(3403).CommandMap)("Newcommand-macros",{newcommand:"NewCommand",renewcommand:"NewCommand",newenvironment:"NewEnvironment",renewenvironment:"NewEnvironment",def:"MacroDef",let:"Let"},i.default)},4845:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=s(r(2085)),l=o(r(3403)),c=s(r(7890)),u=s(r(5174)),h=s(r(7356)),p={NewCommand:function(t,e){var r=h.default.GetCsNameArgument(t,e),n=h.default.GetArgCount(t,e),i=t.GetBrackets(e),o=t.GetArgument(e);h.default.addMacro(t,r,p.Macro,[o,n,i])},NewEnvironment:function(t,e){var r=u.default.trimSpaces(t.GetArgument(e)),n=h.default.GetArgCount(t,e),i=t.GetBrackets(e),o=t.GetArgument(e),s=t.GetArgument(e);h.default.addEnvironment(t,r,p.BeginEnv,[!0,o,s,n,i])},MacroDef:function(t,e){var r=h.default.GetCSname(t,e),n=h.default.GetTemplate(t,e,"\\"+r),i=t.GetArgument(e);n instanceof Array?h.default.addMacro(t,r,p.MacroWithTemplate,[i].concat(n)):h.default.addMacro(t,r,p.Macro,[i,n])},Let:function(t,e){var r=h.default.GetCSname(t,e),n=t.GetNext();"="===n&&(t.i++,n=t.GetNext());var i=t.configuration.handlers;if("\\"!==n){t.i++;var o=i.get("delimiter").lookup(n);o?h.default.addDelimiter(t,"\\"+r,o.char,o.attributes):h.default.addMacro(t,r,p.Macro,[n])}else{e=h.default.GetCSname(t,e);var s=i.get("delimiter").lookup("\\"+e);if(s)return void h.default.addDelimiter(t,"\\"+r,s.char,s.attributes);var a=i.get("macro").applicable(e);if(!a)return;if(a instanceof l.MacroMap){var c=a.lookup(e);return void h.default.addMacro(t,r,c.func,c.args,c.symbol)}s=a.lookup(e);var u=h.default.disassembleSymbol(r,s);h.default.addMacro(t,r,(function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=h.default.assembleSymbol(r);return a.parser(t,i)}),u)}},MacroWithTemplate:function(t,e,r,n){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var s=parseInt(n,10);if(i.length){var l=[];if(t.GetNext(),i[0]&&!h.default.MatchParam(t,i[0]))throw new a.default("MismatchUseDef","Use of %1 doesn't match its definition",e);if(s){for(var c=0;c<s;c++)l.push(h.default.GetParameter(t,e,i[c+1]));r=u.default.substituteArgs(t,l,r)}}t.string=u.default.addArgs(t,r,t.string.slice(t.i)),t.i=0,u.default.checkMaxMacros(t)},BeginEnv:function(t,e,r,n,i,o){var s=e.getName();if(e.getProperty("end")&&t.stack.env.closing===s)return delete t.stack.env.closing,n&&t.stack.env.processing!==s?(t.stack.env.processing=s,t.string=u.default.addArgs(t,"".concat(n,"\\end{").concat(e.getName(),"}"),t.string.slice(t.i)),t.i=0,null):(delete t.stack.env.processing,t.itemFactory.create("end").setProperty("name",s));if(i){var a=[];if(null!=o){var l=t.GetBrackets("\\begin{"+e.getName()+"}");a.push(null==l?o:l)}for(var c=a.length;c<i;c++)a.push(t.GetArgument("\\begin{"+e.getName()+"}"));r=u.default.substituteArgs(t,a,r),n=u.default.substituteArgs(t,[],n)}return t.string=u.default.addArgs(t,r,t.string.slice(t.i)),t.i=0,t.itemFactory.create("beginEnv").setProperty("name",e.getName())}};p.Macro=c.default.Macro,e.default=p},7356:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(r(5174)),s=n(r(2085)),a=r(3233);!function(t){function e(t,e){return t.string.substr(t.i,e.length)!==e||e.match(/\\[a-z]+$/i)&&t.string.charAt(t.i+e.length).match(/[a-z]/i)?0:(t.i+=e.length,1)}t.disassembleSymbol=function(t,e){var r=[t,e.char];if(e.attributes)for(var n in e.attributes)r.push(n),r.push(e.attributes[n]);return r},t.assembleSymbol=function(t){for(var e=t[0],r=t[1],n={},i=2;i<t.length;i+=2)n[t[i]]=t[i+1];return new a.Symbol(e,r,n)},t.GetCSname=function(t,e){if("\\"!==t.GetNext())throw new s.default("MissingCS","%1 must be followed by a control sequence",e);return o.default.trimSpaces(t.GetArgument(e)).substr(1)},t.GetCsNameArgument=function(t,e){var r=o.default.trimSpaces(t.GetArgument(e));if("\\"===r.charAt(0)&&(r=r.substr(1)),!r.match(/^(.|[a-z]+)$/i))throw new s.default("IllegalControlSequenceName","Illegal control sequence name for %1",e);return r},t.GetArgCount=function(t,e){var r=t.GetBrackets(e);if(r&&!(r=o.default.trimSpaces(r)).match(/^[0-9]+$/))throw new s.default("IllegalParamNumber","Illegal number of parameters specified in %1",e);return r},t.GetTemplate=function(t,e,r){for(var n=t.GetNext(),i=[],o=0,a=t.i;t.i<t.string.length;){if("#"===(n=t.GetNext())){if(a!==t.i&&(i[o]=t.string.substr(a,t.i-a)),!(n=t.string.charAt(++t.i)).match(/^[1-9]$/))throw new s.default("CantUseHash2","Illegal use of # in template for %1",r);if(parseInt(n)!==++o)throw new s.default("SequentialParam","Parameters for %1 must be numbered sequentially",r);a=t.i+1}else if("{"===n)return a!==t.i&&(i[o]=t.string.substr(a,t.i-a)),i.length>0?[o.toString()].concat(i):o;t.i++}throw new s.default("MissingReplacementString","Missing replacement string for definition of %1",e)},t.GetParameter=function(t,r,n){if(null==n)return t.GetArgument(r);for(var i=t.i,o=0,a=0;t.i<t.string.length;){var l=t.string.charAt(t.i);if("{"===l)t.i===i&&(a=1),t.GetArgument(r),o=t.i-i;else{if(e(t,n))return a&&(i++,o-=2),t.string.substr(i,o);if("\\"===l){t.i++,o++,a=0;var c=t.string.substr(t.i).match(/[a-z]+|./i);c&&(t.i+=c[0].length,o=t.i-i)}else t.i++,o++,a=0}}throw new s.default("RunawayArgument","Runaway argument for %1?",r)},t.MatchParam=e,t.addDelimiter=function(e,r,n,i){e.configuration.handlers.retrieve(t.NEW_DELIMITER).add(r,new a.Symbol(r,n,i))},t.addMacro=function(e,r,n,i,o){void 0===o&&(o=""),e.configuration.handlers.retrieve(t.NEW_COMMAND).add(r,new a.Macro(o||r,n,i))},t.addEnvironment=function(e,r,n,i){e.configuration.handlers.retrieve(t.NEW_ENVIRONMENT).add(r,new a.Macro(r,n,i))},t.NEW_DELIMITER="new-Delimiter",t.NEW_COMMAND="new-Command",t.NEW_ENVIRONMENT="new-Environment"}(i||(i={})),e.default=i},5302:function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.NoUndefinedConfiguration=void 0;var i=r(6181);e.NoUndefinedConfiguration=i.Configuration.create("noundefined",{fallback:{macro:function(t,e){var r,i,o=t.create("text","\\"+e),s=t.options.noundefined||{},a={};try{for(var l=n(["color","background","size"]),c=l.next();!c.done;c=l.next()){var u=c.value;s[u]&&(a["math"+u]=s[u])}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}t.Push(t.create("node","mtext",[],a,o))}},options:{noundefined:{color:"red",background:"",size:""}},priority:3})},3707:function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},o=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.RequireConfiguration=e.options=e.RequireMethods=e.RequireLoad=void 0;var a=r(6181),l=r(3403),c=s(r(2085)),u=r(3284),h=r(894),p=r(4892),d=r(3198),f=r(7173),m=u.MathJax.config;function y(t,e){var r,i=t.parseOptions.options.require,o=t.parseOptions.packageData.get("require").required,s=e.substr(i.prefix.length);if(o.indexOf(s)<0){o.push(s),function(t,e){var r,i;void 0===e&&(e=[]);var o=t.parseOptions.options.require.prefix;try{for(var s=n(e),a=s.next();!a.done;a=s.next()){var l=a.value;l.substr(0,o.length)===o&&y(t,l)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}(t,p.CONFIG.dependencies[e]);var l=a.ConfigurationHandler.get(s);if(l){var c=m[e]||{};l.options&&1===Object.keys(l.options).length&&l.options[s]&&((r={})[s]=c,c=r),t.configuration.add(s,t,c);var u=t.parseOptions.packageData.get("require").configured;l.preprocessors.length&&!u.has(s)&&(u.set(s,!0),d.mathjax.retryAfter(Promise.resolve()))}}}function g(t,e){var r=t.options.require,n=r.allow,i=("["===e.substr(0,1)?"":r.prefix)+e;if(!(n.hasOwnProperty(i)?n[i]:n.hasOwnProperty(e)?n[e]:r.defaultAllow))throw new c.default("BadRequire",'Extension "%1" is not allowed to be loaded',i);h.Package.packages.has(i)?y(t.configuration.packageData.get("require").jax,i):d.mathjax.retryAfter(p.Loader.load(i))}e.RequireLoad=g,e.RequireMethods={Require:function(t,e){var r=t.GetArgument(e);if(r.match(/[^_a-zA-Z0-9]/)||""===r)throw new c.default("BadPackageName","Argument for %1 is not a valid package name",e);g(t,r)}},e.options={require:{allow:(0,f.expandable)({base:!1,"all-packages":!1,autoload:!1,configmacros:!1,tagformat:!1,setoptions:!1,texhtml:!1}),defaultAllow:!0,prefix:"tex"}},new l.CommandMap("require",{require:"Require"},e.RequireMethods),e.RequireConfiguration=a.Configuration.create("require",{handler:{macro:["require"]},config:function(t,e){e.parseOptions.packageData.set("require",{jax:e,required:o([],i(e.options.packages),!1),configured:new Map});var r=e.parseOptions.options.require,n=r.prefix;if(n.match(/[^_a-zA-Z0-9]/))throw Error("Illegal characters used in \\require prefix");p.CONFIG.paths[n]||(p.CONFIG.paths[n]="[mathjax]/input/tex/extensions"),r.prefix="["+n+"]/"},options:e.options})},3198:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mathjax=void 0;var n=r(8055),i=r(1592),o=r(8181);e.mathjax={version:n.VERSION,handlers:new i.HandlerList,document:function(t,r){return e.mathjax.handlers.document(t,r)},handleRetriesFor:o.handleRetriesFor,retryAfter:o.retryAfter,asyncLoad:null}},2574:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),l=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&s(e,t,r);return a(e,t),e},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CHTML=void 0;var u=r(4973),h=r(6380),p=r(8280),d=r(1701),f=l(r(7661)),m=r(6707),y=r(5111),g=function(t){function e(e){void 0===e&&(e=null);var r=t.call(this,e,p.ChtmlWrapperFactory,y.MathJaxModernFont)||this;return r.chtmlStyles=null,r.font.adaptiveCSS(r.options.adaptiveCSS),r.wrapperUsage=new d.Usage,r}return i(e,t),e.prototype.escaped=function(t,e){return this.setDocument(e),this.html("span",{},[this.text(t.math)])},e.prototype.styleSheet=function(r){if(this.chtmlStyles){var n=new h.CssStyles;return this.options.adaptiveCSS&&(this.addWrapperStyles(n),this.updateFontStyles(n)),n.addStyles(this.font.updateDynamicStyles()),this.adaptor.insertRules(this.chtmlStyles,n.getStyleRules()),this.chtmlStyles}var i=this.chtmlStyles=t.prototype.styleSheet.call(this,r);return this.adaptor.setAttribute(i,"id",e.STYLESHEETID),this.wrapperUsage.update(),i},e.prototype.updateFontStyles=function(t){t.addStyles(this.font.updateStyles({}))},e.prototype.addWrapperStyles=function(e){var r,n;if(this.options.adaptiveCSS)try{for(var i=c(this.wrapperUsage.update()),o=i.next();!o.done;o=i.next()){var s=o.value,a=this.factory.getNodeClass(s);a&&this.addClassStyles(a,e)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}else t.prototype.addWrapperStyles.call(this,e)},e.prototype.addClassStyles=function(e,r){var n,i=e;i.autoStyle&&"unknown"!==i.kind&&r.addStyles(((n={})["mjx-"+i.kind]={display:"inline-block","text-align":"left"},n)),this.wrapperUsage.add(i.kind),t.prototype.addClassStyles.call(this,e,r)},e.prototype.processMath=function(t,e){t.toCHTML([e])},e.prototype.clearCache=function(){this.cssStyles.clear(),this.font.clearCache(),this.wrapperUsage.clear(),this.chtmlStyles=null},e.prototype.reset=function(){this.clearCache()},e.prototype.getInitialScale=function(){return this.math.metrics.scale},e.prototype.unknownText=function(t,e,r,n){void 0===r&&(r=null),void 0===n&&(n=1);var i={},o=100/this.math.metrics.scale;if(100!==o&&(i["font-size"]=this.fixed(o,1)+"%",i.padding=f.em(75/o)+" 0 "+f.em(20/o)+" 0"),"-explicitFont"!==e){var s=(0,m.unicodeChars)(t);(1!==s.length||s[0]<119808||s[0]>120831)&&this.cssFontStyles(this.font.getCssFont(e),i)}if(null!==r){var a=this.math.metrics;i.width=Math.round(r*a.em*a.scale*n)+"px"}return this.html("mjx-utext",{variant:e,style:i},[this.text(t)])},e.prototype.measureTextNode=function(t){var e=this.adaptor,r=e.clone(t);e.setStyle(r,"font-family",e.getStyle(r,"font-family").replace(/MJXZERO, /g,""));var n=this.html("mjx-measure-text",{style:{position:"absolute","white-space":"nowrap"}},[r]);e.append(e.parent(this.math.start.node),this.container),e.append(this.container,n);var i=e.nodeSize(r,this.math.metrics.em)[0]/this.math.metrics.scale;return e.remove(this.container),e.remove(n),{w:i,h:.75,d:.2}},e.NAME="CHTML",e.OPTIONS=o(o({},u.CommonOutputJax.OPTIONS),{adaptiveCSS:!0,matchFontHeight:!0}),e.commonStyles={'mjx-container[jax="CHTML"]':{"white-space":"nowrap"},'mjx-container [space="1"]':{"margin-left":".111em"},'mjx-container [space="2"]':{"margin-left":".167em"},'mjx-container [space="3"]':{"margin-left":".222em"},'mjx-container [space="4"]':{"margin-left":".278em"},'mjx-container [space="5"]':{"margin-left":".333em"},'mjx-container [rspace="1"]':{"margin-right":".111em"},'mjx-container [rspace="2"]':{"margin-right":".167em"},'mjx-container [rspace="3"]':{"margin-right":".222em"},'mjx-container [rspace="4"]':{"margin-right":".278em"},'mjx-container [rspace="5"]':{"margin-right":".333em"},'mjx-container [size="s"]':{"font-size":"70.7%"},'mjx-container [size="ss"]':{"font-size":"50%"},'mjx-container [size="Tn"]':{"font-size":"60%"},'mjx-container [size="sm"]':{"font-size":"85%"},'mjx-container [size="lg"]':{"font-size":"120%"},'mjx-container [size="Lg"]':{"font-size":"144%"},'mjx-container [size="LG"]':{"font-size":"173%"},'mjx-container [size="hg"]':{"font-size":"207%"},'mjx-container [size="HG"]':{"font-size":"249%"},'mjx-container [width="full"]':{width:"100%"},"mjx-box":{display:"inline-block"},"mjx-block":{display:"block"},"mjx-itable":{display:"inline-table"},"mjx-row":{display:"table-row"},"mjx-row > *":{display:"table-cell"},"mjx-mtext":{display:"inline-block"},"mjx-mstyle":{display:"inline-block"},"mjx-merror":{display:"inline-block",color:"red","background-color":"yellow"},"mjx-mphantom":{visibility:"hidden"},"_::-webkit-full-page-media, _:future, :root mjx-container":{"will-change":"opacity"}},e.STYLESHEETID="MJX-CHTML-styles",e}(u.CommonOutputJax);e.CHTML=g},4947:function(t,e){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.AddFontIds=void 0,e.AddFontIds=function(t,e){var n,i,o,s,a,l,c={};try{for(var u=r(Object.keys(t)),h=u.next();!h.done;h=u.next()){var p=h.value,d=t[p];try{for(var f=(o=void 0,r(Object.keys(d))),m=f.next();!m.done;m=f.next()){var y=m.value;c[y]||(c[y]={});var g=d[y];if(p)try{for(var b=(a=void 0,r(Object.keys(g))),v=b.next();!v.done;v=b.next()){var M=v.value,O=g[parseInt(M)];O[3]||(O[3]={}),e?O[3].F=e+"-"+p:O[3].f=p}}catch(t){a={error:t}}finally{try{v&&!v.done&&(l=b.return)&&l.call(b)}finally{if(a)throw a.error}}Object.assign(c[y],g)}}catch(t){o={error:t}}finally{try{m&&!m.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}}}catch(t){n={error:t}}finally{try{h&&!h.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return c}},4791:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),a=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||s(e,t,r)},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.AddCSS=e.ChtmlFontData=void 0;var u=r(5959),h=r(1701),p=r(7661);a(r(5959),e);var d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.charUsage=new h.Usage,e.delimUsage=new h.Usage,e.fontUsage={},e.newFonts=0,e}return i(e,t),e.charOptions=function(e,r){return t.charOptions.call(this,e,r)},e.addFontURLs=function(t,e,r){var n,i;try{for(var s=l(Object.keys(e)),a=s.next();!a.done;a=s.next()){var c=a.value,u=o({},e[c]);u.src=u.src.replace(/%%URL%%/,r),t[c]=u}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},e.addDynamicFontCss=function(t,e,r){var n,i,o={};try{for(var s=l(e),a=s.next();!a.done;a=s.next()){var c=a.value,u=c.slice(4);o["@font-face /* ".concat(u," */")]={"font-family":c,src:'url("%%URL%%/'.concat(c.toLowerCase(),'.woff") format("woff")')},t[".".concat(u)]={"font-family":"".concat(this.defaultCssFamilyPrefix,", ").concat(c)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}this.addFontURLs(t,o,r)},e.addExtension=function(e,r){void 0===r&&(r=""),t.addExtension.call(this,e,r),e.fonts&&this.addDynamicFontCss(this.defaultStyles,e.fonts,e.fontURL)},e.prototype.adaptiveCSS=function(t){this.options.adaptiveCSS=t},e.prototype.clearCache=function(){this.options.adaptiveCSS&&(this.charUsage.clear(),this.delimUsage.clear())},e.prototype.createVariant=function(e,r,n){void 0===r&&(r=null),void 0===n&&(n=null),t.prototype.createVariant.call(this,e,r,n),this.variant[e].letter=this.constructor.defaultVariantLetters[e]},e.prototype.defineChars=function(r,n){var i,o;t.prototype.defineChars.call(this,r,n);var s=this.variant[r].letter;try{for(var a=l(Object.keys(n)),c=a.next();!c.done;c=a.next()){var u=c.value,h=parseInt(u);if(Array.isArray(n[h])){var p=e.charOptions(n,h);void 0===p.f&&(p.f=s)}}}catch(t){i={error:t}}finally{try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}},e.prototype.addDynamicFontCss=function(t,e){void 0===e&&(e=this.options.fontURL),this.constructor.addDynamicFontCss(this.fontUsage,t,e)},e.prototype.updateDynamicStyles=function(){var t=this.fontUsage;return this.fontUsage={},!this.options.adaptiveCSS&&this.updateStyles(t),t},Object.defineProperty(e.prototype,"styles",{get:function(){var t=this.constructor,e=o(o({},t.defaultStyles),this.fontUsage);return this.fontUsage={},t.addFontURLs(e,t.defaultFonts,this.options.fontURL),this.options.adaptiveCSS?this.updateStyles(e):this.allStyles(e),e},enumerable:!1,configurable:!0}),e.prototype.updateStyles=function(t){var e,r,n,i;try{for(var o=l(this.delimUsage.update()),s=o.next();!s.done;s=o.next()){var a=s.value;this.addDelimiterStyles(t,a,this.getDelimiter(a))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}try{for(var u=l(this.charUsage.update()),h=u.next();!h.done;h=u.next()){var p=c(h.value,2),d=p[0],f=(a=p[1],this.variant[d]);this.addCharStyles(t,f.letter,a,f.chars[a])}}catch(t){n={error:t}}finally{try{h&&!h.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return t},e.prototype.allStyles=function(t){var e,r,n,i,o,s,a;try{for(var c=l(Object.keys(this.delimiters)),u=c.next();!u.done;u=c.next()){var h=u.value,p=parseInt(h);this.addDelimiterStyles(t,p,this.delimiters[p])}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}try{for(var d=l(Object.keys(this.variant)),f=d.next();!f.done;f=d.next()){var m=f.value,y=this.variant[m],g=y.letter;try{for(var b=(o=void 0,l(Object.keys(y.chars))),v=b.next();!v.done;v=b.next()){h=v.value,p=parseInt(h);var M=y.chars[p];!(null===(a=null==M?void 0:M[3])||void 0===a?void 0:a.smp)&&Array.isArray(M)&&(M.length<4&&(M[3]={}),this.addCharStyles(t,g,p,M))}}catch(t){o={error:t}}finally{try{v&&!v.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}},e.prototype.addDelimiterStyles=function(t,e,r){if(r.stretch){var n=r.c&&r.c!==e?this.charSelector(r.c):this.charSelector(e);1===r.dir?this.addDelimiterVStyles(t,e,n,r):this.addDelimiterHStyles(t,e,n,r)}},e.prototype.addDelimiterVStyles=function(t,e,r,n){var i=n.HDW,o=c(n.stretch,4),s=o[0],a=o[1],l=o[2],u=o[3],h=c(this.getStretchVariants(e),4),p=h[0],d=h[1],f=h[2],m=h[3],y=this.addDelimiterVPart(t,r,"beg",s,p,i);this.addDelimiterVPart(t,r,"ext",a,d,i);var g=this.addDelimiterVPart(t,r,"end",l,f,i),b={};if(u){var v=this.addDelimiterVPart(t,r,"mid",u,m,i);b.height="50%",t["mjx-stretchy-v"+r+" > mjx-mid"]={"margin-top":this.em(-v/2),"margin-bottom":this.em(-v/2)}}y&&(b["border-top-width"]=this.em0(y-.03)),g&&(b["border-bottom-width"]=this.em0(g-.03),t["mjx-stretchy-v"+r+" > mjx-end"]={"margin-top":this.em(-g)}),Object.keys(b).length&&(t["mjx-stretchy-v"+r+" > mjx-ext"]=b)},e.prototype.addDelimiterVPart=function(t,e,r,n,i,o){if(!n)return 0;var s=this.getChar(i,n),a=(o[2]-s[2])/2,l={};return"ext"!==r?l.padding=this.padding(s,a):(l.width=this.em0(o[2]),a&&(l["padding-left"]=this.em0(a))),t["mjx-stretchy-v"+e+" mjx-"+r+" mjx-c"]=l,s[0]+s[1]},e.prototype.addDelimiterHStyles=function(t,e,r,n){var i=c(n.stretch,4),o=i[0],s=i[1],a=i[2],l=i[3],u=c(this.getStretchVariants(e),4),h=u[0],p=u[1],d=u[2],f=u[3],m=n.HDW;this.addDelimiterHPart(t,r,"beg",o,h,m),this.addDelimiterHPart(t,r,"ext",s,p,m),this.addDelimiterHPart(t,r,"end",a,d,m),l&&(this.addDelimiterHPart(t,r,"mid",l,f,m),t["mjx-stretchy-h"+r+" > mjx-ext"]={width:"50%"})},e.prototype.addDelimiterHPart=function(t,e,r,n,i,o){if(n){var s=this.getChar(i,n)[2],a={padding:this.padding(o,0,s-o[2])};t["mjx-stretchy-h"+e+" mjx-"+r+" mjx-c"]=a}},e.prototype.addCharStyles=function(t,e,r,n){var i=n[3],o=void 0!==i.f?i.f:e,s=i.F||(o?"".concat(this.cssFontPrefix,"-").concat(o):"");t["mjx-c"+this.charSelector(r)+(s?"."+s:"")]={padding:this.padding(n,0,i.ic||0)}},e.prototype.em=function(t){return(0,p.em)(t)},e.prototype.em0=function(t){return(0,p.em)(Math.max(0,t))},e.prototype.padding=function(t,e,r){var n=c(t,3),i=n[0],o=n[1];return void 0===e&&(e=0),void 0===r&&(r=0),[i,n[2]+r,o,e].map(this.em0).join(" ")},e.prototype.charSelector=function(t){return".mjx-c"+t.toString(16).toUpperCase()},e.OPTIONS=o(o({},u.FontData.OPTIONS),{dynamicPrefix:"./output/chtml/fonts",fontURL:"js/output/chtml/fonts/woff"}),e.JAX="CHTML",e.defaultVariantLetters={},e.defaultStyles={},e.defaultFonts={},e}(u.FontData);e.ChtmlFontData=d,e.AddCSS=function(t,e){var r,n;try{for(var i=l(Object.keys(e)),o=i.next();!o.done;o=i.next()){var s=o.value,a=parseInt(s),c=e[a];c.c&&(c.c=c.c.replace(/\\[0-9A-F]+/gi,(function(t){return String.fromCodePoint(parseInt(t.substr(1),16))}))),Object.assign(u.FontData.charOptions(t,a),c)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return t}},4673:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.Arrow=e.DiagonalArrow=e.DiagonalStrike=e.Border2=e.Border=e.RenderElement=void 0;var l=o(r(7524));s(r(7524),e);e.RenderElement=function(t,e){return void 0===e&&(e=""),function(r,n){var i=r.adjustBorder(r.html("mjx-"+t));if(e){var o=r.getOffset(e);if(r.thickness!==l.THICKNESS||o){var s="translate".concat(e,"(").concat(r.Em(r.thickness/2-o),")");r.adaptor.setStyle(i,"transform",s)}}r.adaptor.append(r.dom[0],i)}};e.Border=function(t){return l.CommonBorder((function(e,r){e.adaptor.setStyle(r,"border-"+t,e.Em(e.thickness)+" solid")}))(t)};e.Border2=function(t,e,r){return l.CommonBorder2((function(t,n){var i=t.Em(t.thickness)+" solid";t.adaptor.setStyle(n,"border-"+e,i),t.adaptor.setStyle(n,"border-"+r,i)}))(t,e,r)};e.DiagonalStrike=function(t,e){return l.CommonDiagonalStrike((function(t){return function(r,n){var i=r.getBBox(),o=i.w,s=i.h,l=i.d,c=a(r.getArgMod(o,s+l),2),u=c[0],h=c[1],p=e*r.thickness/2,d=r.adjustBorder(r.html(t,{style:{width:r.Em(h),transform:"rotate("+r.fixed(-e*u)+"rad) translateY("+p+"em)"}}));r.adaptor.append(r.dom[0],d)}}))(t)};e.DiagonalArrow=function(t){return l.CommonDiagonalArrow((function(t,e){t.adaptor.append(t.dom[0],e)}))(t)};e.Arrow=function(t){return l.CommonArrow((function(t,e){t.adaptor.append(t.dom[0],e)}))(t)}},1701:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Usage=void 0;var r=function(){function t(){this.used=new Set,this.needsUpdate=[]}return t.prototype.add=function(t){var e=JSON.stringify(t);this.used.has(e)||this.needsUpdate.push(t),this.used.add(e)},t.prototype.has=function(t){return this.used.has(JSON.stringify(t))},t.prototype.clear=function(){this.used.clear(),this.needsUpdate=[]},t.prototype.update=function(){var t=this.needsUpdate;return this.needsUpdate=[],t},t}();e.Usage=r},5118:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlWrapper=e.FONTSIZE=void 0;var a=r(4949),l=r(6152);e.FONTSIZE={"70.7%":"s","70%":"s","50%":"ss","60%":"Tn","85%":"sm","120%":"lg","144%":"Lg","173%":"LG","207%":"hg","249%":"HG"};var c=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return i(r,t),r.prototype.toCHTML=function(t){this.toEmbellishedCHTML(t)||this.addChildren(this.standardChtmlNodes(t))},r.prototype.toEmbellishedCHTML=function(t){var e,r,n=this;if(t.length<=1||!this.node.isEmbellished)return!1;var i=this.adaptor;t.forEach((function(t){return i.append(t,n.html("mjx-linestrut"))}));var a=this.coreMO().embellishedBreakStyle,l=[];try{for(var c=o([[t[0],"before"],[t[1],"after"]]),u=c.next();!u.done;u=c.next()){var h=s(u.value,2),p=h[0],d=h[1];a!==d?(this.toCHTML([p]),l.push(this.dom[0]),"after"===d&&i.removeAttribute(this.dom[0],"space")):l.push(this.createChtmlNodes([p])[0])}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}return this.dom=l,!0},r.prototype.addChildren=function(t){var e,r;try{for(var n=o(this.childNodes),i=n.next();!i.done;i=n.next()){i.value.toCHTML(t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},r.prototype.standardChtmlNodes=function(t){this.markUsed();var e=this.createChtmlNodes(t);return this.handleStyles(),this.handleScale(),this.handleBorders(),this.handleColor(),this.handleSpace(),this.handleAttributes(),this.handlePWidth(),e},r.prototype.markUsed=function(){this.jax.wrapperUsage.add(this.kind)},r.prototype.createChtmlNodes=function(t){var e,r,n=this;this.dom=t.map((function(t){return n.html("mjx-"+n.node.kind)})),t=this.handleHref(t);try{for(var i=o(t.keys()),s=i.next();!s.done;s=i.next()){var a=s.value;this.adaptor.append(t[a],this.dom[a])}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return this.dom},r.prototype.handleHref=function(t){var e=this,r=this.node.attributes.get("href");return r?t.map((function(t){return e.adaptor.append(t,e.html("a",{href:r}))})):t},r.prototype.handleStyles=function(){var t=this;if(this.styles){var e=this.styles.cssText;if(e){var r=this.adaptor;this.dom.forEach((function(t){return r.setAttribute(t,"style",e)}));var n=this.styles.get("font-family");n&&this.dom.forEach((function(e){return r.setStyle(e,"font-family",t.font.cssFamilyPrefix+", "+n)}))}}},r.prototype.handleScale=function(){var t=this;this.dom.forEach((function(e){return t.setScale(e,t.bbox.rscale)}))},r.prototype.setScale=function(t,r){var n=Math.abs(r-1)<.001?1:r;if(t&&1!==n){var i=this.percent(n);e.FONTSIZE[i]?this.adaptor.setAttribute(t,"size",e.FONTSIZE[i]):this.adaptor.setStyle(t,"fontSize",i)}return t},r.prototype.handleSpace=function(){var t,e,r=this.adaptor,n=!!this.node.getProperty("breakable"),i=this.dom.length-1;try{for(var l=o([[this.getLineBBox(0).L,"space","marginLeft",0],[this.getLineBBox(i).R,"rspace","marginRight",i]]),c=l.next();!c.done;c=l.next()){var u=c.value,h=s(u,4),p=h[0],d=h[1],f=h[2],m=h[3];if(p){var y=this.em(p);if(n){var g=r.node("mjx-break",a.SPACE[y]?{size:a.SPACE[y]}:{style:{"font-size":p.toFixed(1)+"%"}});r.insert(g,this.dom[m])}else a.SPACE[y]?r.setAttribute(this.dom[m],d,a.SPACE[y]):r.setStyle(this.dom[m],f,y)}else n&&"space"==d&&r.insert(r.node("mjx-break",{style:{"font-size":0}}),this.dom[m])}}catch(e){t={error:e}}finally{try{c&&!c.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}},r.prototype.handleBorders=function(){var t,e,r,n,i=null===(r=this.styleData)||void 0===r?void 0:r.border,s=null===(n=this.styleData)||void 0===n?void 0:n.padding,a=this.dom.length-1;if(i&&a){var l=this.adaptor;try{for(var c=o(this.dom.keys()),u=c.next();!u.done;u=c.next()){var h=u.value,p=this.dom[h];h&&(i.width[3]&&l.setStyle(p,"border-left"," none"),s[3]&&l.setStyle(p,"padding-left","0")),h!==a&&(i.width[1]&&l.setStyle(p,"border-right","none"),s[1]&&l.setStyle(p,"padding-right","0"))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}}},r.prototype.handleColor=function(){var t,e=this.adaptor,r=this.node.attributes,n=r.getExplicit("mathcolor")||r.getExplicit("color"),i=r.getExplicit("mathbackground")||r.getExplicit("background")||(null===(t=this.styles)||void 0===t?void 0:t.get("background-color"));n&&this.dom.forEach((function(t){return e.setStyle(t,"color",n)})),i&&this.dom.forEach((function(t){return e.setStyle(t,"backgroundColor",i)}))},r.prototype.handleAttributes=function(){var t,e,n,i,s=this.adaptor,a=this.node.attributes,l=a.getAllDefaults(),c=r.skipAttributes,u=function(t){if(!1===c[t]||!(t in l)&&!c[t]&&!s.hasAttribute(h.dom[0],t)){var e=a.getExplicit(t);h.dom.forEach((function(r){return s.setAttribute(r,t,e)}))}},h=this;try{for(var p=o(a.getExplicitNames()),d=p.next();!d.done;d=p.next()){u(d.value)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(e=p.return)&&e.call(p)}finally{if(t)throw t.error}}if(a.get("class")){var f=a.get("class").trim().split(/ +/),m=function(t){y.dom.forEach((function(e){return s.addClass(e,t)}))},y=this;try{for(var g=o(f),b=g.next();!b.done;b=g.next()){m(b.value)}}catch(t){n={error:t}}finally{try{b&&!b.done&&(i=g.return)&&i.call(g)}finally{if(n)throw n.error}}}},r.prototype.handlePWidth=function(){var t=this;if(this.bbox.pwidth){var e=this.adaptor;this.bbox.pwidth===l.BBox.fullWidth?this.dom.forEach((function(t){return e.setAttribute(t,"width","full")})):this.dom.forEach((function(r){return e.setStyle(r,"width",t.bbox.pwidth)}))}},r.prototype.setIndent=function(t,e,r){var n=this.adaptor;if("center"===e||"left"===e){var i=this.getBBox().L;n.setStyle(t,"margin-left",this.em(r+i))}if("center"===e||"right"===e){var o=this.getBBox().R;n.setStyle(t,"margin-right",this.em(-r+o))}},r.prototype.drawBBox=function(){var t=this.getOuterBBox(),e=t.w,r=t.h,n=t.d,i=t.R,o=this.html("mjx-box",{style:{opacity:.25,"margin-left":this.em(-e-i)}},[this.html("mjx-box",{style:{height:this.em(r),width:this.em(e),"background-color":"red"}}),this.html("mjx-box",{style:{height:this.em(n),width:this.em(e),"margin-left":this.em(-e),"vertical-align":this.em(-n),"background-color":"green"}})]),s=this.dom[0]||this.parent.dom[0],a=this.adaptor.getAttribute(s,"size");a&&this.adaptor.setAttribute(o,"size",a);var l=this.adaptor.getStyle(s,"fontSize");l&&this.adaptor.setStyle(o,"fontSize",l),this.adaptor.append(this.adaptor.parent(s),o),this.adaptor.setStyle(s,"backgroundColor","#FFEE00")},r.prototype.html=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r=[]),this.jax.html(t,e,r)},r.prototype.text=function(t){return this.jax.text(t)},r.prototype.char=function(t){return this.font.charSelector(t).substr(1)},r.kind="unknown",r.autoStyle=!0,r}(a.CommonWrapper);e.ChtmlWrapper=c},8280:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlWrapperFactory=void 0;var o=r(1914),s=r(8326),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.defaultNodes=s.ChtmlWrappers,e}(o.CommonWrapperFactory);e.ChtmlWrapperFactory=a},8326:function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlWrappers=void 0;var i=r(5118),o=r(3607),s=r(3819),a=r(1526),l=r(8928),c=r(2852),u=r(1673),h=r(8381),p=r(555),d=r(377),f=r(4352),m=r(5683),y=r(4221),g=r(7357),b=r(456),v=r(4518),M=r(5872),O=r(7456),x=r(6298),S=r(9788),E=r(4191),C=r(4567),_=r(5341),A=r(9972),N=r(6936),w=r(6166),T=r(3026);e.ChtmlWrappers=((n={})[o.ChtmlMath.kind]=o.ChtmlMath,n[f.ChtmlMrow.kind]=f.ChtmlMrow,n[f.ChtmlInferredMrow.kind]=f.ChtmlInferredMrow,n[s.ChtmlMi.kind]=s.ChtmlMi,n[a.ChtmlMo.kind]=a.ChtmlMo,n[l.ChtmlMn.kind]=l.ChtmlMn,n[c.ChtmlMs.kind]=c.ChtmlMs,n[u.ChtmlMtext.kind]=u.ChtmlMtext,n[h.ChtmlMspace.kind]=h.ChtmlMspace,n[p.ChtmlMpadded.kind]=p.ChtmlMpadded,n[d.ChtmlMenclose.kind]=d.ChtmlMenclose,n[y.ChtmlMfrac.kind]=y.ChtmlMfrac,n[g.ChtmlMsqrt.kind]=g.ChtmlMsqrt,n[b.ChtmlMroot.kind]=b.ChtmlMroot,n[v.ChtmlMsub.kind]=v.ChtmlMsub,n[v.ChtmlMsup.kind]=v.ChtmlMsup,n[v.ChtmlMsubsup.kind]=v.ChtmlMsubsup,n[M.ChtmlMunder.kind]=M.ChtmlMunder,n[M.ChtmlMover.kind]=M.ChtmlMover,n[M.ChtmlMunderover.kind]=M.ChtmlMunderover,n[O.ChtmlMmultiscripts.kind]=O.ChtmlMmultiscripts,n[m.ChtmlMfenced.kind]=m.ChtmlMfenced,n[x.ChtmlMtable.kind]=x.ChtmlMtable,n[S.ChtmlMtr.kind]=S.ChtmlMtr,n[S.ChtmlMlabeledtr.kind]=S.ChtmlMlabeledtr,n[E.ChtmlMtd.kind]=E.ChtmlMtd,n[C.ChtmlMaction.kind]=C.ChtmlMaction,n[_.ChtmlMglyph.kind]=_.ChtmlMglyph,n[A.ChtmlSemantics.kind]=A.ChtmlSemantics,n[A.ChtmlAnnotation.kind]=A.ChtmlAnnotation,n[A.ChtmlAnnotationXML.kind]=A.ChtmlAnnotationXML,n[A.ChtmlXmlNode.kind]=A.ChtmlXmlNode,n[N.ChtmlTeXAtom.kind]=N.ChtmlTeXAtom,n[w.ChtmlTextNode.kind]=w.ChtmlTextNode,n[T.ChtmlHtmlNode.kind]=T.ChtmlHtmlNode,n[i.ChtmlWrapper.kind]=i.ChtmlWrapper,n)},3026:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlHtmlNode=void 0;var o,s=r(5118),a=r(2516),l=r(1338);e.ChtmlHtmlNode=(o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(t){this.markUsed(),this.dom=[this.adaptor.append(t[0],this.getHTML())]},e}((0,a.CommonHtmlNodeMixin)(s.ChtmlWrapper)),o.kind=l.HtmlNode.prototype.kind,o.styles={"mjx-html":{"line-height":"normal","text-align":"initial"},"mjx-html-holder":{display:"block",position:"absolute",width:"100%",height:"100%"}},o)},6936:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlTeXAtom=void 0;var o,s=r(5118),a=r(8174),l=r(1105),c=r(8594);e.ChtmlTeXAtom=(o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(e){var r=this;if(t.prototype.toCHTML.call(this,e),this.dom.forEach((function(t){return r.adaptor.setAttribute(t,"texclass",c.TEXCLASSNAMES[r.node.texClass])})),this.node.texClass===c.TEXCLASS.VCENTER){var n=this.childNodes[0].getBBox(),i=n.h,o=(i+n.d)/2+this.font.params.axis_height-i;this.adaptor.setStyle(this.dom[0],"verticalAlign",this.em(o))}},e}((0,a.CommonTeXAtomMixin)(s.ChtmlWrapper)),o.kind=l.TeXAtom.prototype.kind,o.styles={'mjx-texatom[texclass="VBOX"] > mjx-linestack':{display:"inline-block"},'mjx-texatom[texclass="VBOX"] > mjx-mpadded > mjx-block > mjx-linestack':{display:"inline-block"}},o)},6166:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlTextNode=void 0;var s,a=r(5118),l=r(3763),c=r(8594);e.ChtmlTextNode=(s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(t){var e,r;this.markUsed();var n=t[0],i=this.adaptor,s=this.parent.variant,a=this.node.getText();if(0!==a.length)if("-explicitFont"===s){var l=this.parent.getBBox().scale;i.append(n,this.jax.unknownText(a,s,this.getBBox().w,l))}else{var c="",u=this.remappedText(a,s);try{for(var h=o(u),p=h.next();!p.done;p=h.next()){var d=p.value,f=this.getVariantChar(s,d)[3];if(f.unknown)c+=String.fromCodePoint(d);else{c=this.addUtext(c,s,n);var m=f.F||(f.f?"".concat(this.font.cssFontPrefix,"-").concat(f.f):"");i.append(n,this.html("mjx-c",{class:this.char(d)+(m?" "+m:"")},[this.text(f.c||String.fromCodePoint(d))])),this.font.charUsage.add([s,d])}}}catch(t){e={error:t}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(e)throw e.error}}this.addUtext(c,s,n)}},e.prototype.addUtext=function(t,e,r){return t&&this.adaptor.append(r,this.jax.unknownText(t,e)),""},e}((0,l.CommonTextNodeMixin)(a.ChtmlWrapper)),s.kind=c.TextNode.prototype.kind,s.autoStyle=!1,s.styles={"mjx-c":{display:"inline-block",width:0},"mjx-utext":{display:"inline-block",padding:".75em 0 .2em 0"}},s)},4567:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMaction=void 0;var s,a=r(5118),l=r(6033),c=r(1137),u=r(6033),h=r(6e3);e.ChtmlMaction=(s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setEventHandler=function(t,e,r){void 0===r&&(r=null),(r?[r]:this.dom).forEach((function(r){return r.addEventListener(t,e)}))},e.prototype.Em=function(t){return this.em(t)},e.prototype.toCHTML=function(t){if(!this.toEmbellishedCHTML(t)){var e=this.standardChtmlNodes(t);this.selected.toCHTML(e),this.action(this,this.data)}},e}((0,l.CommonMactionMixin)(a.ChtmlWrapper)),s.kind=c.MmlMaction.prototype.kind,s.styles={"mjx-maction":{position:"relative"},"mjx-maction > mjx-tool":{display:"none",position:"absolute",bottom:0,right:0,width:0,height:0,"z-index":500},"mjx-tool > mjx-tip":{display:"inline-block",padding:".2em",border:"1px solid #888","font-size":"70%","background-color":"#F8F8F8",color:"black","box-shadow":"2px 2px 5px #AAAAAA"},"mjx-maction[toggle]":{cursor:"pointer"},"mjx-status":{display:"block",position:"fixed",left:"1em",bottom:"1em","min-width":"25%",padding:".2em .4em",border:"1px solid #888","font-size":"90%","background-color":"#F8F8F8",color:"black"}},s.actions=new Map([["toggle",[function(t,e){t.dom.forEach((function(e){t.adaptor.setAttribute(e,"toggle",t.node.attributes.get("selection"))}));var r=t.factory.jax.math,n=t.factory.jax.document,i=t.node;t.setEventHandler("click",(function(t){r.end.node||(r.start.node=r.end.node=r.typesetRoot,r.start.n=r.end.n=0),i.nextToggleSelection(),r.rerender(n,i.attributes.get("data-maction-id")?h.STATE.ENRICH:h.STATE.RERENDER),t.stopPropagation()}))},{}]],["tooltip",[function(t,e){var r,n,i=t.childNodes[1];if(i)if(i.node.isKind("mtext")){var s=i.node.getText();t.dom.forEach((function(e){return t.adaptor.setAttribute(e,"title",s)}))}else{var a=t.adaptor,l=function(r){var n=a.append(r,t.html("mjx-tool",{style:{bottom:t.Em(-t.tipDy),right:t.Em(-t.tipDx)}},[t.html("mjx-tip")]));i.toCHTML([a.firstChild(n)]),t.setEventHandler("mouseover",(function(t){e.stopTimers(r,e);var i=setTimeout((function(){return a.setStyle(n,"display","block")}),e.postDelay);e.hoverTimer.set(r,i),t.stopPropagation()}),r),t.setEventHandler("mouseout",(function(t){e.stopTimers(r,e);var i=setTimeout((function(){return a.setStyle(n,"display","")}),e.clearDelay);e.clearTimer.set(r,i),t.stopPropagation()}),r)};try{for(var c=o(t.dom),u=c.next();!u.done;u=c.next())l(u.value)}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}},u.TooltipData]],["statusline",[function(t,e){var r=t.childNodes[1];if(r&&r.node.isKind("mtext")){var n=t.adaptor,i=r.node.getText();t.dom.forEach((function(t){return n.setAttribute(t,"statusline",i)})),t.setEventHandler("mouseover",(function(r){if(null===e.status){var o=n.body(n.document);e.status=n.append(o,t.html("mjx-status",{},[t.text(i)]))}r.stopPropagation()})),t.setEventHandler("mouseout",(function(t){e.status&&(n.remove(e.status),e.status=null),t.stopPropagation()}))}},{status:null}]]]),s)},3607:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMath=void 0;var s,a=r(5118),l=r(5906),c=r(1365),u=r(6152);e.ChtmlMath=(s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.handleDisplay=function(t){var e=this.adaptor,r=o(this.getAlignShift(),2),n=r[0],i=r[1];if("center"!==n&&e.setAttribute(t,"justify",n),this.bbox.pwidth===u.BBox.fullWidth){if(e.setAttribute(t,"width","full"),this.jax.table){var s=this.jax.table.getOuterBBox(),a=s.L,l=s.w,c=s.R;"right"===n?c=Math.max(c||-i,-i):"left"===n?a=Math.max(a||i,i):"center"===n&&(l+=2*Math.abs(i));var h=this.em(Math.max(0,a+l+c));e.setStyle(t,"min-width",h),e.setStyle(this.jax.table.dom[0],"min-width",h)}}else this.setIndent(this.dom[0],n,i)},e.prototype.handleInline=function(t){var e=this.adaptor,r=e.getStyle(this.dom[0],"margin-right");r&&(e.setStyle(this.dom[0],"margin-right",""),e.setStyle(t,"margin-right",r),e.setStyle(t,"width","0"))},e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);var r=this.adaptor;"block"===this.node.attributes.get("display")?(r.setAttribute(this.dom[0],"display","true"),r.setAttribute(e[0],"display","true"),this.handleDisplay(e[0])):this.handleInline(e[0]),r.addClass(this.dom[0],"".concat(this.font.cssFontPrefix,"-N"))},e.prototype.setChildPWidths=function(e,r,n){return void 0===r&&(r=null),void 0===n&&(n=!0),!!this.parent&&t.prototype.setChildPWidths.call(this,e,r,n)},e.prototype.handleAttributes=function(){t.prototype.handleAttributes.call(this);var e=this.adaptor;this.node.getProperty("breakable")&&this.dom.forEach((function(t){return e.setAttribute(t,"breakable","true")}))},e}((0,l.CommonMathMixin)(a.ChtmlWrapper)),s.kind=c.MmlMath.prototype.kind,s.styles={"mjx-math":{"line-height":0,"text-align":"left","text-indent":0,"font-style":"normal","font-weight":"normal","font-size":"100%","font-size-adjust":"none","letter-spacing":"normal","word-wrap":"normal","word-spacing":"normal",direction:"ltr",padding:"1px 0"},'mjx-container[jax="CHTML"][display="true"]':{display:"block","text-align":"center","justify-content":"center",margin:"1em 0"},'mjx-container[jax="CHTML"][display="true"][width="full"]':{display:"flex"},'mjx-container[jax="CHTML"][display="true"] mjx-math':{padding:0},'mjx-container[jax="CHTML"][justify="left"]':{"text-align":"left","justify-content":"left"},'mjx-container[jax="CHTML"][justify="right"]':{"text-align":"right","justify-content":"right"},"mjx-break::after":{content:'" "',"white-space":"normal"},'mjx-break[size="1"]':{"font-size":"11.1%"},'mjx-break[size="2"]':{"font-size":"16.7%"},'mjx-break[size="3"]':{"font-size":"22.2%"},'mjx-break[size="4"]':{"font-size":"27.8%"},'mjx-break[size="5"]':{"font-size":"33.3%"},"mjx-math[breakable]":{display:"inline"}},s)},377:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&o(e,t,r);return s(e,t),e},l=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMenclose=void 0;var u=r(5118),h=r(1977),p=r(5282),d=a(r(4673)),f=r(7661);function m(t,e){return Math.atan2(t,e).toFixed(3).replace(/\.?0+$/,"")}var y,g=m(d.ARROWDX,d.ARROWY);e.ChtmlMenclose=(y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.adjustArrow=function(t,e){var r=this,n=this.thickness,i=this.arrowhead;if(i.x!==d.ARROWX||i.y!==d.ARROWY||i.dx!==d.ARROWDX||n!==d.THICKNESS){var o=l([n*i.x,n*i.y].map((function(t){return r.em(t)})),2),s=o[0],a=o[1],c=m(i.dx,i.y),u=l(this.adaptor.childNodes(t),5),h=u[0],p=u[1],f=u[2],y=u[3],g=u[4];this.adjustHead(p,[a,"0","1px",s],c),this.adjustHead(f,["1px","0",a,s],"-"+c),this.adjustHead(y,[a,s,"1px","0"],"-"+c),this.adjustHead(g,["1px",s,a,"0"],c),this.adjustLine(h,n,i.x,e)}},e.prototype.adjustHead=function(t,e,r){t&&(this.adaptor.setStyle(t,"border-width",e.join(" ")),this.adaptor.setStyle(t,"transform","skewX("+r+"rad)"))},e.prototype.adjustLine=function(t,e,r,n){this.adaptor.setStyle(t,"borderTop",this.em(e)+" solid"),this.adaptor.setStyle(t,"top",this.em(-e/2)),this.adaptor.setStyle(t,"right",this.em(e*(r-1))),n&&this.adaptor.setStyle(t,"left",this.em(e*(r-1)))},e.prototype.moveArrow=function(t,e,r){if(r){var n=this.adaptor.getStyle(t,"transform");this.adaptor.setStyle(t,"transform","translate".concat(e,"(").concat(this.em(-r),")").concat(n?" "+n:""))}},e.prototype.adjustBorder=function(t){return this.thickness!==d.THICKNESS&&this.adaptor.setStyle(t,"borderWidth",this.em(this.thickness)),t},e.prototype.adjustThickness=function(t){return this.thickness!==d.THICKNESS&&this.adaptor.setStyle(t,"strokeWidth",this.fixed(this.thickness)),t},e.prototype.fixed=function(t,e){return void 0===e&&(e=3),Math.abs(t)<6e-4?"0":t.toFixed(e).replace(/\.?0+$/,"")},e.prototype.Em=function(e){return t.prototype.em.call(this,e)},e.prototype.toCHTML=function(t){var e,r,n,i,o=this.adaptor,s=this.standardChtmlNodes(t),a=o.append(s[0],this.html("mjx-box"));this.renderChild?this.renderChild(this,a):this.childNodes[0].toCHTML([a]);try{for(var l=c(Object.keys(this.notations)),u=l.next();!u.done;u=l.next()){var h=u.value,p=this.notations[h];!p.renderChild&&p.renderer(this,a)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}var f=this.getPadding();try{for(var m=c(d.sideNames),y=m.next();!y.done;y=m.next()){var g=y.value,b=d.sideIndex[g];f[b]>0&&o.setStyle(a,"padding-"+g,this.em(f[b]))}}catch(t){n={error:t}}finally{try{y&&!y.done&&(i=m.return)&&i.call(m)}finally{if(n)throw n.error}}},e.prototype.arrow=function(t,e,r,n,i){void 0===n&&(n=""),void 0===i&&(i=0);var o=this.getBBox().w,s={width:this.em(t)};o!==t&&(s.left=this.em((o-t)/2)),e&&(s.transform="rotate("+this.fixed(e)+"rad)");var a=this.html("mjx-arrow",{style:s},[this.html("mjx-aline"),this.html("mjx-rthead"),this.html("mjx-rbhead")]);return r&&(this.adaptor.append(a,this.html("mjx-lthead")),this.adaptor.append(a,this.html("mjx-lbhead")),this.adaptor.setAttribute(a,"double","true")),this.adjustArrow(a,r),this.moveArrow(a,n,i),a},e}((0,h.CommonMencloseMixin)(u.ChtmlWrapper)),y.kind=p.MmlMenclose.prototype.kind,y.styles={"mjx-menclose":{position:"relative"},"mjx-menclose > mjx-dstrike":{display:"inline-block",left:0,top:0,position:"absolute","border-top":d.SOLID,"transform-origin":"top left"},"mjx-menclose > mjx-ustrike":{display:"inline-block",left:0,bottom:0,position:"absolute","border-top":d.SOLID,"transform-origin":"bottom left"},"mjx-menclose > mjx-hstrike":{"border-top":d.SOLID,position:"absolute",left:0,right:0,bottom:"50%",transform:"translateY("+(0,f.em)(d.THICKNESS/2)+")"},"mjx-menclose > mjx-vstrike":{"border-left":d.SOLID,position:"absolute",top:0,bottom:0,right:"50%",transform:"translateX("+(0,f.em)(d.THICKNESS/2)+")"},"mjx-menclose > mjx-rbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:d.SOLID,"border-radius":(0,f.em)(d.THICKNESS+d.PADDING)},"mjx-menclose > mjx-cbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:d.SOLID,"border-radius":"50%"},"mjx-menclose > mjx-arrow":{position:"absolute",left:0,bottom:"50%",height:0,width:0},"mjx-menclose > mjx-arrow > *":{display:"block",position:"absolute","transform-origin":"bottom","border-left":(0,f.em)(d.THICKNESS*d.ARROWX)+" solid","border-right":0,"box-sizing":"border-box"},"mjx-menclose > mjx-arrow > mjx-aline":{left:0,top:(0,f.em)(-d.THICKNESS/2),right:(0,f.em)(d.THICKNESS*(d.ARROWX-1)),height:0,"border-top":(0,f.em)(d.THICKNESS)+" solid","border-left":0},"mjx-menclose > mjx-arrow[double] > mjx-aline":{left:(0,f.em)(d.THICKNESS*(d.ARROWX-1)),height:0},"mjx-menclose > mjx-arrow > mjx-rthead":{transform:"skewX("+g+"rad)",right:0,bottom:"-1px","border-bottom":"1px solid transparent","border-top":(0,f.em)(d.THICKNESS*d.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-rbhead":{transform:"skewX(-"+g+"rad)","transform-origin":"top",right:0,top:"-1px","border-top":"1px solid transparent","border-bottom":(0,f.em)(d.THICKNESS*d.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lthead":{transform:"skewX(-"+g+"rad)",left:0,bottom:"-1px","border-left":0,"border-right":(0,f.em)(d.THICKNESS*d.ARROWX)+" solid","border-bottom":"1px solid transparent","border-top":(0,f.em)(d.THICKNESS*d.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lbhead":{transform:"skewX("+g+"rad)","transform-origin":"top",left:0,top:"-1px","border-left":0,"border-right":(0,f.em)(d.THICKNESS*d.ARROWX)+" solid","border-top":"1px solid transparent","border-bottom":(0,f.em)(d.THICKNESS*d.ARROWY)+" solid transparent"},"mjx-menclose > dbox":{position:"absolute",top:0,bottom:0,left:(0,f.em)(-1.5*d.PADDING),width:(0,f.em)(3*d.PADDING),border:(0,f.em)(d.THICKNESS)+" solid","border-radius":"50%","clip-path":"inset(0 0 0 "+(0,f.em)(1.5*d.PADDING)+")","box-sizing":"border-box"}},y.notations=new Map([d.Border("top"),d.Border("right"),d.Border("bottom"),d.Border("left"),d.Border2("actuarial","top","right"),d.Border2("madruwb","bottom","right"),d.DiagonalStrike("up",1),d.DiagonalStrike("down",-1),["horizontalstrike",{renderer:d.RenderElement("hstrike","Y"),bbox:function(t){return[0,t.padding,0,t.padding]}}],["verticalstrike",{renderer:d.RenderElement("vstrike","X"),bbox:function(t){return[t.padding,0,t.padding,0]}}],["box",{renderer:function(t,e){t.adaptor.setStyle(e,"border",t.Em(t.thickness)+" solid")},bbox:d.fullBBox,border:d.fullBorder,remove:"left right top bottom"}],["roundedbox",{renderer:d.RenderElement("rbox"),bbox:d.fullBBox}],["circle",{renderer:d.RenderElement("cbox"),bbox:d.fullBBox}],["phasorangle",{renderer:function(t,e){var r=t.getBBox(),n=r.h,i=r.d,o=l(t.getArgMod(1.75*t.padding,n+i),2),s=o[0],a=o[1],c=t.thickness*Math.sin(s)*.9;t.adaptor.setStyle(e,"border-bottom",t.Em(t.thickness)+" solid");var u=t.adjustBorder(t.html("mjx-ustrike",{style:{width:t.Em(a),transform:"translateX("+t.Em(c)+") rotate("+t.fixed(-s)+"rad)"}}));t.adaptor.append(t.dom[0],u)},bbox:function(t){var e=t.padding/2,r=t.thickness;return[2*e,e,e+r,3*e+r]},border:function(t){return[0,0,t.thickness,0]},remove:"bottom"}],d.Arrow("up"),d.Arrow("down"),d.Arrow("left"),d.Arrow("right"),d.Arrow("updown"),d.Arrow("leftright"),d.DiagonalArrow("updiagonal"),d.DiagonalArrow("northeast"),d.DiagonalArrow("southeast"),d.DiagonalArrow("northwest"),d.DiagonalArrow("southwest"),d.DiagonalArrow("northeastsouthwest"),d.DiagonalArrow("northwestsoutheast"),["longdiv",{renderer:function(t,e){var r=t.adaptor;r.setStyle(e,"border-top",t.Em(t.thickness)+" solid");var n=r.append(t.dom[0],t.html("dbox")),i=t.thickness,o=t.padding;i!==d.THICKNESS&&r.setStyle(n,"border-width",t.Em(i)),o!==d.PADDING&&(r.setStyle(n,"left",t.Em(-1.5*o)),r.setStyle(n,"width",t.Em(3*o)),r.setStyle(n,"clip-path","inset(0 0 0 "+t.Em(1.5*o)+")"))},bbox:function(t){var e=t.padding,r=t.thickness;return[e+r,e,e,2*e+r/2]}}],["radical",{renderer:function(t,e){t.msqrt.toCHTML([e]);var r=t.sqrtTRBL();t.adaptor.setStyle(t.msqrt.dom[0],"margin",r.map((function(e){return t.Em(-e)})).join(" "))},init:function(t){t.msqrt=t.createMsqrt(t.childNodes[0])},bbox:function(t){return t.sqrtTRBL()},renderChild:!0}]]),y)},5683:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMfenced=void 0;var o,s=r(5118),a=r(8062),l=r(2275);e.ChtmlMfenced=(o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(t){var e=this.standardChtmlNodes(t);this.mrow.toCHTML(e)},e}((0,a.CommonMfencedMixin)(s.ChtmlWrapper)),o.kind=l.MmlMfenced.prototype.kind,o)},4221:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMfrac=void 0;var s,a=r(5118),l=r(5804),c=r(3785);e.ChtmlMfrac=(s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(t){if(!this.toEmbellishedCHTML(t)){this.standardChtmlNodes(t);var e=this.node.attributes.getList("linethickness","bevelled"),r=e.linethickness,n=e.bevelled,i=this.isDisplay();if(n)this.makeBevelled(i);else{var o=this.length2em(String(r),.06);0===o?this.makeAtop(i):this.makeFraction(i,o)}}},e.prototype.makeFraction=function(t,e){var r,n,i=this.node.attributes.getList("numalign","denomalign"),s=i.numalign,a=i.denomalign,l=t?{type:"d"}:{},c=this.node.getProperty("withDelims")?o(o({},l),{delims:"true"}):o({},l),u="center"!==s?{align:s}:{},h="center"!==a?{align:a}:{},p=o({},l),d=o({},l),f=this.font.params;if(.06!==e){var m=f.axis_height,y=this.em(e),g=this.getTUV(t,e),b=g.T,v=g.u,M=g.v,O=(t?this.em(3*e):y)+" -.1em";l.style={height:y,"border-top":y+" solid",margin:O};var x=this.em(Math.max(0,v));d.style={height:x,"vertical-align":"-"+x},p.style={height:this.em(Math.max(0,M))},c.style={"vertical-align":this.em(m-b)}}this.adaptor.append(this.dom[0],this.html("mjx-frac",c,[r=this.html("mjx-num",u,[this.html("mjx-nstrut",d)]),this.html("mjx-dbox",{},[this.html("mjx-dtable",{},[this.html("mjx-line",l),this.html("mjx-row",{},[n=this.html("mjx-den",h,[this.html("mjx-dstrut",p)])])])])])),this.childNodes[0].toCHTML([r]),this.childNodes[1].toCHTML([n])},e.prototype.makeAtop=function(t){var e,r,n=this.node.attributes.getList("numalign","denomalign"),i=n.numalign,s=n.denomalign,a=t?{type:"d",atop:!0}:{atop:!0},l=this.node.getProperty("withDelims")?o(o({},a),{delims:!0}):o({},a),c="center"!==i?{align:i}:{},u="center"!==s?{align:s}:{},h=this.getUVQ(t),p=h.v,d=h.q;c.style={"padding-bottom":this.em(d)},l.style={"vertical-align":this.em(-p)},this.adaptor.append(this.dom[0],this.html("mjx-frac",l,[e=this.html("mjx-num",c),r=this.html("mjx-den",u)])),this.childNodes[0].toCHTML([e]),this.childNodes[1].toCHTML([r])},e.prototype.makeBevelled=function(t){var e=this.adaptor;e.setAttribute(this.dom[0],"bevelled","ture");var r=e.append(this.dom[0],this.html("mjx-num"));this.childNodes[0].toCHTML([r]),this.bevel.toCHTML(this.dom);var n=e.append(this.dom[0],this.html("mjx-den"));this.childNodes[1].toCHTML([n]);var i=this.getBevelData(t),o=i.u,s=i.v,a=i.delta,l=i.nbox,c=i.dbox;o&&e.setStyle(r,"verticalAlign",this.em(o/l.scale)),s&&e.setStyle(n,"verticalAlign",this.em(s/c.scale));var u=this.em(-a/2);e.setStyle(this.bevel.dom[0],"marginLeft",u),e.setStyle(this.bevel.dom[0],"marginRight",u)},e}((0,l.CommonMfracMixin)(a.ChtmlWrapper)),s.kind=c.MmlMfrac.prototype.kind,s.styles={"mjx-frac":{display:"inline-block","vertical-align":"0.17em",padding:"0 .22em"},'mjx-frac[type="d"]':{"vertical-align":".04em"},"mjx-frac[delims]":{padding:"0 .1em"},"mjx-frac[atop]":{padding:"0 .12em"},"mjx-frac[atop][delims]":{padding:"0"},"mjx-dtable":{display:"inline-table",width:"100%"},"mjx-dtable > *":{"font-size":"2000%"},"mjx-dbox":{display:"block","font-size":"5%"},"mjx-num":{display:"block","text-align":"center"},"mjx-den":{display:"block","text-align":"center"},"mjx-mfrac[bevelled] > mjx-num":{display:"inline-block"},"mjx-mfrac[bevelled] > mjx-den":{display:"inline-block"},'mjx-den[align="right"], mjx-num[align="right"]':{"text-align":"right"},'mjx-den[align="left"], mjx-num[align="left"]':{"text-align":"left"},"mjx-nstrut":{display:"inline-block",height:".054em",width:0,"vertical-align":"-.054em"},'mjx-nstrut[type="d"]':{height:".217em","vertical-align":"-.217em"},"mjx-dstrut":{display:"inline-block",height:".505em",width:0},'mjx-dstrut[type="d"]':{height:".726em"},"mjx-line":{display:"block","box-sizing":"border-box","min-height":"1px",height:".06em","border-top":".06em solid",margin:".06em -.1em",overflow:"hidden"},'mjx-line[type="d"]':{margin:".18em -.1em"}},s)},5341:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMglyph=void 0;var o,s=r(5118),a=r(6211),l=r(5373);e.ChtmlMglyph=(o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(t){var e=this.standardChtmlNodes(t);if(this.charWrapper)this.charWrapper.toCHTML(e);else{var r=this.node.attributes.getList("src","alt"),n=r.src,i=r.alt,o={width:this.em(this.width),height:this.em(this.height)};this.valign&&(o.verticalAlign=this.em(this.valign));var s=this.html("img",{src:n,style:o,alt:i,title:i});this.adaptor.append(e[0],s)}},e}((0,a.CommonMglyphMixin)(s.ChtmlWrapper)),o.kind=l.MmlMglyph.prototype.kind,o.styles={"mjx-mglyph > img":{display:"inline-block",border:0,padding:0}},o)},3819:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMi=void 0;var o,s=r(5118),a=r(5143),l=r(9979);e.ChtmlMi=(o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}((0,a.CommonMiMixin)(s.ChtmlWrapper)),o.kind=l.MmlMi.prototype.kind,o)},7456:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMmultiscripts=void 0;var s,a=r(4719),l=r(4518),c=r(7530),u=r(6707);e.ChtmlMmultiscripts=(s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(t){if(!this.toEmbellishedCHTML(t)){var e=this.standardChtmlNodes(t),r=this.scriptData,n=this.node.getProperty("scriptalign")||"right left",i=o((0,u.split)(n+" "+n),2),s=i[0],a=i[1],l=o(this.getCombinedUV(),2),c=l[0],h=l[1];if(r.numPrescripts){var p=this.addScripts(this.dom[0],c,-h,!0,r.psub,r.psup,this.firstPrescript,r.numPrescripts);"right"!==s&&this.adaptor.setAttribute(p,"script-align",s)}this.childNodes[0].toCHTML(e),r.numScripts&&(p=this.addScripts(this.dom[this.dom.length-1],c,-h,!1,r.sub,r.sup,1,r.numScripts),"left"!==a&&this.adaptor.setAttribute(p,"script-align",a))}},e.prototype.addScripts=function(t,e,r,n,i,o,s,a){for(var l=this.adaptor,c=e-o.d+(r-i.h),u=e<0&&0===r?i.h+e:e,h=c>0?{style:{height:this.em(c)}}:{},p=u?{style:{"vertical-align":this.em(u)}}:{},d=this.html("mjx-row"),f=this.html("mjx-row",h),m=this.html("mjx-row"),y="mjx-"+(n?"pre":"")+"scripts",g=s+2*a;s<g;)this.childNodes[s++].toCHTML([l.append(m,this.html("mjx-cell"))]),this.childNodes[s++].toCHTML([l.append(d,this.html("mjx-cell"))]);return l.append(t,this.html(y,p,[d,f,m]))},e}((0,a.CommonMmultiscriptsMixin)(l.ChtmlMsubsup)),s.kind=c.MmlMmultiscripts.prototype.kind,s.styles={"mjx-prescripts":{display:"inline-table","padding-left":".05em"},"mjx-scripts":{display:"inline-table","padding-right":".05em"},"mjx-prescripts > mjx-row > mjx-cell":{"text-align":"right"},'[script-align="left"] > mjx-row > mjx-cell':{"text-align":"left"},'[script-align="center"] > mjx-row > mjx-cell':{"text-align":"center"},'[script-align="right"] > mjx-row > mjx-cell':{"text-align":"right"}},s)},8928:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMn=void 0;var o,s=r(5118),a=r(7328),l=r(1096);e.ChtmlMn=(o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}((0,a.CommonMnMixin)(s.ChtmlWrapper)),o.kind=l.MmlMn.prototype.kind,o)},1526:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMo=void 0;var o,s=r(5118),a=r(5274),l=r(91);e.ChtmlMo=(o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(t){var e=this,r=this.adaptor,n=this.node.attributes,i=n.get("symmetric")&&2!==this.stretch.dir,o=0!==this.stretch.dir;o&&null===this.size&&this.getStretchedVariant([]),t.length>1&&t.forEach((function(t){return r.append(t,e.html("mjx-linestrut"))}));var s=this.standardChtmlNodes(t);if(s.length>1&&"duplicate"!==this.breakStyle){var a="after"===this.breakStyle?1:0;r.remove(s[a]),s[a]=null}if(o&&this.size<0)this.stretchHTML(s);else{if(i||n.get("largeop")){var l=this.em(this.getCenterOffset());"0"!==l&&s.forEach((function(t){return t&&r.setStyle(t,"verticalAlign",l)}))}this.node.getProperty("mathaccent")&&s.forEach((function(t){r.setStyle(t,"width","0"),r.setStyle(t,"margin-left",e.em(e.getAccentOffset()))})),s[0]&&this.addChildren([s[0]]),s[1]&&(this.multChar||this).addChildren([s[1]])}},e.prototype.stretchHTML=function(t){var e=this.getText().codePointAt(0);this.font.delimUsage.add(e),this.childNodes[0].markUsed();var r=this.stretch,n=r.stretch,i=this.font.getStretchVariants(e),o=[];this.createPart("mjx-beg",n[0],i[0],o),this.createPart("mjx-ext",n[1],i[1],o),4===n.length&&(this.createPart("mjx-mid",n[3],i[3],o),this.createPart("mjx-ext",n[1],i[1],o)),this.createPart("mjx-end",n[2],i[2],o);var s={},l=this.bbox,c=l.h,u=l.d,h=l.w;1===r.dir?(o.push(this.html("mjx-mark")),s.height=this.em(c+u),s.verticalAlign=this.em(-u)):s.width=this.em(h);var p=a.DirectionVH[r.dir],d={class:this.char(r.c||e),style:s},f=this.html("mjx-stretchy-"+p,d,o),m=this.adaptor;t[0]&&m.append(t[0],f),t[1]&&m.append(t[1],t[0]?m.clone(f):f)},e.prototype.createPart=function(t,e,r,n){if(e){var i=this.font.getChar(r,e)[3],o=i.f||("normal"===r?"":this.font.getVariant(r).letter),s=i.F||(o?"".concat(this.font.cssFontPrefix,"-").concat(o):""),a=(i.c||String.fromCodePoint(e)).replace(/\\[0-9A-F]+/gi,(function(t){return String.fromCodePoint(parseInt(t.substr(1),16))}));n.push(this.html(t,{},[this.html("mjx-c",s?{class:s}:{},[this.text(a)])]))}},e}((0,a.CommonMoMixin)(s.ChtmlWrapper)),o.kind=l.MmlMo.prototype.kind,o.styles={"mjx-stretchy-h":{display:"inline-table",width:"100%"},"mjx-stretchy-h > *":{display:"table-cell",width:0},"mjx-stretchy-h > * > mjx-c":{display:"inline-block",transform:"scalex(1.0000001)"},"mjx-stretchy-h > mjx-ext":{"/* IE */ overflow":"hidden","/* others */ overflow":"clip visible",width:"100%","text-align":"center"},"mjx-stretchy-h > mjx-ext > mjx-c":{transform:"scalex(500)",width:0},"mjx-stretchy-h > mjx-beg > mjx-c":{"margin-right":"-.1em"},"mjx-stretchy-h > mjx-end > mjx-c":{"margin-left":"-.1em"},"mjx-stretchy-v":{display:"inline-block"},"mjx-stretchy-v > *":{display:"block"},"mjx-stretchy-v > mjx-beg":{height:0},"mjx-stretchy-v > mjx-end > mjx-c":{display:"block"},"mjx-stretchy-v > * > mjx-c":{transform:"scaley(1.0000001)","transform-origin":"left center"},"mjx-stretchy-v > mjx-ext":{display:"block",height:"100%","box-sizing":"border-box",border:"0px solid transparent","/* IE */ overflow":"hidden","/* others */ overflow":"visible clip"},"mjx-stretchy-v > mjx-ext > mjx-c":{width:"auto","box-sizing":"border-box",transform:"scaleY(500) translateY(.075em)",overflow:"visible"},"mjx-mark":{display:"inline-block",height:0}},o)},555:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMpadded=void 0;var a,l=r(5118),c=r(837),u=r(2522);e.ChtmlMpadded=(a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(t){var e,r;if(!this.toEmbellishedCHTML(t)){var n=this.standardChtmlNodes(t),i=[],a={},l=o(this.getDimens(),9),c=l[2],u=l[3],h=l[4],p=l[5],d=l[6],f=l[7],m=l[8];if((p||this.childNodes[0].getBBox().pwidth)&&(a.width=this.em(c+p)),(u||h)&&(a.margin=this.em(u)+" 0 "+this.em(h)),d+m||f){a.position="relative";var y=this.html("mjx-rbox",{style:{left:this.em(d+m),top:this.em(-f),"max-width":a.width}});d+m&&this.childNodes[0].getBBox().pwidth&&(this.adaptor.setAttribute(y,"width","full"),this.adaptor.setStyle(y,"left",this.em(d))),i.push(y)}n=[this.adaptor.append(n[0],this.html("mjx-block",{style:a},i))];try{for(var g=s(this.childNodes),b=g.next();!b.done;b=g.next())b.value.toCHTML([i[0]||n[0]])}catch(t){e={error:t}}finally{try{b&&!b.done&&(r=g.return)&&r.call(g)}finally{if(e)throw e.error}}}},e}((0,c.CommonMpaddedMixin)(l.ChtmlWrapper)),a.kind=u.MmlMpadded.prototype.kind,a.styles={"mjx-mpadded":{display:"inline-block"},"mjx-rbox":{display:"inline-block",position:"relative"}},a)},456:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMroot=void 0;var s,a=r(7342),l=r(7357),c=r(3208);e.ChtmlMroot=(s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.addRoot=function(t,e,r,n){e.toCHTML([t]);var i=this.adaptor,s=o(this.getRootDimens(r,n),3),a=s[0],l=s[1],c=s[2];i.setStyle(t,"verticalAlign",this.em(l)),i.setStyle(t,"width",this.em(a)),c&&i.setStyle(i.firstChild(t),"paddingLeft",this.em(c))},e}((0,a.CommonMrootMixin)(l.ChtmlMsqrt)),s.kind=c.MmlMroot.prototype.kind,s)},4352:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlInferredMrow=e.ChtmlMrow=void 0;var a,l=r(5118),c=r(4542),u=r(4542),h=r(5424);e.ChtmlMrow=(a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.linebreakCount=0,e}return i(e,t),e.prototype.toCHTML=function(t){var e=this.linebreakCount=this.isStack?0:this.breakCount;e||!this.node.isInferred?t=this.standardChtmlNodes(t):this.dom=t,this.addChildren(t),e?this.placeLines(t,e):this.handleNegativeWidth(t[0])},e.prototype.placeLines=function(t,e){var r,n;this.getBBox();var i=this.lineBBox,a=this.adaptor,l=o(i[1].indentData[0],2),c=l[0],u=l[1];try{for(var h=s(t.keys()),p=h.next();!p.done;p=h.next()){var d=p.value,f=i[d],m=o(0===d?[c,u]:f.indentData[d===e?2:1],2),y=m[0],g=m[1],b=o(this.processIndent(y,g,c,u),2),v=b[0],M=b[1];a.setAttribute(t[d],"align",v),M&&(a.setStyle(t[d],"position","relative"),a.setStyle(t[d],"left",this.em(M))),d<e&&a.setStyle(t[d],"margin-bottom",this.em(f.lineLeading))}}catch(t){r={error:t}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}},e.prototype.handleNegativeWidth=function(t){var e=this.getBBox().w;e<0&&(this.adaptor.setStyle(t,"width",this.em(Math.max(0,e))),this.adaptor.setStyle(t,"marginRight",this.em(e)))},e.prototype.createChtmlNodes=function(e){var r=this.linebreakCount;if(!r)return t.prototype.createChtmlNodes.call(this,e);var n=this.adaptor,i=this.node.isInferred?"mjx-linestack":"mjx-"+this.node.kind;this.dom=[n.append(e[0],this.html(i))],"mjx-mrow"!==i||this.isStack||n.setAttribute(this.dom[0],"break-top","true"),this.dom=[n.append(this.handleHref(e)[0],this.dom[0])];for(var o=Array(r),s=this.node.getProperty("breakable"),a=0;a<=r;a++)o[a]=n.append(this.dom[0],this.html("mjx-linebox",{lineno:a})),s&&n.append(this.dom[0],this.html("mjx-break",{newline:!0}));return o},e.prototype.addChildren=function(t){var e,r,n=0;try{for(var i=s(this.childNodes),o=i.next();!o.done;o=i.next()){var a=o.value,l=a.breakCount;a.toCHTML(t.slice(n,n+l+1)),n+=l}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}},e}((0,c.CommonMrowMixin)(l.ChtmlWrapper)),a.kind=h.MmlMrow.prototype.kind,a.styles={"mjx-linestack, mjx-mrow[break-top]":{display:"inline-table",width:"100%"},"mjx-linestack[data-mjx-breakable]":{display:"inline",width:"initial"},"mjx-linestack[data-mjx-breakable] > mjx-linebox":{display:"inline"},"mjx-break[newline]::after":{display:"block"},"mjx-linebox":{display:"block"},'mjx-linebox[align="left"]':{"text-align":"left"},'mjx-linebox[align="center"]':{"text-align":"center"},'mjx-linebox[align="right"]':{"text-align":"right"},"mjx-linestrut":{display:"inline-block",height:"1em","vertical-align":"-.25em"}},a),e.ChtmlInferredMrow=function(){var t;return t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}((0,u.CommonInferredMrowMixin)(e.ChtmlMrow)),t.kind=h.MmlInferredMrow.prototype.kind,t}()},2852:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMs=void 0;var o,s=r(5118),a=r(49),l=r(1506);e.ChtmlMs=(o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}((0,a.CommonMsMixin)(s.ChtmlWrapper)),o.kind=l.MmlMs.prototype.kind,o)},8381:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMspace=void 0;var o,s=r(5118),a=r(1901),l=r(3660);e.ChtmlMspace=(o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(t){var e=this;t.length>1&&t.forEach((function(t){return e.adaptor.append(t,e.html("mjx-linestrut"))}));var r=this.standardChtmlNodes(t),n=this.getBBox(),i=n.w,o=n.h,s=n.d;i<0&&(this.adaptor.setStyle(r[0],"marginRight",this.em(i)),i=0),i&&!this.breakCount&&this.adaptor.setStyle(r[0],"width",this.em(i)),(o=Math.max(0,o+s))&&this.adaptor.setStyle(r[0],"height",this.em(Math.max(0,o))),s&&this.adaptor.setStyle(r[0],"verticalAlign",this.em(-s))},e}((0,a.CommonMspaceMixin)(s.ChtmlWrapper)),o.kind=l.MmlMspace.prototype.kind,o)},7357:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMsqrt=void 0;var s,a=r(5118),l=r(1753),c=r(1299);e.ChtmlMsqrt=(s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(t){var e,r,n,i,s=this.surd,a=this.childNodes[this.base],l=s.getBBox(),c=a.getOuterBBox(),u=o(this.getPQ(l),2)[1],h=this.font.params.rule_thickness,p=c.h+u+h,d=this.standardChtmlNodes(t);null!=this.root&&(n=this.adaptor.append(d[0],this.html("mjx-root")),i=this.childNodes[this.root]);var f=this.adaptor.append(d[0],this.html("mjx-sqrt",{},[e=this.html("mjx-surd"),r=this.html("mjx-box",{style:{paddingTop:this.em(u)}})]));this.addRoot(n,i,l,p),s.toCHTML([e]),a.toCHTML([r]),s.size<0&&this.adaptor.addClass(f,"mjx-tall")},e.prototype.addRoot=function(t,e,r,n){},e}((0,l.CommonMsqrtMixin)(a.ChtmlWrapper)),s.kind=c.MmlMsqrt.prototype.kind,s.styles={"mjx-root":{display:"inline-block","white-space":"nowrap"},"mjx-surd":{display:"inline-block","vertical-align":"top"},"mjx-sqrt":{display:"inline-block","padding-top":".07em"},"mjx-sqrt > mjx-box":{"border-top":".07em solid"},"mjx-sqrt.mjx-tall > mjx-box":{"padding-left":".3em","margin-left":"-.3em"}},s)},4518:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMsubsup=e.ChtmlMsup=e.ChtmlMsub=void 0;var s,a=r(6349),l=r(3752),c=r(8111);e.ChtmlMsub=(s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}((0,a.CommonMsubMixin)(l.ChtmlScriptbase)),s.kind=c.MmlMsub.prototype.kind,s),e.ChtmlMsup=function(){var t;return t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}((0,a.CommonMsupMixin)(l.ChtmlScriptbase)),t.kind=c.MmlMsup.prototype.kind,t}(),e.ChtmlMsubsup=function(){var t;return t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(t){if(!this.toEmbellishedCHTML(t)){var e=this.adaptor,r=this.standardChtmlNodes(t),n=o([this.baseChild,this.supChild,this.subChild],3),i=n[0],s=n[1],a=n[2],l=o(this.getUVQ(),3),c=l[1],u=l[2],h={"vertical-align":this.em(c)};i.toCHTML(r);var p=e.append(r[r.length-1],this.html("mjx-script",{style:h}));s.toCHTML([p]),e.append(p,this.html("mjx-spacer",{style:{"margin-top":this.em(u)}})),a.toCHTML([p]);var d=this.getAdjustedIc();d&&e.setStyle(s.dom[0],"marginLeft",this.em(d/s.bbox.rscale)),this.baseRemoveIc&&e.setStyle(p,"marginLeft",this.em(-this.baseIc))}},e}((0,a.CommonMsubsupMixin)(l.ChtmlScriptbase)),t.kind=c.MmlMsubsup.prototype.kind,t.styles={"mjx-script":{display:"inline-block","padding-right":".05em","padding-left":".033em"},"mjx-script > mjx-spacer":{display:"block"}},t}()},6298:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMtable=void 0;var a,l=r(5118),c=r(5749),u=r(8848),h=r(6707);e.ChtmlMtable=((a=function(t){function e(e,r,n){void 0===n&&(n=null);var i=t.call(this,e,r,n)||this;return i.itable=i.html("mjx-itable"),i.labels=i.html("mjx-itable"),i}return i(e,t),e.prototype.getAlignShift=function(){var e=t.prototype.getAlignShift.call(this);return this.isTop||(e[1]=0),e},e.prototype.toCHTML=function(t){var e,r,n=this.standardChtmlNodes(t);this.adaptor.append(n[0],this.html("mjx-table",{},[this.itable]));try{for(var i=o(this.childNodes),s=i.next();!s.done;s=i.next())s.value.toCHTML([this.itable])}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}this.padRows(),this.handleColumnSpacing(),this.handleColumnLines(),this.handleColumnWidths(),this.handleRowSpacing(),this.handleRowLines(),this.handleRowHeights(),this.handleFrame(),this.handleWidth(),this.handleLabels(),this.handleAlign(),this.handleJustify(),this.shiftColor()},e.prototype.shiftColor=function(){var t=this.adaptor,e=t.getStyle(this.dom[0],"backgroundColor");e&&(t.setStyle(this.dom[0],"backgroundColor",""),t.setStyle(this.itable,"backgroundColor",e))},e.prototype.padRows=function(){var t,e,r=this.adaptor;try{for(var n=o(r.childNodes(this.itable)),i=n.next();!i.done;i=n.next())for(var s=i.value;r.childNodes(s).length<this.numCols;)r.append(s,this.html("mjx-mtd",{extra:!0}))}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},e.prototype.handleColumnSpacing=function(){var t,e,r,n,i=this.childNodes[0]?1/this.childNodes[0].getBBox().rscale:1,s=this.getEmHalfSpacing([this.fSpace[0],this.fSpace[2]],this.cSpace,i),a=this.frame;try{for(var l=o(this.tableRows),c=l.next();!c.done;c=l.next()){var u=c.value,h=0;try{for(var p=(r=void 0,o(u.tableCells)),d=p.next();!d.done;d=p.next()){var f=d.value,m=s[h++],y=s[h],g=f?f.dom[0]:this.adaptor.childNodes(u.dom[0])[h];(h>1&&"0.4em"!==m||a&&1===h)&&this.adaptor.setStyle(g,"paddingLeft",m),(h<this.numCols&&"0.4em"!==y||a&&h===this.numCols)&&this.adaptor.setStyle(g,"paddingRight",y)}}catch(t){r={error:t}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}},e.prototype.handleColumnLines=function(){var t,e,r,n;if("none"!==this.node.attributes.get("columnlines")){var i=this.getColumnAttributes("columnlines");try{for(var s=o(this.childNodes),a=s.next();!a.done;a=s.next()){var l=a.value,c=0;try{for(var u=(r=void 0,o(this.adaptor.childNodes(l.dom[0]).slice(1))),h=u.next();!h.done;h=u.next()){var p=h.value,d=i[c++];"none"!==d&&this.adaptor.setStyle(p,"borderLeft",".07em "+d)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}}},e.prototype.handleColumnWidths=function(){var t,e,r,n;try{for(var i=o(this.childNodes),s=i.next();!s.done;s=i.next()){var a=s.value,l=0;try{for(var c=(r=void 0,o(this.adaptor.childNodes(a.dom[0]))),u=c.next();!u.done;u=c.next()){var h=u.value,p=this.cWidths[l++];if(null!==p){var d="number"==typeof p?this.em(p):p;this.adaptor.setStyle(h,"width",d),this.adaptor.setStyle(h,"maxWidth",d),this.adaptor.setStyle(h,"minWidth",d)}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.handleRowSpacing=function(){var t,e,r,n,i=this.childNodes[0]?1/this.childNodes[0].getBBox().rscale:1,s=this.getEmHalfSpacing([this.fSpace[1],this.fSpace[1]],this.rSpace,i),a=this.frame,l=0;try{for(var c=o(this.childNodes),u=c.next();!u.done;u=c.next()){var h=u.value,p=s[l++],d=s[l];try{for(var f=(r=void 0,o(h.childNodes)),m=f.next();!m.done;m=f.next()){var y=m.value;(l>1&&"0.215em"!==p||a&&1===l)&&this.adaptor.setStyle(y.dom[0],"paddingTop",p),(l<this.numRows&&"0.215em"!==d||a&&l===this.numRows)&&this.adaptor.setStyle(y.dom[0],"paddingBottom",d)}}catch(t){r={error:t}}finally{try{m&&!m.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}},e.prototype.handleRowLines=function(){var t,e,r,n;if("none"!==this.node.attributes.get("rowlines")){var i=this.getRowAttributes("rowlines"),s=0;try{for(var a=o(this.childNodes.slice(1)),l=a.next();!l.done;l=a.next()){var c=l.value,u=i[s++];if("none"!==u)try{for(var h=(r=void 0,o(this.adaptor.childNodes(c.dom[0]))),p=h.next();!p.done;p=h.next()){var d=p.value;this.adaptor.setStyle(d,"borderTop",".07em "+u)}}catch(t){r={error:t}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}}},e.prototype.handleRowHeights=function(){this.node.attributes.get("equalrows")&&this.handleEqualRows()},e.prototype.handleEqualRows=function(){for(var t=this.getRowHalfSpacing(),e=this.getTableData(),r=e.H,n=e.D,i=e.NH,o=e.ND,s=this.getEqualRowHeight(),a=0;a<this.numRows;a++){var l=this.childNodes[a];this.setRowHeight(l,s+t[a]+t[a+1]+this.rLines[a]),s!==i[a]+o[a]&&this.setRowBaseline(l,s,(s-r[a]+n[a])/2)}},e.prototype.setRowHeight=function(t,e){this.adaptor.setStyle(t.dom[0],"height",this.em(e))},e.prototype.setRowBaseline=function(t,e,r){var n,i,s=t.node.attributes.get("rowalign");try{for(var a=o(t.childNodes),l=a.next();!l.done;l=a.next()){var c=l.value;if(this.setCellBaseline(c,s,e,r))break}}catch(t){n={error:t}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},e.prototype.setCellBaseline=function(t,e,r,n){var i=t.node.attributes.get("rowalign");if("baseline"===i||"axis"===i){var o=this.adaptor,s=o.lastChild(t.dom[0]);o.setStyle(s,"height",this.em(r)),o.setStyle(s,"verticalAlign",this.em(-n));var a=t.parent;if(!(a.node.isKind("mlabeledtr")&&t===a.childNodes[0]||"baseline"!==e&&"axis"!==e))return!0}return!1},e.prototype.handleFrame=function(){this.frame&&this.fLine&&this.adaptor.setStyle(this.itable,"border",".07em "+this.node.attributes.get("frame"))},e.prototype.handleWidth=function(){var t=this.adaptor,e=this.dom[0],r=this.getBBox(),n=r.w,i=r.L,o=r.R;t.setStyle(e,"minWidth",this.em(i+n+o));var s=this.node.attributes.get("width");if((0,h.isPercent)(s))t.setStyle(e,"width",""),t.setAttribute(e,"width","full");else if(!this.hasLabels){if("auto"===s)return;s=this.em(this.length2em(s)+2*this.fLine)}var a=t.firstChild(e);if(t.setStyle(a,"width",s),t.setStyle(a,"minWidth",this.em(n)),i||o){t.setStyle(e,"margin","");var l=this.node.attributes.get("data-width-includes-label")?"padding":"margin";i===o?t.setStyle(a,l,"0 "+this.em(o)):t.setStyle(a,l,"0 "+this.em(o)+" 0 "+this.em(i))}t.setAttribute(this.itable,"width","full")},e.prototype.handleAlign=function(){var t=s(this.getAlignmentRow(),2),e=t[0],r=t[1],n=this.dom[0];if(null===r)"axis"!==e&&this.adaptor.setAttribute(n,"align",e);else{var i=this.getVerticalPosition(r,e);this.adaptor.setAttribute(n,"align","top"),this.adaptor.setStyle(n,"verticalAlign",this.em(i))}},e.prototype.handleJustify=function(){var t=this.getAlignShift()[0];"center"!==t&&this.adaptor.setAttribute(this.dom[0],"justify",t)},e.prototype.handleLabels=function(){if(this.hasLabels){var t=this.labels,e=this.node.attributes,r=this.adaptor,n=e.get("side");r.setAttribute(this.dom[0],"side",n),r.setAttribute(t,"align",n),r.setStyle(t,n,"0");var i=s(this.addLabelPadding(n),2),o=i[0],a=i[1];if(a){var l=r.firstChild(this.dom[0]);this.setIndent(l,o,a)}this.updateRowHeights(),this.addLabelSpacing()}},e.prototype.addLabelPadding=function(t){var e=s(this.getPadAlignShift(t),3),r=e[1],n=e[2],i={};if("right"===t&&!this.node.attributes.get("data-width-includes-label")){var o=this.node.attributes.get("width"),a=this.getBBox(),l=a.w,c=a.L,u=a.R;i.style={width:(0,h.isPercent)(o)?"calc("+o+" + "+this.em(c+u)+")":this.em(c+l+u)}}return this.adaptor.append(this.dom[0],this.html("mjx-labels",i,[this.labels])),[r,n]},e.prototype.updateRowHeights=function(){for(var t=this.getTableData(),e=t.H,r=t.D,n=t.NH,i=t.ND,o=this.getRowHalfSpacing(),s=0;s<this.numRows;s++){var a=this.childNodes[s];this.setRowHeight(a,e[s]+r[s]+o[s]+o[s+1]+this.rLines[s]),e[s]!==n[s]||r[s]!==i[s]?this.setRowBaseline(a,e[s]+r[s],r[s]):a.node.isKind("mlabeledtr")&&this.setCellBaseline(a.childNodes[0],"",e[s]+r[s],r[s])}},e.prototype.addLabelSpacing=function(){for(var t=this.adaptor,e=this.node.attributes.get("equalrows"),r=this.getTableData(),n=r.H,i=r.D,o=e?this.getEqualRowHeight():0,s=this.getRowHalfSpacing(),a=this.fLine,l=t.firstChild(this.labels),c=0;c<this.numRows;c++)this.childNodes[c].node.isKind("mlabeledtr")?(a&&t.insert(this.html("mjx-mtr",{style:{height:this.em(a)}}),l),t.setStyle(l,"height",this.em((e?o:n[c]+i[c])+s[c]+s[c+1])),l=t.next(l),a=this.rLines[c]):a+=s[c]+(e?o:n[c]+i[c])+s[c+1]+this.rLines[c]},e}((0,c.CommonMtableMixin)(l.ChtmlWrapper))).kind=u.MmlMtable.prototype.kind,a.styles={"mjx-mtable":{"vertical-align":".25em","text-align":"center",position:"relative","box-sizing":"border-box","border-spacing":0,"border-collapse":"collapse"},'mjx-mstyle[size="s"] mjx-mtable':{"vertical-align":".354em"},"mjx-labels":{position:"absolute",left:0,top:0},"mjx-table":{display:"inline-block","vertical-align":"-.5ex","box-sizing":"border-box"},"mjx-table > mjx-itable":{"vertical-align":"middle","text-align":"left","box-sizing":"border-box"},"mjx-labels > mjx-itable":{position:"absolute",top:0},'mjx-mtable[justify="left"]':{"text-align":"left"},'mjx-mtable[justify="right"]':{"text-align":"right"},'mjx-mtable[justify="left"][side="left"]':{"padding-right":"0 ! important"},'mjx-mtable[justify="left"][side="right"]':{"padding-left":"0 ! important"},'mjx-mtable[justify="right"][side="left"]':{"padding-right":"0 ! important"},'mjx-mtable[justify="right"][side="right"]':{"padding-left":"0 ! important"},"mjx-mtable[align]":{"vertical-align":"baseline"},'mjx-mtable[align="top"] > mjx-table':{"vertical-align":"top"},'mjx-mtable[align="bottom"] > mjx-table':{"vertical-align":"bottom"},'mjx-mtable[side="right"] mjx-labels':{"min-width":"100%"}},a)},4191:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMtd=void 0;var o,s=r(5118),a=r(4415),l=r(4463);e.ChtmlMtd=(o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);var r=this.node.attributes.get("rowalign"),n=this.node.attributes.get("columnalign");r!==this.parent.node.attributes.get("rowalign")&&this.adaptor.setAttribute(this.dom[0],"rowalign",r),"center"===n||"mlabeledtr"===this.parent.kind&&this===this.parent.childNodes[0]&&n===this.parent.parent.node.attributes.get("side")||this.adaptor.setStyle(this.dom[0],"textAlign",n),this.parent.parent.node.getProperty("useHeight")&&this.adaptor.append(this.dom[0],this.html("mjx-tstrut"))},e}((0,a.CommonMtdMixin)(s.ChtmlWrapper)),o.kind=l.MmlMtd.prototype.kind,o.styles={"mjx-mtd":{display:"table-cell","text-align":"center",padding:".215em .4em"},"mjx-mtd:first-child":{"padding-left":0},"mjx-mtd:last-child":{"padding-right":0},"mjx-mtable > * > mjx-itable > *:first-child > mjx-mtd":{"padding-top":0},"mjx-mtable > * > mjx-itable > *:last-child > mjx-mtd":{"padding-bottom":0},"mjx-tstrut":{display:"inline-block",height:"1em","vertical-align":"-.25em"},'mjx-labels[align="left"] > mjx-mtr > mjx-mtd':{"text-align":"left"},'mjx-labels[align="right"] > mjx-mtr > mjx-mtd':{"text-align":"right"},"mjx-mtd[extra]":{padding:0},'mjx-mtd[rowalign="top"]':{"vertical-align":"top"},'mjx-mtd[rowalign="center"]':{"vertical-align":"middle"},'mjx-mtd[rowalign="bottom"]':{"vertical-align":"bottom"},'mjx-mtd[rowalign="baseline"]':{"vertical-align":"baseline"},'mjx-mtd[rowalign="axis"]':{"vertical-align":".25em"}},o)},1673:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMtext=void 0;var a,l=r(5118),c=r(4227),u=r(2507);e.ChtmlMtext=(a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(e){var r,n;if(this.breakCount){var i=this.standardChtmlNodes(e),a=this.textNode.node,l=this.childNodes;try{for(var c=o(i.keys()),u=c.next();!u.done;u=c.next()){var h=u.value,p=[i[h]];this.adaptor.append(i[h],this.html("mjx-linestrut"));var d=s(this.breakPoints[h-1]||[0,0],2),f=d[0],m=d[1],y=s(this.breakPoints[h]||[l.length,0],2),g=y[0],b=y[1],v=l[f].node.getText().split(/ /);if(f!==g){for(a.setText(v.slice(m).join(" ")),this.textNode.toCHTML(p);++f<g&&f<l.length;)l[f].toCHTML(p);f<l.length&&(v=l[f].node.getText().split(/ /),a.setText(v.slice(0,b).join(" ")),this.textNode.toCHTML(p))}else a.setText(v.slice(m,b).join(" ")),this.textNode.toCHTML(p)}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}else t.prototype.toCHTML.call(this,e)},e}((0,c.CommonMtextMixin)(l.ChtmlWrapper)),a.kind=u.MmlMtext.prototype.kind,a)},9788:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMlabeledtr=e.ChtmlMtr=void 0;var o,s=r(5118),a=r(6403),l=r(7525);e.ChtmlMtr=(o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);var r=this.node.attributes.get("rowalign");"baseline"!==r&&this.adaptor.setAttribute(this.dom[0],"rowalign",r)},e}((0,a.CommonMtrMixin)(s.ChtmlWrapper)),o.kind=l.MmlMtr.prototype.kind,o.styles={"mjx-mtr":{display:"table-row"},'mjx-mtr[rowalign="top"] > mjx-mtd':{"vertical-align":"top"},'mjx-mtr[rowalign="center"] > mjx-mtd':{"vertical-align":"middle"},'mjx-mtr[rowalign="bottom"] > mjx-mtd':{"vertical-align":"bottom"},'mjx-mtr[rowalign="baseline"] > mjx-mtd':{"vertical-align":"baseline"},'mjx-mtr[rowalign="axis"] > mjx-mtd':{"vertical-align":".25em"}},o),e.ChtmlMlabeledtr=function(){var t;return t=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return i(r,t),r.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);var r=this.adaptor.firstChild(this.dom[0]);if(r){this.adaptor.remove(r);var n=this.node.attributes.get("rowalign"),i="baseline"!==n&&"axis"!==n?{rowalign:n}:{},o=this.html("mjx-mtr",i,[r]);this.adaptor.append(this.parent.labels,o)}},r.prototype.markUsed=function(){t.prototype.markUsed.call(this),this.jax.wrapperUsage.add(e.ChtmlMtr.kind)},r}((0,a.CommonMlabeledtrMixin)(e.ChtmlMtr)),t.kind=l.MmlMlabeledtr.prototype.kind,t.styles={"mjx-mlabeledtr":{display:"table-row"},'mjx-mlabeledtr[rowalign="top"] > mjx-mtd':{"vertical-align":"top"},'mjx-mlabeledtr[rowalign="center"] > mjx-mtd':{"vertical-align":"middle"},'mjx-mlabeledtr[rowalign="bottom"] > mjx-mtd':{"vertical-align":"bottom"},'mjx-mlabeledtr[rowalign="baseline"] > mjx-mtd':{"vertical-align":"baseline"},'mjx-mlabeledtr[rowalign="axis"] > mjx-mtd':{"vertical-align":".25em"}},t}()},5872:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlMunderover=e.ChtmlMover=e.ChtmlMunder=void 0;var o,s=r(7338),a=r(758),l=r(4518);e.ChtmlMunder=(o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(e){if(!this.toEmbellishedCHTML(e)){if(this.hasMovableLimits())return t.prototype.toCHTML.call(this,e),void this.adaptor.setAttribute(this.dom[0],"limits","false");this.dom=this.standardChtmlNodes(e);var r=this.adaptor.append(this.adaptor.append(this.dom[0],this.html("mjx-row")),this.html("mjx-base")),n=this.adaptor.append(this.adaptor.append(this.dom[0],this.html("mjx-row")),this.html("mjx-under"));this.baseChild.toCHTML([r]),this.scriptChild.toCHTML([n]);var i=this.baseChild.getOuterBBox(),o=this.scriptChild.getOuterBBox(),s=this.getUnderKV(i,o)[0],a=this.isLineBelow?0:this.getDelta(!0);this.adaptor.setStyle(n,"paddingTop",this.em(s)),this.setDeltaW([r,n],this.getDeltaW([i,o],[0,-a])),this.adjustUnderDepth(n,o)}},e}((0,s.CommonMunderMixin)(l.ChtmlMsub)),o.kind=a.MmlMunder.prototype.kind,o.styles={"mjx-over":{"text-align":"left"},'mjx-munder:not([limits="false"])':{display:"inline-table"},"mjx-munder > mjx-row":{"text-align":"left"},"mjx-under":{"padding-bottom":".1em"}},o),e.ChtmlMover=function(){var t;return t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(e){if(!this.toEmbellishedCHTML(e)){if(this.hasMovableLimits())return t.prototype.toCHTML.call(this,e),void this.adaptor.setAttribute(this.dom[0],"limits","false");this.dom=this.standardChtmlNodes(e);var r=this.adaptor.append(this.dom[0],this.html("mjx-over")),n=this.adaptor.append(this.dom[0],this.html("mjx-base"));this.scriptChild.toCHTML([r]),this.baseChild.toCHTML([n]);var i=this.scriptChild.getOuterBBox(),o=this.baseChild.getOuterBBox();this.adjustBaseHeight(n,o);var s=this.getOverKU(o,i)[0],a=this.isLineAbove?0:this.getDelta();this.adaptor.setStyle(r,"paddingBottom",this.em(s)),this.setDeltaW([n,r],this.getDeltaW([o,i],[0,a])),this.adjustOverDepth(r,i)}},e}((0,s.CommonMoverMixin)(l.ChtmlMsup)),t.kind=a.MmlMover.prototype.kind,t.styles={'mjx-mover:not([limits="false"])':{"padding-top":".1em"},'mjx-mover:not([limits="false"]) > *':{display:"block","text-align":"left"}},t}(),e.ChtmlMunderover=function(){var t;return t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(e){if(!this.toEmbellishedCHTML(e)){if(this.hasMovableLimits())return t.prototype.toCHTML.call(this,e),void this.adaptor.setAttribute(this.dom[0],"limits","false");this.dom=this.standardChtmlNodes(e);var r=this.adaptor.append(this.dom[0],this.html("mjx-over")),n=this.adaptor.append(this.adaptor.append(this.dom[0],this.html("mjx-box")),this.html("mjx-munder")),i=this.adaptor.append(this.adaptor.append(n,this.html("mjx-row")),this.html("mjx-base")),o=this.adaptor.append(this.adaptor.append(n,this.html("mjx-row")),this.html("mjx-under"));this.overChild.toCHTML([r]),this.baseChild.toCHTML([i]),this.underChild.toCHTML([o]);var s=this.overChild.getOuterBBox(),a=this.baseChild.getOuterBBox(),l=this.underChild.getOuterBBox();this.adjustBaseHeight(i,a);var c=this.getOverKU(a,s)[0],u=this.getUnderKV(a,l)[0],h=this.getDelta();this.adaptor.setStyle(r,"paddingBottom",this.em(c)),this.adaptor.setStyle(o,"paddingTop",this.em(u)),this.setDeltaW([i,o,r],this.getDeltaW([a,l,s],[0,this.isLineBelow?0:-h,this.isLineAbove?0:h])),this.adjustOverDepth(r,s),this.adjustUnderDepth(o,l)}},e}((0,s.CommonMunderoverMixin)(l.ChtmlMsubsup)),t.kind=a.MmlMunderover.prototype.kind,t.styles={'mjx-munderover:not([limits="false"])':{"padding-top":".1em"},'mjx-munderover:not([limits="false"]) > *':{display:"block"}},t}()},3752:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlScriptbase=void 0;var a,l=r(5118),c=r(999),u=r(4518);e.ChtmlScriptbase=(a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(t){if(!this.toEmbellishedCHTML(t)){this.dom=this.standardChtmlNodes(t);var e=o(this.getOffset(),2),r=e[0],n=e[1],i=r-(this.baseRemoveIc?this.baseIc:0),s={"vertical-align":this.em(n)};i&&(s["margin-left"]=this.em(i)),this.baseChild.toCHTML(this.dom);var a=this.dom[this.dom.length-1];this.scriptChild.toCHTML([this.adaptor.append(a,this.html("mjx-script",{style:s}))])}},e.prototype.markUsed=function(){t.prototype.markUsed.call(this),this.jax.wrapperUsage.add(u.ChtmlMsubsup.kind)},e.prototype.setDeltaW=function(t,e){for(var r=0;r<e.length;r++)e[r]&&this.adaptor.setStyle(t[r],"paddingLeft",this.em(e[r]))},e.prototype.adjustOverDepth=function(t,e){e.d>=0||this.adaptor.setStyle(t,"marginBottom",this.em(e.d*e.rscale))},e.prototype.adjustUnderDepth=function(t,e){var r,n;if(!(e.d>=0)){var i=this.adaptor,o=this.em(e.d),a=this.html("mjx-box",{style:{"margin-bottom":o,"vertical-align":o}});try{for(var l=s(i.childNodes(i.firstChild(t))),c=l.next();!c.done;c=l.next()){var u=c.value;i.append(a,u)}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}i.append(i.firstChild(t),a)}},e.prototype.adjustBaseHeight=function(t,e){if(this.node.attributes.get("accent")){var r=this.font.params.x_height*e.scale;e.h<r&&(this.adaptor.setStyle(t,"paddingTop",this.em(r-e.h)),e.h=r)}},e}((0,c.CommonScriptbaseMixin)(l.ChtmlWrapper)),a.kind="scriptbase",a)},9972:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlXmlNode=e.ChtmlAnnotationXML=e.ChtmlAnnotation=e.ChtmlSemantics=void 0;var o,s=r(5118),a=r(8398),l=r(2183),c=r(8594);e.ChtmlSemantics=(o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(t){if(!this.toEmbellishedCHTML(t)){var e=this.standardChtmlNodes(t);this.childNodes.length&&this.childNodes[0].toCHTML(e)}},e}((0,a.CommonSemanticsMixin)(s.ChtmlWrapper)),o.kind=l.MmlSemantics.prototype.kind,o),e.ChtmlAnnotation=function(){var t;return t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e)},e.prototype.computeBBox=function(){return this.bbox},e}(s.ChtmlWrapper),t.kind=l.MmlAnnotation.prototype.kind,t}(),e.ChtmlAnnotationXML=function(){var t;return t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(s.ChtmlWrapper),t.kind=l.MmlAnnotationXML.prototype.kind,t.styles={"mjx-annotation-xml":{"font-family":"initial","line-height":"normal"}},t}(),e.ChtmlXmlNode=function(){var t;return t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.toCHTML=function(t){this.dom=[this.adaptor.append(t[0],this.adaptor.clone(this.node.getXML()))]},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=this.jax.measureXMLnode(this.node.getXML()),n=r.w,i=r.h,o=r.d;t.w=n,t.h=i,t.d=o},e.prototype.getStyles=function(){},e.prototype.getScale=function(){},e.prototype.getVariant=function(){},e}(s.ChtmlWrapper),t.kind=c.XMLNode.prototype.kind,t.autoStyle=!1,t}()},4973:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonOutputJax=e.FONTPATH=void 0;var l=r(9084),c=r(6e3),u=r(8594),h=r(5959),p=r(7173),d=r(8152),f=r(7661),m=r(7661),y=r(4747),g=r(6380);e.FONTPATH="@mathjax/%%FONT%%-font/es5/output/fonts/%%FONT%%";var b=function(t){function r(e,r,n){void 0===e&&(e=null),void 0===r&&(r=null),void 0===n&&(n=null);var i=this;e.font&&"string"!=typeof e.font&&(e.fontData=e.font,e.font=e.fontData.NAME);var o=s(e.fontData instanceof h.FontData?[e.fontData.constructor,e.fontData]:[e.fontData||n,null],2),a=o[0],l=o[1],c=s((0,p.separateOptions)(e,a.OPTIONS),2),u=c[0],f=c[1];(i=t.call(this,u)||this).factory=i.options.wrapperFactory||new r,i.factory.jax=i,i.cssStyles=i.options.cssStyles||new g.CssStyles,i.font=l||new a(f),i.unknownCache=new Map;var m=i.options.linebreaks.LinebreakVisitor||d.LinebreakVisitor;return i.linebreaks=new m(i.factory),i}return i(r,t),Object.defineProperty(r.prototype,"forceInlineBreaks",{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.setAdaptor=function(e){t.prototype.setAdaptor.call(this,e),"auto"===this.options.htmlHDW&&(this.options.htmlHDW=e.canMeasureNodes?"ignore":"force")},r.prototype.typeset=function(t,e){this.setDocument(e);var r=this.createNode();return this.toDOM(t,r,e),r},r.prototype.createNode=function(){var t=this.constructor.NAME;return this.html("mjx-container",{class:"MathJax",jax:t})},r.prototype.setScale=function(t,e){var r=this.getInitialScale()*this.options.scale;if("scale"===e.node.attributes.get("overflow")&&this.math.display){var n=e.getOuterBBox().w,i=this.math.metrics.containerWidth/this.pxPerEm;n>i&&n&&(r*=i/n)}1!==r&&this.adaptor.setStyle(t,"fontSize",(0,f.percent)(r))},r.prototype.getInitialScale=function(){return this.math.metrics.scale},r.prototype.toDOM=function(t,e,r){var n;void 0===r&&(r=null),this.setDocument(r),this.math=t,this.container=e,this.pxPerEm=t.metrics.ex/this.font.params.x_height,this.nodeMap=new Map,t.root.attributes.getAllInherited().overflow=this.options.displayOverflow;var i=t.root.attributes.get("overflow");t.display&&("scroll"===i&&this.adaptor.setStyle(e,"overflow-x","auto"),"truncate"===i&&this.adaptor.setStyle(e,"overflow-x","hidden")),"linebreak"===i&&this.getLinebreakWidth(),!this.options.linebreaks.inline||t.display||t.outputData.inlineMarked||(this.markInlineBreaks(null===(n=t.root.childNodes)||void 0===n?void 0:n[0]),t.outputData.inlineMarked=!0),t.root.setTeXclass(null);var o=this.factory.wrap(t.root);this.setScale(e,o),this.processMath(o,e),this.nodeMap=null,this.executeFilters(this.postFilters,t,r,e)},r.prototype.getBBox=function(t,e){this.setDocument(e),this.math=t,t.root.setTeXclass(null),this.nodeMap=new Map;var r=this.factory.wrap(t.root).getOuterBBox();return this.nodeMap=null,r},r.prototype.getLinebreakWidth=function(){var t=this.math.metrics.containerWidth/this.pxPerEm,e=this.math.root.attributes.get("maxwidth")||this.options.linebreaks.width;this.containerWidth=(0,m.length2em)(e,t,1,this.pxPerEm)},r.prototype.markInlineBreaks=function(t){var e,r;if(t){var n=this.forceInlineBreaks,i=!1;try{for(var o=a(t.childNodes.slice(1)),s=o.next();!s.done;s=o.next()){var l=s.value;if(l.isEmbellished){var c=l.coreMO(),h=c.attributes.getList("linebreak","linebreakstyle"),p=h.linebreak,d=h.linebreakstyle;c.texClass!==u.TEXCLASS.BIN&&c.texClass!==u.TEXCLASS.REL&&!c.attributes.get("data-allowbreak")&&"auto"===p||"nobreak"===p||"before"!==d||(l.setProperty("breakable",!0),n&&"newline"!==p&&(l.setProperty("forcebreak",!0),c.setProperty("forcebreak",!0)),i||(t.setProperty("process-breaks",!0),t.parent.setProperty("process-breaks",!0),i=!0))}else(l.isKind("mstyle")&&!l.attributes.get("style")||l.isKind("semantics")||l.isKind("MathChoice"))&&this.markInlineBreaks(l.childNodes[0])}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}},r.prototype.getMetrics=function(t){var e,r;this.setDocument(t);var n=this.adaptor,i=this.getMetricMaps(t);try{for(var o=a(t.math),s=o.next();!s.done;s=o.next()){var l=s.value,u=n.parent(l.start.node);if(l.state()<c.STATE.METRICS&&u){var h=i[l.display?1:0].get(u),p=h.em,d=h.ex,f=h.containerWidth,m=h.lineWidth,y=h.scale,g=h.family;l.setMetrics(p,d,f,m,y),this.options.mtextInheritFont&&(l.outputData.mtextFamily=g),this.options.merrorInheritFont&&(l.outputData.merrorFamily=g),l.state(c.STATE.METRICS)}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},r.prototype.getMetricsFor=function(t,e){var r=this.options.mtextInheritFont||this.options.merrorInheritFont,n=this.getTestElement(t,e),i=this.measureMetrics(n,r);return this.adaptor.remove(n),i},r.prototype.getMetricMaps=function(t){var e,r,n,i,o,s,l,u,h,p,d=this.adaptor,f=[new Map,new Map];try{for(var m=a(t.math),y=m.next();!y.done;y=m.next()){var g=y.value;if((_=d.parent(g.start.node))&&g.state()<c.STATE.METRICS){var b=f[g.display?1:0];b.has(_)||b.set(_,this.getTestElement(_,g.display))}}}catch(t){e={error:t}}finally{try{y&&!y.done&&(r=m.return)&&r.call(m)}finally{if(e)throw e.error}}var v=this.options.mtextInheritFont||this.options.merrorInheritFont,M=[new Map,new Map];try{for(var O=a(M.keys()),x=O.next();!x.done;x=O.next()){var S=x.value;try{for(var E=(o=void 0,a(f[S].keys())),C=E.next();!C.done;C=E.next()){var _=C.value;M[S].set(_,this.measureMetrics(f[S].get(_),v))}}catch(t){o={error:t}}finally{try{C&&!C.done&&(s=E.return)&&s.call(E)}finally{if(o)throw o.error}}}}catch(t){n={error:t}}finally{try{x&&!x.done&&(i=O.return)&&i.call(O)}finally{if(n)throw n.error}}try{for(var A=a(M.keys()),N=A.next();!N.done;N=A.next()){S=N.value;try{for(var w=(h=void 0,a(f[S].values())),T=w.next();!T.done;T=w.next()){_=T.value;d.remove(_)}}catch(t){h={error:t}}finally{try{T&&!T.done&&(p=w.return)&&p.call(w)}finally{if(h)throw h.error}}}}catch(t){l={error:t}}finally{try{N&&!N.done&&(u=A.return)&&u.call(A)}finally{if(l)throw l.error}}return M},r.prototype.getTestElement=function(t,e){var r=this.adaptor;if(!this.testInline){this.testInline=this.html("mjx-test",{style:{display:"inline-block",width:"100%","font-style":"normal","font-weight":"normal","font-size":"100%","font-size-adjust":"none","text-indent":0,"text-transform":"none","letter-spacing":"normal","word-spacing":"normal",overflow:"hidden",height:"1px","margin-right":"-1px"}},[this.html("mjx-left-box",{style:{display:"inline-block",width:0,float:"left"}}),this.html("mjx-ex-box",{style:{position:"absolute",overflow:"hidden",width:"1px",height:"60ex"}}),this.html("mjx-right-box",{style:{display:"inline-block",width:0,float:"right"}})]),this.testDisplay=r.clone(this.testInline),r.setStyle(this.testDisplay,"display","table"),r.setStyle(this.testDisplay,"margin-right",""),r.setStyle(r.firstChild(this.testDisplay),"display","none");var n=r.lastChild(this.testDisplay);r.setStyle(n,"display","table-cell"),r.setStyle(n,"width","10000em"),r.setStyle(n,"float","")}return r.append(t,r.clone(e?this.testDisplay:this.testInline))},r.prototype.measureMetrics=function(t,e){var r=this.adaptor,n=e?r.fontFamily(t):"",i=r.fontSize(t),o=s(r.nodeSize(r.childNode(t,1)),2),a=o[0],l=o[1],c=a?l/60:i*this.options.exFactor;return{em:i,ex:c,containerWidth:a?"table"===r.getStyle(t,"display")?r.nodeSize(r.lastChild(t))[0]-1:r.nodeBBox(r.lastChild(t)).left-r.nodeBBox(r.firstChild(t)).left-2:1e6,lineWidth:1e6,scale:Math.max(this.options.minScale,this.options.matchFontHeight?c/this.font.params.x_height/i:1),family:n}},r.prototype.styleSheet=function(t){var e,r;if(this.setDocument(t),this.cssStyles.clear(),this.cssStyles.addStyles(this.constructor.commonStyles),"getStyles"in t)try{for(var n=a(t.getStyles()),i=n.next();!i.done;i=n.next()){var o=i.value;this.cssStyles.addStyles(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this.addWrapperStyles(this.cssStyles),this.addFontStyles(this.cssStyles),this.html("style",{id:"MJX-styles"},[this.text("\n"+this.cssStyles.cssText+"\n")])},r.prototype.addFontStyles=function(t){t.addStyles(this.font.styles)},r.prototype.addWrapperStyles=function(t){var e,r;try{for(var n=a(this.factory.getKinds()),i=n.next();!i.done;i=n.next()){var o=i.value;this.addClassStyles(this.factory.getNodeClass(o),t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},r.prototype.addClassStyles=function(t,e){e.addStyles(t.styles)},r.prototype.setDocument=function(t){t&&(this.document=t,this.adaptor.document=t.document)},r.prototype.html=function(t,e,r,n){return void 0===e&&(e={}),void 0===r&&(r=[]),this.adaptor.node(t,e,r,n)},r.prototype.text=function(t){return this.adaptor.text(t)},r.prototype.fixed=function(t,e){return void 0===e&&(e=3),Math.abs(t)<6e-4?"0":t.toFixed(e).replace(/\.?0+$/,"")},r.prototype.measureText=function(t,e,r){void 0===r&&(r=["",!1,!1]);var n=this.unknownText(t,e);if("-explicitFont"===e){var i=this.cssFontStyles(r);this.adaptor.setAttributes(n,{style:i})}return this.measureTextNodeWithCache(n,t,e,r)},r.prototype.measureTextNodeWithCache=function(t,e,r,n){void 0===n&&(n=["",!1,!1]),"-explicitFont"===r&&(r=[n[0],n[1]?"T":"F",n[2]?"T":"F",""].join("-")),this.unknownCache.has(r)||this.unknownCache.set(r,new Map);var i=this.unknownCache.get(r),o=i.get(e);if(o)return o;var s=this.measureTextNode(t);return i.set(e,s),s},r.prototype.measureXMLnode=function(t){var e=this.adaptor,r=this.html("mjx-xml-block",{style:{display:"inline-block"}},[e.clone(t)]),n=this.html("mjx-baseline",{style:{display:"inline-block",width:0,height:0}}),i=this.html("mjx-measure-xml",{style:{position:"absolute",display:"inline-block","font-family":"initial","line-height":"normal"}},[n,r]);e.append(e.parent(this.math.start.node),this.container),e.append(this.container,i);var o=this.math.metrics.em*this.math.metrics.scale,s=e.nodeBBox(r),a=s.left,l=s.right,c=s.bottom,u=s.top,h=(l-a)/o,p=(e.nodeBBox(n).top-u)/o,d=(c-u)/o-p;return e.remove(this.container),e.remove(i),{w:h,h:p,d:d}},r.prototype.cssFontStyles=function(t,e){void 0===e&&(e={});var r=s(t,3),n=r[0],i=r[1],o=r[2];return e["font-family"]=this.font.getFamily(n),i&&(e["font-style"]="italic"),o&&(e["font-weight"]="bold"),e},r.prototype.getFontData=function(t){return t||(t=new y.Styles),[this.font.getFamily(t.get("font-family")),"italic"===t.get("font-style"),"bold"===t.get("font-weight")]},r.NAME="Common",r.OPTIONS=o(o({},l.AbstractOutputJax.OPTIONS),{scale:1,minScale:.5,mtextInheritFont:!1,merrorInheritFont:!1,mtextFont:"",merrorFont:"serif",mathmlSpacing:!1,skipAttributes:{},exFactor:.5,displayAlign:"center",displayIndent:"0",displayOverflow:"overflow",linebreaks:{inline:!0,width:"100%",lineleading:.2,LinebreakVisitor:null},font:"tex",htmlHDW:"auto",wrapperFactory:null,fontData:null,fontPath:e.FONTPATH,cssStyles:null}),r.commonStyles={},r}(l.AbstractOutputJax);e.CommonOutputJax=b},2388:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.H=e.V=void 0,e.V=1,e.H=2},5959:function(t,e,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}l((n=n.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.FontData=e.mergeOptions=e.NOSTRETCH=void 0;var c=r(7173),u=r(4096),h=r(8181),p=r(3198);function d(t,e){return(0,c.defaultOptions)([t],[e])[0]}e.NOSTRETCH={dir:0},e.mergeOptions=d;var f=function(){function t(t){void 0===t&&(t=null);var e=this;this.variant={},this.delimiters={},this.cssFontMap={},this.cssFontPrefix="",this.remapChars={},this.skewIcFactor=.75;var r=this.CLASS;this.options=(0,c.userOptions)((0,c.defaultOptions)({},r.OPTIONS),t),this.params=n({},r.defaultParams),this.sizeVariants=a([],s(r.defaultSizeVariants),!1),this.stretchVariants=a([],s(r.defaultStretchVariants),!1),this.defineCssFonts(r.defaultCssFonts),this.cssFamilyPrefix=r.defaultCssFamilyPrefix,this.createVariants(r.defaultVariants),this.defineDelimiters(r.defaultDelimiters),Object.keys(r.defaultChars).forEach((function(t){return e.defineChars(t,r.defaultChars[t])})),this.defineRemap("accent",r.defaultAccentMap),this.defineRemap("mo",r.defaultMoMap),this.defineRemap("mn",r.defaultMnMap),this.defineDynamicCharacters(r.dynamicFiles),r.dynamicExtensions.forEach((function(t){return e.defineDynamicCharacters(t.files)}))}return Object.defineProperty(t.prototype,"CLASS",{get:function(){return this.constructor},enumerable:!1,configurable:!0}),t.charOptions=function(t,e){var r=t[e];if(!Array.isArray(r))throw Error("Character data hasn't been loaded for 0x".concat(e.toString(16).toUpperCase()));return 3===r.length&&(r[3]={}),r[3]},t.defineDynamicFiles=function(t,e){void 0===e&&(e="");var r={};return(t||[]).map((function(t){var n=s(t,3),i=n[0],o=n[1],a=n[2];r[i]={extension:e,file:i,variants:o,delimiters:a||[],promise:null,failed:!1,setup:function(t){r[i].failed=!0}}})),r},t.dynamicSetup=function(t,e,r,n,i){var o=this;void 0===n&&(n={}),void 0===i&&(i=null);var s=t?this.dynamicExtensions.get(t):null;(t?s.files:this.dynamicFiles)[e].setup=function(e){Object.keys(r).forEach((function(t){return e.defineChars(t,r[t])})),e.defineDelimiters(n),t&&o.adjustDelimiters(e.delimiters,Object.keys(n),s.sizeN,s.stretchN),i&&e.addDynamicFontCss(i)}},t.adjustDelimiters=function(t,e,r,n){var i=this;e.forEach((function(e){var o=t[parseInt(e)];"dir"in o&&(o.variants&&(o.variants=i.adjustArrayIndices(o.variants,r)),o.stretchv&&(o.stretchv=i.adjustArrayIndices(o.stretchv,n)))}))},t.adjustArrayIndices=function(t,e){return t.map((function(t){return t<0?e-1-t:t}))},t.addExtension=function(t,e){var r,n;void 0===e&&(e="");var i={name:t.name,prefix:e,files:this.defineDynamicFiles(t.ranges,t.name),sizeN:this.defaultSizeVariants.length,stretchN:this.defaultStretchVariants.length};this.dynamicExtensions.set(t.name,i);try{for(var o=l([["options","OPTIONS"],["variants","defaultVariants"],["cssFonts","defaultCssFonts"],["accentMap","defaultAccentMap"],["moMap","defaultMoMap"],["mnMap","defaultMnMap"],["parameters","defaultParams"],["chars","defaultChars"],["sizeVariants","defaultSizeVariants"],["stretchVariants","defaultStretchVariants"]]),a=o.next();!a.done;a=o.next()){var c=s(a.value,2),u=c[0],h=c[1];t[u]&&(this[h]=d(this[h],t[u]))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.delimiters&&(Object.assign(this.defaultDelimiters,t.delimiters),this.adjustDelimiters(this.defaultDelimiters,Object.keys(t.delimiters),i.sizeN,i.stretchN))},t.prototype.addExtension=function(t,e){var r,n;void 0===e&&(e="");var i={name:t.name,prefix:e,files:this.CLASS.defineDynamicFiles(t.ranges,e),sizeN:this.sizeVariants.length,stretchN:this.stretchVariants.length};this.CLASS.dynamicExtensions.set(t.name,i),t.options&&(0,c.defaultOptions)(this.options,t.options),t.parameters&&(0,c.defaultOptions)(this.params,t.parameters),t.sizeVariants&&(this.sizeVariants=d(this.sizeVariants,t.sizeVariants)),t.stretchVariants&&(this.stretchVariants=d(this.stretchVariants,t.stretchVariants)),t.cssFonts&&this.defineCssFonts(d([],t.cssFonts)),t.variants&&this.createVariants(d([],t.variants)),t.delimiters&&(this.defineDelimiters(d([],t.delimiters)),this.CLASS.adjustDelimiters(this.delimiters,Object.keys(t.delimiters),i.sizeN,i.stretchN));try{for(var o=l(Object.keys(t.chars||{})),s=o.next();!s.done;s=o.next()){var a=s.value;this.defineChars(a,t.chars[a])}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.accentMap&&this.defineRemap("accent",t.accentMap),t.moMap&&this.defineRemap("mo",t.moMap),t.mnMap&&this.defineRemap("mn",t.mnMap),t.ranges&&this.defineDynamicCharacters(i.files)},Object.defineProperty(t.prototype,"styles",{get:function(){return this._styles},set:function(t){this._styles=t},enumerable:!1,configurable:!0}),t.prototype.createVariant=function(t,e,r){void 0===e&&(e=null),void 0===r&&(r=null);var n={linked:[],chars:Object.create(e?this.variant[e].chars:{})};this.variant[r]&&(Object.assign(n.chars,this.variant[r].chars),this.variant[r].linked.push(n.chars),n.chars=Object.create(n.chars)),this.remapSmpChars(n.chars,t),this.variant[t]=n},t.prototype.remapSmpChars=function(t,e){var r,n,i,o,a=this.CLASS;if(a.VariantSmp[e]){var c=a.SmpRemap,u=[null,null,a.SmpRemapGreekU,a.SmpRemapGreekL];try{for(var h=l(a.SmpRanges),p=h.next();!p.done;p=h.next()){var d=s(p.value,3),f=d[0],m=d[1],y=d[2],g=a.VariantSmp[e][f];if(g){for(var b=m;b<=y;b++)if(930!==b){var v=g+b-m;t[b]=this.smpChar(c[v]||v)}if(u[f])try{for(var M=(i=void 0,l(Object.keys(u[f]).map((function(t){return parseInt(t)})))),O=M.next();!O.done;O=M.next()){t[b=O.value]=this.smpChar(g+u[f][b])}}catch(t){i={error:t}}finally{try{O&&!O.done&&(o=M.return)&&o.call(M)}finally{if(i)throw i.error}}}}}catch(t){r={error:t}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}}"bold"===e&&(t[988]=this.smpChar(120778),t[989]=this.smpChar(120779))},t.prototype.smpChar=function(t){return[,,,{smp:t}]},t.prototype.createVariants=function(t){var e,r;try{for(var n=l(t),i=n.next();!i.done;i=n.next()){var o=i.value;this.createVariant(o[0],o[1],o[2])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},t.prototype.defineChars=function(t,e){var r,n,i=this.variant[t];Object.assign(i.chars,e);try{for(var o=l(i.linked),s=o.next();!s.done;s=o.next()){var a=s.value;Object.assign(a,e)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},t.prototype.defineCssFonts=function(t){var e,r;Object.assign(this.cssFontMap,t);try{for(var n=l(Object.keys(t)),i=n.next();!i.done;i=n.next()){var o=i.value;"unknown"===this.cssFontMap[o][0]&&(this.cssFontMap[o][0]=this.options.unknownFamily)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},t.prototype.defineDelimiters=function(t){Object.assign(this.delimiters,t)},t.prototype.defineRemap=function(t,e){this.remapChars.hasOwnProperty(t)||(this.remapChars[t]={}),Object.assign(this.remapChars[t],e)},t.prototype.defineDynamicCharacters=function(t){var e,r,n,i;try{for(var o=l(Object.keys(t)),s=o.next();!s.done;s=o.next()){var a=t[s.value];try{for(var c=(n=void 0,l(Object.keys(a.variants))),u=c.next();!u.done;u=c.next()){var h=u.value;this.defineChars(h,this.flattenRanges(a.variants[h],a))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}this.defineDelimiters(this.flattenRanges(a.delimiters,a))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},t.prototype.flattenRanges=function(t,e){var r,n,i={};try{for(var o=l(t),s=o.next();!s.done;s=o.next()){var a=s.value;if(Array.isArray(a))for(var c=a[0];c<=a[1];c++)i[c]=e;else i[a]=e}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},t.prototype.dynamicFileName=function(t){var e=t.extension?this.CLASS.dynamicExtensions.get(t.extension).prefix:this.options.dynamicPrefix;return t.file.match(/^(?:[\/\[]|[a-z]+:\/\/|[a-z]:)/i)?t.file:e+"/"+t.file.replace(/\.js$/,"")},t.prototype.loadDynamicFile=function(t){return i(this,void 0,void 0,(function(){var e=this;return o(this,(function(r){return t.failed?[2,Promise.reject(new Error("dynamic file '".concat(t.file,"' failed to load")))]:(t.promise||(t.promise=(0,u.asyncLoad)(this.dynamicFileName(t)).catch((function(e){t.failed=!0,console.warn(e)}))),[2,t.promise.then((function(){return t.setup(e)}))])}))}))},t.prototype.loadDynamicFiles=function(){var t,e,r=this,n=this.CLASS.dynamicFiles,i=Object.keys(n).map((function(t){return r.loadDynamicFile(n[t])})),o=function(t){i.push.apply(i,a([],s(Object.keys(t.files).map((function(e){return r.loadDynamicFile(t.files[e])}))),!1))};try{for(var c=l(this.CLASS.dynamicExtensions.values()),u=c.next();!u.done;u=c.next()){o(u.value)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}return Promise.all(i)},t.prototype.loadDynamicFilesSync=function(){var t,e,r=this;if(!p.mathjax.asyncLoad)throw Error("MathJax(loadDynamicFilesSync): mathjax.asyncLoad must be specified and synchronous");var n=this.CLASS.dynamicFiles;Object.keys(n).forEach((function(t){return r.loadDynamicFileSync(n[t])}));var i=function(t){Object.keys(t.files).forEach((function(e){return r.loadDynamicFileSync(t.files[e])}))};try{for(var o=l(this.CLASS.dynamicExtensions.values()),s=o.next();!s.done;s=o.next()){i(s.value)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},t.prototype.loadDynamicFileSync=function(t){if(!t.promise){t.promise=Promise.resolve();try{p.mathjax.asyncLoad(this.dynamicFileName(t))}catch(e){t.failed=!0,console.warn(e)}t.setup(this)}},t.prototype.addDynamicFontCss=function(t,e){},t.prototype.getDelimiter=function(t){var e=this.delimiters[t];return e&&!("dir"in e)?(this.delimiters[t]=null,(0,h.retryAfter)(this.loadDynamicFile(e)),null):e},t.prototype.getSizeVariant=function(t,e){var r=this.getDelimiter(t);return r&&r.variants&&(e=r.variants[e]),this.sizeVariants[e]},t.prototype.getStretchVariant=function(t,e){var r=this.getDelimiter(t);return this.stretchVariants[r.stretchv?r.stretchv[e]:0]},t.prototype.getStretchVariants=function(t){var e=this;return[0,1,2,3].map((function(r){return e.getStretchVariant(t,r)}))},t.prototype.getChar=function(t,e){var r=this.variant[t].chars[e];if(r&&!Array.isArray(r)){var n=this.variant[t];return delete n.chars[e],n.linked.forEach((function(t){return delete t[e]})),(0,h.retryAfter)(this.loadDynamicFile(r)),null}return r},t.prototype.getVariant=function(t){return this.variant[t]},t.prototype.getCssFont=function(t){return this.cssFontMap[t]||["serif",!1,!1]},t.prototype.getFamily=function(t){return this.cssFamilyPrefix?this.cssFamilyPrefix+", "+t:t},t.prototype.getRemappedChar=function(t,e){return(this.remapChars[t]||{})[e]},t.OPTIONS={unknownFamily:"serif",dynamicPrefix:"."},t.JAX="common",t.NAME="",t.defaultVariants=[["normal"],["bold","normal"],["italic","normal"],["bold-italic","italic","bold"],["double-struck","bold"],["fraktur","normal"],["bold-fraktur","bold","fraktur"],["script","italic"],["bold-script","bold-italic","script"],["sans-serif","normal"],["bold-sans-serif","bold","sans-serif"],["sans-serif-italic","italic","sans-serif"],["sans-serif-bold-italic","bold-italic","bold-sans-serif"],["monospace","normal"],["-smallop","normal"],["-largeop","normal"],["-tex-calligraphic","italic"],["-tex-bold-calligraphic","bold-italic"],["-tex-oldstyle","normal"],["-tex-bold-oldstyle","bold"],["-tex-mathit","italic"],["-tex-variant","normal"]],t.defaultCssFonts={normal:["unknown",!1,!1],bold:["unknown",!1,!0],italic:["unknown",!0,!1],"bold-italic":["unknown",!0,!0],"double-struck":["unknown",!1,!0],fraktur:["unknown",!1,!1],"bold-fraktur":["unknown",!1,!0],script:["cursive",!1,!1],"bold-script":["cursive",!1,!0],"sans-serif":["sans-serif",!1,!1],"bold-sans-serif":["sans-serif",!1,!0],"sans-serif-italic":["sans-serif",!0,!1],"sans-serif-bold-italic":["sans-serif",!0,!0],monospace:["monospace",!1,!1],"-smallop":["unknown",!1,!1],"-largeop":["unknown",!1,!1],"-tex-calligraphic":["cursive",!0,!1],"-tex-bold-calligraphic":["cursive",!0,!0],"-tex-oldstyle":["unknown",!1,!1],"-tex-bold-oldstyle":["unknown",!1,!0],"-tex-mathit":["unknown",!0,!1],"-tex-variant":["unknown",!1,!1]},t.defaultCssFamilyPrefix="",t.VariantSmp={bold:[119808,119834,120488,120514,120782],italic:[119860,119886,120546,120572],"bold-italic":[119912,119938,120604,120630],script:[119964,119990],"bold-script":[120016,120042],fraktur:[120068,120094],"double-struck":[120120,120146,,,120792],"bold-fraktur":[120172,120198],"sans-serif":[120224,120250,,,120802],"bold-sans-serif":[120276,120302,120662,120688,120812],"sans-serif-italic":[120328,120354],"sans-serif-bold-italic":[120380,120406,120720,120746],monospace:[120432,120458,,,120822]},t.SmpRanges=[[0,65,90],[1,97,122],[2,913,937],[3,945,969],[4,48,57]],t.SmpRemap={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},t.SmpRemapGreekU={8711:25,1012:17},t.SmpRemapGreekL={977:27,981:29,982:31,1008:28,1009:30,1013:26,8706:25},t.defaultAccentMap={94:"\u02c6",126:"\u02dc",768:"\u02cb",769:"\u02ca",770:"\u02c6",771:"\u02dc",772:"\u02c9",774:"\u02d8",775:"\u02d9",776:"\xa8",778:"\u02da",780:"\u02c7",8594:"\u20d7"},t.defaultMoMap={45:"\u2212"},t.defaultMnMap={45:"\u2212"},t.defaultParams={x_height:.442,quad:1,num1:.676,num2:.394,num3:.444,denom1:.686,denom2:.345,sup1:.413,sup2:.363,sup3:.289,sub1:.15,sub2:.247,sup_drop:.386,sub_drop:.05,delim1:2.39,delim2:1,axis_height:.25,rule_thickness:.06,big_op_spacing1:.111,big_op_spacing2:.167,big_op_spacing3:.2,big_op_spacing4:.6,big_op_spacing5:.1,surd_height:.075,scriptspace:.05,nulldelimiterspace:.12,delimiterfactor:901,delimitershortfall:.3,min_rule_thickness:1.25,separation_factor:1.75,extra_ic:.033},t.defaultDelimiters={},t.defaultChars={},t.defaultSizeVariants=[],t.defaultStretchVariants=[],t.dynamicFiles={},t.dynamicExtensions=new Map,t}();e.FontData=f},1334:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.LineBBox=void 0;var s=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,e)||this;return n.indentData=null,n.isFirst=!1,n.originalL=n.L,r&&(n.start=r),n}return i(e,t),e.from=function(t,e,r){void 0===r&&(r=null);var n=new this;return Object.assign(n,t),n.lineLeading=e,r&&(n.indentData=r),n},e.prototype.append=function(e){this.isFirst&&(e.originalL=e.L,e.L=0),e.indentData&&(this.indentData=e.indentData),this.lineLeading=e.lineLeading,t.prototype.append.call(this,e),this.isFirst=e.isFirst},e.prototype.copy=function(){var t=e.from(this,this.lineLeading);return t.indentData=this.indentData,t.lineLeading=this.lineLeading,t},e.prototype.getIndentData=function(t){var e=t.attributes.getAllAttributes(),r=e.indentalign,n=e.indentshift,i=e.indentalignfirst,o=e.indentshiftfirst,s=e.indentalignlast,a=e.indentshiftlast;"indentalign"===i&&(i=t.attributes.getInherited("indentalign")),"indentshift"===o&&(o=t.attributes.getInherited("indentshift")),"indentalign"===s&&(s=r),"indentshift"===a&&(a=n),this.indentData=[[i,o],[r,n],[s,a]]},e.prototype.copyIndentData=function(t){return t.indentData.map((function(t){var e=o(t,2);return[e[0],e[1]]}))},e}(r(6152).BBox);e.LineBBox=s},8152:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.LinebreakVisitor=e.Linebreaks=e.NOBREAK=void 0;var l=r(9021),c=r(1334),u=r(8594),h=r(5891);e.NOBREAK=1e6;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.breakToWidth=function(t,e){},e}(l.AbstractVisitor);e.Linebreaks=p;var d=function(t){function r(){var r,n=null!==t&&t.apply(this,arguments)||this;return n.PENALTY={newline:function(t){return 0},nobreak:function(t){return e.NOBREAK},goodbreak:function(t){return t-200*n.state.depth},badbreak:function(t){return t+200*n.state.depth},auto:function(t){return t}},n.FACTORS={depth:function(t){return t+800*n.state.depth},width:function(t){return t+Math.floor((n.state.width-n.state.w)/n.state.width*2500)},tail:function(t){return t+Math.floor(n.state.width/Math.max(1e-4,n.state.mathLeft-n.state.w)*500)},open:function(t,r){var i=r.node.prevClass;if(i===u.TEXCLASS.BIN||i===u.TEXCLASS.REL||i===u.TEXCLASS.OP)return t+5e3;var o=n.getPrevious(r);if(o&&("postfix"!==o.attributes.get("form")||"nobreak"===o.attributes.get("linebreak")))return t+5e3;var s=r.node.Parent;if((null==s?void 0:s.isKind("mmultiscripts"))&&r.node===n.getFirstToken(s)&&!!s.childNodes.filter((function(t){return t.isKind("mprescripts")})).length)return e.NOBREAK;return t-500},close:function(t,r){var i,o=r.node.Parent;return!(null==o?void 0:o.isKind("msubsup"))||o.isKind("mmultiscripts")&&(null===(i=o.childNodes[1])||void 0===i?void 0:i.isKind("mprescripts"))||r.node!==n.getLastToken(o.childNodes[0])?t+500:e.NOBREAK},space:function(t,r){if(r.node.attributes.getExplicit("style"))return e.NOBREAK;var n=r.getBBox().w;return n<=0?e.NOBREAK:n<1?t:t-100*(n+4)},separator:function(t){return t+500},fuzz:function(t){return.99*t}},n.TEXCLASS=((r={})[u.TEXCLASS.BIN]=function(t){return t-250},r[u.TEXCLASS.REL]=function(t){return t-500},r),n}return i(r,t),r.prototype.breakToWidth=function(t,e){var r,n,i=this.state;this.state=this.createState(t),this.state.width=e;for(var a=t.breakCount,l=0;l<=a;l++){(t.lineBBox[l]||t.getLineBBox(l)).w>e&&this.breakLineToWidth(t,l)}try{for(var c=o(this.state.breaks),u=c.next();!u.done;u=c.next()){var h=s(u.value,2),p=h[0],d=h[1];if(null===d){var f=p.coreMO();f.setBreakStyle(f.node.attributes.get("linebreakstyle")||"before")}else p.setBreakAt(d);p.invalidateBBox()}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}this.state=i},r.prototype.createState=function(t){var e=t.getBBox().w;return{breaks:new Set,potential:[],width:0,w:0,prevWidth:0,prevBreak:null,depth:0,mathWidth:e,mathLeft:e}},r.prototype.breakLineToWidth=function(t,e){var r=this.state;r.potential=[],r.w=0,r.prevWidth=0,r.prevBreak=null,r.depth=0,this.visitNode(t,e)},r.prototype.addWidth=function(t,e){void 0===e&&(e=null),null===e&&(e=t.L+t.w+t.R),e&&(e*=t.rscale,this.state.w+=e,this.state.potential.length&&(this.state.potential[0][4]+=e),this.processBreak())},r.prototype.processBreak=function(){for(var t=this.state,e=function(){var e=t.potential.pop(),r=s(e,5),n=r[0],i=r[2],o=r[3],a=r[4];t.breaks.add(n),t.w=t.potential.reduce((function(t,e){return t+e[4]}),o+a),t.prevBreak&&t.prevWidth+i<=t.width?(t.breaks.delete(t.prevBreak[0]),t.prevWidth+=i):t.prevWidth=i+o,t.potential.forEach((function(t){return t[2]-=i})),t.prevBreak=e,t.mathLeft-=i};t.potential.length&&t.w>this.state.width;)e()},r.prototype.pushBreak=function(t,r,n,i){var o,s=this.state;if(!(r>=e.NOBREAK||0===s.w&&0===s.prevWidth)){for(;s.potential.length&&s.potential[0][1]>this.FACTORS.fuzz(r);){var a=s.potential.shift();s.potential.length&&(s.potential[0][4]+=a[4])}s.potential.unshift([[t,i],r,s.w-((null===(o=s.prevBreak)||void 0===o?void 0:o[3])||0),n,0])}},r.prototype.getBorderLR=function(t){var e,r=t.styleData;if(!r)return[0,0];var n=(null===(e=null==r?void 0:r.border)||void 0===e?void 0:e.width)||[0,0,0,0],i=(null==r?void 0:r.padding)||[0,0,0,0];return[n[3]+i[3],n[1]+i[1]]},r.prototype.getFirstToken=function(t){return t.isToken?t:this.getFirstToken(t.childNodes[0])},r.prototype.getLastToken=function(t){return t.isToken?t:this.getLastToken(t.childNodes[t.childNodes.length-1])},r.prototype.visitNode=function(e,r){this.state.depth++,e.node.isEmbellished&&!e.node.isKind("mo")?this.visitEmbellishedOperator(e,r):t.prototype.visitNode.call(this,e,r),this.state.depth--},r.prototype.visitDefault=function(t,e){var r=t.getLineBBox(e);if(t.node.isToken||t.node.linebreakContainer)this.addWidth(r);else{var n=s(this.getBorderLR(t),2),i=n[0],o=n[1];0===e&&this.addWidth(r,r.L+i),this.visitNode(t.childNodes[0],e),e===t.breakCount&&this.addWidth(r,r.R+o)}},r.prototype.visitEmbellishedOperator=function(t,e){var r=t.coreMO(),n=c.LineBBox.from(t.getOuterBBox(),t.linebreakOptions.lineleading);n.getIndentData(r.node);var i=r.getBreakStyle(r.node.attributes.get("linebreakstyle")),o=r.processIndent("",n.indentData[1][1],"",n.indentData[0][1],this.state.width)[1],s=this.moPenalty(r);if("before"===i)this.pushBreak(t,s,o-n.L,null),this.addWidth(n);else{this.addWidth(n);var a=("after"===i?0:r.multChar?r.multChar.getBBox().w:n.w)+o;this.pushBreak(t,s,a,null)}},r.prototype.visitMoNode=function(t,e){var r=t,n=c.LineBBox.from(r.getOuterBBox(),r.linebreakOptions.lineleading);n.getIndentData(r.node);var i=r.getBreakStyle(r.node.attributes.get("linebreakstyle")),o=r.processIndent("",n.indentData[1][1],"",n.indentData[0][1],this.state.width)[1],s=this.moPenalty(r);if("before"===i)this.pushBreak(t,s,o-n.L,null),this.addWidth(n);else{this.addWidth(n);var a=("after"===i?0:r.multChar?r.multChar.getBBox().w:n.w)+o;this.pushBreak(t,s,a,null)}},r.prototype.moPenalty=function(t){var e=t.node.attributes.getList("linebreak","fence","form"),r=e.linebreak,n=e.fence,i=e.form,o=this.FACTORS,s=o.tail(o.width(0)),a=n&&"prefix"===i||t.node.texClass===u.TEXCLASS.OPEN,l=n&&"postfix"===i||t.node.texClass===u.TEXCLASS.CLOSE;return a&&(s=o.open(s,t),this.state.depth++),l&&(s=o.close(s,t),this.state.depth--),s=(this.TEXCLASS[t.node.texClass]||function(t){return t})(s),(this.PENALTY[r]||function(t){return t})(o.depth(s))},r.prototype.getPrevious=function(t){for(var e=t.node,r=e.parent,n=r.childIndex(e);r&&(r.notParent||r.isKind("mrow"))&&0===n;)n=(r=(e=r).parent).childIndex(e);if(!r||!n)return null;var i=r.childNodes[n-1];return i.isEmbellished?i.coreMO():null},r.prototype.visitMspaceNode=function(t,e){var r=t.getLineBBox(e),n=t.node.attributes;if(void 0===n.getExplicit("height")&&void 0===n.getExplicit("depth")){var i=this.mspacePenalty(t);r.getIndentData(t.node);var o=t.processIndent("",r.indentData[1][1],"",r.indentData[0][1],this.state.width)[1];this.pushBreak(t,i,o-r.w,null)}this.addWidth(r)},r.prototype.mspacePenalty=function(t){var e=t.node.attributes.get("linebreak"),r=this.FACTORS,n=r.space(r.tail(r.width(0)),t);return(this.PENALTY[e]||function(t){return t})(r.depth(n))},r.prototype.visitMtextNode=function(t,e){var r,n,i,a;if(t.getText().match(/ /)){var l=t;l.clearBreakPoints();var c=l.textWidth(" "),u=t.getBBox(),h=s(this.getBorderLR(t),2),p=h[0],d=h[1];this.addWidth(u,u.L+p);var f=l.childNodes;try{for(var m=o(f.keys()),y=m.next();!y.done;y=m.next()){var g=y.value,b=f[g];if(b.node.isKind("text")){var v=b.node.getText().split(/ /),M=v.pop();try{for(var O=(i=void 0,o(v.keys())),x=O.next();!x.done;x=O.next()){var S=x.value;this.addWidth(u,l.textWidth(v[S])),this.pushBreak(t,this.mtextPenalty(),-c,[g,S+1]),this.addWidth(u,c)}}catch(t){i={error:t}}finally{try{x&&!x.done&&(a=O.return)&&a.call(O)}finally{if(i)throw i.error}}this.addWidth(u,l.textWidth(M))}else this.addWidth(b.getBBox())}}catch(t){r={error:t}}finally{try{y&&!y.done&&(n=m.return)&&n.call(m)}finally{if(r)throw r.error}}this.addWidth(u,u.R+d)}else this.visitDefault(t,e)},r.prototype.mtextPenalty=function(){var t=this.FACTORS;return t.depth(t.tail(t.width(0)))},r.prototype.visitMrowNode=function(t,e){var r=t.lineBBox[e]||t.getLineBBox(e),n=s(r.start||[0,0],2),i=n[0],o=n[1],a=s(r.end||[t.childNodes.length-1,0],2),l=a[0],c=a[1],u=s(this.getBorderLR(t),2),h=u[0],p=u[1];this.addWidth(r,r.L+h);for(var d=i;d<=l;d++)this.visitNode(t.childNodes[d],d===i?o:d===l?c:0);this.addWidth(r,r.R+p)},r.prototype.visitInferredMrowNode=function(t,e){this.state.depth--,this.visitMrowNode(t,e),this.state.depth++},r.prototype.visitMfracNode=function(t,e){var r=t;!r.node.attributes.get("bevelled")&&r.getOuterBBox().w>this.state.width&&(this.breakToWidth(r.childNodes[0],this.state.width),this.breakToWidth(r.childNodes[1],this.state.width)),this.visitDefault(t,e)},r.prototype.visitMsqrtNode=function(t,e){if(t.getOuterBBox().w>this.state.width){var r=t,n=r.childNodes[r.base];this.breakToWidth(n,this.state.width-r.rootWidth()),r.getStretchedSurd()}this.visitDefault(t,e)},r.prototype.visitMrootNode=function(t,e){this.visitMsqrtNode(t,e)},r.prototype.visitMsubNode=function(t,e){this.visitDefault(t,e);var r=t,n=r.getOffset()[0],i=r.scriptChild.getOuterBBox(),o=s(this.getBorderLR(t),2),a=o[0],l=o[1];this.addWidth(r.getLineBBox(e),n+a+i.rscale*i.w+r.font.params.scriptspace+l)},r.prototype.visitMsupNode=function(t,e){this.visitDefault(t,e);var r=t,n=r.getOffset()[0],i=r.scriptChild.getOuterBBox(),o=s(this.getBorderLR(t),2),a=o[0],l=o[1];this.addWidth(r.getLineBBox(e),n+a+i.rscale*i.w+r.font.params.scriptspace+l)},r.prototype.visitMsubsupNode=function(t,e){this.visitDefault(t,e);var r=t,n=r.subChild.getOuterBBox(),i=r.supChild.getOuterBBox(),o=r.getAdjustedIc(),a=Math.max(n.rscale*n.w,o+i.rscale*i.w)+r.font.params.scriptspace,l=s(this.getBorderLR(t),2),c=l[0],u=l[1];this.addWidth(t.getLineBBox(e),c+a+u)},r.prototype.visitMmultiscriptsNode=function(t,e){var r=t,n=r.scriptData;if(n.numPrescripts){var i=Math.max(n.psup.rscale*n.psup.w,n.psub.rscale*n.psub.w);this.addWidth(t.getLineBBox(e),i+r.font.params.scriptspace)}if(this.visitDefault(t,e),n.numScripts){i=Math.max(n.sup.rscale*n.sup.w,n.sub.rscale*n.sub.w);this.addWidth(t.getLineBBox(e),i+r.font.params.scriptspace)}},r.prototype.visitMfencedNode=function(t,e){var r=t,n=t.getLineBBox(e),i=s(this.getBorderLR(t),2),o=i[0],a=i[1];0===e&&this.addWidth(n,n.L+o),this.visitNode(r.mrow,e),e===t.breakCount&&this.addWidth(n,n.R+a)},r.prototype.visitMactionNode=function(t,e){var r=t,n=t.getLineBBox(e),i=s(this.getBorderLR(t),2),o=i[0],a=i[1];0===e&&this.addWidth(n,n.L+o),this.visitNode(r.selected,e),e===t.breakCount&&this.addWidth(n,n.R+a)},r}(p);e.LinebreakVisitor=d,function(){var t,e;try{for(var r=o(Object.keys(h.OPTABLE.postfix)),n=r.next();!n.done;n=r.next()){var i=n.value,l=h.OPTABLE.postfix[i][3];l&&l.fence&&(l.linebreakstyle="after")}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}h.OPTABLE.infix["\u2061"]=a([],s(h.OPTABLE.infix["\u2061"]),!1),h.OPTABLE.infix["\u2061"][3]={linebreak:"nobreak"}}()},7524:function(t,e){"use strict";var r=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonArrow=e.CommonDiagonalArrow=e.CommonDiagonalStrike=e.CommonBorder2=e.CommonBorder=e.arrowBBox=e.diagonalArrowDef=e.arrowDef=e.arrowBBoxW=e.arrowBBoxHD=e.arrowHead=e.fullBorder=e.fullPadding=e.fullBBox=e.sideNames=e.sideIndex=e.SOLID=e.PADDING=e.THICKNESS=e.ARROWY=e.ARROWDX=e.ARROWX=void 0,e.ARROWX=4,e.ARROWDX=1,e.ARROWY=2,e.THICKNESS=.067,e.PADDING=.2,e.SOLID=e.THICKNESS+"em solid",e.sideIndex={top:0,right:1,bottom:2,left:3},e.sideNames=Object.keys(e.sideIndex),e.fullBBox=function(t){return new Array(4).fill(t.thickness+t.padding)},e.fullPadding=function(t){return new Array(4).fill(t.padding)},e.fullBorder=function(t){return new Array(4).fill(t.thickness)};e.arrowHead=function(t){return Math.max(t.padding,t.thickness*(t.arrowhead.x+t.arrowhead.dx+1))};e.arrowBBoxHD=function(t,e){if(t.childNodes[0]){var r=t.childNodes[0].getBBox(),n=r.h,i=r.d;e[0]=e[2]=Math.max(0,t.thickness*t.arrowhead.y-(n+i)/2)}return e};e.arrowBBoxW=function(t,e){if(t.childNodes[0]){var r=t.childNodes[0].getBBox().w;e[1]=e[3]=Math.max(0,t.thickness*t.arrowhead.y-r/2)}return e},e.arrowDef={up:[-Math.PI/2,!1,!0,"verticalstrike"],down:[Math.PI/2,!1,!0,"verticakstrike"],right:[0,!1,!1,"horizontalstrike"],left:[Math.PI,!1,!1,"horizontalstrike"],updown:[Math.PI/2,!0,!0,"verticalstrike uparrow downarrow"],leftright:[0,!0,!1,"horizontalstrike leftarrow rightarrow"]},e.diagonalArrowDef={updiagonal:[-1,0,!1,"updiagonalstrike northeastarrow"],northeast:[-1,0,!1,"updiagonalstrike updiagonalarrow"],southeast:[1,0,!1,"downdiagonalstrike"],northwest:[1,Math.PI,!1,"downdiagonalstrike"],southwest:[-1,Math.PI,!1,"updiagonalstrike"],northeastsouthwest:[-1,0,!0,"updiagonalstrike northeastarrow updiagonalarrow southwestarrow"],northwestsoutheast:[1,0,!0,"downdiagonalstrike northwestarrow southeastarrow"]},e.arrowBBox={up:function(t){return(0,e.arrowBBoxW)(t,[(0,e.arrowHead)(t),0,t.padding,0])},down:function(t){return(0,e.arrowBBoxW)(t,[t.padding,0,(0,e.arrowHead)(t),0])},right:function(t){return(0,e.arrowBBoxHD)(t,[0,(0,e.arrowHead)(t),0,t.padding])},left:function(t){return(0,e.arrowBBoxHD)(t,[0,t.padding,0,(0,e.arrowHead)(t)])},updown:function(t){return(0,e.arrowBBoxW)(t,[(0,e.arrowHead)(t),0,(0,e.arrowHead)(t),0])},leftright:function(t){return(0,e.arrowBBoxHD)(t,[0,(0,e.arrowHead)(t),0,(0,e.arrowHead)(t)])}};e.CommonBorder=function(t){return function(r){var n=e.sideIndex[r];return[r,{renderer:t,bbox:function(t){var e=[0,0,0,0];return e[n]=t.thickness+t.padding,e},border:function(t){var e=[0,0,0,0];return e[n]=t.thickness,e}}]}};e.CommonBorder2=function(t){return function(r,n,i){var o=e.sideIndex[n],s=e.sideIndex[i];return[r,{renderer:t,bbox:function(t){var e=t.thickness+t.padding,r=[0,0,0,0];return r[o]=r[s]=e,r},border:function(t){var e=[0,0,0,0];return e[o]=e[s]=t.thickness,e},remove:n+" "+i}]}};e.CommonDiagonalStrike=function(t){return function(r){var n="mjx-"+r.charAt(0)+"strike";return[r+"diagonalstrike",{renderer:t(n),bbox:e.fullBBox}]}};e.CommonDiagonalArrow=function(t){return function(n){var i=r(e.diagonalArrowDef[n],4),o=i[0],s=i[1],a=i[2];return[n+"arrow",{renderer:function(e,n){var i=r(e.arrowAW(),2),l=i[0],c=i[1],u=e.arrow(c,o*(l-s),a);t(e,u)},bbox:function(t){var e=t.arrowData(),n=e.a,i=e.x,o=e.y,s=r([t.arrowhead.x,t.arrowhead.y,t.arrowhead.dx],3),a=s[0],l=s[1],c=s[2],u=r(t.getArgMod(a+c,l),2),h=u[0],p=u[1],d=o+(h>n?t.thickness*p*Math.sin(h-n):0),f=i+(h>Math.PI/2-n?t.thickness*p*Math.sin(h+n-Math.PI/2):0);return[d,f,d,f]},remove:i[3]}]}};e.CommonArrow=function(t){return function(n){var i=r(e.arrowDef[n],4),o=i[0],s=i[1],a=i[2],l=i[3];return[n+"arrow",{renderer:function(e,n){var i=e.getBBox(),l=i.w,c=i.h,u=i.d,h=r(a?[c+u,"X"]:[l,"Y"],2),p=h[0],d=h[1],f=e.getOffset(d),m=e.arrow(p,o,s,d,f);t(e,m)},bbox:e.arrowBBox[n],remove:l}]}}},4949:function(t,e,r){"use strict";var n,i,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),l=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&s(e,t,r);return a(e,t),e},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonWrapper=e.SPACE=void 0;var h=r(1822),p=r(8594),d=r(6707),f=l(r(7661)),m=r(4747),y=r(6152),g=r(1334),b=r(5959),v=2/18;function M(t,e){return t?e<v?0:v:e}e.SPACE=((i={})[f.em(2/18)]="1",i[f.em(3/18)]="2",i[f.em(4/18)]="3",i[f.em(5/18)]="4",i[f.em(6/18)]="5",i);var O=function(t){function e(e,r,n){void 0===n&&(n=null);var i=t.call(this,e,r)||this;return i.parent=null,i.dom=null,i.removedStyles=null,i.styles=null,i.styleData=null,i.variant="",i.bboxComputed=!1,i._breakCount=-1,i.lineBBox=[],i.stretch=b.NOSTRETCH,i.font=null,i.parent=n,i.font=e.jax.font,i.bbox=y.BBox.zero(),i.getStyles(),i.getStyleData(),i.getVariant(),i.getScale(),i.getSpace(),i.childNodes=r.childNodes.map((function(t){var e=i.wrap(t);return e.bbox.pwidth&&(r.notParent||r.isKind("math"))&&(i.bbox.pwidth=y.BBox.fullWidth),e})),i}return o(e,t),Object.defineProperty(e.prototype,"jax",{get:function(){return this.factory.jax},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"adaptor",{get:function(){return this.factory.jax.adaptor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metrics",{get:function(){return this.factory.jax.math.metrics},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerWidth",{get:function(){return this.jax.containerWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreaks",{get:function(){return this.jax.linebreaks},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linebreakOptions",{get:function(){return this.jax.options.linebreaks},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return!this.node.notParent&&!this.node.isToken},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"breakCount",{get:function(){if(this._breakCount<0){var t=this.node;this._breakCount=t.isEmbellished?this.coreMO().embellishedBreakCount:t.arity<0&&!t.linebreakContainer&&this.childNodes[0].isStack?this.childNodes[0].breakCount:0}return this._breakCount},enumerable:!1,configurable:!0}),e.prototype.breakTop=function(t,e){return this.node.linebreakContainer||!this.parent?t:this.parent.breakTop(t,this)},e.prototype.wrap=function(t,e){void 0===e&&(e=null);var r=this.factory.wrap(t,e||this);return e&&e.childNodes.push(r),this.jax.nodeMap.set(t,r),r},e.prototype.getBBox=function(t){if(void 0===t&&(t=!0),this.bboxComputed)return this.bbox;var e=t?this.bbox:y.BBox.zero();return this.computeBBox(e),this.bboxComputed=t,e},e.prototype.getOuterBBox=function(t){var e,r,n;void 0===t&&(t=!0);var i=this.getBBox(t);if(!this.styleData)return i;var o=this.styleData.padding,s=(null===(n=this.styleData.border)||void 0===n?void 0:n.width)||[0,0,0,0],a=i.copy();try{for(var l=c(y.BBox.boxSides),h=l.next();!h.done;h=l.next()){var p=u(h.value,3),d=p[1];a[p[2]]+=o[d]+s[d]}}catch(t){e={error:t}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}return a},e.prototype.getUnbrokenHD=function(){for(var t=this.breakCount+1,e=0,r=0,n=0;n<t;n++){var i=this.getLineBBox(n),o=i.h,s=i.d;o>e&&(e=o),s>r&&(r=s)}return[e,r]},e.prototype.computeBBox=function(t,e){var r,n;void 0===e&&(e=!1),t.empty();try{for(var i=c(this.childNodes),o=i.next();!o.done;o=i.next()){var s=o.value;t.append(s.getOuterBBox())}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.clean(),this.fixesPWidth&&this.setChildPWidths(e)&&this.computeBBox(t,!0)},e.prototype.getLineBBox=function(t){if(!this.lineBBox[t]){var e=this.breakCount;if(e){var r=this.embellishedBBox(t)||this.computeLineBBox(t);this.lineBBox[t]=r,0===t&&(!this.node.isKind("mo")&&this.node.isEmbellished?r.originalL=this.getBBox().L:r.L=this.getBBox().L),t===e&&(r.R=this.getBBox().R)}else this.lineBBox[t]=g.LineBBox.from(this.getOuterBBox(),this.linebreakOptions.lineleading)}return this.lineBBox[t]},e.prototype.embellishedBBox=function(t){if(!this.node.isEmbellished||this.node.isKind("mo"))return null;var e=this.coreMO();return e.moLineBBox(t,e.embellishedBreakStyle,this.getOuterBBox())},e.prototype.computeLineBBox=function(t){return this.getChildLineBBox(this.childNodes[0],t)},e.prototype.getBreakNode=function(t){var e=u(t.start||[0,0],2),r=e[0],n=e[1];return this.node.isEmbellished?[this,this.coreMO()]:this.node.isToken||!this.childNodes[r]?[this,null]:this.childNodes[r].getBreakNode(this.childNodes[r].getLineBBox(n))},e.prototype.getChildLineBBox=function(t,e){var r=this.breakCount,n=t.getLineBBox(e);return(this.styleData||this.bbox.L||this.bbox.R)&&(n=n.copy()),this.addMiddleBorders(n),0===e?(n.L+=this.bbox.L,this.addLeftBorders(n)):e===r&&(n.R+=this.bbox.R,this.addRightBorders(n)),n},e.prototype.addLeftBorders=function(t){var e;if(this.styleData){var r=this.styleData.border,n=this.styleData.padding;t.w+=((null===(e=null==r?void 0:r.width)||void 0===e?void 0:e[3])||0)+((null==n?void 0:n[3])||0)}},e.prototype.addMiddleBorders=function(t){var e,r;if(this.styleData){var n=this.styleData.border,i=this.styleData.padding;t.h+=((null===(e=null==n?void 0:n.width)||void 0===e?void 0:e[0])||0)+((null==i?void 0:i[0])||0),t.d+=((null===(r=null==n?void 0:n.width)||void 0===r?void 0:r[2])||0)+((null==i?void 0:i[2])||0)}},e.prototype.addRightBorders=function(t){var e;if(this.styleData){var r=this.styleData.border,n=this.styleData.padding;t.w+=((null===(e=null==r?void 0:r.width)||void 0===e?void 0:e[1])||0)+((null==n?void 0:n[1])||0)}},e.prototype.setChildPWidths=function(t,e,r){var n,i;if(void 0===e&&(e=null),void 0===r&&(r=!0),t)return!1;r&&(this.bbox.pwidth="");var o=!1;try{for(var s=c(this.childNodes),a=s.next();!a.done;a=s.next()){var l=a.value,u=l.getBBox();u.pwidth&&l.setChildPWidths(t,null===e?u.w:e,r)&&(o=!0)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o},e.prototype.breakToWidth=function(t){},e.prototype.invalidateBBox=function(t){void 0===t&&(t=!0),this.bboxComputed&&(this.bboxComputed=!1,this.lineBBox=[],this._breakCount=-1,this.parent&&t&&this.parent.invalidateBBox())},e.prototype.copySkewIC=function(t){var e=this.childNodes[0];(null==e?void 0:e.bbox.sk)&&(t.sk=e.bbox.sk),(null==e?void 0:e.bbox.dx)&&(t.dx=e.bbox.dx);var r=this.childNodes[this.childNodes.length-1];(null==r?void 0:r.bbox.ic)&&(t.ic=r.bbox.ic,t.w+=t.ic)},e.prototype.getStyles=function(){var t=this.node.attributes.getExplicit("style");if(t)for(var r=this.styles=new m.Styles(t),n=0,i=e.removeStyles.length;n<i;n++){var o=e.removeStyles[n];r.get(o)&&(this.removedStyles||(this.removedStyles={}),this.removedStyles[o]=r.get(o),r.set(o,""))}},e.prototype.getStyleData=function(){var t,e;if(this.styles){var r=Array(4).fill(0),n=Array(4).fill(0),i=Array(4),o=Array(4),s=!1,a=!1;try{for(var l=c(y.BBox.boxSides),h=l.next();!h.done;h=l.next()){var p=u(h.value,2),d=p[0],f=p[1],m="border"+d,g=this.styles.get(m+"Width");g&&(a=!0,n[f]=Math.max(0,this.length2em(g,1)),i[f]=this.styles.get(m+"Style")||"solid",o[f]=this.styles.get(m+"Color")||"currentColor");var b=this.styles.get("padding"+d);b&&(s=!0,r[f]=Math.max(0,this.length2em(b,1)))}}catch(e){t={error:e}}finally{try{h&&!h.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}this.styleData=s||a?{padding:r,border:a?{width:n,style:i,color:o}:null}:null}},e.prototype.getVariant=function(){if(this.node.isToken){var t=this.node.attributes,r=t.get("mathvariant");if(!t.getExplicit("mathvariant")){var n=t.getList("fontfamily","fontweight","fontstyle");if(this.removedStyles){var i=this.removedStyles;i.fontFamily&&(n.family=i.fontFamily),i.fontWeight&&(n.weight=i.fontWeight),i.fontStyle&&(n.style=i.fontStyle)}n.fontfamily&&(n.family=n.fontfamily),n.fontweight&&(n.weight=n.fontweight),n.fontstyle&&(n.style=n.fontstyle),n.weight&&n.weight.match(/^\d+$/)&&(n.weight=parseInt(n.weight)>600?"bold":"normal"),n.family?r=this.explicitVariant(n.family,n.weight,n.style):(this.node.getProperty("variantForm")&&(r="-tex-variant"),r=(e.BOLDVARIANTS[n.weight]||{})[r]||r,r=(e.ITALICVARIANTS[n.style]||{})[r]||r)}this.variant=r}},e.prototype.explicitVariant=function(t,e,r){var n=this.styles;return n||(n=this.styles=new m.Styles),n.set("fontFamily",t),e&&n.set("fontWeight",e),r&&n.set("fontStyle",r),"-explicitFont"},e.prototype.getScale=function(){var t=1,e=this.parent,r=e?e.bbox.scale:1,n=this.node.attributes,i=Math.min(n.get("scriptlevel"),2),o=n.get("fontsize"),s=this.node.isToken||this.node.isKind("mstyle")?n.get("mathsize"):n.getInherited("mathsize");if(0!==i){t=Math.pow(n.get("scriptsizemultiplier"),i);var a=this.length2em(n.get("scriptminsize"),.8,1);t<a&&(t=a)}this.removedStyles&&this.removedStyles.fontSize&&!o&&(o=this.removedStyles.fontSize),o&&!n.getExplicit("mathsize")&&(s=o),"1"!==s&&(t*=this.length2em(s,1,1)),this.bbox.scale=t,this.bbox.rscale=t/r},e.prototype.getSpace=function(){var t=this.isTopEmbellished(),e=this.node.hasSpacingAttributes();this.jax.options.mathmlSpacing||e?t&&this.getMathMLSpacing():this.getTeXSpacing(t,e)},e.prototype.getMathMLSpacing=function(){var t=this.node.coreMO(),e=t.coreParent(),r=e.parent;if(r&&r.isKind("mrow")&&1!==r.childNodes.length){var n=t.attributes,i=n.get("scriptlevel")>0;this.bbox.L=n.isSet("lspace")?Math.max(0,this.length2em(n.get("lspace"))):M(i,t.lspace),this.bbox.R=n.isSet("rspace")?Math.max(0,this.length2em(n.get("rspace"))):M(i,t.rspace);var o=r.childIndex(e);if(0!==o){var s=r.childNodes[o-1];if(s.isEmbellished){var a=this.jax.nodeMap.get(s).getBBox();a.R&&(this.bbox.L=Math.max(0,this.bbox.L-a.R))}}}},e.prototype.getTeXSpacing=function(t,e){if(!e){var r=this.node.texSpacing();r&&(this.bbox.L=this.length2em(r))}if(t||e){var n=this.node.coreMO().attributes;n.isSet("lspace")&&(this.bbox.L=Math.max(0,this.length2em(n.get("lspace")))),n.isSet("rspace")&&(this.bbox.R=Math.max(0,this.length2em(n.get("rspace"))))}},e.prototype.isTopEmbellished=function(){return this.node.isEmbellished&&!(this.node.parent&&this.node.parent.isEmbellished)},e.prototype.core=function(){return this.jax.nodeMap.get(this.node.core())},e.prototype.coreMO=function(){return this.jax.nodeMap.get(this.node.coreMO())},e.prototype.coreRScale=function(){for(var t=1,e=this.coreMO();e!==this&&e;)t*=e.bbox.rscale,e=e.parent;return t},e.prototype.getText=function(){var t,e,r="";if(this.node.isToken)try{for(var n=c(this.node.childNodes),i=n.next();!i.done;i=n.next()){var o=i.value;o instanceof p.TextNode&&(r+=o.getText())}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},e.prototype.canStretch=function(t){if(this.stretch=b.NOSTRETCH,this.node.isEmbellished){var e=this.core();e&&e.node!==this.node&&e.canStretch(t)&&(this.stretch=e.stretch)}return 0!==this.stretch.dir},e.prototype.getAlignShift=function(){var t=this.node.attributes.getAllAttributes(),e=t.indentalign,r=t.indentshift,n=t.indentalignfirst,i=t.indentshiftfirst;return"indentalign"!==n&&(e=n),"indentshift"!==i&&(r=i),this.processIndent(e,r)},e.prototype.processIndent=function(t,e,r,n,i){return void 0===r&&(r=""),void 0===n&&(n=""),void 0===i&&(i=this.metrics.containerWidth),r&&"auto"!==r||(r=this.jax.math.outputData.inlineMarked?"left":this.jax.options.displayAlign),n&&"auto"!==n||(n=this.jax.math.outputData.inlineMarked?"0":this.jax.options.displayIndent),"auto"===t&&(t=r),"auto"===e&&(e=n,"right"!==t||e.match(/^\s*0[a-z]*\s*$/)||(e=("-"+e.trim()).replace(/^--/,""))),[t,this.length2em(e,i)]},e.prototype.getAlignX=function(t,e,r){return"right"===r?t-(e.w+e.R)*e.rscale:"left"===r?e.L*e.rscale:(t-e.w*e.rscale)/2},e.prototype.getAlignY=function(t,e,r,n,i){return"top"===i?t-r:"bottom"===i?n-e:"center"===i?(t-r-(e-n))/2:0},e.prototype.getWrapWidth=function(t){return this.childNodes[t].getBBox().w},e.prototype.getChildAlign=function(t){return"left"},e.prototype.percent=function(t){return f.percent(t)},e.prototype.em=function(t){return f.em(t)},e.prototype.px=function(t,e){return void 0===e&&(e=-f.BIGDIMEN),f.px(t,e,this.metrics.em)},e.prototype.length2em=function(t,e,r){return void 0===e&&(e=1),void 0===r&&(r=null),null===r&&(r=this.bbox.scale),f.length2em(t,e,r,this.jax.pxPerEm)},e.prototype.unicodeChars=function(t,e){void 0===e&&(e=this.variant);var r=(0,d.unicodeChars)(t),n=this.font.getVariant(e);if(n&&n.chars){var i=n.chars;r=r.map((function(t){var e,r;return(null===(r=null===(e=i[t])||void 0===e?void 0:e[3])||void 0===r?void 0:r.smp)||t}))}return r},e.prototype.remapChars=function(t){return t},e.prototype.mmlText=function(t){return this.node.factory.create("text").setText(t)},e.prototype.mmlNode=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r=[]),this.node.factory.create(t,e,r)},e.prototype.createMo=function(t){var e=this.node.factory,r=e.create("text").setText(t),n=e.create("mo",{stretchy:!0},[r]);n.inheritAttributesFrom(this.node),n.parent=this.node.parent;var i=this.wrap(n);return i.parent=this,i},e.prototype.getVariantChar=function(t,e){var r=this.font.getChar(t,e)||[0,0,0,{unknown:!0}];return 3===r.length&&(r[3]={}),r},e.prototype.html=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r=[]),this.jax.html(t,e,r)},e.kind="unknown",e.styles={},e.removeStyles=["fontSize","fontFamily","fontWeight","fontStyle","fontVariant","font"],e.skipAttributes={fontfamily:!0,fontsize:!0,fontweight:!0,fontstyle:!0,color:!0,background:!0,class:!0,href:!0,style:!0,xmlns:!0},e.BOLDVARIANTS={bold:{normal:"bold",italic:"bold-italic",fraktur:"bold-fraktur",script:"bold-script","sans-serif":"bold-sans-serif","sans-serif-italic":"sans-serif-bold-italic"},normal:{bold:"normal","bold-italic":"italic","bold-fraktur":"fraktur","bold-script":"script","bold-sans-serif":"sans-serif","sans-serif-bold-italic":"sans-serif-italic"}},e.ITALICVARIANTS={italic:{normal:"italic",bold:"bold-italic","sans-serif":"sans-serif-italic","bold-sans-serif":"sans-serif-bold-italic"},normal:{italic:"normal","bold-italic":"bold","sans-serif-italic":"sans-serif","sans-serif-bold-italic":"bold-sans-serif"}},e}(h.AbstractWrapper);e.CommonWrapper=O},1914:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonWrapperFactory=void 0;var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.jax=null,e}return i(e,t),Object.defineProperty(e.prototype,"Wrappers",{get:function(){return this.node},enumerable:!1,configurable:!0}),e.defaultNodes={},e}(r(7994).AbstractWrapperFactory);e.CommonWrapperFactory=o},2516:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonHtmlNodeMixin=void 0;var s=r(6707);e.CommonHtmlNodeMixin=function(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=this.getHDW(this.node.getHTML(),"use","force"),n=r?this.splitHDW(r):this.jax.measureXMLnode(this.getHTML()),i=n.h,o=n.d,s=n.w;t.w=s,t.h=i,t.d=o},e.prototype.getHTML=function(){var t,e=this.adaptor,r=this.jax,n={},i=this.addHDW(e.clone(this.node.getHTML()),n),o=r.math.metrics;1!==o.scale&&(n["font-size"]=r.fixed(100/o.scale,1)+"%");var s=e.parent(r.math.start.node);return n["font-family"]=(null===(t=this.parent.styles)||void 0===t?void 0:t.get("font-family"))||o.family||e.fontFamily(s)||"initial",this.html("mjx-html",{variant:this.parent.variant,style:n},[i])},e.prototype.addHDW=function(t,e){var r=this.getHDW(t,"force");if(!r)return t;var n=this.splitHDW(r),i=n.h,o=n.d,s=n.w;return e.height=this.em(i+o),e.width=this.em(s),e["vertical-align"]=this.em(-o),e.position="relative",this.html("mjx-html-holder",{},[t])},e.prototype.getHDW=function(t,e,r){void 0===r&&(r=e);var n=this.jax.options.htmlHDW,i=this.adaptor.getAttribute(t,"data-mjx-hdw");return!i||n!==e&&n!==r?null:i},e.prototype.splitHDW=function(t){var e=this,r=o((0,s.split)(t).map((function(t){return e.length2em(t||"0")})),3);return{h:r[0],d:r[1],w:r[2]}},e.prototype.getStyles=function(){},e.prototype.getScale=function(){},e.prototype.getVariant=function(){},e}(t)}},8174:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTeXAtomMixin=void 0;var o=r(8594);e.CommonTeXAtomMixin=function(t){return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dh=0,e}return i(e,t),e.prototype.computeBBox=function(e,r){if(void 0===r&&(r=!1),t.prototype.computeBBox.call(this,e,r),this.childNodes[0]&&this.childNodes[0].bbox.ic&&(e.ic=this.childNodes[0].bbox.ic),this.node.texClass===o.TEXCLASS.VCENTER){var n=e.h,i=e.d,s=this.font.params.axis_height;this.dh=(n+i)/2+s-n,e.h+=this.dh,e.d-=this.dh}else if(this.node.texClass===o.TEXCLASS.VBOX){if(this.vboxAdjust(this.childNodes[0],e)||this.childNodes[0].childNodes.length>1)return;var a=this.childNodes[0].childNodes[0];a.node.isKind("mpadded")&&this.vboxAdjust(a.childNodes[0],e)||this.vboxAdjust(a,e)}},e.prototype.vboxAdjust=function(t,e){var r=t.lineBBox.length;return!!r&&(this.dh=e.d-t.lineBBox[r-1].d,e.h+=this.dh,e.d-=this.dh,!0)},e}(t)}},3763:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTextNodeMixin=void 0,e.CommonTextNodeMixin=function(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.remappedText=function(t,e){var r=this.parent.stretch.c;return r?[r]:this.parent.remapChars(this.unicodeChars(t,e))},e.prototype.computeBBox=function(t,e){var r,n;void 0===e&&(e=!1);var s=this.parent.variant,a=this.node.getText();if("-explicitFont"===s){var l=this.jax.getFontData(this.parent.styles),c=this.jax.measureText(a,s,l),u=c.w,h=c.h,p=c.d;t.h=h,t.d=p,t.w=u}else{var d=this.remappedText(a,s);t.empty();try{for(var f=i(d),m=f.next();!m.done;m=f.next()){var y=m.value,g=o(this.getVariantChar(s,y),4),b=(h=g[0],p=g[1],u=g[2],g[3]);if(b.unknown){var v=this.jax.measureText(String.fromCodePoint(y),s);u=v.w,h=v.h,p=v.d}t.w+=u,h>t.h&&(t.h=h),p>t.d&&(t.d=p),t.ic=b.ic||0,t.sk=b.sk||0,t.dx=b.dx||0}}catch(t){r={error:t}}finally{try{m&&!m.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}d.length>1&&(t.sk=0),t.clean()}},e.prototype.getStyles=function(){},e.prototype.getVariant=function(){},e.prototype.getScale=function(){},e.prototype.getSpace=function(){},e}(t)}},6033:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMactionMixin=e.TooltipData=void 0;var s=r(6707);e.TooltipData={dx:".2em",dy:".1em",postDelay:600,clearDelay:100,hoverTimer:new Map,clearTimer:new Map,stopTimers:function(t,e){e.clearTimer.has(t)&&(clearTimeout(e.clearTimer.get(t)),e.clearTimer.delete(t)),e.hoverTimer.has(t)&&(clearTimeout(e.hoverTimer.get(t)),e.hoverTimer.delete(t))}},e.CommonMactionMixin=function(t){return function(t){function r(e,r,n){void 0===n&&(n=null);var i=t.call(this,e,r,n)||this,s=i.constructor.actions,a=i.node.attributes.get("actiontype"),l=o(s.get(a)||[function(t,e){},{}],2),c=l[0],u=l[1];return i.action=c,i.data=u,i.getParameters(),i}return i(r,t),Object.defineProperty(r.prototype,"selected",{get:function(){var t=this.node.attributes.get("selection"),e=Math.max(1,Math.min(this.childNodes.length,t))-1;return this.childNodes[e]||this.wrap(this.node.selected)},enumerable:!1,configurable:!0}),r.prototype.getParameters=function(){var t=this.node.attributes.get("data-offsets"),r=o((0,s.split)(t||""),2),n=r[0],i=r[1];this.tipDx=this.length2em(n||e.TooltipData.dx),this.tipDy=this.length2em(i||e.TooltipData.dy)},r.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),t.updateFrom(this.selected.getOuterBBox()),this.selected.setChildPWidths(e)},Object.defineProperty(r.prototype,"breakCount",{get:function(){return this.node.isEmbellished?this.selected.coreMO().embellishedBreakCount:this.selected.breakCount},enumerable:!1,configurable:!0}),r.prototype.computeLineBBox=function(t){return this.getChildLineBBox(this.selected,t)},r}(t)}},5906:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMathMixin=void 0,e.CommonMathMixin=function(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getWrapWidth=function(t){return this.parent?this.getBBox().w:this.metrics.containerWidth/this.jax.pxPerEm},e.prototype.computeBBox=function(e,r){void 0===r&&(r=!1),t.prototype.computeBBox.call(this,e,r);var n=this.node.attributes;if(!this.parent&&this.jax.math.display&&"linebreak"===n.get("overflow")){var i=this.containerWidth;e.w>i&&this.childNodes[0].breakToWidth(i),e.updateFrom(this.childNodes[0].getBBox())}},e}(t)}},1977:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&o(e,t,r);return s(e,t),e},l=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMencloseMixin=void 0;var u=a(r(7524)),h=r(6707);e.CommonMencloseMixin=function(t){return function(t){function e(e,r,n){void 0===n&&(n=null);var i=t.call(this,e,r,n)||this;return i.notations={},i.renderChild=null,i.msqrt=null,i.padding=u.PADDING,i.thickness=u.THICKNESS,i.arrowhead={x:u.ARROWX,y:u.ARROWY,dx:u.ARROWDX},i.TRBL=[0,0,0,0],i.getParameters(),i.getNotations(),i.removeRedundantNotations(),i.initializeNotations(),i.TRBL=i.getBBoxExtenders(),i}return i(e,t),e.prototype.getParameters=function(){var t=this.node.attributes,e=t.get("data-padding");void 0!==e&&(this.padding=this.length2em(e,u.PADDING));var r=t.get("data-thickness");void 0!==r&&(this.thickness=this.length2em(r,u.THICKNESS));var n=t.get("data-arrowhead");if(void 0!==n){var i=l((0,h.split)(n),3),o=i[0],s=i[1],a=i[2];this.arrowhead={x:o?parseFloat(o):u.ARROWX,y:s?parseFloat(s):u.ARROWY,dx:a?parseFloat(a):u.ARROWDX}}},e.prototype.getNotations=function(){var t,e,r=this.constructor.notations;try{for(var n=c((0,h.split)(this.node.attributes.get("notation"))),i=n.next();!i.done;i=n.next()){var o=i.value,s=r.get(o);s&&(this.notations[o]=s,s.renderChild&&(this.renderChild=s.renderer))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},e.prototype.removeRedundantNotations=function(){var t,e,r,n;try{for(var i=c(Object.keys(this.notations)),o=i.next();!o.done;o=i.next()){var s=o.value;if(this.notations[s]){var a=this.notations[s].remove||"";try{for(var l=(r=void 0,c(a.split(/ /))),u=l.next();!u.done;u=l.next()){var h=u.value;delete this.notations[h]}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.initializeNotations=function(){var t,e;try{for(var r=c(Object.keys(this.notations)),n=r.next();!n.done;n=r.next()){var i=n.value,o=this.notations[i].init;o&&o(this)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},e.prototype.getBBoxExtenders=function(){var t,e,r=[0,0,0,0];try{for(var n=c(Object.keys(this.notations)),i=n.next();!i.done;i=n.next()){var o=i.value;this.maximizeEntries(r,this.notations[o].bbox(this))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},e.prototype.getPadding=function(){var t,e,r=this,n=[0,0,0,0];try{for(var i=c(Object.keys(this.notations)),o=i.next();!o.done;o=i.next()){var s=o.value,a=this.notations[s].border;a&&this.maximizeEntries(n,a(this))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return[0,1,2,3].map((function(t){return r.TRBL[t]-n[t]}))},e.prototype.maximizeEntries=function(t,e){for(var r=0;r<t.length;r++)t[r]<e[r]&&(t[r]=e[r])},e.prototype.getOffset=function(t){var e=l(this.TRBL,4),r=e[0],n=e[1],i=e[2],o=e[3],s=("X"===t?n-o:i-r)/2;return Math.abs(s)>.001?s:0},e.prototype.getArgMod=function(t,e){return[Math.atan2(e,t),Math.sqrt(t*t+e*e)]},e.prototype.arrow=function(t,e,r,n,i){return void 0===n&&(n=""),void 0===i&&(i=0),null},e.prototype.arrowData=function(){var t=l([this.padding,this.thickness],2),e=t[0],r=t[1]*(this.arrowhead.x+Math.max(1,this.arrowhead.dx)),n=this.childNodes[0].getBBox(),i=n.h,o=n.d,s=n.w,a=i+o,c=Math.sqrt(a*a+s*s),u=Math.max(e,r*s/c),h=Math.max(e,r*a/c),p=l(this.getArgMod(s+2*u,a+2*h),2);return{a:p[0],W:p[1],x:u,y:h}},e.prototype.arrowAW=function(){var t=this.childNodes[0].getBBox(),e=t.h,r=t.d,n=t.w,i=l(this.TRBL,4),o=i[0],s=i[1],a=i[2],c=i[3];return this.getArgMod(c+n+s,o+e+r+a)},e.prototype.createMsqrt=function(t){var e=this.node.factory.create("msqrt");e.inheritAttributesFrom(this.node),e.childNodes[0]=t.node;var r=this.wrap(e);return r.parent=this,r},e.prototype.sqrtTRBL=function(){var t=this.msqrt.getBBox(),e=this.msqrt.childNodes[0].getBBox();return[t.h-e.h,0,t.d-e.d,t.w-e.w]},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=l(this.TRBL,4),n=r[0],i=r[1],o=r[2],s=r[3],a=this.childNodes[0].getBBox();t.combine(a,s,0),t.h+=n,t.d+=o,t.w+=i,this.setChildPWidths(e)},e}(t)}},8062:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMfencedMixin=void 0,e.CommonMfencedMixin=function(t){return function(t){function e(e,r,n){void 0===n&&(n=null);var i=t.call(this,e,r,n)||this;return i.mrow=null,i.createMrow(),i.addMrowChildren(),i}return n(e,t),e.prototype.createMrow=function(){var t=this.node.factory.create("inferredMrow");t.inheritAttributesFrom(this.node),this.mrow=this.wrap(t),this.mrow.parent=this},e.prototype.addMrowChildren=function(){var t,e,r=this.node,n=this.mrow;this.addMo(r.open),this.childNodes.length&&n.childNodes.push(this.childNodes[0]);var o=0;try{for(var s=i(this.childNodes.slice(1)),a=s.next();!a.done;a=s.next()){var l=a.value;this.addMo(r.separators[o++]),n.childNodes.push(l)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}this.addMo(r.close),n.stretchChildren()},e.prototype.addMo=function(t){if(t){var e=this.wrap(t);this.mrow.childNodes.push(e),e.parent=this.mrow}},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),t.updateFrom(this.mrow.getOuterBBox()),this.setChildPWidths(e)},Object.defineProperty(e.prototype,"breakCount",{get:function(){return this.mrow.breakCount},enumerable:!1,configurable:!0}),e.prototype.computeLineBBox=function(t){return this.mrow.getLineBBox(t)},e}(t)}},5804:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMfracMixin=void 0,e.CommonMfracMixin=function(t){return function(t){function e(e,r,n){void 0===n&&(n=null);var i=t.call(this,e,r,n)||this;if(i.bevel=null,i.pad=i.node.getProperty("withDelims")?0:i.font.params.nulldelimiterspace,i.node.attributes.get("bevelled")){var o=i.getBevelData(i.isDisplay()).H,s=i.bevel=i.createMo("/");s.node.attributes.set("symmetric",!0),s.canStretch(1),s.getStretchedVariant([o],!0)}return i}return n(e,t),e.prototype.getFractionBBox=function(t,e,r){var n=this.childNodes[0].getOuterBBox(),i=this.childNodes[1].getOuterBBox(),o=this.font.params.axis_height,s=this.getTUV(e,r),a=s.T,l=s.u,c=s.v;t.combine(n,0,o+a+Math.max(n.d*n.rscale,l)),t.combine(i,0,o-a-Math.max(i.h*i.rscale,c)),t.w+=2*this.pad+.2},e.prototype.getTUV=function(t,e){var r=this.font.params,n=r.axis_height,i=(t?3.5:1.5)*e;return{T:(t?3.5:1.5)*e,u:(t?r.num1:r.num2)-n-i,v:(t?r.denom1:r.denom2)+n-i}},e.prototype.getAtopBBox=function(t,e){var r=this.getUVQ(e),n=r.u,i=r.v,o=r.nbox,s=r.dbox;t.combine(o,0,n),t.combine(s,0,-i),t.w+=2*this.pad},e.prototype.getUVQ=function(t){var e=this.childNodes[0].getOuterBBox(),r=this.childNodes[1].getOuterBBox(),n=this.font.params,o=i(t?[n.num1,n.denom1]:[n.num3,n.denom2],2),s=o[0],a=o[1],l=(t?7:3)*n.rule_thickness,c=s-e.d*e.scale-(r.h*r.scale-a);return c<l&&(s+=(l-c)/2,a+=(l-c)/2,c=l),{u:s,v:a,q:c,nbox:e,dbox:r}},e.prototype.getBevelledBBox=function(t,e){var r=this.getBevelData(e),n=r.u,i=r.v,o=r.delta,s=r.nbox,a=r.dbox,l=this.bevel.getOuterBBox();t.combine(s,0,n),t.combine(l,t.w-o/2,0),t.combine(a,t.w-o/2,i)},e.prototype.getBevelData=function(t){var e=this.childNodes[0].getOuterBBox(),r=this.childNodes[1].getOuterBBox(),n=t?.4:.15,i=Math.max(e.scale*(e.h+e.d),r.scale*(r.h+r.d))+2*n,o=this.font.params.axis_height;return{H:i,delta:n,u:e.scale*(e.d-e.h)/2+o+n,v:r.scale*(r.d-r.h)/2+o-n,nbox:e,dbox:r}},e.prototype.isDisplay=function(){var t=this.node.attributes.getList("displaystyle","scriptlevel"),e=t.displaystyle,r=t.scriptlevel;return e&&0===r},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),t.empty();var r=this.node.attributes.getList("linethickness","bevelled"),n=r.linethickness,i=r.bevelled,o=this.isDisplay(),s=null;if(i)this.getBevelledBBox(t,o);else{var a=this.length2em(String(n),.06);s=-2*this.pad,0===a?this.getAtopBBox(t,o):(this.getFractionBBox(t,o,a),s-=.2),s+=t.w}t.clean(),this.setChildPWidths(e,s)},e.prototype.canStretch=function(t){return!1},e.prototype.getChildAlign=function(t){var e=this.node.attributes;return e.get("bevelled")?"left":e.get(["numalign","denomalign"][t])},e.prototype.getWrapWidth=function(t){var e=this.node.attributes;return e.get("bevelled")?this.childNodes[t].getOuterBBox().w:this.getBBox().w-(this.length2em(e.get("linethickness"))?.2:0)-2*this.pad},e}(t)}},6211:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMglyphMixin=void 0,e.CommonMglyphMixin=function(t){return function(t){function e(e,r,n){void 0===n&&(n=null);var i=t.call(this,e,r,n)||this;return i.getParameters(),i}return n(e,t),e.prototype.getParameters=function(){var t=this.node.attributes.getList("width","height","valign","src","index"),e=t.width,r=t.height,n=t.valign,i=t.src,o=t.index;if(i)this.width="auto"===e?1:this.length2em(e),this.height="auto"===r?1:this.length2em(r),this.valign=this.length2em(n||"0");else{var s=String.fromCodePoint(parseInt(o)),a=this.node.factory;this.charWrapper=this.wrap(a.create("text").setText(s)),this.charWrapper.parent=this}},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),this.charWrapper?t.updateFrom(this.charWrapper.getBBox()):(t.w=this.width,t.h=this.height+this.valign,t.d=-this.valign)},e}(t)}},5143:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMiMixin=void 0,e.CommonMiMixin=function(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.computeBBox=function(e,r){void 0===r&&(r=!1),t.prototype.computeBBox.call(this,e),this.copySkewIC(e)},e}(t)}},4719:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMmultiscriptsMixin=e.ScriptNames=e.NextScript=void 0;var l=r(6152),c=r(1334);e.NextScript={base:"subList",subList:"supList",supList:"subList",psubList:"psupList",psupList:"psubList"},e.ScriptNames=["sup","sup","psup","psub"],e.CommonMmultiscriptsMixin=function(t){return function(t){function r(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,s([],o(e),!1))||this;return n.scriptData=null,n.firstPrescript=0,n.getScriptData(),n}return i(r,t),r.prototype.combinePrePost=function(t,e){var r=new l.BBox(t);return r.combine(e,0,0),r},r.prototype.getScriptData=function(){var t=this.scriptData={base:null,sub:l.BBox.empty(),sup:l.BBox.empty(),psub:l.BBox.empty(),psup:l.BBox.empty(),numPrescripts:0,numScripts:0},e=this.getScriptBBoxLists();this.combineBBoxLists(t.sub,t.sup,e.subList,e.supList),this.combineBBoxLists(t.psub,t.psup,e.psubList,e.psupList),t.base=e.base[0],t.numPrescripts=e.psubList.length,t.numScripts=e.subList.length},r.prototype.getScriptBBoxLists=function(){var t,r,n={base:[],subList:[],supList:[],psubList:[],psupList:[]},i="base";try{for(var o=a(this.childNodes),s=o.next();!s.done;s=o.next()){var l=s.value;l.node.isKind("mprescripts")?i="psubList":(n[i].push(l.getOuterBBox()),i=e.NextScript[i])}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this.firstPrescript=n.subList.length+n.supList.length+2,this.padLists(n.subList,n.supList),this.padLists(n.psubList,n.psupList),n},r.prototype.padLists=function(t,e){t.length>e.length&&e.push(l.BBox.empty())},r.prototype.combineBBoxLists=function(t,e,r,n){for(var i=0;i<r.length;i++){var s=o(this.getScaledWHD(r[i]),3),a=s[0],l=s[1],c=s[2],u=o(this.getScaledWHD(n[i]),3),h=u[0],p=u[1],d=u[2],f=Math.max(a,h);t.w+=f,e.w+=f,l>t.h&&(t.h=l),c>t.d&&(t.d=c),p>e.h&&(e.h=p),d>e.d&&(e.d=d)}},r.prototype.getScaledWHD=function(t){var e=t.w,r=t.h,n=t.d,i=t.rscale;return[e*i,r*i,n*i]},r.prototype.getCombinedUV=function(){var t=this.scriptData,e=this.combinePrePost(t.sub,t.psub),r=this.combinePrePost(t.sup,t.psup);return this.getUVQ(e,r)},r.prototype.addPrescripts=function(t,e,r){var n=this.scriptData;if(n.numPrescripts){var i=this.font.params.scriptspace;t.combine(n.psup,i,e),t.combine(n.psub,i,r)}return t},r.prototype.addPostscripts=function(t,e,r){var n=this.scriptData;if(n.numScripts){var i=t.w;t.combine(n.sup,i,e),t.combine(n.sub,i,r),t.w+=this.font.params.scriptspace}return t},r.prototype.appendScripts=function(t){t.empty();var e=o(this.getCombinedUV(),2),r=e[0],n=e[1];return this.addPrescripts(t,r,n),t.append(this.scriptData.base),this.addPostscripts(t,r,n),t.clean(),t},r.prototype.computeLineBBox=function(t){var e=this.baseChild.breakCount,r=this.baseChild.getLineBBox(t).copy(),n=r,i=o(this.getCombinedUV(),2),s=i[0],a=i[1];return 0===t?((n=c.LineBBox.from(this.addPrescripts(l.BBox.zero(),s,a),this.linebreakOptions.lineleading)).append(r),this.addLeftBorders(n),n.L=this.bbox.L):t===e&&(n=this.addPostscripts(n,s,a),this.addRightBorders(n),n.R=this.bbox.R),this.addMiddleBorders(n),n},r.prototype.getUVQ=function(e,r){var n;if(!this.UVQ){var i=o([0,0,0],3),s=i[0],a=i[1],l=i[2];0===e.w?s=this.getU():0===r.w?s=-this.getV():(s=(n=o(t.prototype.getUVQ.call(this,e,r),3))[0],a=n[1],l=n[2]),this.UVQ=[s,a,l]}return this.UVQ},r}(t)}},7328:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMnMixin=void 0,e.CommonMnMixin=function(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.remapChars=function(t){if(t.length){var e=this.font.getRemappedChar("mn",t[0]);if(e){var r=this.unicodeChars(e,this.variant);1===r.length?t[0]=r[0]:t=r.concat(t.slice(1))}}return t},e}(t)}},5274:function(t,e,r){"use strict";var n,i,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__assign||function(){return s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},s.apply(this,arguments)},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMoMixin=e.DirectionVH=void 0;var c=r(6152),u=r(1334),h=r(6707),p=r(5959);e.DirectionVH=((i={})[1]="v",i[2]="h",i),e.CommonMoMixin=function(t){return function(t){function e(e,r,n){void 0===n&&(n=null);var i=t.call(this,e,r,n)||this;return i.size=null,i.isAccent=i.node.isAccent,i.getMultChar(),i.setBreakStyle(),i}return o(e,t),Object.defineProperty(e.prototype,"breakCount",{get:function(){return this.breakStyle?1:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"embellishedBreakCount",{get:function(){return this.embellishedBreakStyle?1:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"embellishedBreakStyle",{get:function(){return this.breakStyle||this.getBreakStyle()},enumerable:!1,configurable:!0}),e.prototype.protoBBox=function(e){var r=0!==this.stretch.dir;r&&null===this.size&&this.getStretchedVariant([0]),r&&this.size<0||(t.prototype.computeBBox.call(this,e),this.copySkewIC(e))},e.prototype.getAccentOffset=function(){var t=c.BBox.empty();return this.protoBBox(t),-t.w/2},e.prototype.getCenterOffset=function(e){return void 0===e&&(e=null),e||(e=c.BBox.empty(),t.prototype.computeBBox.call(this,e)),(e.h+e.d)/2+this.font.params.axis_height-e.h},e.prototype.getStretchedVariant=function(t,e){var r,n;if(void 0===e&&(e=!1),0!==this.stretch.dir){var i=this.getWH(t),o=this.getSize("minsize",0),s=this.getSize("maxsize",1/0),l=this.node.getProperty("mathaccent");i=Math.max(o,Math.min(s,i));var c=this.font.params.delimiterfactor/1e3,u=this.font.params.delimitershortfall,h=o||e?i:l?Math.min(i/c,i+u):Math.max(i*c,i-u),p=this.stretch,d=p.c||this.getText().codePointAt(0),f=0;if(p.sizes)try{for(var m=a(p.sizes),y=m.next();!y.done;y=m.next()){if(y.value>=h)return l&&f&&f--,void this.setDelimSize(d,f);f++}}catch(t){r={error:t}}finally{try{y&&!y.done&&(n=m.return)&&n.call(m)}finally{if(r)throw r.error}}p.stretch?(this.size=-1,this.invalidateBBox(),this.getStretchBBox(t,this.checkExtendedHeight(i,p),p)):this.setDelimSize(d,f-1)}},e.prototype.setDelimSize=function(t,e){var r=this.stretch;this.variant=this.font.getSizeVariant(t,e),this.size=e;var n=r.schar&&r.schar[Math.min(e,r.schar.length-1)]||t;this.stretch=s(s({},r),{c:n})},e.prototype.getSize=function(t,e){var r=this.node.attributes;return r.isSet(t)&&(e=this.length2em(r.get(t),1,1)),e},e.prototype.getWH=function(t){if(0===t.length)return 0;if(1===t.length)return t[0];var e=l(t,2),r=e[0],n=e[1],i=this.font.params.axis_height;return this.node.attributes.get("symmetric")?2*Math.max(r-i,n+i):r+n},e.prototype.getStretchBBox=function(t,e,r){var n;r.hasOwnProperty("min")&&r.min>e&&(e=r.min);var i=l(r.HDW,3),o=i[0],s=i[1],a=i[2];1===this.stretch.dir?(o=(n=l(this.getBaseline(t,e,r),2))[0],s=n[1]):a=e,this.bbox.h=o,this.bbox.d=s,this.bbox.w=a},e.prototype.getBaseline=function(t,e,r){var n=2===t.length&&t[0]+t[1]===e,i=this.node.attributes.get("symmetric"),o=l(n?t:[e,0],2),s=o[0],a=o[1],c=l([s+a,0],2),u=c[0],h=c[1];if(i){var p=this.font.params.axis_height;n&&(u=2*Math.max(s-p,a+p)),h=u/2-p}else if(n)h=a;else{var d=l(r.HDW||[.75,.25],2),f=d[0],m=d[1];h=m*(u/(f+m))}return[u-h,h]},e.prototype.checkExtendedHeight=function(t,e){if(e.fullExt){var r=l(e.fullExt,2),n=r[0],i=r[1];t=i+Math.ceil(Math.max(0,t-i)/n)*n}return t},e.prototype.setBreakStyle=function(t){if(void 0===t&&(t=""),this.breakStyle=this.node.parent.isEmbellished&&!t?"":this.getBreakStyle(t),this.breakCount&&this.multChar){var e=this.parent.node.childIndex(this.node),r=this.parent.node.childNodes[e+1];r&&r.setTeXclass(this.multChar.node)}},e.prototype.getBreakStyle=function(t){void 0===t&&(t="");var e=this.node.attributes,r=t||("newline"===e.get("linebreak")||this.node.getProperty("forcebreak")?e.get("linebreakstyle"):"");return"infixlinebreakstyle"===r&&(r=e.get(r)),r},e.prototype.getMultChar=function(){var t=this.node.attributes.get("linebreakmultchar");t&&"\u2062"===this.getText()&&"\u2062"!==t&&(this.multChar=this.createMo(t))},e.prototype.computeBBox=function(t,e){if(void 0===e&&(e=!1),this.protoBBox(t),this.node.attributes.get("symmetric")&&2!==this.stretch.dir){var r=this.getCenterOffset(t);t.h+=r,t.d-=r}this.node.getProperty("mathaccent")&&(0===this.stretch.dir||this.size>=0)&&(t.w=0)},e.prototype.computeLineBBox=function(t){return this.moLineBBox(t,this.breakStyle)},e.prototype.moLineBBox=function(t,e,r){void 0===r&&(r=null);var n=this.node.attributes.get("lineleading"),i=this.length2em(n,this.linebreakOptions.lineleading);if(0===t&&"before"===e){var o=u.LineBBox.from(c.BBox.zero(),i);return o.originalL=this.bbox.L,this.bbox.L=0,o}var s=u.LineBBox.from(r||this.getOuterBBox(),i);return 1===t&&("after"===e?(s.w=s.h=s.d=0,s.isFirst=!0,this.bbox.R=0):"duplicate"===e?s.L=0:this.multChar&&(s=u.LineBBox.from(this.multChar.getOuterBBox(),i)),s.getIndentData(this.node)),s},e.prototype.canStretch=function(t){if(0!==this.stretch.dir)return this.stretch.dir===t;if(!this.node.attributes.get("stretchy"))return!1;var e=this.getText();if(1!==Array.from(e).length)return!1;var r=this.font.getDelimiter(e.codePointAt(0));return this.stretch=r&&r.dir===t?r:p.NOSTRETCH,0!==this.stretch.dir},e.prototype.getVariant=function(){this.node.attributes.get("largeop")?this.variant=this.node.attributes.get("displaystyle")?"-largeop":"-smallop":this.node.attributes.getExplicit("mathvariant")||!1!==this.node.getProperty("pseudoscript")?t.prototype.getVariant.call(this):this.variant="-tex-variant"},e.prototype.remapChars=function(t){var e=this.node.getProperty("primes");if(e)return(0,h.unicodeChars)(e);if(1===t.length){var r=this.node.coreParent().parent,n=this.isAccent&&!r.isKind("mrow")?"accent":"mo",i=this.font.getRemappedChar(n,t[0]);i&&(t=this.unicodeChars(i,this.variant))}return t},e}(t)}},837:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMpaddedMixin=void 0,e.CommonMpaddedMixin=function(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getDimens=function(){var t=this.node.attributes.getList("width","height","depth","lspace","voffset"),e=this.childNodes[0].getOuterBBox(),r=e.w,n=e.h,i=e.d,o=r,s=n,a=i,l=0,c=0,u=0;""!==t.width&&(r=this.dimen(t.width,e,"w",0)),""!==t.height&&(n=this.dimen(t.height,e,"h",0)),""!==t.depth&&(i=this.dimen(t.depth,e,"d",0)),""!==t.voffset&&(c=this.dimen(t.voffset,e)),""!==t.lspace&&(l=this.dimen(t.lspace,e));var h=this.node.attributes.get("data-align");return h&&(u=this.getAlignX(r,e,h)),[s,a,o,n-s,i-a,r-o,l,c,u]},e.prototype.dimen=function(t,e,r,n){void 0===r&&(r=""),void 0===n&&(n=null);var i=(t=String(t)).match(/width|height|depth/),o=i?e[i[0].charAt(0)]:r?e[r]:0,s=this.length2em(t,o)||0;return t.match(/^[-+]/)&&r&&(s+=o),null!=n&&(s=Math.max(n,s)),s},e.prototype.setBBoxDimens=function(t){var e=i(this.getDimens(),6),r=e[0],n=e[1],o=e[2],s=e[3],a=e[4],l=e[5];t.w=o+l,t.h=r+s,t.d=n+a},e.prototype.computeBBox=function(t,e){if(void 0===e&&(e=!1),this.setBBoxDimens(t),this.childNodes[0].getOuterBBox().w>t.w){var r=this.node.attributes.get("data-overflow");("linebreak"===r||"auto"===r&&"linebreak"===this.jax.math.root.attributes.get("overflow"))&&(this.childNodes[0].breakToWidth(t.w),this.setBBoxDimens(t))}this.setChildPWidths(e,t.w)},e.prototype.getWrapWidth=function(t){return this.getBBox().w},e.prototype.getChildAlign=function(t){return this.node.attributes.get("data-align")||"left"},e}(t)}},7342:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMrootMixin=void 0,e.CommonMrootMixin=function(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),Object.defineProperty(e.prototype,"root",{get:function(){return 1},enumerable:!1,configurable:!0}),e.prototype.combineRootBBox=function(t,e,r){var n=this.childNodes[this.root].getOuterBBox(),i=this.getRootDimens(e,r)[1];t.combine(n,0,i)},e.prototype.getRootDimens=function(t,e){var r=this.surd,n=this.childNodes[this.root].getOuterBBox(),i=(r.size<0?.5:.6)*t.w,o=n.w,s=n.rscale,a=Math.max(o,i/s),l=Math.max(0,a-o);return[a*s-i,this.rootHeight(n,t,r.size,e),l]},e.prototype.rootHeight=function(t,e,r,n){var i=e.h+e.d;return(r<0?1.9:.55*i)-(i-n)+Math.max(0,t.d*t.rscale)},e.prototype.rootWidth=function(){var t=this.childNodes[this.root].getOuterBBox();return.4+t.w*t.rscale},e}(t)}},4542:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonInferredMrowMixin=e.CommonMrowMixin=void 0;var l=r(6152),c=r(1334);e.CommonMrowMixin=function(t){return function(t){function e(e,r,n){var i,s;void 0===n&&(n=null);var a=t.call(this,e,r,n)||this,c=a;a.isStack=a.parent.node.isInferred||a.parent.breakTop(c,c)!==c,a.stretchChildren();try{for(var u=o(a.childNodes),h=u.next();!h.done;h=u.next()){if(h.value.bbox.pwidth){a.bbox.pwidth=l.BBox.fullWidth;break}}}catch(t){i={error:t}}finally{try{h&&!h.done&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}return a}return i(e,t),e.prototype.stretchChildren=function(){var t,e,r,n,i,a,l=[];try{for(var c=o(this.childNodes),u=c.next();!u.done;u=c.next()){(C=u.value).canStretch(1)&&l.push(C)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}var h=l.length,p=this.childNodes.length;if(h&&p>1){var d=0,f=0,m=h>1&&h===p;try{for(var y=o(this.childNodes),g=y.next();!g.done;g=y.next()){var b=0===(C=g.value).stretch.dir;if(m||b){var v=C.getBBox().rscale,M=s(C.getUnbrokenHD(),2),O=M[0],x=M[1];(O*=v)>d&&(d=O),(x*=v)>f&&(f=x)}}}catch(t){r={error:t}}finally{try{g&&!g.done&&(n=y.return)&&n.call(y)}finally{if(r)throw r.error}}try{for(var S=o(l),E=S.next();!E.done;E=S.next()){var C;v=(C=E.value).coreRScale();C.coreMO().getStretchedVariant([d/v,f/v])}}catch(t){i={error:t}}finally{try{E&&!E.done&&(a=S.return)&&a.call(S)}finally{if(i)throw i.error}}}},Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"breakCount",{get:function(){return this._breakCount<0&&(this._breakCount=this.childNodes.length?this.childNodes.reduce((function(t,e){return t+e.breakCount}),0):0),this._breakCount},enumerable:!1,configurable:!0}),e.prototype.breakTop=function(t,e){var r=this;return this.isStack?this.parent.breakTop(r,r):r},e.prototype.computeBBox=function(t,e){var r,n;void 0===e&&(e=!1);var i=this.breakCount;this.lineBBox=i?[new c.LineBBox({h:.75,d:.25,w:0},[0,0])]:[],t.empty();try{for(var s=o(this.childNodes.keys()),a=s.next();!a.done;a=s.next()){var l=a.value,u=this.childNodes[l];t.append(u.getOuterBBox()),i&&this.computeChildLineBBox(u,l)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}t.clean(),i&&this.computeLinebreakBBox(t),this.fixesPWidth&&this.setChildPWidths(e)&&this.computeBBox(t,!0)},e.prototype.computeLinebreakBBox=function(t){var e,r,n,i,c;t.empty();var u=this.isStack,h=this.lineBBox,p=h.length-1;if(u)try{for(var d=o(h.keys()),f=d.next();!f.done;f=d.next()){var m=h[v=f.value];this.addMiddleBorders(m),0===v&&this.addLeftBorders(m),v===p&&this.addRightBorders(m)}}catch(t){e={error:t}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(e)throw e.error}}var y=0;try{for(var g=o(h.keys()),b=g.next();!b.done;b=g.next()){var v;m=h[v=b.value];t.combine(m,0,y),y-=Math.max(.25,m.d)+m.lineLeading+Math.max(.75,(null===(c=h[v+1])||void 0===c?void 0:c.h)||0)}}catch(t){n={error:t}}finally{try{b&&!b.done&&(i=g.return)&&i.call(g)}finally{if(n)throw n.error}}u?(h[0].L=this.bbox.L,h[p].R=this.bbox.R):(t.w=Math.max.apply(Math,a([],s(this.lineBBox.map((function(t){return t.w}))),!1)),this.shiftLines(t.w),this.jax.math.display||this.linebreakOptions.inline||(t.pwidth=l.BBox.fullWidth,this.node.isInferred&&(this.parent.bbox.pwidth=l.BBox.fullWidth))),t.clean()},e.prototype.computeChildLineBBox=function(t,e){var r=this.lineBBox[this.lineBBox.length-1];r.end=[e,0],r.append(t.getLineBBox(0));var n=t.breakCount+1;if(1!==n)for(var i=1;i<n;i++){var o=new c.LineBBox({h:.75,d:.25,w:0});o.start=o.end=[e,i],o.isFirst=!0,o.append(t.getLineBBox(i)),this.lineBBox.push(o)}},e.prototype.getLineBBox=function(e){return this.getBBox(),this.isStack?t.prototype.getLineBBox.call(this,e):c.LineBBox.from(this.getOuterBBox(),this.linebreakOptions.lineleading)},e.prototype.shiftLines=function(t){var e,r,n=this.lineBBox,i=n.length-1,a=s(n[1].indentData[0],2),l=a[0],c=a[1];try{for(var u=o(n.keys()),h=u.next();!h.done;h=u.next()){var p=h.value,d=n[p],f=s(0===p?[l,c]:d.indentData[p===i?2:1],2),m=f[0],y=f[1],g=s(this.processIndent(m,y,l,c,t),2),b=g[0],v=g[1];d.L=0,d.L=this.getAlignX(t,d,b)+v}}catch(t){e={error:t}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}},e.prototype.setChildPWidths=function(e,r,n){return void 0===r&&(r=null),void 0===n&&(n=!0),this.breakCount?!e&&(null!==r&&this.bbox.w!==r&&(this.bbox.w=r,this.shiftLines(r)),!0):t.prototype.setChildPWidths.call(this,e,r,n)},e.prototype.breakToWidth=function(t){this.linebreaks.breakToWidth(this,t)},e}(t)},e.CommonInferredMrowMixin=function(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getScale=function(){this.bbox.scale=this.parent.bbox.scale,this.bbox.rscale=1},e}(t)}},49:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMsMixin=void 0,e.CommonMsMixin=function(t){return function(t){function e(e,r,n){void 0===n&&(n=null);var i=t.call(this,e,r,n)||this,o=i.node.attributes,s=o.getList("lquote","rquote");return"monospace"!==i.variant&&(o.isSet("lquote")||'"'!==s.lquote||(s.lquote="\u201c"),o.isSet("rquote")||'"'!==s.rquote||(s.rquote="\u201d")),i.childNodes.unshift(i.createText(s.lquote)),i.childNodes.push(i.createText(s.rquote)),i}return n(e,t),e.prototype.createText=function(t){var e=this.wrap(this.mmlText(t));return e.parent=this,e},e}(t)}},1901:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMspaceMixin=void 0;var o=r(6152),s=r(1334);e.CommonMspaceMixin=function(t){return function(t){function e(e,r,n){void 0===n&&(n=null);var i=t.call(this,e,r,n)||this;return i.setBreakStyle(),i}return i(e,t),Object.defineProperty(e.prototype,"breakCount",{get:function(){return this.breakStyle?1:0},enumerable:!1,configurable:!0}),e.prototype.setBreakStyle=function(t){void 0===t&&(t=""),this.breakStyle=t||(this.node.hasNewline?"before":"")},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=this.node.attributes;t.w=this.length2em(r.get("width"),0),t.h=this.length2em(r.get("height"),0),t.d=this.length2em(r.get("depth"),0)},e.prototype.computeLineBBox=function(t){var e=this.node.attributes.get("data-lineleading"),r=this.length2em(e,this.linebreakOptions.lineleading),n=s.LineBBox.from(o.BBox.zero(),r);return 1===t&&(n.getIndentData(this.node),n.isFirst=!0),n},e}(t)}},1753:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMsqrtMixin=void 0;var s=r(6152);e.CommonMsqrtMixin=function(t){return function(t){function e(e,r,n){void 0===n&&(n=null);var i=t.call(this,e,r,n)||this;return i.surd=i.createMo("\u221a"),i.surd.canStretch(1),i.getStretchedSurd(),i}return i(e,t),Object.defineProperty(e.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.combineRootBBox=function(t,e,r){},e.prototype.getPQ=function(t){var e=this.font.params.rule_thickness,r=this.node.attributes.get("displaystyle")?this.font.params.x_height:e;return[r,t.h+t.d>this.surdH?(t.h+t.d-(this.surdH-2*e-r/2))/2:e+r/4]},e.prototype.getRootDimens=function(t,e){return[0,0,0,0]},e.prototype.rootWidth=function(){return 1.25},e.prototype.getStretchedSurd=function(){var t=this.font.params.rule_thickness,e=this.node.attributes.get("displaystyle")?this.font.params.x_height:t,r=this.childNodes[this.base].getOuterBBox(),n=r.h,i=r.d;this.surdH=n+i+2*t+e/4,this.surd.getStretchedVariant([this.surdH-i,i],!0)},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=this.surd.getBBox(),n=new s.BBox(this.childNodes[this.base].getOuterBBox()),i=this.getPQ(r)[1],a=this.font.params.rule_thickness,l=n.h+i+a,c=o(this.getRootDimens(r,l),1)[0];t.h=l+a,this.combineRootBBox(t,r,l),t.combine(r,c,l-r.h),t.combine(n,c+r.w,0),t.clean(),this.setChildPWidths(e)},e.prototype.invalidateBBox=function(){t.prototype.invalidateBBox.call(this),this.surd.childNodes[0].invalidateBBox()},e}(t)}},6349:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMsubsupMixin=e.CommonMsupMixin=e.CommonMsubMixin=void 0,e.CommonMsubMixin=function(t){var e;return e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),Object.defineProperty(e.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:!1,configurable:!0}),e.prototype.getOffset=function(){return[0,-this.getV()]},e}(t),e.useIC=!1,e},e.CommonMsupMixin=function(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),Object.defineProperty(e.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:!1,configurable:!0}),e.prototype.getOffset=function(){return[this.getAdjustedIc()-(this.baseRemoveIc?0:this.baseIc),this.getU()]},e}(t)},e.CommonMsubsupMixin=function(t){var e;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.UVQ=null,e}return n(e,t),Object.defineProperty(e.prototype,"subChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:!1,configurable:!0}),e.prototype.getUVQ=function(t,e){void 0===t&&(t=this.subChild.getOuterBBox()),void 0===e&&(e=this.supChild.getOuterBBox());var r=this.baseCore,n=r.getLineBBox(r.breakCount);if(this.UVQ)return this.UVQ;var o=this.font.params,s=3*o.rule_thickness,a=this.length2em(this.node.attributes.get("subscriptshift"),o.sub2),l=this.baseCharZero(n.d*this.baseScale+o.sub_drop*t.rscale),c=i([this.getU(),Math.max(l,a)],2),u=c[0],h=c[1],p=u-e.d*e.rscale-(t.h*t.rscale-h);if(p<s){h+=s-p;var d=.8*o.x_height-(u-e.d*e.rscale);d>0&&(u+=d,h-=d)}return u=Math.max(this.length2em(this.node.attributes.get("superscriptshift"),u),u),h=Math.max(this.length2em(this.node.attributes.get("subscriptshift"),h),h),p=u-e.d*e.rscale-(t.h*t.rscale-h),this.UVQ=[u,-h,p],this.UVQ},e.prototype.appendScripts=function(t){var e=i([this.subChild.getOuterBBox(),this.supChild.getOuterBBox()],2),r=e[0],n=e[1],o=this.getBaseWidth(),s=this.getAdjustedIc(),a=i(this.getUVQ(),2),l=a[0],c=a[1],u=t.d-this.baseChild.getLineBBox(this.baseChild.breakCount).d;return t.combine(r,o,c-u),t.combine(n,o+s,l-u),t.w+=this.font.params.scriptspace,t},e}(t),e.useIC=!1,e}},5749:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMtableMixin=e.BREAK_BELOW=void 0;var l=r(6152),c=r(6707),u=r(6560);e.BREAK_BELOW=.333,e.CommonMtableMixin=function(t){return function(t){function r(e,r,n){void 0===n&&(n=null);var i=t.call(this,e,r,n)||this;i.numCols=0,i.numRows=0,i.data=null,i.pwidthCells=[],i.pWidth=0,i.numCols=(0,u.max)(i.tableRows.map((function(t){return t.numCells}))),i.numRows=i.childNodes.length,i.hasLabels=i.childNodes.reduce((function(t,e){return t||e.node.isKind("mlabeledtr")}),!1),i.findContainer(),i.isTop=!i.container||i.container.node.isKind("math")&&!i.container.parent,i.isTop&&(i.jax.table=i),i.getPercentageWidth();var o=i.node.attributes;return i.frame="none"!==o.get("frame"),i.fLine=i.frame&&o.get("frame")?.07:0,i.fSpace=i.getFrameSpacing(),i.cSpace=i.convertLengths(i.getColumnAttributes("columnspacing")),i.rSpace=i.convertLengths(i.getRowAttributes("rowspacing")),i.cLines=i.getColumnAttributes("columnlines").map((function(t){return"none"===t?0:.07})),i.rLines=i.getRowAttributes("rowlines").map((function(t){return"none"===t?0:.07})),i.cWidths=i.getColumnWidths(),i.adjustWideTable(),i.stretchColumns(),i.stretchRows(),i}return i(r,t),Object.defineProperty(r.prototype,"tableRows",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),r.prototype.findContainer=function(){for(var t=this,e=t.parent;e&&(e.node.notParent||e.node.isKind("mrow"));)t=e,e=e.parent;this.container=e,this.containerI=t.node.childPosition()},r.prototype.getPercentageWidth=function(){if(this.hasLabels)this.bbox.pwidth=l.BBox.fullWidth;else{var t=this.node.attributes.get("width");(0,c.isPercent)(t)&&(this.bbox.pwidth=t)}},r.prototype.stretchRows=function(){for(var t=this.node.attributes.get("equalrows"),e=t?this.getEqualRowHeight():0,r=t?this.getTableData():{H:[0],D:[0]},n=r.H,i=r.D,o=this.tableRows,s=0;s<this.numRows;s++){var a=t?[(e+n[s]-i[s])/2,(e-n[s]+i[s])/2]:null;o[s].stretchChildren(a)}},r.prototype.stretchColumns=function(){for(var t=0;t<this.numCols;t++){var e="number"==typeof this.cWidths[t]?this.cWidths[t]:null;this.stretchColumn(t,e),null!==e&&this.breakColumn(t,e)}},r.prototype.stretchColumn=function(t,e){var r,n,i,s,a,l,c=[];try{for(var u=o(this.tableRows),h=u.next();!h.done;h=u.next()){if(g=h.value.getChild(t))0===(x=g.childNodes[0]).stretch.dir&&x.canStretch(2)&&c.push(x)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}var p=c.length,d=this.childNodes.length;if(p&&d>1&&null===e){e=0;var f=p>1&&p===d;try{for(var m=o(this.tableRows),y=m.next();!y.done;y=m.next()){var g;if(g=y.value.getChild(t)){var b=0===(x=g.childNodes[0]).stretch.dir;if(f||b){var v=x.getBBox(b).w;v>e&&(e=v)}}}}catch(t){i={error:t}}finally{try{y&&!y.done&&(s=m.return)&&s.call(m)}finally{if(i)throw i.error}}}if(null!==e)try{for(var M=o(c),O=M.next();!O.done;O=M.next()){var x;(x=O.value).coreMO().getStretchedVariant([Math.max(e,x.getBBox().w)/x.coreRScale()])}}catch(t){a={error:t}}finally{try{O&&!O.done&&(l=M.return)&&l.call(M)}finally{if(a)throw a.error}}},r.prototype.breakColumn=function(t,e){var r,n;if("linebreak"===this.jax.math.root.attributes.get("overflow")&&this.jax.math.display){var i=this.getTableData().D,s=0,a=0;try{for(var l=o(this.tableRows),c=l.next();!c.done;c=l.next()){var u=c.value.getChild(t);if(u&&u.getBBox().w>e){u.childNodes[0].breakToWidth(e);var h=u.getBBox();i[s]=Math.max(i[s],h.d),h.w>a&&(a=h.w)}s++}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}a>this.cWidths[t]&&(this.cWidths[t]=a)}},r.prototype.getTableData=function(){if(this.data)return this.data;for(var t=new Array(this.numRows).fill(0),e=new Array(this.numRows).fill(0),r=new Array(this.numCols).fill(0),n=new Array(this.numRows),i=new Array(this.numRows),o=[0],s=this.tableRows,a=0;a<s.length;a++){for(var l=0,c=s[a],u=c.node.attributes.get("rowalign"),h=0;h<c.numCells;h++){var p=c.getChild(h);l=this.updateHDW(p,h,a,u,t,e,r,l),this.recordPWidthCell(p,h)}n[a]=t[a],i[a]=e[a],c.labeled&&(l=this.updateHDW(c.childNodes[0],0,a,u,t,e,o,l)),this.extendHD(a,t,e,l),this.extendHD(a,n,i,l)}var d=o[0];return this.data={H:t,D:e,W:r,NH:n,ND:i,L:d},this.data},r.prototype.updateHDW=function(t,e,r,n,i,o,s,a){var l=t.getBBox(),c=l.h,u=l.d,h=l.w,p=t.parent.bbox.rscale;1!==t.parent.bbox.rscale&&(c*=p,u*=p,h*=p),this.node.getProperty("useHeight")&&(c<.75&&(c=.75),u<.25&&(u=.25));var d=0;return"baseline"!==(n=t.node.attributes.get("rowalign")||n)&&"axis"!==n&&(d=c+u,c=u=0),c>i[r]&&(i[r]=c),u>o[r]&&(o[r]=u),d>a&&(a=d),s&&h>s[e]&&(s[e]=h),a},r.prototype.extendHD=function(t,e,r,n){var i=(n-(e[t]+r[t]))/2;i<1e-5||(e[t]+=i,r[t]+=i)},r.prototype.recordPWidthCell=function(t,e){t.childNodes[0]&&t.childNodes[0].getBBox().pwidth&&this.pwidthCells.push([t,e])},r.prototype.setColumnPWidths=function(){var t,e,r=this.cWidths;try{for(var n=o(this.pwidthCells),i=n.next();!i.done;i=n.next()){var a=s(i.value,2),l=a[0],c=a[1];l.setChildPWidths(!1,r[c])&&(l.invalidateBBox(),l.getBBox())}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},r.prototype.getBBoxHD=function(t){var e=s(this.getAlignmentRow(),2),r=e[0],n=e[1];if(null===n){var i=this.font.params.axis_height,o=t/2;return{top:[0,t],center:[o,o],bottom:[t,0],baseline:[o,o],axis:[o+i,o-i]}[r]||[o,o]}var a=this.getVerticalPosition(n,r);return[a,t-a]},r.prototype.getBBoxLR=function(){var t;if(this.hasLabels){var e=this.node.attributes,r=e.get("side"),n=s(this.getPadAlignShift(r),2),i=n[0],o=n[1],a=this.hasLabels&&!!e.get("data-width-includes-label");return a&&this.frame&&this.fSpace[0]&&(i-=this.fSpace[0]),"center"!==o||a?"left"===r?[i,0]:[0,i]:[i,i]}return[(null===(t=this.bbox)||void 0===t?void 0:t.L)||0,0]},r.prototype.getPadAlignShift=function(t){var e=this.getTableData().L+this.length2em(this.node.attributes.get("minlabelspacing")),r=s(null==this.styles?["",""]:[this.styles.get("padding-left"),this.styles.get("padding-right")],2),n=r[0],i=r[1];(n||i)&&(e=Math.max(e,this.length2em(n||"0"),this.length2em(i||"0")));var o=s(this.getAlignShift(),2),a=o[0],l=o[1];return a===t&&(l="left"===t?Math.max(e,l)-e:Math.min(-e,l)+e),[e,a,l]},r.prototype.getWidth=function(){return this.pWidth||this.getBBox().w},r.prototype.adjustWideTable=function(){if("auto"===this.node.attributes.get("width")){var t=this.length2em(this.node.attributes.get("minlabelspacing")),e=this.containerWidth-this.getTableData().L-t;this.naturalWidth()>e&&this.adjustColumnWidths(e)}},r.prototype.naturalWidth=function(){var t=this.getComputedWidths();return(0,u.sum)(t.concat(this.cLines,this.cSpace))+2*this.fLine+this.fSpace[0]+this.fSpace[2]},r.prototype.getEqualRowHeight=function(){var t=this.getTableData(),e=t.H,r=t.D,n=Array.from(e.keys()).map((function(t){return e[t]+r[t]}));return Math.max.apply(Math,n)},r.prototype.getComputedWidths=function(){var t=this,e=this.getTableData().W,r=Array.from(e.keys()).map((function(r){return"number"==typeof t.cWidths[r]?t.cWidths[r]:e[r]}));return this.node.attributes.get("equalcolumns")&&(r=Array(r.length).fill((0,u.max)(r))),r},r.prototype.getColumnWidths=function(){var t=this.node.attributes.get("width");if(this.node.attributes.get("equalcolumns"))return this.getEqualColumns(t);var e=this.getColumnAttributes("columnwidth",0);return"auto"===t?this.getColumnWidthsAuto(e):(0,c.isPercent)(t)?this.getColumnWidthsPercent(e):this.getColumnWidthsFixed(e,this.length2em(t))},r.prototype.getEqualColumns=function(t){var e,r=Math.max(1,this.numCols);if("auto"===t){var n=this.getTableData().W;e=(0,u.max)(n)}else if((0,c.isPercent)(t))e=this.percent(1/r);else{var i=(0,u.sum)([].concat(this.cLines,this.cSpace))+this.fSpace[0]+this.fSpace[2];e=Math.max(0,this.length2em(t)-i)/r}return Array(this.numCols).fill(e)},r.prototype.getColumnWidthsAuto=function(t){var e=this;return t.map((function(t){return"auto"===t||"fit"===t?null:(0,c.isPercent)(t)?t:e.length2em(t)}))},r.prototype.getColumnWidthsPercent=function(t){var e=this,r=t.indexOf("fit")>=0,n=(r?this.getTableData():{W:null}).W;return Array.from(t.keys()).map((function(i){var o=t[i];return"fit"===o?null:"auto"===o?r?n[i]:null:(0,c.isPercent)(o)?o:e.length2em(o)}))},r.prototype.getColumnWidthsFixed=function(t,e){var r=this,n=Array.from(t.keys()),i=n.filter((function(e){return"fit"===t[e]})),o=n.filter((function(e){return"auto"===t[e]})),s=i.length||o.length,a=(s?this.getTableData():{W:null}).W,l=e-(0,u.sum)([].concat(this.cLines,this.cSpace))-this.fSpace[0]-this.fSpace[2],c=l;n.forEach((function(e){var n=t[e];c-="fit"===n||"auto"===n?a[e]:r.length2em(n,l)}));var h=s&&c>0?c/s:0;return n.map((function(e){var n=t[e];return"fit"===n?a[e]+h:"auto"===n?a[e]+(0===i.length?h:0):r.length2em(n,l)}))},r.prototype.adjustColumnWidths=function(t){var r=this,n=this.getTableData().W,i=this.getColumnAttributes("columnwidth",0),o=Array.from(i.keys()),l=o.filter((function(t){return"fit"===i[t]})).sort((function(t,e){return n[e]-n[t]})),h=o.filter((function(t){return"auto"===i[t]})).sort((function(t,e){return n[e]-n[t]})),p=o.filter((function(t){return(0,c.isPercent)(i[t])})).sort((function(t,e){return n[e]-n[t]})),d=o.filter((function(t){return"fit"!==i[t]&&"auto"!==i[t]&&!(0,c.isPercent)(i[t])})).sort((function(t,e){return n[e]-n[t]})),f=a(a(a(a([],s(l),!1),s(h),!1),s(p),!1),s(d),!1);if(f.length){this.cWidths=o.map((function(t){return"number"==typeof r.cWidths[t]?r.cWidths[t]:n[t]}));for(var m=t-(0,u.sum)([].concat(this.cLines,this.cSpace))-this.fSpace[0]-this.fSpace[2],y=(0,u.sum)(this.cWidths)-m,g=0,b=0;b<f.length&&!((g+=n[f[b++]])&&y/g<e.BREAK_BELOW););y=1-y/g,f.slice(0,b).forEach((function(t){return r.cWidths[t]*=y}))}},r.prototype.getVerticalPosition=function(t,e){for(var r=this.node.attributes.get("equalrows"),n=this.getTableData(),i=n.H,o=n.D,a=r?this.getEqualRowHeight():0,l=this.getRowHalfSpacing(),c=this.fLine,u=0;u<t;u++)c+=l[u]+(r?a:i[u]+o[u])+l[u+1]+this.rLines[u];var h=s(r?[(a+i[t]-o[t])/2,(a-i[t]+o[t])/2]:[i[t],o[t]],2),p=h[0],d=h[1];return c+={top:0,center:l[t]+(p+d)/2,bottom:l[t]+p+d+l[t+1],baseline:l[t]+p,axis:l[t]+p-.25}[e]||0},r.prototype.getFrameSpacing=function(){var t=this.frame?this.convertLengths(this.getAttributeArray("framespacing")):[0,0];t[2]=t[0];var e=this.node.attributes.get("data-array-padding");if(e){var r=s(this.convertLengths((0,c.split)(e)),2),n=r[0],i=r[1];t[0]=n,t[2]=i}return t},r.prototype.getEmHalfSpacing=function(t,e,r){void 0===r&&(r=1);var n=this.addEm(e,2/r);return n.unshift(this.em(t[0]*r)),n.push(this.em(t[1]*r)),n},r.prototype.getRowHalfSpacing=function(){var t=this.rSpace.map((function(t){return t/2}));return t.unshift(this.fSpace[1]),t.push(this.fSpace[1]),t},r.prototype.getColumnHalfSpacing=function(){var t=this.cSpace.map((function(t){return t/2}));return t.unshift(this.fSpace[0]),t.push(this.fSpace[2]),t},r.prototype.getAlignmentRow=function(){var t=s((0,c.split)(this.node.attributes.get("align")),2),e=t[0],r=t[1];if(null==r)return[e,null];var n=parseInt(r);return n<0&&(n+=this.numRows+1),[e,n<1||n>this.numRows?null:n-1]},r.prototype.getColumnAttributes=function(t,e){void 0===e&&(e=1);var r=this.numCols-e,n=this.getAttributeArray(t);if(0===n.length)return null;for(;n.length<r;)n.push(n[n.length-1]);return n.length>r&&n.splice(r),n},r.prototype.getRowAttributes=function(t,e){void 0===e&&(e=1);var r=this.numRows-e,n=this.getAttributeArray(t);if(0===n.length)return null;for(;n.length<r;)n.push(n[n.length-1]);return n.length>r&&n.splice(r),n},r.prototype.getAttributeArray=function(t){var e=this.node.attributes.get(t);return e?(0,c.split)(e):[this.node.attributes.getDefault(t)]},r.prototype.addEm=function(t,e){var r=this;return void 0===e&&(e=1),t?t.map((function(t){return r.em(t/e)})):null},r.prototype.convertLengths=function(t){var e=this;return t?t.map((function(t){return e.length2em(t)})):null},r.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r,n,i=this.getTableData(),o=i.H,a=i.D;if(this.node.attributes.get("equalrows")){var l=this.getEqualRowHeight();r=(0,u.sum)([].concat(this.rLines,this.rSpace))+l*this.numRows}else r=(0,u.sum)(o.concat(a,this.rLines,this.rSpace));r+=2*(this.fLine+this.fSpace[1]),n=this.naturalWidth();var h=this.node.attributes.get("width");"auto"!==h&&(n=Math.max(this.length2em(h,0)+2*this.fLine,n));var p=s(this.getBBoxHD(r),2),d=p[0],f=p[1];t.h=d,t.d=f,t.w=n;var m=s(this.getBBoxLR(),2),y=m[0],g=m[1];t.L=y,t.R=g,(0,c.isPercent)(h)||this.setColumnPWidths()},r.prototype.setChildPWidths=function(t,e,r){var n=this.node.attributes.get("width");if(!(0,c.isPercent)(n))return!1;this.hasLabels||(this.bbox.pwidth="",this.container.bbox.pwidth="");var i=this.bbox,o=i.w,s=i.L,a=i.R,l=this.node.attributes.get("data-width-includes-label"),u=Math.max(o,this.length2em(n,Math.max(e,s+o+a)))-(l?s+a:0),h=this.node.attributes.get("equalcolumns")?Array(this.numCols).fill(this.percent(1/Math.max(1,this.numCols))):this.getColumnAttributes("columnwidth",0);return this.cWidths=this.getColumnWidthsFixed(h,u),this.pWidth=this.naturalWidth(),this.isTop&&(this.bbox.w=this.pWidth),this.setColumnPWidths(),this.pWidth!==o&&this.parent.invalidateBBox(),this.pWidth!==o},r.prototype.getAlignShift=function(){return this.isTop?t.prototype.getAlignShift.call(this):[this.container.getChildAlign(this.containerI),0]},r}(t)}},4415:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMtdMixin=void 0,e.CommonMtdMixin=function(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.invalidateBBox=function(){this.bboxComputed=!1,this.lineBBox=[]},e.prototype.getWrapWidth=function(t){var e=this.parent.parent,r=this.parent,n=this.node.childPosition()-(r.labeled?1:0);return"number"==typeof e.cWidths[n]?e.cWidths[n]:e.getTableData().W[n]},e.prototype.getChildAlign=function(t){return this.node.attributes.get("columnalign")},e}(t)}},4227:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMtextMixin=void 0;var s=r(1334);e.CommonMtextMixin=function(t){var e;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.breakPoints=[],e}return i(e,t),e.prototype.textWidth=function(t){var e=this.textNode;if(!e){var r=this.node.factory.create("text");r.parent=this.node,(e=this.textNode=this.factory.wrap(r)).parent=this}return e.node.setText(t),e.invalidateBBox(!1),e.getBBox().w},Object.defineProperty(e.prototype,"breakCount",{get:function(){return this.breakPoints.length},enumerable:!1,configurable:!0}),e.prototype.getVariant=function(){var e=this.jax.options,r=this.jax.math.outputData,n=(!!r.merrorFamily||!!e.merrorFont)&&this.node.Parent.isKind("merror");if(r.mtextFamily||e.mtextFont||n){var i=this.node.attributes.get("mathvariant"),o=this.constructor.INHERITFONTS[i]||this.jax.font.getCssFont(i),s=o[0]||(n?r.merrorFamily||e.merrorFont:r.mtextFamily||e.mtextFont);this.variant=this.explicitVariant(s,o[2]?"bold":"",o[1]?"italic":"")}else t.prototype.getVariant.call(this)},e.prototype.setBreakAt=function(t){this.breakPoints.push(t)},e.prototype.clearBreakPoints=function(){this.breakPoints=[]},e.prototype.computeLineBBox=function(t){var e=s.LineBBox.from(this.getOuterBBox(),this.linebreakOptions.lineleading);return this.breakCount?(e.w=this.getBreakWidth(t),0===t?(e.R=0,this.addLeftBorders(e)):(e.L=0,e.indentData=[["left","0"],["left","0"],["left","0"]],t===this.breakCount&&this.addRightBorders(e)),e):e},e.prototype.getBreakWidth=function(t){var e=this.childNodes,r=o(this.breakPoints[t-1]||[0,0],2),n=r[0],i=r[1],s=o(this.breakPoints[t]||[e.length,0],2),a=s[0],l=s[1],c=e[n].node.getText().split(/ /);if(n===a)return this.textWidth(c.slice(i,l).join(" "));for(var u=this.textWidth(c.slice(i).join(" "));++n<a&&n<e.length;)u+=e[n].getBBox().w;return n<e.length&&(c=e[n].node.getText().split(/ /),u+=this.textWidth(c.slice(0,l).join(" "))),u},e}(t),e.INHERITFONTS={normal:["",!1,!1],bold:["",!1,!0],italic:["",!0,!1],"bold-italic":["",!0,!0]},e}},6403:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMlabeledtrMixin=e.CommonMtrMixin=void 0,e.CommonMtrMixin=function(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),Object.defineProperty(e.prototype,"numCells",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labeled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableCells",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),e.prototype.getChild=function(t){return this.childNodes[t]},e.prototype.getChildBBoxes=function(){return this.childNodes.map((function(t){return t.getBBox()}))},e.prototype.stretchChildren=function(t){var e,r,n,o,s,a;void 0===t&&(t=null);var l=[],c=this.labeled?this.childNodes.slice(1):this.childNodes;try{for(var u=i(c),h=u.next();!h.done;h=u.next()){(_=h.value.childNodes[0]).canStretch(1)&&l.push(_)}}catch(t){e={error:t}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}var p=l.length,d=this.childNodes.length;if(p&&d>1&&!t){var f=0,m=0,y=p>1&&p===d;try{for(var g=i(c),b=g.next();!b.done;b=g.next()){var v=0===(_=b.value.childNodes[0]).stretch.dir;if(y||v){var M=_.getBBox(v),O=M.h,x=M.d;O>f&&(f=O),x>m&&(m=x)}}}catch(t){n={error:t}}finally{try{b&&!b.done&&(o=g.return)&&o.call(g)}finally{if(n)throw n.error}}t=[f,m]}if(t){var S=function(e){var r=e.coreRScale();e.coreMO().getStretchedVariant(t.map((function(t){return t*r})))};try{for(var E=i(l),C=E.next();!C.done;C=E.next()){var _;S(_=C.value)}}catch(t){s={error:t}}finally{try{C&&!C.done&&(a=E.return)&&a.call(E)}finally{if(s)throw s.error}}}},Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),e}(t)},e.CommonMlabeledtrMixin=function(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),Object.defineProperty(e.prototype,"numCells",{get:function(){return Math.max(0,this.childNodes.length-1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labeled",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableCells",{get:function(){return this.childNodes.slice(1)},enumerable:!1,configurable:!0}),e.prototype.getChild=function(t){return this.childNodes[t+1]},e.prototype.getChildBBoxes=function(){return this.childNodes.slice(1).map((function(t){return t.getBBox()}))},e}(t)}},7338:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},o=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMunderoverMixin=e.CommonMoverMixin=e.CommonMunderMixin=void 0,e.CommonMunderMixin=function(t){return function(t){function e(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,o([],i(e),!1))||this;return n.stretchChildren(),n}return n(e,t),Object.defineProperty(e.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.under]},enumerable:!1,configurable:!0}),e.prototype.computeBBox=function(e,r){if(void 0===r&&(r=!1),this.hasMovableLimits())t.prototype.computeBBox.call(this,e,r);else{e.empty();var n=this.baseChild.getOuterBBox(),o=this.scriptChild.getOuterBBox(),s=this.getUnderKV(n,o)[1],a=this.isLineBelow?0:this.getDelta(!0),l=i(this.getDeltaW([n,o],[0,-a]),2),c=l[0],u=l[1];e.combine(n,c,0),e.combine(o,u,s),e.d+=this.font.params.big_op_spacing5,e.clean(),this.setChildPWidths(r)}},e}(t)},e.CommonMoverMixin=function(t){return function(t){function e(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,o([],i(e),!1))||this;return n.stretchChildren(),n}return n(e,t),Object.defineProperty(e.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.over]},enumerable:!1,configurable:!0}),e.prototype.computeBBox=function(e){if(this.hasMovableLimits())t.prototype.computeBBox.call(this,e);else{e.empty();var r=this.baseChild.getOuterBBox(),n=this.scriptChild.getOuterBBox();this.node.attributes.get("accent")&&(r.h=Math.max(r.h,this.font.params.x_height*r.scale));var o=this.getOverKU(r,n)[1],s=this.isLineAbove?0:this.getDelta(),a=i(this.getDeltaW([r,n],[0,s]),2),l=a[0],c=a[1];e.combine(r,l,0),e.combine(n,c,o),e.h+=this.font.params.big_op_spacing5,e.clean()}},e}(t)},e.CommonMunderoverMixin=function(t){return function(t){function e(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,o([],i(e),!1))||this;return n.stretchChildren(),n}return n(e,t),Object.defineProperty(e.prototype,"underChild",{get:function(){return this.childNodes[this.node.under]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overChild",{get:function(){return this.childNodes[this.node.over]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"subChild",{get:function(){return this.underChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supChild",{get:function(){return this.overChild},enumerable:!1,configurable:!0}),e.prototype.computeBBox=function(e){if(this.hasMovableLimits())t.prototype.computeBBox.call(this,e);else{e.empty();var r=this.overChild.getOuterBBox(),n=this.baseChild.getOuterBBox(),o=this.underChild.getOuterBBox();this.node.attributes.get("accent")&&(n.h=Math.max(n.h,this.font.params.x_height*n.scale));var s=this.getOverKU(n,r)[1],a=this.getUnderKV(n,o)[1],l=this.getDelta(),c=i(this.getDeltaW([n,o,r],[0,this.isLineBelow?0:-l,this.isLineAbove?0:l]),3),u=c[0],h=c[1],p=c[2];e.combine(n,u,0),e.combine(r,p,s),e.combine(o,h,a);var d=this.font.params.big_op_spacing5;e.h+=d,e.d+=d,e.clean()}},e}(t)}},999:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonScriptbaseMixin=void 0;var l=r(8594),c=r(1334);e.CommonScriptbaseMixin=function(t){var e;return e=function(t){function e(e,r,n){void 0===n&&(n=null);var i=t.call(this,e,r,n)||this;i.baseScale=1,i.baseIc=0,i.baseRemoveIc=!1,i.baseIsChar=!1,i.baseHasAccentOver=null,i.baseHasAccentUnder=null,i.isLineAbove=!1,i.isLineBelow=!1,i.isMathAccent=!1;var o=i.baseCore=i.getBaseCore();return o?(i.setBaseAccentsFor(o),i.baseScale=i.getBaseScale(),i.baseIc=i.getBaseIc(),i.baseIsChar=i.isCharBase(),i.isMathAccent=i.baseIsChar&&i.scriptChild&&!!i.scriptChild.coreMO().node.getProperty("mathaccent"),i.checkLineAccents(),i.baseRemoveIc=!i.isLineAbove&&!i.isLineBelow&&(!i.constructor.useIC||i.isMathAccent),i):i}return i(e,t),Object.defineProperty(e.prototype,"baseChild",{get:function(){return this.childNodes[this.node.base]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scriptChild",{get:function(){return this.childNodes[1]},enumerable:!1,configurable:!0}),e.prototype.getBaseCore=function(){for(var t=this.getSemanticBase()||this.childNodes[0];t&&(1===t.childNodes.length&&(t.node.isKind("mrow")||t.node.isKind("TeXAtom")&&t.node.texClass<l.TEXCLASS.VCENTER||t.node.isKind("mstyle")||t.node.isKind("mpadded")||t.node.isKind("mphantom")||t.node.isKind("semantics"))||t.node.isKind("munderover")&&t.isMathAccent);)this.setBaseAccentsFor(t),t=t.childNodes[0];return t||(this.baseHasAccentOver=this.baseHasAccentUnder=!1),t||this.childNodes[0]},e.prototype.setBaseAccentsFor=function(t){t.node.isKind("munderover")&&(null===this.baseHasAccentOver&&(this.baseHasAccentOver=!!t.node.attributes.get("accent")),null===this.baseHasAccentUnder&&(this.baseHasAccentUnder=!!t.node.attributes.get("accentunder")))},e.prototype.getSemanticBase=function(){var t=this.node.attributes.getExplicit("data-semantic-fencepointer");return this.getBaseFence(this.baseChild,t)},e.prototype.getBaseFence=function(t,e){var r,n;if(!t||!t.node.attributes||!e)return null;if(t.node.attributes.getExplicit("data-semantic-id")===e)return t;try{for(var i=o(t.childNodes),s=i.next();!s.done;s=i.next()){var a=s.value,l=this.getBaseFence(a,e);if(l)return l}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return null},e.prototype.getBaseScale=function(){for(var t=this.baseCore,e=1;t&&t!==this;){e*=t.getOuterBBox().rscale,t=t.parent}return e},e.prototype.getBaseIc=function(){return this.baseCore.getOuterBBox().ic*this.baseScale},e.prototype.getAdjustedIc=function(){var t=this.baseCore.getOuterBBox();return(t.ic?1.05*t.ic+.05:0)*this.baseScale},e.prototype.isCharBase=function(){var t=this.baseCore;return(t.node.isKind("mo")&&null===t.size||t.node.isKind("mi")||t.node.isKind("mn"))&&1===t.bbox.rscale&&1===Array.from(t.getText()).length},e.prototype.checkLineAccents=function(){if(this.node.isKind("munderover"))if(this.node.isKind("mover"))this.isLineAbove=this.isLineAccent(this.scriptChild);else if(this.node.isKind("munder"))this.isLineBelow=this.isLineAccent(this.scriptChild);else{this.isLineAbove=this.isLineAccent(this.overChild),this.isLineBelow=this.isLineAccent(this.underChild)}},e.prototype.isLineAccent=function(t){var e=t.coreMO().node;return e.isToken&&"\u2015"===e.getText()},e.prototype.getBaseWidth=function(){var t=this.baseChild.getLineBBox(this.baseChild.breakCount);return t.w*t.rscale-(this.baseRemoveIc?this.baseIc:0)+this.font.params.extra_ic},e.prototype.getOffset=function(){return[0,0]},e.prototype.baseCharZero=function(t){var e=!!this.baseCore.node.attributes.get("largeop"),r=this.baseScale;return this.baseIsChar&&!e&&1===r?0:t},e.prototype.getV=function(){var t=this.baseCore,e=t.getLineBBox(t.breakCount),r=this.scriptChild.getOuterBBox(),n=this.font.params,i=this.length2em(this.node.attributes.get("subscriptshift"),n.sub1);return Math.max(this.baseCharZero(e.d*this.baseScale+n.sub_drop*r.rscale),i,r.h*r.rscale-.8*n.x_height)},e.prototype.getU=function(){var t=this.baseCore,e=t.getLineBBox(t.breakCount),r=this.scriptChild.getOuterBBox(),n=this.font.params,i=this.node.attributes.getList("displaystyle","superscriptshift"),o=this.node.getProperty("texprimestyle")?n.sup3:i.displaystyle?n.sup1:n.sup2,s=this.length2em(i.superscriptshift,o);return Math.max(this.baseCharZero(e.h*this.baseScale-n.sup_drop*r.rscale),s,r.d*r.rscale+1/4*n.x_height)},e.prototype.hasMovableLimits=function(){var t=this.node.attributes.get("displaystyle"),e=this.baseChild.coreMO().node;return!t&&!!e.attributes.get("movablelimits")},e.prototype.getOverKU=function(t,e){var r=this.node.attributes.get("accent"),n=this.font.params,i=e.d*e.rscale,o=n.rule_thickness*n.separation_factor,s=this.baseHasAccentOver?o:0,a=this.isLineAbove?3*n.rule_thickness:o,l=(r?a:Math.max(n.big_op_spacing1,n.big_op_spacing3-Math.max(0,i)))-s;return[l,t.h*t.rscale+l+i]},e.prototype.getUnderKV=function(t,e){var r=this.node.attributes.get("accentunder"),n=this.font.params,i=e.h*e.rscale,o=n.rule_thickness*n.separation_factor,s=this.baseHasAccentUnder?o:0,a=this.isLineBelow?3*n.rule_thickness:o,l=(r?a:Math.max(n.big_op_spacing2,n.big_op_spacing4-i))-s;return[l,-(t.d*t.rscale+l+i)]},e.prototype.getDeltaW=function(t,e){var r,n,i,l;void 0===e&&(e=[0,0,0]);var c=this.node.attributes.get("align"),u=t.map((function(t){return t.w*t.rscale}));u[0]-=this.baseRemoveIc&&!this.baseCore.node.attributes.get("largeop")?this.baseIc:0;var h=Math.max.apply(Math,a([],s(u),!1)),p=[],d=0;try{for(var f=o(u.keys()),m=f.next();!m.done;m=f.next()){var y=m.value;p[y]=("center"===c?(h-u[y])/2:"right"===c?h-u[y]:0)+e[y],p[y]<d&&(d=-p[y])}}catch(t){r={error:t}}finally{try{m&&!m.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}if(d)try{for(var g=o(p.keys()),b=g.next();!b.done;b=g.next()){y=b.value;p[y]+=d}}catch(t){i={error:t}}finally{try{b&&!b.done&&(l=g.return)&&l.call(g)}finally{if(i)throw i.error}}return[1,2].map((function(e){return p[e]+=t[e]?t[e].dx*t[0].scale:0})),p},e.prototype.getDelta=function(t){void 0===t&&(t=!1);var e=this.node.attributes.get("accent"),r=this.baseCore.getOuterBBox(),n=r.sk,i=r.ic;return((e&&!t?n:0)+this.font.skewIcFactor*i)*this.baseScale},e.prototype.stretchChildren=function(){var t,e,r,n,i,s,a=[];try{for(var l=o(this.childNodes),c=l.next();!c.done;c=l.next()){(x=c.value).canStretch(2)&&a.push(x)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}var u=a.length,h=this.childNodes.length;if(u&&h>1){var p=0,d=u>1&&u===h;try{for(var f=o(this.childNodes),m=f.next();!m.done;m=f.next()){var y=0===(x=m.value).stretch.dir;if(d||y){var g=x.getOuterBBox(y),b=g.w,v=g.rscale;b*v>p&&(p=b*v)}}}catch(t){r={error:t}}finally{try{m&&!m.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}try{for(var M=o(a),O=M.next();!O.done;O=M.next()){var x;(x=O.value).coreMO().getStretchedVariant([p/x.coreRScale()])}}catch(t){i={error:t}}finally{try{O&&!O.done&&(s=M.return)&&s.call(M)}finally{if(i)throw i.error}}}},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),t.empty(),t.append(this.baseChild.getOuterBBox()),this.appendScripts(t),t.clean(),this.setChildPWidths(e)},e.prototype.appendScripts=function(t){var e=this.getBaseWidth(),r=s(this.getOffset(),2),n=r[0],i=r[1];return t.combine(this.scriptChild.getOuterBBox(),e+n,i),t.w+=this.font.params.scriptspace,t},Object.defineProperty(e.prototype,"breakCount",{get:function(){return this._breakCount<0&&(this._breakCount=this.node.isEmbellished?this.coreMO().embellishedBreakCount:this.node.linebreakContainer?0:this.childNodes[0].breakCount),this._breakCount},enumerable:!1,configurable:!0}),e.prototype.breakTop=function(t,e){return this.node.linebreakContainer||!this.parent||this.node.childIndex(e.node)?t:this.parent.breakTop(t,this)},e.prototype.computeLineBBox=function(t){var e=this.breakCount;if(!e)return c.LineBBox.from(this.getOuterBBox(),this.linebreakOptions.lineleading);var r=this.baseChild.getLineBBox(t).copy();return t<e?(0===t&&this.addLeftBorders(r),this.addMiddleBorders(r)):(this.appendScripts(r),this.addMiddleBorders(r),this.addRightBorders(r)),r},e}(t),e.useIC=!0,e}},8398:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonSemanticsMixin=void 0,e.CommonSemanticsMixin=function(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.computeBBox=function(t,e){if(void 0===e&&(e=!1),this.childNodes.length){var r=this.childNodes[0].getBBox(),n=r.w,i=r.h,o=r.d;t.w=n,t.h=i,t.d=o}},Object.defineProperty(e.prototype,"breakCount",{get:function(){return this.node.isEmbellished?this.coreMO().embellishedBreakCount:this.childNodes[0].breakCount},enumerable:!1,configurable:!0}),e}(t)}},3110:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.MJContextMenu=void 0;var a=r(6207),l=r(9086),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.mathItem=null,e.annotation="",e.annotationTypes={},e}return i(e,t),e.prototype.post=function(e,r){if(this.mathItem){if(void 0!==r){var n=this.mathItem.inputJax.name,i=this.findID("Show","Original");i.content="MathML"===n?"Original MathML":n+" Commands",this.findID("Copy","Original").content=i.content;var o=this.findID("Settings","semantics");"MathML"===n?o.disable():o.enable(),this.getAnnotationMenu(),this.dynamicSubmenus()}t.prototype.post.call(this,e,r)}},e.prototype.unpost=function(){t.prototype.unpost.call(this),this.mathItem=null},e.prototype.findID=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=this,s=null;try{for(var a=o(r),c=a.next();!c.done;c=a.next()){var u=c.value;i?(s=i.find(u),i=s instanceof l.Submenu?s.submenu:null):s=null}}catch(e){t={error:e}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}return s},e.prototype.getAnnotationMenu=function(){var t=this,e=this.getAnnotations(this.getSemanticNode());this.createAnnotationMenu("Show",e,(function(){return t.showAnnotation.post()})),this.createAnnotationMenu("Copy",e,(function(){return t.copyAnnotation()}))},e.prototype.getSemanticNode=function(){for(var t=this.mathItem.root;t&&!t.isKind("semantics");){if(t.isToken||1!==t.childNodes.length)return null;t=t.childNodes[0]}return t},e.prototype.getAnnotations=function(t){var e,r,n=[];if(!t)return n;try{for(var i=o(t.childNodes),s=i.next();!s.done;s=i.next()){var a=s.value;if(a.isKind("annotation")){var l=this.annotationMatch(a);if(l){var c=a.childNodes.reduce((function(t,e){return t+e.toString()}),"");n.push([l,c])}}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n},e.prototype.annotationMatch=function(t){var e,r,n=t.attributes.get("encoding");try{for(var i=o(Object.keys(this.annotationTypes)),s=i.next();!s.done;s=i.next()){var a=s.value;if(this.annotationTypes[a].indexOf(n)>=0)return a}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return null},e.prototype.createAnnotationMenu=function(t,e,r){var n=this,i=this.findID(t,"Annotation");i.submenu=this.factory.get("subMenu")(this.factory,{items:e.map((function(t){var e=s(t,2),i=e[0],o=e[1];return{type:"command",id:i,content:i,action:function(){n.annotation=o,r()}}})),id:"annotations"},i),e.length?i.enable():i.disable()},e.prototype.dynamicSubmenus=function(){var t,r;try{for(var n=o(e.DynamicSubmenus),i=n.next();!i.done;i=n.next()){var a=s(i.value,2),l=a[0],c=a[1],u=this.find(l);if(u){var h=c(this,u);u.submenu=h,h.items.length?u.enable():u.disable()}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.DynamicSubmenus=new Map,e}(a.ContextMenu);e.MJContextMenu=c},7230:function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Menu=void 0;var s=r(3198),a=r(6e3),l=r(3284),c=r(7173),u=r(3110),h=r(1291),p=r(5810),d=r(9050),f=r(9983),m=r(968),y=r(3907),g=o(r(2445)),b=l.MathJax,v="undefined"!=typeof window&&window.navigator&&"Mac"===window.navigator.platform.substr(0,3),M=function(){function t(t,e){void 0===e&&(e={});var r=this;this.settings=null,this.defaultSettings=null,this.menu=null,this.MmlVisitor=new h.MmlVisitor,this.jax={CHTML:null,SVG:null},this.rerenderStart=a.STATE.LAST,this.about=new d.Info('<b style="font-size:120%;">MathJax</b> v'+s.mathjax.version,(function(){var t=[];return t.push("Input Jax: "+r.document.inputJax.map((function(t){return t.name})).join(", ")),t.push("Output Jax: "+r.document.outputJax.name),t.push("Document Type: "+r.document.kind),t.join("<br/>")}),'<a href="https://www.mathjax.org">www.mathjax.org</a>'),this.help=new d.Info("<b>MathJax Help</b>",(function(){return["<p><b>MathJax</b> is a JavaScript library that allows page"," authors to include mathematics within their web pages."," As a reader, you don't need to do anything to make that happen.</p>","<p><b>Browsers</b>: MathJax works with all modern browsers including"," Edge, Firefox, Chrome, Safari, Opera, and most mobile browsers.</p>","<p><b>Math Menu</b>: MathJax adds a contextual menu to equations."," Right-click or CTRL-click on any mathematics to access the menu.</p>",'<div style="margin-left: 1em;">',"<p><b>Show Math As:</b> These options allow you to view the formula's"," source markup (as MathML or in its original format).</p>","<p><b>Copy to Clipboard:</b> These options copy the formula's source markup,"," as MathML or in its original format, to the clipboard"," (in browsers that support that).</p>","<p><b>Math Settings:</b> These give you control over features of MathJax,"," such the size of the mathematics, and the mechanism used"," to display equations.</p>","<p><b>Accessibility</b>: MathJax can work with screen"," readers to make mathematics accessible to the visually impaired."," Turn on the explorer to enable generation of speech strings"," and the ability to investigate expressions interactively.</p>","<p><b>Language</b>: This menu lets you select the language used by MathJax"," for its menus and warning messages. (Not yet implemented in version 3.)</p>","</div>","<p><b>Math Zoom</b>: If you are having difficulty reading an"," equation, MathJax can enlarge it to help you see it better, or"," you can scall all the math on the page to make it larger."," Turn these features on in the <b>Math Settings</b> menu.</p>","<p><b>Preferences</b>: MathJax uses your browser's localStorage database"," to save the preferences set via this menu locally in your browser. These"," are not used to track you, and are not transferred or used remotely by"," MathJax in any way.</p>"].join("\n")}),'<a href="https://www.mathjax.org">www.mathjax.org</a>'),this.mathmlCode=new p.SelectableInfo("MathJax MathML Expression",(function(){if(!r.menu.mathItem)return"";var t=r.toMML(r.menu.mathItem);return"<pre>"+r.formatSource(t)+"</pre>"}),""),this.originalText=new p.SelectableInfo("MathJax Original Source",(function(){if(!r.menu.mathItem)return"";var t=r.menu.mathItem.math;return'<pre style="font-size:125%; margin:0">'+r.formatSource(t)+"</pre>"}),""),this.annotationText=new p.SelectableInfo("MathJax Annotation Text",(function(){if(!r.menu.mathItem)return"";var t=r.menu.annotation;return'<pre style="font-size:125%; margin:0">'+r.formatSource(t)+"</pre>"}),""),this.zoomBox=new d.Info("MathJax Zoomed Expression",(function(){if(!r.menu.mathItem)return"";var t=r.menu.mathItem.typesetRoot.cloneNode(!0);return t.style.margin="0",'<div style="font-size: '+1.25*parseFloat(r.settings.zscale)+'%">'+t.outerHTML+"</div>"}),""),this.document=t,this.options=(0,c.userOptions)((0,c.defaultOptions)({},this.constructor.OPTIONS),e),this.initSettings(),this.mergeUserSettings(),this.initMenu(),this.applySettings()}return Object.defineProperty(t.prototype,"isLoading",{get:function(){return t.loading>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingPromise",{get:function(){return this.isLoading?(t._loadingPromise||(t._loadingPromise=new Promise((function(e,r){t._loadingOK=e,t._loadingFailed=r}))),t._loadingPromise):Promise.resolve()},enumerable:!1,configurable:!0}),t.prototype.initSettings=function(){this.settings=this.options.settings,this.jax=this.options.jax;var t=this.document.outputJax;this.jax[t.name]=t,this.settings.renderer=t.name,b._.a11y&&b._.a11y.explorer&&Object.assign(this.settings,this.document.options.a11y),this.settings.scale=t.options.scale,this.defaultSettings=Object.assign({},this.settings),this.settings.overflow=t.options.displayOverflow.substr(0,1).toUpperCase()+t.options.displayOverflow.substr(1).toLowerCase(),this.settings.breakInline=t.options.linebreaks.inline},t.prototype.initMenu=function(){var t=this,e=new f.Parser([["contextMenu",u.MJContextMenu.fromJson.bind(u.MJContextMenu)]]);this.menu=e.parse({type:"contextMenu",id:"MathJax_Menu",pool:[this.variable("texHints"),this.variable("semantics"),this.variable("zoom"),this.variable("zscale"),this.variable("renderer",(function(e){return t.setRenderer(e)})),this.variable("overflow",(function(e){return t.setOverflow(e)})),this.variable("breakInline",(function(e){return t.setInlineBreaks(e)})),this.variable("alt"),this.variable("cmd"),this.variable("ctrl"),this.variable("shift"),this.variable("scale",(function(e){return t.setScale(e)})),this.variable("explorer",(function(e){return t.setExplorer(e)})),this.a11yVar("highlight"),this.a11yVar("backgroundColor"),this.a11yVar("backgroundOpacity"),this.a11yVar("foregroundColor"),this.a11yVar("foregroundOpacity"),this.a11yVar("speech"),this.a11yVar("subtitles"),this.a11yVar("braille"),this.a11yVar("viewBraille"),this.a11yVar("locale",(function(t){return g.default.setupEngine({locale:t})})),this.a11yVar("speechRules",(function(e){var r=n(e.split("-"),2),i=r[0],o=r[1];t.document.options.sre.domain=i,t.document.options.sre.style=o})),this.a11yVar("magnification"),this.a11yVar("magnify"),this.a11yVar("treeColoring"),this.a11yVar("infoType"),this.a11yVar("infoRole"),this.a11yVar("infoPrefix"),this.variable("autocollapse"),this.variable("collapsible",(function(e){return t.setCollapsible(e)})),this.variable("inTabOrder",(function(e){return t.setTabOrder(e)})),this.variable("assistiveMml",(function(e){return t.setAssistiveMml(e)}))],items:[this.submenu("Show","Show Math As",[this.command("MathMLcode","MathML Code",(function(){return t.mathmlCode.post()})),this.command("Original","Original Form",(function(){return t.originalText.post()})),this.submenu("Annotation","Annotation")]),this.submenu("Copy","Copy to Clipboard",[this.command("MathMLcode","MathML Code",(function(){return t.copyMathML()})),this.command("Original","Original Form",(function(){return t.copyOriginal()})),this.submenu("Annotation","Annotation")]),this.rule(),this.submenu("Settings","Math Settings",[this.submenu("Renderer","Math Renderer",this.radioGroup("renderer",[["CHTML"],["SVG"]])),this.submenu("Overflow","Wide Expressions",[this.radioGroup("overflow",[["Overflow"],["Scroll"],["Linebreak"],["Scale"],["Truncate"],["Elide"]]),this.rule(),this.checkbox("BreakInline","Allow In-line Breaks","breakInline")]),this.rule(),this.submenu("ZoomTrigger","Zoom Trigger",[this.command("ZoomNow","Zoom Once Now",(function(){return t.zoom(null,"",t.menu.mathItem)})),this.rule(),this.radioGroup("zoom",[["Click"],["DoubleClick","Double-Click"],["NoZoom","No Zoom"]]),this.rule(),this.label("TriggerRequires","Trigger Requires:"),this.checkbox(v?"Option":"Alt",v?"Option":"Alt","alt"),this.checkbox("Command","Command","cmd",{hidden:!v}),this.checkbox("Control","Control","ctrl",{hiddne:v}),this.checkbox("Shift","Shift","shift")]),this.submenu("ZoomFactor","Zoom Factor",this.radioGroup("zscale",[["150%"],["175%"],["200%"],["250%"],["300%"],["400%"]])),this.rule(),this.command("Scale","Scale All Math...",(function(){return t.scaleAllMath()})),this.rule(),this.checkbox("texHints","Add TeX hints to MathML","texHints"),this.checkbox("semantics","Add original as annotation","semantics"),this.rule(),this.command("Reset","Reset to defaults",(function(){return t.resetDefaults()}))]),this.submenu("Accessibility","Accessibility",[this.checkbox("Activate","Activate","explorer"),this.submenu("Speech","Speech",[this.checkbox("Speech","Speech Output","speech"),this.checkbox("Subtitles","Speech Subtitles","subtitles"),this.checkbox("Braille","Braille Output","braille"),this.checkbox("View Braille","Braille Subtitles","viewBraille"),this.rule(),this.submenu("A11yLanguage","Language"),this.rule(),this.submenu("Mathspeak","Mathspeak Rules",this.radioGroup("speechRules",[["mathspeak-default","Verbose"],["mathspeak-brief","Brief"],["mathspeak-sbrief","Superbrief"]])),this.submenu("Clearspeak","Clearspeak Rules",this.radioGroup("speechRules",[["clearspeak-default","Auto"]])),this.submenu("ChromeVox","ChromeVox Rules",this.radioGroup("speechRules",[["chromevox-default","Standard"],["chromevox-alternative","Alternative"]]))]),this.submenu("Highlight","Highlight",[this.submenu("Background","Background",this.radioGroup("backgroundColor",[["Blue"],["Red"],["Green"],["Yellow"],["Cyan"],["Magenta"],["White"],["Black"]])),{type:"slider",variable:"backgroundOpacity",content:" "},this.submenu("Foreground","Foreground",this.radioGroup("foregroundColor",[["Black"],["White"],["Magenta"],["Cyan"],["Yellow"],["Green"],["Red"],["Blue"]])),{type:"slider",variable:"foregroundOpacity",content:" "},this.rule(),this.radioGroup("highlight",[["None"],["Hover"],["Flame"]]),this.rule(),this.checkbox("TreeColoring","Tree Coloring","treeColoring")]),this.submenu("Magnification","Magnification",[this.radioGroup("magnification",[["None"],["Keyboard"],["Mouse"]]),this.rule(),this.radioGroup("magnify",[["200%"],["300%"],["400%"],["500%"]])]),this.submenu("Semantic Info","Semantic Info",[this.checkbox("Type","Type","infoType"),this.checkbox("Role","Role","infoRole"),this.checkbox("Prefix","Prefix","infoPrefix")],!0),this.rule(),this.checkbox("Collapsible","Collapsible Math","collapsible"),this.checkbox("AutoCollapse","Auto Collapse","autocollapse",{disabled:!0}),this.rule(),this.checkbox("InTabOrder","Include in Tab Order","inTabOrder"),this.checkbox("AssistiveMml","Include Hidden MathML","assistiveMml")]),this.submenu("Language","Language"),this.rule(),this.command("About","About MathJax",(function(){return t.about.post()})),this.command("Help","MathJax Help",(function(){return t.help.post()}))]});var r=this.menu;r.findID("Settings","Overflow","Elide").disable(),this.about.attachMenu(r),this.help.attachMenu(r),this.originalText.attachMenu(r),this.annotationText.attachMenu(r),this.mathmlCode.attachMenu(r),this.zoomBox.attachMenu(r),this.checkLoadableItems(),this.enableExplorerItems(this.settings.explorer),r.showAnnotation=this.annotationText,r.copyAnnotation=this.copyAnnotation.bind(this),r.annotationTypes=this.options.annotationTypes,y.CssStyles.addInfoStyles(this.document.document),y.CssStyles.addMenuStyles(this.document.document)},t.prototype.checkLoadableItems=function(){var t,e;if(b&&b._&&b.loader&&b.startup)!this.settings.collapsible||b._.a11y&&b._.a11y.complexity||this.loadA11y("complexity"),!this.settings.explorer||b._.a11y&&b._.a11y.explorer||this.loadA11y("explorer"),!this.settings.assistiveMml||b._.a11y&&b._.a11y["assistive-mml"]||this.loadA11y("assistive-mml");else{var r=this.menu;try{for(var n=i(Object.keys(this.jax)),o=n.next();!o.done;o=n.next()){var s=o.value;this.jax[s]||r.findID("Settings","Renderer",s).disable()}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}r.findID("Accessibility","Activate").disable(),r.findID("Accessibility","AutoCollapse").disable(),r.findID("Accessibility","Collapsible").disable()}},t.prototype.enableExplorerItems=function(t){var e,r,n=this.menu.findID("Accessibility","Activate").menu;try{for(var o=i(n.items.slice(1)),s=o.next();!s.done;s=o.next()){var a=s.value;if(a instanceof m.Rule)break;t?a.enable():a.disable()}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},t.prototype.mergeUserSettings=function(){try{var e=localStorage.getItem(t.MENU_STORAGE);if(!e)return;Object.assign(this.settings,JSON.parse(e)),this.setA11y(this.settings)}catch(t){console.log("MathJax localStorage error: "+t.message)}},t.prototype.saveUserSettings=function(){var e,r,n={};try{for(var o=i(Object.keys(this.settings)),s=o.next();!s.done;s=o.next()){var a=s.value;this.settings[a]!==this.defaultSettings[a]&&(n[a]=this.settings[a])}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}try{Object.keys(n).length?localStorage.setItem(t.MENU_STORAGE,JSON.stringify(n)):localStorage.removeItem(t.MENU_STORAGE)}catch(t){console.log("MathJax localStorage error: "+t.message)}},t.prototype.setA11y=function(t){b._.a11y&&b._.a11y.explorer&&b._.a11y.explorer_ts.setA11yOptions(this.document,t)},t.prototype.getA11y=function(t){if(b._.a11y&&b._.a11y.explorer)return void 0!==this.document.options.a11y[t]?this.document.options.a11y[t]:this.document.options.sre[t]},t.prototype.applySettings=function(){this.setTabOrder(this.settings.inTabOrder),this.document.options.enableAssistiveMml=this.settings.assistiveMml,this.document.outputJax.options.scale=parseFloat(this.settings.scale),this.settings.renderer!==this.defaultSettings.renderer&&this.setRenderer(this.settings.renderer),this.document.outputJax.options.displayOverflow=this.settings.overflow.toLowerCase(),this.document.outputJax.options.linebreaks.inline=this.settings.breakInline},t.prototype.setOverflow=function(t){this.document.outputJax.options.displayOverflow=t.toLowerCase(),this.document.rerender()},t.prototype.setInlineBreaks=function(t){this.document.outputJax.options.linebreaks.inline=t,this.document.rerender()},t.prototype.setScale=function(t){this.document.outputJax.options.scale=parseFloat(t),this.document.rerender()},t.prototype.setRenderer=function(t){var e=this;if(this.jax[t])this.setOutputJax(t);else{var r=t.toLowerCase();this.loadComponent("output/"+r,(function(){var n=b.startup;r in n.constructors&&(n.useOutput(r,!0),n.output=n.getOutputJax(),n.output.setAdaptor(e.document.adaptor),n.output.initialize(),e.jax[t]=n.output,s.mathjax.handleRetriesFor((function(){return e.setOutputJax(t)})))}))}},t.prototype.setOutputJax=function(t){this.jax[t].setAdaptor(this.document.adaptor),this.document.outputJax=this.jax[t],this.rerender()},t.prototype.setTabOrder=function(t){this.menu.store.inTaborder(t)},t.prototype.setAssistiveMml=function(t){this.document.options.enableAssistiveMml=t,!t||b._.a11y&&b._.a11y["assistive-mml"]?this.rerender():this.loadA11y("assistive-mml")},t.prototype.setExplorer=function(t){this.enableExplorerItems(t),this.document.options.enableExplorer=t,!t||b._.a11y&&b._.a11y.explorer?this.rerender(this.settings.collapsible?a.STATE.RERENDER:a.STATE.COMPILED):this.loadA11y("explorer")},t.prototype.setCollapsible=function(t){this.document.options.enableComplexity=t,!t||b._.a11y&&b._.a11y.complexity?this.rerender(a.STATE.COMPILED):this.loadA11y("complexity")},t.prototype.scaleAllMath=function(){var t=(100*parseFloat(this.settings.scale)).toFixed(1).replace(/.0$/,""),e=prompt("Scale all mathematics (compared to surrounding text) by",t+"%");if(e)if(e.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)){var r=parseFloat(e)/100;r?this.menu.pool.lookup("scale").setValue(String(r)):alert("The scale should not be zero")}else alert("The scale should be a percentage (e.g., 120%)")},t.prototype.resetDefaults=function(){var e,r;t.loading++;var n=this.menu.pool,o=this.defaultSettings;try{for(var s=i(Object.keys(this.settings)),l=s.next();!l.done;l=s.next()){var c=l.value,u=n.lookup(c);if(u){u.setValue(o[c]);var h=u.items[0];h&&h.executeCallbacks_()}else this.settings[c]=o[c]}}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}t.loading--,this.rerender(a.STATE.COMPILED)},t.prototype.checkComponent=function(e){var r=t.loadingPromises.get(e);r&&s.mathjax.retryAfter(r)},t.prototype.loadComponent=function(e,r){if(!t.loadingPromises.has(e)){var n=b.loader;if(n){t.loading++;var i=n.load(e).then((function(){t.loading--,t.loadingPromises.delete(e),r(),0===t.loading&&t._loadingPromise&&(t._loadingPromise=null,t._loadingOK())})).catch((function(e){t._loadingPromise?(t._loadingPromise=null,t._loadingFailed(e)):console.log(e)}));t.loadingPromises.set(e,i)}}},t.prototype.loadA11y=function(e){var r=this,n=!a.STATE.ENRICHED;this.loadComponent("a11y/"+e,(function(){var i=b.startup;s.mathjax.handlers.unregister(i.handler),i.handler=i.getHandler(),s.mathjax.handlers.register(i.handler);var o=r.document;r.document=i.document=i.getDocument(),r.document.menu=r,r.document.outputJax.reset(),r.transferMathList(o),r.document.processed=o.processed,t._loadingPromise||(r.document.outputJax.reset(),s.mathjax.handleRetriesFor((function(){r.rerender("complexity"===e||n?a.STATE.COMPILED:a.STATE.TYPESET)})))}))},t.prototype.transferMathList=function(t){var e,r,n=this.document.options.MathItem;try{for(var o=i(t.math),s=o.next();!s.done;s=o.next()){var a=s.value,l=new n;Object.assign(l,a),this.document.math.push(l)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},t.prototype.formatSource=function(t){return t.trim().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},t.prototype.toMML=function(t){return this.MmlVisitor.visitTree(t.root,t,{texHints:this.settings.texHints,semantics:this.settings.semantics&&"MathML"!==t.inputJax.name})},t.prototype.zoom=function(t,e,r){t&&!this.isZoomEvent(t,e)||(this.menu.mathItem=r,t&&this.menu.post(t),this.zoomBox.post())},t.prototype.isZoomEvent=function(t,e){return this.settings.zoom===e&&(!this.settings.alt||t.altKey)&&(!this.settings.ctrl||t.ctrlKey)&&(!this.settings.cmd||t.metaKey)&&(!this.settings.shift||t.shiftKey)},t.prototype.rerender=function(e){void 0===e&&(e=a.STATE.TYPESET),this.rerenderStart=Math.min(e,this.rerenderStart),t.loading||(this.rerenderStart<=a.STATE.COMPILED&&this.document.reset({inputJax:[]}),this.document.rerender(this.rerenderStart),this.rerenderStart=a.STATE.LAST)},t.prototype.copyMathML=function(){this.copyToClipboard(this.toMML(this.menu.mathItem))},t.prototype.copyOriginal=function(){this.copyToClipboard(this.menu.mathItem.math.trim())},t.prototype.copyAnnotation=function(){this.copyToClipboard(this.menu.annotation.trim())},t.prototype.copyToClipboard=function(t){var e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.style.cssText="height: 1px; width: 1px; padding: 1px; position: absolute; left: -10px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(t){alert("Can't copy to clipboard: "+t.message)}document.body.removeChild(e)},t.prototype.addMenu=function(t){var e=this,r=t.typesetRoot;r.addEventListener("contextmenu",(function(){return e.menu.mathItem=t}),!0),r.addEventListener("keydown",(function(){return e.menu.mathItem=t}),!0),r.addEventListener("click",(function(r){return e.zoom(r,"Click",t)}),!0),r.addEventListener("dblclick",(function(r){return e.zoom(r,"DoubleClick",t)}),!0),this.menu.store.insert(r)},t.prototype.clear=function(){this.menu.store.clear()},t.prototype.variable=function(t,e){var r=this;return{name:t,getter:function(){return r.settings[t]},setter:function(n){r.settings[t]=n,e&&e(n),r.saveUserSettings()}}},t.prototype.a11yVar=function(t,e){var r=this;return{name:t,getter:function(){return r.getA11y(t)},setter:function(n){r.settings[t]=n;var i={};i[t]=n,r.setA11y(i),e&&e(n),r.saveUserSettings()}}},t.prototype.submenu=function(t,e,r,n){var o,s;void 0===r&&(r=[]),void 0===n&&(n=!1);var a=[];try{for(var l=i(r),c=l.next();!c.done;c=l.next()){var u=c.value;Array.isArray(u)?a=a.concat(u):a.push(u)}}catch(t){o={error:t}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}return{type:"submenu",id:t,content:e,menu:{items:a},disabled:0===a.length||n}},t.prototype.command=function(t,e,r,n){return void 0===n&&(n={}),Object.assign({type:"command",id:t,content:e,action:r},n)},t.prototype.checkbox=function(t,e,r,n){return void 0===n&&(n={}),Object.assign({type:"checkbox",id:t,content:e,variable:r},n)},t.prototype.radioGroup=function(t,e){var r=this;return e.map((function(e){return r.radio(e[0],e[1]||e[0],t)}))},t.prototype.radio=function(t,e,r,n){return void 0===n&&(n={}),Object.assign({type:"radio",id:t,content:e,variable:r},n)},t.prototype.label=function(t,e){return{type:"label",id:t,content:e}},t.prototype.rule=function(){return{type:"rule"}},t.MENU_STORAGE="MathJax-Menu-Settings",t.OPTIONS={settings:{texHints:!0,semantics:!1,zoom:"NoZoom",zscale:"200%",renderer:"CHTML",alt:!1,cmd:!1,ctrl:!1,shift:!1,scale:1,overflow:"Scroll",breakInline:!0,autocollapse:!1,collapsible:!1,inTabOrder:!0,assistiveMml:!0,explorer:!1},jax:{CHTML:null,SVG:null},annotationTypes:(0,c.expandable)({TeX:["TeX","LaTeX","application/x-tex"],StarMath:["StarMath 5.0"],Maple:["Maple"],ContentMathML:["MathML-Content","application/mathml-content+xml"],OpenMath:["OpenMath"]})},t.loading=0,t.loadingPromises=new Map,t._loadingPromise=null,t._loadingOK=null,t._loadingFailed=null,t}();e.Menu=M},1447:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MenuHandler=e.MenuMathDocumentMixin=e.MenuMathItemMixin=void 0;var c=r(3198),u=r(6e3),h=r(7173),p=r(7230);function d(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.addMenu=function(t,e){void 0===e&&(e=!1),this.state()>=u.STATE.CONTEXT_MENU||(this.isEscaped||!t.options.enableMenu&&!e||t.menu.addMenu(this),this.state(u.STATE.CONTEXT_MENU))},e.prototype.checkLoading=function(t){t.checkLoading()},e}(t)}function f(t){var e;return e=function(t){function e(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=t.apply(this,a([],s(e),!1))||this;n.menu=new n.options.MenuClass(n,n.options.menuOptions);var i=n.constructor.ProcessBits;return i.has("context-menu")||i.allocate("context-menu"),n.options.MathItem=d(n.options.MathItem),n}return i(e,t),e.prototype.addMenu=function(){var t,e;if(!this.processed.isSet("context-menu")){try{for(var r=l(this.math),n=r.next();!n.done;n=r.next()){n.value.addMenu(this)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}this.processed.set("context-menu")}return this},e.prototype.checkLoading=function(){this.menu.isLoading&&c.mathjax.retryAfter(this.menu.loadingPromise.catch((function(t){return console.log(t)})));var t=this.menu.settings;return t.collapsible&&(this.options.enableComplexity=!0,this.menu.checkComponent("a11y/complexity")),t.explorer&&(this.options.enableEnrichment=!0,this.options.enableExplorer=!0,this.menu.checkComponent("a11y/explorer")),this},e.prototype.state=function(e,r){return void 0===r&&(r=!1),t.prototype.state.call(this,e,r),e<u.STATE.CONTEXT_MENU&&this.processed.clear("context-menu"),this},e.prototype.updateDocument=function(){return t.prototype.updateDocument.call(this),this.menu.menu.store.sort(),this},e}(t),e.OPTIONS=o(o({enableEnrichment:!0,enableComplexity:!0,enableExplorer:!0,enrichSpeech:"none",enrichError:function(t,e,r){return console.warn("Enrichment Error:",r)}},t.OPTIONS),{MenuClass:p.Menu,menuOptions:p.Menu.OPTIONS,enableMenu:!0,sre:t.OPTIONS.sre||(0,h.expandable)({}),a11y:t.OPTIONS.a11y||(0,h.expandable)({}),renderActions:(0,h.expandable)(o(o({},t.OPTIONS.renderActions),{addMenu:[u.STATE.CONTEXT_MENU],checkLoading:[u.STATE.UNPROCESSED+1]}))}),e}(0,u.newState)("CONTEXT_MENU",170),e.MenuMathItemMixin=d,e.MenuMathDocumentMixin=f,e.MenuHandler=function(t){return t.documentClass=f(t.documentClass),t}},1291:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.MmlVisitor=void 0;var o=r(3861),s=r(7173),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.options={texHints:!0,semantics:!1},e.mathItem=null,e}return i(e,t),e.prototype.visitTree=function(t,e,r){return void 0===e&&(e=null),void 0===r&&(r={}),this.mathItem=e,(0,s.userOptions)(this.options,r),this.visitNode(t,"")},e.prototype.visitTeXAtomNode=function(e,r){return this.options.texHints?t.prototype.visitDefault.call(this,e,r):e.childNodes[0]&&1===e.childNodes[0].childNodes.length?this.visitNode(e.childNodes[0],r):r+"<mrow"+this.getAttributes(e)+">\n"+this.childNodeMml(e,r+" ","\n")+r+"</mrow>"},e.prototype.visitMathNode=function(e,r){if(!this.options.semantics||"TeX"!==this.mathItem.inputJax.name)return t.prototype.visitDefault.call(this,e,r);var n=e.childNodes.length&&e.childNodes[0].childNodes.length>1;return r+"<math"+this.getAttributes(e)+">\n"+r+" <semantics>\n"+(n?r+" <mrow>\n":"")+this.childNodeMml(e,r+(n?" ":" "),"\n")+(n?r+" </mrow>\n":"")+r+' <annotation encoding="application/x-tex">'+this.mathItem.math+"</annotation>\n"+r+" </semantics>\n"+r+"</math>"},e}(o.SerializedMmlVisitor);e.MmlVisitor=a},5810:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.SelectableInfo=void 0;var o=r(9050),s=r(3639),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.addEvents=function(t){var e=this;t.addEventListener("keypress",(function(t){"a"===t.key&&(t.ctrlKey||t.metaKey)&&(e.selectAll(),e.stop(t))}))},e.prototype.selectAll=function(){document.getSelection().selectAllChildren(this.html.querySelector("pre"))},e.prototype.copyToClipboard=function(){this.selectAll();try{document.execCommand("copy")}catch(t){alert("Can't copy to clipboard: "+t.message)}document.getSelection().removeAllRanges()},e.prototype.generateHtml=function(){var e=this;t.prototype.generateHtml.call(this);var r=this.html.querySelector("span."+s.HtmlClasses.INFOSIGNATURE).appendChild(document.createElement("input"));r.type="button",r.value="Copy to Clipboard",r.addEventListener("click",(function(t){return e.copyToClipboard()}))},e}(o.Info);e.SelectableInfo=a},4096:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.asyncLoad=void 0;var n=r(3198);e.asyncLoad=function(t){return n.mathjax.asyncLoad?new Promise((function(e,r){var i=n.mathjax.asyncLoad(t);i instanceof Promise?i.then((function(t){return e(t)})).catch((function(t){return r(t)})):e(i)})):Promise.reject("Can't load '".concat(t,"': No asyncLoad method specified"))}},6152:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BBox=void 0;var n=r(7661),i=function(){function t(t){void 0===t&&(t={w:0,h:-n.BIGDIMEN,d:-n.BIGDIMEN}),this.w=t.w||0,this.h="h"in t?t.h:-n.BIGDIMEN,this.d="d"in t?t.d:-n.BIGDIMEN,this.L=this.R=this.ic=this.sk=this.dx=0,this.scale=this.rscale=1,this.pwidth=""}return t.zero=function(){return new t({h:0,d:0,w:0})},t.empty=function(){return new t},t.prototype.empty=function(){return this.w=0,this.h=this.d=-n.BIGDIMEN,this},t.prototype.clean=function(){this.w===-n.BIGDIMEN&&(this.w=0),this.h===-n.BIGDIMEN&&(this.h=0),this.d===-n.BIGDIMEN&&(this.d=0)},t.prototype.rescale=function(t){this.w*=t,this.h*=t,this.d*=t},t.prototype.combine=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0);var n=t.rscale,i=e+n*(t.w+t.L+t.R),o=r+n*t.h,s=n*t.d-r;i>this.w&&(this.w=i),o>this.h&&(this.h=o),s>this.d&&(this.d=s)},t.prototype.append=function(t){var 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)},t.prototype.updateFrom=function(t){this.h=t.h,this.d=t.d,this.w=t.w,t.pwidth&&(this.pwidth=t.pwidth)},t.prototype.copy=function(){var e=new t;return Object.assign(e,this),e},t.fullWidth="100%",t.boxSides=[["Top",0,"h"],["Right",1,"w"],["Bottom",2,"d"],["Left",3,"w"]],t}();e.BBox=i},7811:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},s=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.BitFieldClass=e.BitField=void 0;var a=function(){function t(){this.bits=0}return t.allocate=function(){for(var e,r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];try{for(var s=i(n),a=s.next();!a.done;a=s.next()){var l=a.value;if(this.has(l))throw new Error("Bit already allocated for "+l);if(this.next===t.MAXBIT)throw new Error("Maximum number of bits already allocated");this.names.set(l,this.next),this.next<<=1}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}},t.has=function(t){return this.names.has(t)},t.prototype.set=function(t){this.bits|=this.getBit(t)},t.prototype.clear=function(t){this.bits&=~this.getBit(t)},t.prototype.isSet=function(t){return!!(this.bits&this.getBit(t))},t.prototype.reset=function(){this.bits=0},t.prototype.getBit=function(t){var e=this.constructor.names.get(t);if(!e)throw new Error("Unknown bit-field name: "+t);return e},t.MAXBIT=1<<31,t.next=1,t.names=new Map,t}();e.BitField=a,e.BitFieldClass=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(a);return r.allocate.apply(r,s([],o(t),!1)),r}},6913:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numeric=e.translate=e.remove=e.add=e.entities=e.options=void 0;var n=r(8181),i=r(4096);e.options={loadMissingEntities:!0},e.entities={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"};var o={};function s(t,r){if("#"===r.charAt(0))return a(r.slice(1));if(e.entities[r])return e.entities[r];if(e.options.loadMissingEntities){var s=r.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:r.charAt(0).toLowerCase();o[s]||(o[s]=!0,(0,n.retryAfter)((0,i.asyncLoad)("./util/entities/"+s+".js")))}return t}function a(t){var e="x"===t.charAt(0)?parseInt(t.slice(1),16):parseInt(t);return String.fromCodePoint(e)}e.add=function(t,r){Object.assign(e.entities,t),o[r]=!0},e.remove=function(t){delete e.entities[t]},e.translate=function(t){return t.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/gi,s)},e.numeric=a},4005:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.FunctionList=void 0;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.execute=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var i=o(this),l=i.next();!l.done;l=i.next()){var c=l.value,u=c.item.apply(c,a([],s(r),!1));if(!1===u)return!1}}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return!0},e.prototype.asyncExecute=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=-1,n=this.items;return new Promise((function(e,i){!function o(){for(var l;++r<n.length;){var c=(l=n[r]).item.apply(l,a([],s(t),!1));if(c instanceof Promise)return void c.then(o).catch((function(t){return i(t)}));if(!1===c)return void e(!1)}e(!0)}()}))},e}(r(4372).PrioritizedList);e.FunctionList=l},8150:function(t,e){"use strict";var r=this&&this.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=e.ListItem=e.END=void 0,e.END=Symbol();var s=function(t){void 0===t&&(t=null),this.next=null,this.prev=null,this.data=t};e.ListItem=s;var a=function(){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.list=new s(e.END),this.list.next=this.list.prev=this.list,this.push.apply(this,i([],n(t),!1))}return t.prototype.isBefore=function(t,e){return t<e},t.prototype.push=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var i=o(r),a=i.next();!a.done;a=i.next()){var l=a.value,c=new s(l);c.next=this.list,c.prev=this.list.prev,this.list.prev=c,c.prev.next=c}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return this},t.prototype.pop=function(){var t=this.list.prev;return t.data===e.END?null:(this.list.prev=t.prev,t.prev.next=this.list,t.next=t.prev=null,t.data)},t.prototype.unshift=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var i=o(r.slice(0).reverse()),a=i.next();!a.done;a=i.next()){var l=a.value,c=new s(l);c.next=this.list.next,c.prev=this.list,this.list.next=c,c.next.prev=c}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return this},t.prototype.shift=function(){var t=this.list.next;return t.data===e.END?null:(this.list.next=t.next,t.next.prev=this.list,t.next=t.prev=null,t.data)},t.prototype.remove=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var s=new Map;try{for(var a=o(n),l=a.next();!l.done;l=a.next()){var c=l.value;s.set(c,!0)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}for(var u=this.list.next;u.data!==e.END;){var h=u.next;s.has(u.data)&&(u.prev.next=u.next,u.next.prev=u.prev,u.next=u.prev=null),u=h}},t.prototype.clear=function(){return this.list.next.prev=this.list.prev.next=null,this.list.next=this.list.prev=this.list,this},t.prototype[Symbol.iterator]=function(){var t;return r(this,(function(r){switch(r.label){case 0:t=this.list.next,r.label=1;case 1:return t.data===e.END?[3,3]:[4,t.data];case 2:return r.sent(),t=t.next,[3,1];case 3:return[2]}}))},t.prototype.reversed=function(){var t;return r(this,(function(r){switch(r.label){case 0:t=this.list.prev,r.label=1;case 1:return t.data===e.END?[3,3]:[4,t.data];case 2:return r.sent(),t=t.prev,[3,1];case 3:return[2]}}))},t.prototype.insert=function(t,r){void 0===r&&(r=null),null===r&&(r=this.isBefore.bind(this));for(var n=new s(t),i=this.list.next;i.data!==e.END&&r(i.data,n.data);)i=i.next;return n.prev=i.prev,n.next=i,i.prev.next=i.prev=n,this},t.prototype.sort=function(e){var r,n;void 0===e&&(e=null),null===e&&(e=this.isBefore.bind(this));var i=[];try{for(var s=o(this),a=s.next();!a.done;a=s.next()){var l=a.value;i.push(new t(l))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}for(this.list.next=this.list.prev=this.list;i.length>1;){var c=i.shift(),u=i.shift();c.merge(u,e),i.push(c)}return i.length&&(this.list=i[0].list),this},t.prototype.merge=function(t,r){var i,o,s,a,l;void 0===r&&(r=null),null===r&&(r=this.isBefore.bind(this));for(var c=this.list.next,u=t.list.next;c.data!==e.END&&u.data!==e.END;)r(u.data,c.data)?(i=n([c,u],2),u.prev.next=i[0],c.prev.next=i[1],o=n([c.prev,u.prev],2),u.prev=o[0],c.prev=o[1],s=n([t.list,this.list],2),this.list.prev.next=s[0],t.list.prev.next=s[1],a=n([t.list.prev,this.list.prev],2),this.list.prev=a[0],t.list.prev=a[1],c=(l=n([u.next,c],2))[0],u=l[1]):c=c.next;return u.data!==e.END&&(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},t}();e.LinkedList=a},7173:function(t,e){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.lookup=e.separateOptions=e.selectOptionsFromKeys=e.selectOptions=e.userOptions=e.defaultOptions=e.insert=e.copy=e.keys=e.makeArray=e.expandable=e.Expandable=e.OPTIONS=e.REMOVE=e.APPEND=e.isObject=void 0;var o={}.constructor;function s(t){return"object"==typeof t&&null!==t&&(t.constructor===o||t.constructor===a)}e.isObject=s,e.APPEND="[+]",e.REMOVE="[-]",e.OPTIONS={invalidOption:"warn",optionError:function(t,r){if("fatal"===e.OPTIONS.invalidOption)throw new Error(t);console.warn("MathJax: "+t)}};var a=function(){};function l(t){return Object.assign(Object.create(a.prototype),t)}function c(t){return t?Object.keys(t).concat(Object.getOwnPropertySymbols(t)):[]}function u(t){var e,n,i={};try{for(var o=r(c(t)),p=o.next();!p.done;p=o.next()){var d=p.value,f=Object.getOwnPropertyDescriptor(t,d),m=f.value;Array.isArray(m)?f.value=h([],m,!1):s(m)&&(f.value=u(m)),f.enumerable&&(i[d]=f)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return Object.defineProperties(t.constructor===a?l({}):{},i)}function h(t,o,l){var p,d;void 0===l&&(l=!0);var f=function(r){if(l&&void 0===t[r]&&t.constructor!==a)return"symbol"==typeof r&&(r=r.toString()),e.OPTIONS.optionError('Invalid option "'.concat(r,'" (no default value).'),r),"continue";var p=o[r],d=t[r];if(!s(p)||null===d||"object"!=typeof d&&"function"!=typeof d)Array.isArray(p)?(t[r]=[],h(t[r],p,!1)):s(p)?t[r]=u(p):t[r]=p;else{var f=c(p);Array.isArray(d)&&(1===f.length&&(f[0]===e.APPEND||f[0]===e.REMOVE)&&Array.isArray(p[f[0]])||2===f.length&&f.sort().join(",")===e.APPEND+","+e.REMOVE&&Array.isArray(p[e.APPEND])&&Array.isArray(p[e.REMOVE]))?(p[e.REMOVE]&&(d=t[r]=d.filter((function(t){return p[e.REMOVE].indexOf(t)<0}))),p[e.APPEND]&&(t[r]=i(i([],n(d),!1),n(p[e.APPEND]),!1))):h(d,p,l)}};try{for(var m=r(c(o)),y=m.next();!y.done;y=m.next()){f(y.value)}}catch(t){p={error:t}}finally{try{y&&!y.done&&(d=m.return)&&d.call(m)}finally{if(p)throw p.error}}return t}function p(t){for(var e,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var s={};try{for(var a=r(i),l=a.next();!l.done;l=a.next()){var c=l.value;t.hasOwnProperty(c)&&(s[c]=t[c])}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return s}e.Expandable=a,e.expandable=l,e.makeArray=function(t){return Array.isArray(t)?t:[t]},e.keys=c,e.copy=u,e.insert=h,e.defaultOptions=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.forEach((function(e){return h(t,e,!1)})),t},e.userOptions=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.forEach((function(e){return h(t,e,!0)})),t},e.selectOptions=p,e.selectOptionsFromKeys=function(t,e){return p.apply(void 0,i([t],n(Object.keys(e)),!1))},e.separateOptions=function(t){for(var e,n,i,o,s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];var l=[];try{for(var c=r(s),u=c.next();!u.done;u=c.next()){var h=u.value,p={},d={};try{for(var f=(i=void 0,r(Object.keys(t||{}))),m=f.next();!m.done;m=f.next()){var y=m.value;(void 0===h[y]?d:p)[y]=t[y]}}catch(t){i={error:t}}finally{try{m&&!m.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}l.push(p),t=d}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return l.unshift(t),l},e.lookup=function(t,e,r){return void 0===r&&(r=null),e.hasOwnProperty(t)?e[t]:r}},4372:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PrioritizedList=void 0;var r=function(){function t(){this.items=[],this.items=[]}return t.prototype[Symbol.iterator]=function(){var t=0,e=this.items;return{next:function(){return{value:e[t++],done:t>e.length}}}},t.prototype.add=function(e,r){void 0===r&&(r=t.DEFAULTPRIORITY);var n=this.items.length;do{n--}while(n>=0&&r<this.items[n].priority);return this.items.splice(n+1,0,{item:e,priority:r}),e},t.prototype.remove=function(t){var e=this.items.length;do{e--}while(e>=0&&this.items[e].item!==t);e>=0&&this.items.splice(e,1)},t.DEFAULTPRIORITY=5,t}();e.PrioritizedList=r},8181:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfter=e.handleRetriesFor=void 0,e.handleRetriesFor=function(t){return new Promise((function e(r,n){try{r(t())}catch(t){t.retry&&t.retry instanceof Promise?t.retry.then((function(){return e(r,n)})).catch((function(t){return n(t)})):t.restart&&t.restart.isCallback?MathJax.Callback.After((function(){return e(r,n)}),t.restart):n(t)}}))},e.retryAfter=function(t){var e=new Error("MathJax retry");throw e.retry=t,e}},6380:function(t,e){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CssStyles=void 0;var n=function(){function t(t){void 0===t&&(t=null),this.styles={},this.addStyles(t)}return Object.defineProperty(t.prototype,"cssText",{get:function(){return this.getStyleString()},enumerable:!1,configurable:!0}),t.prototype.addStyles=function(t){var e,n;if(t)try{for(var i=r(Object.keys(t)),o=i.next();!o.done;o=i.next()){var s=o.value;this.styles[s]||(this.styles[s]={}),Object.assign(this.styles[s],t[s])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},t.prototype.removeStyles=function(){for(var t,e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];try{for(var o=r(n),s=o.next();!s.done;s=o.next()){var a=s.value;delete this.styles[a]}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},t.prototype.clear=function(){this.styles={}},t.prototype.getStyleString=function(){return this.getStyleRules().join("\n\n")},t.prototype.getStyleRules=function(){var t,e,n=Object.keys(this.styles),i=new Array(n.length),o=0;try{for(var s=r(n),a=s.next();!a.done;a=s.next()){var l=a.value;i[o++]=l+" {\n"+this.getStyleDefString(this.styles[l])+"\n}"}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}return i},t.prototype.getStyleDefString=function(t){var e,n,i=Object.keys(t),o=new Array(i.length),s=0;try{for(var a=r(i),l=a.next();!l.done;l=a.next()){var c=l.value;o[s++]=" "+c+": "+t[c]+";"}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return o.join("\n")},t}();e.CssStyles=n},4747:function(t,e){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Styles=void 0;var o=["top","right","bottom","left"],s=["width","style","color"];function a(t){for(var e=t.split(/((?:'[^']*'|"[^"]*"|,[\s\n]|[^\s\n])*)/g),r=[];e.length>1;)e.shift(),r.push(e.shift());return r}function l(t){var e,n,i=a(this.styles[t]);0===i.length&&i.push(""),1===i.length&&i.push(i[0]),2===i.length&&i.push(i[0]),3===i.length&&i.push(i[1]);try{for(var o=r(v.connect[t].children),s=o.next();!s.done;s=o.next()){var l=s.value;this.setStyle(this.childName(t,l),i.shift())}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}function c(t){var e,n,i=v.connect[t].children,o=[];try{for(var s=r(i),a=s.next();!a.done;a=s.next()){var l=a.value,c=this.styles[t+"-"+l];if(!c)return void delete this.styles[t];o.push(c)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}o[3]===o[1]&&(o.pop(),o[2]===o[0]&&(o.pop(),o[1]===o[0]&&o.pop())),this.styles[t]=o.join(" ")}function u(t){var e,n;try{for(var i=r(v.connect[t].children),o=i.next();!o.done;o=i.next()){var s=o.value;this.setStyle(this.childName(t,s),this.styles[t])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}function h(t){var e,o,s=i([],n(v.connect[t].children),!1),a=this.styles[this.childName(t,s.shift())];try{for(var l=r(s),c=l.next();!c.done;c=l.next()){var u=c.value;if(this.styles[this.childName(t,u)]!==a)return void delete this.styles[t]}}catch(t){e={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(e)throw e.error}}this.styles[t]=a}var p=/^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,d=/^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/;function f(t){var e,n,i,o,s={width:"",style:"",color:""};try{for(var l=r(a(this.styles[t])),c=l.next();!c.done;c=l.next()){var u=c.value;u.match(p)&&""===s.width?s.width=u:u.match(d)&&""===s.style?s.style=u:s.color=u}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}try{for(var h=r(v.connect[t].children),f=h.next();!f.done;f=h.next()){var m=f.value;this.setStyle(this.childName(t,m),s[m])}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}}function m(t){var e,n,i=[];try{for(var o=r(v.connect[t].children),s=o.next();!s.done;s=o.next()){var a=s.value,l=this.styles[this.childName(t,a)];l&&i.push(l)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}i.length?this.styles[t]=i.join(" "):delete this.styles[t]}var y={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","(?:(?:semi|extra|ulta)-)?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 g(t){var e,i,o,s,l=a(this.styles[t]),c={style:"",variant:[],weight:"",stretch:"",size:"",family:"","line-height":""};try{for(var u=r(l),h=u.next();!h.done;h=u.next()){var p=h.value;c.family=p;try{for(var d=(o=void 0,r(Object.keys(y))),f=d.next();!f.done;f=d.next()){var m=f.value;if((Array.isArray(c[m])||""===c[m])&&p.match(y[m]))if("size"===m){var g=n(p.split(/\//),2),b=g[0],M=g[1];c[m]=b,M&&(c["line-height"]=M)}else""===c.size&&(Array.isArray(c[m])?c[m].push(p):c[m]=p)}}catch(t){o={error:t}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(o)throw o.error}}}}catch(t){e={error:t}}finally{try{h&&!h.done&&(i=u.return)&&i.call(u)}finally{if(e)throw e.error}}!function(t,e){var n,i;try{for(var o=r(v.connect[t].children),s=o.next();!s.done;s=o.next()){var a=s.value,l=this.childName(t,a);if(Array.isArray(e[a])){var c=e[a];c.length&&(this.styles[l]=c.join(" "))}else""!==e[a]&&(this.styles[l]=e[a])}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}(t,c),delete this.styles[t]}function b(t){}var v=function(){function t(t){void 0===t&&(t=""),this.parse(t)}return Object.defineProperty(t.prototype,"cssText",{get:function(){var t,e,n=[];try{for(var i=r(Object.keys(this.styles)),o=i.next();!o.done;o=i.next()){var s=o.value,a=this.parentName(s);this.styles[a]||n.push(s+": "+this.styles[s]+";")}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return n.join(" ")},enumerable:!1,configurable:!0}),t.prototype.set=function(e,r){for(e=this.normalizeName(e),this.setStyle(e,r),t.connect[e]&&!t.connect[e].combine&&(this.combineChildren(e),delete this.styles[e]);e.match(/-/)&&(e=this.parentName(e),t.connect[e]);)t.connect[e].combine.call(this,e)},t.prototype.get=function(t){return t=this.normalizeName(t),this.styles.hasOwnProperty(t)?this.styles[t]:""},t.prototype.setStyle=function(e,r){this.styles[e]=r,t.connect[e]&&t.connect[e].children&&t.connect[e].split.call(this,e),""===r&&delete this.styles[e]},t.prototype.combineChildren=function(e){var n,i,o=this.parentName(e);try{for(var s=r(t.connect[e].children),a=s.next();!a.done;a=s.next()){var l=a.value,c=this.childName(o,l);t.connect[c].combine.call(this,c)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},t.prototype.parentName=function(t){var e=t.replace(/-[^-]*$/,"");return t===e?"":e},t.prototype.childName=function(e,r){return r.match(/-/)?r:(t.connect[e]&&!t.connect[e].combine&&(r+=e.replace(/.*-/,"-"),e=this.parentName(e)),e+"-"+r)},t.prototype.normalizeName=function(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))},t.prototype.parse=function(t){void 0===t&&(t="");var e=this.constructor.pattern;this.styles={};for(var r=t.replace(e.comment,"").split(e.style);r.length>1;){var i=n(r.splice(0,3),3),o=i[0],s=i[1],a=i[2];if(o.match(/[^\s\n]/))return;this.set(s,a)}},t.pattern={style:/([-a-z]+)[\s\n]*:[\s\n]*((?:'[^']*'|"[^"]*"|\n|.)*?)[\s\n]*(?:;|$)/g,comment:/\/\*[^]*?\*\//g},t.connect={padding:{children:o,split:l,combine:c},border:{children:o,split:u,combine:h},"border-top":{children:s,split:f,combine:m},"border-right":{children:s,split:f,combine:m},"border-bottom":{children:s,split:f,combine:m},"border-left":{children:s,split:f,combine:m},"border-width":{children:o,split:l,combine:null},"border-style":{children:o,split:l,combine:null},"border-color":{children:o,split:l,combine:null},font:{children:["style","variant","weight","stretch","line-height","size","family"],split:g,combine:b}},t}();e.Styles=v},7661:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.px=e.emRounded=e.em=e.percent=e.length2em=e.MATHSPACE=e.RELUNITS=e.UNITS=e.BIGDIMEN=void 0,e.BIGDIMEN=1e6,e.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4},e.RELUNITS={em:1,ex:.431,pt:.1,pc:1.2,mu:1/18},e.MATHSPACE={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:e.BIGDIMEN},e.length2em=function(t,r,n,i){if(void 0===r&&(r=0),void 0===n&&(n=1),void 0===i&&(i=16),"string"!=typeof t&&(t=String(t)),""===t||null==t)return r;if(e.MATHSPACE[t])return e.MATHSPACE[t];var o=t.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!o)return r;var s=parseFloat(o[1]||"1"),a=o[2];return e.UNITS.hasOwnProperty(a)?s*e.UNITS[a]/i/n:e.RELUNITS.hasOwnProperty(a)?s*e.RELUNITS[a]:"%"===a?s/100*r:s*r},e.percent=function(t){return(100*t).toFixed(1).replace(/\.?0+$/,"")+"%"},e.em=function(t){return Math.abs(t)<.001?"0":t.toFixed(3).replace(/\.?0+$/,"")+"em"},e.emRounded=function(t,e){return void 0===e&&(e=16),t=(Math.round(t*e)+.05)/e,Math.abs(t)<.001?"0em":t.toFixed(3).replace(/\.?0+$/,"")+"em"},e.px=function(t,r,n){return void 0===r&&(r=-e.BIGDIMEN),void 0===n&&(n=16),t*=n,r&&t<r&&(t=r),Math.abs(t)<.1?"0":t.toFixed(1).replace(/\.0$/,"")+"px"}},6560:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.max=e.sum=void 0,e.sum=function(t){return t.reduce((function(t,e){return t+e}),0)},e.max=function(t){return t.reduce((function(t,e){return Math.max(t,e)}),0)}},6707:function(t,e){"use strict";var r=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},n=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.split=e.isPercent=e.unicodeString=e.unicodeChars=e.quotePattern=e.sortLength=void 0,e.sortLength=function(t,e){return t.length!==e.length?e.length-t.length:t===e?0:t<e?-1:1},e.quotePattern=function(t){return t.replace(/([\^$(){}+*?\-|\[\]\:\\])/g,"\\$1")},e.unicodeChars=function(t){return Array.from(t).map((function(t){return t.codePointAt(0)}))},e.unicodeString=function(t){return String.fromCodePoint.apply(String,n([],r(t),!1))},e.isPercent=function(t){return!!t.match(/%\s*$/)},e.split=function(t){return t.trim().split(/\s+/)}},8985:function(t,e,r){"use strict";r.d(e,{$:function(){return a}});var n,i=r(9992),o=r(3639),s=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=function(t){function e(e,r){var n=t.call(this)||this;return n._menu=e,n._type=r,n.className=o.HtmlClasses.MENUITEM,n.role="menuitem",n.hidden=!1,n}return s(e,t),Object.defineProperty(e.prototype,"menu",{get:function(){return this._menu},set:function(t){this._menu=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.hide=function(){this.hidden=!0,this.menu.generateMenu()},e.prototype.show=function(){this.hidden=!1,this.menu.generateMenu()},e.prototype.isHidden=function(){return this.hidden},e}(i.F)},3212:function(t,e,r){"use strict";r.d(e,{t:function(){return c}});var n,i=r(8985),o=r(7166),s=r(3639),a=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),l=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},c=function(t){function e(e,r,n,i){var o=t.call(this,e,r)||this;return o._content=n,o.disabled=!1,o.callbacks=[],o._id=i||n,o}return a(e,t),Object.defineProperty(e.prototype,"content",{get:function(){return this._content},set:function(t){this._content=t,this.generateHtml(),this.menu&&this.menu.generateHtml()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.press=function(){this.disabled||(this.executeAction(),this.executeCallbacks_())},e.prototype.executeAction=function(){},e.prototype.registerCallback=function(t){-1===this.callbacks.indexOf(t)&&this.callbacks.push(t)},e.prototype.unregisterCallback=function(t){var e=this.callbacks.indexOf(t);-1!==e&&this.callbacks.splice(e,1)},e.prototype.mousedown=function(t){this.press(),this.stop(t)},e.prototype.mouseover=function(t){this.focus(),this.stop(t)},e.prototype.mouseout=function(t){this.deactivate(),this.stop(t)},e.prototype.generateHtml=function(){t.prototype.generateHtml.call(this);var e=this.html;e.setAttribute("aria-disabled","false"),e.textContent=this.content},e.prototype.activate=function(){this.disabled||this.html.classList.add(s.HtmlClasses.MENUACTIVE)},e.prototype.deactivate=function(){this.html.classList.remove(s.HtmlClasses.MENUACTIVE)},e.prototype.focus=function(){this.menu.focused=this,t.prototype.focus.call(this),this.activate()},e.prototype.unfocus=function(){this.deactivate(),t.prototype.unfocus.call(this)},e.prototype.escape=function(t){o.O.close(this)},e.prototype.up=function(t){this.menu.up(t)},e.prototype.down=function(t){this.menu.down(t)},e.prototype.left=function(t){this.menu.left(t)},e.prototype.right=function(t){this.menu.right(t)},e.prototype.space=function(t){this.press()},e.prototype.disable=function(){this.disabled=!0;var t=this.html;t.classList.add(s.HtmlClasses.MENUDISABLED),t.setAttribute("aria-disabled","true")},e.prototype.enable=function(){this.disabled=!1;var t=this.html;t.classList.remove(s.HtmlClasses.MENUDISABLED),t.removeAttribute("aria-disabled")},e.prototype.executeCallbacks_=function(){var t,e;try{for(var r=l(this.callbacks),n=r.next();!n.done;n=r.next()){var i=n.value;try{i(this)}catch(t){o.O.error(t,"Callback for menu entry "+this.id+" failed.")}}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},e}(i.$)},6780:function(t,e,r){"use strict";r.d(e,{W:function(){return u}});var n,i=r(1982),o=r(3212),s=r(3639),a=r(9086),l=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.className=s.HtmlClasses.CONTEXTMENU,e.role="menu",e._items=[],e._baseMenu=null,e}return l(e,t),Object.defineProperty(e.prototype,"baseMenu",{get:function(){return this._baseMenu},set:function(t){this._baseMenu=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._items},set:function(t){this._items=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pool",{get:function(){return this.variablePool},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this._focused},set:function(t){if(this._focused!==t){this._focused||this.unfocus();var e=this._focused;this._focused=t,e&&e.unfocus()}},enumerable:!1,configurable:!0}),e.prototype.up=function(t){var e=this.items.filter((function(t){return t instanceof o.t&&!t.isHidden()}));if(0!==e.length)if(this.focused){var r=e.indexOf(this.focused);-1!==r&&e[r=r?--r:e.length-1].focus()}else e[e.length-1].focus()},e.prototype.down=function(t){var e=this.items.filter((function(t){return t instanceof o.t&&!t.isHidden()}));if(0!==e.length)if(this.focused){var r=e.indexOf(this.focused);-1!==r&&e[r=++r===e.length?0:r].focus()}else e[0].focus()},e.prototype.generateHtml=function(){t.prototype.generateHtml.call(this),this.generateMenu()},e.prototype.generateMenu=function(){var t,e,r=this.html;r.classList.add(s.HtmlClasses.MENU);try{for(var n=c(this.items),i=n.next();!i.done;i=n.next()){var o=i.value;if(o.isHidden()){var a=o.html;a.parentNode&&a.parentNode.removeChild(a)}else r.appendChild(o.html)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},e.prototype.post=function(e,r){this.variablePool.update(),t.prototype.post.call(this,e,r)},e.prototype.unpostSubmenus=function(){var t,e,r=this.items.filter((function(t){return t instanceof a.Submenu}));try{for(var n=c(r),i=n.next();!i.done;i=n.next()){var o=i.value;o.submenu.unpost(),o!==this.focused&&o.unfocus()}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},e.prototype.unpost=function(){t.prototype.unpost.call(this),this.unpostSubmenus(),this.focused=null},e.prototype.find=function(t){var e,r;try{for(var n=c(this.items),i=n.next();!i.done;i=n.next()){var o=i.value;if("rule"!==o.type){if(o.id===t)return o;if("submenu"===o.type){var s=o.submenu.find(t);if(s)return s}}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return null},e}(i.u)},1982:function(t,e,r){"use strict";r.d(e,{u:function(){return s}});var n,i=r(9992),o=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.posted=!1,e}return o(e,t),e.prototype.isPosted=function(){return this.posted},e.prototype.post=function(t,e){this.posted||(void 0!==t&&void 0!==e&&this.html.setAttribute("style","left: "+t+"px; top: "+e+"px;"),this.display(),this.posted=!0)},e.prototype.unpost=function(){if(this.posted){var t=this.html;t.parentNode&&t.parentNode.removeChild(t),this.posted=!1}},e}(i.F)},6207:function(t,e,r){"use strict";r.r(e),r.d(e,{ContextMenu:function(){return p}});var n,i=r(6780),o=r(3639),s=r(7166),a=r(8812),l=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},c=function(){function t(t){this.menu=t,this.store=[],this._active=null,this.counter=0,this.attachedClass=o.HtmlClasses.ATTACHED+"_"+s.O.counter(),this.taborder=!0,this.attrMap={}}return Object.defineProperty(t.prototype,"active",{get:function(){return this._active},set:function(t){do{if(-1!==this.store.indexOf(t)){this._active=t;break}t=t.parentNode}while(t)},enumerable:!1,configurable:!0}),t.prototype.next=function(){var t=this.store.length;if(0===t)return this.active=null,null;var e=this.store.indexOf(this.active);return e=-1===e?0:e<t-1?e+1:0,this.active=this.store[e],this.active},t.prototype.previous=function(){var t=this.store.length;if(0===t)return this.active=null,null;var e=t-1,r=this.store.indexOf(this.active);return r=-1===r||0===r?e:r-1,this.active=this.store[r],this.active},t.prototype.clear=function(){this.remove(this.store)},t.prototype.insert=function(t){var e,r,n=t instanceof HTMLElement?[t]:t;try{for(var i=l(n),o=i.next();!o.done;o=i.next()){var s=o.value;this.insertElement(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}this.sort()},t.prototype.remove=function(t){var e,r,n=t instanceof HTMLElement?[t]:t;try{for(var i=l(n),o=i.next();!o.done;o=i.next()){var s=o.value;this.removeElement(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}this.sort()},t.prototype.inTaborder=function(t){this.taborder&&!t&&this.removeTaborder(),!this.taborder&&t&&this.insertTaborder(),this.taborder=t},t.prototype.insertTaborder=function(){this.taborder&&this.insertTaborder_()},t.prototype.removeTaborder=function(){this.taborder&&this.removeTaborder_()},t.prototype.insertElement=function(t){t.classList.contains(this.attachedClass)||(t.classList.add(this.attachedClass),this.taborder&&this.addTabindex(t),this.addEvents(t))},t.prototype.removeElement=function(t){t.classList.contains(this.attachedClass)&&(t.classList.remove(this.attachedClass),this.taborder&&this.removeTabindex(t),this.removeEvents(t))},t.prototype.sort=function(){var t=document.getElementsByClassName(this.attachedClass);this.store=[].slice.call(t)},t.prototype.insertTaborder_=function(){this.store.forEach((function(t){return t.setAttribute("tabindex","0")}))},t.prototype.removeTaborder_=function(){this.store.forEach((function(t){return t.setAttribute("tabindex","-1")}))},t.prototype.addTabindex=function(t){t.hasAttribute("tabindex")&&t.setAttribute(o.HtmlAttrs.OLDTAB,t.getAttribute("tabindex")),t.setAttribute("tabindex","0")},t.prototype.removeTabindex=function(t){t.hasAttribute(o.HtmlAttrs.OLDTAB)?(t.setAttribute("tabindex",t.getAttribute(o.HtmlAttrs.OLDTAB)),t.removeAttribute(o.HtmlAttrs.OLDTAB)):t.removeAttribute("tabindex")},t.prototype.addEvents=function(t){t.hasAttribute(o.HtmlAttrs.COUNTER)||(this.addEvent(t,"contextmenu",this.menu.post.bind(this.menu)),this.addEvent(t,"keydown",this.keydown.bind(this)),t.setAttribute(o.HtmlAttrs.COUNTER,this.counter.toString()),this.counter++)},t.prototype.addEvent=function(t,e,r){var n=o.HtmlAttrs[e.toUpperCase()+"FUNC"];this.attrMap[n+this.counter]=r,t.addEventListener(e,r)},t.prototype.removeEvents=function(t){if(t.hasAttribute(o.HtmlAttrs.COUNTER)){var e=t.getAttribute(o.HtmlAttrs.COUNTER);this.removeEvent(t,"contextmenu",e),this.removeEvent(t,"keydown",e),t.removeAttribute(o.HtmlAttrs.COUNTER)}},t.prototype.removeEvent=function(t,e,r){var n=o.HtmlAttrs[e.toUpperCase()+"FUNC"],i=this.attrMap[n+r];t.removeEventListener(e,i)},t.prototype.keydown=function(t){t.keyCode===a.F.SPACE&&(this.menu.post(t),t.preventDefault(),t.stopImmediatePropagation())},t}(),u=function(){function t(){this.pool={}}return t.prototype.insert=function(t){this.pool[t.name]=t},t.prototype.lookup=function(t){return this.pool[t]},t.prototype.remove=function(t){delete this.pool[t]},t.prototype.update=function(){for(var t in this.pool)this.pool[t].update()},t}(),h=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=function(t){function e(e){var r=t.call(this)||this;return r.factory=e,r.id="",r.moving=!1,r._store=new c(r),r.widgets=[],r.variablePool=new u,r}return h(e,t),e.fromJson=function(t,e){var r=e.pool,n=e.items,i=e.id,o=void 0===i?"":i,s=new this(t);s.id=o;var a=t.get("variable");r.forEach((function(e){return a(t,e,s.pool)}));var l=t.get("items")(t,n,s);return s.items=l,s},e.prototype.generateHtml=function(){this.isPosted()&&this.unpost(),t.prototype.generateHtml.call(this),this._frame=document.createElement("div"),this._frame.classList.add(o.HtmlClasses.MENUFRAME);var e="left: 0px; top: 0px; z-index: 200; width: 100%; height: 100%; border: 0px; padding: 0px; margin: 0px;";this._frame.setAttribute("style","position: absolute; "+e);var r=document.createElement("div");r.setAttribute("style","position: fixed; "+e),this._frame.appendChild(r),r.addEventListener("mousedown",function(t){this.unpost(),this.unpostWidgets(),this.stop(t)}.bind(this))},e.prototype.display=function(){document.body.appendChild(this.frame),this.frame.appendChild(this.html),this.focus()},e.prototype.escape=function(t){this.unpost(),this.unpostWidgets()},e.prototype.unpost=function(){if(t.prototype.unpost.call(this),!(this.widgets.length>0)){this.frame.parentNode.removeChild(this.frame);var e=this.store;this.moving||e.insertTaborder(),e.active.focus()}},e.prototype.left=function(t){this.move_(this.store.previous())},e.prototype.right=function(t){this.move_(this.store.next())},Object.defineProperty(e.prototype,"frame",{get:function(){return this._frame},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"store",{get:function(){return this._store},enumerable:!1,configurable:!0}),e.prototype.post=function(e,r){if(void 0!==r)return this.moving||this.store.removeTaborder(),void t.prototype.post.call(this,e,r);var n,i,o,s=e;if(s instanceof Event?(n=s.target,this.stop(s)):n=s,s instanceof MouseEvent&&(i=s.pageX,o=s.pageY,i||o||!s.clientX||(i=s.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,o=s.clientY+document.body.scrollTop+document.documentElement.scrollTop)),!i&&!o&&n){var a=window.pageXOffset||document.documentElement.scrollLeft,l=window.pageYOffset||document.documentElement.scrollTop,c=n.getBoundingClientRect();i=(c.right+c.left)/2+a,o=(c.bottom+c.top)/2+l}this.store.active=n,this.anchor=this.store.active;var u=this.html;i+u.offsetWidth>document.body.offsetWidth-5&&(i=document.body.offsetWidth-u.offsetWidth-5),this.post(i,o)},e.prototype.registerWidget=function(t){this.widgets.push(t)},e.prototype.unregisterWidget=function(t){var e=this.widgets.indexOf(t);e>-1&&this.widgets.splice(e,1),0===this.widgets.length&&this.unpost()},e.prototype.unpostWidgets=function(){this.widgets.forEach((function(t){return t.unpost()}))},e.prototype.toJson=function(){return{type:""}},e.prototype.move_=function(t){this.anchor&&t!==this.anchor&&(this.moving=!0,this.unpost(),this.post(t),this.moving=!1)},e}(i.W)},3907:function(t,e,r){"use strict";r.r(e),r.d(e,{CssStyles:function(){return n}});var n,i=r(3639);!function(t){function e(t){return"."+(i.HtmlClasses[t]||t)}var r={};r[e("INFOCLOSE")]="{ top:.2em; right:.2em;}",r[e("INFOCONTENT")]="{ overflow:auto; text-align:left; font-size:80%; padding:.4em .6em; border:1px inset; margin:1em 0px; max-height:20em; max-width:30em; background-color:#EEEEEE; white-space:normal;}",r[e("INFO")+e("MOUSEPOST")]="{outline:none;}",r[e("INFO")]='{ position:fixed; left:50%; width:auto; text-align:center; border:3px outset; padding:1em 2em; background-color:#DDDDDD; color:black; cursor:default; font-family:message-box; font-size:120%; font-style:normal; text-indent:0; text-transform:none; line-height:normal; letter-spacing:normal; word-spacing:normal; word-wrap:normal; white-space:nowrap; float:none; z-index:201; border-radius: 15px; /* Opera 10.5 and IE9 */ -webkit-border-radius:15px; /* Safari and Chrome */ -moz-border-radius:15px; /* Firefox */ -khtml-border-radius:15px; /* Konqueror */ box-shadow:0px 10px 20px #808080; /* Opera 10.5 and IE9 */ -webkit-box-shadow:0px 10px 20px #808080; /* Safari 3 & Chrome */ -moz-box-shadow:0px 10px 20px #808080; /* Forefox 3.5 */ -khtml-box-shadow:0px 10px 20px #808080; /* Konqueror */ filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color="gray", Positive="true"); /* IE */}';var n={};n[e("MENU")]="{ position:absolute; background-color:white; color:black; width:auto; padding:5px 0px; border:1px solid #CCCCCC; margin:0; cursor:default; font: menu; text-align:left; text-indent:0; text-transform:none; line-height:normal; letter-spacing:normal; word-spacing:normal; word-wrap:normal; white-space:nowrap; float:none; z-index:201; border-radius: 5px; /* Opera 10.5 and IE9 */ -webkit-border-radius: 5px; /* Safari and Chrome */ -moz-border-radius: 5px; /* Firefox */ -khtml-border-radius: 5px; /* Konqueror */ box-shadow:0px 10px 20px #808080; /* Opera 10.5 and IE9 */ -webkit-box-shadow:0px 10px 20px #808080; /* Safari 3 & Chrome */ -moz-box-shadow:0px 10px 20px #808080; /* Forefox 3.5 */ -khtml-box-shadow:0px 10px 20px #808080; /* Konqueror */}",n[e("MENUITEM")]="{ padding: 1px 2em; background:transparent;}",n[e("MENUARROW")]="{ position:absolute; right:.5em; padding-top:.25em; color:#666666; font-family: null; font-size: .75em}",n[e("MENUACTIVE")+" "+e("MENUARROW")]="{color:white}",n[e("MENUARROW")+e("RTL")]="{left:.5em; right:auto}",n[e("MENUCHECK")]="{ position:absolute; left:.7em; font-family: null}",n[e("MENUCHECK")+e("RTL")]="{ right:.7em; left:auto }",n[e("MENURADIOCHECK")]="{ position:absolute; left: .7em;}",n[e("MENURADIOCHECK")+e("RTL")]="{ right: .7em; left:auto}",n[e("MENUINPUTBOX")]="{ padding-left: 1em; right:.5em; color:#666666; font-family: null;}",n[e("MENUINPUTBOX")+e("RTL")]="{ left: .1em;}",n[e("MENUCOMBOBOX")]="{ left:.1em; padding-bottom:.5em;}",n[e("MENUSLIDER")]="{ left: .1em;}",n[e("SLIDERVALUE")]="{ position:absolute; right:.1em; padding-top:.25em; color:#333333; font-size: .75em}",n[e("SLIDERBAR")]="{ outline: none; background: #d3d3d3}",n[e("MENULABEL")]="{ padding: 1px 2em 3px 1.33em; font-style:italic}",n[e("MENURULE")]="{ border-top: 1px solid #DDDDDD; margin: 4px 3px;}",n[e("MENUDISABLED")]="{ color:GrayText}",n[e("MENUACTIVE")]="{ background-color: #606872; color: white;}",n[e("MENUDISABLED")+":focus"]="{ background-color: #E8E8E8}",n[e("MENULABEL")+":focus"]="{ background-color: #E8E8E8}",n[e("CONTEXTMENU")+":focus"]="{ outline:none}",n[e("CONTEXTMENU")+" "+e("MENUITEM")+":focus"]="{ outline:none}",n[e("SELECTIONMENU")]="{ position:relative; float:left; border-bottom: none; -webkit-box-shadow:none; -webkit-border-radius:0px; }",n[e("SELECTIONITEM")]="{ padding-right: 1em;}",n[e("SELECTION")]="{ right: 40%; width:50%; }",n[e("SELECTIONBOX")]="{ padding: 0em; max-height:20em; max-width: none; background-color:#FFFFFF;}",n[e("SELECTIONDIVIDER")]="{ clear: both; border-top: 2px solid #000000;}",n[e("MENU")+" "+e("MENUCLOSE")]="{ top:-10px; left:-10px}";var o={};o[e("MENUCLOSE")]='{ position:absolute; cursor:pointer; display:inline-block; border:2px solid #AAA; border-radius:18px; -webkit-border-radius: 18px; /* Safari and Chrome */ -moz-border-radius: 18px; /* Firefox */ -khtml-border-radius: 18px; /* Konqueror */ font-family: "Courier New", Courier; font-size:24px; color:#F0F0F0}',o[e("MENUCLOSE")+" span"]="{ display:block; background-color:#AAA; border:1.5px solid; border-radius:18px; -webkit-border-radius: 18px; /* Safari and Chrome */ -moz-border-radius: 18px; /* Firefox */ -khtml-border-radius: 18px; /* Konqueror */ line-height:0; padding:8px 0 6px /* may need to be browser-specific */}",o[e("MENUCLOSE")+":hover"]="{ color:white!important; border:2px solid #CCC!important}",o[e("MENUCLOSE")+":hover span"]="{ background-color:#CCC!important}",o[e("MENUCLOSE")+":hover:focus"]="{ outline:none}";var s=!1,a=!1,l=!1;function c(t){l||(u(o,t),l=!0)}function u(t,e){var r=e||document,n=r.createElement("style");n.type="text/css";var i="";for(var o in t)i+=o,i+=" ",i+=t[o],i+="\n";n.innerHTML=i,r.head.appendChild(n)}t.addMenuStyles=function(t){a||(u(n,t),a=!0,c(t))},t.addInfoStyles=function(t){s||(u(r,t),s=!0,c(t))}}(n||(n={}))},3639:function(t,e,r){"use strict";r.r(e),r.d(e,{HtmlClasses:function(){return s},HtmlAttrs:function(){return a}});function n(t){return"CtxtMenu_"+t}function i(t){return n(t)}function o(t){return n(t)}var s={ATTACHED:i("Attached"),CONTEXTMENU:i("ContextMenu"),MENU:i("Menu"),MENUARROW:i("MenuArrow"),MENUACTIVE:i("MenuActive"),MENUCHECK:i("MenuCheck"),MENUCLOSE:i("MenuClose"),MENUCOMBOBOX:i("MenuComboBox"),MENUDISABLED:i("MenuDisabled"),MENUFRAME:i("MenuFrame"),MENUITEM:i("MenuItem"),MENULABEL:i("MenuLabel"),MENURADIOCHECK:i("MenuRadioCheck"),MENUINPUTBOX:i("MenuInputBox"),MENURULE:i("MenuRule"),MENUSLIDER:i("MenuSlider"),MOUSEPOST:i("MousePost"),RTL:i("RTL"),INFO:i("Info"),INFOCLOSE:i("InfoClose"),INFOCONTENT:i("InfoContent"),INFOSIGNATURE:i("InfoSignature"),INFOTITLE:i("InfoTitle"),SLIDERVALUE:i("SliderValue"),SLIDERBAR:i("SliderBar"),SELECTION:i("Selection"),SELECTIONBOX:i("SelectionBox"),SELECTIONMENU:i("SelectionMenu"),SELECTIONDIVIDER:i("SelectionDivider"),SELECTIONITEM:i("SelectionItem")},a={COUNTER:o("Counter"),KEYDOWNFUNC:o("keydownFunc"),CONTEXTMENUFUNC:o("contextmenuFunc"),OLDTAB:o("Oldtabindex"),TOUCHFUNC:o("TouchFunc")}},9050:function(t,e,r){"use strict";r.r(e),r.d(e,{Info:function(){return c}});var n,i=r(1982),o=r(3639),s=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=function(t){function e(e){var r=t.call(this)||this;return r.element=e,r.className=o.HtmlClasses.MENUCLOSE,r.role="button",r}return s(e,t),e.prototype.generateHtml=function(){var t=document.createElement("span");t.classList.add(this.className),t.setAttribute("role",this.role),t.setAttribute("tabindex","0");var e=document.createElement("span");e.textContent="\xd7",t.appendChild(e),this.html=t},e.prototype.display=function(){},e.prototype.unpost=function(){t.prototype.unpost.call(this),this.element.unpost()},e.prototype.keydown=function(e){this.bubbleKey(),t.prototype.keydown.call(this,e)},e.prototype.space=function(t){this.unpost(),this.stop(t)},e.prototype.mousedown=function(t){this.unpost(),this.stop(t)},e}(i.u),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(t){function e(e,r,n){var i=t.call(this)||this;return i.title=e,i.signature=n,i.className=o.HtmlClasses.INFO,i.role="dialog",i.contentDiv=i.generateContent(),i.close=i.generateClose(),i.content=r||function(){return""},i}return l(e,t),e.prototype.attachMenu=function(t){this.menu=t},e.prototype.generateHtml=function(){t.prototype.generateHtml.call(this);var e=this.html;e.appendChild(this.generateTitle()),e.appendChild(this.contentDiv),e.appendChild(this.generateSignature()),e.appendChild(this.close.html),e.setAttribute("tabindex","0")},e.prototype.post=function(){t.prototype.post.call(this);var e=document.documentElement,r=this.html,n=window.innerHeight||e.clientHeight||e.scrollHeight||0,i=Math.floor(-r.offsetWidth/2),s=Math.floor((n-r.offsetHeight)/3);r.setAttribute("style","margin-left: "+i+"px; top: "+s+"px;"),window.event instanceof MouseEvent&&r.classList.add(o.HtmlClasses.MOUSEPOST),r.focus()},e.prototype.display=function(){this.menu.registerWidget(this),this.contentDiv.innerHTML=this.content();var t=this.menu.html;t.parentNode&&t.parentNode.removeChild(t),this.menu.frame.appendChild(this.html)},e.prototype.click=function(t){},e.prototype.keydown=function(e){this.bubbleKey(),t.prototype.keydown.call(this,e)},e.prototype.escape=function(t){this.unpost()},e.prototype.unpost=function(){t.prototype.unpost.call(this),this.html.classList.remove(o.HtmlClasses.MOUSEPOST),this.menu.unregisterWidget(this)},e.prototype.generateClose=function(){var t=new a(this),e=t.html;return e.classList.add(o.HtmlClasses.INFOCLOSE),e.setAttribute("aria-label","Close Dialog Box"),t},e.prototype.generateTitle=function(){var t=document.createElement("span");return t.innerHTML=this.title,t.classList.add(o.HtmlClasses.INFOTITLE),t},e.prototype.generateContent=function(){var t=document.createElement("div");return t.classList.add(o.HtmlClasses.INFOCONTENT),t.setAttribute("tabindex","0"),t},e.prototype.generateSignature=function(){var t=document.createElement("span");return t.innerHTML=this.signature,t.classList.add(o.HtmlClasses.INFOSIGNATURE),t},e.prototype.toJson=function(){return{type:""}},e}(i.u)},968:function(t,e,r){"use strict";r.r(e),r.d(e,{Rule:function(){return a}});var n,i=r(8985),o=r(3639),s=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=function(t){function e(e){var r=t.call(this,e,"rule")||this;return r.className=o.HtmlClasses.MENUITEM,r.role="separator",r}return s(e,t),e.fromJson=function(t,e,r){return new this(r)},e.prototype.generateHtml=function(){t.prototype.generateHtml.call(this);var e=this.html;e.classList.add(o.HtmlClasses.MENURULE),e.setAttribute("aria-orientation","vertical")},e.prototype.addEvents=function(t){},e.prototype.toJson=function(){return{type:"rule"}},e}(i.$)},9086:function(t,e,r){"use strict";r.r(e),r.d(e,{Submenu:function(){return a}});var n,i=r(3212),o=r(3639),s=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=function(t){function e(e,r,n){var i=t.call(this,e,"submenu",r,n)||this;return i._submenu=null,i}return s(e,t),e.fromJson=function(t,e,r){var n=e.content,i=e.menu,o=new this(r,n,e.id),s=t.get("subMenu")(t,i,o);return o.submenu=s,o},Object.defineProperty(e.prototype,"submenu",{get:function(){return this._submenu},set:function(t){this._submenu=t},enumerable:!1,configurable:!0}),e.prototype.mouseover=function(t){this.focus(),this.stop(t)},e.prototype.mouseout=function(t){this.stop(t)},e.prototype.unfocus=function(){if(this.submenu.isPosted()){if(this.menu.focused!==this)return t.prototype.unfocus.call(this),void this.menu.unpostSubmenus();this.html.setAttribute("tabindex","-1"),this.html.blur()}else t.prototype.unfocus.call(this)},e.prototype.focus=function(){t.prototype.focus.call(this),this.submenu.isPosted()||this.disabled||this.submenu.post()},e.prototype.executeAction=function(){this.submenu.isPosted()?this.submenu.unpost():this.submenu.post()},e.prototype.generateHtml=function(){t.prototype.generateHtml.call(this);var e=this.html;this.span=document.createElement("span"),this.span.textContent="\u25ba",this.span.classList.add(o.HtmlClasses.MENUARROW),e.appendChild(this.span),e.setAttribute("aria-haspopup","true")},e.prototype.left=function(e){this.submenu.isPosted()?this.submenu.unpost():t.prototype.left.call(this,e)},e.prototype.right=function(t){this.submenu.isPosted()?this.submenu.down(t):this.submenu.post()},e.prototype.toJson=function(){return{type:""}},e}(i.t)},8812:function(t,e,r){"use strict";var n;r.d(e,{F:function(){return n}}),function(t){t[t.RETURN=13]="RETURN",t[t.ESCAPE=27]="ESCAPE",t[t.SPACE=32]="SPACE",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN"}(n||(n={}))},9992:function(t,e,r){"use strict";r.d(e,{F:function(){return f}});var n,i=r(8812),o="click",s="dblclick",a="mousedown",l="mouseup",c="mouseover",u="mouseout",h="selectstart",p=function(){function t(){this.bubble=!1}return t.prototype.bubbleKey=function(){this.bubble=!0},t.prototype.keydown=function(t){switch(t.keyCode){case i.F.ESCAPE:this.escape(t);break;case i.F.RIGHT:this.right(t);break;case i.F.LEFT:this.left(t);break;case i.F.UP:this.up(t);break;case i.F.DOWN:this.down(t);break;case i.F.RETURN:case i.F.SPACE:this.space(t);break;default:return}this.bubble?this.bubble=!1:this.stop(t)},t.prototype.escape=function(t){},t.prototype.space=function(t){},t.prototype.left=function(t){},t.prototype.right=function(t){},t.prototype.up=function(t){},t.prototype.down=function(t){},t.prototype.stop=function(t){t&&(t.stopPropagation(),t.preventDefault(),t.cancelBubble=!0)},t.prototype.mousedown=function(t){return this.stop(t)},t.prototype.mouseup=function(t){return this.stop(t)},t.prototype.mouseover=function(t){return this.stop(t)},t.prototype.mouseout=function(t){return this.stop(t)},t.prototype.click=function(t){return this.stop(t)},t.prototype.addEvents=function(t){t.addEventListener(a,this.mousedown.bind(this)),t.addEventListener(l,this.mouseup.bind(this)),t.addEventListener(c,this.mouseover.bind(this)),t.addEventListener(u,this.mouseout.bind(this)),t.addEventListener(o,this.click.bind(this)),t.addEventListener("keydown",this.keydown.bind(this)),t.addEventListener("dragstart",this.stop.bind(this)),t.addEventListener(h,this.stop.bind(this)),t.addEventListener("contextmenu",this.stop.bind(this)),t.addEventListener(s,this.stop.bind(this))},t}(),d=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.prototype.addAttributes=function(t){for(var e in t)this.html.setAttribute(e,t[e])},Object.defineProperty(e.prototype,"html",{get:function(){return this._html||this.generateHtml(),this._html},set:function(t){this._html=t,this.addEvents(t)},enumerable:!1,configurable:!0}),e.prototype.generateHtml=function(){var t=document.createElement("div");t.classList.add(this.className),t.setAttribute("role",this.role),this.html=t},e.prototype.focus=function(){var t=this.html;t.setAttribute("tabindex","0"),t.focus()},e.prototype.unfocus=function(){var t=this.html;t.hasAttribute("tabindex")&&t.setAttribute("tabindex","-1");try{t.blur()}catch(t){}t.blur()},e}(p)},7166:function(t,e,r){"use strict";var n;r.d(e,{O:function(){return n}}),function(t){t.close=function(t){var e=t.menu;e.baseMenu?e.baseMenu.unpost():e.unpost()},t.getActiveElement=function(t){var e=t.menu;return(e.baseMenu?e.baseMenu:e).store.active},t.error=function(t,e){console.error("ContextMenu Error: "+e)},t.counter=function(){return e++};var e=0}(n||(n={}))},9983:function(t,e,r){"use strict";r.r(e),r.d(e,{Parser:function(){return F}});var n,i=r(3212),o=r(7166),s=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=function(t){function e(e,r,n,i){var o=t.call(this,e,"command",r,i)||this;return o.command=n,o}return s(e,t),e.fromJson=function(t,e,r){return new this(r,e.content,e.action,e.id)},e.prototype.executeAction=function(){try{this.command(o.O.getActiveElement(this))}catch(t){o.O.error(t,"Illegal command callback.")}o.O.close(this)},e.prototype.toJson=function(){return{type:""}},e}(i.t),l=r(6207),c=function(){function t(t,e,r){this._name=t,this.getter=e,this.setter=r,this.items=[]}return t.fromJson=function(t,e,r){var n=new this(e.name,e.getter,e.setter);r.insert(n)},Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t.prototype.getValue=function(t){try{return this.getter(t)}catch(t){return o.O.error(t,"Command of variable "+this.name+" failed."),null}},t.prototype.setValue=function(t,e){try{this.setter(t,e)}catch(t){o.O.error(t,"Command of variable "+this.name+" failed.")}this.update()},t.prototype.register=function(t){-1===this.items.indexOf(t)&&this.items.push(t)},t.prototype.unregister=function(t){var e=this.items.indexOf(t);-1!==e&&this.items.splice(e,1)},t.prototype.update=function(){this.items.forEach((function(t){return t.update()}))},t.prototype.registerCallback=function(t){this.items.forEach((function(e){return e.registerCallback(t)}))},t.prototype.unregisterCallback=function(t){this.items.forEach((function(e){return e.unregisterCallback(t)}))},t.prototype.toJson=function(){return{type:"variable",name:this.name,getter:this.getter.toString(),setter:this.setter.toString()}},t}(),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.generateHtml=function(){t.prototype.generateHtml.call(this);var e=this.html;this.span||this.generateSpan(),e.appendChild(this.span),this.update()},e.prototype.register=function(){this.variable.register(this)},e.prototype.unregister=function(){this.variable.unregister(this)},e.prototype.update=function(){this.updateAria(),this.span&&this.updateSpan()},e}(i.t),p=r(3639),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(t){function e(e,r,n,i){var o=t.call(this,e,"checkbox",r,i)||this;return o.role="menuitemcheckbox",o.variable=e.pool.lookup(n),o.register(),o}return d(e,t),e.fromJson=function(t,e,r){return new this(r,e.content,e.variable,e.id)},e.prototype.executeAction=function(){this.variable.setValue(!this.variable.getValue()),o.O.close(this)},e.prototype.generateSpan=function(){this.span=document.createElement("span"),this.span.textContent="\u2713",this.span.classList.add(p.HtmlClasses.MENUCHECK)},e.prototype.updateAria=function(){this.html.setAttribute("aria-checked",this.variable.getValue()?"true":"false")},e.prototype.updateSpan=function(){this.span.style.display=this.variable.getValue()?"":"none"},e.prototype.toJson=function(){return{type:""}},e}(h),m=r(8812),y=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(t){function e(e,r,n,i){var o=t.call(this,e,"combobox",r,i)||this;return o.role="combobox",o.inputEvent=!1,o.variable=e.pool.lookup(n),o.register(),o}return y(e,t),e.fromJson=function(t,e,r){return new this(r,e.content,e.variable,e.id)},e.prototype.executeAction=function(){this.variable.setValue(this.input.value,o.O.getActiveElement(this))},e.prototype.space=function(e){t.prototype.space.call(this,e),o.O.close(this)},e.prototype.focus=function(){t.prototype.focus.call(this),this.input.focus()},e.prototype.unfocus=function(){t.prototype.unfocus.call(this),this.updateSpan()},e.prototype.generateHtml=function(){t.prototype.generateHtml.call(this),this.html.classList.add(p.HtmlClasses.MENUCOMBOBOX)},e.prototype.generateSpan=function(){this.span=document.createElement("span"),this.span.classList.add(p.HtmlClasses.MENUINPUTBOX),this.input=document.createElement("input"),this.input.addEventListener("keydown",this.inputKey.bind(this)),this.input.setAttribute("size","10em"),this.input.setAttribute("type","text"),this.input.setAttribute("tabindex","-1"),this.span.appendChild(this.input)},e.prototype.inputKey=function(t){this.bubbleKey(),this.inputEvent=!0},e.prototype.keydown=function(e){if(this.inputEvent&&e.keyCode!==m.F.ESCAPE&&e.keyCode!==m.F.RETURN)return this.inputEvent=!1,void e.stopPropagation();t.prototype.keydown.call(this,e),e.stopPropagation()},e.prototype.updateAria=function(){},e.prototype.updateSpan=function(){var t;try{t=this.variable.getValue(o.O.getActiveElement(this))}catch(e){t=""}this.input.value=t},e.prototype.toJson=function(){return{type:""}},e}(h),b=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),v=function(t){function e(e,r,n){return t.call(this,e,"label",r,n)||this}return b(e,t),e.fromJson=function(t,e,r){return new this(r,e.content,e.id)},e.prototype.generateHtml=function(){t.prototype.generateHtml.call(this),this.html.classList.add(p.HtmlClasses.MENULABEL)},e.prototype.toJson=function(){return{type:""}},e}(i.t),M=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),O=function(t){function e(e,r,n,i){var o=t.call(this,e,"radio",r,i)||this;return o.role="menuitemradio",o.variable=e.pool.lookup(n),o.register(),o}return M(e,t),e.fromJson=function(t,e,r){return new this(r,e.content,e.variable,e.id)},e.prototype.executeAction=function(){this.variable.setValue(this.id),o.O.close(this)},e.prototype.generateSpan=function(){this.span=document.createElement("span"),this.span.textContent="\u2713",this.span.classList.add(p.HtmlClasses.MENURADIOCHECK)},e.prototype.updateAria=function(){this.html.setAttribute("aria-checked",this.variable.getValue()===this.id?"true":"false")},e.prototype.updateSpan=function(){this.span.style.display=this.variable.getValue()===this.id?"":"none"},e.prototype.toJson=function(){return{type:""}},e}(h),x=r(9086),S=r(968),E=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),C=function(t){function e(e,r,n,i){var s=t.call(this,e,"slider",r,i)||this;return s.role="slider",s.labelId="ctx_slideLabel"+o.O.counter(),s.valueId="ctx_slideValue"+o.O.counter(),s.inputEvent=!1,s.variable=e.pool.lookup(n),s.register(),s}return E(e,t),e.fromJson=function(t,e,r){return new this(r,e.content,e.variable,e.id)},e.prototype.executeAction=function(){this.variable.setValue(this.input.value,o.O.getActiveElement(this)),this.update()},e.prototype.space=function(e){t.prototype.space.call(this,e),o.O.close(this)},e.prototype.focus=function(){t.prototype.focus.call(this),this.input.focus()},e.prototype.unfocus=function(){t.prototype.unfocus.call(this),this.updateSpan()},e.prototype.generateHtml=function(){t.prototype.generateHtml.call(this),this.html.classList.add(p.HtmlClasses.MENUSLIDER),this.valueSpan=document.createElement("span"),this.valueSpan.setAttribute("id",this.valueId),this.valueSpan.classList.add(p.HtmlClasses.SLIDERVALUE),this.html.appendChild(this.valueSpan)},e.prototype.generateSpan=function(){this.span=document.createElement("span"),this.labelSpan=document.createElement("span"),this.labelSpan.setAttribute("id",this.labelId),this.labelSpan.appendChild(this.html.childNodes[0]),this.html.appendChild(this.labelSpan),this.input=document.createElement("input"),this.input.setAttribute("type","range"),this.input.setAttribute("min","0"),this.input.setAttribute("max","100"),this.input.setAttribute("aria-valuemin","0"),this.input.setAttribute("aria-valuemax","100"),this.input.setAttribute("aria-labelledby",this.labelId),this.input.addEventListener("keydown",this.inputKey.bind(this)),this.input.addEventListener("input",this.executeAction.bind(this)),this.input.classList.add(p.HtmlClasses.SLIDERBAR),this.span.appendChild(this.input)},e.prototype.inputKey=function(t){this.inputEvent=!0},e.prototype.mousedown=function(t){t.stopPropagation()},e.prototype.mouseup=function(t){event.stopPropagation()},e.prototype.keydown=function(e){var r=e.keyCode;return r===m.F.UP||r===m.F.DOWN?(e.preventDefault(),void t.prototype.keydown.call(this,e)):this.inputEvent&&r!==m.F.ESCAPE&&r!==m.F.RETURN?(this.inputEvent=!1,void e.stopPropagation()):(t.prototype.keydown.call(this,e),void e.stopPropagation())},e.prototype.updateAria=function(){var t=this.variable.getValue();t&&this.input&&(this.input.setAttribute("aria-valuenow",t),this.input.setAttribute("aria-valuetext",t+"%"))},e.prototype.updateSpan=function(){var t;try{t=this.variable.getValue(o.O.getActiveElement(this)),this.valueSpan.innerHTML=t+"%"}catch(e){t=""}this.input.value=t},e.prototype.toJson=function(){return{type:""}},e}(h),_=r(6780),A=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),N=function(t){function e(e){var r=t.call(this)||this;return r._anchor=e,r.variablePool=r.anchor.menu.pool,r.setBaseMenu(),r}return A(e,t),e.fromJson=function(t,e,r){var n=e.items,i=new this(r),o=t.get("items")(t,n,i);return i.items=o,i},Object.defineProperty(e.prototype,"anchor",{get:function(){return this._anchor},enumerable:!1,configurable:!0}),e.prototype.post=function(){if(this.anchor.menu.isPosted()){for(var e=this.anchor.html,r=this.html,n=this.baseMenu.frame,i=e.offsetWidth,o=i-2,s=0;e&&e!==n;)o+=e.offsetLeft,s+=e.offsetTop,e=e.parentNode;o+r.offsetWidth>document.body.offsetWidth-5&&(o=Math.max(5,o-i-r.offsetWidth+6)),t.prototype.post.call(this,o,s)}},e.prototype.display=function(){this.baseMenu.frame.appendChild(this.html)},e.prototype.setBaseMenu=function(){var t=this;do{t=t.anchor.menu}while(t instanceof e);this.baseMenu=t},e.prototype.left=function(t){this.focused=null,this.anchor.focus()},e.prototype.toJson=function(){return{type:""}},e}(_.W),w=r(9050),T=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),L=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},P=function(t){function e(e){var r=t.call(this)||this;return r.anchor=e,r.className=p.HtmlClasses.SELECTIONMENU,r.variablePool=r.anchor.menu.pool,r.baseMenu=r.anchor.menu,r}return T(e,t),e.fromJson=function(t,e,r){var n=e.title,i=e.values,o=e.variable,s=new this(r),a=t.get("label")(t,{content:n||"",id:n||"id"},s),l=t.get("rule")(t,{},s),c=i.map((function(e){return t.get("radio")(t,{content:e,variable:o,id:e},s)})),u=[a,l].concat(c);return s.items=u,s},e.prototype.generateHtml=function(){t.prototype.generateHtml.call(this),this.items.forEach((function(t){return t.html.classList.add(p.HtmlClasses.SELECTIONITEM)}))},e.prototype.display=function(){},e.prototype.right=function(t){this.anchor.right(t)},e.prototype.left=function(t){this.anchor.left(t)},e}(_.W),k=function(t){function e(e,r,n,i){void 0===n&&(n="none"),void 0===i&&(i="vertical");var o=t.call(this,e,null,r)||this;return o.style=n,o.grid=i,o._selections=[],o.prefix="ctxt-selection",o._balanced=!0,o}return T(e,t),e.fromJson=function(t,e,r){var n=e.title,i=e.signature,o=e.selections,s=new this(n,i,e.order,e.grid);s.attachMenu(r);var a=o.map((function(e){return t.get("selectionMenu")(t,e,s)}));return s.selections=a,s},e.prototype.attachMenu=function(t){this.menu=t},Object.defineProperty(e.prototype,"selections",{get:function(){return this._selections},set:function(t){var e=this;this._selections=[],t.forEach((function(t){return e.addSelection(t)}))},enumerable:!1,configurable:!0}),e.prototype.addSelection=function(t){t.anchor=this,this._selections.push(t)},e.prototype.rowDiv=function(t){var e=this,r=document.createElement("div");this.contentDiv.appendChild(r);var n=t.map((function(t){return r.appendChild(t.html),t.html.id||(t.html.id=e.prefix+o.O.counter()),t.html.getBoundingClientRect()})),i=n.map((function(t){return t.width})),s=i.reduce((function(t,e){return t+e}),0),a=n.reduce((function(t,e){return Math.max(t,e.height)}),0);return r.classList.add(p.HtmlClasses.SELECTIONDIVIDER),r.setAttribute("style","height: "+a+"px;"),[r,s,a,i]},e.prototype.display=function(){if(t.prototype.display.call(this),this.order(),this.selections.length){for(var e=[],r=0,n=[],i=this.getChunkSize(this.selections.length),o=function(t){var o=s.selections.slice(t,t+i),a=L(s.rowDiv(o),4),l=a[0],c=a[1],u=a[2],h=a[3];e.push(l),r=Math.max(r,c),o.forEach((function(t){return t.html.style.height=u+"px"})),n=s.combineColumn(n,h)},s=this,a=0;a<this.selections.length;a+=i)o(a);this._balanced&&(this.balanceColumn(e,n),r=n.reduce((function(t,e){return t+e}),20)),e.forEach((function(t){return t.style.width=r+"px"}))}},e.prototype.getChunkSize=function(t){switch(this.grid){case"square":return Math.floor(Math.sqrt(t));case"horizontal":return Math.floor(t/e.chunkSize);default:return e.chunkSize}},e.prototype.balanceColumn=function(t,e){t.forEach((function(t){for(var r=Array.from(t.children),n=0,i=void 0;i=r[n];n++)i.style.width=e[n]+"px"}))},e.prototype.combineColumn=function(t,e){for(var r=[],n=0;t[n]||e[n];){if(!t[n]){r=r.concat(e.slice(n));break}if(!e[n]){r=r.concat(t.slice(n));break}r.push(Math.max(t[n],e[n])),n++}return r},e.prototype.left=function(t){var e=this;this.move(t,(function(t){return(0===t?e.selections.length:t)-1}))},e.prototype.right=function(t){var e=this;this.move(t,(function(t){return t===e.selections.length-1?0:t+1}))},e.prototype.generateHtml=function(){t.prototype.generateHtml.call(this),this.html.classList.add(p.HtmlClasses.SELECTION)},e.prototype.generateContent=function(){var e=t.prototype.generateContent.call(this);return e.classList.add(p.HtmlClasses.SELECTIONBOX),e.removeAttribute("tabindex"),e},e.prototype.findSelection=function(t){var e=t.target,r=null;if(e.id&&(r=this.selections.find((function(t){return t.html.id===e.id}))),!r){var n=e.parentElement.id;r=this.selections.find((function(t){return t.html.id===n}))}return r},e.prototype.move=function(t,e){var r=this.findSelection(t);r.focused&&r.focused.unfocus();var n=e(this.selections.indexOf(r));this.selections[n].focus()},e.prototype.order=function(){this.selections.sort(e.orderMethod.get(this.style))},e.prototype.toJson=function(){return{type:""}},e.chunkSize=4,e.orderMethod=new Map([["alphabetical",function(t,e){return t.items[0].content.localeCompare(e.items[0].content)}],["none",function(t,e){return 1}],["decreasing",function(t,e){var r=t.items.length,n=e.items.length;return r<n?1:n<r?-1:0}],["increasing",function(t,e){var r=t.items.length,n=e.items.length;return r<n?-1:n<r?1:0}]]),e}(w.Info),I=function(){function t(t){this._parser=new Map(t)}return t.prototype.get=function(t){return this._parser.get(t)},t.prototype.add=function(t,e){this._parser.set(t,e)},t}(),R=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r},j=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},B=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},D=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(j(arguments[e]));return t},F=function(){function t(t){var e=this;void 0===t&&(t=[]),this._initList=[["command",a.fromJson.bind(a)],["checkbox",f.fromJson.bind(f)],["combo",g.fromJson.bind(g)],["slider",C.fromJson.bind(C)],["label",v.fromJson.bind(v)],["radio",O.fromJson.bind(O)],["rule",S.Rule.fromJson.bind(S.Rule)],["submenu",x.Submenu.fromJson.bind(x.Submenu)],["contextMenu",l.ContextMenu.fromJson.bind(l.ContextMenu)],["subMenu",N.fromJson.bind(N)],["variable",c.fromJson.bind(c)],["items",this.items.bind(this)],["selectionMenu",P.fromJson.bind(P)],["selectionBox",k.fromJson.bind(k)]],this._factory=new I(this._initList),t.forEach((function(t){var r=j(t,2),n=r[0],i=r[1];return e.factory.add(n,i)}))}return Object.defineProperty(t.prototype,"factory",{get:function(){return this._factory},enumerable:!1,configurable:!0}),t.prototype.items=function(t,e,r){var n,i,o=[];try{for(var s=B(e),a=s.next();!a.done;a=s.next()){var l=a.value,c=this.parse(l,r);c&&(r.items.push(c),l.disabled&&c.disable(),l.hidden&&o.push(c))}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o.forEach((function(t){return t.hide()})),r.items},t.prototype.parse=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=t.type,i=R(t,["type"]),o=this.factory.get(n);return o?o.apply(void 0,D([this.factory,i],e)):null},t}()},9025:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractAudioRenderer=void 0;const n=r(5771);e.AbstractAudioRenderer=class{constructor(){this.separator_=" "}setSeparator(t){this.separator_=t}getSeparator(){return"braille"===n.default.getInstance().modality?"":this.separator_}error(t){return null}merge(t){let e="";const r=t.length-1;for(let n,i=0;n=t[i];i++)if(e+=n.speech,i<r){const t=n.attributes.separator;e+=void 0!==t?t:this.getSeparator()}return e}finalize(t){return t}pauseValue(t){let e;switch(t){case"long":e=750;break;case"medium":e=500;break;case"short":e=250;break;default:e=parseInt(t,10)}return Math.floor(e*n.default.getInstance().getRate()/100)}}},8649:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AcssRenderer=void 0;const n=r(292),i=r(7169),o=r(2265),s=r(453);class a extends s.MarkupRenderer{markup(t){this.setScaleFunction(-2,2,0,10,0);const e=o.personalityMarkup(t),r=[],n={open:[]};let i=null,s=!1;for(let t,a=0;t=e[a];a++){if(o.isMarkupElement(t)){o.mergeMarkup(n,t);continue}if(o.isPauseElement(t)){s&&(i=o.mergePause(i,t,Math.max));continue}const e='"'+this.merge(t.span)+'"';s=!0,i&&(r.push(this.pause(i)),i=null);const a=this.prosody_(n);r.push(a?"(text ("+a+") "+e+")":e)}return"(exp "+r.join(" ")+")"}error(t){return'(error "'+i.Move.get(t)+'")'}prosodyElement(t,e){switch(e=this.applyScaleFunction(e),t){case n.personalityProps.RATE:return"(richness . "+e+")";case n.personalityProps.PITCH:return"(average-pitch . "+e+")";case n.personalityProps.VOLUME:return"(stress . "+e+")"}return"(value . "+e+")"}pause(t){return"(pause . "+this.pauseValue(t[n.personalityProps.PAUSE])+")"}prosody_(t){const e=t.open,r=[];for(let n,i=0;n=e[i];i++)r.push(this.prosodyElement(n,t[n]));return r.join(" ")}}e.AcssRenderer=a},2265:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSpanElement=e.isPauseElement=e.isMarkupElement=e.personalityMarkup=e.sortClose=e.mergeMarkup=e.mergePause=void 0;const n=r(8154),i=r(292),o=r(7090);function s(t,e,r){return(r||function(r,n){return"number"==typeof r&&"number"==typeof n?r+n:"number"==typeof r?n:"number"==typeof n?r:[t,e].sort()[0]}).call(null,t,e)}e.mergePause=function(t,e,r){return t?{pause:s(t.pause,e.pause,r)}:e},e.mergeMarkup=function(t,e){delete t.open,e.close.forEach((e=>delete t[e])),e.open.forEach((r=>t[r]=e[r]));const r=Object.keys(t);t.open=r},e.sortClose=function(t,e){if(t.length<=1)return t;const r=[];for(let n,i=0;n=e[i],t.length;i++)n.close&&n.close.length&&n.close.forEach((function(e){const n=t.indexOf(e);-1!==n&&(r.unshift(e),t.splice(n,1))}));return r};let a={},l=[];function c(t,e){const r=t[t.length-1];if(r){if(d(e)&&d(r)){if(void 0===r.join)return void(r.span=r.span.concat(e.span));const t=r.span.pop(),n=e.span.shift();return r.span.push(t+r.join+n),r.span=r.span.concat(e.span),void(r.join=e.join)}p(e)&&p(r)?r.pause=s(r.pause,e.pause):t.push(e)}else t.push(e)}function u(t,e){t.rate&&(e.rate=t.rate),t.pitch&&(e.pitch=t.pitch),t.volume&&(e.volume=t.volume)}function h(t){return"object"==typeof t&&t.open}function p(t){return"object"==typeof t&&1===Object.keys(t).length&&Object.keys(t)[0]===i.personalityProps.PAUSE}function d(t){const e=Object.keys(t);return"object"==typeof t&&(1===e.length&&"span"===e[0]||2===e.length&&("span"===e[0]&&"join"===e[1]||"span"===e[1]&&"join"===e[0]))}function f(t,e,r,n,a,l=!1){if(l){const l=t[t.length-1];let c;if(l&&(c=l[i.personalityProps.JOIN]),l&&!e.speech&&a&&p(l)){const t=i.personalityProps.PAUSE;l[t]=s(l[t],a[t]),a=null}if(l&&e.speech&&0===Object.keys(r).length&&d(l)){if(void 0!==c){const t=l.span.pop();e=new o.Span(t.speech+c+e.speech,t.attributes)}l.span.push(e),e=new o.Span("",{}),l[i.personalityProps.JOIN]=n}}0!==Object.keys(r).length&&t.push(r),e.speech&&t.push({span:[e],join:n}),a&&t.push(a)}function m(t,e){if(!e)return t;const r={};for(const n of i.personalityPropList){const i=t[n],o=e[n];if(!i&&!o||i&&o&&i===o)continue;const s=i||0;h(r)||(r.open=[],r.close=[]),i||r.close.push(n),o||r.open.push(n),o&&i&&(r.close.push(n),r.open.push(n)),e[n]=s,r[n]=s,a[n]?a[n].push(s):a[n]=[s]}if(h(r)){let t=r.close.slice();for(;t.length>0;){let i=l.pop();const o=(0,n.setdifference)(i,t);if(t=(0,n.setdifference)(t,i),i=o,0!==t.length){if(0!==i.length){r.close=r.close.concat(i),r.open=r.open.concat(i);for(let t,n=0;t=i[n];n++)r[t]=e[t]}}else 0!==i.length&&l.push(i)}l.push(r.open)}return r}e.personalityMarkup=function(t){a={},l=[];let e=[];const r={};for(let n,o=0;n=t[o];o++){let t=null;const o=n.descriptionSpan(),s=n.personality,a=s[i.personalityProps.JOIN];delete s[i.personalityProps.JOIN],void 0!==s[i.personalityProps.PAUSE]&&(t={[i.personalityProps.PAUSE]:s[i.personalityProps.PAUSE]},delete s[i.personalityProps.PAUSE]);f(e,o,m(s,r),a,t,!0)}return e=e.concat(function(){const t=[];for(let e=l.length-1;e>=0;e--){const r=l[e];if(r.length){const e={open:[],close:[]};for(let t=0;t<r.length;t++){const n=r[t];e.close.push(n),e[n]=0}t.push(e)}}return t}()),e=function(t){const e={},r=[];for(let n,i=0;n=t[i];i++){if(!h(n)){c(r,n);continue}if(!n.close||1!==n.close.length||n.open.length){u(n,e),r.push(n);continue}let o=t[i+1];if(!o||d(o)){u(n,e),r.push(n);continue}const s=p(o)?o:null;s&&(o=t[i+2]),o&&h(o)&&o.open[0]===n.close[0]&&!o.close.length&&o[o.open[0]]===e[o.open[0]]?s?(c(r,s),i+=2):i+=1:(u(n,e),r.push(n))}return r}(e),e},e.isMarkupElement=h,e.isPauseElement=p,e.isSpanElement=d},8860:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AuditoryDescription=void 0;const n=r(5215),i=r(7090);class o{constructor({context:t,text:e,userValue:r,annotation:n,attributes:i,personality:o,layout:s}){this.context=t||"",this.text=e||"",this.userValue=r||"",this.annotation=n||"",this.attributes=i||{},this.personality=o||{},this.layout=s||""}static create(t,e={}){return t.text=n.Grammar.getInstance().apply(t.text,e),new o(t)}isEmpty(){return 0===this.context.length&&0===this.text.length&&0===this.userValue.length&&0===this.annotation.length}clone(){let t,e;if(this.personality){t={};for(const e in this.personality)t[e]=this.personality[e]}if(this.attributes){e={};for(const t in this.attributes)e[t]=this.attributes[t]}return new o({context:this.context,text:this.text,userValue:this.userValue,annotation:this.annotation,personality:t,attributes:e,layout:this.layout})}toString(){return'AuditoryDescription(context="'+this.context+'" text="'+this.text+'" userValue="'+this.userValue+'" annotation="'+this.annotation+'")'}descriptionString(){return this.context&&this.text?this.context+" "+this.text:this.context||this.text}descriptionSpan(){return new i.Span(this.descriptionString(),this.attributes)}equals(t){return this.context===t.context&&this.text===t.text&&this.userValue===t.userValue&&this.annotation===t.annotation}}e.AuditoryDescription=o},2273:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isXml=e.registerRenderer=e.error=e.finalize=e.merge=e.markup=e.getSeparator=e.setSeparator=void 0;const n=r(5771),i=r(292),o=r(8649),s=r(1897),a=r(1931),l=r(4691),c=r(7090),u=r(8466),h=r(7778),p=r(1248),d=r(5965),f=new u.SsmlRenderer,m=new Map([[i.Markup.NONE,new p.StringRenderer],[i.Markup.PUNCTUATION,new a.PunctuationRenderer],[i.Markup.LAYOUT,new s.LayoutRenderer],[i.Markup.ACSS,new o.AcssRenderer],[i.Markup.SABLE,new l.SableRenderer],[i.Markup.VOICEXML,f],[i.Markup.SSML,f],[i.Markup.SSML_STEP,new h.SsmlStepRenderer]]);e.setSeparator=function(t){const e=m.get(n.default.getInstance().markup);e&&e.setSeparator(t)},e.getSeparator=function(){const t=m.get(n.default.getInstance().markup);return t?t.getSeparator():""},e.markup=function(t){const e=m.get(n.default.getInstance().markup);return e?e.markup(t):""},e.merge=function(t){const e=t.map((t=>"string"==typeof t?new c.Span(t,{}):t)),r=m.get(n.default.getInstance().markup);return r?r.merge(e):t.join()},e.finalize=function(t){const e=m.get(n.default.getInstance().markup);return e?e.finalize(t):t},e.error=function(t){const e=m.get(n.default.getInstance().markup);return e?e.error(t):""},e.registerRenderer=function(t,e){m.set(t,e)},e.isXml=function(){return m.get(n.default.getInstance().markup)instanceof d.XmlRenderer}},1897:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LayoutRenderer=void 0;const n=r(4890),i=r(1838),o=r(292),s=r(2265),a=r(5965);class l extends a.XmlRenderer{finalize(t){return function(t){c="";const e=i.parseInput(`<all>${t}</all>`);return n.Debugger.getInstance().output(i.formatXml(e.toString())),c=d(e),c}(t)}pause(t){return""}prosodyElement(t,e){return t===o.personalityProps.LAYOUT?`<${e}>`:""}closeTag(t){return`</${t}>`}markup(t){const e=[];let r=[];for(const n of t){if(!n.layout){r.push(n);continue}e.push(this.processContent(r)),r=[];const t=n.layout;t.match(/^begin/)?e.push("<"+t.replace(/^begin/,"")+">"):t.match(/^end/)?e.push("</"+t.replace(/^end/,"")+">"):console.warn("Something went wrong with layout markup: "+t)}return e.push(this.processContent(r)),e.join("")}processContent(t){const e=[],r=s.personalityMarkup(t);for(let t,n=0;t=r[n];n++)t.span?e.push(this.merge(t.span)):s.isPauseElement(t);return e.join("")}}e.LayoutRenderer=l;let c="";const u={TABLE:function(t){let e=g(t);e.forEach((t=>{t.cells=t.cells.slice(1).slice(0,-1),t.width=t.width.slice(1).slice(0,-1)}));const[r,n]=b(e);return e=v(e,n),M(e,r)},CASES:function(t){let e=g(t);e.forEach((t=>{t.cells=t.cells.slice(0,-1),t.width=t.width.slice(0,-1)}));const[r,n]=b(e);return e=v(e,n),M(e,r)},CAYLEY:function(t){let e=g(t);e.forEach((t=>{t.cells=t.cells.slice(1).slice(0,-1),t.width=t.width.slice(1).slice(0,-1),t.sep=t.sep+t.sep}));const[r,n]=b(e),i={lfence:"",rfence:"",cells:n.map((t=>"\u2810"+new Array(t).join("\u2812"))),width:n,height:1,sep:e[0].sep};return e.splice(1,0,i),e=v(e,n),M(e,r)},MATRIX:function(t){let e=g(t);const[r,n]=b(e);return e=v(e,n),M(e,r)},CELL:d,FENCE:d,ROW:d,FRACTION:function(t){const[e,r,,n,i]=Array.from(t.childNodes),o=h(r),s=h(n),a=m(o),l=m(s);let c=Math.max(a,l);const u=e+new Array(c+1).join("\u2812")+i;return c=u.length,`${E(o,c)}\n${u}\n${E(s,c)}`},NUMERATOR:C,DENOMINATOR:C};function h(t){const e=i.tagName(t),r=u[e];return r?r(t):t.textContent}function p(t,e){if(!t||!e)return t+e;const r=f(t),n=f(e),i=r-n;t=i<0?y(t,n,m(t)):t,e=i>0?y(e,r,m(e)):e;const o=t.split(/\r\n|\r|\n/),s=e.split(/\r\n|\r|\n/),a=[];for(let t=0;t<o.length;t++)a.push(o[t]+s[t]);return a.join("\n")}function d(t){let e="";for(const r of Array.from(t.childNodes))e=r.nodeType!==i.NodeType.TEXT_NODE?p(e,h(r)):p(e,r.textContent);return e}function f(t){return t.split(/\r\n|\r|\n/).length}function m(t){return t.split(/\r\n|\r|\n/).reduce(((t,e)=>Math.max(e.length,t)),0)}function y(t,e,r){return t=function(t,e){const r=e-f(t);return t+(r>0?new Array(r+1).join("\n"):"")}(t,e),function(t,e){const r=t.split(/\r\n|\r|\n/),n=[];for(const t of r){const r=e-t.length;n.push(t+(r>0?new Array(r+1).join("\u2800"):""))}return n.join("\n")}(t,r)}function g(t){const e=Array.from(t.childNodes),r=[];for(const t of e)t.nodeType===i.NodeType.ELEMENT_NODE&&r.push(S(t));return r}function b(t){const e=t.reduce(((t,e)=>Math.max(e.height,t)),0),r=[];for(let e=0;e<t[0].width.length;e++)r.push(t.map((t=>t.width[e])).reduce(((t,e)=>Math.max(t,e)),0));return[e,r]}function v(t,e){const r=[];for(const n of t){if(0===n.height)continue;const t=[];for(let r=0;r<n.cells.length;r++)t.push(y(n.cells[r],n.height,e[r]));n.cells=t,r.push(n)}return r}function M(t,e){if(1===e)return t.map((t=>t.lfence+t.cells.join(t.sep)+t.rfence)).join("\n");const r=[];for(const e of t){const t=O(e.sep,e.height);let n=e.cells.shift();for(;e.cells.length;)n=p(n,t),n=p(n,e.cells.shift());n=p(O(e.lfence,e.height),n),n=p(n,O(e.rfence,e.height)),r.push(n),r.push(e.lfence+new Array(m(n)-3).join(e.sep)+e.rfence)}return r.slice(0,-1).join("\n")}function O(t,e){let r="";for(;e;)r+=t+"\n",e--;return r.slice(0,-1)}function x(t){return t.nodeType===i.NodeType.ELEMENT_NODE&&"FENCE"===i.tagName(t)?h(t):""}function S(t){const e=Array.from(t.childNodes),r=x(e[0]),n=x(e[e.length-1]);r&&e.shift(),n&&e.pop();let o="";const s=[];for(const t of e){if(t.nodeType===i.NodeType.TEXT_NODE){o=t.textContent;continue}const e=h(t);s.push(e)}return{lfence:r,rfence:n,sep:o,cells:s,height:s.reduce(((t,e)=>Math.max(f(e),t)),0),width:s.map(m)}}function E(t,e){const r=(e-m(t))/2,[n,i]=Math.floor(r)===r?[r,r]:[Math.floor(r),Math.ceil(r)],o=t.split(/\r\n|\r|\n/),s=[],[a,l]=[new Array(n+1).join("\u2800"),new Array(i+1).join("\u2800")];for(const t of o)s.push(a+t+l);return s.join("\n")}function C(t){const e=t.firstChild,r=d(t);if(e&&e.nodeType===i.NodeType.ELEMENT_NODE){if("ENGLISH"===i.tagName(e))return"\u2830"+r;if("NUMBER"===i.tagName(e))return"\u283c"+r}return r}},453:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkupRenderer=void 0;const n=r(292),i=r(9025);class o extends i.AbstractAudioRenderer{constructor(){super(...arguments),this.ignoreElements=[n.personalityProps.LAYOUT],this.scaleFunction=null}setScaleFunction(t,e,r,n,i=0){this.scaleFunction=o=>{const s=(o-t)/(e-t),a=r*(1-s)+n*s;return+(Math.round(a+"e+"+i)+"e-"+i)}}applyScaleFunction(t){return this.scaleFunction?this.scaleFunction(t):t}ignoreElement(t){return-1!==this.ignoreElements.indexOf(t)}}e.MarkupRenderer=o},1931:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PunctuationRenderer=void 0;const n=r(292),i=r(9025),o=r(2265);class s extends i.AbstractAudioRenderer{markup(t){const e=o.personalityMarkup(t);let r="",i=null,s=!1;for(let t,a=0;t=e[a];a++)o.isMarkupElement(t)||(o.isPauseElement(t)?s&&(i=o.mergePause(i,t,Math.max)):(i&&(r+=this.pause(i[n.personalityProps.PAUSE]),i=null),r+=(s?this.getSeparator():"")+this.merge(t.span),s=!0));return r}pause(t){let e;return e="number"==typeof t?t<=250?"short":t<=500?"medium":"long":t,s.PAUSE_PUNCTUATION.get(e)||""}}e.PunctuationRenderer=s,s.PAUSE_PUNCTUATION=new Map([["short",","],["medium",";"],["long","."]])},4691:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SableRenderer=void 0;const n=r(292),i=r(5965);class o extends i.XmlRenderer{finalize(t){return'<?xml version="1.0"?><!DOCTYPE SABLE PUBLIC "-//SABLE//DTD SABLE speech mark up//EN" "Sable.v0_2.dtd" []><SABLE>'+this.getSeparator()+t+this.getSeparator()+"</SABLE>"}pause(t){return'<BREAK MSEC="'+this.pauseValue(t[n.personalityProps.PAUSE])+'"/>'}prosodyElement(t,e){switch(e=this.applyScaleFunction(e),t){case n.personalityProps.PITCH:return'<PITCH RANGE="'+e+'%">';case n.personalityProps.RATE:return'<RATE SPEED="'+e+'%">';case n.personalityProps.VOLUME:return'<VOLUME LEVEL="'+e+'%">';default:return"<"+t.toUpperCase()+' VALUE="'+e+'">'}}closeTag(t){return"</"+t.toUpperCase()+">"}}e.SableRenderer=o},7090:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Span=void 0;e.Span=class{constructor(t,e){this.speech=t,this.attributes=e}}},8466:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SsmlRenderer=void 0;const n=r(5771),i=r(292),o=r(5965);class s extends o.XmlRenderer{finalize(t){return'<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis"><prosody rate="'+n.default.getInstance().getRate()+'%">'+this.getSeparator()+t+this.getSeparator()+"</prosody></speak>"}pause(t){return'<break time="'+this.pauseValue(t[i.personalityProps.PAUSE])+'ms"/>'}prosodyElement(t,e){const r=(e=Math.floor(this.applyScaleFunction(e)))<0?e.toString():"+"+e.toString();return"<prosody "+t.toLowerCase()+'="'+r+(t===i.personalityProps.VOLUME?">":'%">')}closeTag(t){return"</prosody>"}}e.SsmlRenderer=s},7778:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SsmlStepRenderer=void 0;const n=r(8466);class i extends n.SsmlRenderer{markup(t){return i.MARKS={},super.markup(t)}merge(t){const e=[];for(let r=0;r<t.length;r++){const n=t[r],o=n.attributes.extid;o&&!i.MARKS[o]&&(e.push('<mark name="'+o+'"/>'),i.MARKS[o]=!0),1===n.speech.length&&n.speech.match(/[a-zA-Z]/)?e.push('<say-as interpret-as="'+i.CHARACTER_ATTR+'">'+n.speech+"</say-as>"):e.push(n.speech)}return e.join(this.getSeparator())}}e.SsmlStepRenderer=i,i.CHARACTER_ATTR="character",i.MARKS={}},1248:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringRenderer=void 0;const n=r(9025),i=r(2265);class o extends n.AbstractAudioRenderer{markup(t){let e="";const r=(0,i.personalityMarkup)(t).filter((t=>t.span));if(!r.length)return e;const n=r.length-1;for(let t,i=0;t=r[i];i++){if(t.span&&(e+=this.merge(t.span)),i>=n)continue;const r=t.join;e+=void 0===r?this.getSeparator():r}return e}}e.StringRenderer=o},5965:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XmlRenderer=void 0;const n=r(5771),i=r(2265),o=r(453);class s extends o.MarkupRenderer{markup(t){this.setScaleFunction(-2,2,-100,100,2);const e=i.personalityMarkup(t),r=[],o=[];for(let t,s=0;t=e[s];s++)if(t.span)r.push(this.merge(t.span));else if(i.isPauseElement(t))r.push(this.pause(t));else{if(t.close.length)for(let e=0;e<t.close.length;e++){const e=o.pop();if(-1===t.close.indexOf(e))throw new n.SREError("Unknown closing markup element: "+e);r.push(this.closeTag(e))}if(t.open.length){i.sortClose(t.open.slice(),e.slice(s+1)).forEach((e=>{r.push(this.prosodyElement(e,t[e])),o.push(e)}))}}return r.join(" ")}}e.XmlRenderer=s},8154:function(t,e){"use strict";function r(t,e){return t?e?t.filter((t=>e.indexOf(t)<0)):t:[]}Object.defineProperty(e,"__esModule",{value:!0}),e.union=e.setdifference=e.interleaveLists=e.removeEmpty=void 0,e.removeEmpty=function(t){return t.filter((t=>t))},e.interleaveLists=function(t,e){const r=[];for(;t.length||e.length;)t.length&&r.push(t.shift()),e.length&&r.push(e.shift());return r},e.setdifference=r,e.union=function(t,e){return t&&e?t.concat(r(e,t)):t||e||[]}},2918:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.loadScript=e.loadMapsForIE_=e.installWGXpath_=e.loadWGXpath_=e.mapsForIE=e.detectEdge=e.detectIE=void 0;const n=r(5149),i=r(7604);function o(t){l(n.default.WGXpath),s(t)}function s(t,e){let r=e||1;"undefined"==typeof wgxpath&&r<10?setTimeout((function(){s(t,r++)}),200):r>=10||(n.default.wgxpath=wgxpath,t?n.default.wgxpath.install({document:document}):n.default.wgxpath.install(),i.xpath.evaluate=document.evaluate,i.xpath.result=XPathResult,i.xpath.createNSResolver=document.createNSResolver)}function a(){l(n.default.mathmapsIePath)}function l(t){const e=n.default.document.createElement("script");e.type="text/javascript",e.src=t,n.default.document.head?n.default.document.head.appendChild(e):n.default.document.body.appendChild(e)}e.detectIE=function(){return"undefined"!=typeof window&&"ActiveXObject"in window&&"clipboardData"in window&&(a(),o(),!0)},e.detectEdge=function(){var t;return"undefined"!=typeof window&&"MSGestureEvent"in window&&null===(null===(t=window.chrome)||void 0===t?void 0:t.loadTimes)&&(document.evaluate=null,o(!0),!0)},e.mapsForIE=null,e.loadWGXpath_=o,e.installWGXpath_=s,e.loadMapsForIE_=a,e.loadScript=l},4890:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Debugger=void 0;const n=r(5149);class i{constructor(){this.isActive_=!1,this.outputFunction_=console.info,this.stream_=null}static getInstance(){return i.instance=i.instance||new i,i.instance}init(t){t&&this.startDebugFile_(t),this.isActive_=!0}output(...t){this.isActive_&&this.output_(t)}generateOutput(t){this.isActive_&&this.output_(t.apply(t,[]))}exit(t=(()=>{})){this.isActive_&&this.stream_&&this.stream_.end("","",t)}startDebugFile_(t){this.stream_=n.default.fs.createWriteStream(t),this.outputFunction_=function(...t){this.stream_.write(t.join(" ")),this.stream_.write("\n")}.bind(this),this.stream_.on("error",function(t){console.info("Invalid log file. Debug information sent to console."),this.outputFunction_=console.info}.bind(this)),this.stream_.on("finish",(function(){console.info("Finalizing debug file.")}))}output_(t){this.outputFunction_.apply(console.info===this.outputFunction_?console:this.outputFunction_,["Speech Rule Engine Debugger:"].concat(t))}}e.Debugger=i},1838:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.serializeXml=e.cloneNode=e.tagName=e.querySelectorAll=e.querySelectorAllByAttrValue=e.querySelectorAllByAttr=e.formatXml=e.createTextNode=e.createElementNS=e.createElement=e.replaceNode=e.NodeType=e.parseInput=e.XML_ENTITIES=e.trimInput_=e.toArray=void 0;const n=r(5771),i=r(292),o=r(5149),s=r(7604);function a(t){const e=[];for(let r=0,n=t.length;r<n;r++)e.push(t[r]);return e}function l(t){return(t=t.replace(/&nbsp;/g,"\xa0")).replace(/>[ \f\n\r\t\v\u200b]+</g,"><").trim()}function c(t,e){if(!e)return[!1,""];const r=t.match(/^<([^> ]+).*>/),n=e.match(/^<\/([^>]+)>(.*)/);return r&&n&&r[1]===n[1]?[!0,n[2]]:[!1,""]}e.toArray=a,e.trimInput_=l,e.XML_ENTITIES={"&lt;":!0,"&gt;":!0,"&amp;":!0,"&quot;":!0,"&apos;":!0},e.parseInput=function(t){const e=new o.default.xmldom.DOMParser,r=l(t),a=!!r.match(/&(?!lt|gt|amp|quot|apos)\w+;/g);if(!r)throw new Error("Empty input!");try{const t=e.parseFromString(r,a?"text/html":"text/xml");return n.default.getInstance().mode===i.Mode.HTTP?(s.xpath.currentDocument=t,a?t.body.childNodes[0]:t.documentElement):t.documentElement}catch(t){throw new n.SREError("Illegal input: "+t.message)}},function(t){t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",t[t.TEXT_NODE=3]="TEXT_NODE",t[t.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",t[t.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",t[t.ENTITY_NODE=6]="ENTITY_NODE",t[t.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",t[t.COMMENT_NODE=8]="COMMENT_NODE",t[t.DOCUMENT_NODE=9]="DOCUMENT_NODE",t[t.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",t[t.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",t[t.NOTATION_NODE=12]="NOTATION_NODE"}(e.NodeType||(e.NodeType={})),e.replaceNode=function(t,e){t.parentNode&&(t.parentNode.insertBefore(e,t),t.parentNode.removeChild(t))},e.createElement=function(t){return o.default.document.createElement(t)},e.createElementNS=function(t,e){return o.default.document.createElementNS(t,e)},e.createTextNode=function(t){return o.default.document.createTextNode(t)},e.formatXml=function(t){let e="",r=/(>)(<)(\/*)/g,n=0,i=(t=t.replace(r,"$1\r\n$2$3")).split("\r\n");for(r=/(\.)*(<)(\/*)/g,i=i.map((t=>t.replace(r,"$1\r\n$2$3").split("\r\n"))).reduce(((t,e)=>t.concat(e)),[]);i.length;){let t=i.shift();if(!t)continue;let r=0;if(t.match(/^<\w[^>/]*>[^>]+$/)){const e=c(t,i[0]);e[0]?e[1]?(t+=i.shift().slice(0,-e[1].length),e[1].trim()&&i.unshift(e[1])):t+=i.shift():r=1}else if(t.match(/^<\/\w/))0!==n&&(n-=1);else if(t.match(/^<\w[^>]*[^/]>.*$/))r=1;else if(t.match(/^<\w[^>]*\/>.+$/)){const e=t.indexOf(">")+1;t.slice(e).trim()&&i.unshift(),t=t.slice(0,e)}else r=0;e+=new Array(n+1).join(" ")+t+"\r\n",n+=r}return e},e.querySelectorAllByAttr=function(t,e){return t.querySelectorAll?a(t.querySelectorAll(`[${e}]`)):s.evalXPath(`.//*[@${e}]`,t)},e.querySelectorAllByAttrValue=function(t,e,r){return t.querySelectorAll?a(t.querySelectorAll(`[${e}="${r}"]`)):s.evalXPath(`.//*[@${e}="${r}"]`,t)},e.querySelectorAll=function(t,e){return t.querySelectorAll?a(t.querySelectorAll(e)):s.evalXPath(`.//${e}`,t)},e.tagName=function(t){return t.tagName.toUpperCase()},e.cloneNode=function(t){return t.cloneNode(!0)},e.serializeXml=function(t){return(new o.default.xmldom.XMLSerializer).serializeToString(t)}},5771:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EnginePromise=e.SREError=void 0;const n=r(9818),i=r(292),o=r(4890),s=r(6261);class a extends Error{constructor(t=""){super(),this.message=t,this.name="SRE Error"}}e.SREError=a;class l{constructor(){this.customLoader=null,this.parsers={},this.comparator=null,this.mode=i.Mode.SYNC,this.init=!0,this.delay=!1,this.comparators={},this.domain="mathspeak",this.style=n.DynamicCstr.DEFAULT_VALUES[n.Axis.STYLE],this._defaultLocale=n.DynamicCstr.DEFAULT_VALUES[n.Axis.LOCALE],this.locale=this.defaultLocale,this.subiso="",this.modality=n.DynamicCstr.DEFAULT_VALUES[n.Axis.MODALITY],this.speech=i.Speech.NONE,this.markup=i.Markup.NONE,this.walker="Table",this.structure=!1,this.ruleSets=[],this.strict=!1,this.isIE=!1,this.isEdge=!1,this.rate="100",this.pprint=!1,this.config=!1,this.rules="",this.prune="",this.evaluator=l.defaultEvaluator,this.defaultParser=new n.DynamicCstrParser(n.DynamicCstr.DEFAULT_ORDER),this.parser=this.defaultParser,this.dynamicCstr=n.DynamicCstr.defaultCstr()}set defaultLocale(t){this._defaultLocale=s.Variables.ensureLocale(t,this._defaultLocale)}get defaultLocale(){return this._defaultLocale}static getInstance(){return l.instance=l.instance||new l,l.instance}static defaultEvaluator(t,e){return t}static evaluateNode(t){return l.nodeEvaluator(t)}getRate(){const t=parseInt(this.rate,10);return isNaN(t)?100:t}setDynamicCstr(t){if(this.defaultLocale&&(n.DynamicCstr.DEFAULT_VALUES[n.Axis.LOCALE]=this.defaultLocale),t){const e=Object.keys(t);for(let r=0;r<e.length;r++){const i=e[r];if(-1!==n.DynamicCstr.DEFAULT_ORDER.indexOf(i)){const e=t[i];this[i]=e}}}i.DOMAIN_TO_STYLES[this.domain]=this.style;const e=[this.locale,this.modality,this.domain,this.style].join("."),r=n.DynamicProperties.createProp([n.DynamicCstr.DEFAULT_VALUES[n.Axis.LOCALE]],[n.DynamicCstr.DEFAULT_VALUES[n.Axis.MODALITY]],[n.DynamicCstr.DEFAULT_VALUES[n.Axis.DOMAIN]],[n.DynamicCstr.DEFAULT_VALUES[n.Axis.STYLE]]),o=this.comparators[this.domain],s=this.parsers[this.domain];this.parser=s||this.defaultParser,this.dynamicCstr=this.parser.parse(e),this.dynamicCstr.updateProperties(r.getProperties()),this.comparator=o?o():new n.DefaultComparator(this.dynamicCstr)}configurate(t){this.mode!==i.Mode.HTTP||this.config||(!function(t){const e=document.documentElement.querySelectorAll('script[type="text/x-sre-config"]');for(let r=0,n=e.length;r<n;r++){let n;try{n=e[r].innerHTML;const i=JSON.parse(n);for(const e in i)t[e]=i[e]}catch(t){o.Debugger.getInstance().output("Illegal configuration ",n)}}}(t),this.config=!0),function(t){if("undefined"!=typeof SREfeature)for(const[e,r]of Object.entries(SREfeature))t[e]=r}(t)}setCustomLoader(t){t&&(this.customLoader=t)}}e.default=l,l.BINARY_FEATURES=["strict","structure","pprint"],l.STRING_FEATURES=["markup","style","domain","speech","walker","defaultLocale","locale","delay","modality","rate","rules","subiso","prune"],l.nodeEvaluator=function(t){return[]};class c{static get(t=l.getInstance().locale){return c.promises[t]||Promise.resolve("")}static getall(){return Promise.all(Object.values(c.promises))}}e.EnginePromise=c,c.loaded={},c.promises={}},292:function(t,e){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.DOMAIN_TO_STYLES=e.Markup=e.Speech=e.personalityPropList=e.personalityProps=e.Mode=void 0,function(t){t.SYNC="sync",t.ASYNC="async",t.HTTP="http"}(e.Mode||(e.Mode={})),function(t){t.PITCH="pitch",t.RATE="rate",t.VOLUME="volume",t.PAUSE="pause",t.JOIN="join",t.LAYOUT="layout"}(r=e.personalityProps||(e.personalityProps={})),e.personalityPropList=[r.PITCH,r.RATE,r.VOLUME,r.PAUSE,r.JOIN],function(t){t.NONE="none",t.SHALLOW="shallow",t.DEEP="deep"}(e.Speech||(e.Speech={})),function(t){t.NONE="none",t.LAYOUT="layout",t.PUNCTUATION="punctuation",t.SSML="ssml",t.SSML_STEP="ssml_step",t.ACSS="acss",t.SABLE="sable",t.VOICEXML="voicexml"}(e.Markup||(e.Markup={})),e.DOMAIN_TO_STYLES={mathspeak:"default",clearspeak:"default"}},4591:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}l((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.setup=void 0;const i=r(4439),o=r(9263),s=r(2918),a=r(5771),l=r(1764),c=r(5149);e.setup=function(t){return n(this,void 0,void 0,(function*(){const e=a.default.getInstance();"default"!==t.domain||"speech"!==t.modality&&t.modality&&"speech"!==e.modality||(t.domain="mathspeak");const r=r=>{void 0!==t[r]&&(e[r]=t[r])};return r("mode"),e.configurate(t),a.default.BINARY_FEATURES.forEach((r=>{void 0!==t[r]&&(e[r]=!!t[r])})),a.default.STRING_FEATURES.forEach(r),t.json&&(c.default.jsonPath=l.makePath(t.json)),t.xpath&&(c.default.WGXpath=t.xpath),e.setCustomLoader(t.custom),function(t){t.isIE=s.detectIE(),t.isEdge=s.detectEdge()}(e),i.setLocale(),e.setDynamicCstr(),e.init?(a.EnginePromise.promises.init=new Promise(((t,e)=>{setTimeout((()=>{t("init")}),10)})),e.init=!1,a.EnginePromise.get()):e.delay?(e.delay=!1,a.EnginePromise.get()):o.loadLocale()}))}},7169:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=e.EventType=e.Move=e.KeyCode=void 0,function(t){t[t.ENTER=13]="ENTER",t[t.ESC=27]="ESC",t[t.SPACE=32]="SPACE",t[t.PAGE_UP=33]="PAGE_UP",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.END=35]="END",t[t.HOME=36]="HOME",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN",t[t.TAB=9]="TAB",t[t.LESS=188]="LESS",t[t.GREATER=190]="GREATER",t[t.DASH=189]="DASH",t[t.ZERO=48]="ZERO",t[t.ONE=49]="ONE",t[t.TWO=50]="TWO",t[t.THREE=51]="THREE",t[t.FOUR=52]="FOUR",t[t.FIVE=53]="FIVE",t[t.SIX=54]="SIX",t[t.SEVEN=55]="SEVEN",t[t.EIGHT=56]="EIGHT",t[t.NINE=57]="NINE",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z"}(e.KeyCode||(e.KeyCode={})),e.Move=new Map([[13,"ENTER"],[27,"ESC"],[32,"SPACE"],[33,"PAGE_UP"],[34,"PAGE_DOWN"],[35,"END"],[36,"HOME"],[37,"LEFT"],[38,"UP"],[39,"RIGHT"],[40,"DOWN"],[9,"TAB"],[188,"LESS"],[190,"GREATER"],[189,"DASH"],[48,"ZERO"],[49,"ONE"],[50,"TWO"],[51,"THREE"],[52,"FOUR"],[53,"FIVE"],[54,"SIX"],[55,"SEVEN"],[56,"EIGHT"],[57,"NINE"],[65,"A"],[66,"B"],[67,"C"],[68,"D"],[69,"E"],[70,"F"],[71,"G"],[72,"H"],[73,"I"],[74,"J"],[75,"K"],[76,"L"],[77,"M"],[78,"N"],[79,"O"],[80,"P"],[81,"Q"],[82,"R"],[83,"S"],[84,"T"],[85,"U"],[86,"V"],[87,"W"],[88,"X"],[89,"Y"],[90,"Z"]]),function(t){t.CLICK="click",t.DBLCLICK="dblclick",t.MOUSEDOWN="mousedown",t.MOUSEUP="mouseup",t.MOUSEOVER="mouseover",t.MOUSEOUT="mouseout",t.MOUSEMOVE="mousemove",t.SELECTSTART="selectstart",t.KEYPRESS="keypress",t.KEYDOWN="keydown",t.KEYUP="keyup",t.TOUCHSTART="touchstart",t.TOUCHMOVE="touchmove",t.TOUCHEND="touchend",t.TOUCHCANCEL="touchcancel"}(e.EventType||(e.EventType={}));e.Event=class{constructor(t,e,r){this.src=t,this.type=e,this.callback=r}add(){this.src.addEventListener(this.type,this.callback)}remove(){this.src.removeEventListener(this.type,this.callback)}}},1764:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.localePath=e.makePath=void 0;const n=r(5149);function i(t){return t.match("/$")?t:t+"/"}e.makePath=i,e.localePath=function(t,e="json"){return i(n.default.jsonPath)+t+(e.match(/^\./)?e:"."+e)}},898:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeyProcessor=e.Processor=void 0;const n=r(7169);class i{constructor(t,e){this.name=t,this.process=e.processor,this.postprocess=e.postprocessor||((t,e)=>t),this.processor=this.postprocess?function(t){return this.postprocess(this.process(t),t)}:this.process,this.print=e.print||i.stringify_,this.pprint=e.pprint||this.print}static stringify_(t){return t?t.toString():t}}e.Processor=i,i.LocalState={walker:null,speechGenerator:null,highlighter:null};class o extends i{constructor(t,e){super(t,e),this.key=e.key||o.getKey_}static getKey_(t){return"string"==typeof t?n.KeyCode[t.toUpperCase()]:t}}e.KeyProcessor=o},4882:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.keypress=e.output=e.print=e.process=e.set=void 0;const n=r(2273),i=r(6263),o=r(9896),s=r(2894),a=r(4155),l=r(775),c=r(1558),u=r(1034),h=r(3580),p=r(1838),d=r(5771),f=r(292),m=r(898),y=r(7604),g=new Map;function b(t){g.set(t.name,t)}function v(t){const e=g.get(t);if(!e)throw new d.SREError("Unknown processor "+t);return e}function M(t,e){const r=v(t);try{return r.processor(e)}catch(t){throw new d.SREError("Processing error for expression "+e)}}function O(t,e){const r=v(t);return d.default.getInstance().pprint?r.pprint(e):r.print(e)}e.set=b,e.process=M,e.print=O,e.output=function(t,e){const r=v(t);try{const t=r.processor(e);return d.default.getInstance().pprint?r.pprint(t):r.print(t)}catch(t){throw new d.SREError("Processing error for expression "+e)}},e.keypress=function(t,e){const r=v(t),n=r instanceof m.KeyProcessor?r.key(e):e,i=r.processor(n);return d.default.getInstance().pprint?r.pprint(i):r.print(i)},b(new m.Processor("semantic",{processor:function(t){const e=p.parseInput(t);return a.xmlTree(e)},postprocessor:function(t,e){const r=d.default.getInstance().speech;if(r===f.Speech.NONE)return t;const i=p.cloneNode(t);let o=c.computeMarkup(i);if(r===f.Speech.SHALLOW)return t.setAttribute("speech",n.finalize(o)),t;const s=y.evalXPath(".//*[@id]",t),a=y.evalXPath(".//*[@id]",i);for(let t,e,r=0;t=s[r],e=a[r];r++)o=c.computeMarkup(e),t.setAttribute("speech",n.finalize(o));return t},pprint:function(t){return p.formatXml(t.toString())}})),b(new m.Processor("speech",{processor:function(t){const e=p.parseInput(t),r=a.xmlTree(e),i=c.computeSpeech(r);return n.finalize(n.markup(i))},pprint:function(t){const e=t.toString();return n.isXml()?p.formatXml(e):e}})),b(new m.Processor("json",{processor:function(t){const e=p.parseInput(t);return a.getTree(e).toJson()},postprocessor:function(t,e){const r=d.default.getInstance().speech;if(r===f.Speech.NONE)return t;const i=p.parseInput(e),o=a.xmlTree(i),s=c.computeMarkup(o);if(r===f.Speech.SHALLOW)return t.stree.speech=n.finalize(s),t;const l=t=>{const e=y.evalXPath(`.//*[@id=${t.id}]`,o)[0],r=c.computeMarkup(e);t.speech=n.finalize(r),t.children&&t.children.forEach(l)};return l(t.stree),t},print:function(t){return JSON.stringify(t)},pprint:function(t){return JSON.stringify(t,null,2)}})),b(new m.Processor("description",{processor:function(t){const e=p.parseInput(t),r=a.xmlTree(e);return c.computeSpeech(r)},print:function(t){return JSON.stringify(t)},pprint:function(t){return JSON.stringify(t,null,2)}})),b(new m.Processor("enriched",{processor:function(t){return i.semanticMathmlSync(t)},postprocessor:function(t,e){const r=h.getSemanticRoot(t);let n;switch(d.default.getInstance().speech){case f.Speech.NONE:break;case f.Speech.SHALLOW:n=l.generator("Adhoc"),n.getSpeech(r,t);break;case f.Speech.DEEP:n=l.generator("Tree"),n.getSpeech(t,t)}return t},pprint:function(t){return p.formatXml(t.toString())}})),b(new m.Processor("walker",{processor:function(t){const e=l.generator("Node");m.Processor.LocalState.speechGenerator=e,e.setOptions({modality:d.default.getInstance().modality,locale:d.default.getInstance().locale,domain:d.default.getInstance().domain,style:d.default.getInstance().style}),m.Processor.LocalState.highlighter=o.highlighter({color:"black"},{color:"white"},{renderer:"NativeMML"});const r=M("enriched",t),n=O("enriched",r);return m.Processor.LocalState.walker=u.walker(d.default.getInstance().walker,r,e,m.Processor.LocalState.highlighter,n),m.Processor.LocalState.walker},print:function(t){return m.Processor.LocalState.walker.speech()}})),b(new m.KeyProcessor("move",{processor:function(t){if(!m.Processor.LocalState.walker)return null;return!1===m.Processor.LocalState.walker.move(t)?n.error(t):m.Processor.LocalState.walker.speech()}})),b(new m.Processor("number",{processor:function(t){const e=parseInt(t,10);return isNaN(e)?"":s.LOCALE.NUMBERS.numberToWords(e)}})),b(new m.Processor("ordinal",{processor:function(t){const e=parseInt(t,10);return isNaN(e)?"":s.LOCALE.NUMBERS.wordOrdinal(e)}})),b(new m.Processor("numericOrdinal",{processor:function(t){const e=parseInt(t,10);return isNaN(e)?"":s.LOCALE.NUMBERS.numericOrdinal(e)}})),b(new m.Processor("vulgar",{processor:function(t){const[e,r]=t.split("/").map((t=>parseInt(t,10)));return isNaN(e)||isNaN(r)?"":M("speech",`<mfrac><mn>${e}</mn><mn>${r}</mn></mfrac>`)}}))},4703:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}l((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.localePath=e.exit=e.move=e.walk=e.processFile=e.file=e.vulgar=e.numericOrdinal=e.ordinal=e.number=e.toEnriched=e.toDescription=e.toJson=e.toSemantic=e.toSpeech=e.localeLoader=e.engineReady=e.engineSetup=e.setupEngine=e.version=void 0;const i=r(5771),o=r(4591),s=r(292),a=r(1764),l=r(4882),c=r(5149),u=r(6261),h=r(9263);function p(t){return n(this,void 0,void 0,(function*(){return(0,o.setup)(t)}))}function d(t,e){return l.process(t,e)}function f(t,e,r){switch(i.default.getInstance().mode){case s.Mode.ASYNC:return function(t,e,r){return n(this,void 0,void 0,(function*(){const n=yield c.default.fs.promises.readFile(e,{encoding:"utf8"}),o=l.output(t,n);if(r)try{c.default.fs.promises.writeFile(r,o)}catch(t){throw new i.SREError("Can not write to file: "+r)}return o}))}(t,e,r);case s.Mode.SYNC:return function(t,e,r){const n=function(t){let e;try{e=c.default.fs.readFileSync(t,{encoding:"utf8"})}catch(e){throw new i.SREError("Can not open file: "+t)}return e}(e),o=l.output(t,n);if(r)try{c.default.fs.writeFileSync(r,o)}catch(t){throw new i.SREError("Can not write to file: "+r)}return o}(t,e,r);default:throw new i.SREError(`Can process files in ${i.default.getInstance().mode} mode`)}}e.version=u.Variables.VERSION,e.setupEngine=p,e.engineSetup=function(){const t=["mode"].concat(i.default.STRING_FEATURES,i.default.BINARY_FEATURES),e=i.default.getInstance(),r={};return t.forEach((function(t){r[t]=e[t]})),r.json=c.default.jsonPath,r.xpath=c.default.WGXpath,r.rules=e.ruleSets.slice(),r},e.engineReady=function(){return n(this,void 0,void 0,(function*(){return p({}).then((()=>i.EnginePromise.getall()))}))},e.localeLoader=h.standardLoader,e.toSpeech=function(t){return d("speech",t)},e.toSemantic=function(t){return d("semantic",t)},e.toJson=function(t){return d("json",t)},e.toDescription=function(t){return d("description",t)},e.toEnriched=function(t){return d("enriched",t)},e.number=function(t){return d("number",t)},e.ordinal=function(t){return d("ordinal",t)},e.numericOrdinal=function(t){return d("numericOrdinal",t)},e.vulgar=function(t){return d("vulgar",t)},e.file={},e.file.toSpeech=function(t,e){return f("speech",t,e)},e.file.toSemantic=function(t,e){return f("semantic",t,e)},e.file.toJson=function(t,e){return f("json",t,e)},e.file.toDescription=function(t,e){return f("description",t,e)},e.file.toEnriched=function(t,e){return f("enriched",t,e)},e.processFile=f,e.walk=function(t){return l.output("walker",t)},e.move=function(t){return l.keypress("move",t)},e.exit=function(t){const e=t||0;i.EnginePromise.getall().then((()=>process.exit(e)))},e.localePath=a.localePath,c.default.documentSupported?p({mode:s.Mode.HTTP}).then((()=>p({}))):p({mode:s.Mode.SYNC}).then((()=>p({mode:s.Mode.ASYNC})))},5149:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __dirname="/";Object.defineProperty(exports,"__esModule",{value:!0});const variables_1=__webpack_require__(6261);class SystemExternal{static extRequire(library){if("undefined"!=typeof process){const nodeRequire=eval("require");return nodeRequire(library)}return null}}exports.default=SystemExternal,SystemExternal.windowSupported=!("undefined"==typeof window),SystemExternal.documentSupported=SystemExternal.windowSupported&&!(void 0===window.document),SystemExternal.xmldom=SystemExternal.documentSupported?window:SystemExternal.extRequire("xmldom-sre"),SystemExternal.document=SystemExternal.documentSupported?window.document:(new SystemExternal.xmldom.DOMImplementation).createDocument("","",0),SystemExternal.xpath=SystemExternal.documentSupported?document:function(){const t={document:{},XPathResult:{}};return SystemExternal.extRequire("wicked-good-xpath").install(t),t.document.XPathResult=t.XPathResult,t.document}(),SystemExternal.mathmapsIePath="https://cdn.jsdelivr.net/npm/sre-mathmaps-ie@"+variables_1.Variables.VERSION+"mathmaps_ie.js",SystemExternal.commander=SystemExternal.documentSupported?null:SystemExternal.extRequire("commander"),SystemExternal.fs=SystemExternal.documentSupported?null:SystemExternal.extRequire("fs"),SystemExternal.url=variables_1.Variables.url,SystemExternal.jsonPath=(SystemExternal.documentSupported?SystemExternal.url:process.env.SRE_JSON_PATH||__webpack_require__.g.SRE_JSON_PATH||__dirname+"/mathmaps")+"/",SystemExternal.WGXpath=variables_1.Variables.WGXpath,SystemExternal.wgxpath=null},6261:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Variables=void 0;class r{static ensureLocale(t,e){return r.LOCALES.get(t)?t:(console.error(`Locale ${t} does not exist! Using ${r.LOCALES.get(e)} instead.`),e)}}e.Variables=r,r.VERSION="4.0.6",r.LOCALES=new Map([["ca","Catalan"],["da","Danish"],["de","German"],["en","English"],["es","Spanish"],["fr","French"],["hi","Hindi"],["it","Italian"],["nb","Bokm\xe5l"],["nn","Nynorsk"],["sv","Swedish"],["nemeth","Nemeth"]]),r.mathjaxVersion="3.2.1",r.url="https://cdn.jsdelivr.net/npm/speech-rule-engine@"+r.VERSION+"/lib/mathmaps",r.WGXpath="https://cdn.jsdelivr.net/npm/wicked-good-xpath@1.3.0/dist/wgxpath.install.js"},7604:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateEvaluator=e.evaluateString=e.evaluateBoolean=e.getLeafNodes=e.evalXPath=e.resolveNameSpace=e.xpath=void 0;const n=r(5771),i=r(292),o=r(5149);function s(){return"undefined"!=typeof XPathResult}e.xpath={currentDocument:null,evaluate:s()?document.evaluate:o.default.xpath.evaluate,result:s()?XPathResult:o.default.xpath.XPathResult,createNSResolver:s()?document.createNSResolver:o.default.xpath.createNSResolver};const a={xhtml:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",mml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function l(t){return a[t]||null}e.resolveNameSpace=l;class c{constructor(){this.lookupNamespaceURI=l}}function u(t,r,o){return n.default.getInstance().mode!==i.Mode.HTTP||n.default.getInstance().isIE||n.default.getInstance().isEdge?e.xpath.evaluate(t,r,new c,o,null):e.xpath.currentDocument.evaluate(t,r,l,o,null)}function h(t,r){let n;try{n=u(t,r,e.xpath.result.ORDERED_NODE_ITERATOR_TYPE)}catch(t){return[]}const i=[];for(let t=n.iterateNext();t;t=n.iterateNext())i.push(t);return i}e.evalXPath=h,e.getLeafNodes=function(t){return h(".//*[count(*)=0]",t)},e.evaluateBoolean=function(t,r){let n;try{n=u(t,r,e.xpath.result.BOOLEAN_TYPE)}catch(t){return!1}return n.booleanValue},e.evaluateString=function(t,r){let n;try{n=u(t,r,e.xpath.result.STRING_TYPE)}catch(t){return""}return n.stringValue},e.updateEvaluator=function(t){if(n.default.getInstance().mode!==i.Mode.HTTP)return;let r=t;for(;r&&!r.evaluate;)r=r.parentNode;r&&r.evaluate?e.xpath.currentDocument=r:t.ownerDocument&&(e.xpath.currentDocument=t.ownerDocument)}},7652:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEnrichCase=void 0;e.AbstractEnrichCase=class{constructor(t){this.semantic=t}}},5897:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CaseBinomial=void 0;const n=r(1838),i=r(7652),o=r(3966),s=r(813);class a extends i.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static test(t){return!t.mathmlTree&&"line"===t.type&&"binomial"===t.role}getMathml(){if(!this.semantic.childNodes.length)return this.mml;const t=this.semantic.childNodes[0];if(this.mml=(0,o.walkTree)(t),this.mml.hasAttribute(s.Attribute.TYPE)){const t=n.createElement("mrow");t.setAttribute(s.Attribute.ADDED,"true"),n.replaceNode(this.mml,t),t.appendChild(this.mml),this.mml=t}return(0,s.setAttributes)(this.mml,this.semantic),this.mml}}e.CaseBinomial=a},7043:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CaseDoubleScript=void 0;const n=r(1838),i=r(7652),o=r(3966),s=r(813);class a extends i.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static test(t){if(!t.mathmlTree||!t.childNodes.length)return!1;const e=n.tagName(t.mathmlTree),r=t.childNodes[0].role;return"MSUBSUP"===e&&"subsup"===r||"MUNDEROVER"===e&&"underover"===r}getMathml(){const t=this.semantic.childNodes[0],e=t.childNodes[0],r=this.semantic.childNodes[1],n=t.childNodes[1],i=o.walkTree(r),a=o.walkTree(e),l=o.walkTree(n);return(0,s.setAttributes)(this.mml,this.semantic),this.mml.setAttribute(s.Attribute.CHILDREN,(0,s.makeIdList)([e,n,r])),[a,l,i].forEach((t=>o.getInnerNode(t).setAttribute(s.Attribute.PARENT,this.mml.getAttribute(s.Attribute.ID)))),this.mml.setAttribute(s.Attribute.TYPE,t.role),o.addCollapsedAttribute(this.mml,[this.semantic.id,[t.id,e.id,n.id],r.id]),this.mml}}e.CaseDoubleScript=a},7682:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CaseEmbellished=void 0;const n=r(1838),i=r(927),o=r(7652),s=r(7043),a=r(3154),l=r(5226),c=r(3966),u=r(813);class h extends o.AbstractEnrichCase{constructor(t){super(t),this.fenced=null,this.fencedMml=null,this.fencedMmlNodes=[],this.ofence=null,this.ofenceMml=null,this.ofenceMap={},this.cfence=null,this.cfenceMml=null,this.cfenceMap={},this.parentCleanup=[]}static test(t){return!(!t.mathmlTree||!t.fencePointer||t.mathmlTree.getAttribute("data-semantic-type"))}static makeEmptyNode_(t){const e=n.createElement("mrow"),r=new i.SemanticNode(t);return r.type="empty",r.mathmlTree=e,r}static fencedMap_(t,e){e[t.id]=t.mathmlTree,t.embellished&&h.fencedMap_(t.childNodes[0],e)}getMathml(){this.getFenced_(),this.fencedMml=c.walkTree(this.fenced),this.getFencesMml_(),"empty"!==this.fenced.type||this.fencedMml.parentNode||(this.fencedMml.setAttribute(u.Attribute.ADDED,"true"),this.cfenceMml.parentNode.insertBefore(this.fencedMml,this.cfenceMml)),this.getFencedMml_();return this.rewrite_()}fencedElement(t){return"fenced"===t.type||"matrix"===t.type||"vector"===t.type}getFenced_(){let t=this.semantic;for(;!this.fencedElement(t);)t=t.childNodes[0];this.fenced=t.childNodes[0],this.ofence=t.contentNodes[0],this.cfence=t.contentNodes[1],h.fencedMap_(this.ofence,this.ofenceMap),h.fencedMap_(this.cfence,this.cfenceMap)}getFencedMml_(){let t=this.ofenceMml.nextSibling;for(t=t===this.fencedMml?t:this.fencedMml;t&&t!==this.cfenceMml;)this.fencedMmlNodes.push(t),t=t.nextSibling}getFencesMml_(){let t=this.semantic;const e=Object.keys(this.ofenceMap),r=Object.keys(this.cfenceMap);for(;!(this.ofenceMml&&this.cfenceMml||t===this.fenced);)-1===e.indexOf(t.fencePointer)||this.ofenceMml||(this.ofenceMml=t.mathmlTree),-1===r.indexOf(t.fencePointer)||this.cfenceMml||(this.cfenceMml=t.mathmlTree),t=t.childNodes[0];this.ofenceMml||(this.ofenceMml=this.ofence.mathmlTree),this.cfenceMml||(this.cfenceMml=this.cfence.mathmlTree),this.ofenceMml&&(this.ofenceMml=c.ascendNewNode(this.ofenceMml)),this.cfenceMml&&(this.cfenceMml=c.ascendNewNode(this.cfenceMml))}rewrite_(){let t=this.semantic,e=null;const r=this.introduceNewLayer_();for((0,u.setAttributes)(r,this.fenced.parent);!this.fencedElement(t);){const i=t.mathmlTree,o=this.specialCase_(t,i);if(o)t=o;else{(0,u.setAttributes)(i,t);const e=[];for(let r,n=1;r=t.childNodes[n];n++)e.push(c.walkTree(r));t=t.childNodes[0]}const s=n.createElement("dummy"),a=i.childNodes[0];n.replaceNode(i,s),n.replaceNode(r,i),n.replaceNode(i.childNodes[0],r),n.replaceNode(s,a),e||(e=i)}return c.walkTree(this.ofence),c.walkTree(this.cfence),this.cleanupParents_(),e||r}specialCase_(t,e){const r=n.tagName(e);let i,o=null;if("MSUBSUP"===r?(o=t.childNodes[0],i=s.CaseDoubleScript):"MMULTISCRIPTS"===r&&("superscript"===t.type||"subscript"===t.type?i=a.CaseMultiscripts:"tensor"===t.type&&(i=l.CaseTensor),o=i&&t.childNodes[0]&&"subsup"===t.childNodes[0].role?t.childNodes[0]:t),!o)return null;const c=o.childNodes[0],u=h.makeEmptyNode_(c.id);return o.childNodes[0]=u,e=new i(t).getMathml(),o.childNodes[0]=c,this.parentCleanup.push(e),o.childNodes[0]}introduceNewLayer_(){const t=this.fullFence(this.ofenceMml),e=this.fullFence(this.cfenceMml);let r=n.createElement("mrow");if(n.replaceNode(this.fencedMml,r),this.fencedMmlNodes.forEach((t=>r.appendChild(t))),r.insertBefore(t,this.fencedMml),r.appendChild(e),!r.parentNode){const t=n.createElement("mrow");for(;r.childNodes.length>0;)t.appendChild(r.childNodes[0]);r.appendChild(t),r=t}return r}fullFence(t){const e=this.fencedMml.parentNode;let r=t;for(;r.parentNode&&r.parentNode!==e;)r=r.parentNode;return r}cleanupParents_(){this.parentCleanup.forEach((function(t){const e=t.childNodes[1].getAttribute(u.Attribute.PARENT);t.childNodes[0].setAttribute(u.Attribute.PARENT,e)}))}}e.CaseEmbellished=h},7602:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CaseLimit=void 0;const n=r(1838),i=r(7652),o=r(3966),s=r(813);class a extends i.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static test(t){if(!t.mathmlTree||!t.childNodes.length)return!1;const e=n.tagName(t.mathmlTree),r=t.type;return("limupper"===r||"limlower"===r)&&("MSUBSUP"===e||"MUNDEROVER"===e)||"limboth"===r&&("MSUB"===e||"MUNDER"===e||"MSUP"===e||"MOVER"===e)}static walkTree_(t){t&&o.walkTree(t)}getMathml(){const t=this.semantic.childNodes;return"limboth"!==this.semantic.type&&this.mml.childNodes.length>=3&&(this.mml=o.introduceNewLayer([this.mml],this.semantic)),(0,s.setAttributes)(this.mml,this.semantic),t[0].mathmlTree||(t[0].mathmlTree=this.semantic.mathmlTree),t.forEach(a.walkTree_),this.mml}}e.CaseLimit=a},2780:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CaseLine=void 0;const n=r(7652),i=r(3966),o=r(813);class s extends n.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static test(t){return!!t.mathmlTree&&"line"===t.type}getMathml(){return this.semantic.contentNodes.length&&i.walkTree(this.semantic.contentNodes[0]),this.semantic.childNodes.length&&i.walkTree(this.semantic.childNodes[0]),(0,o.setAttributes)(this.mml,this.semantic),this.mml}}e.CaseLine=s},3667:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CaseMultiindex=void 0;const n=r(1838),i=r(7652),o=r(3966),s=r(813);class a extends i.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static multiscriptIndex(t){return"punctuated"===t.type&&"dummy"===t.contentNodes[0].role?o.collapsePunctuated(t):(o.walkTree(t),t.id)}static createNone_(t){const e=n.createElement("none");return t&&(0,s.setAttributes)(e,t),e.setAttribute(s.Attribute.ADDED,"true"),e}completeMultiscript(t,e){const r=n.toArray(this.mml.childNodes).slice(1);let i=0;const l=t=>{for(let e,n=0;e=t[n];n++){const t=r[i];if(t&&e===parseInt(o.getInnerNode(t).getAttribute(s.Attribute.ID)))o.getInnerNode(t).setAttribute(s.Attribute.PARENT,this.semantic.id.toString()),i++;else{const r=this.semantic.querySelectorAll((t=>t.id===e));this.mml.insertBefore(a.createNone_(r[0]),t||null)}}};l(t),r[i]&&"MPRESCRIPTS"!==n.tagName(r[i])?this.mml.insertBefore(r[i],n.createElement("mprescripts")):i++,l(e)}}e.CaseMultiindex=a},3154:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CaseMultiscripts=void 0;const n=r(1838),i=r(1915),o=r(3667),s=r(3966),a=r(813);class l extends o.CaseMultiindex{static test(t){if(!t.mathmlTree)return!1;return"MMULTISCRIPTS"===n.tagName(t.mathmlTree)&&("superscript"===t.type||"subscript"===t.type)}constructor(t){super(t)}getMathml(){let t,e,r;if((0,a.setAttributes)(this.mml,this.semantic),this.semantic.childNodes[0]&&"subsup"===this.semantic.childNodes[0].role){const n=this.semantic.childNodes[0];t=n.childNodes[0],e=o.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[1]),r=o.CaseMultiindex.multiscriptIndex(n.childNodes[1]);const l=[this.semantic.id,[n.id,t.id,r],e];s.addCollapsedAttribute(this.mml,l),this.mml.setAttribute(a.Attribute.TYPE,n.role),this.completeMultiscript(i.SemanticSkeleton.interleaveIds(r,e),[])}else{t=this.semantic.childNodes[0],e=o.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[1]);const r=[this.semantic.id,t.id,e];s.addCollapsedAttribute(this.mml,r)}const n=i.SemanticSkeleton.collapsedLeafs(r||[],e),l=s.walkTree(t);return s.getInnerNode(l).setAttribute(a.Attribute.PARENT,this.semantic.id.toString()),n.unshift(t.id),this.mml.setAttribute(a.Attribute.CHILDREN,n.join(",")),this.mml}}e.CaseMultiscripts=l},1842:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CaseProof=void 0;const n=r(7652),i=r(3966),o=r(813);class s extends n.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static test(t){return!!t.mathmlTree&&("inference"===t.type||"premises"===t.type)}getMathml(){return this.semantic.childNodes.length?(this.semantic.contentNodes.forEach((function(t){i.walkTree(t),(0,o.setAttributes)(t.mathmlTree,t)})),this.semantic.childNodes.forEach((function(t){i.walkTree(t)})),(0,o.setAttributes)(this.mml,this.semantic),this.mml.getAttribute("data-semantic-id")===this.mml.getAttribute("data-semantic-parent")&&this.mml.removeAttribute("data-semantic-parent"),this.mml):this.mml}}e.CaseProof=s},9447:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CaseTable=void 0;const n=r(1838),i=r(7652),o=r(3966),s=r(813);class a extends i.AbstractEnrichCase{constructor(t){super(t),this.inner=[],this.mml=t.mathmlTree}static test(t){return"matrix"===t.type||"vector"===t.type||"cases"===t.type}getMathml(){const t=o.cloneContentNode(this.semantic.contentNodes[0]),e=this.semantic.contentNodes[1]?o.cloneContentNode(this.semantic.contentNodes[1]):null;if(this.inner=this.semantic.childNodes.map(o.walkTree),this.mml)if("MFENCED"===n.tagName(this.mml)){const r=this.mml.childNodes;this.mml.insertBefore(t,r[0]||null),e&&this.mml.appendChild(e),this.mml=o.rewriteMfenced(this.mml)}else{const r=[t,this.mml];e&&r.push(e),this.mml=o.introduceNewLayer(r,this.semantic)}else this.mml=o.introduceNewLayer([t].concat(this.inner,[e]),this.semantic);return(0,s.setAttributes)(this.mml,this.semantic),this.mml}}e.CaseTable=a},5226:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CaseTensor=void 0;const n=r(1915),i=r(3667),o=r(3966),s=r(813);class a extends i.CaseMultiindex{static test(t){return!!t.mathmlTree&&"tensor"===t.type}constructor(t){super(t)}getMathml(){o.walkTree(this.semantic.childNodes[0]);const t=i.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[1]),e=i.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[2]),r=i.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[3]),a=i.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[4]);(0,s.setAttributes)(this.mml,this.semantic);const l=[this.semantic.id,this.semantic.childNodes[0].id,t,e,r,a];o.addCollapsedAttribute(this.mml,l);const c=n.SemanticSkeleton.collapsedLeafs(t,e,r,a);return c.unshift(this.semantic.childNodes[0].id),this.mml.setAttribute(s.Attribute.CHILDREN,c.join(",")),this.completeMultiscript(n.SemanticSkeleton.interleaveIds(r,a),n.SemanticSkeleton.interleaveIds(t,e)),this.mml}}e.CaseTensor=a},4461:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CaseText=void 0;const n=r(7652),i=r(3966),o=r(813);class s extends n.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static test(t){return"punctuated"===t.type&&("text"===t.role||t.contentNodes.every((t=>"dummy"===t.role)))}getMathml(){const t=[],e=i.collapsePunctuated(this.semantic,t);return this.mml=i.introduceNewLayer(t,this.semantic),(0,o.setAttributes)(this.mml,this.semantic),this.mml.removeAttribute(o.Attribute.CONTENT),i.addCollapsedAttribute(this.mml,e),this.mml}}e.CaseText=s},6263:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prepareMmlString=e.testTranslation__=e.semanticMathml=e.semanticMathmlSync=e.semanticMathmlNode=void 0;const n=r(4890),i=r(1838),o=r(5771),s=r(4155),a=r(3966),l=r(813);function c(t){const e=i.cloneNode(t),r=s.getTree(e);return a.enrich(e,r)}function u(t){return c(i.parseInput(t))}function h(t){return t.match(/^<math/)||(t="<math>"+t),t.match(/\/math>$/)||(t+="</math>"),t}r(573),e.semanticMathmlNode=c,e.semanticMathmlSync=u,e.semanticMathml=function(t,e){o.EnginePromise.getall().then((()=>{const r=i.parseInput(t);e(c(r))}))},e.testTranslation__=function(t){n.Debugger.getInstance().init();const e=u(h(t)).toString();return(0,l.removeAttributePrefix)(e),n.Debugger.getInstance().exit(),e},e.prepareMmlString=h},813:function(t,e){"use strict";var r;function n(t){return t.map((function(t){return t.id})).join(",")}function i(t,e){const n=[];"mglyph"===e.role&&n.push("image"),e.attributes.href&&n.push("link"),n.length&&t.setAttribute(r.POSTFIX,n.join(" "))}Object.defineProperty(e,"__esModule",{value:!0}),e.addPrefix=e.removeAttributePrefix=e.setPostfix=e.setAttributes=e.makeIdList=e.EnrichAttributes=e.Attribute=e.Prefix=void 0,e.Prefix="data-semantic-",function(t){t.ADDED="data-semantic-added",t.ALTERNATIVE="data-semantic-alternative",t.CHILDREN="data-semantic-children",t.COLLAPSED="data-semantic-collapsed",t.CONTENT="data-semantic-content",t.EMBELLISHED="data-semantic-embellished",t.FENCEPOINTER="data-semantic-fencepointer",t.FONT="data-semantic-font",t.ID="data-semantic-id",t.ANNOTATION="data-semantic-annotation",t.OPERATOR="data-semantic-operator",t.OWNS="data-semantic-owns",t.PARENT="data-semantic-parent",t.POSTFIX="data-semantic-postfix",t.PREFIX="data-semantic-prefix",t.ROLE="data-semantic-role",t.SPEECH="data-semantic-speech",t.STRUCTURE="data-semantic-structure",t.TYPE="data-semantic-type"}(r=e.Attribute||(e.Attribute={})),e.EnrichAttributes=[r.ADDED,r.ALTERNATIVE,r.CHILDREN,r.COLLAPSED,r.CONTENT,r.EMBELLISHED,r.FENCEPOINTER,r.FONT,r.ID,r.ANNOTATION,r.OPERATOR,r.OWNS,r.PARENT,r.POSTFIX,r.PREFIX,r.ROLE,r.SPEECH,r.STRUCTURE,r.TYPE],e.makeIdList=n,e.setAttributes=function(t,o){t.setAttribute(r.TYPE,o.type);const s=o.allAttributes();for(let r,n=0;r=s[n];n++)t.setAttribute(e.Prefix+r[0].toLowerCase(),r[1]);o.childNodes.length&&t.setAttribute(r.CHILDREN,n(o.childNodes)),o.contentNodes.length&&t.setAttribute(r.CONTENT,n(o.contentNodes)),o.parent&&t.setAttribute(r.PARENT,o.parent.id.toString()),i(t,o)},e.setPostfix=i,e.removeAttributePrefix=function(t){return t.toString().replace(new RegExp(e.Prefix,"g"),"")},e.addPrefix=function(t){return e.Prefix+t}},5400:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.factory=e.getCase=void 0,e.getCase=function(t){for(let r,n=0;r=e.factory[n];n++)if(r.test(t))return r.constr(t);return null},e.factory=[]},573:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(5897),i=r(7043),o=r(7682),s=r(7602),a=r(2780),l=r(3154),c=r(1842),u=r(9447),h=r(5226),p=r(4461);r(5400).factory.push({test:s.CaseLimit.test,constr:t=>new s.CaseLimit(t)},{test:o.CaseEmbellished.test,constr:t=>new o.CaseEmbellished(t)},{test:i.CaseDoubleScript.test,constr:t=>new i.CaseDoubleScript(t)},{test:h.CaseTensor.test,constr:t=>new h.CaseTensor(t)},{test:l.CaseMultiscripts.test,constr:t=>new l.CaseMultiscripts(t)},{test:a.CaseLine.test,constr:t=>new a.CaseLine(t)},{test:n.CaseBinomial.test,constr:t=>new n.CaseBinomial(t)},{test:c.CaseProof.test,constr:t=>new c.CaseProof(t)},{test:u.CaseTable.test,constr:t=>new u.CaseTable(t)},{test:p.CaseText.test,constr:t=>new p.CaseText(t)})},3966:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.printNodeList__=e.collapsePunctuated=e.formattedOutput_=e.formattedOutput=e.getInnerNode=e.setOperatorAttribute_=e.createInvisibleOperator_=e.rewriteMfenced=e.cloneContentNode=e.addCollapsedAttribute=e.parentNode_=e.isIgnorable_=e.unitChild_=e.descendNode_=e.ascendNewNode=e.validLca_=e.pathToRoot_=e.attachedElement_=e.prunePath_=e.mathmlLca_=e.lcaType=e.functionApplication_=e.isDescendant_=e.insertNewChild_=e.mergeChildren_=e.collectChildNodes_=e.collateChildNodes_=e.childrenSubset_=e.moveSemanticAttributes_=e.introduceLayerAboveLca=e.introduceNewLayer=e.walkTree=e.enrich=e.SETTINGS=void 0;const n=r(4890),i=r(1838),o=r(5771),s=r(5489),a=r(5006),l=r(1915),c=r(1151),u=r(813),h=r(5400);function p(t){const e=(0,h.getCase)(t);let r;if(e)return r=e.getMathml(),w(r);if(1===t.mathml.length)return n.Debugger.getInstance().output("Walktree Case 0"),r=t.mathml[0],u.setAttributes(r,t),t.childNodes.length&&(n.Debugger.getInstance().output("Walktree Case 0.1"),t.childNodes.forEach((function(t){"empty"===t.type&&r.appendChild(p(t))}))),w(r);const i=t.contentNodes.map(I);B(t,i);const o=t.childNodes.map(p),s=l.SemanticSkeleton.combineContentChildren(t,i,o);if(r=t.mathmlTree,null===r)n.Debugger.getInstance().output("Walktree Case 1"),r=d(s,t);else{const t=_(s);n.Debugger.getInstance().output("Walktree Case 2"),t?(n.Debugger.getInstance().output("Walktree Case 2.1"),r=t.parentNode):(n.Debugger.getInstance().output("Walktree Case 2.2"),r=D(r))}return r=R(r),v(r,s,t),u.setAttributes(r,t),w(r)}function d(t,e){const r=E(t);let o=r.node;const s=r.type;if(s!==S.VALID||!c.hasEmptyTag(o))if(n.Debugger.getInstance().output("Walktree Case 1.1"),o=i.createElement("mrow"),s===S.PRUNED)n.Debugger.getInstance().output("Walktree Case 1.1.0"),o=f(o,r.node,t);else if(t[0]){n.Debugger.getInstance().output("Walktree Case 1.1.1");const e=_(t),r=y(e.parentNode,t);i.replaceNode(e,o),r.forEach((function(t){o.appendChild(t)}))}return e.mathmlTree||(e.mathmlTree=o),o}function f(t,e,r){let o=T(e);if(c.hasMathTag(o)){n.Debugger.getInstance().output("Walktree Case 1.1.0.0"),m(o,t),i.toArray(o.childNodes).forEach((function(e){t.appendChild(e)}));const e=t;t=o,o=e}const s=r.indexOf(e);return r[s]=o,i.replaceNode(o,t),t.appendChild(o),r.forEach((function(e){t.appendChild(e)})),t}function m(t,e){for(const r of u.EnrichAttributes)t.hasAttribute(r)&&(e.setAttribute(r,t.getAttribute(r)),t.removeAttribute(r))}function y(t,e){const r=i.toArray(t.childNodes);let n=1/0,o=-1/0;return e.forEach((function(t){const e=r.indexOf(t);-1!==e&&(n=Math.min(n,e),o=Math.max(o,e))})),r.slice(n,o+1)}function g(t,e,r){const n=[];let o=i.toArray(t.childNodes),s=!1;for(;o.length;){const t=o.shift();if(t.hasAttribute(u.Attribute.TYPE)){n.push(t);continue}const e=b(t);0!==e.length&&(1!==e.length?(s?t.setAttribute("AuxiliaryImplicit",!0):s=!0,o=e.concat(o)):n.push(t))}const a=[],l=r.childNodes.map((function(t){return t.mathmlTree}));for(;l.length;){const t=l.pop();if(t){if(-1!==n.indexOf(t))break;-1!==e.indexOf(t)&&a.unshift(t)}}return n.concat(a)}function b(t){const e=[];let r=i.toArray(t.childNodes);for(;r.length;){const t=r.shift();t.nodeType===i.NodeType.ELEMENT_NODE&&(t.hasAttribute(u.Attribute.TYPE)?e.push(t):r=i.toArray(t.childNodes).concat(r))}return e}function v(t,e,r){const n="implicit"===r.role&&a.flags.combine_juxtaposition?g(t,e,r):i.toArray(t.childNodes);if(!n.length)return void e.forEach((function(e){t.appendChild(e)}));let o=0;for(;e.length;){const r=e[0];n[o]===r||x(n[o],r)?(e.shift(),o++):n[o]&&-1===e.indexOf(n[o])?o++:(O(r,t)||M(t,n[o],r),e.shift())}}function M(t,e,r){if(!e)return void t.insertBefore(r,null);let n=e,i=k(n);for(;i&&i.firstChild===n&&!n.hasAttribute("AuxiliaryImplicit")&&i!==t;)n=i,i=k(n);i&&(i.insertBefore(r,n),n.removeAttribute("AuxiliaryImplicit"))}function O(t,e){if(!t)return!1;do{if((t=t.parentNode)===e)return!0}while(t);return!1}function x(t,e){const r=s.functionApplication();if(t&&e&&t.textContent&&e.textContent&&t.textContent===r&&e.textContent===r&&"true"===e.getAttribute(u.Attribute.ADDED)){for(let r,n=0;r=t.attributes[n];n++)e.hasAttribute(r.nodeName)||e.setAttribute(r.nodeName,r.nodeValue);return i.replaceNode(t,e),!0}return!1}var S;function E(t){const e=_(t);if(!e)return{type:S.INVALID,node:null};const r=_(t.slice().reverse());if(e===r)return{type:S.VALID,node:e};const n=A(e),i=C(n,t),o=A(r,(function(t){return-1!==i.indexOf(t)})),s=o[0],a=i.indexOf(s);return-1===a?{type:S.INVALID,node:null}:{type:i.length!==n.length?S.PRUNED:N(i[a+1],o[1])?S.VALID:S.INVALID,node:s}}function C(t,e){let r=0;for(;t[r]&&-1===e.indexOf(t[r]);)r++;return t.slice(0,r+1)}function _(t){let e=0,r=null;for(;!r&&e<t.length;)t[e].parentNode&&(r=t[e]),e++;return r}function A(t,e){const r=e||(t=>!1),n=[t];for(;!r(t)&&!c.hasMathTag(t)&&t.parentNode;)t=k(t),n.unshift(t);return n}function N(t,e){return!(!t||!e||t.previousSibling||e.nextSibling)}function w(t){for(;!c.hasMathTag(t)&&L(t);)t=k(t);return t}function T(t){const e=i.toArray(t.childNodes);if(!e)return t;const r=e.filter((function(t){return t.nodeType===i.NodeType.ELEMENT_NODE&&!c.hasIgnoreTag(t)}));return 1===r.length&&c.hasEmptyTag(r[0])&&!r[0].hasAttribute(u.Attribute.TYPE)?T(r[0]):t}function L(t){const e=k(t);return!(!e||!c.hasEmptyTag(e))&&i.toArray(e.childNodes).every((function(e){return e===t||P(e)}))}function P(t){if(t.nodeType!==i.NodeType.ELEMENT_NODE)return!0;if(!t||c.hasIgnoreTag(t))return!0;const e=i.toArray(t.childNodes);return!(!c.hasEmptyTag(t)&&e.length||c.hasDisplayTag(t)||t.hasAttribute(u.Attribute.TYPE)||c.isOrphanedGlyph(t))&&i.toArray(t.childNodes).every(P)}function k(t){return t.parentNode}function I(t){if(t.mathml.length)return p(t);const r=e.SETTINGS.implicit?j(t):i.createElement("mrow");return t.mathml=[r],r}function R(t){if("MFENCED"!==i.tagName(t))return t;const e=i.createElement("mrow");for(let r,n=0;r=t.attributes[n];n++)-1===["open","close","separators"].indexOf(r.name)&&e.setAttribute(r.name,r.value);return i.toArray(t.childNodes).forEach((function(t){e.appendChild(t)})),i.replaceNode(t,e),e}function j(t){const e=i.createElement("mo"),r=i.createTextNode(t.textContent);return e.appendChild(r),u.setAttributes(e,t),e.setAttribute(u.Attribute.ADDED,"true"),e}function B(t,e){const r=t.type+(t.textContent?","+t.textContent:"");e.forEach((function(t){D(t).setAttribute(u.Attribute.OPERATOR,r)}))}function D(t){const e=i.toArray(t.childNodes);if(!e)return t;const r=e.filter((function(t){return!P(t)})),n=[];for(let t,e=0;t=r[e];e++)if(c.hasEmptyTag(t)){const e=D(t);e&&e!==t&&n.push(e)}else n.push(t);return 1===n.length?n[0]:t}function F(t,e,r,n){const i=n||!1;H(t,"Original MathML",i),H(r,"Semantic Tree",i),H(e,"Semantically enriched MathML",i)}function H(t,e,r){const n=i.formatXml(t.toString());r?console.info(e+":\n```html\n"+u.removeAttributePrefix(n)+"\n```\n"):console.info(n)}e.SETTINGS={collapsed:!0,implicit:!0},e.enrich=function(t,e){const r=i.cloneNode(t);return p(e.root),o.default.getInstance().structure&&t.setAttribute(u.Attribute.STRUCTURE,l.SemanticSkeleton.fromStructure(t,e).toString()),n.Debugger.getInstance().generateOutput((function(){return F(r,t,e,!0),[]})),t},e.walkTree=p,e.introduceNewLayer=d,e.introduceLayerAboveLca=f,e.moveSemanticAttributes_=m,e.childrenSubset_=y,e.collateChildNodes_=g,e.collectChildNodes_=b,e.mergeChildren_=v,e.insertNewChild_=M,e.isDescendant_=O,e.functionApplication_=x,function(t){t.VALID="valid",t.INVALID="invalid",t.PRUNED="pruned"}(S=e.lcaType||(e.lcaType={})),e.mathmlLca_=E,e.prunePath_=C,e.attachedElement_=_,e.pathToRoot_=A,e.validLca_=N,e.ascendNewNode=w,e.descendNode_=T,e.unitChild_=L,e.isIgnorable_=P,e.parentNode_=k,e.addCollapsedAttribute=function(t,e){const r=new l.SemanticSkeleton(e);t.setAttribute(u.Attribute.COLLAPSED,r.toString())},e.cloneContentNode=I,e.rewriteMfenced=R,e.createInvisibleOperator_=j,e.setOperatorAttribute_=B,e.getInnerNode=D,e.formattedOutput=F,e.formattedOutput_=H,e.collapsePunctuated=function(t,e){const r=!!e,n=e||[],i=t.parent,o=t.contentNodes.map((function(t){return t.id}));o.unshift("c");const s=[t.id,o];for(let e,o=0;e=t.childNodes[o];o++){const t=p(e);n.push(t);const o=D(t);i&&!r&&o.setAttribute(u.Attribute.PARENT,i.id.toString()),s.push(e.id)}return s},e.printNodeList__=function(t,e){console.info(t),i.toArray(e).forEach((function(t){console.info(t.toString())})),console.info("<<<<<<<<<<<<<<<<<")}},1559:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractHighlighter=void 0;const n=r(7604),i=r(813);class o{constructor(){this.color=null,this.mactionName="",this.currentHighlights=[]}highlight(t){this.currentHighlights.push(t.map((t=>{const e=this.highlightNode(t);return this.setHighlighted(t),e})))}highlightAll(t){const e=this.getMactionNodes(t);for(let t,r=0;t=e[r];r++)this.highlight([t])}unhighlight(){const t=this.currentHighlights.pop();t&&t.forEach((t=>{this.isHighlighted(t.node)&&(this.unhighlightNode(t),this.unsetHighlighted(t.node))}))}unhighlightAll(){for(;this.currentHighlights.length>0;)this.unhighlight()}setColor(t){this.color=t}colorString(){return this.color.rgba()}addEvents(t,e){const r=this.getMactionNodes(t);for(let t,n=0;t=r[n];n++)for(const r in e)t.addEventListener(r,e[r])}getMactionNodes(t){return Array.from(t.getElementsByClassName(this.mactionName))}isMactionNode(t){const e=t.className||t.getAttribute("class");return!!e&&!!e.match(new RegExp(this.mactionName))}isHighlighted(t){return t.hasAttribute(o.ATTR)}setHighlighted(t){t.setAttribute(o.ATTR,"true")}unsetHighlighted(t){t.removeAttribute(o.ATTR)}colorizeAll(t){n.evalXPath(`.//*[@${i.Attribute.ID}]`,t).forEach((t=>this.colorize(t)))}uncolorizeAll(t){n.evalXPath(`.//*[@${i.Attribute.ID}]`,t).forEach((t=>this.uncolorize(t)))}colorize(t){const e=(0,i.addPrefix)("foreground");t.hasAttribute(e)&&(t.setAttribute(e+"-old",t.style.color),t.style.color=t.getAttribute(e))}uncolorize(t){const e=(0,i.addPrefix)("foreground")+"-old";t.hasAttribute(e)&&(t.style.color=t.getAttribute(e))}}e.AbstractHighlighter=o,o.ATTR="sre-highlight"},2950:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlHighlighter=void 0;const n=r(8658);class i extends n.CssHighlighter{constructor(){super()}isMactionNode(t){return t.tagName.toUpperCase()===this.mactionName.toUpperCase()}getMactionNodes(t){return Array.from(t.getElementsByTagName(this.mactionName))}}e.ChtmlHighlighter=i},110:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContrastPicker=e.ColorPicker=void 0;const r={red:{red:255,green:0,blue:0},green:{red:0,green:255,blue:0},blue:{red:0,green:0,blue:255},yellow:{red:255,green:255,blue:0},cyan:{red:0,green:255,blue:255},magenta:{red:255,green:0,blue:255},white:{red:255,green:255,blue:255},black:{red:0,green:0,blue:0}};function n(t,e){const n=t||{color:e};let i=Object.prototype.hasOwnProperty.call(n,"color")?r[n.color]:n;return i||(i=r[e]),i.alpha=Object.prototype.hasOwnProperty.call(n,"alpha")?n.alpha:1,function(t){const e=t=>(t=Math.max(t,0),t=Math.min(255,t),Math.round(t));return t.red=e(t.red),t.green=e(t.green),t.blue=e(t.blue),t.alpha=Math.max(t.alpha,0),t.alpha=Math.min(1,t.alpha),t}(i)}class i{constructor(t,e){this.foreground=n(e,i.DEFAULT_FOREGROUND_),this.background=n(t,i.DEFAULT_BACKGROUND_)}static toHex(t){const e=t.toString(16);return 1===e.length?"0"+e:e}rgba(){const t=function(t){return"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")"};return{background:t(this.background),foreground:t(this.foreground)}}rgb(){const t=function(t){return"rgb("+t.red+","+t.green+","+t.blue+")"};return{background:t(this.background),alphaback:this.background.alpha.toString(),foreground:t(this.foreground),alphafore:this.foreground.alpha.toString()}}hex(){const t=function(t){return"#"+i.toHex(t.red)+i.toHex(t.green)+i.toHex(t.blue)};return{background:t(this.background),alphaback:this.background.alpha.toString(),foreground:t(this.foreground),alphafore:this.foreground.alpha.toString()}}}e.ColorPicker=i,i.DEFAULT_BACKGROUND_="blue",i.DEFAULT_FOREGROUND_="black";e.ContrastPicker=class{constructor(){this.hue=10,this.sat=100,this.light=50,this.incr=50}generate(){return e=function(t,e,r){e=e>1?e/100:e,r=r>1?r/100:r;const n=(1-Math.abs(2*r-1))*e,i=n*(1-Math.abs(t/60%2-1)),o=r-n/2;let s=0,a=0,l=0;return 0<=t&&t<60?[s,a,l]=[n,i,0]:60<=t&&t<120?[s,a,l]=[i,n,0]:120<=t&&t<180?[s,a,l]=[0,n,i]:180<=t&&t<240?[s,a,l]=[0,i,n]:240<=t&&t<300?[s,a,l]=[i,0,n]:300<=t&&t<360&&([s,a,l]=[n,0,i]),{red:s+o,green:a+o,blue:l+o}}(this.hue,this.sat,this.light),"rgb("+(t={red:Math.round(255*e.red),green:Math.round(255*e.green),blue:Math.round(255*e.blue)}).red+","+t.green+","+t.blue+")";var t,e}increment(){this.hue=(this.hue+this.incr)%360}}},8658:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CssHighlighter=void 0;const n=r(1559);class i extends n.AbstractHighlighter{constructor(){super(),this.mactionName="mjx-maction"}highlightNode(t){const e={node:t,background:t.style.backgroundColor,foreground:t.style.color},r=this.colorString();return t.style.backgroundColor=r.background,t.style.color=r.foreground,e}unhighlightNode(t){t.node.style.backgroundColor=t.background,t.node.style.color=t.foreground}}e.CssHighlighter=i},9896:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.highlighterMapping_=e.addEvents=e.highlighter=void 0;const n=r(2950),i=r(110),o=r(8658),s=r(7496),a=r(8535),l=r(1146),c=r(8921),u=r(3377);e.highlighter=function(t,r,n){const o=new i.ColorPicker(t,r),s="NativeMML"===n.renderer&&"Safari"===n.browser?"MML-CSS":"SVG"===n.renderer&&"v3"===n.browser?"SVG-V3":n.renderer,a=new(e.highlighterMapping_[s]||e.highlighterMapping_.NativeMML);return a.setColor(o),a},e.addEvents=function(t,r,n){const i=e.highlighterMapping_[n.renderer];i&&(new i).addEvents(t,r)},e.highlighterMapping_={SVG:c.SvgHighlighter,"SVG-V3":u.SvgV3Highlighter,NativeMML:l.MmlHighlighter,"HTML-CSS":s.HtmlHighlighter,"MML-CSS":a.MmlCssHighlighter,CommonHTML:o.CssHighlighter,CHTML:n.ChtmlHighlighter}},7496:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HtmlHighlighter=void 0;const n=r(1838),i=r(1559);class o extends i.AbstractHighlighter{constructor(){super(),this.mactionName="maction"}highlightNode(t){const e={node:t,foreground:t.style.color,position:t.style.position},r=this.color.rgb();t.style.color=r.foreground,t.style.position="relative";const i=t.bbox;if(i&&i.w){const o=.05,s=0,a=n.createElement("span"),l=parseFloat(t.style.paddingLeft||"0");a.style.backgroundColor=r.background,a.style.opacity=r.alphaback.toString(),a.style.display="inline-block",a.style.height=i.h+i.d+2*o+"em",a.style.verticalAlign=-i.d+"em",a.style.marginTop=a.style.marginBottom=-o+"em",a.style.width=i.w+2*s+"em",a.style.marginLeft=l-s+"em",a.style.marginRight=-i.w-s-l+"em",t.parentNode.insertBefore(a,t),e.box=a}return e}unhighlightNode(t){const e=t.node;e.style.color=t.foreground,e.style.position=t.position,t.box&&t.box.parentNode.removeChild(t.box)}}e.HtmlHighlighter=o},8535:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlCssHighlighter=void 0;const n=r(8658);class i extends n.CssHighlighter{constructor(){super(),this.mactionName="maction"}getMactionNodes(t){return Array.from(t.getElementsByTagName(this.mactionName))}isMactionNode(t){return t.tagName===this.mactionName}}e.MmlCssHighlighter=i},1146:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MmlHighlighter=void 0;const n=r(1559);class i extends n.AbstractHighlighter{constructor(){super(),this.mactionName="maction"}highlightNode(t){let e=t.getAttribute("style");return e+=";background-color: "+this.colorString().background,e+=";color: "+this.colorString().foreground,t.setAttribute("style",e),{node:t}}unhighlightNode(t){let e=t.node.getAttribute("style");e=e.replace(";background-color: "+this.colorString().background,""),e=e.replace(";color: "+this.colorString().foreground,""),t.node.setAttribute("style",e)}colorString(){return this.color.rgba()}getMactionNodes(t){return Array.from(t.getElementsByTagName(this.mactionName))}isMactionNode(t){return t.tagName===this.mactionName}}e.MmlHighlighter=i},8921:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SvgHighlighter=void 0;const n=r(1838),i=r(1559);class o extends i.AbstractHighlighter{constructor(){super(),this.mactionName="mjx-svg-maction"}highlightNode(t){let e;if(this.isHighlighted(t))return e={node:t.previousSibling||t,background:t.style.backgroundColor,foreground:t.style.color},e;if("svg"===t.tagName){const e={node:t,background:t.style.backgroundColor,foreground:t.style.color};return t.style.backgroundColor=this.colorString().background,t.style.color=this.colorString().foreground,e}const r=n.createElementNS("http://www.w3.org/2000/svg","rect");let o;if("use"===t.nodeName){const e=n.createElementNS("http://www.w3.org/2000/svg","g");t.parentNode.insertBefore(e,t),e.appendChild(t),o=e.getBBox(),e.parentNode.replaceChild(t,e)}else o=t.getBBox();r.setAttribute("x",(o.x-40).toString()),r.setAttribute("y",(o.y-40).toString()),r.setAttribute("width",(o.width+80).toString()),r.setAttribute("height",(o.height+80).toString());const s=t.getAttribute("transform");return s&&r.setAttribute("transform",s),r.setAttribute("fill",this.colorString().background),r.setAttribute(i.AbstractHighlighter.ATTR,"true"),t.parentNode.insertBefore(r,t),e={node:r,foreground:t.getAttribute("fill")},t.setAttribute("fill",this.colorString().foreground),e}setHighlighted(t){"svg"===t.tagName&&super.setHighlighted(t)}unhighlightNode(t){if("background"in t)return t.node.style.backgroundColor=t.background,void(t.node.style.color=t.foreground);t.foreground?t.node.nextSibling.setAttribute("fill",t.foreground):t.node.nextSibling.removeAttribute("fill"),t.node.parentNode.removeChild(t.node)}isMactionNode(t){let e=t.className||t.getAttribute("class");return e=void 0!==e.baseVal?e.baseVal:e,!!e&&!!e.match(new RegExp(this.mactionName))}}e.SvgHighlighter=o},3377:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SvgV3Highlighter=void 0;const n=r(1838),i=r(7604),o=r(1559),s=r(110),a=r(8921);class l extends a.SvgHighlighter{constructor(){super(),this.mactionName="maction"}highlightNode(t){let e;if(this.isHighlighted(t))return e={node:t,background:this.colorString().background,foreground:this.colorString().foreground},e;if("svg"===t.tagName||"MJX-CONTAINER"===t.tagName)return e={node:t,background:t.style.backgroundColor,foreground:t.style.color},t.style.backgroundColor=this.colorString().background,t.style.color=this.colorString().foreground,e;const r=n.createElementNS("http://www.w3.org/2000/svg","rect");r.setAttribute("sre-highlighter-added","true");const i=t.getBBox();r.setAttribute("x",(i.x-40).toString()),r.setAttribute("y",(i.y-40).toString()),r.setAttribute("width",(i.width+80).toString()),r.setAttribute("height",(i.height+80).toString());const a=t.getAttribute("transform");if(a&&r.setAttribute("transform",a),r.setAttribute("fill",this.colorString().background),t.setAttribute(o.AbstractHighlighter.ATTR,"true"),t.parentNode.insertBefore(r,t),e={node:t,foreground:t.getAttribute("fill")},"rect"===t.nodeName){const e=new s.ColorPicker({alpha:0,color:"black"});t.setAttribute("fill",e.rgba().foreground)}else t.setAttribute("fill",this.colorString().foreground);return e}unhighlightNode(t){const e=t.node.previousSibling;if(e&&e.hasAttribute("sre-highlighter-added"))return t.foreground?t.node.setAttribute("fill",t.foreground):t.node.removeAttribute("fill"),void t.node.parentNode.removeChild(e);t.node.style.backgroundColor=t.background,t.node.style.color=t.foreground}isMactionNode(t){return t.getAttribute("data-mml-node")===this.mactionName}getMactionNodes(t){return Array.from(i.evalXPath(`.//*[@data-mml-node="${this.mactionName}"]`,t))}}e.SvgV3Highlighter=l},2818:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StaticTrieNode=e.AbstractTrieNode=void 0;const n=r(4890),i=r(9370);class o{constructor(t,e){this.constraint=t,this.test=e,this.children_={},this.kind=i.TrieNodeKind.ROOT}getConstraint(){return this.constraint}getKind(){return this.kind}applyTest(t){return this.test(t)}addChild(t){const e=t.getConstraint(),r=this.children_[e];return this.children_[e]=t,r}getChild(t){return this.children_[t]}getChildren(){const t=[];for(const e in this.children_)t.push(this.children_[e]);return t}findChildren(t){const e=[];for(const r in this.children_){const n=this.children_[r];n.applyTest(t)&&e.push(n)}return e}removeChild(t){delete this.children_[t]}toString(){return this.constraint}}e.AbstractTrieNode=o;e.StaticTrieNode=class extends o{constructor(t,e){super(t,e),this.rule_=null,this.kind=i.TrieNodeKind.STATIC}getRule(){return this.rule_}setRule(t){this.rule_&&n.Debugger.getInstance().output("Replacing rule "+this.rule_+" with "+t),this.rule_=t}toString(){return this.getRule()?this.constraint+"\n==> "+this.getRule().action:this.constraint}}},3315:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Trie=void 0;const n=r(9370),i=r(6070);class o{constructor(){this.root=(0,i.getNode)(n.TrieNodeKind.ROOT,"",null)}static collectRules_(t){const e=[];let r=[t];for(;r.length;){const t=r.shift();if(t.getKind()===n.TrieNodeKind.QUERY||t.getKind()===n.TrieNodeKind.BOOLEAN){const r=t.getRule();r&&e.unshift(r)}r=r.concat(t.getChildren())}return e}static printWithDepth_(t,e,r){r+=new Array(e+2).join(e.toString())+": "+t.toString()+"\n";const n=t.getChildren();for(let t,i=0;t=n[i];i++)r=o.printWithDepth_(t,e+1,r);return r}static order_(t){const e=t.getChildren();if(!e.length)return 0;const r=Math.max.apply(null,e.map(o.order_));return Math.max(e.length,r)}addRule(t){let e=this.root;const r=t.context,i=t.dynamicCstr.getValues();for(let t=0,o=i.length;t<o;t++)e=this.addNode_(e,i[t],n.TrieNodeKind.DYNAMIC,r);e=this.addNode_(e,t.precondition.query,n.TrieNodeKind.QUERY,r);const o=t.precondition.constraints;for(let t=0,i=o.length;t<i;t++)e=this.addNode_(e,o[t],n.TrieNodeKind.BOOLEAN,r);e.setRule(t)}lookupRules(t,e){let r=[this.root];const i=[];for(;e.length;){const t=e.shift(),i=[];for(;r.length;){r.shift().getChildren().forEach((e=>{e.getKind()===n.TrieNodeKind.DYNAMIC&&-1===t.indexOf(e.getConstraint())||i.push(e)}))}r=i.slice()}for(;r.length;){const e=r.shift();if(e.getRule){const t=e.getRule();t&&i.push(t)}const n=e.findChildren(t);r=r.concat(n)}return i}hasSubtrie(t){let e=this.root;for(let r=0,n=t.length;r<n;r++){const n=t[r];if(e=e.getChild(n),!e)return!1}return!0}toString(){return o.printWithDepth_(this.root,0,"")}collectRules(){return o.collectRules_(this.root)}order(){return o.order_(this.root)}enumerate(t){return this.enumerate_(this.root,t)}byConstraint(t){let e=this.root;for(;t.length&&e;){const r=t.shift();e=e.getChild(r)}return e||null}enumerate_(t,e){e=e||{};const r=t.getChildren();for(let t,i=0;t=r[i];i++)t.kind===n.TrieNodeKind.DYNAMIC&&(e[t.getConstraint()]=this.enumerate_(t,e[t.getConstraint()]));return e}addNode_(t,e,r,n){let o=t.getChild(e);return o||(o=(0,i.getNode)(r,e,n),t.addChild(o)),o}}e.Trie=o},9370:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TrieNodeKind=void 0,function(t){t.ROOT="root",t.DYNAMIC="dynamic",t.QUERY="query",t.BOOLEAN="boolean",t.STATIC="static"}(e.TrieNodeKind||(e.TrieNodeKind={}))},6070:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BooleanTrieNode=e.QueryTrieNode=e.constraintTest_=e.DynamicTrieNode=e.RootTrieNode=e.getNode=void 0;const n=r(1838),i=r(7604),o=r(5215),s=r(9089),a=r(2818),l=r(2818),c=r(9370);e.getNode=function(t,e,r){switch(t){case c.TrieNodeKind.ROOT:return new u;case c.TrieNodeKind.DYNAMIC:return new h(e);case c.TrieNodeKind.QUERY:return new f(e,r);case c.TrieNodeKind.BOOLEAN:return new m(e,r);default:return null}};class u extends a.AbstractTrieNode{constructor(){super("",(()=>!0)),this.kind=c.TrieNodeKind.ROOT}}e.RootTrieNode=u;class h extends a.AbstractTrieNode{constructor(t){super(t,(e=>e===t)),this.kind=c.TrieNodeKind.DYNAMIC}}e.DynamicTrieNode=h;const p={"=":(t,e)=>t===e,"!=":(t,e)=>t!==e,"<":(t,e)=>t<e,">":(t,e)=>t>e,"<=":(t,e)=>t<=e,">=":(t,e)=>t>=e};function d(t){if(t.match(/^self::\*$/))return t=>!0;if(t.match(/^self::\w+$/)){const e=t.slice(6).toUpperCase();return t=>t.tagName&&n.tagName(t)===e}if(t.match(/^self::\w+:\w+$/)){const e=t.split(":"),r=i.resolveNameSpace(e[2]);if(!r)return null;const n=e[3].toUpperCase();return t=>t.localName&&t.localName.toUpperCase()===n&&t.namespaceURI===r}if(t.match(/^@\w+$/)){const e=t.slice(1);return t=>t.hasAttribute&&t.hasAttribute(e)}if(t.match(/^@\w+="[\w\d ]+"$/)){const e=t.split("="),r=e[0].slice(1),n=e[1].slice(1,-1);return t=>t.hasAttribute&&t.hasAttribute(r)&&t.getAttribute(r)===n}if(t.match(/^@\w+!="[\w\d ]+"$/)){const e=t.split("!="),r=e[0].slice(1),n=e[1].slice(1,-1);return t=>!t.hasAttribute||!t.hasAttribute(r)||t.getAttribute(r)!==n}if(t.match(/^contains\(\s*@grammar\s*,\s*"[\w\d ]+"\s*\)$/)){const e=t.split('"')[1];return t=>!!o.Grammar.getInstance().getParameter(e)}if(t.match(/^not\(\s*contains\(\s*@grammar\s*,\s*"[\w\d ]+"\s*\)\s*\)$/)){const e=t.split('"')[1];return t=>!o.Grammar.getInstance().getParameter(e)}if(t.match(/^name\(\.\.\/\.\.\)="\w+"$/)){const e=t.split('"')[1].toUpperCase();return t=>{var r,i;return(null===(i=null===(r=t.parentNode)||void 0===r?void 0:r.parentNode)||void 0===i?void 0:i.tagName)&&n.tagName(t.parentNode.parentNode)===e}}if(t.match(/^count\(preceding-sibling::\*\)=\d+$/)){const e=t.split("="),r=parseInt(e[1],10);return t=>{var e;return(null===(e=t.parentNode)||void 0===e?void 0:e.childNodes[r])===t}}if(t.match(/^.+\[@category!?=".+"\]$/)){let[,e,r,n]=t.match(/^(.+)\[@category(!?=)"(.+)"\]$/);const o=n.match(/^unit:(.+)$/);let a="";return o&&(n=o[1],a=":unit"),t=>{const o=i.evalXPath(e,t)[0];if(o){const t=s.lookupCategory(o.textContent+a);return"="===r?t===n:t!==n}return!1}}if(t.match(/^string-length\(.+\)\W+\d+/)){const[,e,r,n]=t.match(/^string-length\((.+)\)(\W+)(\d+)/),o=p[r]||p["="],s=parseInt(n,10);return t=>{const r=i.evalXPath(e,t)[0];return!!r&&o(Array.from(r.textContent).length,s)}}return null}e.constraintTest_=d;class f extends l.StaticTrieNode{constructor(t,e){super(t,d(t)),this.context=e,this.kind=c.TrieNodeKind.QUERY}applyTest(t){return this.test?this.test(t):this.context.applyQuery(t,this.constraint)===t}}e.QueryTrieNode=f;class m extends l.StaticTrieNode{constructor(t,e){super(t,d(t)),this.context=e,this.kind=c.TrieNodeKind.BOOLEAN}applyTest(t){return this.test?this.test(t):this.context.applyConstraint(t,this.constraint)}}e.BooleanTrieNode=m},4439:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.completeLocale=e.getLocale=e.setLocale=e.locales=void 0;const n=r(5771),i=r(6261),o=r(5215),s=r(5337),a=r(9250),l=r(8272),c=r(942),u=r(9496),h=r(4960),p=r(210),d=r(2598),f=r(4247),m=r(1717),y=r(7336),g=r(5046),b=r(2894);function v(){const t=i.Variables.ensureLocale(n.default.getInstance().locale,n.default.getInstance().defaultLocale);return n.default.getInstance().locale=t,e.locales[t]()}e.locales={ca:s.ca,da:a.da,de:l.de,en:c.en,es:u.es,fr:h.fr,hi:p.hi,it:d.it,nb:f.nb,nn:y.nn,sv:g.sv,nemeth:m.nemeth},e.setLocale=function(){const t=v();if(function(t){const e=n.default.getInstance().subiso;-1===t.SUBISO.all.indexOf(e)&&(n.default.getInstance().subiso=t.SUBISO.default);t.SUBISO.current=n.default.getInstance().subiso}(t),t){for(const e of Object.getOwnPropertyNames(t))b.LOCALE[e]=t[e];for(const[e,r]of Object.entries(t.CORRECTIONS))o.Grammar.getInstance().setCorrection(e,r)}},e.getLocale=v,e.completeLocale=function(t){const r=e.locales[t.locale];if(!r)return void console.error("Locale "+t.locale+" does not exist!");const n=t.kind.toUpperCase(),i=t.messages;if(!i)return;const o=r();for(const[t,e]of Object.entries(i))o[n][t]=e}},2894:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createLocale=e.LOCALE=void 0;const n=r(5467);function i(){return{FUNCTIONS:(0,n.FUNCTIONS)(),MESSAGES:(0,n.MESSAGES)(),ALPHABETS:(0,n.ALPHABETS)(),NUMBERS:(0,n.NUMBERS)(),COMBINERS:{},CORRECTIONS:{},SUBISO:(0,n.SUBISO)()}}e.LOCALE=i(),e.createLocale=i},8210:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.localeFontCombiner=e.extractString=e.localEnclose=e.localRole=e.localFont=e.combinePostfixIndex=e.nestingToString=void 0;const n=r(2894),i=r(2634);function o(t,e){return void 0===t?e:"string"==typeof t?t:t[0]}e.nestingToString=function(t){switch(t){case 1:return n.LOCALE.MESSAGES.MS.ONCE||"";case 2:return n.LOCALE.MESSAGES.MS.TWICE;default:return t.toString()}},e.combinePostfixIndex=function(t,e){return t===n.LOCALE.MESSAGES.MS.ROOTINDEX||t===n.LOCALE.MESSAGES.MS.INDEX?t:t+" "+e},e.localFont=function(t){return o(n.LOCALE.MESSAGES.font[t],t)},e.localRole=function(t){return o(n.LOCALE.MESSAGES.role[t],t)},e.localEnclose=function(t){return o(n.LOCALE.MESSAGES.enclose[t],t)},e.extractString=o,e.localeFontCombiner=function(t){return"string"==typeof t?{font:t,combiner:n.LOCALE.ALPHABETS.combiner}:{font:t[0],combiner:n.LOCALE.COMBINERS[t[1]]||i.Combiners[t[1]]||n.LOCALE.ALPHABETS.combiner}}},5337:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ca=void 0;const n=r(2894),i=r(8210),o=r(2089),s=r(2634),a=function(t,e,r){return t="sans serif "+(r?r+" "+t:t),e?t+" "+e:t};let l=null;e.ca=function(){return l||(l=function(){const t=(0,n.createLocale)();return t.NUMBERS=o.default,t.COMBINERS.sansserif=a,t.FUNCTIONS.fracNestDepth=t=>!1,t.FUNCTIONS.combineRootIndex=i.combinePostfixIndex,t.FUNCTIONS.combineNestedRadical=(t,e,r)=>t+r,t.FUNCTIONS.fontRegexp=t=>RegExp("^"+t+" "),t.FUNCTIONS.plural=t=>/.*os$/.test(t)?t+"sos":/.*s$/.test(t)?t+"os":/.*ga$/.test(t)?t.slice(0,-2)+"gues":/.*\xe7a$/.test(t)?t.slice(0,-2)+"ces":/.*ca$/.test(t)?t.slice(0,-2)+"ques":/.*ja$/.test(t)?t.slice(0,-2)+"ges":/.*qua$/.test(t)?t.slice(0,-3)+"q\xfces":/.*a$/.test(t)?t.slice(0,-1)+"es":/.*(e|i)$/.test(t)?t+"ns":/.*\xed$/.test(t)?t.slice(0,-1)+"ins":t+"s",t.FUNCTIONS.si=(t,e)=>(e.match(/^metre/)&&(t=t.replace(/a$/,"\xe0").replace(/o$/,"\xf2").replace(/i$/,"\xed")),t+e),t.ALPHABETS.combiner=s.Combiners.prefixCombiner,t}()),l}},9250:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.da=void 0;const n=r(2894),i=r(8210),o=r(5821),s=r(2634);let a=null;e.da=function(){return a||(a=function(){const t=(0,n.createLocale)();return t.NUMBERS=o.default,t.FUNCTIONS.radicalNestDepth=i.nestingToString,t.FUNCTIONS.fontRegexp=e=>e===t.ALPHABETS.capPrefix.default?RegExp("^"+e+" "):RegExp(" "+e+"$"),t.ALPHABETS.combiner=s.Combiners.postfixCombiner,t.ALPHABETS.digitTrans.default=o.default.numberToWords,t}()),a}},8272:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.de=void 0;const n=r(5215),i=r(8210),o=r(2894),s=r(4624),a=function(t,e,r){return"s"===r&&(e=e.split(" ").map((function(t){return t.replace(/s$/,"")})).join(" "),r=""),t=r?r+" "+t:t,e?e+" "+t:t},l=function(t,e,r){return t=r&&"s"!==r?r+" "+t:t,e?t+" "+e:t};let c=null;e.de=function(){return c||(c=function(){const t=(0,o.createLocale)();return t.NUMBERS=s.default,t.COMBINERS.germanPostfix=l,t.ALPHABETS.combiner=a,t.FUNCTIONS.radicalNestDepth=e=>e>1?t.NUMBERS.numberToWords(e)+"fach":"",t.FUNCTIONS.combineRootIndex=(t,e)=>{const r=e?e+"wurzel":"";return t.replace("Wurzel",r)},t.FUNCTIONS.combineNestedRadical=(t,e,r)=>{const n=(e?e+" ":"")+(t=r.match(/exponent$/)?t+"r":t);return r.match(/ /)?r.replace(/ /," "+n+" "):n+" "+r},t.FUNCTIONS.fontRegexp=function(t){return t=t.split(" ").map((function(t){return t.replace(/s$/,"(|s)")})).join(" "),new RegExp("((^"+t+" )|( "+t+"$))")},t.CORRECTIONS.correctOne=t=>t.replace(/^eins$/,"ein"),t.CORRECTIONS.localFontNumber=t=>(0,i.localFont)(t).split(" ").map((function(t){return t.replace(/s$/,"")})).join(" "),t.CORRECTIONS.lowercase=t=>t.toLowerCase(),t.CORRECTIONS.article=t=>{const e=n.Grammar.getInstance().getParameter("case"),r=n.Grammar.getInstance().getParameter("plural");return"dative"===e?{der:"dem",die:r?"den":"der",das:"dem"}[t]:t},t.CORRECTIONS.masculine=t=>"dative"===n.Grammar.getInstance().getParameter("case")?t+"n":t,t}()),c}},942:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.en=void 0;const n=r(5215),i=r(2894),o=r(8210),s=r(1355),a=r(2634);let l=null;e.en=function(){return l||(l=function(){const t=(0,i.createLocale)();return t.NUMBERS=s.default,t.FUNCTIONS.radicalNestDepth=o.nestingToString,t.FUNCTIONS.plural=t=>/.*s$/.test(t)?t:t+"s",t.ALPHABETS.combiner=a.Combiners.prefixCombiner,t.ALPHABETS.digitTrans.default=s.default.numberToWords,t.CORRECTIONS.article=t=>n.Grammar.getInstance().getParameter("noArticle")?"":t,t}()),l}},9496:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.es=void 0;const n=r(2894),i=r(8210),o=r(7e3),s=r(2634),a=function(t,e,r){return t="sans serif "+(r?r+" "+t:t),e?t+" "+e:t};let l=null;e.es=function(){return l||(l=function(){const t=(0,n.createLocale)();return t.NUMBERS=o.default,t.COMBINERS.sansserif=a,t.FUNCTIONS.fracNestDepth=t=>!1,t.FUNCTIONS.combineRootIndex=i.combinePostfixIndex,t.FUNCTIONS.combineNestedRadical=(t,e,r)=>t+r,t.FUNCTIONS.fontRegexp=t=>RegExp("^"+t+" "),t.FUNCTIONS.plural=t=>/.*(a|e|i|o|u)$/.test(t)?t+"s":/.*z$/.test(t)?t.slice(0,-1)+"ces":/.*c$/.test(t)?t.slice(0,-1)+"ques":/.*g$/.test(t)?t+"ues":/.*\u00f3n$/.test(t)?t.slice(0,-2)+"ones":t+"es",t.FUNCTIONS.si=(t,e)=>(e.match(/^metro/)&&(t=t.replace(/a$/,"\xe1").replace(/o$/,"\xf3").replace(/i$/,"\xed")),t+e),t.ALPHABETS.combiner=s.Combiners.prefixCombiner,t}()),l}},4960:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fr=void 0;const n=r(5215),i=r(2894),o=r(8210),s=r(5021),a=r(2634);let l=null;e.fr=function(){return l||(l=function(){const t=(0,i.createLocale)();return t.NUMBERS=s.default,t.FUNCTIONS.radicalNestDepth=o.nestingToString,t.FUNCTIONS.combineRootIndex=o.combinePostfixIndex,t.FUNCTIONS.combineNestedFraction=(t,e,r)=>r.replace(/ $/g,"")+e+t,t.FUNCTIONS.combineNestedRadical=(t,e,r)=>r+" "+t,t.FUNCTIONS.fontRegexp=t=>RegExp(" (en |)"+t+"$"),t.FUNCTIONS.plural=t=>/.*s$/.test(t)?t:t+"s",t.CORRECTIONS.article=t=>n.Grammar.getInstance().getParameter("noArticle")?"":t,t.ALPHABETS.combiner=a.Combiners.romanceCombiner,t.SUBISO={default:"fr",current:"fr",all:["fr","be","ch"]},t}()),l}},210:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hi=void 0;const n=r(2894),i=r(3673),o=r(2634),s=r(8210);let a=null;e.hi=function(){return a||(a=function(){const t=(0,n.createLocale)();return t.NUMBERS=i.default,t.ALPHABETS.combiner=o.Combiners.prefixCombiner,t.FUNCTIONS.radicalNestDepth=s.nestingToString,t}()),a}},2598:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.it=void 0;const n=r(8210),i=r(2894),o=r(2180),s=r(2634),a=function(t,e,r){return t.match(/^[a-zA-Z]$/)&&(e=e.replace("cerchiato","cerchiata")),t=r?t+" "+r:t,e?t+" "+e:t};let l=null;e.it=function(){return l||(l=function(){const t=(0,i.createLocale)();return t.NUMBERS=o.default,t.COMBINERS.italianPostfix=a,t.FUNCTIONS.radicalNestDepth=n.nestingToString,t.FUNCTIONS.combineRootIndex=n.combinePostfixIndex,t.FUNCTIONS.combineNestedFraction=(t,e,r)=>r.replace(/ $/g,"")+e+t,t.FUNCTIONS.combineNestedRadical=(t,e,r)=>r+" "+t,t.FUNCTIONS.fontRegexp=t=>RegExp(" (en |)"+t+"$"),t.ALPHABETS.combiner=s.Combiners.romanceCombiner,t}()),l}},4247:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nb=void 0;const n=r(2894),i=r(8210),o=r(6842),s=r(2634);let a=null;e.nb=function(){return a||(a=function(){const t=(0,n.createLocale)();return t.NUMBERS=o.default,t.ALPHABETS.combiner=s.Combiners.prefixCombiner,t.ALPHABETS.digitTrans.default=o.default.numberToWords,t.FUNCTIONS.radicalNestDepth=i.nestingToString,t}()),a}},1717:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nemeth=void 0;const n=r(2894),i=r(9033),o=r(2634),s=function(t){return t.match(RegExp("^"+p.ALPHABETS.languagePrefix.english))?t.slice(1):t},a=function(t,e,r){return t=s(t),e?t+e:t},l=function(t,e,r){return e+s(t)},c=function(t,e,r){return e+(r||"")+(t=s(t))+"\u283b"},u=function(t,e,r){return e+(r||"")+(t=s(t))+"\u283b\u283b"},h=function(t,e,r){return e+(t=s(t))+"\u283e"};let p=null;e.nemeth=function(){return p||(p=function(){const t=(0,n.createLocale)();return t.NUMBERS=i.default,t.COMBINERS={postfixCombiner:a,germanCombiner:l,embellishCombiner:c,doubleEmbellishCombiner:u,parensCombiner:h},t.FUNCTIONS.fracNestDepth=t=>!1,t.FUNCTIONS.fontRegexp=t=>RegExp("^"+t),t.FUNCTIONS.si=o.identityTransformer,t.ALPHABETS.combiner=(t,e,r)=>e?e+r+t:s(t),t.ALPHABETS.digitTrans={default:i.default.numberToWords},t}()),p}},7336:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nn=void 0;const n=r(2894),i=r(8210),o=r(6842),s=r(2634);let a=null;e.nn=function(){return a||(a=function(){const t=(0,n.createLocale)();return t.NUMBERS=o.default,t.ALPHABETS.combiner=s.Combiners.prefixCombiner,t.ALPHABETS.digitTrans.default=o.default.numberToWords,t.FUNCTIONS.radicalNestDepth=i.nestingToString,t.SUBISO={default:"",current:"",all:["","alt"]},t}()),a}},5046:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sv=void 0;const n=r(2894),i=r(8210),o=r(3124),s=r(2634);let a=null;e.sv=function(){return a||(a=function(){const t=(0,n.createLocale)();return t.NUMBERS=o.default,t.FUNCTIONS.radicalNestDepth=i.nestingToString,t.FUNCTIONS.fontRegexp=function(t){return new RegExp("((^"+t+" )|( "+t+"$))")},t.ALPHABETS.combiner=s.Combiners.prefixCombiner,t.ALPHABETS.digitTrans.default=o.default.numberToWords,t.CORRECTIONS.correctOne=t=>t.replace(/^ett$/,"en"),t}()),a}},5467:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SUBISO=e.FUNCTIONS=e.ALPHABETS=e.NUMBERS=e.MESSAGES=void 0;const n=r(2634);e.MESSAGES=function(){return{MS:{},MSroots:{},font:{},embellish:{},role:{},enclose:{},navigate:{},regexp:{},unitTimes:""}},e.NUMBERS=function(){return{zero:"zero",ones:[],tens:[],large:[],special:{},wordOrdinal:n.identityTransformer,numericOrdinal:n.identityTransformer,numberToWords:n.identityTransformer,numberToOrdinal:n.pluralCase,vulgarSep:" ",numSep:" "}},e.ALPHABETS=function(){return{latinSmall:[],latinCap:[],greekSmall:[],greekCap:[],capPrefix:{default:""},smallPrefix:{default:""},digitPrefix:{default:""},languagePrefix:{},digitTrans:{default:n.identityTransformer,mathspeak:n.identityTransformer,clearspeak:n.identityTransformer},letterTrans:{default:n.identityTransformer},combiner:(t,e,r)=>t}},e.FUNCTIONS=function(){return{fracNestDepth:t=>n.vulgarFractionSmall(t,10,100),radicalNestDepth:t=>"",combineRootIndex:function(t,e){return t},combineNestedFraction:n.Combiners.identityCombiner,combineNestedRadical:n.Combiners.identityCombiner,fontRegexp:function(t){return new RegExp("^"+t.split(/ |-/).join("( |-)")+"( |-)")},si:n.siCombiner,plural:n.identityTransformer}},e.SUBISO=function(){return{default:"",current:"",all:[]}}},2089:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(5215);function i(t){const e=t%1e3,r=Math.floor(e/100),n=r?1===r?"cent":a.ones[r]+"-cents":"",i=function(t){const e=t%100;if(e<20)return a.ones[e];const r=Math.floor(e/10),n=a.tens[r],i=a.ones[e%10];return n&&i?n+(2===r?"-i-":"-")+i:n||i}(e%100);return n&&i?n+a.numSep+i:n||i}function o(t){if(0===t)return a.zero;if(t>=Math.pow(10,36))return t.toString();let e=0,r="";for(;t>0;){const n=t%(e>1?1e6:1e3);if(n){let t=a.large[e];if(e)if(1===e)r=(1===n?"":i(n)+a.numSep)+t+(r?a.numSep+r:"");else{const e=o(n);t=1===n?t:t.replace(/\u00f3$/,"ons"),r=e+a.numSep+t+(r?a.numSep+r:"")}else r=i(n)}t=Math.floor(t/(e>1?1e6:1e3)),e++}return r}function s(t){const e=n.Grammar.getInstance().getParameter("gender");return t.toString()+("f"===e?"a":"n")}const a=(0,r(5467).NUMBERS)();a.numericOrdinal=s,a.numberToWords=o,a.numberToOrdinal=function(t,e){if(t>1999)return s(t);if(t<=10)return a.special.onesOrdinals[t-1];const r=o(t);return r.match(/mil$/)?r.replace(/mil$/,"mil\xb7l\xe8sima"):r.match(/u$/)?r.replace(/u$/,"vena"):r.match(/a$/)?r.replace(/a$/,"ena"):r+(r.match(/e$/)?"na":"ena")},e.default=a},5821:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t,e=!1){return t===a.ones[1]?e?"et":"en":t}function i(t,e=!1){let r=t%1e3,i="",o=a.ones[Math.floor(r/100)];if(i+=o?n(o,!0)+" hundrede":"",r%=100,r)if(i+=i?" og ":"",o=e?a.special.smallOrdinals[r]:a.ones[r],o)i+=o;else{const t=e?a.special.tensOrdinals[Math.floor(r/10)]:a.tens[Math.floor(r/10)];o=a.ones[r%10],i+=o?n(o)+"og"+t:t}return i}function o(t,e=!1){if(0===t)return a.zero;if(t>=Math.pow(10,36))return t.toString();let r=0,o="";for(;t>0;){const s=t%1e3;if(s){const t=i(s,e&&!r);if(r){const e=a.large[r],i=s>1?"er":"";o=n(t,r<=1)+" "+e+i+(o?" og ":"")+o}else o=n(t)+o}t=Math.floor(t/1e3),r++}return o}function s(t){if(t%100)return o(t,!0);const e=o(t);return e.match(/e$/)?e:e+"e"}const a=(0,r(5467).NUMBERS)();a.wordOrdinal=s,a.numericOrdinal=function(t){return t.toString()+"."},a.numberToWords=o,a.numberToOrdinal=function(t,e){return 1===t?e?"hel":"hele":2===t?e?"halv":"halve":s(t)+(e?"dele":"del")},e.default=a},4624:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t,e=!1){return t===a.ones[1]?e?"eine":"ein":t}function i(t){let e=t%1e3,r="",i=a.ones[Math.floor(e/100)];if(r+=i?n(i)+"hundert":"",e%=100,e)if(r+=r?a.numSep:"",i=a.ones[e],i)r+=i;else{const t=a.tens[Math.floor(e/10)];i=a.ones[e%10],r+=i?n(i)+"und"+t:t}return r}function o(t){if(0===t)return a.zero;if(t>=Math.pow(10,36))return t.toString();let e=0,r="";for(;t>0;){const o=t%1e3;if(o){const s=i(t%1e3);if(e){const t=a.large[e],i=e>1&&o>1?t.match(/e$/)?"n":"en":"";r=n(s,e>1)+t+i+r}else r=n(s,e>1)+r}t=Math.floor(t/1e3),e++}return r.replace(/ein$/,"eins")}function s(t){if(1===t)return"erste";if(3===t)return"dritte";if(7===t)return"siebte";if(8===t)return"achte";return o(t)+(t<19?"te":"ste")}const a=(0,r(5467).NUMBERS)();a.wordOrdinal=s,a.numericOrdinal=function(t){return t.toString()+"."},a.numberToWords=o,a.numberToOrdinal=function(t,e){return 1===t?"eintel":2===t?e?"halbe":"halb":s(t)+"l"},e.default=a},1355:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t){let e=t%1e3,r="";return r+=s.ones[Math.floor(e/100)]?s.ones[Math.floor(e/100)]+s.numSep+"hundred":"",e%=100,e&&(r+=r?s.numSep:"",r+=s.ones[e]||s.tens[Math.floor(e/10)]+(e%10?s.numSep+s.ones[e%10]:"")),r}function i(t){if(0===t)return s.zero;if(t>=Math.pow(10,36))return t.toString();let e=0,r="";for(;t>0;){t%1e3&&(r=n(t%1e3)+(e?"-"+s.large[e]+"-":"")+r),t=Math.floor(t/1e3),e++}return r.replace(/-$/,"")}function o(t){let e=i(t);return e.match(/one$/)?e=e.slice(0,-3)+"first":e.match(/two$/)?e=e.slice(0,-3)+"second":e.match(/three$/)?e=e.slice(0,-5)+"third":e.match(/five$/)?e=e.slice(0,-4)+"fifth":e.match(/eight$/)?e=e.slice(0,-5)+"eighth":e.match(/nine$/)?e=e.slice(0,-4)+"ninth":e.match(/twelve$/)?e=e.slice(0,-6)+"twelfth":e.match(/ty$/)?e=e.slice(0,-2)+"tieth":e+="th",e}const s=(0,r(5467).NUMBERS)();s.wordOrdinal=o,s.numericOrdinal=function(t){const e=t%100,r=t.toString();if(e>10&&e<20)return r+"th";switch(t%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd";default:return r+"th"}},s.numberToWords=i,s.numberToOrdinal=function(t,e){if(1===t)return e?"oneths":"oneth";if(2===t)return e?"halves":"half";const r=o(t);return e?r+"s":r},e.default=s},7e3:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(5215);function i(t){const e=t%1e3,r=Math.floor(e/100),n=o.special.hundreds[r],i=function(t){const e=t%100;if(e<30)return o.ones[e];const r=o.tens[Math.floor(e/10)],n=o.ones[e%10];return r&&n?r+" y "+n:r||n}(e%100);return 1===r?i?n+"to "+i:n:n&&i?n+" "+i:n||i}const o=(0,r(5467).NUMBERS)();o.numericOrdinal=function(t){const e=n.Grammar.getInstance().getParameter("gender");return t.toString()+("f"===e?"a":"o")},o.numberToWords=function(t){if(0===t)return o.zero;if(t>=Math.pow(10,36))return t.toString();let e=0,r="";for(;t>0;){const n=t%1e3;if(n){let t=o.large[e];const s=i(n);e?1===n?(t=t.match("/^mil( |$)/")?t:"un "+t,r=t+(r?" "+r:"")):(t=t.replace(/\u00f3n$/,"ones"),r=i(n)+" "+t+(r?" "+r:"")):r=s}t=Math.floor(t/1e3),e++}return r},o.numberToOrdinal=function(t,e){if(t>1999)return t.toString()+"a";if(t<=12)return o.special.onesOrdinals[t-1];const r=[];if(t>=1e3&&(t-=1e3,r.push("mil\xe9sima")),!t)return r.join(" ");let n=0;return n=Math.floor(t/100),n>0&&(r.push(o.special.hundredsOrdinals[n-1]),t%=100),t<=12?r.push(o.special.onesOrdinals[t-1]):(n=Math.floor(t/10),n>0&&(r.push(o.special.tensOrdinals[n-1]),t%=10),t>0&&r.push(o.special.onesOrdinals[t-1])),r.join(" ")},e.default=o},5021:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(5771),i=r(5215),o=r(5467);function s(t){let e=t%1e3,r="";if(r+=u.ones[Math.floor(e/100)]?u.ones[Math.floor(e/100)]+"-cent":"",e%=100,e){r+=r?"-":"";let t=u.ones[e];if(t)r+=t;else{const n=u.tens[Math.floor(e/10)];n.match(/-dix$/)?(t=u.ones[e%10+10],r+=n.replace(/-dix$/,"")+"-"+t):r+=n+(e%10?"-"+u.ones[e%10]:"")}}const n=r.match(/s-\w+$/);return n?r.replace(/s-\w+$/,n[0].slice(1)):r.replace(/-un$/,"-et-un")}function a(t){if(0===t)return u.zero;if(t>=Math.pow(10,36))return t.toString();u.special["tens-"+n.default.getInstance().subiso]&&(u.tens=u.special["tens-"+n.default.getInstance().subiso]);let e=0,r="";for(;t>0;){const n=t%1e3;if(n){let t=u.large[e];const i=s(n);if(t&&t.match(/^mille /)){const n=t.replace(/^mille /,"");r=r.match(RegExp(n))?i+(e?"-mille-":"")+r:r.match(RegExp(n.replace(/s$/,"")))?i+(e?"-mille-":"")+r.replace(n.replace(/s$/,""),n):i+(e?"-"+t+"-":"")+r}else t=1===n&&t?t.replace(/s$/,""):t,r=i+(e?"-"+t+"-":"")+r}t=Math.floor(t/1e3),e++}return r.replace(/-$/,"")}const l={1:"uni\xe8me",2:"demi",3:"tiers",4:"quart"};function c(t){if(1===t)return"premi\xe8re";let e=a(t);return e.match(/^neuf$/)?e=e.slice(0,-1)+"v":e.match(/cinq$/)?e+="u":e.match(/trois$/)?e+="":(e.match(/e$/)||e.match(/s$/))&&(e=e.slice(0,-1)),e+="i\xe8me",e}const u=(0,o.NUMBERS)();u.wordOrdinal=c,u.numericOrdinal=function(t){const e=i.Grammar.getInstance().getParameter("gender");return 1===t?t.toString()+("m"===e?"er":"re"):t.toString()+"e"},u.numberToWords=a,u.numberToOrdinal=function(t,e){const r=l[t]||c(t);return 3===t?r:e?r+"s":r},e.default=u},3673:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(5215);function i(t){if(0===t)return s.zero;if(t>=Math.pow(10,32))return t.toString();let e=0,r="";const n=function(t){let e=t%1e3,r="";return r+=s.ones[Math.floor(e/100)]?s.ones[Math.floor(e/100)]+s.numSep+s.special.hundred:"",e%=100,e&&(r+=r?s.numSep:"",r+=s.ones[e]),r}(t%1e3);if(!(t=Math.floor(t/1e3)))return n;for(;t>0;){const n=t%100;n&&(r=s.ones[n]+s.numSep+s.large[e]+(r?s.numSep+r:"")),t=Math.floor(t/100),e++}return n?r+s.numSep+n:r}function o(t){const e=n.Grammar.getInstance().getParameter("gender");if(t<=0)return t.toString();if(t<10)return"f"===e?s.special.ordinalsFeminine[t]:s.special.ordinalsMasculine[t];return i(t)+("f"===e?"\u0935\u0940\u0902":"\u0935\u093e\u0901")}const s=(0,r(5467).NUMBERS)();s.wordOrdinal=o,s.numericOrdinal=function(t){const e=n.Grammar.getInstance().getParameter("gender");return t>0&&t<10?"f"===e?s.special.simpleSmallOrdinalsFeminine[t]:s.special.simpleSmallOrdinalsMasculine[t]:t.toString().split("").map((function(t){const e=parseInt(t,10);return isNaN(e)?"":s.special.simpleNumbers[e]})).join("")+("f"===e?"\u0935\u0940\u0902":"\u0935\u093e\u0901")},s.numberToWords=i,s.numberToOrdinal=function(t,e){return t<=10?s.special.smallDenominators[t]:o(t)+" \u0905\u0902\u0936"},e.default=s},2180:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(5215);function i(t){let e=t%1e3,r="";if(r+=a.ones[Math.floor(e/100)]?a.ones[Math.floor(e/100)]+a.numSep+"cento":"",e%=100,e){r+=r?a.numSep:"";const t=a.ones[e];if(t)r+=t;else{let t=a.tens[Math.floor(e/10)];const n=e%10;1!==n&&8!==n||(t=t.slice(0,-1)),r+=t,r+=n?a.numSep+a.ones[e%10]:""}}return r}function o(t){if(0===t)return a.zero;if(t>=Math.pow(10,36))return t.toString();if(1===t&&n.Grammar.getInstance().getParameter("fraction"))return"un";let e=0,r="";for(;t>0;){t%1e3&&(r=i(t%1e3)+(e?"-"+a.large[e]+"-":"")+r),t=Math.floor(t/1e3),e++}return r.replace(/-$/,"")}function s(t){const e="m"===n.Grammar.getInstance().getParameter("gender")?"o":"a";let r=a.special.onesOrdinals[t];return r?r.slice(0,-1)+e:(r=o(t),r.slice(0,-1)+"esim"+e)}const a=(0,r(5467).NUMBERS)();a.wordOrdinal=s,a.numericOrdinal=function(t){const e=n.Grammar.getInstance().getParameter("gender");return t.toString()+("m"===e?"o":"a")},a.numberToWords=o,a.numberToOrdinal=function(t,e){if(2===t)return e?"mezzi":"mezzo";const r=s(t);if(!e)return r;const n=r.match(/o$/)?"i":"e";return r.slice(0,-1)+n},e.default=a},9033:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t){return t.toString().split("").map((function(t){return i.ones[parseInt(t,10)]})).join("")}const i=(0,r(5467).NUMBERS)();i.numberToWords=n,i.numberToOrdinal=n,e.default=i},6842:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(5771);function i(t,e=!1){let r=t%1e3,n="";const i=Math.floor(r/100),s=a.ones[i];if(n+=s?(1===i?"":s)+"hundre":"",r%=100,r){if(n+=n?"og":"",e){const t=a.special.smallOrdinals[r];if(t)return n+t;if(r%10)return n+a.tens[Math.floor(r/10)]+a.special.smallOrdinals[r%10]}n+=a.ones[r]||a.tens[Math.floor(r/10)]+(r%10?a.ones[r%10]:"")}return e?o(n):n}function o(t){const e=a.special.endOrdinal[0];return"a"===e&&t.match(/en$/)?t.slice(0,-2)+a.special.endOrdinal:t.match(/(d|n)$/)||t.match(/hundre$/)?t+"de":t.match(/i$/)?t+a.special.endOrdinal:"a"===e&&t.match(/e$/)?t.slice(0,-1)+a.special.endOrdinal:(t.match(/e$/),t+"nde")}function s(t){return u(t,!0)}const a=(0,r(5467).NUMBERS)();function l(t,e=!1){return t===a.ones[1]?"ein"===t?"eitt ":e?"et":"ett":t}function c(t,e=!1){let r=t%1e3,n="",i=a.ones[Math.floor(r/100)];if(n+=i?l(i)+"hundre":"",r%=100,r){if(n+=n?"og":"",e){const t=a.special.smallOrdinals[r];if(t)return n+t}if(i=a.ones[r],i)n+=i;else{const t=a.tens[Math.floor(r/10)];i=a.ones[r%10],n+=i?i+"og"+t:t}}return e?o(n):n}function u(t,e=!1){const r="alt"===n.default.getInstance().subiso?function(t,e=!1){if(0===t)return e?a.special.smallOrdinals[0]:a.zero;if(t>=Math.pow(10,36))return t.toString();let r=0,n="";for(;t>0;){const i=t%1e3;if(i){const o=c(t%1e3,!r&&e);!r&&e&&(e=!e),n=(1===r?l(o,!0):o)+(r>1?a.numSep:"")+(r?a.large[r]+(r>1&&i>1?"er":""):"")+(r>1&&n?a.numSep:"")+n}t=Math.floor(t/1e3),r++}return e?n+(n.match(/tusen$/)?"de":"te"):n}(t,e):function(t,e=!1){if(0===t)return e?a.special.smallOrdinals[0]:a.zero;if(t>=Math.pow(10,36))return t.toString();let r=0,n="";for(;t>0;){const o=t%1e3;if(o){const s=i(t%1e3,!r&&e);!r&&e&&(e=!e),n=s+(r?" "+a.large[r]+(r>1&&o>1?"er":"")+(n?" ":""):"")+n}t=Math.floor(t/1e3),r++}return e?n+(n.match(/tusen$/)?"de":"te"):n}(t,e);return r}a.wordOrdinal=s,a.numericOrdinal=function(t){return t.toString()+"."},a.numberToWords=u,a.numberToOrdinal=function(t,e){return s(t)},e.default=a},3124:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(t){let e=t%1e3,r="";const n=Math.floor(e/100);return r+=s.ones[n]?(1===n?"":s.ones[n]+s.numSep)+"hundra":"",e%=100,e&&(r+=r?s.numSep:"",r+=s.ones[e]||s.tens[Math.floor(e/10)]+(e%10?s.numSep+s.ones[e%10]:"")),r}function i(t,e=!1){if(0===t)return s.zero;if(t>=Math.pow(10,36))return t.toString();let r=0,i="";for(;t>0;){const o=t%1e3;if(o){const a=s.large[r],l=o>1&&r>1&&!e?"er":"";i=(1===r&&1===o?"":(r>1&&1===o?"en":n(t%1e3))+(r>1?" ":""))+(r?a+l+(r>1?" ":""):"")+i}t=Math.floor(t/1e3),r++}return i.replace(/ $/,"")}function o(t){let e=i(t,!0);return e.match(/^noll$/)?e="nollte":e.match(/ett$/)?e=e.replace(/ett$/,"f\xf6rsta"):e.match(/tv\xe5$/)?e=e.replace(/tv\xe5$/,"andra"):e.match(/tre$/)?e=e.replace(/tre$/,"tredje"):e.match(/fyra$/)?e=e.replace(/fyra$/,"fj\xe4rde"):e.match(/fem$/)?e=e.replace(/fem$/,"femte"):e.match(/sex$/)?e=e.replace(/sex$/,"sj\xe4tte"):e.match(/sju$/)?e=e.replace(/sju$/,"sjunde"):e.match(/\xe5tta$/)?e=e.replace(/\xe5tta$/,"\xe5ttonde"):e.match(/nio$/)?e=e.replace(/nio$/,"nionde"):e.match(/tio$/)?e=e.replace(/tio$/,"tionde"):e.match(/elva$/)?e=e.replace(/elva$/,"elfte"):e.match(/tolv$/)?e=e.replace(/tolv$/,"tolfte"):e.match(/tusen$/)?e=e.replace(/tusen$/,"tusonde"):e.match(/jard$/)||e.match(/jon$/)?e+="te":e+="de",e}const s=(0,r(5467).NUMBERS)();s.wordOrdinal=o,s.numericOrdinal=function(t){const e=t.toString();return e.match(/11$|12$/)?e+":e":e+(e.match(/1$|2$/)?":a":":e")},s.numberToWords=i,s.numberToOrdinal=function(t,e){if(1===t)return"hel";if(2===t)return e?"halva":"halv";let r=o(t);return r=r.match(/de$/)?r.replace(/de$/,""):r,r+(e?"delar":"del")},e.default=s},2634:function(t,e){"use strict";function r(t,e=""){if(!t.childNodes||!t.childNodes[0]||!t.childNodes[0].childNodes||t.childNodes[0].childNodes.length<2||"number"!==t.childNodes[0].childNodes[0].tagName||"integer"!==t.childNodes[0].childNodes[0].getAttribute("role")||"number"!==t.childNodes[0].childNodes[1].tagName||"integer"!==t.childNodes[0].childNodes[1].getAttribute("role"))return{convertible:!1,content:t.textContent};const r=t.childNodes[0].childNodes[1].textContent,n=t.childNodes[0].childNodes[0].textContent,i=Number(r),o=Number(n);return isNaN(i)||isNaN(o)?{convertible:!1,content:`${n} ${e} ${r}`}:{convertible:!0,enumerator:o,denominator:i}}Object.defineProperty(e,"__esModule",{value:!0}),e.vulgarFractionSmall=e.convertVulgarFraction=e.Combiners=e.siCombiner=e.identityTransformer=e.pluralCase=void 0,e.pluralCase=function(t,e){return t.toString()},e.identityTransformer=function(t){return t.toString()},e.siCombiner=function(t,e){return t+e.toLowerCase()},e.Combiners={},e.Combiners.identityCombiner=function(t,e,r){return t+e+r},e.Combiners.prefixCombiner=function(t,e,r){return t=r?r+" "+t:t,e?e+" "+t:t},e.Combiners.postfixCombiner=function(t,e,r){return t=r?r+" "+t:t,e?t+" "+e:t},e.Combiners.romanceCombiner=function(t,e,r){return t=r?t+" "+r:t,e?t+" "+e:t},e.convertVulgarFraction=r,e.vulgarFractionSmall=function(t,e,n){const i=r(t);if(i.convertible){const t=i.enumerator,r=i.denominator;return t>0&&t<e&&r>0&&r<n}return!1}},4626:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Condition=e.BaseRuleStore=void 0;const n=r(8860),i=r(9818),o=r(9647),s=r(7118);class a{constructor(){this.context=new s.SpeechRuleContext,this.parseOrder=i.DynamicCstr.DEFAULT_ORDER,this.parser=new i.DynamicCstrParser(this.parseOrder),this.locale=i.DynamicCstr.DEFAULT_VALUES[i.Axis.LOCALE],this.modality=i.DynamicCstr.DEFAULT_VALUES[i.Axis.MODALITY],this.domain="",this.initialized=!1,this.inherits=null,this.kind="standard",this.customTranscriptions={},this.preconditions=new Map,this.speechRules_=[],this.rank=0,this.parseMethods={Rule:this.defineRule,Generator:this.generateRules,Action:this.defineAction,Precondition:this.definePrecondition,Ignore:this.ignoreRules}}static compareStaticConstraints_(t,e){if(t.length!==e.length)return!1;for(let r,n=0;r=t[n];n++)if(-1===e.indexOf(r))return!1;return!0}static comparePreconditions_(t,e){const r=t.precondition,n=e.precondition;return r.query===n.query&&a.compareStaticConstraints_(r.constraints,n.constraints)}defineRule(t,e,r,n,...i){const s=this.parseAction(r),a=this.parsePrecondition(n,i),l=this.parseCstr(e);if(!(s&&a&&l))return console.error(`Rule Error: ${n}, (${e}): ${r}`),null;const c=new o.SpeechRule(t,l,a,s);return c.precondition.rank=this.rank++,this.addRule(c),c}addRule(t){t.context=this.context,this.speechRules_.unshift(t)}deleteRule(t){const e=this.speechRules_.indexOf(t);-1!==e&&this.speechRules_.splice(e,1)}findRule(t){for(let e,r=0;e=this.speechRules_[r];r++)if(t(e))return e;return null}findAllRules(t){return this.speechRules_.filter(t)}evaluateDefault(t){const e=t.textContent.slice(0);return e.match(/^\s+$/)?this.evaluateWhitespace(e):this.evaluateString(e)}evaluateWhitespace(t){return[]}evaluateCustom(t){const e=this.customTranscriptions[t];return void 0!==e?n.AuditoryDescription.create({text:e},{adjust:!0,translate:!1}):null}evaluateCharacter(t){return this.evaluateCustom(t)||n.AuditoryDescription.create({text:t},{adjust:!0,translate:!0})}removeDuplicates(t){for(let e,r=this.speechRules_.length-1;e=this.speechRules_[r];r--)e!==t&&t.dynamicCstr.equal(e.dynamicCstr)&&a.comparePreconditions_(e,t)&&this.speechRules_.splice(r,1)}getSpeechRules(){return this.speechRules_}setSpeechRules(t){this.speechRules_=t}getPreconditions(){return this.preconditions}parseCstr(t){try{return this.parser.parse(this.locale+"."+this.modality+(this.domain?"."+this.domain:"")+"."+t)}catch(e){if("RuleError"===e.name)return console.error("Rule Error ",`Illegal Dynamic Constraint: ${t}.`,e.message),null;throw e}}parsePrecondition(t,e){try{const r=this.parsePrecondition_(t);t=r[0];let n=r.slice(1);for(const t of e)n=n.concat(this.parsePrecondition_(t));return new o.Precondition(t,...n)}catch(r){if("RuleError"===r.name)return console.error("Rule Error ",`Illegal preconditions: ${t}, ${e}.`,r.message),null;throw r}}parseAction(t){try{return o.Action.fromString(t)}catch(e){if("RuleError"===e.name)return console.error("Rule Error ",`Illegal action: ${t}.`,e.message),null;throw e}}parse(t){this.modality=t.modality||this.modality,this.locale=t.locale||this.locale,this.domain=t.domain||this.domain,this.context.parse(t.functions||[]),"actions"!==t.kind&&(this.kind=t.kind||this.kind,this.inheritRules()),this.parseRules(t.rules||[])}parseRules(t){for(let e,r=0;e=t[r];r++){const t=e[0],r=this.parseMethods[t];t&&r&&r.apply(this,e.slice(1))}}generateRules(t){const e=this.context.customGenerators.lookup(t);e&&e(this)}defineAction(t,e){let r;try{r=o.Action.fromString(e)}catch(t){if("RuleError"===t.name)return void console.error("Action Error ",e,t.message);throw t}const n=this.getFullPreconditions(t);if(!n)return void console.error(`Action Error: No precondition for action ${t}`);this.ignoreRules(t);const i=new RegExp("^\\w+\\.\\w+\\."+(this.domain?"\\w+\\.":""));n.conditions.forEach((([e,n])=>{const s=this.parseCstr(e.toString().replace(i,""));this.addRule(new o.SpeechRule(t,s,n,r))}))}getFullPreconditions(t){const e=this.preconditions.get(t);return e||!this.inherits?e:this.inherits.getFullPreconditions(t)}definePrecondition(t,e,r,...n){const i=this.parsePrecondition(r,n),o=this.parseCstr(e);i&&o?(i.rank=this.rank++,this.preconditions.set(t,new l(o,i))):console.error(`Precondition Error: ${r}, (${e})`)}inheritRules(){if(!this.inherits||!this.inherits.getSpeechRules().length)return;const t=new RegExp("^\\w+\\.\\w+\\."+(this.domain?"\\w+\\.":""));this.inherits.getSpeechRules().forEach((e=>{const r=this.parseCstr(e.dynamicCstr.toString().replace(t,""));this.addRule(new o.SpeechRule(e.name,r,e.precondition,e.action))}))}ignoreRules(t,...e){let r=this.findAllRules((e=>e.name===t));if(!e.length)return void r.forEach(this.deleteRule.bind(this));let n=[];for(const t of e){const e=this.parseCstr(t);for(const t of r)e.equal(t.dynamicCstr)?this.deleteRule(t):n.push(t);r=n,n=[]}}parsePrecondition_(t){const e=this.context.customGenerators.lookup(t);return e?e():[t]}}e.BaseRuleStore=a;class l{constructor(t,e){this.base=t,this._conditions=[],this.constraints=[],this.allCstr={},this.constraints.push(t),this.addCondition(t,e)}get conditions(){return this._conditions}addConstraint(t){if(this.constraints.filter((e=>e.equal(t))).length)return;this.constraints.push(t);const e=[];for(const[r,n]of this.conditions)this.base.equal(r)&&e.push([t,n]);this._conditions=this._conditions.concat(e)}addBaseCondition(t){this.addCondition(this.base,t)}addFullCondition(t){this.constraints.forEach((e=>this.addCondition(e,t)))}addCondition(t,e){const r=t.toString()+" "+e.toString();this.allCstr.condStr||(this.allCstr[r]=!0,this._conditions.push([t,e]))}}e.Condition=l},7766:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrailleStore=void 0;const n=r(2177),i=r(7939);class o extends i.MathStore{constructor(){super(...arguments),this.modality="braille",this.customTranscriptions={"\u22ca":"\u2808\u2821\u2833"}}evaluateString(t){const e=[],r=Array.from(t);for(let t=0;t<r.length;t++)e.push(this.evaluateCharacter(r[t]));return e}annotations(){for(let t,e=0;t=this.annotators[e];e++)(0,n.activate)(this.locale,t)}}e.BrailleStore=o},9818:function(t,e){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultComparator=e.DynamicCstrParser=e.DynamicCstr=e.DynamicProperties=e.Axis=void 0,function(t){t.DOMAIN="domain",t.STYLE="style",t.LOCALE="locale",t.TOPIC="topic",t.MODALITY="modality"}(r=e.Axis||(e.Axis={}));class n{constructor(t,e=Object.keys(t)){this.properties=t,this.order=e}static createProp(...t){const e=i.DEFAULT_ORDER,r={};for(let n=0,i=t.length,o=e.length;n<i&&n<o;n++)r[e[n]]=t[n];return new n(r)}getProperties(){return this.properties}getOrder(){return this.order}getAxes(){return this.order}getProperty(t){return this.properties[t]}updateProperties(t){this.properties=t}allProperties(){const t=[];return this.order.forEach((e=>t.push(this.getProperty(e).slice()))),t}toString(){const t=[];return this.order.forEach((e=>t.push(e+": "+this.getProperty(e).toString()))),t.join("\n")}}e.DynamicProperties=n;class i extends n{constructor(t,e){const r={};for(const[e,n]of Object.entries(t))r[e]=[n];super(r,e),this.components=t}static createCstr(...t){const e=i.DEFAULT_ORDER,r={};for(let n=0,i=t.length,o=e.length;n<i&&n<o;n++)r[e[n]]=t[n];return new i(r)}static defaultCstr(){return i.createCstr.apply(null,i.DEFAULT_ORDER.map((function(t){return i.DEFAULT_VALUES[t]})))}static validOrder(t){const e=i.DEFAULT_ORDER.slice();return t.every((t=>{const r=e.indexOf(t);return-1!==r&&e.splice(r,1)}))}getComponents(){return this.components}getValue(t){return this.components[t]}getValues(){return this.order.map((t=>this.getValue(t)))}allProperties(){const t=super.allProperties();for(let e,r,n=0;e=t[n],r=this.order[n];n++){const t=this.getValue(r);-1===e.indexOf(t)&&e.unshift(t)}return t}toString(){return this.getValues().join(".")}equal(t){const e=t.getAxes();if(this.order.length!==e.length)return!1;for(let r,n=0;r=e[n];n++){const e=this.getValue(r);if(!e||t.getValue(r)!==e)return!1}return!0}}e.DynamicCstr=i,i.DEFAULT_ORDER=[r.LOCALE,r.MODALITY,r.DOMAIN,r.STYLE,r.TOPIC],i.BASE_LOCALE="base",i.DEFAULT_VALUE="default",i.DEFAULT_VALUES={[r.LOCALE]:"en",[r.DOMAIN]:i.DEFAULT_VALUE,[r.STYLE]:i.DEFAULT_VALUE,[r.TOPIC]:i.DEFAULT_VALUE,[r.MODALITY]:"speech"};e.DynamicCstrParser=class{constructor(t){this.order=t}parse(t){const e=t.split("."),r={};if(e.length>this.order.length)throw new Error("Invalid dynamic constraint: "+r);let n=0;for(let t,i=0;t=this.order[i],e.length;i++,n++){const n=e.shift();r[t]=n}return new i(r,this.order.slice(0,n))}};e.DefaultComparator=class{constructor(t,e=new n(t.getProperties(),t.getOrder())){this.reference=t,this.fallback=e,this.order=this.reference.getOrder()}getReference(){return this.reference}setReference(t,e){this.reference=t,this.fallback=e||new n(t.getProperties(),t.getOrder()),this.order=this.reference.getOrder()}match(t){const e=t.getAxes();return e.length===this.reference.getAxes().length&&e.every((e=>{const r=t.getValue(e);return r===this.reference.getValue(e)||-1!==this.fallback.getProperty(e).indexOf(r)}))}compare(t,e){let r=!1;for(let n,i=0;n=this.order[i];i++){const i=t.getValue(n),o=e.getValue(n);if(!r){const t=this.reference.getValue(n);if(t===i&&t!==o)return-1;if(t===o&&t!==i)return 1;if(t===i&&t===o)continue;t!==i&&t!==o&&(r=!0)}const s=this.fallback.getProperty(n),a=s.indexOf(i),l=s.indexOf(o);if(a<l)return-1;if(l<a)return 1}return 0}toString(){return this.reference.toString()+"\n"+this.fallback.toString()}}},5215:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbersToAlpha=e.Grammar=e.ATTRIBUTE=void 0;const n=r(1838),i=r(5771),o=r(8210),s=r(2894);e.ATTRIBUTE="grammar";class a{constructor(){this.currentFlags={},this.parameters_={},this.corrections_={},this.preprocessors_={},this.stateStack_=[]}static getInstance(){return a.instance=a.instance||new a,a.instance}static parseInput(t){const e={},r=t.split(":");for(let t=0,n=r.length;t<n;t++){const n=r[t].split("="),i=n[0].trim();n[1]?e[i]=n[1].trim():i.match(/^!/)?e[i.slice(1)]=!1:e[i]=!0}return e}static parseState(t){const e={},r=t.split(" ");for(let t=0,n=r.length;t<n;t++){const n=r[t].split(":"),i=n[0],o=n[1];e[i]=o||!0}return e}static translateString_(t){if(t.match(/:unit$/))return a.translateUnit_(t);const e=i.default.getInstance();let r=e.evaluator(t,e.dynamicCstr);return r=null===r?t:r,a.getInstance().getParameter("plural")&&(r=s.LOCALE.FUNCTIONS.plural(r)),r}static translateUnit_(t){t=a.prepareUnit_(t);const e=i.default.getInstance(),r=a.getInstance().getParameter("plural"),n=e.strict,o=`${e.locale}.${e.modality}.default`;let l,c;return e.strict=!0,r&&(l=e.defaultParser.parse(o+".plural"),c=e.evaluator(t,l)),c?(e.strict=n,c):(l=e.defaultParser.parse(o+".default"),c=e.evaluator(t,l),e.strict=n,c?(r&&(c=s.LOCALE.FUNCTIONS.plural(c)),c):a.cleanUnit_(t))}static prepareUnit_(t){const e=t.match(/:unit$/);return e?t.slice(0,e.index).replace(/\s+/g," ")+t.slice(e.index):t}static cleanUnit_(t){return t.match(/:unit$/)?t.replace(/:unit$/,""):t}clear(){this.parameters_={},this.stateStack_=[]}setParameter(t,e){const r=this.parameters_[t];return e?this.parameters_[t]=e:delete this.parameters_[t],r}getParameter(t){return this.parameters_[t]}setCorrection(t,e){this.corrections_[t]=e}setPreprocessor(t,e){this.preprocessors_[t]=e}getCorrection(t){return this.corrections_[t]}getState(){const t=[];for(const e in this.parameters_){const r=this.parameters_[e];t.push("string"==typeof r?e+":"+r:e)}return t.join(" ")}pushState(t){for(const e in t)t[e]=this.setParameter(e,t[e]);this.stateStack_.push(t)}popState(){const t=this.stateStack_.pop();for(const e in t)this.setParameter(e,t[e])}setAttribute(t){if(t&&t.nodeType===n.NodeType.ELEMENT_NODE){const r=this.getState();r&&t.setAttribute(e.ATTRIBUTE,r)}}preprocess(t){return this.runProcessors_(t,this.preprocessors_)}correct(t){return this.runProcessors_(t,this.corrections_)}apply(t,e){return this.currentFlags=e||{},t=this.currentFlags.adjust||this.currentFlags.preprocess?a.getInstance().preprocess(t):t,(this.parameters_.translate||this.currentFlags.translate)&&(t=a.translateString_(t)),t=this.currentFlags.adjust||this.currentFlags.correct?a.getInstance().correct(t):t,this.currentFlags={},t}runProcessors_(t,e){for(const r in this.parameters_){const n=e[r];if(!n)continue;const i=this.parameters_[r];t=!0===i?n(t):n(t,i)}return t}}function l(t,e){if(!e||!t)return t;const r=s.LOCALE.FUNCTIONS.fontRegexp(o.localFont(e));return t.replace(r,"")}function c(t){return t.match(/\d+/)?s.LOCALE.NUMBERS.numberToWords(parseInt(t,10)):t}e.Grammar=a,e.numbersToAlpha=c,a.getInstance().setCorrection("localFont",o.localFont),a.getInstance().setCorrection("localRole",o.localRole),a.getInstance().setCorrection("localEnclose",o.localEnclose),a.getInstance().setCorrection("ignoreFont",l),a.getInstance().setPreprocessor("annotation",(function(t,e){return t+":"+e})),a.getInstance().setPreprocessor("noTranslateText",(function(t){return t.match(new RegExp("^["+s.LOCALE.MESSAGES.regexp.TEXT+"]+$"))&&(a.getInstance().currentFlags.translate=!1),t})),a.getInstance().setCorrection("ignoreCaps",(function(t){let e=s.LOCALE.ALPHABETS.capPrefix[i.default.getInstance().domain];return void 0===e&&(e=s.LOCALE.ALPHABETS.capPrefix.default),l(t,e)})),a.getInstance().setPreprocessor("numbers2alpha",c)},9089:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enumerate=e.lookupString=e.lookupCategory=e.lookupRule=e.addSiUnitRules=e.addUnitRules=e.addFunctionRules=e.addSymbolRules=e.defineRule=e.defineRules=e.setSiPrefixes=void 0;const n=r(4890),i=r(5771),o=r(4439),s=r(6670),a=r(9818);let l=a.DynamicCstr.DEFAULT_VALUES[a.Axis.LOCALE],c=a.DynamicCstr.DEFAULT_VALUES[a.Axis.MODALITY],u={};e.setSiPrefixes=function(t){u=t};const h={};function p(t,e,r,n){const i=M(e);O(i,r),i.defineRulesFromMappings(t,l,c,e,n)}function d(t){if(v(t))return;const e=t.names,r=t.mappings,n=t.category;for(let t,i=0;t=e[i];i++)p(t,t,n,r)}function f(t){for(const e of Object.keys(u)){const r=Object.assign({},t);r.mappings={};const n=u[e];r.key=e+r.key,r.names=r.names.map((function(t){return e+t}));for(const e of Object.keys(t.mappings)){r.mappings[e]={};for(const i of Object.keys(t.mappings[e]))r.mappings[e][i]=o.locales[l]().FUNCTIONS.si(n,t.mappings[e][i])}b(r)}b(t)}function m(t,e){const r=h[t];return r?r.lookupRule(null,e):null}function y(t,e){const r=m(t,e);return r?r.action:null}function g(t,e){return e=e||{},t.length?(e[t[0]]=g(t.slice(1),e[t[0]]),e):e}function b(t){const e=t.names;e&&(t.names=e.map((function(t){return t+":unit"}))),d(t)}function v(t){return!(!t.locale&&!t.modality)&&(l=t.locale||l,c=t.modality||c,!0)}function M(t){let e=h[t];return e?(n.Debugger.getInstance().output("Store exists! "+t),e):(e=new s.MathSimpleStore,h[t]=e,e)}function O(t,e){e&&(t.category=e)}e.defineRules=p,e.defineRule=function(t,e,r,n,i,o){const s=M(i);O(s,n),s.defineRuleFromStrings(t,l,c,e,r,i,o)},e.addSymbolRules=function(t){if(v(t))return;const e=s.MathSimpleStore.parseUnicode(t.key);p(t.key,e,t.category,t.mappings)},e.addFunctionRules=d,e.addUnitRules=function(t){v(t)||(t.si?f(t):b(t))},e.addSiUnitRules=f,e.lookupRule=m,e.lookupCategory=function(t){const e=h[t];return e?e.category:""},e.lookupString=y,i.default.getInstance().evaluator=y,e.enumerate=function(t={}){for(const e of Object.values(h))for(const[,r]of e.rules.entries())for(const{cstr:e}of r)t=g(e.getValues(),t);return t}},6670:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MathSimpleStore=void 0;const n=r(5771),i=r(9818);class o{constructor(){this.category="",this.rules=new Map}static parseUnicode(t){const e=parseInt(t,16);return String.fromCodePoint(e)}static testDynamicConstraints_(t,e){return n.default.getInstance().strict?e.cstr.equal(t):n.default.getInstance().comparator.match(e.cstr)}defineRulesFromMappings(t,e,r,n,i){for(const o in i)for(const s in i[o]){const a=i[o][s];this.defineRuleFromStrings(t,e,r,o,s,n,a)}}getRules(t){let e=this.rules.get(t);return e||(e=[],this.rules.set(t,e)),e}defineRuleFromStrings(t,e,r,i,o,s,a){let l=this.getRules(e);const c=n.default.getInstance().parsers[i]||n.default.getInstance().defaultParser,u=n.default.getInstance().comparators[i],h=`${e}.${r}.${i}.${o}`,p=c.parse(h),d=u?u():n.default.getInstance().comparator,f=d.getReference();d.setReference(p);const m={cstr:p,action:a};l=l.filter((t=>!p.equal(t.cstr))),l.push(m),this.rules.set(e,l),d.setReference(f)}lookupRule(t,e){let r=this.getRules(e.getValue(i.Axis.LOCALE));return r=r.filter((function(t){return o.testDynamicConstraints_(e,t)})),1===r.length?r[0]:r.length?r.sort(((t,e)=>n.default.getInstance().comparator.compare(t.cstr,e.cstr)))[0]:null}}e.MathSimpleStore=o},7939:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MathStore=void 0;const n=r(8154),i=r(2894),o=r(2177),s=r(4626),a=r(9647);class l extends s.BaseRuleStore{constructor(){super(),this.annotators=[],this.parseMethods.Alias=this.defineAlias,this.parseMethods.SpecializedRule=this.defineSpecializedRule,this.parseMethods.Specialized=this.defineSpecialized}initialize(){this.initialized||(this.annotations(),this.initialized=!0)}annotations(){for(let t,e=0;t=this.annotators[e];e++)(0,o.activate)(this.domain,t)}defineAlias(t,e,...r){const n=this.parsePrecondition(e,r);if(!n)return void console.error(`Precondition Error: ${e} ${r}`);const i=this.preconditions.get(t);i?i.addFullCondition(n):console.error(`Alias Error: No precondition by the name of ${t}`)}defineRulesAlias(t,e,...r){const n=this.findAllRules((function(e){return e.name===t}));if(0===n.length)throw new a.OutputError("Rule with name "+t+" does not exist.");const i=[];n.forEach((t=>{(t=>{const e=t.dynamicCstr.toString(),r=t.action.toString();for(let t,n=0;t=i[n];n++)if(t.action===r&&t.cstr===e)return!1;return i.push({cstr:e,action:r}),!0})(t)&&this.addAlias_(t,e,r)}))}defineSpecializedRule(t,e,r,n){const i=this.parseCstr(e),o=this.findRule((e=>e.name===t&&i.equal(e.dynamicCstr))),s=this.parseCstr(r);if(!o&&n)throw new a.OutputError("Rule named "+t+" with style "+e+" does not exist.");const l=n?a.Action.fromString(n):o.action,c=new a.SpeechRule(o.name,s,o.precondition,l);this.addRule(c)}defineSpecialized(t,e,r){const n=this.parseCstr(r);if(!n)return void console.error(`Dynamic Constraint Error: ${r}`);const i=this.preconditions.get(t);i?i.addConstraint(n):console.error(`Alias Error: No precondition by the name of ${t}`)}evaluateString(t){const e=[];if(t.match(/^\s+$/))return e;let r=this.matchNumber_(t);if(r&&r.length===t.length)return e.push(this.evaluateCharacter(r.number)),e;const o=n.removeEmpty(t.replace(/\s/g," ").split(" "));for(let t,n=0;t=o[n];n++)if(1===t.length)e.push(this.evaluateCharacter(t));else if(t.match(new RegExp("^["+i.LOCALE.MESSAGES.regexp.TEXT+"]+$")))e.push(this.evaluateCharacter(t));else{let n=t;for(;n;){r=this.matchNumber_(n);const t=n.match(new RegExp("^["+i.LOCALE.MESSAGES.regexp.TEXT+"]+"));if(r)e.push(this.evaluateCharacter(r.number)),n=n.substring(r.length);else if(t)e.push(this.evaluateCharacter(t[0])),n=n.substring(t[0].length);else{const t=Array.from(n),r=t[0];e.push(this.evaluateCharacter(r)),n=t.slice(1).join("")}}}return e}parse(t){super.parse(t),this.annotators=t.annotators||[]}addAlias_(t,e,r){const n=this.parsePrecondition(e,r),i=new a.SpeechRule(t.name,t.dynamicCstr,n,t.action);i.name=t.name,this.addRule(i)}matchNumber_(t){const e=t.match(new RegExp("^"+i.LOCALE.MESSAGES.regexp.NUMBER)),r=t.match(new RegExp("^"+l.regexp.NUMBER));if(!e&&!r)return null;const n=r&&r[0]===t;if(e&&e[0]===t||!n)return e?{number:e[0],length:e[0].length}:null;return{number:r[0].replace(new RegExp(l.regexp.DIGIT_GROUP,"g"),"X").replace(new RegExp(l.regexp.DECIMAL_MARK,"g"),i.LOCALE.MESSAGES.regexp.DECIMAL_MARK).replace(/X/g,i.LOCALE.MESSAGES.regexp.DIGIT_GROUP.replace(/\\/g,"")),length:r[0].length}}}e.MathStore=l,l.regexp={NUMBER:"((\\d{1,3})(?=(,| ))((,| )\\d{3})*(\\.\\d+)?)|^\\d*\\.\\d+|^\\d+",DECIMAL_MARK:"\\.",DIGIT_GROUP:","}},9647:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OutputError=e.Precondition=e.Action=e.Component=e.ActionType=e.SpeechRule=void 0;const n=r(5771),i=r(5215);var o;function s(t){switch(t){case"[n]":return o.NODE;case"[m]":return o.MULTI;case"[t]":return o.TEXT;case"[p]":return o.PERSONALITY;default:throw"Parse error: "+t}}e.SpeechRule=class{constructor(t,e,r,n){this.name=t,this.dynamicCstr=e,this.precondition=r,this.action=n,this.context=null}toString(){return this.name+" | "+this.dynamicCstr.toString()+" | "+this.precondition.toString()+" ==> "+this.action.toString()}},function(t){t.NODE="NODE",t.MULTI="MULTI",t.TEXT="TEXT",t.PERSONALITY="PERSONALITY"}(o=e.ActionType||(e.ActionType={}));class a{constructor({type:t,content:e,attributes:r,grammar:n}){this.type=t,this.content=e,this.attributes=r,this.grammar=n}static grammarFromString(t){return i.Grammar.parseInput(t)}static fromString(t){const e={type:s(t.substring(0,3))};let r=t.slice(3).trim();if(!r)throw new u("Missing content.");switch(e.type){case o.TEXT:if('"'===r[0]){const t=h(r,"\\(")[0].trim();if('"'!==t.slice(-1))throw new u("Invalid string syntax.");e.content=t,r=r.slice(t.length).trim(),-1===r.indexOf("(")&&(r="");break}case o.NODE:case o.MULTI:{const t=r.indexOf(" (");if(-1===t){e.content=r.trim(),r="";break}e.content=r.substring(0,t).trim(),r=r.slice(t).trim()}}if(r){const t=a.attributesFromString(r);t.grammar&&(e.grammar=t.grammar,delete t.grammar),Object.keys(t).length&&(e.attributes=t)}return new a(e)}static attributesFromString(t){if("("!==t[0]||")"!==t.slice(-1))throw new u("Invalid attribute expression: "+t);const e={},r=h(t.slice(1,-1),",");for(let t=0,n=r.length;t<n;t++){const n=r[t],o=n.indexOf(":");if(-1===o)e[n.trim()]="true";else{const t=n.substring(0,o).trim(),r=n.slice(o+1).trim();e[t]=t===i.ATTRIBUTE?a.grammarFromString(r):r}}return e}toString(){let t="";t+=function(t){switch(t){case o.NODE:return"[n]";case o.MULTI:return"[m]";case o.TEXT:return"[t]";case o.PERSONALITY:return"[p]";default:throw"Unknown type error: "+t}}(this.type),t+=this.content?" "+this.content:"";const e=this.attributesToString();return t+=e?" "+e:"",t}grammarToString(){return this.getGrammar().join(":")}getGrammar(){const t=[];for(const e in this.grammar)!0===this.grammar[e]?t.push(e):!1===this.grammar[e]?t.push("!"+e):t.push(e+"="+this.grammar[e]);return t}attributesToString(){const t=this.getAttributes(),e=this.grammarToString();return e&&t.push("grammar:"+e),t.length>0?"("+t.join(", ")+")":""}getAttributes(){const t=[];for(const e in this.attributes){const r=this.attributes[e];"true"===r?t.push(e):t.push(e+":"+r)}return t}}e.Component=a;class l{constructor(t){this.components=t}static fromString(t){const e=h(t,";").filter((function(t){return t.match(/\S/)})).map((function(t){return t.trim()})),r=[];for(let t=0,n=e.length;t<n;t++){const n=a.fromString(e[t]);n&&r.push(n)}return new l(r)}toString(){return this.components.map((function(t){return t.toString()})).join("; ")}}e.Action=l;class c{constructor(t,...e){this.query=t,this.constraints=e;const[r,n]=this.presetPriority();this.priority=r?n:this.calculatePriority()}static constraintValue(t,e){for(let r,n=0;r=e[n];n++)if(t.match(r))return++n;return 0}toString(){const t=this.constraints.join(", ");return`${this.query}, ${t} (${this.priority}, ${this.rank})`}calculatePriority(){const t=c.constraintValue(this.query,c.queryPriorities);if(!t)return 0;const e=this.query.match(/^self::.+\[(.+)\]/)[1];return 100*t+10*c.constraintValue(e,c.attributePriorities)}presetPriority(){if(!this.constraints.length)return[!1,0];const t=this.constraints[this.constraints.length-1].match(/^priority=(.*$)/);if(!t)return[!1,0];this.constraints.pop();const e=parseFloat(t[1]);return[!0,isNaN(e)?0:e]}}e.Precondition=c,c.queryPriorities=[/^self::\*\[.+\]$/,/^self::[\w-]+\[.+\]$/],c.attributePriorities=[/^@[\w-]+$/,/^@[\w-]+!=".+"$/,/^not\(contains\(@[\w-]+,\s*".+"\)\)$/,/^contains\(@[\w-]+,".+"\)$/,/^@[\w-]+=".+"$/];class u extends n.SREError{constructor(t){super(t),this.name="RuleError"}}function h(t,e){const r=[];let n="";for(;""!==t;){const i=t.search(e);if(-1===i){if((t.match(/"/g)||[]).length%2!=0)throw new u("Invalid string in expression: "+t);r.push(n+t),n="",t=""}else if((t.substring(0,i).match(/"/g)||[]).length%2==0)r.push(n+t.substring(0,i)),n="",t=t.substring(i+1);else{const e=t.substring(i).search('"');if(-1===e)throw new u("Invalid string in expression: "+t);n+=t.substring(0,i+e+1),t=t.substring(i+e+1)}}return n&&r.push(n),r}e.OutputError=u},7118:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SpeechRuleContext=void 0;const n=r(7604),i=r(5252);e.SpeechRuleContext=class{constructor(){this.customQueries=new i.CustomQueries,this.customStrings=new i.CustomStrings,this.contextFunctions=new i.ContextFunctions,this.customGenerators=new i.CustomGenerators}applyCustomQuery(t,e){const r=this.customQueries.lookup(e);return r?r(t):null}applySelector(t,e){return this.applyCustomQuery(t,e)||n.evalXPath(e,t)}applyQuery(t,e){const r=this.applySelector(t,e);return r.length>0?r[0]:null}applyConstraint(t,e){return!!this.applyQuery(t,e)||n.evaluateBoolean(e,t)}constructString(t,e){if(!e)return"";if('"'===e.charAt(0))return e.slice(1,-1);const r=this.customStrings.lookup(e);return r?r(t):n.evaluateString(e,t)}parse(t){const e=Array.isArray(t)?t:Object.entries(t);for(let t,r=0;t=e[r];r++){switch(t[0].slice(0,3)){case"CQF":this.customQueries.add(t[0],t[1]);break;case"CSF":this.customStrings.add(t[0],t[1]);break;case"CTF":this.contextFunctions.add(t[0],t[1]);break;case"CGF":this.customGenerators.add(t[0],t[1]);break;default:console.error("FunctionError: Invalid function name "+t[0])}}}}},8020:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.storeFactory=e.SpeechRuleEngine=void 0;const n=r(8860),i=r(4890),o=r(1838),s=r(5771),a=r(292),l=r(7604),c=r(429),u=r(6064),h=r(7766),p=r(9818),d=r(5215),f=r(7939),m=r(9647),y=r(3315);class g{constructor(){this.trie=null,this.evaluators_={},this.trie=new y.Trie}static getInstance(){return g.instance=g.instance||new g,g.instance}static debugSpeechRule(t,e){const r=t.precondition,n=t.context.applyQuery(e,r.query);i.Debugger.getInstance().output(r.query,n?n.toString():n),r.constraints.forEach((r=>i.Debugger.getInstance().output(r,t.context.applyConstraint(e,r))))}static debugNamedSpeechRule(t,e){const r=g.getInstance().trie.collectRules().filter((e=>e.name==t));for(let n,o=0;n=r[o];o++)i.Debugger.getInstance().output("Rule",t,"DynamicCstr:",n.dynamicCstr.toString(),"number",o),g.debugSpeechRule(n,e)}evaluateNode(t){(0,l.updateEvaluator)(t);const e=(new Date).getTime();let r=[];try{r=this.evaluateNode_(t)}catch(t){console.error("Something went wrong computing speech."),i.Debugger.getInstance().output(t)}const n=(new Date).getTime();return i.Debugger.getInstance().output("Time:",n-e),r}toString(){return this.trie.collectRules().map((t=>t.toString())).join("\n")}runInSetting(t,e){const r=s.default.getInstance(),n={};for(const e in t)n[e]=r[e],r[e]=t[e];r.setDynamicCstr();const i=e();for(const t in n)r[t]=n[t];return r.setDynamicCstr(),i}addStore(t){const e=v(t);"abstract"!==e.kind&&e.getSpeechRules().forEach((t=>this.trie.addRule(t))),this.addEvaluator(e)}processGrammar(t,e,r){const n={};for(const i in r){const o=r[i];n[i]="string"==typeof o?t.constructString(e,o):o}d.Grammar.getInstance().pushState(n)}addEvaluator(t){const e=t.evaluateDefault.bind(t),r=this.evaluators_[t.locale];if(r)return void(r[t.modality]=e);const n={};n[t.modality]=e,this.evaluators_[t.locale]=n}getEvaluator(t,e){const r=this.evaluators_[t]||this.evaluators_[p.DynamicCstr.DEFAULT_VALUES[p.Axis.LOCALE]];return r[e]||r[p.DynamicCstr.DEFAULT_VALUES[p.Axis.MODALITY]]}enumerate(t){return this.trie.enumerate(t)}evaluateNode_(t){return t?(this.updateConstraint_(),this.evaluateTree_(t)):[]}evaluateTree_(t){const e=s.default.getInstance();let r;i.Debugger.getInstance().output(e.mode!==a.Mode.HTTP?t.toString():t),d.Grammar.getInstance().setAttribute(t);const o=this.lookupRule(t,e.dynamicCstr);if(!o)return e.strict?[]:(r=this.getEvaluator(e.locale,e.modality)(t),t.attributes&&this.addPersonality_(r,{},!1,t),r);i.Debugger.getInstance().generateOutput((()=>["Apply Rule:",o.name,o.dynamicCstr.toString(),(e.mode,a.Mode.HTTP,t).toString()]));const c=o.context,u=o.action.components;r=[];for(let e,i=0;e=u[i];i++){let i=[];const o=e.content||"",a=e.attributes||{};let u=!1;e.grammar&&this.processGrammar(c,t,e.grammar);let h=null;if(a.engine){h=s.default.getInstance().dynamicCstr.getComponents();const t=d.Grammar.parseInput(a.engine);s.default.getInstance().setDynamicCstr(t)}switch(e.type){case m.ActionType.NODE:{const e=c.applyQuery(t,o);e&&(i=this.evaluateTree_(e))}break;case m.ActionType.MULTI:{u=!0;const e=c.applySelector(t,o);e.length>0&&(i=this.evaluateNodeList_(c,e,a.sepFunc,c.constructString(t,a.separator),a.ctxtFunc,c.constructString(t,a.context)))}break;case m.ActionType.TEXT:{const e=a.span,r={};if(e){const n=(0,l.evalXPath)(e,t);n.length&&(r.extid=n[0].getAttribute("extid"))}const s=c.constructString(t,o);(s||""===s)&&(i=Array.isArray(s)?s.map((function(t){return n.AuditoryDescription.create({text:t.speech,attributes:t.attributes},{adjust:!0})})):[n.AuditoryDescription.create({text:s,attributes:r},{adjust:!0})])}break;case m.ActionType.PERSONALITY:default:i=[n.AuditoryDescription.create({text:o})]}i[0]&&!u&&(a.context&&(i[0].context=c.constructString(t,a.context)+(i[0].context||"")),a.annotation&&(i[0].annotation=a.annotation)),this.addLayout(i,a,u),e.grammar&&d.Grammar.getInstance().popState(),r=r.concat(this.addPersonality_(i,a,u,t)),h&&s.default.getInstance().setDynamicCstr(h)}return r}evaluateNodeList_(t,e,r,i,o,s){if(!e.length)return[];const a=i||"",l=s||"",c=t.contextFunctions.lookup(o),u=c?c(e,l):function(){return l},h=t.contextFunctions.lookup(r),p=h?h(e,a):function(){return[n.AuditoryDescription.create({text:a},{translate:!0})]};let d=[];for(let t,r=0;t=e[r];r++){const n=this.evaluateTree_(t);if(n.length>0&&(n[0].context=u()+(n[0].context||""),d=d.concat(n),r<e.length-1)){const t=p();d=d.concat(t)}}return d}addLayout(t,e,r){const i=e.layout;i&&(i.match(/^begin/)?t.unshift(new n.AuditoryDescription({text:"",layout:i})):i.match(/^end/)?t.push(new n.AuditoryDescription({text:"",layout:i})):(t.unshift(new n.AuditoryDescription({text:"",layout:`begin${i}`})),t.push(new n.AuditoryDescription({text:"",layout:`end${i}`}))))}addPersonality_(t,e,r,i){const o={};let s=null;for(const t of a.personalityPropList){const r=e[t];if(void 0===r)continue;const n=parseFloat(r),i=isNaN(n)?'"'===r.charAt(0)?r.slice(1,-1):r:n;t===a.personalityProps.PAUSE?s=i:o[t]=i}for(let e,r=0;e=t[r];r++)this.addRelativePersonality_(e,o),this.addExternalAttributes_(e,i);if(r&&t.length&&delete t[t.length-1].personality[a.personalityProps.JOIN],s&&t.length){const e=t[t.length-1];e.text||Object.keys(e.personality).length?t.push(n.AuditoryDescription.create({text:"",personality:{pause:s}})):e.personality[a.personalityProps.PAUSE]=s}return t}addExternalAttributes_(t,e){if(e.hasAttributes()){const r=e.attributes;for(let e=r.length-1;e>=0;e--){const n=r[e].name;!t.attributes[n]&&n.match(/^ext/)&&(t.attributes[n]=r[e].value)}}}addRelativePersonality_(t,e){if(!t.personality)return t.personality=e,t;const r=t.personality;for(const t in e)r[t]&&"number"==typeof r[t]&&"number"==typeof e[t]?r[t]=r[t]+e[t]:r[t]||(r[t]=e[t]);return t}updateConstraint_(){const t=s.default.getInstance().dynamicCstr,e=s.default.getInstance().strict,r=this.trie,n={};let i=t.getValue(p.Axis.LOCALE),o=t.getValue(p.Axis.MODALITY),a=t.getValue(p.Axis.DOMAIN);r.hasSubtrie([i,o,a])||(a=p.DynamicCstr.DEFAULT_VALUES[p.Axis.DOMAIN],r.hasSubtrie([i,o,a])||(o=p.DynamicCstr.DEFAULT_VALUES[p.Axis.MODALITY],r.hasSubtrie([i,o,a])||(i=p.DynamicCstr.DEFAULT_VALUES[p.Axis.LOCALE]))),n[p.Axis.LOCALE]=[i],n[p.Axis.MODALITY]=["summary"!==o?o:p.DynamicCstr.DEFAULT_VALUES[p.Axis.MODALITY]],n[p.Axis.DOMAIN]=["speech"!==o?p.DynamicCstr.DEFAULT_VALUES[p.Axis.DOMAIN]:a];const l=t.getOrder();for(let r,i=0;r=l[i];i++)if(!n[r]){const i=t.getValue(r),o=this.makeSet_(i,t.preference),s=p.DynamicCstr.DEFAULT_VALUES[r];e||i===s||o.push(s),n[r]=o}t.updateProperties(n)}makeSet_(t,e){return e&&Object.keys(e).length?t.split(":"):[t]}lookupRule(t,e){if(!t||t.nodeType!==o.NodeType.ELEMENT_NODE&&t.nodeType!==o.NodeType.TEXT_NODE)return null;const r=this.lookupRules(t,e);return r.length>0?this.pickMostConstraint_(e,r):null}lookupRules(t,e){return this.trie.lookupRules(t,e.allProperties())}pickMostConstraint_(t,e){const r=s.default.getInstance().comparator;return e.sort((function(t,e){return r.compare(t.dynamicCstr,e.dynamicCstr)||e.precondition.priority-t.precondition.priority||e.precondition.constraints.length-t.precondition.constraints.length||e.precondition.rank-t.precondition.rank})),i.Debugger.getInstance().generateOutput((()=>e.map((t=>t.name+"("+t.dynamicCstr.toString()+")"))).bind(this)),e[0]}}e.SpeechRuleEngine=g;const b=new Map;function v(t){const e=`${t.locale}.${t.modality}.${t.domain}`;if("actions"===t.kind){const r=b.get(e);return r.parse(t),r}u.init(),t&&!t.functions&&(t.functions=c.getStore(t.locale,t.modality,t.domain));const r="braille"===t.modality?new h.BrailleStore:new f.MathStore;return b.set(e,r),t.inherits&&(r.inherits=b.get(`${t.inherits}.${t.modality}.${t.domain}`)),r.parse(t),r.initialize(),r}e.storeFactory=v,s.default.nodeEvaluator=g.getInstance().evaluateNode.bind(g.getInstance())},5252:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CustomGenerators=e.ContextFunctions=e.CustomStrings=e.CustomQueries=void 0;class r{constructor(t,e){this.prefix=t,this.store=e}add(t,e){this.checkCustomFunctionSyntax_(t)&&(this.store[t]=e)}addStore(t){const e=Object.keys(t.store);for(let r,n=0;r=e[n];n++)this.add(r,t.store[r])}lookup(t){return this.store[t]}checkCustomFunctionSyntax_(t){const e=new RegExp("^"+this.prefix);return!!t.match(e)||(console.error("FunctionError: Invalid function name. Expected prefix "+this.prefix),!1)}}e.CustomQueries=class extends r{constructor(){super("CQF",{})}};e.CustomStrings=class extends r{constructor(){super("CSF",{})}};e.ContextFunctions=class extends r{constructor(){super("CTF",{})}};e.CustomGenerators=class extends r{constructor(){super("CGF",{})}}},393:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.contentIterator=e.pauseSeparator=e.nodeCounter=void 0;const n=r(8860),i=r(7604),o=r(5771);e.nodeCounter=function(t,e){const r=t.length;let n=0,i=e;return e||(i=""),function(){return n<r&&(n+=1),i+" "+n}},e.pauseSeparator=function(t,e){const r=parseFloat(e),i=isNaN(r)?e:r;return function(){return[n.AuditoryDescription.create({text:"",personality:{pause:i}})]}},e.contentIterator=function(t,e){let r;return r=t.length>0?i.evalXPath("../../content/*",t[0]):[],function(){const t=r.shift(),i=e?[n.AuditoryDescription.create({text:e},{translate:!0})]:[];if(!t)return i;const s=o.default.evaluateNode(t);return i.concat(s)}}},4155:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTreeFromString=e.getTree=e.xmlTree=void 0;const n=r(1838),i=r(4356);function o(t){return new i.SemanticTree(t)}e.xmlTree=function(t){return o(t).xml()},e.getTree=o,e.getTreeFromString=function(t){return o(n.parseInput(t))}},2177:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.annotate=e.activate=e.register=e.visitors=e.annotators=void 0;const n=r(1104);e.annotators=new Map,e.visitors=new Map,e.register=function(t){const r=t.domain+":"+t.name;t instanceof n.SemanticAnnotator?e.annotators.set(r,t):e.visitors.set(r,t)},e.activate=function(t,r){const n=t+":"+r,i=e.annotators.get(n)||e.visitors.get(n);i&&(i.active=!0)},e.annotate=function(t){for(const r of e.annotators.values())r.active&&r.annotate(t);for(const r of e.visitors.values())r.active&&r.visit(t,Object.assign({},r.def))}},1104:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticVisitor=e.SemanticAnnotator=void 0;e.SemanticAnnotator=class{constructor(t,e,r){this.domain=t,this.name=e,this.func=r,this.active=!1}annotate(t){t.childNodes.forEach(this.annotate.bind(this)),t.addAnnotation(this.domain,this.func(t))}};e.SemanticVisitor=class{constructor(t,e,r,n={}){this.domain=t,this.name=e,this.func=r,this.def=n,this.active=!1}visit(t,e){let r=this.func(t,e);t.addAnnotation(this.domain,r[0]);for(let e,n=0;e=t.childNodes[n];n++)r=this.visit(e,r[1]);return r}}},5489:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lookupSecondary=e.isEmbellishedType=e.isMatchingFence=e.functionApplication=e.invisibleComma=e.invisiblePlus=e.invisibleTimes=e.lookupMeaning=e.lookupRole=e.lookupType=e.equal=e.allLettersRegExp=void 0;const r=String.fromCodePoint(8291),n=["\uff0c","\ufe50",",",r],i=["\xaf","\u2012","\u2013","\u2014","\u2015","\ufe58","-","\u207b","\u208b","\u2212","\u2796","\ufe63","\uff0d","\u2010","\u2011","\u203e","_"],o=["~","\u0303","\u223c","\u02dc","\u223d","\u02f7","\u0334","\u0330"],s={"(":")","[":"]","{":"}","\u2045":"\u2046","\u2329":"\u232a","\u2768":"\u2769","\u276a":"\u276b","\u276c":"\u276d","\u276e":"\u276f","\u2770":"\u2771","\u2772":"\u2773","\u2774":"\u2775","\u27c5":"\u27c6","\u27e6":"\u27e7","\u27e8":"\u27e9","\u27ea":"\u27eb","\u27ec":"\u27ed","\u27ee":"\u27ef","\u2983":"\u2984","\u2985":"\u2986","\u2987":"\u2988","\u2989":"\u298a","\u298b":"\u298c","\u298d":"\u298e","\u298f":"\u2990","\u2991":"\u2992","\u2993":"\u2994","\u2995":"\u2996","\u2997":"\u2998","\u29d8":"\u29d9","\u29da":"\u29db","\u29fc":"\u29fd","\u2e22":"\u2e23","\u2e24":"\u2e25","\u2e26":"\u2e27","\u2e28":"\u2e29","\u3008":"\u3009","\u300a":"\u300b","\u300c":"\u300d","\u300e":"\u300f","\u3010":"\u3011","\u3014":"\u3015","\u3016":"\u3017","\u3018":"\u3019","\u301a":"\u301b","\u301d":"\u301e","\ufd3e":"\ufd3f","\ufe17":"\ufe18","\ufe59":"\ufe5a","\ufe5b":"\ufe5c","\ufe5d":"\ufe5e","\uff08":"\uff09","\uff3b":"\uff3d","\uff5b":"\uff5d","\uff5f":"\uff60","\uff62":"\uff63","\u2308":"\u2309","\u230a":"\u230b","\u230c":"\u230d","\u230e":"\u230f","\u231c":"\u231d","\u231e":"\u231f","\u239b":"\u239e","\u239c":"\u239f","\u239d":"\u23a0","\u23a1":"\u23a4","\u23a2":"\u23a5","\u23a3":"\u23a6","\u23a7":"\u23ab","\u23a8":"\u23ac","\u23a9":"\u23ad","\u23b0":"\u23b1","\u23b8":"\u23b9"},a={"\u23b4":"\u23b5","\u23dc":"\u23dd","\u23de":"\u23df","\u23e0":"\u23e1","\ufe35":"\ufe36","\ufe37":"\ufe38","\ufe39":"\ufe3a","\ufe3b":"\ufe3c","\ufe3d":"\ufe3e","\ufe3f":"\ufe40","\ufe41":"\ufe42","\ufe43":"\ufe44","\ufe47":"\ufe48"},l=Object.keys(s),c=Object.values(s);c.push("\u301f");const u=Object.keys(a),h=Object.values(a),p=["|","\xa6","\u2223","\u23d0","\u23b8","\u23b9","\u2758","\uff5c","\uffe4","\ufe31","\ufe32"],d=["\u2016","\u2225","\u2980","\u2af4"],f=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],m=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","\u0131","\u0237"],y=["\uff21","\uff22","\uff23","\uff24","\uff25","\uff26","\uff27","\uff28","\uff29","\uff2a","\uff2b","\uff2c","\uff2d","\uff2e","\uff2f","\uff30","\uff31","\uff32","\uff33","\uff34","\uff35","\uff36","\uff37","\uff38","\uff39","\uff3a"],g=["\uff41","\uff42","\uff43","\uff44","\uff45","\uff46","\uff47","\uff48","\uff49","\uff4a","\uff4b","\uff4c","\uff4d","\uff4e","\uff4f","\uff50","\uff51","\uff52","\uff53","\uff54","\uff55","\uff56","\uff57","\uff58","\uff59","\uff5a"],b=["\ud835\udc00","\ud835\udc01","\ud835\udc02","\ud835\udc03","\ud835\udc04","\ud835\udc05","\ud835\udc06","\ud835\udc07","\ud835\udc08","\ud835\udc09","\ud835\udc0a","\ud835\udc0b","\ud835\udc0c","\ud835\udc0d","\ud835\udc0e","\ud835\udc0f","\ud835\udc10","\ud835\udc11","\ud835\udc12","\ud835\udc13","\ud835\udc14","\ud835\udc15","\ud835\udc16","\ud835\udc17","\ud835\udc18","\ud835\udc19"],v=["\ud835\udc1a","\ud835\udc1b","\ud835\udc1c","\ud835\udc1d","\ud835\udc1e","\ud835\udc1f","\ud835\udc20","\ud835\udc21","\ud835\udc22","\ud835\udc23","\ud835\udc24","\ud835\udc25","\ud835\udc26","\ud835\udc27","\ud835\udc28","\ud835\udc29","\ud835\udc2a","\ud835\udc2b","\ud835\udc2c","\ud835\udc2d","\ud835\udc2e","\ud835\udc2f","\ud835\udc30","\ud835\udc31","\ud835\udc32","\ud835\udc33"],M=["\ud835\udc34","\ud835\udc35","\ud835\udc36","\ud835\udc37","\ud835\udc38","\ud835\udc39","\ud835\udc3a","\ud835\udc3b","\ud835\udc3c","\ud835\udc3d","\ud835\udc3e","\ud835\udc3f","\ud835\udc40","\ud835\udc41","\ud835\udc42","\ud835\udc43","\ud835\udc44","\ud835\udc45","\ud835\udc46","\ud835\udc47","\ud835\udc48","\ud835\udc49","\ud835\udc4a","\ud835\udc4b","\ud835\udc4c","\ud835\udc4d"],O=["\ud835\udc4e","\ud835\udc4f","\ud835\udc50","\ud835\udc51","\ud835\udc52","\ud835\udc53","\ud835\udc54","\u210e","\ud835\udc56","\ud835\udc57","\ud835\udc58","\ud835\udc59","\ud835\udc5a","\ud835\udc5b","\ud835\udc5c","\ud835\udc5d","\ud835\udc5e","\ud835\udc5f","\ud835\udc60","\ud835\udc61","\ud835\udc62","\ud835\udc63","\ud835\udc64","\ud835\udc65","\ud835\udc66","\ud835\udc67","\ud835\udea4","\ud835\udea5"],x=["\ud835\udc68","\ud835\udc69","\ud835\udc6a","\ud835\udc6b","\ud835\udc6c","\ud835\udc6d","\ud835\udc6e","\ud835\udc6f","\ud835\udc70","\ud835\udc71","\ud835\udc72","\ud835\udc73","\ud835\udc74","\ud835\udc75","\ud835\udc76","\ud835\udc77","\ud835\udc78","\ud835\udc79","\ud835\udc7a","\ud835\udc7b","\ud835\udc7c","\ud835\udc7d","\ud835\udc7e","\ud835\udc7f","\ud835\udc80","\ud835\udc81"],S=["\ud835\udc82","\ud835\udc83","\ud835\udc84","\ud835\udc85","\ud835\udc86","\ud835\udc87","\ud835\udc88","\ud835\udc89","\ud835\udc8a","\ud835\udc8b","\ud835\udc8c","\ud835\udc8d","\ud835\udc8e","\ud835\udc8f","\ud835\udc90","\ud835\udc91","\ud835\udc92","\ud835\udc93","\ud835\udc94","\ud835\udc95","\ud835\udc96","\ud835\udc97","\ud835\udc98","\ud835\udc99","\ud835\udc9a","\ud835\udc9b"],E=["\ud835\udc9c","\u212c","\ud835\udc9e","\ud835\udc9f","\u2130","\u2131","\ud835\udca2","\u210b","\u2110","\ud835\udca5","\ud835\udca6","\u2112","\u2133","\ud835\udca9","\ud835\udcaa","\ud835\udcab","\ud835\udcac","\u211b","\ud835\udcae","\ud835\udcaf","\ud835\udcb0","\ud835\udcb1","\ud835\udcb2","\ud835\udcb3","\ud835\udcb4","\ud835\udcb5","\u2118"],C=["\ud835\udcb6","\ud835\udcb7","\ud835\udcb8","\ud835\udcb9","\u212f","\ud835\udcbb","\u210a","\ud835\udcbd","\ud835\udcbe","\ud835\udcbf","\ud835\udcc0","\ud835\udcc1","\ud835\udcc2","\ud835\udcc3","\u2134","\ud835\udcc5","\ud835\udcc6","\ud835\udcc7","\ud835\udcc8","\ud835\udcc9","\ud835\udcca","\ud835\udccb","\ud835\udccc","\ud835\udccd","\ud835\udcce","\ud835\udccf","\u2113"],_=["\ud835\udcd0","\ud835\udcd1","\ud835\udcd2","\ud835\udcd3","\ud835\udcd4","\ud835\udcd5","\ud835\udcd6","\ud835\udcd7","\ud835\udcd8","\ud835\udcd9","\ud835\udcda","\ud835\udcdb","\ud835\udcdc","\ud835\udcdd","\ud835\udcde","\ud835\udcdf","\ud835\udce0","\ud835\udce1","\ud835\udce2","\ud835\udce3","\ud835\udce4","\ud835\udce5","\ud835\udce6","\ud835\udce7","\ud835\udce8","\ud835\udce9"],A=["\ud835\udcea","\ud835\udceb","\ud835\udcec","\ud835\udced","\ud835\udcee","\ud835\udcef","\ud835\udcf0","\ud835\udcf1","\ud835\udcf2","\ud835\udcf3","\ud835\udcf4","\ud835\udcf5","\ud835\udcf6","\ud835\udcf7","\ud835\udcf8","\ud835\udcf9","\ud835\udcfa","\ud835\udcfb","\ud835\udcfc","\ud835\udcfd","\ud835\udcfe","\ud835\udcff","\ud835\udd00","\ud835\udd01","\ud835\udd02","\ud835\udd03"],N=["\ud835\udd04","\ud835\udd05","\u212d","\ud835\udd07","\ud835\udd08","\ud835\udd09","\ud835\udd0a","\u210c","\u2111","\ud835\udd0d","\ud835\udd0e","\ud835\udd0f","\ud835\udd10","\ud835\udd11","\ud835\udd12","\ud835\udd13","\ud835\udd14","\u211c","\ud835\udd16","\ud835\udd17","\ud835\udd18","\ud835\udd19","\ud835\udd1a","\ud835\udd1b","\ud835\udd1c","\u2128"],w=["\ud835\udd1e","\ud835\udd1f","\ud835\udd20","\ud835\udd21","\ud835\udd22","\ud835\udd23","\ud835\udd24","\ud835\udd25","\ud835\udd26","\ud835\udd27","\ud835\udd28","\ud835\udd29","\ud835\udd2a","\ud835\udd2b","\ud835\udd2c","\ud835\udd2d","\ud835\udd2e","\ud835\udd2f","\ud835\udd30","\ud835\udd31","\ud835\udd32","\ud835\udd33","\ud835\udd34","\ud835\udd35","\ud835\udd36","\ud835\udd37"],T=["\ud835\udd38","\ud835\udd39","\u2102","\ud835\udd3b","\ud835\udd3c","\ud835\udd3d","\ud835\udd3e","\u210d","\ud835\udd40","\ud835\udd41","\ud835\udd42","\ud835\udd43","\ud835\udd44","\u2115","\ud835\udd46","\u2119","\u211a","\u211d","\ud835\udd4a","\ud835\udd4b","\ud835\udd4c","\ud835\udd4d","\ud835\udd4e","\ud835\udd4f","\ud835\udd50","\u2124"],L=["\ud835\udd52","\ud835\udd53","\ud835\udd54","\ud835\udd55","\ud835\udd56","\ud835\udd57","\ud835\udd58","\ud835\udd59","\ud835\udd5a","\ud835\udd5b","\ud835\udd5c","\ud835\udd5d","\ud835\udd5e","\ud835\udd5f","\ud835\udd60","\ud835\udd61","\ud835\udd62","\ud835\udd63","\ud835\udd64","\ud835\udd65","\ud835\udd66","\ud835\udd67","\ud835\udd68","\ud835\udd69","\ud835\udd6a","\ud835\udd6b"],P=["\ud835\udd6c","\ud835\udd6d","\ud835\udd6e","\ud835\udd6f","\ud835\udd70","\ud835\udd71","\ud835\udd72","\ud835\udd73","\ud835\udd74","\ud835\udd75","\ud835\udd76","\ud835\udd77","\ud835\udd78","\ud835\udd79","\ud835\udd7a","\ud835\udd7b","\ud835\udd7c","\ud835\udd7d","\ud835\udd7e","\ud835\udd7f","\ud835\udd80","\ud835\udd81","\ud835\udd82","\ud835\udd83","\ud835\udd84","\ud835\udd85"],k=["\ud835\udd86","\ud835\udd87","\ud835\udd88","\ud835\udd89","\ud835\udd8a","\ud835\udd8b","\ud835\udd8c","\ud835\udd8d","\ud835\udd8e","\ud835\udd8f","\ud835\udd90","\ud835\udd91","\ud835\udd92","\ud835\udd93","\ud835\udd94","\ud835\udd95","\ud835\udd96","\ud835\udd97","\ud835\udd98","\ud835\udd99","\ud835\udd9a","\ud835\udd9b","\ud835\udd9c","\ud835\udd9d","\ud835\udd9e","\ud835\udd9f"],I=["\ud835\udda0","\ud835\udda1","\ud835\udda2","\ud835\udda3","\ud835\udda4","\ud835\udda5","\ud835\udda6","\ud835\udda7","\ud835\udda8","\ud835\udda9","\ud835\uddaa","\ud835\uddab","\ud835\uddac","\ud835\uddad","\ud835\uddae","\ud835\uddaf","\ud835\uddb0","\ud835\uddb1","\ud835\uddb2","\ud835\uddb3","\ud835\uddb4","\ud835\uddb5","\ud835\uddb6","\ud835\uddb7","\ud835\uddb8","\ud835\uddb9"],R=["\ud835\uddba","\ud835\uddbb","\ud835\uddbc","\ud835\uddbd","\ud835\uddbe","\ud835\uddbf","\ud835\uddc0","\ud835\uddc1","\ud835\uddc2","\ud835\uddc3","\ud835\uddc4","\ud835\uddc5","\ud835\uddc6","\ud835\uddc7","\ud835\uddc8","\ud835\uddc9","\ud835\uddca","\ud835\uddcb","\ud835\uddcc","\ud835\uddcd","\ud835\uddce","\ud835\uddcf","\ud835\uddd0","\ud835\uddd1","\ud835\uddd2","\ud835\uddd3"],j=["\ud835\uddd4","\ud835\uddd5","\ud835\uddd6","\ud835\uddd7","\ud835\uddd8","\ud835\uddd9","\ud835\uddda","\ud835\udddb","\ud835\udddc","\ud835\udddd","\ud835\uddde","\ud835\udddf","\ud835\udde0","\ud835\udde1","\ud835\udde2","\ud835\udde3","\ud835\udde4","\ud835\udde5","\ud835\udde6","\ud835\udde7","\ud835\udde8","\ud835\udde9","\ud835\uddea","\ud835\uddeb","\ud835\uddec","\ud835\udded"],B=["\ud835\uddee","\ud835\uddef","\ud835\uddf0","\ud835\uddf1","\ud835\uddf2","\ud835\uddf3","\ud835\uddf4","\ud835\uddf5","\ud835\uddf6","\ud835\uddf7","\ud835\uddf8","\ud835\uddf9","\ud835\uddfa","\ud835\uddfb","\ud835\uddfc","\ud835\uddfd","\ud835\uddfe","\ud835\uddff","\ud835\ude00","\ud835\ude01","\ud835\ude02","\ud835\ude03","\ud835\ude04","\ud835\ude05","\ud835\ude06","\ud835\ude07"],D=["\ud835\ude08","\ud835\ude09","\ud835\ude0a","\ud835\ude0b","\ud835\ude0c","\ud835\ude0d","\ud835\ude0e","\ud835\ude0f","\ud835\ude10","\ud835\ude11","\ud835\ude12","\ud835\ude13","\ud835\ude14","\ud835\ude15","\ud835\ude16","\ud835\ude17","\ud835\ude18","\ud835\ude19","\ud835\ude1a","\ud835\ude1b","\ud835\ude1c","\ud835\ude1d","\ud835\ude1e","\ud835\ude1f","\ud835\ude20","\ud835\ude21"],F=["\ud835\ude22","\ud835\ude23","\ud835\ude24","\ud835\ude25","\ud835\ude26","\ud835\ude27","\ud835\ude28","\ud835\ude29","\ud835\ude2a","\ud835\ude2b","\ud835\ude2c","\ud835\ude2d","\ud835\ude2e","\ud835\ude2f","\ud835\ude30","\ud835\ude31","\ud835\ude32","\ud835\ude33","\ud835\ude34","\ud835\ude35","\ud835\ude36","\ud835\ude37","\ud835\ude38","\ud835\ude39","\ud835\ude3a","\ud835\ude3b"],H=["\ud835\ude3c","\ud835\ude3d","\ud835\ude3e","\ud835\ude3f","\ud835\ude40","\ud835\ude41","\ud835\ude42","\ud835\ude43","\ud835\ude44","\ud835\ude45","\ud835\ude46","\ud835\ude47","\ud835\ude48","\ud835\ude49","\ud835\ude4a","\ud835\ude4b","\ud835\ude4c","\ud835\ude4d","\ud835\ude4e","\ud835\ude4f","\ud835\ude50","\ud835\ude51","\ud835\ude52","\ud835\ude53","\ud835\ude54","\ud835\ude55"],U=["\ud835\ude56","\ud835\ude57","\ud835\ude58","\ud835\ude59","\ud835\ude5a","\ud835\ude5b","\ud835\ude5c","\ud835\ude5d","\ud835\ude5e","\ud835\ude5f","\ud835\ude60","\ud835\ude61","\ud835\ude62","\ud835\ude63","\ud835\ude64","\ud835\ude65","\ud835\ude66","\ud835\ude67","\ud835\ude68","\ud835\ude69","\ud835\ude6a","\ud835\ude6b","\ud835\ude6c","\ud835\ude6d","\ud835\ude6e","\ud835\ude6f"],X=["\ud835\ude70","\ud835\ude71","\ud835\ude72","\ud835\ude73","\ud835\ude74","\ud835\ude75","\ud835\ude76","\ud835\ude77","\ud835\ude78","\ud835\ude79","\ud835\ude7a","\ud835\ude7b","\ud835\ude7c","\ud835\ude7d","\ud835\ude7e","\ud835\ude7f","\ud835\ude80","\ud835\ude81","\ud835\ude82","\ud835\ude83","\ud835\ude84","\ud835\ude85","\ud835\ude86","\ud835\ude87","\ud835\ude88","\ud835\ude89"],V=["\ud835\ude8a","\ud835\ude8b","\ud835\ude8c","\ud835\ude8d","\ud835\ude8e","\ud835\ude8f","\ud835\ude90","\ud835\ude91","\ud835\ude92","\ud835\ude93","\ud835\ude94","\ud835\ude95","\ud835\ude96","\ud835\ude97","\ud835\ude98","\ud835\ude99","\ud835\ude9a","\ud835\ude9b","\ud835\ude9c","\ud835\ude9d","\ud835\ude9e","\ud835\ude9f","\ud835\udea0","\ud835\udea1","\ud835\udea2","\ud835\udea3"],W=["\u2145","\u2146","\u2147","\u2148","\u2149"],G=["\u0391","\u0392","\u0393","\u0394","\u0395","\u0396","\u0397","\u0398","\u0399","\u039a","\u039b","\u039c","\u039d","\u039e","\u039f","\u03a0","\u03a1","\u03a3","\u03a4","\u03a5","\u03a6","\u03a7","\u03a8","\u03a9"],z=["\u03b1","\u03b2","\u03b3","\u03b4","\u03b5","\u03b6","\u03b7","\u03b8","\u03b9","\u03ba","\u03bb","\u03bc","\u03bd","\u03be","\u03bf","\u03c0","\u03c1","\u03c2","\u03c3","\u03c4","\u03c5","\u03c6","\u03c7","\u03c8","\u03c9"],q=["\ud835\udea8","\ud835\udea9","\ud835\udeaa","\ud835\udeab","\ud835\udeac","\ud835\udead","\ud835\udeae","\ud835\udeaf","\ud835\udeb0","\ud835\udeb1","\ud835\udeb2","\ud835\udeb3","\ud835\udeb4","\ud835\udeb5","\ud835\udeb6","\ud835\udeb7","\ud835\udeb8","\ud835\udeba","\ud835\udebb","\ud835\udebc","\ud835\udebd","\ud835\udebe","\ud835\udebf","\ud835\udec0"],J=["\ud835\udec2","\ud835\udec3","\ud835\udec4","\ud835\udec5","\ud835\udec6","\ud835\udec7","\ud835\udec8","\ud835\udec9","\ud835\udeca","\ud835\udecb","\ud835\udecc","\ud835\udecd","\ud835\udece","\ud835\udecf","\ud835\uded0","\ud835\uded1","\ud835\uded2","\ud835\uded3","\ud835\uded4","\ud835\uded5","\ud835\uded6","\ud835\uded7","\ud835\uded8","\ud835\uded9","\ud835\udeda"],K=["\ud835\udee2","\ud835\udee3","\ud835\udee4","\ud835\udee5","\ud835\udee6","\ud835\udee7","\ud835\udee8","\ud835\udee9","\ud835\udeea","\ud835\udeeb","\ud835\udeec","\ud835\udeed","\ud835\udeee","\ud835\udeef","\ud835\udef0","\ud835\udef1","\ud835\udef2","\ud835\udef4","\ud835\udef5","\ud835\udef6","\ud835\udef7","\ud835\udef8","\ud835\udef9","\ud835\udefa"],$=["\ud835\udefc","\ud835\udefd","\ud835\udefe","\ud835\udeff","\ud835\udf00","\ud835\udf01","\ud835\udf02","\ud835\udf03","\ud835\udf04","\ud835\udf05","\ud835\udf06","\ud835\udf07","\ud835\udf08","\ud835\udf09","\ud835\udf0a","\ud835\udf0b","\ud835\udf0c","\ud835\udf0d","\ud835\udf0e","\ud835\udf0f","\ud835\udf10","\ud835\udf11","\ud835\udf12","\ud835\udf13","\ud835\udf14"],Y=["\ud835\udf1c","\ud835\udf1d","\ud835\udf1e","\ud835\udf1f","\ud835\udf20","\ud835\udf21","\ud835\udf22","\ud835\udf23","\ud835\udf24","\ud835\udf25","\ud835\udf26","\ud835\udf27","\ud835\udf28","\ud835\udf29","\ud835\udf2a","\ud835\udf2b","\ud835\udf2c","\ud835\udf2e","\ud835\udf2f","\ud835\udf30","\ud835\udf31","\ud835\udf32","\ud835\udf33","\ud835\udf34"],Z=["\ud835\udf36","\ud835\udf37","\ud835\udf38","\ud835\udf39","\ud835\udf3a","\ud835\udf3b","\ud835\udf3c","\ud835\udf3d","\ud835\udf3e","\ud835\udf3f","\ud835\udf40","\ud835\udf41","\ud835\udf42","\ud835\udf43","\ud835\udf44","\ud835\udf45","\ud835\udf46","\ud835\udf47","\ud835\udf48","\ud835\udf49","\ud835\udf4a","\ud835\udf4b","\ud835\udf4c","\ud835\udf4d","\ud835\udf4e"],Q=["\ud835\udf56","\ud835\udf57","\ud835\udf58","\ud835\udf59","\ud835\udf5a","\ud835\udf5b","\ud835\udf5c","\ud835\udf5d","\ud835\udf5e","\ud835\udf5f","\ud835\udf60","\ud835\udf61","\ud835\udf62","\ud835\udf63","\ud835\udf64","\ud835\udf65","\ud835\udf66","\ud835\udf68","\ud835\udf69","\ud835\udf6a","\ud835\udf6b","\ud835\udf6c","\ud835\udf6d","\ud835\udf6e"],tt=["\ud835\udf70","\ud835\udf71","\ud835\udf72","\ud835\udf73","\ud835\udf74","\ud835\udf75","\ud835\udf76","\ud835\udf77","\ud835\udf78","\ud835\udf79","\ud835\udf7a","\ud835\udf7b","\ud835\udf7c","\ud835\udf7d","\ud835\udf7e","\ud835\udf7f","\ud835\udf80","\ud835\udf81","\ud835\udf82","\ud835\udf83","\ud835\udf84","\ud835\udf85","\ud835\udf86","\ud835\udf87","\ud835\udf88"],et=["\ud835\udf90","\ud835\udf91","\ud835\udf92","\ud835\udf93","\ud835\udf94","\ud835\udf95","\ud835\udf96","\ud835\udf97","\ud835\udf98","\ud835\udf99","\ud835\udf9a","\ud835\udf9b","\ud835\udf9c","\ud835\udf9d","\ud835\udf9e","\ud835\udf9f","\ud835\udfa0","\ud835\udfa2","\ud835\udfa3","\ud835\udfa4","\ud835\udfa5","\ud835\udfa6","\ud835\udfa7","\ud835\udfa8"],rt=["\ud835\udfaa","\ud835\udfab","\ud835\udfac","\ud835\udfad","\ud835\udfae","\ud835\udfaf","\ud835\udfb0","\ud835\udfb1","\ud835\udfb2","\ud835\udfb3","\ud835\udfb4","\ud835\udfb5","\ud835\udfb6","\ud835\udfb7","\ud835\udfb8","\ud835\udfb9","\ud835\udfba","\ud835\udfbb","\ud835\udfbc","\ud835\udfbd","\ud835\udfbe","\ud835\udfbf","\ud835\udfc0","\ud835\udfc1","\ud835\udfc2"],nt=["\u213c","\u213d","\u213e","\u213f"],it=["\u03d0","\u03d1","\u03d5","\u03d6","\u03d7","\u03f0","\u03f1","\u03f5","\u03f6","\u03f4"],ot=["\ud835\udedc","\ud835\udedd","\ud835\udede","\ud835\udedf","\ud835\udee0","\ud835\udee1"],st=["\ud835\udf16","\ud835\udf17","\ud835\udf18","\ud835\udf19","\ud835\udf1a","\ud835\udf1b"],at=["\ud835\udf8a","\ud835\udf8b","\ud835\udf8c","\ud835\udf8d","\ud835\udf8e","\ud835\udf8f"],lt=["\u2135","\u2136","\u2137","\u2138"],ct=f.concat(m,y,g,b,v,M,x,S,O,E,C,_,A,N,w,T,L,P,k,I,R,j,B,D,F,H,U,X,V,W,G,z,q,J,K,$,Y,Z,Q,tt,nt,it,et,rt,ot,st,at,lt);e.allLettersRegExp=new RegExp(ct.join("|"));const ut=["+","\xb1","\u2213","\u2214","\u2227","\u2228","\u2229","\u222a","\u228c","\u228d","\u228e","\u2293","\u2294","\u229d","\u229e","\u22a4","\u22a5","\u22ba","\u22bb","\u22bc","\u22c4","\u22ce","\u22cf","\u22d2","\u22d3","\u2a5e","\u2295","\u22d4"],ht=String.fromCodePoint(8292);ut.push(ht);const pt=["\u2020","\u2021","\u2210","\u2217","\u2218","\u2219","\u2240","\u229a","\u229b","\u22a0","\u22a1","\u22c5","\u22c6","\u22c7","\u22c8","\u22c9","\u22ca","\u22cb","\u22cc","\u25cb","\xb7","*","\u2297","\u2299"],dt=String.fromCodePoint(8290);pt.push(dt);const ft=String.fromCodePoint(8289),mt=["\xbc","\xbd","\xbe","\u2150","\u2151","\u2152","\u2153","\u2154","\u2155","\u2156","\u2157","\u2158","\u2159","\u215a","\u215b","\u215c","\u215d","\u215e","\u215f","\u2189"],yt=["\xb2","\xb3","\xb9","\u2070","\u2074","\u2075","\u2076","\u2077","\u2078","\u2079"].concat(["\u2080","\u2081","\u2082","\u2083","\u2084","\u2085","\u2086","\u2087","\u2088","\u2089"],["\u2460","\u2461","\u2462","\u2463","\u2464","\u2465","\u2466","\u2467","\u2468","\u2469","\u246a","\u246b","\u246c","\u246d","\u246e","\u246f","\u2470","\u2471","\u2472","\u2473","\u24ea","\u24eb","\u24ec","\u24ed","\u24ee","\u24ef","\u24f0","\u24f1","\u24f2","\u24f3","\u24f4","\u24f5","\u24f6","\u24f7","\u24f8","\u24f9","\u24fa","\u24fb","\u24fc","\u24fd","\u24fe","\u24ff","\u2776","\u2777","\u2778","\u2779","\u277a","\u277b","\u277c","\u277d","\u277e","\u277f","\u2780","\u2781","\u2782","\u2783","\u2784","\u2785","\u2786","\u2787","\u2788","\u2789","\u278a","\u278b","\u278c","\u278d","\u278e","\u278f","\u2790","\u2791","\u2792","\u2793","\u3248","\u3249","\u324a","\u324b","\u324c","\u324d","\u324e","\u324f","\u3251","\u3252","\u3253","\u3254","\u3255","\u3256","\u3257","\u3258","\u3259","\u325a","\u325b","\u325c","\u325d","\u325e","\u325f","\u32b1","\u32b2","\u32b3","\u32b4","\u32b5","\u32b6","\u32b7","\u32b8","\u32b9","\u32ba","\u32bb","\u32bc","\u32bd","\u32be","\u32bf"],["\u2474","\u2475","\u2476","\u2477","\u2478","\u2479","\u247a","\u247b","\u247c","\u247d","\u247e","\u247f","\u2480","\u2481","\u2482","\u2483","\u2484","\u2485","\u2486","\u2487"],["\u2488","\u2489","\u248a","\u248b","\u248c","\u248d","\u248e","\u248f","\u2490","\u2491","\u2492","\u2493","\u2494","\u2495","\u2496","\u2497","\u2498","\u2499","\u249a","\u249b","\ud83c\udd00","\ud83c\udd01","\ud83c\udd02","\ud83c\udd03","\ud83c\udd04","\ud83c\udd05","\ud83c\udd06","\ud83c\udd07","\ud83c\udd08","\ud83c\udd09","\ud83c\udd0a"]),gt=["cos","cot","csc","sec","sin","tan","arccos","arccot","arccsc","arcsec","arcsin","arctan","arc cos","arc cot","arc csc","arc sec","arc sin","arc tan"].concat(["cosh","coth","csch","sech","sinh","tanh","arcosh","arcoth","arcsch","arsech","arsinh","artanh","arccosh","arccoth","arccsch","arcsech","arcsinh","arctanh"],["deg","det","dim","hom","ker","Tr","tr"],["log","ln","lg","exp","expt","gcd","gcd","arg","im","re","Pr"]),bt=[{set:["!",'"',"#","%","&",";","?","@","\\","\xa1","\xa7","\xb6","\xbf","\u2017","\u2020","\u2021","\u2022","\u2023","\u2024","\u2025","\u2027","\u2030","\u2031","\u2038","\u203b","\u203c","\u203d","\u203e","\u2041","\u2042","\u2043","\u2047","\u2048","\u2049","\u204b","\u204c","\u204d","\u204e","\u204f","\u2050","\u2051","\u2053","\u2055","\u2056","\u2058","\u2059","\u205a","\u205b","\u205c","\u205d","\u205e","\ufe10","\ufe14","\ufe15","\ufe16","\ufe30","\ufe45","\ufe46","\ufe49","\ufe4a","\ufe4b","\ufe4c","\ufe54","\ufe56","\ufe57","\ufe5f","\ufe60","\ufe61","\ufe68","\ufe6a","\ufe6b","\uff01","\uff02","\uff03","\uff05","\uff06","\uff07","\uff0a","\uff0f","\uff1b","\uff1f","\uff20","\uff3c"],type:"punctuation",role:"unknown"},{set:["\ufe13",":","\uff1a","\ufe55"],type:"punctuation",role:"colon"},{set:n,type:"punctuation",role:"comma"},{set:["\u2026","\u22ee","\u22ef","\u22f0","\u22f1","\ufe19"],type:"punctuation",role:"ellipsis"},{set:[".","\ufe52","\uff0e"],type:"punctuation",role:"fullstop"},{set:i,type:"operator",role:"dash"},{set:o,type:"operator",role:"tilde"},{set:["'","\u2032","\u2033","\u2034","\u2035","\u2036","\u2037","\u2057","\u02b9","\u02ba"],type:"punctuation",role:"prime"},{set:["\xb0"],type:"punctuation",role:"degree"},{set:l,type:"fence",role:"open"},{set:c,type:"fence",role:"close"},{set:u,type:"fence",role:"top"},{set:h,type:"fence",role:"bottom"},{set:p,type:"fence",role:"neutral"},{set:d,type:"fence",role:"metric"},{set:m,type:"identifier",role:"latinletter",font:"normal"},{set:f,type:"identifier",role:"latinletter",font:"normal"},{set:g,type:"identifier",role:"latinletter",font:"normal"},{set:y,type:"identifier",role:"latinletter",font:"normal"},{set:v,type:"identifier",role:"latinletter",font:"bold"},{set:b,type:"identifier",role:"latinletter",font:"bold"},{set:O,type:"identifier",role:"latinletter",font:"italic"},{set:M,type:"identifier",role:"latinletter",font:"italic"},{set:S,type:"identifier",role:"latinletter",font:"bold-italic"},{set:x,type:"identifier",role:"latinletter",font:"bold-italic"},{set:C,type:"identifier",role:"latinletter",font:"script"},{set:E,type:"identifier",role:"latinletter",font:"script"},{set:A,type:"identifier",role:"latinletter",font:"bold-script"},{set:_,type:"identifier",role:"latinletter",font:"bold-script"},{set:w,type:"identifier",role:"latinletter",font:"fraktur"},{set:N,type:"identifier",role:"latinletter",font:"fraktur"},{set:L,type:"identifier",role:"latinletter",font:"double-struck"},{set:T,type:"identifier",role:"latinletter",font:"double-struck"},{set:k,type:"identifier",role:"latinletter",font:"bold-fraktur"},{set:P,type:"identifier",role:"latinletter",font:"bold-fraktur"},{set:R,type:"identifier",role:"latinletter",font:"sans-serif"},{set:I,type:"identifier",role:"latinletter",font:"sans-serif"},{set:B,type:"identifier",role:"latinletter",font:"sans-serif-bold"},{set:j,type:"identifier",role:"latinletter",font:"sans-serif-bold"},{set:F,type:"identifier",role:"latinletter",font:"sans-serif-italic"},{set:D,type:"identifier",role:"latinletter",font:"sans-serif-italic"},{set:U,type:"identifier",role:"latinletter",font:"sans-serif-bold-italic"},{set:H,type:"identifier",role:"latinletter",font:"sans-serif-bold-italic"},{set:V,type:"identifier",role:"latinletter",font:"monospace"},{set:X,type:"identifier",role:"latinletter",font:"monospace"},{set:W,type:"identifier",role:"latinletter",font:"double-struck-italic"},{set:z,type:"identifier",role:"greekletter",font:"normal"},{set:G,type:"identifier",role:"greekletter",font:"normal"},{set:J,type:"identifier",role:"greekletter",font:"bold"},{set:q,type:"identifier",role:"greekletter",font:"bold"},{set:$,type:"identifier",role:"greekletter",font:"italic"},{set:K,type:"identifier",role:"greekletter",font:"italic"},{set:Z,type:"identifier",role:"greekletter",font:"bold-italic"},{set:Y,type:"identifier",role:"greekletter",font:"bold-italic"},{set:tt,type:"identifier",role:"greekletter",font:"sans-serif-bold"},{set:Q,type:"identifier",role:"greekletter",font:"sans-serif-bold"},{set:et,type:"identifier",role:"greekletter",font:"sans-serif-bold-italic"},{set:rt,type:"identifier",role:"greekletter",font:"sans-serif-bold-italic"},{set:nt,type:"identifier",role:"greekletter",font:"double-struck"},{set:it,type:"identifier",role:"greekletter",font:"normal"},{set:ot,type:"identifier",role:"greekletter",font:"bold"},{set:st,type:"identifier",role:"greekletter",font:"italic"},{set:at,type:"identifier",role:"greekletter",font:"sans-serif-bold"},{set:lt,type:"identifier",role:"otherletter",font:"normal"},{set:["0","1","2","3","4","5","6","7","8","9"],type:"number",role:"integer",font:"normal"},{set:["\uff10","\uff11","\uff12","\uff13","\uff14","\uff15","\uff16","\uff17","\uff18","\uff19"],type:"number",role:"integer",font:"normal"},{set:["\ud835\udfce","\ud835\udfcf","\ud835\udfd0","\ud835\udfd1","\ud835\udfd2","\ud835\udfd3","\ud835\udfd4","\ud835\udfd5","\ud835\udfd6","\ud835\udfd7"],type:"number",role:"integer",font:"bold"},{set:["\ud835\udfd8","\ud835\udfd9","\ud835\udfda","\ud835\udfdb","\ud835\udfdc","\ud835\udfdd","\ud835\udfde","\ud835\udfdf","\ud835\udfe0","\ud835\udfe1"],type:"number",role:"integer",font:"double-struck"},{set:["\ud835\udfe2","\ud835\udfe3","\ud835\udfe4","\ud835\udfe5","\ud835\udfe6","\ud835\udfe7","\ud835\udfe8","\ud835\udfe9","\ud835\udfea","\ud835\udfeb"],type:"number",role:"integer",font:"sans-serif"},{set:["\ud835\udfec","\ud835\udfed","\ud835\udfee","\ud835\udfef","\ud835\udff0","\ud835\udff1","\ud835\udff2","\ud835\udff3","\ud835\udff4","\ud835\udff5"],type:"number",role:"integer",font:"sans-serif-bold"},{set:["\ud835\udff6","\ud835\udff7","\ud835\udff8","\ud835\udff9","\ud835\udffa","\ud835\udffb","\ud835\udffc","\ud835\udffd","\ud835\udffe","\ud835\udfff"],type:"number",role:"integer",font:"monospace"},{set:mt,type:"number",role:"float"},{set:yt,type:"number",role:"othernumber"},{set:ut,type:"operator",role:"addition"},{set:pt,type:"operator",role:"multiplication"},{set:["\xaf","-","\u2052","\u207b","\u208b","\u2212","\u2216","\u2238","\u2242","\u2296","\u229f","\u2796","\u2a29","\u2a2a","\u2a2b","\u2a2c","\u2a3a","\u2a41","\ufe63","\uff0d","\u2010","\u2011"],type:"operator",role:"subtraction"},{set:["/","\xf7","\u2044","\u2215","\u2298","\u27cc","\u29bc","\u2a38"],type:"operator",role:"division"},{set:["\u2200","\u2203","\u2206","\u2207","\u2202","\u2201","\u2204"],type:"operator",role:"prefix operator"},{set:["\ud835\udec1","\ud835\udedb","\ud835\udfca","\ud835\udfcb"],type:"operator",role:"prefix operator",font:"bold"},{set:["\ud835\udefb","\ud835\udf15"],type:"operator",role:"prefix operator",font:"italic"},{set:["\ud835\udf6f","\ud835\udf89"],type:"operator",role:"prefix operator",font:"sans-serif-bold"},{set:["=","~","\u207c","\u208c","\u223c","\u223d","\u2243","\u2245","\u2248","\u224a","\u224b","\u224c","\u224d","\u224e","\u2251","\u2252","\u2253","\u2254","\u2255","\u2256","\u2257","\u2258","\u2259","\u225a","\u225b","\u225c","\u225d","\u225e","\u225f","\u2261","\u2263","\u29e4","\u2a66","\u2a6e","\u2a6f","\u2a70","\u2a71","\u2a72","\u2a73","\u2a74","\u2a75","\u2a76","\u2a77","\u2a78","\u22d5","\u2a6d","\u2a6a","\u2a6b","\u2a6c","\ufe66","\uff1d","\u2a6c","\u229c","\u2237"],type:"relation",role:"equality"},{set:["<",">","\u2241","\u2242","\u2244","\u2246","\u2247","\u2249","\u224f","\u2250","\u2260","\u2262","\u2264","\u2265","\u2266","\u2267","\u2268","\u2269","\u226a","\u226b","\u226c","\u226d","\u226e","\u226f","\u2270","\u2271","\u2272","\u2273","\u2274","\u2275","\u2276","\u2277","\u2278","\u2279","\u227a","\u227b","\u227c","\u227d","\u227e","\u227f","\u2280","\u2281","\u22d6","\u22d7","\u22d8","\u22d9","\u22da","\u22db","\u22dc","\u22dd","\u22de","\u22df","\u22e0","\u22e1","\u22e6","\u22e7","\u22e8","\u22e9","\u2a79","\u2a7a","\u2a7b","\u2a7c","\u2a7d","\u2a7e","\u2a7f","\u2a80","\u2a81","\u2a82","\u2a83","\u2a84","\u2a85","\u2a86","\u2a87","\u2a88","\u2a89","\u2a8a","\u2a8b","\u2a8c","\u2a8d","\u2a8e","\u2a8f","\u2a90","\u2a91","\u2a92","\u2a93","\u2a94","\u2a95","\u2a96","\u2a97","\u2a98","\u2a99","\u2a9a","\u2a9b","\u2a9c","\u2a9d","\u2a9e","\u2a9f","\u2aa0","\u2aa1","\u2aa2","\u2aa3","\u2aa4","\u2aa5","\u2aa6","\u2aa7","\u2aa8","\u2aa9","\u2aaa","\u2aab","\u2aac","\u2aad","\u2aae","\u2aaf","\u2ab0","\u2ab1","\u2ab2","\u2ab3","\u2ab4","\u2ab5","\u2ab6","\u2ab7","\u2ab8","\u2ab9","\u2aba","\u2abb","\u2abc","\u2af7","\u2af8","\u2af9","\u2afa","\u29c0","\u29c1","\ufe64","\ufe65","\uff1c","\uff1e"],type:"relation",role:"inequality"},{set:["\u22e2","\u22e3","\u22e4","\u22e5","\u2282","\u2283","\u2284","\u2285","\u2286","\u2287","\u2288","\u2289","\u228a","\u228b","\u228f","\u2290","\u2291","\u2292","\u2abd","\u2abe","\u2abf","\u2ac0","\u2ac1","\u2ac2","\u2ac3","\u2ac4","\u2ac5","\u2ac6","\u2ac7","\u2ac8","\u2ac9","\u2aca","\u2acb","\u2acc","\u2acd","\u2ace","\u2acf","\u2ad0","\u2ad1","\u2ad2","\u2ad3","\u2ad4","\u2ad5","\u2ad6","\u2ad7","\u2ad8","\u22d0","\u22d1","\u22ea","\u22eb","\u22ec","\u22ed","\u22b2","\u22b3","\u22b4","\u22b5"],type:"relation",role:"set"},{set:["\u22a2","\u22a3","\u22a6","\u22a7","\u22a8","\u22a9","\u22aa","\u22ab","\u22ac","\u22ad","\u22ae","\u22af","\u2ade","\u2adf","\u2ae0","\u2ae1","\u2ae2","\u2ae3","\u2ae4","\u2ae5","\u2ae6","\u2ae7","\u2ae8","\u2ae9","\u2aea","\u2aeb","\u2aec","\u2aed"],type:"relation",role:"unknown"},{set:["\u2190","\u2191","\u2192","\u2193","\u2194","\u2195","\u2196","\u2197","\u2198","\u2199","\u219a","\u219b","\u219c","\u219d","\u219e","\u219f","\u21a0","\u21a1","\u21a2","\u21a3","\u21a4","\u21a5","\u21a6","\u21a7","\u21a8","\u21a9","\u21aa","\u21ab","\u21ac","\u21ad","\u21ae","\u21af","\u21b0","\u21b1","\u21b2","\u21b3","\u21b4","\u21b5","\u21b6","\u21b7","\u21b8","\u21b9","\u21ba","\u21bb","\u21c4","\u21c5","\u21c6","\u21c7","\u21c8","\u21c9","\u21ca","\u21cd","\u21ce","\u21cf","\u21d0","\u21d1","\u21d2","\u21d3","\u21d4","\u21d5","\u21d6","\u21d7","\u21d8","\u21d9","\u21da","\u21db","\u21dc","\u21dd","\u21de","\u21df","\u21e0","\u21e1","\u21e2","\u21e3","\u21e4","\u21e5","\u21e6","\u21e7","\u21e8","\u21e9","\u21ea","\u21eb","\u21ec","\u21ed","\u21ee","\u21ef","\u21f0","\u21f1","\u21f2","\u21f3","\u21f4","\u21f5","\u21f6","\u21f7","\u21f8","\u21f9","\u21fa","\u21fb","\u21fc","\u21fd","\u21fe","\u21ff","\u2301","\u2303","\u2304","\u2324","\u238b","\u2794","\u2798","\u2799","\u279a","\u279b","\u279c","\u279d","\u279e","\u279f","\u27a0","\u27a1","\u27a2","\u27a3","\u27a4","\u27a5","\u27a6","\u27a7","\u27a8","\u27a9","\u27aa","\u27ab","\u27ac","\u27ad","\u27ae","\u27af","\u27b1","\u27b2","\u27b3","\u27b4","\u27b5","\u27b6","\u27b7","\u27b8","\u27b9","\u27ba","\u27bb","\u27bc","\u27bd","\u27be","\u27f0","\u27f1","\u27f2","\u27f3","\u27f4","\u27f5","\u27f6","\u27f7","\u27f8","\u27f9","\u27fa","\u27fb","\u27fc","\u27fd","\u27fe","\u27ff","\u2900","\u2901","\u2902","\u2903","\u2904","\u2905","\u2906","\u2907","\u2908","\u2909","\u290a","\u290b","\u290c","\u290d","\u290e","\u290f","\u2910","\u2911","\u2912","\u2913","\u2914","\u2915","\u2916","\u2917","\u2918","\u2919","\u291a","\u291b","\u291c","\u291d","\u291e","\u291f","\u2920","\u2921","\u2922","\u2923","\u2924","\u2925","\u2926","\u2927","\u2928","\u2929","\u292a","\u292d","\u292e","\u292f","\u2930","\u2931","\u2932","\u2933","\u2934","\u2935","\u2936","\u2937","\u2938","\u2939","\u293a","\u293b","\u293c","\u293d","\u293e","\u293f","\u2940","\u2941","\u2942","\u2943","\u2944","\u2945","\u2946","\u2947","\u2948","\u2949","\u2970","\u2971","\u2972","\u2973","\u2974","\u2975","\u2976","\u2977","\u2978","\u2979","\u297a","\u297b","\u29b3","\u29b4","\u29bd","\u29ea","\u29ec","\u29ed","\u2a17","\u2b00","\u2b01","\u2b02","\u2b03","\u2b04","\u2b05","\u2b06","\u2b07","\u2b08","\u2b09","\u2b0a","\u2b0b","\u2b0c","\u2b0d","\u2b0e","\u2b0f","\u2b10","\u2b11","\u2b30","\u2b31","\u2b32","\u2b33","\u2b34","\u2b35","\u2b36","\u2b37","\u2b38","\u2b39","\u2b3a","\u2b3b","\u2b3c","\u2b3d","\u2b3e","\u2b3f","\u2b40","\u2b41","\u2b42","\u2b43","\u2b44","\u2b45","\u2b46","\u2b47","\u2b48","\u2b49","\u2b4a","\u2b4b","\u2b4c","\uffe9","\uffea","\uffeb","\uffec","\u21bc","\u21bd","\u21be","\u21bf","\u21c0","\u21c1","\u21c2","\u21c3","\u21cb","\u21cc","\u294a","\u294b","\u294c","\u294d","\u294e","\u294f","\u2950","\u2951","\u2952","\u2953","\u2954","\u2955","\u2956","\u2957","\u2958","\u2959","\u295a","\u295b","\u295c","\u295d","\u295e","\u295f","\u2960","\u2961","\u2962","\u2963","\u2964","\u2965","\u2966","\u2967","\u2968","\u2969","\u296a","\u296b","\u296c","\u296d","\u296e","\u296f","\u297c","\u297d","\u297e","\u297f"],type:"relation",role:"arrow"},{set:["\u2208","\u220a","\u22f2","\u22f3","\u22f4","\u22f5","\u22f6","\u22f7","\u22f8","\u22f9","\u22ff"],type:"operator",role:"element"},{set:["\u2209"],type:"operator",role:"nonelement"},{set:["\u220b","\u220d","\u22fa","\u22fb","\u22fc","\u22fd","\u22fe"],type:"operator",role:"reelement"},{set:["\u220c"],type:"operator",role:"renonelement"},{set:["\u2140","\u220f","\u2210","\u2211","\u22c0","\u22c1","\u22c2","\u22c3","\u2a00","\u2a01","\u2a02","\u2a03","\u2a04","\u2a05","\u2a06","\u2a07","\u2a08","\u2a09","\u2a0a","\u2a0b","\u2afc","\u2aff"],type:"largeop",role:"sum"},{set:["\u222b","\u222c","\u222d","\u222e","\u222f","\u2230","\u2231","\u2232","\u2233","\u2a0c","\u2a0d","\u2a0e","\u2a0f","\u2a10","\u2a11","\u2a12","\u2a13","\u2a14","\u2a15","\u2a16","\u2a17","\u2a18","\u2a19","\u2a1a","\u2a1b","\u2a1c"],type:"largeop",role:"integral"},{set:["\u221f","\u2220","\u2221","\u2222","\u22be","\u22bf","\u25b3","\u25b7","\u25bd","\u25c1"],type:"operator",role:"geometry"},{set:["inf","lim","liminf","limsup","max","min","sup","injlim","projlim","inj lim","proj lim"],type:"function",role:"limit function"},{set:gt,type:"function",role:"prefix function"},{set:["mod","rem"],type:"operator",role:"prefix function"}],vt=function(){const t={};for(let e,r=0;e=bt[r];r++)e.set.forEach((function(r){t[r]={role:e.role||"unknown",type:e.type||"unknown",font:e.font||"unknown"}}));return t}();e.equal=function(t,e){return t.type===e.type&&t.role===e.role&&t.font===e.font},e.lookupType=function(t){var e;return(null===(e=vt[t])||void 0===e?void 0:e.type)||"unknown"},e.lookupRole=function(t){var e;return(null===(e=vt[t])||void 0===e?void 0:e.role)||"unknown"},e.lookupMeaning=function(t){return vt[t]||{role:"unknown",type:"unknown",font:"unknown"}},e.invisibleTimes=function(){return dt},e.invisiblePlus=function(){return ht},e.invisibleComma=function(){return r},e.functionApplication=function(){return ft},e.isMatchingFence=function(t,e){return-1!==p.indexOf(t)||-1!==d.indexOf(t)?t===e:s[t]===e||a[t]===e},e.isEmbellishedType=function(t){return"operator"===t||"relation"===t||"fence"===t||"punctuation"===t};const Mt=new Map;function Ot(t,e){return`${t} ${e}`}function xt(t,e,r=""){for(const n of e)Mt.set(Ot(t,n),r||t)}xt("d",["d","\u2146","\uff44","\ud835\udc1d","\ud835\udc51","\ud835\udcb9","\ud835\udced","\ud835\udd21","\ud835\udd55","\ud835\udd89","\ud835\uddbd","\ud835\uddf1","\ud835\ude25","\ud835\ude8d"]),xt("bar",i),xt("tilde",o),e.lookupSecondary=function(t,e){return Mt.get(Ot(t,e))}},6225:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticMeaningCollator=e.SemanticNodeCollator=e.SemanticDefault=void 0;const n=r(5489),i=r(6791);class o{constructor(){this.map={}}static key(t,e){return e?t+":"+e:t}add(t,e){this.map[o.key(t,e.font)]=e}addNode(t){this.add(t.textContent,t.meaning())}retrieve(t,e){return this.map[o.key(t,e)]}retrieveNode(t){return this.retrieve(t.textContent,t.font)}size(){return Object.keys(this.map).length}}e.SemanticDefault=o;class s{constructor(){this.map={}}add(t,e){const r=this.map[t];r?r.push(e):this.map[t]=[e]}retrieve(t,e){return this.map[o.key(t,e)]}retrieveNode(t){return this.retrieve(t.textContent,t.font)}copy(){const t=this.copyCollator();for(const e in this.map)t.map[e]=this.map[e];return t}minimize(){for(const t in this.map)1===this.map[t].length&&delete this.map[t]}minimalCollator(){const t=this.copy();for(const e in t.map)1===t.map[e].length&&delete t.map[e];return t}isMultiValued(){for(const t in this.map)if(this.map[t].length>1)return!0;return!1}isEmpty(){return!Object.keys(this.map).length}}class a extends s{copyCollator(){return new a}add(t,e){const r=o.key(t,e.font);super.add(r,e)}addNode(t){this.add(t.textContent,t)}toString(){const t=[];for(const e in this.map){const r=Array(e.length+3).join(" "),n=this.map[e],i=[];for(let t,e=0;t=n[e];e++)i.push(t.toString());t.push(e+": "+i.join("\n"+r))}return t.join("\n")}collateMeaning(){const t=new l;for(const e in this.map)t.map[e]=this.map[e].map((function(t){return t.meaning()}));return t}}e.SemanticNodeCollator=a;class l extends s{copyCollator(){return new l}add(t,e){const r=this.retrieve(t,e.font);if(!r||!r.find((function(t){return n.equal(t,e)}))){const r=o.key(t,e.font);super.add(r,e)}}addNode(t){this.add(t.textContent,t.meaning())}toString(){const t=[];for(const e in this.map){const r=Array(e.length+3).join(" "),n=this.map[e],i=[];for(let t,e=0;t=n[e];e++)i.push("{type: "+t.type+", role: "+t.role+", font: "+t.font+"}");t.push(e+": "+i.join("\n"+r))}return t.join("\n")}reduce(){for(const t in this.map)1!==this.map[t].length&&(this.map[t]=(0,i.reduce)(this.map[t]))}default(){const t=new o;for(const e in this.map)1===this.map[e].length&&(t.map[e]=this.map[e][0]);return t}newDefault(){const t=this.default();this.reduce();const e=this.default();return t.size()!==e.size()?e:null}}e.SemanticMeaningCollator=l},7030:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticMultiHeuristic=e.SemanticTreeHeuristic=e.SemanticAbstractHeuristic=void 0;class r{constructor(t,e,r=(t=>!1)){this.name=t,this.apply=e,this.applicable=r}}e.SemanticAbstractHeuristic=r;e.SemanticTreeHeuristic=class extends r{};e.SemanticMultiHeuristic=class extends r{}},5006:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lookup=e.run=e.add=e.blacklist=e.flags=e.updateFactory=e.factory=void 0,e.factory=null,e.updateFactory=function(t){e.factory=t};const r=new Map;function n(t){return r.get(t)}e.flags={combine_juxtaposition:!0,convert_juxtaposition:!0,multioperator:!0},e.blacklist={},e.add=function(t){const n=t.name;r.set(n,t),e.flags[n]||(e.flags[n]=!1)},e.run=function(t,r,i){const o=n(t);return o&&!e.blacklist[t]&&(e.flags[t]||o.applicable(r))?o.apply(r):i?i(r):r},e.lookup=n},2178:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(4890),i=r(5771),o=r(5489),s=r(5006),a=r(7030),l=r(8623),c=r(5427),u=r(1151);function h(t,e,r){let n=null;if(!t.length)return n;const i=r[r.length-1],o=i&&i.length,s=e&&e.length,a=c.default.getInstance();if(o&&s){if("infixop"===e[0].type&&"implicit"===e[0].role)return n=t.pop(),i.push(a.postfixNode_(i.pop(),t)),n;n=t.shift();const r=a.prefixNode_(e.shift(),t);return e.unshift(r),n}return o?(i.push(a.postfixNode_(i.pop(),t)),n):(s&&e.unshift(a.prefixNode_(e.shift(),t)),n)}function p(t,e,r){if(!e.length)return t;const i=t.pop(),o=e.shift(),a=r.shift();if(l.isImplicitOp(o)){n.Debugger.getInstance().output("Juxta Heuristic Case 2");const s=(i?[i,o]:[o]).concat(a);return p(t.concat(s),e,r)}if(!i)return n.Debugger.getInstance().output("Juxta Heuristic Case 3"),p([o].concat(a),e,r);const c=a.shift();if(!c){n.Debugger.getInstance().output("Juxta Heuristic Case 9");const a=s.factory.makeBranchNode("infixop",[i,e.shift()],[o],o.textContent);return a.role="implicit",s.run("combine_juxtaposition",a),e.unshift(a),p(t,e,r)}if(l.isOperator(i)||l.isOperator(c))return n.Debugger.getInstance().output("Juxta Heuristic Case 4"),p(t.concat([i,o,c]).concat(a),e,r);let u=null;return l.isImplicitOp(i)&&l.isImplicitOp(c)?(n.Debugger.getInstance().output("Juxta Heuristic Case 5"),i.contentNodes.push(o),i.contentNodes=i.contentNodes.concat(c.contentNodes),i.childNodes.push(c),i.childNodes=i.childNodes.concat(c.childNodes),c.childNodes.forEach((t=>t.parent=i)),o.parent=i,i.addMathmlNodes(o.mathml),i.addMathmlNodes(c.mathml),u=i):l.isImplicitOp(i)?(n.Debugger.getInstance().output("Juxta Heuristic Case 6"),i.contentNodes.push(o),i.childNodes.push(c),c.parent=i,o.parent=i,i.addMathmlNodes(o.mathml),i.addMathmlNodes(c.mathml),u=i):l.isImplicitOp(c)?(n.Debugger.getInstance().output("Juxta Heuristic Case 7"),c.contentNodes.unshift(o),c.childNodes.unshift(i),i.parent=c,o.parent=c,c.addMathmlNodes(o.mathml),c.addMathmlNodes(i.mathml),u=c):(n.Debugger.getInstance().output("Juxta Heuristic Case 8"),u=s.factory.makeBranchNode("infixop",[i,c],[o],o.textContent),u.role="implicit"),t.push(u),p(t.concat(a),e,r)}s.add(new a.SemanticTreeHeuristic("combine_juxtaposition",(function(t){for(let e,r=t.childNodes.length-1;e=t.childNodes[r];r--)l.isImplicitOp(e)&&!e.nobreaking&&(t.childNodes.splice(r,1,...e.childNodes),t.contentNodes.splice(r,0,...e.contentNodes),e.childNodes.concat(e.contentNodes).forEach((function(e){e.parent=t})),t.addMathmlNodes(e.mathml));return t}))),s.add(new a.SemanticTreeHeuristic("propagateSimpleFunction",(t=>("infixop"!==t.type&&"fraction"!==t.type||!t.childNodes.every(l.isSimpleFunction)||(t.role="composed function"),t)),(t=>"clearspeak"===i.default.getInstance().domain))),s.add(new a.SemanticTreeHeuristic("simpleNamedFunction",(t=>("unit"!==t.role&&-1!==["f","g","h","F","G","H"].indexOf(t.textContent)&&(t.role="simple function"),t)),(t=>"clearspeak"===i.default.getInstance().domain))),s.add(new a.SemanticTreeHeuristic("propagateComposedFunction",(t=>("fenced"===t.type&&"composed function"===t.childNodes[0].role&&(t.role="composed function"),t)),(t=>"clearspeak"===i.default.getInstance().domain))),s.add(new a.SemanticTreeHeuristic("multioperator",(t=>{if("unknown"!==t.role||t.textContent.length<=1)return;const e=[...t.textContent].map(o.lookupMeaning).reduce((function(t,e){return t&&e.role&&"unknown"!==e.role&&e.role!==t?"unknown"===t?e.role:null:t}),"unknown");e&&(t.role=e)}))),s.add(new a.SemanticMultiHeuristic("convert_juxtaposition",(t=>{let e=u.partitionNodes(t,(function(t){return t.textContent===o.invisibleTimes()&&"operator"===t.type}));e=e.rel.length?function(t){const e=[],r=[];let n=t.comp.shift(),i=null,o=[];for(;t.comp.length;)if(o=[],n.length)i&&e.push(i),r.push(n),i=t.rel.shift(),n=t.comp.shift();else{for(i&&o.push(i);!n.length&&t.comp.length;)n=t.comp.shift(),o.push(t.rel.shift());i=h(o,n,r)}o.length||n.length?(e.push(i),r.push(n)):(o.push(i),h(o,n,r));return{rel:e,comp:r}}(e):e,t=e.comp[0];for(let r,n,i=1;r=e.comp[i],n=e.rel[i-1];i++)t.push(n),t=t.concat(r);return e=u.partitionNodes(t,(function(t){return t.textContent===o.invisibleTimes()&&("operator"===t.type||"infixop"===t.type)})),e.rel.length?p(e.comp.shift(),e.rel,e.comp):t}))),s.add(new a.SemanticTreeHeuristic("simple2prefix",(t=>(t.textContent.length>1&&!t.textContent[0].match(/[A-Z]/)&&(t.role="prefix function"),t)),(t=>"braille"===i.default.getInstance().modality&&"identifier"===t.type))),s.add(new a.SemanticTreeHeuristic("detect_cycle",(t=>{t.type="matrix",t.role="cycle";const e=t.childNodes[0];return e.type="row",e.role="cycle",e.textContent="",e.contentNodes=[],t}),(t=>"fenced"===t.type&&"infixop"===t.childNodes[0].type&&"implicit"===t.childNodes[0].role&&t.childNodes[0].childNodes.every((function(t){return"number"===t.type}))&&t.childNodes[0].contentNodes.every((function(t){return"space"===t.role})))))},5743:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticMathml=void 0;const n=r(1838),i=r(6506),o=r(8623),s=r(5427),a=r(1151);class l extends i.SemanticAbstractParser{constructor(){super("MathML"),this.parseMap_={SEMANTICS:this.semantics_.bind(this),MATH:this.rows_.bind(this),MROW:this.rows_.bind(this),MPADDED:this.rows_.bind(this),MSTYLE:this.rows_.bind(this),MFRAC:this.fraction_.bind(this),MSUB:this.limits_.bind(this),MSUP:this.limits_.bind(this),MSUBSUP:this.limits_.bind(this),MOVER:this.limits_.bind(this),MUNDER:this.limits_.bind(this),MUNDEROVER:this.limits_.bind(this),MROOT:this.root_.bind(this),MSQRT:this.sqrt_.bind(this),MTABLE:this.table_.bind(this),MLABELEDTR:this.tableLabeledRow_.bind(this),MTR:this.tableRow_.bind(this),MTD:this.tableCell_.bind(this),MS:this.text_.bind(this),MTEXT:this.text_.bind(this),MSPACE:this.space_.bind(this),"ANNOTATION-XML":this.text_.bind(this),MI:this.identifier_.bind(this),MN:this.number_.bind(this),MO:this.operator_.bind(this),MFENCED:this.fenced_.bind(this),MENCLOSE:this.enclosed_.bind(this),MMULTISCRIPTS:this.multiscripts_.bind(this),ANNOTATION:this.empty_.bind(this),NONE:this.empty_.bind(this),MACTION:this.action_.bind(this)};const t={type:"identifier",role:"numbersetletter",font:"double-struck"};["C","H","N","P","Q","R","Z","\u2102","\u210d","\u2115","\u2119","\u211a","\u211d","\u2124"].forEach((e=>this.getFactory().defaultMap.add(e,t)).bind(this))}static getAttribute_(t,e,r){if(!t.hasAttribute(e))return r;const n=t.getAttribute(e);return n.match(/^\s*$/)?null:n}parse(t){s.default.getInstance().setNodeFactory(this.getFactory());const e=n.toArray(t.childNodes),r=n.tagName(t),i=this.parseMap_[r],o=(i||this.dummy_.bind(this))(t,e);return a.addAttributes(o,t),-1!==["MATH","MROW","MPADDED","MSTYLE","SEMANTICS"].indexOf(r)||(o.mathml.unshift(t),o.mathmlTree=t),o}semantics_(t,e){return e.length?this.parse(e[0]):this.getFactory().makeEmptyNode()}rows_(t,e){const r=t.getAttribute("semantics");if(r&&r.match("bspr_"))return s.default.proof(t,r,this.parseList.bind(this));let n;return 1===(e=a.purgeNodes(e)).length?(n=this.parse(e[0]),"empty"!==n.type||n.mathmlTree||(n.mathmlTree=t)):n=s.default.getInstance().row(this.parseList(e)),n.mathml.unshift(t),n}fraction_(t,e){if(!e.length)return this.getFactory().makeEmptyNode();const r=this.parse(e[0]),n=e[1]?this.parse(e[1]):this.getFactory().makeEmptyNode();return s.default.getInstance().fractionLikeNode(r,n,t.getAttribute("linethickness"),"true"===t.getAttribute("bevelled"))}limits_(t,e){return s.default.getInstance().limitNode(n.tagName(t),this.parseList(e))}root_(t,e){return e[1]?this.getFactory().makeBranchNode("root",[this.parse(e[1]),this.parse(e[0])],[]):this.sqrt_(t,e)}sqrt_(t,e){const r=this.parseList(a.purgeNodes(e));return this.getFactory().makeBranchNode("sqrt",[s.default.getInstance().row(r)],[])}table_(t,e){const r=t.getAttribute("semantics");if(r&&r.match("bspr_"))return s.default.proof(t,r,this.parseList.bind(this));const n=this.getFactory().makeBranchNode("table",this.parseList(e),[]);return n.mathmlTree=t,s.default.tableToMultiline(n),n}tableRow_(t,e){const r=this.getFactory().makeBranchNode("row",this.parseList(e),[]);return r.role="table",r}tableLabeledRow_(t,e){if(!e.length)return this.tableRow_(t,e);const r=this.parse(e[0]);r.role="label";const n=this.getFactory().makeBranchNode("row",this.parseList(e.slice(1)),[r]);return n.role="table",n}tableCell_(t,e){const r=this.parseList(a.purgeNodes(e));let n;n=r.length?1===r.length&&o.isType(r[0],"empty")?r:[s.default.getInstance().row(r)]:[];const i=this.getFactory().makeBranchNode("cell",n,[]);return i.role="table",i}space_(t,e){const r=t.getAttribute("width"),i=r&&r.match(/[a-z]*$/);if(!i)return this.empty_(t,e);const o=i[0],a=parseFloat(r.slice(0,i.index)),l={cm:.4,pc:.5,em:.5,ex:1,in:.15,pt:5,mm:5}[o];if(!l||isNaN(a)||a<l)return this.empty_(t,e);const c=this.getFactory().makeUnprocessed(t);return s.default.getInstance().text(c,n.tagName(t))}text_(t,e){const r=this.leaf_(t,e);return t.textContent?(r.updateContent(t.textContent,!0),s.default.getInstance().text(r,n.tagName(t))):r}identifier_(t,e){const r=this.leaf_(t,e);return s.default.getInstance().identifierNode(r,s.default.getInstance().font(t.getAttribute("mathvariant")),t.getAttribute("class"))}number_(t,e){const r=this.leaf_(t,e);return s.default.number(r),r}operator_(t,e){const r=this.leaf_(t,e);return s.default.getInstance().operatorNode(r),r}fenced_(t,e){const r=this.parseList(a.purgeNodes(e)),n=l.getAttribute_(t,"separators",","),i=l.getAttribute_(t,"open","("),o=l.getAttribute_(t,"close",")"),c=s.default.getInstance().mfenced(i,o,n,r);return s.default.getInstance().tablesInRow([c])[0]}enclosed_(t,e){const r=this.parseList(a.purgeNodes(e)),n=this.getFactory().makeBranchNode("enclose",[s.default.getInstance().row(r)],[]);return n.role=t.getAttribute("notation")||"unknown",n}multiscripts_(t,e){if(!e.length)return this.getFactory().makeEmptyNode();const r=this.parse(e.shift());if(!e.length)return r;const i=[],o=[],l=[],c=[];let u=!1,h=0;for(let t,r=0;t=e[r];r++)"MPRESCRIPTS"!==n.tagName(t)?(u?1&h?i.push(t):o.push(t):1&h?l.push(t):c.push(t),h++):(u=!0,h=0);return a.purgeNodes(i).length||a.purgeNodes(o).length?s.default.getInstance().tensor(r,this.parseList(o),this.parseList(i),this.parseList(c),this.parseList(l)):s.default.getInstance().pseudoTensor(r,this.parseList(c),this.parseList(l))}empty_(t,e){return this.getFactory().makeEmptyNode()}action_(t,e){return e.length>1?this.parse(e[1]):this.getFactory().makeUnprocessed(t)}dummy_(t,e){const r=this.getFactory().makeUnprocessed(t);return r.role=t.tagName,r.textContent=t.textContent,r}leaf_(t,e){if(1===e.length&&e[0].nodeType!==n.NodeType.TEXT_NODE){const r=this.getFactory().makeUnprocessed(t);return r.role=e[0].tagName,a.addAttributes(r,e[0]),r}return this.getFactory().makeLeafNode(t.textContent,s.default.getInstance().font(t.getAttribute("mathvariant")))}}e.SemanticMathml=l},927:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticNode=void 0;const n=r(1838),i=r(5489),o=r(1151);class s{constructor(t){this.id=t,this.mathml=[],this.parent=null,this.type="unknown",this.role="unknown",this.font="unknown",this.embellished=null,this.fencePointer="",this.childNodes=[],this.textContent="",this.mathmlTree=null,this.contentNodes=[],this.annotation={},this.attributes={},this.nobreaking=!1}static fromXml(t){const e=parseInt(t.getAttribute("id"),10),r=new s(e);return r.type=t.tagName,s.setAttribute(r,t,"role"),s.setAttribute(r,t,"font"),s.setAttribute(r,t,"embellished"),s.setAttribute(r,t,"fencepointer","fencePointer"),t.getAttribute("annotation")&&r.parseAnnotation(t.getAttribute("annotation")),o.addAttributes(r,t),s.processChildren(r,t),r}static setAttribute(t,e,r,n){n=n||r;const i=e.getAttribute(r);i&&(t[n]=i)}static processChildren(t,e){for(const r of n.toArray(e.childNodes)){if(r.nodeType===n.NodeType.TEXT_NODE){t.textContent=r.textContent;continue}const e=n.toArray(r.childNodes).map(s.fromXml);e.forEach((e=>e.parent=t)),"CONTENT"===n.tagName(r)?t.contentNodes=e:t.childNodes=e}}querySelectorAll(t){let e=[];for(let r,n=0;r=this.childNodes[n];n++)e=e.concat(r.querySelectorAll(t));for(let r,n=0;r=this.contentNodes[n];n++)e=e.concat(r.querySelectorAll(t));return t(this)&&e.unshift(this),e}xml(t,e){const r=function(r,n){const i=n.map((function(r){return r.xml(t,e)})),o=t.createElementNS("",r);for(let t,e=0;t=i[e];e++)o.appendChild(t);return o},n=t.createElementNS("",this.type);return e||this.xmlAttributes(n),n.textContent=this.textContent,this.contentNodes.length>0&&n.appendChild(r("content",this.contentNodes)),this.childNodes.length>0&&n.appendChild(r("children",this.childNodes)),n}toString(t=!1){const e=n.parseInput("<snode/>");return n.serializeXml(this.xml(e,t))}allAttributes(){const t=[];return t.push(["role",this.role]),"unknown"!==this.font&&t.push(["font",this.font]),Object.keys(this.annotation).length&&t.push(["annotation",this.xmlAnnotation()]),this.embellished&&t.push(["embellished",this.embellished]),this.fencePointer&&t.push(["fencepointer",this.fencePointer]),t.push(["id",this.id.toString()]),t}xmlAnnotation(){const t=[];for(const e in this.annotation)this.annotation[e].forEach((function(r){t.push(e+":"+r)}));return t.join(";")}toJson(){const t={};t.type=this.type;const e=this.allAttributes();for(let r,n=0;r=e[n];n++)t[r[0]]=r[1].toString();return this.textContent&&(t.$t=this.textContent),this.childNodes.length&&(t.children=this.childNodes.map((function(t){return t.toJson()}))),this.contentNodes.length&&(t.content=this.contentNodes.map((function(t){return t.toJson()}))),t}updateContent(t,e){const r=e?t.replace(/^[ \f\n\r\t\v\u200b]*/,"").replace(/[ \f\n\r\t\v\u200b]*$/,""):t.trim();if(t=t&&!r?t:r,this.textContent===t)return;const n=(0,i.lookupMeaning)(t);this.textContent=t,this.role=n.role,this.type=n.type,this.font=n.font}addMathmlNodes(t){for(let e,r=0;e=t[r];r++)-1===this.mathml.indexOf(e)&&this.mathml.push(e)}appendChild(t){this.childNodes.push(t),this.addMathmlNodes(t.mathml),t.parent=this}replaceChild(t,e){const r=this.childNodes.indexOf(t);if(-1===r)return;t.parent=null,e.parent=this,this.childNodes[r]=e;const n=t.mathml.filter((function(t){return-1===e.mathml.indexOf(t)})),i=e.mathml.filter((function(e){return-1===t.mathml.indexOf(e)}));this.removeMathmlNodes(n),this.addMathmlNodes(i)}appendContentNode(t){t&&(this.contentNodes.push(t),this.addMathmlNodes(t.mathml),t.parent=this)}removeContentNode(t){if(t){const e=this.contentNodes.indexOf(t);-1!==e&&this.contentNodes.slice(e,1)}}equals(t){if(!t)return!1;if(this.type!==t.type||this.role!==t.role||this.textContent!==t.textContent||this.childNodes.length!==t.childNodes.length||this.contentNodes.length!==t.contentNodes.length)return!1;for(let e,r,n=0;e=this.childNodes[n],r=t.childNodes[n];n++)if(!e.equals(r))return!1;for(let e,r,n=0;e=this.contentNodes[n],r=t.contentNodes[n];n++)if(!e.equals(r))return!1;return!0}displayTree(){console.info(this.displayTree_(0))}addAnnotation(t,e){e&&this.addAnnotation_(t,e)}getAnnotation(t){const e=this.annotation[t];return e||[]}hasAnnotation(t,e){const r=this.annotation[t];return!!r&&-1!==r.indexOf(e)}parseAnnotation(t){const e=t.split(";");for(let t=0,r=e.length;t<r;t++){const r=e[t].split(":");this.addAnnotation(r[0],r[1])}}meaning(){return{type:this.type,role:this.role,font:this.font}}xmlAttributes(t){const e=this.allAttributes();for(let r,n=0;r=e[n];n++)t.setAttribute(r[0],r[1]);this.addExternalAttributes(t)}addExternalAttributes(t){for(const e in this.attributes)t.setAttribute(e,this.attributes[e])}removeMathmlNodes(t){const e=this.mathml;for(let r,n=0;r=t[n];n++){const t=e.indexOf(r);-1!==t&&e.splice(t,1)}this.mathml=e}displayTree_(t){t++;const e=Array(t).join(" ");let r="";r+="\n"+e+this.toString(),r+="\n"+e+"MathmlTree:",r+="\n"+e+this.mathmlTreeString(),r+="\n"+e+"MathML:";for(let t,n=0;t=this.mathml[n];n++)r+="\n"+e+t.toString();return r+="\n"+e+"Begin Content",this.contentNodes.forEach((function(e){r+=e.displayTree_(t)})),r+="\n"+e+"End Content",r+="\n"+e+"Begin Children",this.childNodes.forEach((function(e){r+=e.displayTree_(t)})),r+="\n"+e+"End Children",r}mathmlTreeString(){return this.mathmlTree?this.mathmlTree.toString():"EMPTY"}addAnnotation_(t,e){const r=this.annotation[t];r?r.push(e):this.annotation[t]=[e]}}e.SemanticNode=s},207:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticNodeFactory=void 0;const n=r(6225),i=r(6225),o=r(927);e.SemanticNodeFactory=class{constructor(){this.leafMap=new i.SemanticNodeCollator,this.defaultMap=new n.SemanticDefault,this.idCounter_=-1}makeNode(t){return this.createNode_(t)}makeUnprocessed(t){const e=this.createNode_();return e.mathml=[t],e.mathmlTree=t,e}makeEmptyNode(){const t=this.createNode_();return t.type="empty",t}makeContentNode(t){const e=this.createNode_();return e.updateContent(t),e}makeMultipleContentNodes(t,e){const r=[];for(let n=0;n<t;n++)r.push(this.makeContentNode(e));return r}makeLeafNode(t,e){if(!t)return this.makeEmptyNode();const r=this.makeContentNode(t);r.font=e||r.font;const n=this.defaultMap.retrieveNode(r);return n&&(r.type=n.type,r.role=n.role,r.font=n.font),this.leafMap.addNode(r),r}makeBranchNode(t,e,r,n){const i=this.createNode_();return n&&i.updateContent(n),i.type=t,i.childNodes=e,i.contentNodes=r,e.concat(r).forEach((function(t){t.parent=i,i.addMathmlNodes(t.mathml)})),i}createNode_(t){return void 0!==t?this.idCounter_=Math.max(this.idCounter_,t):t=++this.idCounter_,new o.SemanticNode(t)}}},6791:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticComparator=e.reduce=e.sort=e.apply=e.add=void 0;const r=[];function n(t){r.push(t)}function i(t,e){for(let n,i=0;n=r[i];i++){const r=n.compare(t,e);if(0!==r)return r}return 0}function o(t){t.sort(i)}e.add=n,e.apply=i,e.sort=o,e.reduce=function(t){if(t.length<=1)return t;const e=t.slice();o(e);const r=[];let n;do{n=e.pop(),r.push(n)}while(n&&e.length&&0===i(e[e.length-1],n));return r};class s{constructor(t,e=null){this.comparator=t,this.type=e,n(this)}compare(t,e){return this.type&&this.type===t.type&&this.type===e.type?this.comparator(t,e):0}}e.SemanticComparator=s,new s((function(t,e){return"simple function"===t.role?1:"simple function"===e.role?-1:0}),"identifier")},6506:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticAbstractParser=void 0;const n=r(207);e.SemanticAbstractParser=class{constructor(t){this.type=t,this.factory_=new n.SemanticNodeFactory}getFactory(){return this.factory_}setFactory(t){this.factory_=t}getType(){return this.type}parseList(t){const e=[];for(let r,n=0;r=t[n];n++)e.push(this.parse(r));return e}}},8623:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isMembership=e.elligibleRightNeutral=e.elligibleLeftNeutral=e.compareNeutralFences=e.isNeutralFence=e.isImplicitOp=e.isImplicit=e.isPureUnit=e.isUnitCounter=e.isNumber=e.isSingletonSetContent=e.scriptedElement_=e.illegalSingleton_=e.isSetNode=e.isRightBrace=e.isLeftBrace=e.isSimpleFunction=e.singlePunctAtPosition=e.isSimpleFunctionHead=e.isLimitBase=e.isBinomial=e.lineIsLabelled=e.tableIsMultiline=e.tableIsCases=e.isFencedElement=e.tableIsMatrixOrVector=e.isTableOrMultiline=e.isElligibleEmbellishedFence=e.isFence=e.isPunctuation=e.isRelation=e.isOperator=e.isEmbellished=e.isGeneralFunctionBoundary=e.isIntegralDxBoundarySingle=e.isIntegralDxBoundary=e.isBigOpBoundary=e.isPrefixFunctionBoundary=e.isSimpleFunctionScope=e.isAccent=e.isRole=e.embellishedType=e.isType=void 0;const n=r(5489),i=r(1151);function o(t,e){return t.type===e}function s(t,e){return t.embellished===e}function a(t,e){return t.role===e}function l(t){return u(t)||h(t)}function c(t){return o(t,"operator")||s(t,"operator")}function u(t){return o(t,"relation")||s(t,"relation")}function h(t){return o(t,"punctuation")||s(t,"punctuation")}function p(t){return o(t,"fence")||s(t,"fence")}function d(t){return!t.embellished||!function(t){return o(t,"tensor")&&(!o(t.childNodes[1],"empty")||!o(t.childNodes[2],"empty"))&&(!o(t.childNodes[3],"empty")||!o(t.childNodes[4],"empty"))}(t)&&((!a(t,"close")||!o(t,"tensor"))&&((!a(t,"open")||!o(t,"subscript")&&!o(t,"superscript"))&&d(t.childNodes[0])))}function f(t){return!!t&&(o(t,"table")||o(t,"multiline"))}function m(t){return!!t&&o(t,"fenced")&&(a(t,"leftright")||v(t))&&1===t.childNodes.length}function y(t){return!!t&&-1!==["{","\ufe5b","\uff5b"].indexOf(t.textContent)}function g(t){return!!t&&-1!==["}","\ufe5c","\uff5d"].indexOf(t.textContent)}function b(t){return"number"===t.type&&("integer"===t.role||"float"===t.role)}function v(t){return"neutral"===t.role||"metric"===t.role}e.isType=o,e.embellishedType=s,e.isRole=a,e.isAccent=function(t){const e=new RegExp("\u221e|\u1ab2");return o(t,"fence")||o(t,"punctuation")||o(t,"operator")&&!t.textContent.match(e)||o(t,"relation")||o(t,"identifier")&&a(t,"unknown")&&!t.textContent.match(n.allLettersRegExp)&&!t.textContent.match(e)},e.isSimpleFunctionScope=function(t){const e=t.childNodes;if(0===e.length)return!0;if(e.length>1)return!1;const r=e[0];if("infixop"===r.type){if("implicit"!==r.role)return!1;if(r.childNodes.some((t=>o(t,"infixop"))))return!1}return!0},e.isPrefixFunctionBoundary=function(t){return c(t)&&!a(t,"division")||o(t,"appl")||l(t)},e.isBigOpBoundary=function(t){return c(t)||l(t)},e.isIntegralDxBoundary=function(t,e){return!!e&&o(e,"identifier")&&n.lookupSecondary("d",t.textContent)},e.isIntegralDxBoundarySingle=function(t){if(o(t,"identifier")){const e=t.textContent[0];return e&&t.textContent[1]&&n.lookupSecondary("d",e)}return!1},e.isGeneralFunctionBoundary=l,e.isEmbellished=function(t){return t.embellished?t.embellished:n.isEmbellishedType(t.type)?t.type:null},e.isOperator=c,e.isRelation=u,e.isPunctuation=h,e.isFence=p,e.isElligibleEmbellishedFence=function(t){return!(!t||!p(t))&&(!t.embellished||d(t))},e.isTableOrMultiline=f,e.tableIsMatrixOrVector=function(t){return!!t&&m(t)&&f(t.childNodes[0])},e.isFencedElement=m,e.tableIsCases=function(t,e){return e.length>0&&a(e[e.length-1],"openfence")},e.tableIsMultiline=function(t){return t.childNodes.every((function(t){return t.childNodes.length<=1}))},e.lineIsLabelled=function(t){return o(t,"line")&&t.contentNodes.length&&a(t.contentNodes[0],"label")},e.isBinomial=function(t){return 2===t.childNodes.length},e.isLimitBase=function t(e){return o(e,"largeop")||o(e,"limboth")||o(e,"limlower")||o(e,"limupper")||o(e,"function")&&a(e,"limit function")||(o(e,"overscore")||o(e,"underscore"))&&t(e.childNodes[0])},e.isSimpleFunctionHead=function(t){return"identifier"===t.type||"latinletter"===t.role||"greekletter"===t.role||"otherletter"===t.role},e.singlePunctAtPosition=function(t,e,r){return 1===e.length&&("punctuation"===t[r].type||"punctuation"===t[r].embellished)&&t[r]===e[0]},e.isSimpleFunction=function(t){return o(t,"identifier")&&a(t,"simple function")},e.isLeftBrace=y,e.isRightBrace=g,e.isSetNode=function(t){return y(t.contentNodes[0])&&g(t.contentNodes[1])},e.illegalSingleton_=["punctuation","punctuated","relseq","multirel","table","multiline","cases","inference"],e.scriptedElement_=["limupper","limlower","limboth","subscript","superscript","underscore","overscore","tensor"],e.isSingletonSetContent=function t(r){const n=r.type;return-1===e.illegalSingleton_.indexOf(n)&&("infixop"!==n||"implicit"===r.role)&&("fenced"===n?"leftright"!==r.role||t(r.childNodes[0]):-1===e.scriptedElement_.indexOf(n)||t(r.childNodes[0]))},e.isNumber=b,e.isUnitCounter=function(t){return b(t)||"vulgar"===t.role||"mixed"===t.role},e.isPureUnit=function(t){const e=t.childNodes;return"unit"===t.role&&(!e.length||"unit"===e[0].role)},e.isImplicit=function(t){return"implicit"===t.role||"unit"===t.role&&!!t.contentNodes.length&&t.contentNodes[0].textContent===n.invisibleTimes()},e.isImplicitOp=function(t){return"infixop"===t.type&&"implicit"===t.role},e.isNeutralFence=v,e.compareNeutralFences=function(t,e){return v(t)&&v(e)&&(0,i.getEmbellishedInner)(t).textContent===(0,i.getEmbellishedInner)(e).textContent},e.elligibleLeftNeutral=function(t){return!!v(t)&&(!t.embellished||"superscript"!==t.type&&"subscript"!==t.type&&("tensor"!==t.type||"empty"===t.childNodes[3].type&&"empty"===t.childNodes[4].type))},e.elligibleRightNeutral=function(t){return!!v(t)&&(!t.embellished||("tensor"!==t.type||"empty"===t.childNodes[1].type&&"empty"===t.childNodes[2].type))},e.isMembership=function(t){return["element","nonelement","reelement","renonelement"].includes(t.role)}},5427:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(1838),i=r(5489),o=r(5006),s=r(207),a=r(8623),l=r(1151);class c{constructor(){this.funcAppls={},this.factory_=new s.SemanticNodeFactory,o.updateFactory(this.factory_)}static getInstance(){return c.instance=c.instance||new c,c.instance}static tableToMultiline(t){if(a.tableIsMultiline(t)){t.type="multiline";for(let e,r=0;e=t.childNodes[r];r++)c.rowToLine_(e,"multiline");1===t.childNodes.length&&!a.lineIsLabelled(t.childNodes[0])&&a.isFencedElement(t.childNodes[0].childNodes[0])&&c.tableToMatrixOrVector_(c.rewriteFencedLine_(t)),c.binomialForm_(t),c.classifyMultiline(t)}else c.classifyTable(t)}static number(t){"unknown"!==t.type&&"identifier"!==t.type||(t.type="number"),c.numberRole_(t),c.exprFont_(t)}static classifyMultiline(t){let e=0;const r=t.childNodes.length;let n;for(;e<r&&(!(n=t.childNodes[e])||!n.childNodes.length);)e++;if(e>=r)return;const i=n.childNodes[0].role;"unknown"!==i&&t.childNodes.every((function(t){const e=t.childNodes[0];return!e||e.role===i&&(a.isType(e,"relation")||a.isType(e,"relseq"))}))&&(t.role=i)}static classifyTable(t){const e=c.computeColumns_(t);c.classifyByColumns_(t,e,"equality")||c.classifyByColumns_(t,e,"inequality",["equality"])||c.classifyByColumns_(t,e,"arrow")||c.detectCaleyTable(t)}static detectCaleyTable(t){if(!t.mathmlTree)return!1;const e=t.mathmlTree,r=e.getAttribute("columnlines"),n=e.getAttribute("rowlines");return!(!r||!n)&&(!(!c.cayleySpacing(r)||!c.cayleySpacing(n))&&(t.role="cayley",!0))}static cayleySpacing(t){const e=t.split(" ");return("solid"===e[0]||"dashed"===e[0])&&e.slice(1).every((t=>"none"===t))}static proof(t,e,r){const n=c.separateSemantics(e);return c.getInstance().proof(t,n,r)}static findSemantics(t,e,r){const n=null==r?null:r,i=c.getSemantics(t);return!!i&&(!!i[e]&&(null==n||i[e]===n))}static getSemantics(t){const e=t.getAttribute("semantics");return e?c.separateSemantics(e):null}static removePrefix(t){const[,...e]=t.split("_");return e.join("_")}static separateSemantics(t){const e={};return t.split(";").forEach((function(t){const[r,n]=t.split(":");e[c.removePrefix(r)]=n})),e}static matchSpaces_(t,e){for(let r,n=0;r=e[n];n++){const e=t[n].mathmlTree,i=t[n+1].mathmlTree;if(!e||!i)continue;const o=e.nextSibling;if(!o||o===i)continue;const s=c.getSpacer_(o);s&&(r.mathml.push(s),r.mathmlTree=s,r.role="space")}}static getSpacer_(t){if("MSPACE"===n.tagName(t))return t;for(;l.hasEmptyTag(t)&&1===t.childNodes.length;)if(t=t.childNodes[0],"MSPACE"===n.tagName(t))return t;return null}static fenceToPunct_(t){const e=c.FENCE_TO_PUNCT_[t.role];if(e){for(;t.embellished;)t.embellished="punctuation",a.isRole(t,"subsup")||a.isRole(t,"underover")||(t.role=e),t=t.childNodes[0];t.type="punctuation",t.role=e}}static classifyFunction_(t,e){if("appl"===t.type||"bigop"===t.type||"integral"===t.type)return"";if(e[0]&&e[0].textContent===i.functionApplication()){c.getInstance().funcAppls[t.id]=e.shift();let r="simple function";return o.run("simple2prefix",t),"prefix function"!==t.role&&"limit function"!==t.role||(r=t.role),c.propagateFunctionRole_(t,r),"prefix"}const r=c.CLASSIFY_FUNCTION_[t.role];return r||(a.isSimpleFunctionHead(t)?"simple":"")}static propagateFunctionRole_(t,e){if(t){if("infixop"===t.type)return;a.isRole(t,"subsup")||a.isRole(t,"underover")||(t.role=e),c.propagateFunctionRole_(t.childNodes[0],e)}}static getFunctionOp_(t,e){if(e(t))return t;for(let r,n=0;r=t.childNodes[n];n++){const t=c.getFunctionOp_(r,e);if(t)return t}return null}static tableToMatrixOrVector_(t){const e=t.childNodes[0];a.isType(e,"multiline")?c.tableToVector_(t):c.tableToMatrix_(t),t.contentNodes.forEach(e.appendContentNode.bind(e));for(let t,r=0;t=e.childNodes[r];r++)c.assignRoleToRow_(t,c.getComponentRoles_(e));return e.parent=null,e}static tableToVector_(t){const e=t.childNodes[0];e.type="vector",1!==e.childNodes.length?c.binomialForm_(e):c.tableToSquare_(t)}static binomialForm_(t){a.isBinomial(t)&&(t.role="binomial",t.childNodes[0].role="binomial",t.childNodes[1].role="binomial")}static tableToMatrix_(t){const e=t.childNodes[0];e.type="matrix",e.childNodes&&e.childNodes.length>0&&e.childNodes[0].childNodes&&e.childNodes.length===e.childNodes[0].childNodes.length?c.tableToSquare_(t):e.childNodes&&1===e.childNodes.length&&(e.role="rowvector")}static tableToSquare_(t){const e=t.childNodes[0];a.isNeutralFence(t)?e.role="determinant":e.role="squarematrix"}static getComponentRoles_(t){const e=t.role;return e&&"unknown"!==e?e:t.type.toLowerCase()||"unknown"}static tableToCases_(t,e){for(let e,r=0;e=t.childNodes[r];r++)c.assignRoleToRow_(e,"cases");return t.type="cases",t.appendContentNode(e),a.tableIsMultiline(t)&&c.binomialForm_(t),t}static rewriteFencedLine_(t){const e=t.childNodes[0],r=t.childNodes[0].childNodes[0],n=t.childNodes[0].childNodes[0].childNodes[0];return r.parent=t.parent,t.parent=r,n.parent=e,r.childNodes=[t],e.childNodes=[n],r}static rowToLine_(t,e){const r=e||"unknown";a.isType(t,"row")&&(t.type="line",t.role=r,1===t.childNodes.length&&a.isType(t.childNodes[0],"cell")&&(t.childNodes=t.childNodes[0].childNodes,t.childNodes.forEach((function(e){e.parent=t}))))}static assignRoleToRow_(t,e){a.isType(t,"line")?t.role=e:a.isType(t,"row")&&(t.role=e,t.childNodes.forEach((function(t){a.isType(t,"cell")&&(t.role=e)})))}static nextSeparatorFunction_(t){let e;if(t){if(t.match(/^\s+$/))return null;e=t.replace(/\s/g,"").split("").filter((function(t){return t}))}else e=[","];return function(){return e.length>1?e.shift():e[0]}}static numberRole_(t){if("unknown"!==t.role)return;const e=[...t.textContent].filter((t=>t.match(/[^\s]/))),r=e.map(i.lookupMeaning);if(r.every((function(t){return"number"===t.type&&"integer"===t.role||"punctuation"===t.type&&"comma"===t.role})))return t.role="integer",void("0"===e[0]&&t.addAnnotation("general","basenumber"));r.every((function(t){return"number"===t.type&&"integer"===t.role||"punctuation"===t.type}))?t.role="float":t.role="othernumber"}static exprFont_(t){if("unknown"!==t.font)return;const e=[...t.textContent].map(i.lookupMeaning).reduce((function(t,e){return t&&e.font&&"unknown"!==e.font&&e.font!==t?"unknown"===t?e.font:null:t}),"unknown");e&&(t.font=e)}static purgeFences_(t){const e=t.rel,r=t.comp,n=[],i=[];for(;e.length>0;){const t=e.shift();let o=r.shift();a.isElligibleEmbellishedFence(t)?(n.push(t),i.push(o)):(c.fenceToPunct_(t),o.push(t),o=o.concat(r.shift()),r.unshift(o))}return i.push(r.shift()),{rel:n,comp:i}}static rewriteFencedNode_(t){const e=t.contentNodes[0],r=t.contentNodes[1];let n=c.rewriteFence_(t,e);return t.contentNodes[0]=n.fence,n=c.rewriteFence_(n.node,r),t.contentNodes[1]=n.fence,t.contentNodes[0].parent=t,t.contentNodes[1].parent=t,n.node.parent=null,n.node}static rewriteFence_(t,e){if(!e.embellished)return{node:t,fence:e};const r=e.childNodes[0],n=c.rewriteFence_(t,r);return a.isType(e,"superscript")||a.isType(e,"subscript")||a.isType(e,"tensor")?(a.isRole(e,"subsup")||(e.role=t.role),r!==n.node&&(e.replaceChild(r,n.node),r.parent=t),c.propagateFencePointer_(e,r),{node:e,fence:n.fence}):(e.replaceChild(r,n.fence),e.mathmlTree&&-1===e.mathml.indexOf(e.mathmlTree)&&e.mathml.push(e.mathmlTree),{node:n.node,fence:e})}static propagateFencePointer_(t,e){t.fencePointer=e.fencePointer||e.id.toString(),t.embellished=null}static classifyByColumns_(t,e,r,n){return!!(3===e.length&&c.testColumns_(e,1,(t=>c.isPureRelation_(t,r)))||2===e.length&&(c.testColumns_(e,1,(t=>c.isEndRelation_(t,r)||c.isPureRelation_(t,r)))||c.testColumns_(e,0,(t=>c.isEndRelation_(t,r,!0)||c.isPureRelation_(t,r)))))&&(t.role=r,!0)}static isEndRelation_(t,e,r){const n=r?t.childNodes.length-1:0;return a.isType(t,"relseq")&&a.isRole(t,e)&&a.isType(t.childNodes[n],"empty")}static isPureRelation_(t,e){return a.isType(t,"relation")&&a.isRole(t,e)}static computeColumns_(t){const e=[];for(let r,n=0;r=t.childNodes[n];n++)for(let t,n=0;t=r.childNodes[n];n++){e[n]?e[n].push(t):e[n]=[t]}return e}static testColumns_(t,e,r){const n=t[e];return!!n&&(n.some((function(t){return t.childNodes.length&&r(t.childNodes[0])}))&&n.every((function(t){return!t.childNodes.length||r(t.childNodes[0])})))}setNodeFactory(t){c.getInstance().factory_=t,o.updateFactory(c.getInstance().factory_)}getNodeFactory(){return c.getInstance().factory_}identifierNode(t,e,r){if("MathML-Unit"===r)t.type="identifier",t.role="unit";else if(!e&&1===t.textContent.length&&("integer"===t.role||"latinletter"===t.role||"greekletter"===t.role)&&"normal"===t.font)return t.font="italic",o.run("simpleNamedFunction",t);return"unknown"===t.type&&(t.type="identifier"),c.exprFont_(t),o.run("simpleNamedFunction",t)}implicitNode(t){if(t=c.getInstance().getMixedNumbers_(t),1===(t=c.getInstance().combineUnits_(t)).length)return t[0];const e=c.getInstance().implicitNode_(t);return o.run("combine_juxtaposition",e)}text(t,e){return c.exprFont_(t),t.type="text","MS"===e?(t.role="string",t):"MSPACE"===e||t.textContent.match(/^\s*$/)?(t.role="space",t):t}row(t){return 0===(t=t.filter((function(t){return!a.isType(t,"empty")}))).length?c.getInstance().factory_.makeEmptyNode():(t=c.getInstance().getFencesInRow_(t),t=c.getInstance().tablesInRow(t),t=c.getInstance().getPunctuationInRow_(t),t=c.getInstance().getTextInRow_(t),t=c.getInstance().getFunctionsInRow_(t),c.getInstance().relationsInRow_(t))}limitNode(t,e){if(!e.length)return c.getInstance().factory_.makeEmptyNode();let r,n=e[0],i="unknown";if(!e[1])return n;if(a.isLimitBase(n)){r=c.MML_TO_LIMIT_[t];const o=r.length;if(i=r.type,e=e.slice(0,r.length+1),1===o&&a.isAccent(e[1])||2===o&&a.isAccent(e[1])&&a.isAccent(e[2]))return r=c.MML_TO_BOUNDS_[t],c.getInstance().accentNode_(n,e,r.type,r.length,r.accent);if(2===o){if(a.isAccent(e[1]))return n=c.getInstance().accentNode_(n,[n,e[1]],{MSUBSUP:"subscript",MUNDEROVER:"underscore"}[t],1,!0),e[2]?c.getInstance().makeLimitNode_(n,[n,e[2]],null,"limupper"):n;if(e[2]&&a.isAccent(e[2]))return n=c.getInstance().accentNode_(n,[n,e[2]],{MSUBSUP:"superscript",MUNDEROVER:"overscore"}[t],1,!0),c.getInstance().makeLimitNode_(n,[n,e[1]],null,"limlower");e[o]||(i="limlower")}return c.getInstance().makeLimitNode_(n,e,null,i)}return r=c.MML_TO_BOUNDS_[t],c.getInstance().accentNode_(n,e,r.type,r.length,r.accent)}tablesInRow(t){let e=l.partitionNodes(t,a.tableIsMatrixOrVector),r=[];for(let t,n=0;t=e.rel[n];n++)r=r.concat(e.comp.shift()),r.push(c.tableToMatrixOrVector_(t));r=r.concat(e.comp.shift()),e=l.partitionNodes(r,a.isTableOrMultiline),r=[];for(let t,n=0;t=e.rel[n];n++){const n=e.comp.shift();a.tableIsCases(t,n)&&c.tableToCases_(t,n.pop()),r=r.concat(n),r.push(t)}return r.concat(e.comp.shift())}mfenced(t,e,r,n){if(r&&n.length>0){const t=c.nextSeparatorFunction_(r),e=[n.shift()];n.forEach((r=>{e.push(c.getInstance().factory_.makeContentNode(t())),e.push(r)})),n=e}return t&&e?c.getInstance().horizontalFencedNode_(c.getInstance().factory_.makeContentNode(t),c.getInstance().factory_.makeContentNode(e),n):(t&&n.unshift(c.getInstance().factory_.makeContentNode(t)),e&&n.push(c.getInstance().factory_.makeContentNode(e)),c.getInstance().row(n))}fractionLikeNode(t,e,r,n){let i;if(!n&&l.isZeroLength(r)){const r=c.getInstance().factory_.makeBranchNode("line",[t],[]),n=c.getInstance().factory_.makeBranchNode("line",[e],[]);return i=c.getInstance().factory_.makeBranchNode("multiline",[r,n],[]),c.binomialForm_(i),c.classifyMultiline(i),i}return i=c.getInstance().fractionNode_(t,e),n&&i.addAnnotation("general","bevelled"),i}tensor(t,e,r,n,i){const o=c.getInstance().factory_.makeBranchNode("tensor",[t,c.getInstance().scriptNode_(e,"leftsub"),c.getInstance().scriptNode_(r,"leftsuper"),c.getInstance().scriptNode_(n,"rightsub"),c.getInstance().scriptNode_(i,"rightsuper")],[]);return o.role=t.role,o.embellished=a.isEmbellished(t),o}pseudoTensor(t,e,r){const n=t=>!a.isType(t,"empty"),i=e.filter(n).length,o=r.filter(n).length;if(!i&&!o)return t;const s=i?o?"MSUBSUP":"MSUB":"MSUP",l=[t];return i&&l.push(c.getInstance().scriptNode_(e,"rightsub",!0)),o&&l.push(c.getInstance().scriptNode_(r,"rightsuper",!0)),c.getInstance().limitNode(s,l)}font(t){const e=c.MATHJAX_FONTS[t];return e||t}proof(t,e,r){if(e.inference||e.axiom||console.log("Noise"),e.axiom){const e=c.getInstance().cleanInference(t.childNodes),n=e.length?c.getInstance().factory_.makeBranchNode("inference",r(e),[]):c.getInstance().factory_.makeEmptyNode();return n.role="axiom",n.mathmlTree=t,n}const n=c.getInstance().inference(t,e,r);return e.proof&&(n.role="proof",n.childNodes[0].role="final"),n}inference(t,e,r){if(e.inferenceRule){const e=c.getInstance().getFormulas(t,[],r);return c.getInstance().factory_.makeBranchNode("inference",[e.conclusion,e.premises],[])}const i=e.labelledRule,o=n.toArray(t.childNodes),s=[];"left"!==i&&"both"!==i||s.push(c.getInstance().getLabel(t,o,r,"left")),"right"!==i&&"both"!==i||s.push(c.getInstance().getLabel(t,o,r,"right"));const a=c.getInstance().getFormulas(t,o,r),l=c.getInstance().factory_.makeBranchNode("inference",[a.conclusion,a.premises],s);return l.mathmlTree=t,l}getLabel(t,e,r,i){const o=c.getInstance().findNestedRow(e,"prooflabel",i),s=c.getInstance().factory_.makeBranchNode("rulelabel",r(n.toArray(o.childNodes)),[]);return s.role=i,s.mathmlTree=o,s}getFormulas(t,e,r){const i=e.length?c.getInstance().findNestedRow(e,"inferenceRule"):t,o="up"===c.getSemantics(i).inferenceRule,s=o?i.childNodes[1]:i.childNodes[0],a=o?i.childNodes[0]:i.childNodes[1],l=s.childNodes[0].childNodes[0],u=n.toArray(l.childNodes[0].childNodes),h=[];let p=1;for(const t of u)p%2&&h.push(t.childNodes[0]),p++;const d=r(h),f=r(n.toArray(a.childNodes[0].childNodes))[0],m=c.getInstance().factory_.makeBranchNode("premises",d,[]);m.mathmlTree=l;const y=c.getInstance().factory_.makeBranchNode("conclusion",[f],[]);return y.mathmlTree=a.childNodes[0].childNodes[0],{conclusion:y,premises:m}}findNestedRow(t,e,r){return c.getInstance().findNestedRow_(t,e,0,r)}cleanInference(t){return n.toArray(t).filter((function(t){return"MSPACE"!==n.tagName(t)}))}operatorNode(t){return"unknown"===t.type&&(t.type="operator"),o.run("multioperator",t)}implicitNode_(t){const e=c.getInstance().factory_.makeMultipleContentNodes(t.length-1,i.invisibleTimes());c.matchSpaces_(t,e);const r=c.getInstance().infixNode_(t,e[0]);return r.role="implicit",e.forEach((function(t){t.parent=r})),r.contentNodes=e,r}infixNode_(t,e){const r=c.getInstance().factory_.makeBranchNode("infixop",t,[e],l.getEmbellishedInner(e).textContent);return r.role=e.role,o.run("propagateSimpleFunction",r)}explicitMixed_(t){const e=l.partitionNodes(t,(function(t){return t.textContent===i.invisiblePlus()}));if(!e.rel.length)return t;let r=[];for(let t,n=0;t=e.rel[n];n++){const i=e.comp[n],o=e.comp[n+1],s=i.length-1;if(i[s]&&o[0]&&a.isType(i[s],"number")&&!a.isRole(i[s],"mixed")&&a.isType(o[0],"fraction")){const t=c.getInstance().factory_.makeBranchNode("number",[i[s],o[0]],[]);t.role="mixed",r=r.concat(i.slice(0,s)),r.push(t),o.shift()}else r=r.concat(i),r.push(t)}return r.concat(e.comp[e.comp.length-1])}concatNode_(t,e,r){if(0===e.length)return t;const n=e.map((function(t){return l.getEmbellishedInner(t).textContent})).join(" "),i=c.getInstance().factory_.makeBranchNode(r,[t],e,n);return e.length>1&&(i.role="multiop"),i}prefixNode_(t,e){const r=l.partitionNodes(e,(t=>a.isRole(t,"subtraction")));let n=c.getInstance().concatNode_(t,r.comp.pop(),"prefixop");for(1===n.contentNodes.length&&"addition"===n.contentNodes[0].role&&"+"===n.contentNodes[0].textContent&&(n.role="positive");r.rel.length>0;)n=c.getInstance().concatNode_(n,[r.rel.pop()],"prefixop"),n.role="negative",n=c.getInstance().concatNode_(n,r.comp.pop(),"prefixop");return n}postfixNode_(t,e){return e.length?c.getInstance().concatNode_(t,e,"postfixop"):t}combineUnits_(t){const e=l.partitionNodes(t,(function(t){return!a.isRole(t,"unit")}));if(t.length===e.rel.length)return e.rel;const r=[];let n,i;do{const t=e.comp.shift();n=e.rel.shift();let o=null;i=r.pop(),i&&(t.length&&a.isUnitCounter(i)?t.unshift(i):r.push(i)),1===t.length&&(o=t.pop()),t.length>1&&(o=c.getInstance().implicitNode_(t),o.role="unit"),o&&r.push(o),n&&r.push(n)}while(n);return r}getMixedNumbers_(t){const e=l.partitionNodes(t,(function(t){return a.isType(t,"fraction")&&a.isRole(t,"vulgar")}));if(!e.rel.length)return t;let r=[];for(let t,n=0;t=e.rel[n];n++){const i=e.comp[n],o=i.length-1;if(i[o]&&a.isType(i[o],"number")&&(a.isRole(i[o],"integer")||a.isRole(i[o],"float"))){const e=c.getInstance().factory_.makeBranchNode("number",[i[o],t],[]);e.role="mixed",r=r.concat(i.slice(0,o)),r.push(e)}else r=r.concat(i),r.push(t)}return r.concat(e.comp[e.comp.length-1])}getTextInRow_(t){if(t.length<=1)return t;const e=l.partitionNodes(t,(t=>a.isType(t,"text")));if(0===e.rel.length)return t;const r=[];let n=e.comp[0];n.length>0&&r.push(c.getInstance().row(n));for(let t,i=0;t=e.rel[i];i++)r.push(t),n=e.comp[i+1],n.length>0&&r.push(c.getInstance().row(n));return[c.getInstance().dummyNode_(r)]}relationsInRow_(t){const e=l.partitionNodes(t,a.isRelation),r=e.rel[0];if(!r)return c.getInstance().operationsInRow_(t);if(1===t.length)return t[0];const n=e.comp.map(c.getInstance().operationsInRow_);let i;return e.rel.some((function(t){return!t.equals(r)}))?(i=c.getInstance().factory_.makeBranchNode("multirel",n,e.rel),e.rel.every((function(t){return t.role===r.role}))&&(i.role=r.role),i):(i=c.getInstance().factory_.makeBranchNode("relseq",n,e.rel,l.getEmbellishedInner(r).textContent),i.role=r.role,i)}operationsInRow_(t){if(0===t.length)return c.getInstance().factory_.makeEmptyNode();if(1===(t=c.getInstance().explicitMixed_(t)).length)return t[0];const e=[];for(;t.length>0&&a.isOperator(t[0]);)e.push(t.shift());if(0===t.length)return c.getInstance().prefixNode_(e.pop(),e);if(1===t.length)return c.getInstance().prefixNode_(t[0],e);t=o.run("convert_juxtaposition",t);const r=l.sliceNodes(t,a.isOperator),n=c.getInstance().prefixNode_(c.getInstance().implicitNode(r.head),e);return r.div?c.getInstance().operationsTree_(r.tail,n,r.div):n}operationsTree_(t,e,r,n){const i=n||[];if(0===t.length){if(i.unshift(r),"infixop"===e.type){const t=c.getInstance().postfixNode_(e.childNodes.pop(),i);return e.appendChild(t),e}return c.getInstance().postfixNode_(e,i)}const o=l.sliceNodes(t,a.isOperator);if(0===o.head.length)return i.push(o.div),c.getInstance().operationsTree_(o.tail,e,r,i);const s=c.getInstance().prefixNode_(c.getInstance().implicitNode(o.head),i),u=c.getInstance().appendOperand_(e,r,s);return o.div?c.getInstance().operationsTree_(o.tail,u,o.div,[]):u}appendOperand_(t,e,r){if("infixop"!==t.type)return c.getInstance().infixNode_([t,r],e);const n=c.getInstance().appendDivisionOp_(t,e,r);return n||(c.getInstance().appendExistingOperator_(t,e,r)?t:"multiplication"===e.role?c.getInstance().appendMultiplicativeOp_(t,e,r):c.getInstance().appendAdditiveOp_(t,e,r))}appendDivisionOp_(t,e,r){return"division"===e.role?a.isImplicit(t)?c.getInstance().infixNode_([t,r],e):c.getInstance().appendLastOperand_(t,e,r):"division"===t.role?c.getInstance().infixNode_([t,r],e):null}appendLastOperand_(t,e,r){let n=t,i=t.childNodes[t.childNodes.length-1];for(;i&&"infixop"===i.type&&!a.isImplicit(i);)n=i,i=n.childNodes[t.childNodes.length-1];const o=c.getInstance().infixNode_([n.childNodes.pop(),r],e);return n.appendChild(o),t}appendMultiplicativeOp_(t,e,r){if(a.isImplicit(t))return c.getInstance().infixNode_([t,r],e);let n=t,i=t.childNodes[t.childNodes.length-1];for(;i&&"infixop"===i.type&&!a.isImplicit(i);)n=i,i=n.childNodes[t.childNodes.length-1];const o=c.getInstance().infixNode_([n.childNodes.pop(),r],e);return n.appendChild(o),t}appendAdditiveOp_(t,e,r){return c.getInstance().infixNode_([t,r],e)}appendExistingOperator_(t,e,r){return!(!t||"infixop"!==t.type||a.isImplicit(t))&&(t.contentNodes[0].equals(e)?(t.appendContentNode(e),t.appendChild(r),!0):c.getInstance().appendExistingOperator_(t.childNodes[t.childNodes.length-1],e,r))}getFencesInRow_(t){let e=l.partitionNodes(t,a.isFence);e=c.purgeFences_(e);const r=e.comp.shift();return c.getInstance().fences_(e.rel,e.comp,[],[r])}fences_(t,e,r,n){if(0===t.length&&0===r.length)return n[0];const i=t=>a.isRole(t,"open");if(0===t.length){const t=n.shift();for(;r.length>0;){if(i(r[0])){const e=r.shift();c.fenceToPunct_(e),t.push(e)}else{const e=l.sliceNodes(r,i),o=e.head.length-1,s=c.getInstance().neutralFences_(e.head,n.slice(0,o));n=n.slice(o),t.push(...s),e.div&&e.tail.unshift(e.div),r=e.tail}t.push(...n.shift())}return t}const o=r[r.length-1],s=t[0].role;if("open"===s||a.isNeutralFence(t[0])&&(!o||!a.compareNeutralFences(t[0],o))){r.push(t.shift());const i=e.shift();return i&&n.push(i),c.getInstance().fences_(t,e,r,n)}if(o&&"close"===s&&"open"===o.role){const i=c.getInstance().horizontalFencedNode_(r.pop(),t.shift(),n.pop());return n.push(n.pop().concat([i],e.shift())),c.getInstance().fences_(t,e,r,n)}if(o&&a.compareNeutralFences(t[0],o)){if(!a.elligibleLeftNeutral(o)||!a.elligibleRightNeutral(t[0])){r.push(t.shift());const i=e.shift();return i&&n.push(i),c.getInstance().fences_(t,e,r,n)}const i=c.getInstance().horizontalFencedNode_(r.pop(),t.shift(),n.pop());return n.push(n.pop().concat([i],e.shift())),c.getInstance().fences_(t,e,r,n)}if(o&&"close"===s&&a.isNeutralFence(o)&&r.some(i)){const o=l.sliceNodes(r,i,!0),s=n.pop(),a=n.length-o.tail.length+1,u=c.getInstance().neutralFences_(o.tail,n.slice(a));n=n.slice(0,a);const h=c.getInstance().horizontalFencedNode_(o.div,t.shift(),n.pop().concat(u,s));return n.push(n.pop().concat([h],e.shift())),c.getInstance().fences_(t,e,o.head,n)}const u=t.shift();return c.fenceToPunct_(u),n.push(n.pop().concat([u],e.shift())),c.getInstance().fences_(t,e,r,n)}neutralFences_(t,e){if(0===t.length)return t;if(1===t.length)return c.fenceToPunct_(t[0]),t;const r=t.shift();if(!a.elligibleLeftNeutral(r)){c.fenceToPunct_(r);const n=e.shift();return n.unshift(r),n.concat(c.getInstance().neutralFences_(t,e))}const n=l.sliceNodes(t,(function(t){return a.compareNeutralFences(t,r)}));if(!n.div){c.fenceToPunct_(r);const n=e.shift();return n.unshift(r),n.concat(c.getInstance().neutralFences_(t,e))}if(!a.elligibleRightNeutral(n.div))return c.fenceToPunct_(n.div),t.unshift(r),c.getInstance().neutralFences_(t,e);const i=c.getInstance().combineFencedContent_(r,n.div,n.head,e);if(n.tail.length>0){const t=i.shift(),e=c.getInstance().neutralFences_(n.tail,i);return t.concat(e)}return i[0]}combineFencedContent_(t,e,r,n){if(0===r.length){const r=c.getInstance().horizontalFencedNode_(t,e,n.shift());return n.length>0?n[0].unshift(r):n=[[r]],n}const i=n.shift(),o=r.length-1,s=n.slice(0,o),a=(n=n.slice(o)).shift(),l=c.getInstance().neutralFences_(r,s);i.push(...l),i.push(...a);const u=c.getInstance().horizontalFencedNode_(t,e,i);return n.length>0?n[0].unshift(u):n=[[u]],n}horizontalFencedNode_(t,e,r){const n=c.getInstance().row(r);let i=c.getInstance().factory_.makeBranchNode("fenced",[n],[t,e]);return"open"===t.role?(c.getInstance().classifyHorizontalFence_(i),i=o.run("propagateComposedFunction",i)):i.role=t.role,i=o.run("detect_cycle",i),c.rewriteFencedNode_(i)}classifyHorizontalFence_(t){t.role="leftright";const e=t.childNodes;if(!a.isSetNode(t)||e.length>1)return;if(0===e.length||"empty"===e[0].type)return void(t.role="set empty");const r=e[0].type;if(1===e.length&&a.isSingletonSetContent(e[0]))return void(t.role="set singleton");const n=e[0].role;if("punctuated"===r&&"sequence"===n){if("comma"!==e[0].contentNodes[0].role)return 1!==e[0].contentNodes.length||"vbar"!==e[0].contentNodes[0].role&&"colon"!==e[0].contentNodes[0].role?void 0:(t.role="set extended",void c.getInstance().setExtension_(t));t.role="set collection"}}setExtension_(t){const e=t.childNodes[0].childNodes[0];e&&"infixop"===e.type&&1===e.contentNodes.length&&a.isMembership(e.contentNodes[0])&&(e.addAnnotation("set","intensional"),e.contentNodes[0].addAnnotation("set","intensional"))}getPunctuationInRow_(t){if(t.length<=1)return t;const e=t=>{const e=t.type;return"punctuation"===e||"text"===e||"operator"===e||"relation"===e},r=l.partitionNodes(t,(function(r){if(!a.isPunctuation(r))return!1;if(a.isPunctuation(r)&&!a.isRole(r,"ellipsis"))return!0;const n=t.indexOf(r);if(0===n)return!t[1]||!e(t[1]);const i=t[n-1];if(n===t.length-1)return!e(i);const o=t[n+1];return!e(i)||!e(o)}));if(0===r.rel.length)return t;const n=[];let i=r.comp.shift();i.length>0&&n.push(c.getInstance().row(i));let o=0;for(;r.comp.length>0;)n.push(r.rel[o++]),i=r.comp.shift(),i.length>0&&n.push(c.getInstance().row(i));return[c.getInstance().punctuatedNode_(n,r.rel)]}punctuatedNode_(t,e){const r=c.getInstance().factory_.makeBranchNode("punctuated",t,e);if(e.length===t.length){const t=e[0].role;if("unknown"!==t&&e.every((function(e){return e.role===t})))return r.role=t,r}return a.singlePunctAtPosition(t,e,0)?r.role="startpunct":a.singlePunctAtPosition(t,e,t.length-1)?r.role="endpunct":e.every((t=>a.isRole(t,"dummy")))?r.role="text":e.every((t=>a.isRole(t,"space")))?r.role="space":r.role="sequence",r}dummyNode_(t){const e=c.getInstance().factory_.makeMultipleContentNodes(t.length-1,i.invisibleComma());return e.forEach((function(t){t.role="dummy"})),c.getInstance().punctuatedNode_(t,e)}accentRole_(t,e){if(!a.isAccent(t))return!1;const r=t.textContent,n=i.lookupSecondary("bar",r)||i.lookupSecondary("tilde",r)||t.role;return t.role="underscore"===e?"underaccent":"overaccent",t.addAnnotation("accent",n),!0}accentNode_(t,e,r,n,i){const o=(e=e.slice(0,n+1))[1],s=e[2];let a;if(!i&&s&&(a=c.getInstance().factory_.makeBranchNode("subscript",[t,o],[]),a.role="subsup",e=[a,s],r="superscript"),i){const n=c.getInstance().accentRole_(o,r);if(s){c.getInstance().accentRole_(s,"overscore")&&!n?(a=c.getInstance().factory_.makeBranchNode("overscore",[t,s],[]),e=[a,o],r="underscore"):(a=c.getInstance().factory_.makeBranchNode("underscore",[t,o],[]),e=[a,s],r="overscore"),a.role="underover"}}return c.getInstance().makeLimitNode_(t,e,a,r)}makeLimitNode_(t,e,r,n){if("limupper"===n&&"limlower"===t.type)return t.childNodes.push(e[1]),e[1].parent=t,t.type="limboth",t;if("limlower"===n&&"limupper"===t.type)return t.childNodes.splice(1,-1,e[1]),e[1].parent=t,t.type="limboth",t;const i=c.getInstance().factory_.makeBranchNode(n,e,[]),o=a.isEmbellished(t);return r&&(r.embellished=o),i.embellished=o,i.role=t.role,i}getFunctionsInRow_(t,e){const r=e||[];if(0===t.length)return r;const n=t.shift(),i=c.classifyFunction_(n,t);if(!i)return r.push(n),c.getInstance().getFunctionsInRow_(t,r);const o=c.getInstance().getFunctionsInRow_(t,[]),s=c.getInstance().getFunctionArgs_(n,o,i);return r.concat(s)}getFunctionArgs_(t,e,r){let n,i,o;switch(r){case"integral":{const r=c.getInstance().getIntegralArgs_(e);if(!r.intvar&&!r.integrand.length)return r.rest.unshift(t),r.rest;const n=c.getInstance().row(r.integrand);return o=c.getInstance().integralNode_(t,n,r.intvar),r.rest.unshift(o),r.rest}case"prefix":if(e[0]&&"fenced"===e[0].type){const r=e.shift();return a.isNeutralFence(r)||(r.role="leftright"),o=c.getInstance().functionNode_(t,r),e.unshift(o),e}if(n=l.sliceNodes(e,a.isPrefixFunctionBoundary),n.head.length)i=c.getInstance().row(n.head),n.div&&n.tail.unshift(n.div);else{if(!n.div||!a.isType(n.div,"appl"))return e.unshift(t),e;i=n.div}return o=c.getInstance().functionNode_(t,i),n.tail.unshift(o),n.tail;case"bigop":return n=l.sliceNodes(e,a.isBigOpBoundary),n.head.length?(i=c.getInstance().row(n.head),o=c.getInstance().bigOpNode_(t,i),n.div&&n.tail.unshift(n.div),n.tail.unshift(o),n.tail):(e.unshift(t),e);default:{if(0===e.length)return[t];const r=e[0];return"fenced"===r.type&&!a.isNeutralFence(r)&&a.isSimpleFunctionScope(r)?(r.role="leftright",c.propagateFunctionRole_(t,"simple function"),o=c.getInstance().functionNode_(t,e.shift()),e.unshift(o),e):(e.unshift(t),e)}}}getIntegralArgs_(t,e=[]){if(0===t.length)return{integrand:e,intvar:null,rest:t};const r=t[0];if(a.isGeneralFunctionBoundary(r))return{integrand:e,intvar:null,rest:t};if(a.isIntegralDxBoundarySingle(r))return r.role="integral",{integrand:e,intvar:r,rest:t.slice(1)};if(t[1]&&a.isIntegralDxBoundary(r,t[1])){const n=c.getInstance().prefixNode_(t[1],[r]);return n.role="integral",{integrand:e,intvar:n,rest:t.slice(2)}}return e.push(t.shift()),c.getInstance().getIntegralArgs_(t,e)}functionNode_(t,e){const r=c.getInstance().factory_.makeContentNode(i.functionApplication()),n=c.getInstance().funcAppls[t.id];n&&(r.mathmlTree=n.mathmlTree,r.mathml=n.mathml,r.annotation=n.annotation,r.attributes=n.attributes,delete c.getInstance().funcAppls[t.id]),r.type="punctuation",r.role="application";const o=c.getFunctionOp_(t,(function(t){return a.isType(t,"function")||a.isType(t,"identifier")&&a.isRole(t,"simple function")}));return c.getInstance().functionalNode_("appl",[t,e],o,[r])}bigOpNode_(t,e){const r=c.getFunctionOp_(t,(t=>a.isType(t,"largeop")));return c.getInstance().functionalNode_("bigop",[t,e],r,[])}integralNode_(t,e,r){e=e||c.getInstance().factory_.makeEmptyNode(),r=r||c.getInstance().factory_.makeEmptyNode();const n=c.getFunctionOp_(t,(t=>a.isType(t,"largeop")));return c.getInstance().functionalNode_("integral",[t,e,r],n,[])}functionalNode_(t,e,r,n){const i=e[0];let o;r&&(o=r.parent,n.push(r));const s=c.getInstance().factory_.makeBranchNode(t,e,n);return s.role=i.role,o&&(r.parent=o),s}fractionNode_(t,e){const r=c.getInstance().factory_.makeBranchNode("fraction",[t,e],[]);return r.role=r.childNodes.every((function(t){return a.isType(t,"number")&&a.isRole(t,"integer")}))?"vulgar":r.childNodes.every(a.isPureUnit)?"unit":"division",o.run("propagateSimpleFunction",r)}scriptNode_(t,e,r){let n;switch(t.length){case 0:n=c.getInstance().factory_.makeEmptyNode();break;case 1:if(n=t[0],r)return n;break;default:n=c.getInstance().dummyNode_(t)}return n.role=e,n}findNestedRow_(t,e,r,i){if(r>3)return null;for(let o,s=0;o=t[s];s++){const t=n.tagName(o);if("MSPACE"!==t){if("MROW"===t)return c.getInstance().findNestedRow_(n.toArray(o.childNodes),e,r+1,i);if(c.findSemantics(o,e,i))return o}}return null}}e.default=c,c.FENCE_TO_PUNCT_={metric:"metric",neutral:"vbar",open:"openfence",close:"closefence"},c.MML_TO_LIMIT_={MSUB:{type:"limlower",length:1},MUNDER:{type:"limlower",length:1},MSUP:{type:"limupper",length:1},MOVER:{type:"limupper",length:1},MSUBSUP:{type:"limboth",length:2},MUNDEROVER:{type:"limboth",length:2}},c.MML_TO_BOUNDS_={MSUB:{type:"subscript",length:1,accent:!1},MSUP:{type:"superscript",length:1,accent:!1},MSUBSUP:{type:"subscript",length:2,accent:!1},MUNDER:{type:"underscore",length:1,accent:!0},MOVER:{type:"overscore",length:1,accent:!0},MUNDEROVER:{type:"underscore",length:2,accent:!0}},c.CLASSIFY_FUNCTION_={integral:"integral",sum:"bigop","prefix function":"prefix","limit function":"prefix","simple function":"prefix","composed function":"prefix"},c.MATHJAX_FONTS={"-tex-caligraphic":"caligraphic","-tex-caligraphic-bold":"caligraphic-bold","-tex-calligraphic":"caligraphic","-tex-calligraphic-bold":"caligraphic-bold","-tex-oldstyle":"oldstyle","-tex-oldstyle-bold":"oldstyle-bold","-tex-mathit":"italic"}},1915:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticSkeleton=void 0;const n=r(8154),i=r(7604),o=r(813);class s{constructor(t){this.parents=null,this.levelsMap=null,t=0===t?t:t||[],this.array=t}static fromTree(t){return s.fromNode(t.root)}static fromNode(t){return new s(s.fromNode_(t))}static fromString(t){return new s(s.fromString_(t))}static simpleCollapseStructure(t){return"number"==typeof t}static contentCollapseStructure(t){return!!t&&!s.simpleCollapseStructure(t)&&"c"===t[0]}static interleaveIds(t,e){return n.interleaveLists(s.collapsedLeafs(t),s.collapsedLeafs(e))}static collapsedLeafs(...t){return t.reduce(((t,e)=>{return t.concat((r=e,s.simpleCollapseStructure(r)?[r]:(r=r,s.contentCollapseStructure(r[1])?r.slice(2):r.slice(1))));var r}),[])}static fromStructure(t,e){return new s(s.tree_(t,e.root))}static combineContentChildren(t,e,r){switch(t.type){case"relseq":case"infixop":case"multirel":return n.interleaveLists(r,e);case"prefixop":return e.concat(r);case"postfixop":return r.concat(e);case"fenced":return r.unshift(e[0]),r.push(e[1]),r;case"appl":return[r[0],e[0],r[1]];case"root":return[r[1],r[0]];case"row":case"line":return e.length&&r.unshift(e[0]),r;default:return r}}static makeSexp_(t){return s.simpleCollapseStructure(t)?t.toString():s.contentCollapseStructure(t)?"(c "+t.slice(1).map(s.makeSexp_).join(" ")+")":"("+t.map(s.makeSexp_).join(" ")+")"}static fromString_(t){let e=t.replace(/\(/g,"[");return e=e.replace(/\)/g,"]"),e=e.replace(/ /g,","),e=e.replace(/c/g,'"c"'),JSON.parse(e)}static fromNode_(t){if(!t)return[];const e=t.contentNodes;let r;e.length&&(r=e.map(s.fromNode_),r.unshift("c"));const n=t.childNodes;if(!n.length)return e.length?[t.id,r]:t.id;const i=n.map(s.fromNode_);return e.length&&i.unshift(r),i.unshift(t.id),i}static tree_(t,e){if(!e)return[];if(!e.childNodes.length)return e.id;const r=e.id,n=[r],a=i.evalXPath(`.//self::*[@${o.Attribute.ID}=${r}]`,t)[0],l=s.combineContentChildren(e,e.contentNodes.map((function(t){return t})),e.childNodes.map((function(t){return t})));a&&s.addOwns_(a,l);for(let e,r=0;e=l[r];r++)n.push(s.tree_(t,e));return n}static addOwns_(t,e){const r=t.getAttribute(o.Attribute.COLLAPSED),n=r?s.realLeafs_(s.fromString(r).array):e.map((t=>t.id));t.setAttribute(o.Attribute.OWNS,n.join(" "))}static realLeafs_(t){if(s.simpleCollapseStructure(t))return[t];if(s.contentCollapseStructure(t))return[];t=t;let e=[];for(let r=1;r<t.length;r++)e=e.concat(s.realLeafs_(t[r]));return e}populate(){this.parents&&this.levelsMap||(this.parents={},this.levelsMap={},this.populate_(this.array,this.array,[]))}toString(){return s.makeSexp_(this.array)}populate_(t,e,r){if(s.simpleCollapseStructure(t))return t=t,this.levelsMap[t]=e,void(this.parents[t]=t===r[0]?r.slice(1):r);const n=s.contentCollapseStructure(t)?t.slice(1):t,i=[n[0]].concat(r);for(let e=0,r=n.length;e<r;e++){const r=n[e];this.populate_(r,t,i)}}isRoot(t){return t===this.levelsMap[t][0]}directChildren(t){if(!this.isRoot(t))return[];return this.levelsMap[t].slice(1).map((t=>s.simpleCollapseStructure(t)?t:s.contentCollapseStructure(t)?t[1]:t[0]))}subtreeNodes(t){if(!this.isRoot(t))return[];const e=(t,r)=>{s.simpleCollapseStructure(t)?r.push(t):(t=t,s.contentCollapseStructure(t)&&(t=t.slice(1)),t.forEach((t=>e(t,r))))},r=this.levelsMap[t],n=[];return e(r.slice(1),n),n}}e.SemanticSkeleton=s},4356:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTree=void 0;const n=r(1838),i=r(2177),o=r(1104),s=r(5743),a=r(927),l=r(8623);r(2178);class c{constructor(t){this.mathml=t,this.parser=new s.SemanticMathml,this.root=this.parser.parse(t),this.collator=this.parser.getFactory().leafMap.collateMeaning();const e=this.collator.newDefault();e&&(this.parser=new s.SemanticMathml,this.parser.getFactory().defaultMap=e,this.root=this.parser.parse(t)),u.visit(this.root,{}),(0,i.annotate)(this.root)}static empty(){const t=n.parseInput("<math/>"),e=new c(t);return e.mathml=t,e}static fromNode(t,e){const r=c.empty();return r.root=t,e&&(r.mathml=e),r}static fromRoot(t,e){let r=t;for(;r.parent;)r=r.parent;const n=c.fromNode(r);return e&&(n.mathml=e),n}static fromXml(t){const e=c.empty();return t.childNodes[0]&&(e.root=a.SemanticNode.fromXml(t.childNodes[0])),e}xml(t){const e=n.parseInput("<stree></stree>"),r=this.root.xml(e.ownerDocument,t);return e.appendChild(r),e}toString(t){return n.serializeXml(this.xml(t))}formatXml(t){const e=this.toString(t);return n.formatXml(e)}displayTree(){this.root.displayTree()}replaceNode(t,e){const r=t.parent;r?r.replaceChild(t,e):this.root=e}toJson(){const t={};return t.stree=this.root.toJson(),t}}e.SemanticTree=c;const u=new o.SemanticVisitor("general","unit",((t,e)=>{if("infixop"===t.type&&("multiplication"===t.role||"implicit"===t.role)){const e=t.childNodes;e.length&&(l.isPureUnit(e[0])||l.isUnitCounter(e[0]))&&t.childNodes.slice(1).every(l.isPureUnit)&&(t.role="unit")}return!1}))},1151:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.partitionNodes=e.sliceNodes=e.getEmbellishedInner=e.addAttributes=e.isZeroLength=e.purgeNodes=e.isOrphanedGlyph=e.hasDisplayTag=e.hasEmptyTag=e.hasIgnoreTag=e.hasLeafTag=e.hasMathTag=e.directSpeechKeys=e.DISPLAYTAGS=e.EMPTYTAGS=e.IGNORETAGS=e.LEAFTAGS=void 0;const n=r(1838);function i(t){return!!t&&-1!==e.LEAFTAGS.indexOf(n.tagName(t))}function o(t,e,r){r&&t.reverse();const n=[];for(let i,o=0;i=t[o];o++){if(e(i))return r?{head:t.slice(o+1).reverse(),div:i,tail:n.reverse()}:{head:n,div:i,tail:t.slice(o+1)};n.push(i)}return r?{head:[],div:null,tail:n.reverse()}:{head:n,div:null,tail:[]}}e.LEAFTAGS=["MO","MI","MN","MTEXT","MS","MSPACE"],e.IGNORETAGS=["MERROR","MPHANTOM","MALIGNGROUP","MALIGNMARK","MPRESCRIPTS","ANNOTATION","ANNOTATION-XML"],e.EMPTYTAGS=["MATH","MROW","MPADDED","MACTION","NONE","MSTYLE","SEMANTICS"],e.DISPLAYTAGS=["MROOT","MSQRT"],e.directSpeechKeys=["aria-label","exact-speech","alt"],e.hasMathTag=function(t){return!!t&&"MATH"===n.tagName(t)},e.hasLeafTag=i,e.hasIgnoreTag=function(t){return!!t&&-1!==e.IGNORETAGS.indexOf(n.tagName(t))},e.hasEmptyTag=function(t){return!!t&&-1!==e.EMPTYTAGS.indexOf(n.tagName(t))},e.hasDisplayTag=function(t){return!!t&&-1!==e.DISPLAYTAGS.indexOf(n.tagName(t))},e.isOrphanedGlyph=function(t){return!!t&&"MGLYPH"===n.tagName(t)&&!i(t.parentNode)},e.purgeNodes=function(t){const r=[];for(let i,o=0;i=t[o];o++){if(i.nodeType!==n.NodeType.ELEMENT_NODE)continue;const t=n.tagName(i);-1===e.IGNORETAGS.indexOf(t)&&(-1!==e.EMPTYTAGS.indexOf(t)&&0===i.childNodes.length||r.push(i))}return r},e.isZeroLength=function(t){if(!t)return!1;if(-1!==["negativeveryverythinmathspace","negativeverythinmathspace","negativethinmathspace","negativemediummathspace","negativethickmathspace","negativeverythickmathspace","negativeveryverythickmathspace"].indexOf(t))return!0;const e=t.match(/[0-9.]+/);return!!e&&0===parseFloat(e[0])},e.addAttributes=function(t,r){if(r.hasAttributes()){const n=r.attributes;for(let r=n.length-1;r>=0;r--){const i=n[r].name;i.match(/^ext/)&&(t.attributes[i]=n[r].value,t.nobreaking=!0),-1!==e.directSpeechKeys.indexOf(i)&&(t.attributes["ext-speech"]=n[r].value,t.nobreaking=!0),i.match(/texclass$/)&&(t.attributes.texclass=n[r].value),"href"===i&&(t.attributes.href=n[r].value,t.nobreaking=!0)}}},e.getEmbellishedInner=function t(e){return e&&e.embellished&&e.childNodes.length>0?t(e.childNodes[0]):e},e.sliceNodes=o,e.partitionNodes=function(t,e){let r=t;const n=[],i=[];let s=null;do{s=o(r,e),i.push(s.head),n.push(s.div),r=s.tail}while(s.div);return n.pop(),{rel:n,comp:i}}},9137:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractSpeechGenerator=void 0;const n=r(4591),i=r(813),o=r(9899),s=r(1558);e.AbstractSpeechGenerator=class{constructor(){this.modality=i.addPrefix("speech"),this.rebuilt_=null,this.options_={}}getRebuilt(){return this.rebuilt_}setRebuilt(t){this.rebuilt_=t}setOptions(t){this.options_=t||{},this.modality=i.addPrefix(this.options_.modality||"speech")}getOptions(){return this.options_}start(){}end(){}generateSpeech(t,e){return this.rebuilt_||(this.rebuilt_=new o.RebuildStree(e)),(0,n.setup)(this.options_),s.computeMarkup(this.getRebuilt().xml)}}},2055:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AdhocSpeechGenerator=void 0;const n=r(9137);class i extends n.AbstractSpeechGenerator{getSpeech(t,e){const r=this.generateSpeech(t,e);return t.setAttribute(this.modality,r),r}}e.AdhocSpeechGenerator=i},2611:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorGenerator=void 0;const n=r(813),i=r(110),o=r(9899),s=r(3580),a=r(9137);class l extends a.AbstractSpeechGenerator{constructor(){super(...arguments),this.modality=(0,n.addPrefix)("foreground"),this.contrast=new i.ContrastPicker}static visitStree_(t,e,r){if(t.childNodes.length){if(t.contentNodes.length&&("punctuated"===t.type&&t.contentNodes.forEach((t=>r[t.id]=!0)),"implicit"!==t.role&&e.push(t.contentNodes.map((t=>t.id)))),t.childNodes.length){if("implicit"===t.role){const n=[];let i=[];for(const e of t.childNodes){const t=[];l.visitStree_(e,t,r),t.length<=2&&n.push(t.shift()),i=i.concat(t)}return e.push(n),void i.forEach((t=>e.push(t)))}t.childNodes.forEach((t=>l.visitStree_(t,e,r)))}}else r[t.id]||e.push(t.id)}getSpeech(t,e){return s.getAttribute(t,this.modality)}generateSpeech(t,e){return this.getRebuilt()||this.setRebuilt(new o.RebuildStree(t)),this.colorLeaves_(t),s.getAttribute(t,this.modality)}colorLeaves_(t){const e=[];l.visitStree_(this.getRebuilt().streeRoot,e,{});for(const r of e){const e=this.contrast.generate();let n=!1;n=Array.isArray(r)?r.map((r=>this.colorLeave_(t,r,e))).reduce(((t,e)=>t||e),!1):this.colorLeave_(t,r.toString(),e),n&&this.contrast.increment()}}colorLeave_(t,e,r){const n=s.getBySemanticId(t,e);return!!n&&(n.setAttribute(this.modality,r),!0)}}e.ColorGenerator=l},5718:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectSpeechGenerator=void 0;const n=r(3580),i=r(9137);class o extends i.AbstractSpeechGenerator{getSpeech(t,e){return n.getAttribute(t,this.modality)}}e.DirectSpeechGenerator=o},1780:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DummySpeechGenerator=void 0;const n=r(9137);class i extends n.AbstractSpeechGenerator{getSpeech(t,e){return""}}e.DummySpeechGenerator=i},2820:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeSpeechGenerator=void 0;const n=r(3580),i=r(7826);class o extends i.TreeSpeechGenerator{getSpeech(t,e){return super.getSpeech(t,e),n.getAttribute(t,this.modality)}}e.NodeSpeechGenerator=o},775:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generatorMapping_=e.generator=void 0;const n=r(2055),i=r(2611),o=r(5718),s=r(1780),a=r(2820),l=r(4215),c=r(7826);e.generator=function(t){return(e.generatorMapping_[t]||e.generatorMapping_.Direct)()},e.generatorMapping_={Adhoc:()=>new n.AdhocSpeechGenerator,Color:()=>new i.ColorGenerator,Direct:()=>new o.DirectSpeechGenerator,Dummy:()=>new s.DummySpeechGenerator,Node:()=>new a.NodeSpeechGenerator,Summary:()=>new l.SummarySpeechGenerator,Tree:()=>new c.TreeSpeechGenerator}},1558:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeSummary_=e.retrieveSummary=e.connectAllMactions=e.connectMactions=e.nodeAtPosition_=e.computePrefix_=e.retrievePrefix=e.addPrefix=e.addModality=e.addSpeech=e.recomputeMarkup=e.computeMarkup=e.recomputeSpeech=e.computeSpeech=void 0;const n=r(2273),i=r(1838),o=r(7604),s=r(813),a=r(8020),l=r(4356),c=r(3580);function u(t){return a.SpeechRuleEngine.getInstance().evaluateNode(t)}function h(t){return u(l.SemanticTree.fromNode(t).xml())}function p(t){const e=h(t);return n.markup(e)}function d(t){const e=f(t);return n.markup(e)}function f(t){const e=l.SemanticTree.fromRoot(t),r=o.evalXPath('.//*[@id="'+t.id+'"]',e.xml());let n=r[0];return r.length>1&&(n=m(t,r)||n),n?a.SpeechRuleEngine.getInstance().runInSetting({modality:"prefix",domain:"default",style:"default",strict:!0,speech:!0},(function(){return a.SpeechRuleEngine.getInstance().evaluateNode(n)})):[]}function m(t,e){const r=e[0];if(!t.parent)return r;const n=[];for(;t;)n.push(t.id),t=t.parent;const i=function(t,e){for(;e.length&&e.shift().toString()===t.getAttribute("id")&&t.parentNode&&t.parentNode.parentNode;)t=t.parentNode.parentNode;return!e.length};for(let t,r=0;t=e[r];r++)if(i(t,n.slice()))return t;return r}function y(t){return t?a.SpeechRuleEngine.getInstance().runInSetting({modality:"summary",strict:!1,speech:!0},(function(){return a.SpeechRuleEngine.getInstance().evaluateNode(t)})):[]}e.computeSpeech=u,e.recomputeSpeech=h,e.computeMarkup=function(t){const e=u(t);return n.markup(e)},e.recomputeMarkup=p,e.addSpeech=function(t,e,r){const o=i.querySelectorAllByAttrValue(r,"id",e.id.toString())[0],a=o?n.markup(u(o)):p(e);t.setAttribute(s.Attribute.SPEECH,a)},e.addModality=function(t,e,r){const n=p(e);t.setAttribute(r,n)},e.addPrefix=function(t,e){const r=d(e);r&&t.setAttribute(s.Attribute.PREFIX,r)},e.retrievePrefix=d,e.computePrefix_=f,e.nodeAtPosition_=m,e.connectMactions=function(t,e,r){const n=i.querySelectorAll(e,"maction");for(let e,o=0;e=n[o];o++){const n=e.getAttribute("id"),o=i.querySelectorAllByAttrValue(t,"id",n)[0];if(!o)continue;const a=e.childNodes[1],l=a.getAttribute(s.Attribute.ID);let u=c.getBySemanticId(t,l);if(u&&"dummy"!==u.getAttribute(s.Attribute.TYPE))continue;if(u=o.childNodes[0],u.getAttribute("sre-highlighter-added"))continue;const h=a.getAttribute(s.Attribute.PARENT);h&&u.setAttribute(s.Attribute.PARENT,h),u.setAttribute(s.Attribute.TYPE,"dummy"),u.setAttribute(s.Attribute.ID,l);i.querySelectorAllByAttrValue(r,"id",l)[0].setAttribute("alternative",l)}},e.connectAllMactions=function(t,e){const r=i.querySelectorAll(t,"maction");for(let t,n=0;t=r[n];n++){const r=t.childNodes[1].getAttribute(s.Attribute.ID);i.querySelectorAllByAttrValue(e,"id",r)[0].setAttribute("alternative",r)}},e.retrieveSummary=function(t){const e=y(t);return n.markup(e)},e.computeSummary_=y},4215:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SummarySpeechGenerator=void 0;const n=r(9137),i=r(1558);class o extends n.AbstractSpeechGenerator{getSpeech(t,e){return i.connectAllMactions(e,this.getRebuilt().xml),this.generateSpeech(t,e)}}e.SummarySpeechGenerator=o},7826:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TreeSpeechGenerator=void 0;const n=r(813),i=r(3580),o=r(9137),s=r(1558);class a extends o.AbstractSpeechGenerator{getSpeech(t,e){const r=this.generateSpeech(t,e),o=this.getRebuilt().nodeDict;for(const r in o){const a=o[r],l=i.getBySemanticId(e,r),c=i.getBySemanticId(t,r);l&&c&&(this.modality&&this.modality!==n.Attribute.SPEECH?s.addModality(c,a,this.modality):s.addSpeech(c,a,this.getRebuilt().xml),this.modality===n.Attribute.SPEECH&&s.addPrefix(c,a))}return r}}e.TreeSpeechGenerator=a},6634:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.INTERVALS=e.makeLetter=e.numberRules=e.alphabetRules=e.getFont=e.makeInterval=e.generate=e.makeDomains_=e.Domains_=e.Base=e.Embellish=e.Font=void 0;const n=r(5771),i=r(4439),o=r(2894),s=r(8210),a=r(9089);var l,c,u;function h(){const t=o.LOCALE.ALPHABETS,r=(t,e)=>{const r={};return Object.keys(t).forEach((t=>r[t]=!0)),Object.keys(e).forEach((t=>r[t]=!0)),Object.keys(r)};e.Domains_.small=r(t.smallPrefix,t.letterTrans),e.Domains_.capital=r(t.capPrefix,t.letterTrans),e.Domains_.digit=r(t.digitPrefix,t.digitTrans)}function p(t){const e=t.toString(16).toUpperCase();return e.length>3?e:("000"+e).slice(-4)}function d([t,e],r){const n=parseInt(t,16),i=parseInt(e,16),o=[];for(let t=n;t<=i;t++){let e=p(t);!1!==r[e]&&(e=r[e]||e,o.push(e))}return o}function f(t){const e="normal"===t||"fullwidth"===t?"":o.LOCALE.MESSAGES.font[t]||o.LOCALE.MESSAGES.embellish[t]||"";return(0,s.localeFontCombiner)(e)}function m(t,r,n,i,s,a){const l=f(i);for(let i,c,u,h=0;i=t[h],c=r[h],u=n[h];h++){const t=a?o.LOCALE.ALPHABETS.capPrefix:o.LOCALE.ALPHABETS.smallPrefix,r=a?e.Domains_.capital:e.Domains_.small;g(l.combiner,i,c,u,l.font,t,s,o.LOCALE.ALPHABETS.letterTrans,r)}}function y(t,r,n,i,s){const a=f(n);for(let n,l,c=0;n=t[c],l=r[c];c++){const t=o.LOCALE.ALPHABETS.digitPrefix,r=c+s;g(a.combiner,n,l,r,a.font,t,i,o.LOCALE.ALPHABETS.digitTrans,e.Domains_.digit)}}function g(t,e,r,n,i,o,s,l,c){for(let u,h=0;u=c[h];h++){const c=u in l?l[u]:l.default,h=u in o?o[u]:o.default;a.defineRule(e.toString(),u,"default",s,r,t(c(n),i,h))}}!function(t){t.BOLD="bold",t.BOLDFRAKTUR="bold-fraktur",t.BOLDITALIC="bold-italic",t.BOLDSCRIPT="bold-script",t.DOUBLESTRUCK="double-struck",t.FULLWIDTH="fullwidth",t.FRAKTUR="fraktur",t.ITALIC="italic",t.MONOSPACE="monospace",t.NORMAL="normal",t.SCRIPT="script",t.SANSSERIF="sans-serif",t.SANSSERIFITALIC="sans-serif-italic",t.SANSSERIFBOLD="sans-serif-bold",t.SANSSERIFBOLDITALIC="sans-serif-bold-italic"}(l=e.Font||(e.Font={})),function(t){t.SUPER="super",t.SUB="sub",t.CIRCLED="circled",t.PARENTHESIZED="parenthesized",t.PERIOD="period",t.NEGATIVECIRCLED="negative-circled",t.DOUBLECIRCLED="double-circled",t.CIRCLEDSANSSERIF="circled-sans-serif",t.NEGATIVECIRCLEDSANSSERIF="negative-circled-sans-serif",t.COMMA="comma",t.SQUARED="squared",t.NEGATIVESQUARED="negative-squared"}(c=e.Embellish||(e.Embellish={})),function(t){t.LATINCAP="latinCap",t.LATINSMALL="latinSmall",t.GREEKCAP="greekCap",t.GREEKSMALL="greekSmall",t.DIGIT="digit"}(u=e.Base||(e.Base={})),e.Domains_={small:["default"],capital:["default"],digit:["default"]},e.makeDomains_=h,e.generate=function(t){const r=n.default.getInstance().locale;n.default.getInstance().locale=t,i.setLocale(),a.addSymbolRules({locale:t}),h();const s=e.INTERVALS;for(let t,e=0;t=s[e];e++){const e=d(t.interval,t.subst),r=e.map((function(t){return String.fromCodePoint(parseInt(t,16))}));if("offset"in t)y(e,r,t.font,t.category,t.offset||0);else{m(e,r,o.LOCALE.ALPHABETS[t.base],t.font,t.category,!!t.capital)}}n.default.getInstance().locale=r,i.setLocale()},e.makeInterval=d,e.getFont=f,e.alphabetRules=m,e.numberRules=y,e.makeLetter=g,e.INTERVALS=[{interval:["1D400","1D419"],base:u.LATINCAP,subst:{},capital:!0,category:"Lu",font:l.BOLD},{interval:["1D41A","1D433"],base:u.LATINSMALL,subst:{},capital:!1,category:"Ll",font:l.BOLD},{interval:["1D56C","1D585"],base:u.LATINCAP,subst:{},capital:!0,category:"Lu",font:l.BOLDFRAKTUR},{interval:["1D586","1D59F"],base:u.LATINSMALL,subst:{},capital:!1,category:"Ll",font:l.BOLDFRAKTUR},{interval:["1D468","1D481"],base:u.LATINCAP,subst:{},capital:!0,category:"Lu",font:l.BOLDITALIC},{interval:["1D482","1D49B"],base:u.LATINSMALL,subst:{},capital:!1,category:"Ll",font:l.BOLDITALIC},{interval:["1D4D0","1D4E9"],base:u.LATINCAP,subst:{},capital:!0,category:"Lu",font:l.BOLDSCRIPT},{interval:["1D4EA","1D503"],base:u.LATINSMALL,subst:{},capital:!1,category:"Ll",font:l.BOLDSCRIPT},{interval:["1D538","1D551"],base:u.LATINCAP,subst:{"1D53A":"2102","1D53F":"210D","1D545":"2115","1D547":"2119","1D548":"211A","1D549":"211D","1D551":"2124"},capital:!0,category:"Lu",font:l.DOUBLESTRUCK},{interval:["1D552","1D56B"],base:u.LATINSMALL,subst:{},capital:!1,category:"Ll",font:l.DOUBLESTRUCK},{interval:["1D504","1D51D"],base:u.LATINCAP,subst:{"1D506":"212D","1D50B":"210C","1D50C":"2111","1D515":"211C","1D51D":"2128"},capital:!0,category:"Lu",font:l.FRAKTUR},{interval:["1D51E","1D537"],base:u.LATINSMALL,subst:{},capital:!1,category:"Ll",font:l.FRAKTUR},{interval:["FF21","FF3A"],base:u.LATINCAP,subst:{},capital:!0,category:"Lu",font:l.FULLWIDTH},{interval:["FF41","FF5A"],base:u.LATINSMALL,subst:{},capital:!1,category:"Ll",font:l.FULLWIDTH},{interval:["1D434","1D44D"],base:u.LATINCAP,subst:{},capital:!0,category:"Lu",font:l.ITALIC},{interval:["1D44E","1D467"],base:u.LATINSMALL,subst:{"1D455":"210E"},capital:!1,category:"Ll",font:l.ITALIC},{interval:["1D670","1D689"],base:u.LATINCAP,subst:{},capital:!0,category:"Lu",font:l.MONOSPACE},{interval:["1D68A","1D6A3"],base:u.LATINSMALL,subst:{},capital:!1,category:"Ll",font:l.MONOSPACE},{interval:["0041","005A"],base:u.LATINCAP,subst:{},capital:!0,category:"Lu",font:l.NORMAL},{interval:["0061","007A"],base:u.LATINSMALL,subst:{},capital:!1,category:"Ll",font:l.NORMAL},{interval:["1D49C","1D4B5"],base:u.LATINCAP,subst:{"1D49D":"212C","1D4A0":"2130","1D4A1":"2131","1D4A3":"210B","1D4A4":"2110","1D4A7":"2112","1D4A8":"2133","1D4AD":"211B"},capital:!0,category:"Lu",font:l.SCRIPT},{interval:["1D4B6","1D4CF"],base:u.LATINSMALL,subst:{"1D4BA":"212F","1D4BC":"210A","1D4C4":"2134"},capital:!1,category:"Ll",font:l.SCRIPT},{interval:["1D5A0","1D5B9"],base:u.LATINCAP,subst:{},capital:!0,category:"Lu",font:l.SANSSERIF},{interval:["1D5BA","1D5D3"],base:u.LATINSMALL,subst:{},capital:!1,category:"Ll",font:l.SANSSERIF},{interval:["1D608","1D621"],base:u.LATINCAP,subst:{},capital:!0,category:"Lu",font:l.SANSSERIFITALIC},{interval:["1D622","1D63B"],base:u.LATINSMALL,subst:{},capital:!1,category:"Ll",font:l.SANSSERIFITALIC},{interval:["1D5D4","1D5ED"],base:u.LATINCAP,subst:{},capital:!0,category:"Lu",font:l.SANSSERIFBOLD},{interval:["1D5EE","1D607"],base:u.LATINSMALL,subst:{},capital:!1,category:"Ll",font:l.SANSSERIFBOLD},{interval:["1D63C","1D655"],base:u.LATINCAP,subst:{},capital:!0,category:"Lu",font:l.SANSSERIFBOLDITALIC},{interval:["1D656","1D66F"],base:u.LATINSMALL,subst:{},capital:!1,category:"Ll",font:l.SANSSERIFBOLDITALIC},{interval:["0391","03A9"],base:u.GREEKCAP,subst:{"03A2":"03F4"},capital:!0,category:"Lu",font:l.NORMAL},{interval:["03B0","03D0"],base:u.GREEKSMALL,subst:{"03B0":"2207","03CA":"2202","03CB":"03F5","03CC":"03D1","03CD":"03F0","03CE":"03D5","03CF":"03F1","03D0":"03D6"},capital:!1,category:"Ll",font:l.NORMAL},{interval:["1D6A8","1D6C0"],base:u.GREEKCAP,subst:{},capital:!0,category:"Lu",font:l.BOLD},{interval:["1D6C1","1D6E1"],base:u.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:l.BOLD},{interval:["1D6E2","1D6FA"],base:u.GREEKCAP,subst:{},capital:!0,category:"Lu",font:l.ITALIC},{interval:["1D6FB","1D71B"],base:u.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:l.ITALIC},{interval:["1D71C","1D734"],base:u.GREEKCAP,subst:{},capital:!0,category:"Lu",font:l.BOLDITALIC},{interval:["1D735","1D755"],base:u.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:l.BOLDITALIC},{interval:["1D756","1D76E"],base:u.GREEKCAP,subst:{},capital:!0,category:"Lu",font:l.SANSSERIFBOLD},{interval:["1D76F","1D78F"],base:u.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:l.SANSSERIFBOLD},{interval:["1D790","1D7A8"],base:u.GREEKCAP,subst:{},capital:!0,category:"Lu",font:l.SANSSERIFBOLDITALIC},{interval:["1D7A9","1D7C9"],base:u.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:l.SANSSERIFBOLDITALIC},{interval:["0030","0039"],base:u.DIGIT,subst:{},offset:0,category:"Nd",font:l.NORMAL},{interval:["2070","2079"],base:u.DIGIT,subst:{2071:"00B9",2072:"00B2",2073:"00B3"},offset:0,category:"No",font:c.SUPER},{interval:["2080","2089"],base:u.DIGIT,subst:{},offset:0,category:"No",font:c.SUB},{interval:["245F","2473"],base:u.DIGIT,subst:{"245F":"24EA"},offset:0,category:"No",font:c.CIRCLED},{interval:["3251","325F"],base:u.DIGIT,subst:{},offset:21,category:"No",font:c.CIRCLED},{interval:["32B1","32BF"],base:u.DIGIT,subst:{},offset:36,category:"No",font:c.CIRCLED},{interval:["2474","2487"],base:u.DIGIT,subst:{},offset:1,category:"No",font:c.PARENTHESIZED},{interval:["2487","249B"],base:u.DIGIT,subst:{2487:"1F100"},offset:0,category:"No",font:c.PERIOD},{interval:["2775","277F"],base:u.DIGIT,subst:{2775:"24FF"},offset:0,category:"No",font:c.NEGATIVECIRCLED},{interval:["24EB","24F4"],base:u.DIGIT,subst:{},offset:11,category:"No",font:c.NEGATIVECIRCLED},{interval:["24F5","24FE"],base:u.DIGIT,subst:{},offset:1,category:"No",font:c.DOUBLECIRCLED},{interval:["277F","2789"],base:u.DIGIT,subst:{"277F":"1F10B"},offset:0,category:"No",font:c.CIRCLEDSANSSERIF},{interval:["2789","2793"],base:u.DIGIT,subst:{2789:"1F10C"},offset:0,category:"No",font:c.NEGATIVECIRCLEDSANSSERIF},{interval:["FF10","FF19"],base:u.DIGIT,subst:{},offset:0,category:"Nd",font:l.FULLWIDTH},{interval:["1D7CE","1D7D7"],base:u.DIGIT,subst:{},offset:0,category:"Nd",font:l.BOLD},{interval:["1D7D8","1D7E1"],base:u.DIGIT,subst:{},offset:0,category:"Nd",font:l.DOUBLESTRUCK},{interval:["1D7E2","1D7EB"],base:u.DIGIT,subst:{},offset:0,category:"Nd",font:l.SANSSERIF},{interval:["1D7EC","1D7F5"],base:u.DIGIT,subst:{},offset:0,category:"Nd",font:l.SANSSERIFBOLD},{interval:["1D7F6","1D7FF"],base:u.DIGIT,subst:{},offset:0,category:"Nd",font:l.MONOSPACE},{interval:["1F101","1F10A"],base:u.DIGIT,subst:{},offset:0,category:"No",font:c.COMMA},{interval:["24B6","24CF"],base:u.LATINCAP,subst:{},capital:!0,category:"So",font:c.CIRCLED},{interval:["24D0","24E9"],base:u.LATINSMALL,subst:{},capital:!1,category:"So",font:c.CIRCLED},{interval:["1F110","1F129"],base:u.LATINCAP,subst:{},capital:!0,category:"So",font:c.PARENTHESIZED},{interval:["249C","24B5"],base:u.LATINSMALL,subst:{},capital:!1,category:"So",font:c.PARENTHESIZED},{interval:["1F130","1F149"],base:u.LATINCAP,subst:{},capital:!0,category:"So",font:c.SQUARED},{interval:["1F170","1F189"],base:u.LATINCAP,subst:{},capital:!0,category:"So",font:c.NEGATIVESQUARED},{interval:["1F150","1F169"],base:u.LATINCAP,subst:{},capital:!0,category:"So",font:c.NEGATIVECIRCLED}]},7632:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=e.Comparator=e.ClearspeakPreferences=void 0;const n=r(5771),i=r(292),o=r(9818),s=r(9818),a=r(9089),l=r(8020);class c extends o.DynamicCstr{constructor(t,e){super(t),this.preference=e}static comparator(){return new h(n.default.getInstance().dynamicCstr,s.DynamicProperties.createProp([o.DynamicCstr.DEFAULT_VALUES[s.Axis.LOCALE]],[o.DynamicCstr.DEFAULT_VALUES[s.Axis.MODALITY]],[o.DynamicCstr.DEFAULT_VALUES[s.Axis.DOMAIN]],[o.DynamicCstr.DEFAULT_VALUES[s.Axis.STYLE]]))}static fromPreference(t){const e=t.split(":"),r={},n=u.getProperties(),i=Object.keys(n);for(let t,o=0;t=e[o];o++){const e=t.split("_");if(-1===i.indexOf(e[0]))continue;const o=e[1];o&&o!==c.AUTO&&-1!==n[e[0]].indexOf(o)&&(r[e[0]]=e[1])}return r}static toPreference(t){const e=Object.keys(t),r=[];for(let n=0;n<e.length;n++)r.push(e[n]+"_"+t[e[n]]);return r.length?r.join(":"):o.DynamicCstr.DEFAULT_VALUE}static getLocalePreferences(t){const e=t||a.enumerate(l.SpeechRuleEngine.getInstance().enumerate());return c.getLocalePreferences_(e)}static smartPreferences(t,e){const r=c.getLocalePreferences()[e];if(!r)return[];const n=t.explorers.speech,o=c.relevantPreferences(n.walker.getFocus().getSemanticPrimary()),s=i.DOMAIN_TO_STYLES.clearspeak;return[{type:"radio",content:"No Preferences",id:"clearspeak-default",variable:"speechRules"},{type:"radio",content:"Current Preferences",id:"clearspeak-"+s,variable:"speechRules"},{type:"rule"},{type:"label",content:"Preferences for "+o},{type:"rule"}].concat(r[o].map((function(t){const e=t.split("_");return{type:"radio",content:e[1],id:"clearspeak-"+c.addPreference(s,e[0],e[1]),variable:"speechRules"}})))}static relevantPreferences(t){const e=f[t.type];return e&&(e[t.role]||e[""])||"ImpliedTimes"}static findPreference(t,e){if("default"===t)return c.AUTO;return c.fromPreference(t)[e]||c.AUTO}static addPreference(t,e,r){if("default"===t)return e+"_"+r;const n=c.fromPreference(t);return n[e]=r,c.toPreference(n)}static getLocalePreferences_(t){const e={};for(const r in t){if(!t[r].speech||!t[r].speech.clearspeak)continue;const n=Object.keys(t[r].speech.clearspeak),i=e[r]={};for(const t in u.getProperties()){const e=u.getProperties()[t],r=[t+"_Auto"];if(e)for(const i of e)-1!==n.indexOf(t+"_"+i)&&r.push(t+"_"+i);i[t]=r}}return e}equal(t){if(!super.equal(t))return!1;const e=Object.keys(this.preference),r=t.preference;if(e.length!==Object.keys(r).length)return!1;for(let t,n=0;t=e[n];n++)if(this.preference[t]!==r[t])return!1;return!0}}e.ClearspeakPreferences=c,c.AUTO="Auto";const u=new s.DynamicProperties({AbsoluteValue:["Auto","AbsEnd","Cardinality","Determinant"],Bar:["Auto","Conjugate"],Caps:["Auto","SayCaps"],CombinationPermutation:["Auto","ChoosePermute"],Currency:["Auto","Position","Prefix"],Ellipses:["Auto","AndSoOn"],Enclosed:["Auto","EndEnclose"],Exponent:["Auto","AfterPower","Ordinal","OrdinalPower","Exponent"],Fraction:["Auto","EndFrac","FracOver","General","GeneralEndFrac","Ordinal","Over","OverEndFrac","Per"],Functions:["Auto","None","Reciprocal"],ImpliedTimes:["Auto","MoreImpliedTimes","None"],Log:["Auto","LnAsNaturalLog"],Matrix:["Auto","Combinatoric","EndMatrix","EndVector","SilentColNum","SpeakColNum","Vector"],MultiLineLabel:["Auto","Case","Constraint","Equation","Line","None","Row","Step"],MultiLineOverview:["Auto","None"],MultiLinePausesBetweenColumns:["Auto","Long","Short"],MultsymbolDot:["Auto","Dot"],MultsymbolX:["Auto","By","Cross"],Paren:["Auto","CoordPoint","Interval","Silent","Speak","SpeakNestingLevel"],Prime:["Auto","Angle","Length"],Roots:["Auto","PosNegSqRoot","PosNegSqRootEnd","RootEnd"],SetMemberSymbol:["Auto","Belongs","Element","Member","In"],Sets:["Auto","SilentBracket","woAll"],TriangleSymbol:["Auto","Delta"],Trig:["Auto","ArcTrig","TrigInverse","Reciprocal"],VerticalLine:["Auto","Divides","Given","SuchThat"]});class h extends s.DefaultComparator{constructor(t,e){super(t,e),this.preference=t instanceof c?t.preference:{}}match(t){if(!(t instanceof c))return super.match(t);if("default"===t.getComponents()[s.Axis.STYLE])return!0;const e=Object.keys(t.preference);for(let r,n=0;r=e[n];n++)if(this.preference[r]!==t.preference[r])return!1;return!0}compare(t,e){const r=super.compare(t,e);if(0!==r)return r;const n=t instanceof c,i=e instanceof c;if(!n&&i)return 1;if(n&&!i)return-1;if(!n&&!i)return 0;const o=Object.keys(t.preference).length,s=Object.keys(e.preference).length;return o>s?-1:o<s?1:0}}e.Comparator=h;class p extends s.DynamicCstrParser{constructor(){super([s.Axis.LOCALE,s.Axis.MODALITY,s.Axis.DOMAIN,s.Axis.STYLE])}parse(t){const e=super.parse(t);let r=e.getValue(s.Axis.STYLE);const n=e.getValue(s.Axis.LOCALE),i=e.getValue(s.Axis.MODALITY);let a={};return r!==o.DynamicCstr.DEFAULT_VALUE&&(a=this.fromPreference(r),r=this.toPreference(a)),new c({locale:n,modality:i,domain:"clearspeak",style:r},a)}fromPreference(t){return c.fromPreference(t)}toPreference(t){return c.toPreference(t)}}e.Parser=p;const d=[["AbsoluteValue","fenced","neutral","metric"],["Bar","overscore","overaccent"],["Caps","identifier","latinletter"],["CombinationPermutation","appl","unknown"],["Ellipses","punctuation","ellipsis"],["Exponent","superscript",""],["Fraction","fraction",""],["Functions","appl","simple function"],["ImpliedTimes","operator","implicit"],["Log","appl","prefix function"],["Matrix","matrix",""],["Matrix","vector",""],["MultiLineLabel","multiline","label"],["MultiLineOverview","multiline","table"],["MultiLinePausesBetweenColumns","multiline","table"],["MultiLineLabel","table","label"],["MultiLineOverview","table","table"],["MultiLinePausesBetweenColumns","table","table"],["MultiLineLabel","cases","label"],["MultiLineOverview","cases","table"],["MultiLinePausesBetweenColumns","cases","table"],["MultsymbolDot","operator","multiplication"],["MultsymbolX","operator","multiplication"],["Paren","fenced","leftright"],["Prime","superscript","prime"],["Roots","root",""],["Roots","sqrt",""],["SetMemberSymbol","relation","element"],["Sets","fenced","set extended"],["TriangleSymbol","identifier","greekletter"],["Trig","appl","prefix function"],["VerticalLine","punctuated","vbar"]],f=function(){const t={};for(let e,r=0;e=d[r];r++){const r=e[0];let n=t[e[1]];n||(n={},t[e[1]]=n),n[e[2]]=r}return t}();n.default.getInstance().comparators.clearspeak=c.comparator,n.default.getInstance().parsers.clearspeak=new p},1966:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClearspeakRules=void 0;const n=r(9818),i=r(393),o=r(13),s=r(9635),a=r(422),l=r(429);e.ClearspeakRules=function(){l.addStore(n.DynamicCstr.BASE_LOCALE+".speech.clearspeak","",{CTFpauseSeparator:i.pauseSeparator,CTFnodeCounter:o.nodeCounter,CTFcontentIterator:i.contentIterator,CSFvulgarFraction:a.vulgarFraction,CQFvulgarFractionSmall:o.isSmallVulgarFraction,CQFcellsSimple:o.allCellsSimple,CSFordinalExponent:o.ordinalExponent,CSFwordOrdinal:o.wordOrdinal,CQFmatchingFences:o.matchingFences,CSFnestingDepth:o.nestingDepth,CQFfencedArguments:o.fencedArguments,CQFsimpleArguments:o.simpleArguments,CQFspaceoutNumber:s.spaceoutNumber})}},13:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wordOrdinal=e.layoutFactor_=e.fencedFactor_=e.simpleFactor_=e.simpleArguments=e.fencedArguments=e.insertNesting=e.matchingFences=e.nestingDepth=e.NESTING_DEPTH=e.ordinalExponent=e.allTextLastContent_=e.isUnitExpression=e.isSmallVulgarFraction=e.allCellsSimple=e.allIndices_=e.isInteger_=e.simpleCell_=e.simpleNode=e.hasPreference=e.isSimpleFraction_=e.isSimpleNumber_=e.isNumber_=e.isLetter_=e.isSimple_=e.isSimpleLetters_=e.isSimpleDegree_=e.isSimpleNegative_=e.isSimpleFunction_=e.isSimpleExpression=e.nodeCounter=void 0;const n=r(1838),i=r(5771),o=r(7604),s=r(2894),a=r(2634),l=r(5215),c=r(393),u=r(2177),h=r(1104),p=r(5489);function d(t){return O(t)||g(t)||y(t)||m(t)||f(t)}function f(t){return"appl"===t.type&&("prefix function"===t.childNodes[0].role||"simple function"===t.childNodes[0].role)&&(b(t.childNodes[1])||"fenced"===t.childNodes[1].type&&b(t.childNodes[1].childNodes[0]))}function m(t){return"prefixop"===t.type&&"negative"===t.role&&b(t.childNodes[0])&&"prefixop"!==t.childNodes[0].type&&"appl"!==t.childNodes[0].type&&"punctuated"!==t.childNodes[0].type}function y(t){return"punctuated"===t.type&&"endpunct"===t.role&&2===t.childNodes.length&&"degree"===t.childNodes[1].role&&(v(t.childNodes[0])||M(t.childNodes[0])||"prefixop"===t.childNodes[0].type&&"negative"===t.childNodes[0].role&&(v(t.childNodes[0].childNodes[0])||M(t.childNodes[0].childNodes[0])))}function g(t){return v(t)||"infixop"===t.type&&"implicit"===t.role&&(2===t.childNodes.length&&(v(t.childNodes[0])||O(t.childNodes[0]))&&v(t.childNodes[1])||3===t.childNodes.length&&O(t.childNodes[0])&&v(t.childNodes[1])&&v(t.childNodes[2]))}function b(t){return t.hasAnnotation("clearspeak","simple")}function v(t){return"identifier"===t.type&&("latinletter"===t.role||"greekletter"===t.role||"otherletter"===t.role||"simple function"===t.role)}function M(t){return"number"===t.type&&("integer"===t.role||"float"===t.role)}function O(t){return M(t)||x(t)}function x(t){if(S("Fraction_Over")||S("Fraction_FracOver"))return!1;if("fraction"!==t.type||"vulgar"!==t.role)return!1;if(S("Fraction_Ordinal"))return!0;const e=parseInt(t.childNodes[0].textContent,10),r=parseInt(t.childNodes[1].textContent,10);return e>0&&e<20&&r>0&&r<11}function S(t){return i.default.getInstance().style===t}function E(t){if(!t.hasAttribute("annotation"))return!1;const e=t.getAttribute("annotation");return!!/clearspeak:simple$|clearspeak:simple;/.exec(e)}function C(t){if(E(t))return!0;if("subscript"!==t.tagName)return!1;const e=t.childNodes[0].childNodes,r=e[1];return"identifier"===e[0].tagName&&(_(r)||"infixop"===r.tagName&&r.hasAttribute("role")&&"implicit"===r.getAttribute("role")&&A(r))}function _(t){return"number"===t.tagName&&t.hasAttribute("role")&&"integer"===t.getAttribute("role")}function A(t){return o.evalXPath("children/*",t).every((t=>_(t)||"identifier"===t.tagName))}function N(t){return"text"===t.type||"punctuated"===t.type&&"text"===t.role&&M(t.childNodes[0])&&w(t.childNodes.slice(1))||"identifier"===t.type&&"unit"===t.role||"infixop"===t.type&&("implicit"===t.role||"unit"===t.role)}function w(t){for(let e=0;e<t.length-1;e++)if("text"!==t[e].type||""!==t[e].textContent)return!1;return"text"===t[t.length-1].type}function T(t,e){if(!e||!t)return t;const r=t.match(/^(open|close) /);return r?r[0]+e+" "+t.substring(r[0].length):e+" "+t}function L(t){return!!t&&("number"===t.tagName||"identifier"===t.tagName||"function"===t.tagName||"appl"===t.tagName||"fraction"===t.tagName)}function P(t){return t&&("fenced"===t.tagName||t.hasAttribute("role")&&"leftright"===t.getAttribute("role")||k(t))}function k(t){return!!t&&("matrix"===t.tagName||"vector"===t.tagName)}e.nodeCounter=function(t,e){const r=e.split("-"),n=c.nodeCounter(t,r[0]||""),i=r[1]||"",o=r[2]||"";let s=!0;return function(){const t=n();return s?(s=!1,o+t+i):t+i}},e.isSimpleExpression=d,e.isSimpleFunction_=f,e.isSimpleNegative_=m,e.isSimpleDegree_=y,e.isSimpleLetters_=g,e.isSimple_=b,e.isLetter_=v,e.isNumber_=M,e.isSimpleNumber_=O,e.isSimpleFraction_=x,e.hasPreference=S,(0,u.register)(new h.SemanticAnnotator("clearspeak","simple",(function(t){return d(t)?"simple":""}))),e.simpleNode=E,e.simpleCell_=C,e.isInteger_=_,e.allIndices_=A,e.allCellsSimple=function(t){const e="matrix"===t.tagName?"children/row/children/cell/children/*":"children/line/children/*";return o.evalXPath(e,t).every(C)?[t]:[]},e.isSmallVulgarFraction=function(t){return(0,a.vulgarFractionSmall)(t,20,11)?[t]:[]},e.isUnitExpression=N,e.allTextLastContent_=w,(0,u.register)(new h.SemanticAnnotator("clearspeak","unit",(function(t){return N(t)?"unit":""}))),e.ordinalExponent=function(t){const e=parseInt(t.textContent,10);return isNaN(e)?t.textContent:e>10?s.LOCALE.NUMBERS.numericOrdinal(e):s.LOCALE.NUMBERS.wordOrdinal(e)},e.NESTING_DEPTH=null,e.nestingDepth=function(t){let r=0;const n=t.textContent,i="open"===t.getAttribute("role")?0:1;let o=t.parentNode;for(;o;)"fenced"===o.tagName&&o.childNodes[0].childNodes[i].textContent===n&&r++,o=o.parentNode;return e.NESTING_DEPTH=r>1?s.LOCALE.NUMBERS.wordOrdinal(r):"",e.NESTING_DEPTH},e.matchingFences=function(t){const e=t.previousSibling;let r,n;return e?(r=e,n=t):(r=t,n=t.nextSibling),n&&(0,p.isMatchingFence)(r.textContent,n.textContent)?[t]:[]},e.insertNesting=T,l.Grammar.getInstance().setCorrection("insertNesting",T),e.fencedArguments=function(t){const e=n.toArray(t.parentNode.childNodes),r=o.evalXPath("../../children/*",t),i=e.indexOf(t);return P(r[i])||P(r[i+1])?[t]:[]},e.simpleArguments=function(t){const e=n.toArray(t.parentNode.childNodes),r=o.evalXPath("../../children/*",t),i=e.indexOf(t);return L(r[i])&&r[i+1]&&(L(r[i+1])||"root"===r[i+1].tagName||"sqrt"===r[i+1].tagName||"superscript"===r[i+1].tagName&&r[i+1].childNodes[0].childNodes[0]&&("number"===r[i+1].childNodes[0].childNodes[0].tagName||"identifier"===r[i+1].childNodes[0].childNodes[0].tagName)&&("2"===r[i+1].childNodes[0].childNodes[1].textContent||"3"===r[i+1].childNodes[0].childNodes[1].textContent))?[t]:[]},e.simpleFactor_=L,e.fencedFactor_=P,e.layoutFactor_=k,e.wordOrdinal=function(t){return s.LOCALE.NUMBERS.wordOrdinal(parseInt(t.textContent,10))}},9263:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}l((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.loadAjax=e.loadFileSync=e.loadFile=e.parseMaps=e.retrieveFiles=e.standardLoader=e.loadLocale=e.store=void 0;const i=r(2918),o=r(5771),s=r(292),a=r(1764),l=r(5149),c=r(9818),u=r(9089),h=r(8020),p=r(4439),d=r(6634);e.store=u;const f={functions:u.addFunctionRules,symbols:u.addSymbolRules,units:u.addUnitRules,si:u.setSiPrefixes};let m=!1;function y(t=o.default.getInstance().locale){o.EnginePromise.loaded[t]||(o.EnginePromise.loaded[t]=[!1,!1],function(t){if(o.default.getInstance().isIE&&o.default.getInstance().mode===s.Mode.HTTP)return void O(t);b(t)}(t))}function g(){switch(o.default.getInstance().mode){case s.Mode.ASYNC:return x;case s.Mode.HTTP:return E;case s.Mode.SYNC:default:return S}}function b(t){const e=o.default.getInstance().customLoader?o.default.getInstance().customLoader:g(),r=new Promise((r=>{e(t).then((e=>{v(e),o.EnginePromise.loaded[t]=[!0,!0],r(t)}),(e=>{o.EnginePromise.loaded[t]=[!0,!1],console.error(`Unable to load locale: ${t}`),o.default.getInstance().locale=o.default.getInstance().defaultLocale,r(t)}))}));o.EnginePromise.promises[t]=r}function v(t){M(JSON.parse(t))}function M(t,e){let r=!0;for(let n,i=0;n=Object.keys(t)[i];i++){const i=n.split("/");e&&e!==i[0]||("rules"===i[1]?h.SpeechRuleEngine.getInstance().addStore(t[n]):"messages"===i[1]?(0,p.completeLocale)(t[n]):(r&&(d.generate(i[0]),r=!1),t[n].forEach(f[i[1]])))}}function O(t,e){let r=e||1;i.mapsForIE?M(i.mapsForIE,t):r<=5&&setTimeout((()=>O(t,r++)).bind(this),300)}function x(t){const e=a.localePath(t);return new Promise(((t,r)=>{l.default.fs.readFile(e,"utf8",((e,n)=>{if(e)return r(e);t(n)}))}))}function S(t){const e=a.localePath(t);return new Promise(((t,r)=>{let n="{}";try{n=l.default.fs.readFileSync(e,"utf8")}catch(t){return r(t)}t(n)}))}function E(t){const e=a.localePath(t),r=new XMLHttpRequest;return new Promise(((t,n)=>{r.onreadystatechange=function(){if(4===r.readyState){const e=r.status;0===e||e>=200&&e<400?t(r.responseText):n(e)}},r.open("GET",e,!0),r.send()}))}e.loadLocale=function(t=o.default.getInstance().locale){return n(this,void 0,void 0,(function*(){return m||(y(c.DynamicCstr.BASE_LOCALE),m=!0),o.EnginePromise.promises[c.DynamicCstr.BASE_LOCALE].then((()=>n(this,void 0,void 0,(function*(){const e=o.default.getInstance().defaultLocale;return e?(y(e),o.EnginePromise.promises[e].then((()=>n(this,void 0,void 0,(function*(){return y(t),o.EnginePromise.promises[t]}))))):(y(t),o.EnginePromise.promises[t])}))))}))},e.standardLoader=g,e.retrieveFiles=b,e.parseMaps=v,e.loadFile=x,e.loadFileSync=S,e.loadAjax=E},4100:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.leftSubscriptBrief=e.leftSuperscriptBrief=e.leftSubscriptVerbose=e.leftSuperscriptVerbose=e.baselineBrief=e.baselineVerbose=void 0;const n=r(9635);e.baselineVerbose=function(t){return n.baselineVerbose(t).replace(/-$/,"")},e.baselineBrief=function(t){return n.baselineBrief(t).replace(/-$/,"")},e.leftSuperscriptVerbose=function(t){return n.superscriptVerbose(t).replace(/^exposant/,"exposant gauche")},e.leftSubscriptVerbose=function(t){return n.subscriptVerbose(t).replace(/^indice/,"indice gauche")},e.leftSuperscriptBrief=function(t){return n.superscriptBrief(t).replace(/^sup/,"sup gauche")},e.leftSubscriptBrief=function(t){return n.subscriptBrief(t).replace(/^sub/,"sub gauche")}},8800:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MathspeakRules=void 0;const n=r(9818),i=r(393),o=r(4100),s=r(9635),a=r(422),l=r(429),c=r(2329);e.MathspeakRules=function(){l.addStore(n.DynamicCstr.BASE_LOCALE+".speech.mathspeak","",{CQFspaceoutNumber:s.spaceoutNumber,CQFspaceoutIdentifier:s.spaceoutIdentifier,CSFspaceoutText:s.spaceoutText,CSFopenFracVerbose:s.openingFractionVerbose,CSFcloseFracVerbose:s.closingFractionVerbose,CSFoverFracVerbose:s.overFractionVerbose,CSFopenFracBrief:s.openingFractionBrief,CSFcloseFracBrief:s.closingFractionBrief,CSFopenFracSbrief:s.openingFractionSbrief,CSFcloseFracSbrief:s.closingFractionSbrief,CSFoverFracSbrief:s.overFractionSbrief,CSFvulgarFraction:a.vulgarFraction,CQFvulgarFractionSmall:s.isSmallVulgarFraction,CSFopenRadicalVerbose:s.openingRadicalVerbose,CSFcloseRadicalVerbose:s.closingRadicalVerbose,CSFindexRadicalVerbose:s.indexRadicalVerbose,CSFopenRadicalBrief:s.openingRadicalBrief,CSFcloseRadicalBrief:s.closingRadicalBrief,CSFindexRadicalBrief:s.indexRadicalBrief,CSFopenRadicalSbrief:s.openingRadicalSbrief,CSFindexRadicalSbrief:s.indexRadicalSbrief,CQFisSmallRoot:s.smallRoot,CSFsuperscriptVerbose:s.superscriptVerbose,CSFsuperscriptBrief:s.superscriptBrief,CSFsubscriptVerbose:s.subscriptVerbose,CSFsubscriptBrief:s.subscriptBrief,CSFbaselineVerbose:s.baselineVerbose,CSFbaselineBrief:s.baselineBrief,CSFleftsuperscriptVerbose:s.superscriptVerbose,CSFleftsubscriptVerbose:s.subscriptVerbose,CSFrightsuperscriptVerbose:s.superscriptVerbose,CSFrightsubscriptVerbose:s.subscriptVerbose,CSFleftsuperscriptBrief:s.superscriptBrief,CSFleftsubscriptBrief:s.subscriptBrief,CSFrightsuperscriptBrief:s.superscriptBrief,CSFrightsubscriptBrief:s.subscriptBrief,CSFunderscript:s.nestedUnderscript,CSFoverscript:s.nestedOverscript,CSFendscripts:s.endscripts,CTFordinalCounter:a.ordinalCounter,CTFwordCounter:a.wordCounter,CTFcontentIterator:i.contentIterator,CQFdetIsSimple:s.determinantIsSimple,CSFRemoveParens:s.removeParens,CQFresetNesting:s.resetNestingDepth,CGFbaselineConstraint:s.generateBaselineConstraint,CGFtensorRules:s.generateTensorRules}),l.addStore("es.speech.mathspeak",n.DynamicCstr.BASE_LOCALE+".speech.mathspeak",{CTFunitMultipliers:c.unitMultipliers,CQFoneLeft:c.oneLeft}),l.addStore("fr.speech.mathspeak",n.DynamicCstr.BASE_LOCALE+".speech.mathspeak",{CSFbaselineVerbose:o.baselineVerbose,CSFbaselineBrief:o.baselineBrief,CSFleftsuperscriptVerbose:o.leftSuperscriptVerbose,CSFleftsubscriptVerbose:o.leftSubscriptVerbose,CSFleftsuperscriptBrief:o.leftSuperscriptBrief,CSFleftsubscriptBrief:o.leftSubscriptBrief})}},9635:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.smallRoot=e.generateTensorRules=e.removeParens=e.generateBaselineConstraint=e.determinantIsSimple=e.nestedOverscript=e.endscripts=e.overscoreNestingDepth=e.nestedUnderscript=e.underscoreNestingDepth=e.indexRadicalSbrief=e.openingRadicalSbrief=e.indexRadicalBrief=e.closingRadicalBrief=e.openingRadicalBrief=e.indexRadicalVerbose=e.closingRadicalVerbose=e.openingRadicalVerbose=e.getRootIndex=e.nestedRadical=e.radicalNestingDepth=e.baselineBrief=e.baselineVerbose=e.superscriptBrief=e.superscriptVerbose=e.subscriptBrief=e.subscriptVerbose=e.nestedSubSuper=e.isSmallVulgarFraction=e.overFractionSbrief=e.closingFractionSbrief=e.openingFractionSbrief=e.closingFractionBrief=e.openingFractionBrief=e.overFractionVerbose=e.closingFractionVerbose=e.openingFractionVerbose=e.nestedFraction=e.fractionNestingDepth=e.computeNestingDepth_=e.containsAttr=e.getNestingDepth=e.resetNestingDepth=e.nestingBarriers=e.spaceoutIdentifier=e.spaceoutNumber=e.spaceoutNodes=e.spaceoutText=void 0;const n=r(8154),i=r(1838),o=r(7604),s=r(2894),a=r(5427);let l={};function c(t,e){const r=Array.from(t.textContent),n=[],i=a.default.getInstance(),o=t.ownerDocument;for(let t,s=0;t=r[s];s++){const r=i.getNodeFactory().makeLeafNode(t,"unknown"),s=i.identifierNode(r,"unknown","");e(s),n.push(s.xml(o))}return n}function u(t,r,o,s,a,c){s=s||e.nestingBarriers,a=a||{},c=c||function(t){return!1};const u=i.serializeXml(r);if(l[t]||(l[t]={}),l[t][u])return l[t][u];if(c(r)||o.indexOf(r.tagName)<0)return 0;const h=p(r,o,n.setdifference(s,o),a,c,0);return l[t][u]=h,h}function h(t,e){if(!t.attributes)return!1;const r=i.toArray(t.attributes);for(let t,n=0;t=r[n];n++)if(e[t.nodeName]===t.nodeValue)return!0;return!1}function p(t,e,r,n,o,s){if(o(t)||r.indexOf(t.tagName)>-1||h(t,n))return s;if(e.indexOf(t.tagName)>-1&&s++,!t.childNodes||0===t.childNodes.length)return s;const a=i.toArray(t.childNodes);return Math.max.apply(null,a.map((function(t){return p(t,e,r,n,o,s)})))}function d(t){return u("fraction",t,["fraction"],e.nestingBarriers,{},s.LOCALE.FUNCTIONS.fracNestDepth)}function f(t,e,r){const n=d(t),i=Array(n).fill(e);return r&&i.push(r),i.join(s.LOCALE.MESSAGES.regexp.JOINER_FRAC)}function m(t,e,r){for(;t.parentNode;){const n=t.parentNode,i=n.parentNode;if(!i)break;const o=t.getAttribute&&t.getAttribute("role");("subscript"===i.tagName&&t===n.childNodes[1]||"tensor"===i.tagName&&o&&("leftsub"===o||"rightsub"===o))&&(e=r.sub+s.LOCALE.MESSAGES.regexp.JOINER_SUBSUPER+e),("superscript"===i.tagName&&t===n.childNodes[1]||"tensor"===i.tagName&&o&&("leftsuper"===o||"rightsuper"===o))&&(e=r.sup+s.LOCALE.MESSAGES.regexp.JOINER_SUBSUPER+e),t=i}return e.trim()}function y(t){return u("radical",t,["sqrt","root"],e.nestingBarriers,{})}function g(t,e,r){const n=y(t),i=b(t);return r=i?s.LOCALE.FUNCTIONS.combineRootIndex(r,i):r,1===n?r:s.LOCALE.FUNCTIONS.combineNestedRadical(e,s.LOCALE.FUNCTIONS.radicalNestDepth(n-1),r)}function b(t){const e="sqrt"===t.tagName?"2":o.evalXPath("children/*[1]",t)[0].textContent.trim();return s.LOCALE.MESSAGES.MSroots[e]||""}function v(t){return u("underscore",t,["underscore"],e.nestingBarriers,{},(function(t){return t.tagName&&"underscore"===t.tagName&&"underaccent"===t.childNodes[0].childNodes[1].getAttribute("role")}))}function M(t){return u("overscore",t,["overscore"],e.nestingBarriers,{},(function(t){return t.tagName&&"overscore"===t.tagName&&"overaccent"===t.childNodes[0].childNodes[1].getAttribute("role")}))}e.spaceoutText=function(t){return Array.from(t.textContent).join(" ")},e.spaceoutNodes=c,e.spaceoutNumber=function(t){return c(t,(function(t){t.textContent.match(/\W/)||(t.type="number")}))},e.spaceoutIdentifier=function(t){return c(t,(function(t){t.font="unknown",t.type="identifier"}))},e.nestingBarriers=["cases","cell","integral","line","matrix","multiline","overscore","root","row","sqrt","subscript","superscript","table","underscore","vector"],e.resetNestingDepth=function(t){return l={},[t]},e.getNestingDepth=u,e.containsAttr=h,e.computeNestingDepth_=p,e.fractionNestingDepth=d,e.nestedFraction=f,e.openingFractionVerbose=function(t){return f(t,s.LOCALE.MESSAGES.MS.START,s.LOCALE.MESSAGES.MS.FRAC_V)},e.closingFractionVerbose=function(t){return f(t,s.LOCALE.MESSAGES.MS.END,s.LOCALE.MESSAGES.MS.FRAC_V)},e.overFractionVerbose=function(t){return f(t,s.LOCALE.MESSAGES.MS.FRAC_OVER)},e.openingFractionBrief=function(t){return f(t,s.LOCALE.MESSAGES.MS.START,s.LOCALE.MESSAGES.MS.FRAC_B)},e.closingFractionBrief=function(t){return f(t,s.LOCALE.MESSAGES.MS.END,s.LOCALE.MESSAGES.MS.FRAC_B)},e.openingFractionSbrief=function(t){const e=d(t);return 1===e?s.LOCALE.MESSAGES.MS.FRAC_S:s.LOCALE.FUNCTIONS.combineNestedFraction(s.LOCALE.MESSAGES.MS.NEST_FRAC,s.LOCALE.FUNCTIONS.radicalNestDepth(e-1),s.LOCALE.MESSAGES.MS.FRAC_S)},e.closingFractionSbrief=function(t){const e=d(t);return 1===e?s.LOCALE.MESSAGES.MS.ENDFRAC:s.LOCALE.FUNCTIONS.combineNestedFraction(s.LOCALE.MESSAGES.MS.NEST_FRAC,s.LOCALE.FUNCTIONS.radicalNestDepth(e-1),s.LOCALE.MESSAGES.MS.ENDFRAC)},e.overFractionSbrief=function(t){const e=d(t);return 1===e?s.LOCALE.MESSAGES.MS.FRAC_OVER:s.LOCALE.FUNCTIONS.combineNestedFraction(s.LOCALE.MESSAGES.MS.NEST_FRAC,s.LOCALE.FUNCTIONS.radicalNestDepth(e-1),s.LOCALE.MESSAGES.MS.FRAC_OVER)},e.isSmallVulgarFraction=function(t){return s.LOCALE.FUNCTIONS.fracNestDepth(t)?[t]:[]},e.nestedSubSuper=m,e.subscriptVerbose=function(t){return m(t,s.LOCALE.MESSAGES.MS.SUBSCRIPT,{sup:s.LOCALE.MESSAGES.MS.SUPER,sub:s.LOCALE.MESSAGES.MS.SUB})},e.subscriptBrief=function(t){return m(t,s.LOCALE.MESSAGES.MS.SUB,{sup:s.LOCALE.MESSAGES.MS.SUP,sub:s.LOCALE.MESSAGES.MS.SUB})},e.superscriptVerbose=function(t){return m(t,s.LOCALE.MESSAGES.MS.SUPERSCRIPT,{sup:s.LOCALE.MESSAGES.MS.SUPER,sub:s.LOCALE.MESSAGES.MS.SUB})},e.superscriptBrief=function(t){return m(t,s.LOCALE.MESSAGES.MS.SUP,{sup:s.LOCALE.MESSAGES.MS.SUP,sub:s.LOCALE.MESSAGES.MS.SUB})},e.baselineVerbose=function(t){const e=m(t,"",{sup:s.LOCALE.MESSAGES.MS.SUPER,sub:s.LOCALE.MESSAGES.MS.SUB});return e?e.replace(new RegExp(s.LOCALE.MESSAGES.MS.SUB+"$"),s.LOCALE.MESSAGES.MS.SUBSCRIPT).replace(new RegExp(s.LOCALE.MESSAGES.MS.SUPER+"$"),s.LOCALE.MESSAGES.MS.SUPERSCRIPT):s.LOCALE.MESSAGES.MS.BASELINE},e.baselineBrief=function(t){return m(t,"",{sup:s.LOCALE.MESSAGES.MS.SUP,sub:s.LOCALE.MESSAGES.MS.SUB})||s.LOCALE.MESSAGES.MS.BASE},e.radicalNestingDepth=y,e.nestedRadical=g,e.getRootIndex=b,e.openingRadicalVerbose=function(t){return g(t,s.LOCALE.MESSAGES.MS.NESTED,s.LOCALE.MESSAGES.MS.STARTROOT)},e.closingRadicalVerbose=function(t){return g(t,s.LOCALE.MESSAGES.MS.NESTED,s.LOCALE.MESSAGES.MS.ENDROOT)},e.indexRadicalVerbose=function(t){return g(t,s.LOCALE.MESSAGES.MS.NESTED,s.LOCALE.MESSAGES.MS.ROOTINDEX)},e.openingRadicalBrief=function(t){return g(t,s.LOCALE.MESSAGES.MS.NEST_ROOT,s.LOCALE.MESSAGES.MS.STARTROOT)},e.closingRadicalBrief=function(t){return g(t,s.LOCALE.MESSAGES.MS.NEST_ROOT,s.LOCALE.MESSAGES.MS.ENDROOT)},e.indexRadicalBrief=function(t){return g(t,s.LOCALE.MESSAGES.MS.NEST_ROOT,s.LOCALE.MESSAGES.MS.ROOTINDEX)},e.openingRadicalSbrief=function(t){return g(t,s.LOCALE.MESSAGES.MS.NEST_ROOT,s.LOCALE.MESSAGES.MS.ROOT)},e.indexRadicalSbrief=function(t){return g(t,s.LOCALE.MESSAGES.MS.NEST_ROOT,s.LOCALE.MESSAGES.MS.INDEX)},e.underscoreNestingDepth=v,e.nestedUnderscript=function(t){const e=v(t);return Array(e).join(s.LOCALE.MESSAGES.MS.UNDER)+s.LOCALE.MESSAGES.MS.UNDERSCRIPT},e.overscoreNestingDepth=M,e.endscripts=function(t){return s.LOCALE.MESSAGES.MS.ENDSCRIPTS},e.nestedOverscript=function(t){const e=M(t);return Array(e).join(s.LOCALE.MESSAGES.MS.OVER)+s.LOCALE.MESSAGES.MS.OVERSCRIPT},e.determinantIsSimple=function(t){if("matrix"!==t.tagName||"determinant"!==t.getAttribute("role"))return[];const e=o.evalXPath("children/row/children/cell/children/*",t);for(let t,r=0;t=e[r];r++)if("number"!==t.tagName){if("identifier"===t.tagName){const e=t.getAttribute("role");if("latinletter"===e||"greekletter"===e||"otherletter"===e)continue}return[]}return[t]},e.generateBaselineConstraint=function(){const t=t=>t.map((t=>"ancestor::"+t)),e=t=>"not("+t+")",r=e(t(["subscript","superscript","tensor"]).join(" or ")),n=t(["relseq","multrel"]),i=t(["fraction","punctuation","fenced","sqrt","root"]);let o=[];for(let t,e=0;t=i[e];e++)o=o.concat(n.map((function(e){return t+"/"+e})));return[["ancestor::*/following-sibling::*",r,e(o.join(" | "))].join(" and ")]},e.removeParens=function(t){if(!t.childNodes.length||!t.childNodes[0].childNodes.length||!t.childNodes[0].childNodes[0].childNodes.length)return"";const e=t.childNodes[0].childNodes[0].childNodes[0].textContent;return e.match(/^\(.+\)$/)?e.slice(1,-1):e};const O=new Map([[3,"CSFleftsuperscript"],[4,"CSFleftsubscript"],[2,"CSFbaseline"],[1,"CSFrightsubscript"],[0,"CSFrightsuperscript"]]),x=new Map([[4,2],[3,3],[2,1],[1,4],[0,5]]);function S(t){const e=[];let r="",n="",i=parseInt(t,2);for(let t=0;t<5;t++){const o="children/*["+x.get(t)+"]";if(1&i){const e=O.get(t%5);r="[t] "+e+"Verbose; [n] "+o+";"+r,n="[t] "+e+"Brief; [n] "+o+";"+n}else e.unshift("name("+o+')="empty"');i>>=1}return[e,r,n]}e.generateTensorRules=function(t,e=!0){const r=["11111","11110","11101","11100","10111","10110","10101","10100","01111","01110","01101","01100"];for(let n,i=0;n=r[i];i++){let r="tensor"+n,[i,o,s]=S(n);t.defineRule(r,"default",o,"self::tensor",...i),e&&(t.defineRule(r,"brief",s,"self::tensor",...i),t.defineRule(r,"sbrief",s,"self::tensor",...i));const a=O.get(2);o+="; [t]"+a+"Verbose",s+="; [t]"+a+"Brief",r+="-baseline";const l="((.//*[not(*)])[last()]/@id)!=(((.//ancestor::fraction|ancestor::root|ancestor::sqrt|ancestor::cell|ancestor::line|ancestor::stree)[1]//*[not(*)])[last()]/@id)";t.defineRule(r,"default",o,"self::tensor",l,...i),e&&(t.defineRule(r,"brief",s,"self::tensor",l,...i),t.defineRule(r,"sbrief",s,"self::tensor",l,...i))}},e.smallRoot=function(t){let e=Object.keys(s.LOCALE.MESSAGES.MSroots).length;if(!e)return[];if(e++,!t.childNodes||0===t.childNodes.length||!t.childNodes[0].childNodes)return[];const r=t.childNodes[0].childNodes[0].textContent;if(!/^\d+$/.test(r))return[];const n=parseInt(r,10);return n>1&&n<=e?[t]:[]}},7792:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.implicitIterator=e.relationIterator=e.propagateNumber=e.checkParent_=e.NUMBER_INHIBITORS_=e.NUMBER_PROPAGATORS_=e.enlargeFence=e.indexRadical=e.closingRadical=e.openingRadical=e.radicalNestingDepth=e.nestedRadical=e.overBevelledFraction=e.overFraction=e.closingFraction=e.openingFraction=void 0;const n=r(8860),i=r(1838),o=r(7604),s=r(5215),a=r(5771),l=r(2177),c=r(1104),u=r(2894),h=r(9635);function p(t,e){const r=d(t);return 1===r?e:new Array(r).join(u.LOCALE.MESSAGES.MS.NESTED)+e}function d(t,e){const r=e||0;return t.parentNode?d(t.parentNode,"root"===t.tagName||"sqrt"===t.tagName?r+1:r):r}function f(t){const e="\u2820";if(1===t.length)return e+t;const r=t.split("");return r.every((function(t){return"\u2833"===t}))?e+r.join(e):t.slice(0,-1)+e+t.slice(-1)}function m(t,r){const n=t.parent;if(!n)return!1;const i=n.type;return-1!==e.NUMBER_PROPAGATORS_.indexOf(i)||"prefixop"===i&&"negative"===n.role&&!r.script||"prefixop"===i&&"geometry"===n.role||!("punctuated"!==i||r.enclosed&&"text"!==n.role)}function y(t,r){return t.childNodes.length?(-1!==e.NUMBER_INHIBITORS_.indexOf(t.type)&&(r.script=!0),"fenced"===t.type?(r.number=!1,r.enclosed=!0,["",r]):(m(t,r)&&(r.number=!0,r.enclosed=!1),["",r])):(m(t,r)&&(r.number=!0,r.script=!1,r.enclosed=!1),[r.number?"number":"",{number:!1,enclosed:r.enclosed,script:r.script}])}e.openingFraction=function(t){const e=h.fractionNestingDepth(t);return new Array(e).join(u.LOCALE.MESSAGES.MS.FRACTION_REPEAT)+u.LOCALE.MESSAGES.MS.FRACTION_START},e.closingFraction=function(t){const e=h.fractionNestingDepth(t);return new Array(e).join(u.LOCALE.MESSAGES.MS.FRACTION_REPEAT)+u.LOCALE.MESSAGES.MS.FRACTION_END},e.overFraction=function(t){const e=h.fractionNestingDepth(t);return new Array(e).join(u.LOCALE.MESSAGES.MS.FRACTION_REPEAT)+u.LOCALE.MESSAGES.MS.FRACTION_OVER},e.overBevelledFraction=function(t){const e=h.fractionNestingDepth(t);return new Array(e).join(u.LOCALE.MESSAGES.MS.FRACTION_REPEAT)+"\u2838"+u.LOCALE.MESSAGES.MS.FRACTION_OVER},e.nestedRadical=p,e.radicalNestingDepth=d,e.openingRadical=function(t){return p(t,u.LOCALE.MESSAGES.MS.STARTROOT)},e.closingRadical=function(t){return p(t,u.LOCALE.MESSAGES.MS.ENDROOT)},e.indexRadical=function(t){return p(t,u.LOCALE.MESSAGES.MS.ROOTINDEX)},e.enlargeFence=f,s.Grammar.getInstance().setCorrection("enlargeFence",f),e.NUMBER_PROPAGATORS_=["multirel","relseq","appl","row","line"],e.NUMBER_INHIBITORS_=["subscript","superscript","overscore","underscore"],e.checkParent_=m,e.propagateNumber=y,(0,l.register)(new c.SemanticVisitor("nemeth","number",y,{number:!0})),e.relationIterator=function(t,e){const r=t.slice(0);let s,l=!0;return s=t.length>0?o.evalXPath("../../content/*",t[0]):[],function(){const t=s.shift(),o=r.shift(),c=r[0],p=e?[n.AuditoryDescription.create({text:e},{translate:!0})]:[];if(!t)return p;const d=o?h.nestedSubSuper(o,"",{sup:u.LOCALE.MESSAGES.MS.SUPER,sub:u.LOCALE.MESSAGES.MS.SUB}):"",f=o&&"EMPTY"!==i.tagName(o)||l&&t.parentNode.parentNode&&t.parentNode.parentNode.previousSibling?[n.AuditoryDescription.create({text:"\u2800"+d},{})]:[],m=c&&"EMPTY"!==i.tagName(c)||!s.length&&t.parentNode.parentNode&&t.parentNode.parentNode.nextSibling?[n.AuditoryDescription.create({text:"\u2800"},{})]:[],y=a.default.evaluateNode(t);return l=!1,p.concat(f,y,m)}},e.implicitIterator=function(t,e){const r=t.slice(0);let s;return s=t.length>0?o.evalXPath("../../content/*",t[0]):[],function(){const t=r.shift(),o=r[0],a=s.shift(),l=e?[n.AuditoryDescription.create({text:e},{translate:!0})]:[];if(!a)return l;const c=t&&"NUMBER"===i.tagName(t),u=o&&"NUMBER"===i.tagName(o);return l.concat(c&&u&&"space"===a.getAttribute("role")?[n.AuditoryDescription.create({text:"\u2800"},{})]:[])}}},422:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ordinalPosition=e.vulgarFraction=e.wordCounter=e.ordinalCounter=void 0;const n=r(7090),i=r(1838),o=r(2894),s=r(2634);e.ordinalCounter=function(t,e){let r=0;return function(){return o.LOCALE.NUMBERS.numericOrdinal(++r)+" "+e}},e.wordCounter=function(t,e){let r=0;return function(){return o.LOCALE.NUMBERS.numberToOrdinal(++r,!1)+" "+e}},e.vulgarFraction=function(t){const e=(0,s.convertVulgarFraction)(t,o.LOCALE.MESSAGES.MS.FRAC_OVER);return e.convertible&&e.enumerator&&e.denominator?[new n.Span(o.LOCALE.NUMBERS.numberToWords(e.enumerator),{extid:t.childNodes[0].childNodes[0].getAttribute("extid"),separator:""}),new n.Span(o.LOCALE.NUMBERS.vulgarSep,{separator:""}),new n.Span(o.LOCALE.NUMBERS.numberToOrdinal(e.denominator,1!==e.enumerator),{extid:t.childNodes[0].childNodes[1].getAttribute("extid")})]:[new n.Span(e.content||"",{extid:t.getAttribute("extid")})]},e.ordinalPosition=function(t){const e=i.toArray(t.parentNode.childNodes);return o.LOCALE.NUMBERS.numericOrdinal(e.indexOf(t)+1).toString()}},7712:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BrailleRules=e.OtherRules=e.PrefixRules=void 0;const n=r(9818),i=r(393),o=r(9635),s=r(7792),a=r(422),l=r(429);e.PrefixRules=function(){l.addStore("en.prefix.default","",{CSFordinalPosition:a.ordinalPosition})},e.OtherRules=function(){l.addStore("en.speech.chromevox","",{CTFnodeCounter:i.nodeCounter,CTFcontentIterator:i.contentIterator}),l.addStore("en.speech.emacspeak","en.speech.chromevox",{CQFvulgarFractionSmall:o.isSmallVulgarFraction,CSFvulgarFraction:a.vulgarFraction})},e.BrailleRules=function(){l.addStore("nemeth.braille.default",n.DynamicCstr.BASE_LOCALE+".speech.mathspeak",{CSFopenFraction:s.openingFraction,CSFcloseFraction:s.closingFraction,CSFoverFraction:s.overFraction,CSFoverBevFraction:s.overBevelledFraction,CSFopenRadical:s.openingRadical,CSFcloseRadical:s.closingRadical,CSFindexRadical:s.indexRadical,CSFsubscript:o.subscriptVerbose,CSFsuperscript:o.superscriptVerbose,CSFbaseline:o.baselineVerbose,CGFtensorRules:t=>o.generateTensorRules(t,!1),CTFrelationIterator:s.relationIterator,CTFimplicitIterator:s.implicitIterator})}},6064:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.init=e.INIT_=void 0;const n=r(1966),i=r(8800),o=r(7712);e.INIT_=!1,e.init=function(){e.INIT_||((0,i.MathspeakRules)(),(0,n.ClearspeakRules)(),(0,o.PrefixRules)(),(0,o.OtherRules)(),(0,o.BrailleRules)(),e.INIT_=!0)}},429:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getStore=e.addStore=e.funcStore=void 0;const n=r(9818);e.funcStore=new Map,e.addStore=function(t,r,n){const i={};if(r){const t=e.funcStore.get(r)||{};Object.assign(i,t)}e.funcStore.set(t,Object.assign(i,n))},e.getStore=function(t,r,i){return e.funcStore.get([t,r,i].join("."))||e.funcStore.get([n.DynamicCstr.DEFAULT_VALUES[n.Axis.LOCALE],r,i].join("."))||e.funcStore.get([n.DynamicCstr.BASE_LOCALE,r,i].join("."))||{}}},2329:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.oneLeft=e.leftMostUnit=e.rightMostUnit=e.unitMultipliers=void 0;const n=r(8860),i=r(7604),o=r(2894);e.unitMultipliers=function(t,e){const r=t;let i=0;return function(){const t=n.AuditoryDescription.create({text:a(r[i])&&l(r[i+1])?o.LOCALE.MESSAGES.unitTimes:""},{});return i++,[t]}};const s=["superscript","subscript","overscore","underscore"];function a(t){for(;t;){if("unit"===t.getAttribute("role"))return!0;const e=t.tagName,r=i.evalXPath("children/*",t);t=-1!==s.indexOf(e)?r[0]:r[r.length-1]}return!1}function l(t){for(;t;){if("unit"===t.getAttribute("role"))return!0;t=i.evalXPath("children/*",t)[0]}return!1}e.rightMostUnit=a,e.leftMostUnit=l,e.oneLeft=function(t){for(;t;){if("number"===t.tagName&&"1"===t.textContent)return[t];if("infixop"!==t.tagName||"multiplication"!==t.getAttribute("role")&&"implicit"!==t.getAttribute("role"))return[];t=i.evalXPath("children/*",t)[0]}return[]}},3429:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractWalker=void 0;const n=r(8860),i=r(2273),o=r(1838),s=r(292),a=r(4591),l=r(7169),c=r(813),u=r(2894),h=r(5215),p=r(1915),d=r(775),f=r(1558),m=r(7632),y=r(6745),g=r(9899),b=r(759),v=r(3580),M=r(7604);class O{constructor(t,e,r,n){this.node=t,this.generator=e,this.highlighter=r,this.modifier=!1,this.keyMapping=new Map([[l.KeyCode.UP,this.up.bind(this)],[l.KeyCode.DOWN,this.down.bind(this)],[l.KeyCode.RIGHT,this.right.bind(this)],[l.KeyCode.LEFT,this.left.bind(this)],[l.KeyCode.TAB,this.repeat.bind(this)],[l.KeyCode.DASH,this.expand.bind(this)],[l.KeyCode.SPACE,this.depth.bind(this)],[l.KeyCode.HOME,this.home.bind(this)],[l.KeyCode.X,this.summary.bind(this)],[l.KeyCode.Z,this.detail.bind(this)],[l.KeyCode.V,this.virtualize.bind(this)],[l.KeyCode.P,this.previous.bind(this)],[l.KeyCode.U,this.undo.bind(this)],[l.KeyCode.LESS,this.previousRules.bind(this)],[l.KeyCode.GREATER,this.nextRules.bind(this)]]),this.cursors=[],this.xml_=null,this.rebuilt_=null,this.focus_=null,this.active_=!1,this.node.id?this.id=this.node.id:this.node.hasAttribute(O.SRE_ID_ATTR)?this.id=this.node.getAttribute(O.SRE_ID_ATTR):(this.node.setAttribute(O.SRE_ID_ATTR,O.ID_COUNTER.toString()),this.id=O.ID_COUNTER++),this.rootNode=v.getSemanticRoot(t),this.rootId=this.rootNode.getAttribute(c.Attribute.ID),this.xmlString_=n,this.moved=b.WalkerMoves.ENTER}getXml(){return this.xml_||(this.xml_=o.parseInput(this.xmlString_)),this.xml_}getRebuilt(){return this.rebuilt_||this.rebuildStree(),this.rebuilt_}isActive(){return this.active_}activate(){this.isActive()||(this.generator.start(),this.toggleActive_())}deactivate(){this.isActive()&&(b.WalkerState.setState(this.id,this.primaryId()),this.generator.end(),this.toggleActive_())}getFocus(t=!1){return this.focus_||(this.focus_=this.singletonFocus(this.rootId)),t&&this.updateFocus(),this.focus_}setFocus(t){this.focus_=t}getDepth(){return this.levels.depth()-1}isSpeech(){return this.generator.modality===c.Attribute.SPEECH}focusDomNodes(){return this.getFocus().getDomNodes()}focusSemanticNodes(){return this.getFocus().getSemanticNodes()}speech(){const t=this.focusDomNodes();if(!t.length)return"";const e=this.specialMove();if(null!==e)return e;switch(this.moved){case b.WalkerMoves.DEPTH:return this.depth_();case b.WalkerMoves.SUMMARY:return this.summary_();case b.WalkerMoves.DETAIL:return this.detail_();default:{const e=[],r=this.focusSemanticNodes();for(let n=0,i=t.length;n<i;n++){const i=t[n],o=r[n];e.push(i?this.generator.getSpeech(i,this.getXml()):f.recomputeMarkup(o))}return this.mergePrefix_(e)}}}move(t){const e=this.keyMapping.get(t);if(!e)return null;const r=e();return!(!r||r===this.getFocus())&&(this.setFocus(r),this.moved===b.WalkerMoves.HOME&&(this.levels=this.initLevels()),!0)}up(){return this.moved=b.WalkerMoves.UP,this.getFocus()}down(){return this.moved=b.WalkerMoves.DOWN,this.getFocus()}left(){return this.moved=b.WalkerMoves.LEFT,this.getFocus()}right(){return this.moved=b.WalkerMoves.RIGHT,this.getFocus()}repeat(){return this.moved=b.WalkerMoves.REPEAT,this.getFocus().clone()}depth(){return this.moved=this.isSpeech()?b.WalkerMoves.DEPTH:b.WalkerMoves.REPEAT,this.getFocus().clone()}home(){this.moved=b.WalkerMoves.HOME;return this.singletonFocus(this.rootId)}getBySemanticId(t){return v.getBySemanticId(this.node,t)}primaryId(){return this.getFocus().getSemanticPrimary().id.toString()}expand(){const t=this.getFocus().getDomPrimary(),e=this.actionable_(t);return e?(this.moved=b.WalkerMoves.EXPAND,e.dispatchEvent(new Event("click")),this.getFocus().clone()):this.getFocus()}expandable(t){return!!this.actionable_(t)&&0===t.childNodes.length}collapsible(t){return!!this.actionable_(t)&&t.childNodes.length>0}restoreState(){if(!this.highlighter)return;const t=b.WalkerState.getState(this.id);if(!t)return;let e=this.getRebuilt().nodeDict[t];const r=[];for(;e;)r.push(e.id),e=e.parent;for(r.pop();r.length>0;){this.down();const t=r.pop(),e=this.findFocusOnLevel(t);if(!e)break;this.setFocus(e)}this.moved=b.WalkerMoves.ENTER}updateFocus(){this.setFocus(y.Focus.factory(this.getFocus().getSemanticPrimary().id.toString(),this.getFocus().getSemanticNodes().map((t=>t.id.toString())),this.getRebuilt(),this.node))}rebuildStree(){this.rebuilt_=new g.RebuildStree(this.getXml()),this.rootId=this.rebuilt_.stree.root.id.toString(),this.generator.setRebuilt(this.rebuilt_),this.skeleton=p.SemanticSkeleton.fromTree(this.rebuilt_.stree),this.skeleton.populate(),this.focus_=this.singletonFocus(this.rootId),this.levels=this.initLevels(),f.connectMactions(this.node,this.getXml(),this.rebuilt_.xml)}previousLevel(){const t=this.getFocus().getDomPrimary();return t?v.getAttribute(t,c.Attribute.PARENT):this.getFocus().getSemanticPrimary().parent.id.toString()}nextLevel(){const t=this.getFocus().getDomPrimary();let e,r;if(t){e=v.splitAttribute(v.getAttribute(t,c.Attribute.CHILDREN)),r=v.splitAttribute(v.getAttribute(t,c.Attribute.CONTENT));const n=v.getAttribute(t,c.Attribute.TYPE),i=v.getAttribute(t,c.Attribute.ROLE);return this.combineContentChildren(n,i,r,e)}const n=t=>t.id.toString(),i=this.getRebuilt().nodeDict[this.primaryId()];return e=i.childNodes.map(n),r=i.contentNodes.map(n),0===e.length?[]:this.combineContentChildren(i.type,i.role,r,e)}singletonFocus(t){this.getRebuilt();const e=this.retrieveVisuals(t);return this.focusFromId(t,e)}retrieveVisuals(t){if(!this.skeleton)return[t];const e=parseInt(t,10),r=this.skeleton.subtreeNodes(e);if(!r.length)return[t];r.unshift(e);const n={},i=[];M.updateEvaluator(this.getXml());for(const t of r)n[t]||(i.push(t.toString()),n[t]=!0,this.subtreeIds(t,n));return i}subtreeIds(t,e){const r=M.evalXPath(`//*[@data-semantic-id="${t}"]`,this.getXml());M.evalXPath("*//@data-semantic-id",r[0]).forEach((t=>e[parseInt(t.textContent,10)]=!0))}focusFromId(t,e){return y.Focus.factory(t,e,this.getRebuilt(),this.node)}summary(){return this.moved=this.isSpeech()?b.WalkerMoves.SUMMARY:b.WalkerMoves.REPEAT,this.getFocus().clone()}detail(){return this.moved=this.isSpeech()?b.WalkerMoves.DETAIL:b.WalkerMoves.REPEAT,this.getFocus().clone()}specialMove(){return null}virtualize(t){return this.cursors.push({focus:this.getFocus(),levels:this.levels,undo:t||!this.cursors.length}),this.levels=this.levels.clone(),this.getFocus().clone()}previous(){const t=this.cursors.pop();return t?(this.levels=t.levels,t.focus):this.getFocus()}undo(){let t;do{t=this.cursors.pop()}while(t&&!t.undo);return t?(this.levels=t.levels,t.focus):this.getFocus()}update(t){this.generator.setOptions(t),(0,a.setup)(t).then((()=>d.generator("Tree").getSpeech(this.node,this.getXml())))}nextRules(){const t=this.generator.getOptions();return"speech"!==t.modality?this.getFocus():(s.DOMAIN_TO_STYLES[t.domain]=t.style,t.domain="mathspeak"===t.domain?"clearspeak":"mathspeak",t.style=s.DOMAIN_TO_STYLES[t.domain],this.update(t),this.moved=b.WalkerMoves.REPEAT,this.getFocus().clone())}nextStyle(t,e){if("mathspeak"===t){const t=["default","brief","sbrief"],r=t.indexOf(e);return-1===r?e:r>=t.length-1?t[0]:t[r+1]}if("clearspeak"===t){const t=m.ClearspeakPreferences.getLocalePreferences().en;if(!t)return"default";const r=m.ClearspeakPreferences.relevantPreferences(this.getFocus().getSemanticPrimary()),n=m.ClearspeakPreferences.findPreference(e,r),i=t[r].map((function(t){return t.split("_")[1]})),o=i.indexOf(n);if(-1===o)return e;const s=o>=i.length-1?i[0]:i[o+1];return m.ClearspeakPreferences.addPreference(e,r,s)}return e}previousRules(){const t=this.generator.getOptions();return"speech"!==t.modality?this.getFocus():(t.style=this.nextStyle(t.domain,t.style),this.update(t),this.moved=b.WalkerMoves.REPEAT,this.getFocus().clone())}refocus(){let t,e=this.getFocus();for(;!e.getNodes().length;){t=this.levels.peek();const r=this.up();if(!r)break;this.setFocus(r),e=this.getFocus(!0)}this.levels.push(t),this.setFocus(e)}toggleActive_(){this.active_=!this.active_}mergePrefix_(t,e=[]){const r=this.isSpeech()?this.prefix_():"";r&&t.unshift(r);const n=this.isSpeech()?this.postfix_():"";return n&&t.push(n),i.finalize(i.merge(e.concat(t)))}prefix_(){const t=this.getFocus().getDomNodes(),e=this.getFocus().getSemanticNodes();return t[0]?v.getAttribute(t[0],c.Attribute.PREFIX):f.retrievePrefix(e[0])}postfix_(){const t=this.getFocus().getDomNodes();return t[0]?v.getAttribute(t[0],c.Attribute.POSTFIX):""}depth_(){const t=h.Grammar.getInstance().getParameter("depth");h.Grammar.getInstance().setParameter("depth",!0);const e=this.getFocus().getDomPrimary(),r=this.expandable(e)?u.LOCALE.MESSAGES.navigate.EXPANDABLE:this.collapsible(e)?u.LOCALE.MESSAGES.navigate.COLLAPSIBLE:"",o=u.LOCALE.MESSAGES.navigate.LEVEL+" "+this.getDepth(),s=this.getFocus().getSemanticNodes(),a=f.retrievePrefix(s[0]),l=[new n.AuditoryDescription({text:o,personality:{}}),new n.AuditoryDescription({text:a,personality:{}}),new n.AuditoryDescription({text:r,personality:{}})];return h.Grammar.getInstance().setParameter("depth",t),i.finalize(i.markup(l))}actionable_(t){const e=null==t?void 0:t.parentNode;return e&&this.highlighter.isMactionNode(e)?e:null}summary_(){const t=this.getFocus().getSemanticPrimary().id.toString(),e=this.getRebuilt().xml.getAttribute("id")===t?this.getRebuilt().xml:o.querySelectorAllByAttrValue(this.getRebuilt().xml,"id",t)[0],r=f.retrieveSummary(e);return this.mergePrefix_([r])}detail_(){const t=this.getFocus().getSemanticPrimary().id.toString(),e=this.getRebuilt().xml.getAttribute("id")===t?this.getRebuilt().xml:o.querySelectorAllByAttrValue(this.getRebuilt().xml,"id",t)[0],r=e.getAttribute("alternative");e.removeAttribute("alternative");const n=f.computeMarkup(e),i=this.mergePrefix_([n]);return e.setAttribute("alternative",r),i}}e.AbstractWalker=O,O.ID_COUNTER=0,O.SRE_ID_ATTR="sre-explorer-id"},8815:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DummyWalker=void 0;const n=r(3429);class i extends n.AbstractWalker{up(){return null}down(){return null}left(){return null}right(){return null}repeat(){return null}depth(){return null}home(){return null}getDepth(){return 0}initLevels(){return null}combineContentChildren(t,e,r,n){return[]}findFocusOnLevel(t){return null}}e.DummyWalker=i},6745:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Focus=void 0;const n=r(3580);class i{constructor(t,e){this.nodes=t,this.primary=e,this.domNodes=[],this.domPrimary_=null,this.allNodes=[]}static factory(t,e,r,o){const s=t=>n.getBySemanticId(o,t),a=r.nodeDict,l=s(t),c=e.map(s),u=e.map((function(t){return a[t]})),h=new i(u,a[t]);return h.domNodes=c,h.domPrimary_=l,h.allNodes=i.generateAllVisibleNodes_(e,c,a,o),h}static generateAllVisibleNodes_(t,e,r,o){const s=t=>n.getBySemanticId(o,t);let a=[];for(let n=0,l=t.length;n<l;n++){if(e[n]){a.push(e[n]);continue}const l=r[t[n]];if(!l)continue;const c=l.childNodes.map((function(t){return t.id.toString()})),u=c.map(s);a=a.concat(i.generateAllVisibleNodes_(c,u,r,o))}return a}getSemanticPrimary(){return this.primary}getSemanticNodes(){return this.nodes}getNodes(){return this.allNodes}getDomNodes(){return this.domNodes}getDomPrimary(){return this.domPrimary_}toString(){return"Primary:"+this.domPrimary_+" Nodes:"+this.domNodes}clone(){const t=new i(this.nodes,this.primary);return t.domNodes=this.domNodes,t.domPrimary_=this.domPrimary_,t.allNodes=this.allNodes,t}}e.Focus=i},5758:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Levels=void 0;class r{constructor(){this.level_=[]}push(t){this.level_.push(t)}pop(){return this.level_.pop()}peek(){return this.level_[this.level_.length-1]||null}indexOf(t){const e=this.peek();return e?e.indexOf(t):null}find(t){const e=this.peek();if(!e)return null;for(let r=0,n=e.length;r<n;r++)if(t(e[r]))return e[r];return null}get(t){const e=this.peek();return!e||t<0||t>=e.length?null:e[t]}depth(){return this.level_.length}clone(){const t=new r;return t.level_=this.level_.slice(0),t}toString(){let t="";for(let e,r=0;e=this.level_[r];r++)t+="\n"+e.map((function(t){return t.toString()}));return t}}e.Levels=r},9899:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RebuildStree=void 0;const n=r(1838),i=r(813),o=r(5489),s=r(207),a=r(5427),l=r(1915),c=r(4356),u=r(1151),h=r(3580);class p{constructor(t){this.mathml=t,this.factory=new s.SemanticNodeFactory,this.nodeDict={},this.mmlRoot=h.getSemanticRoot(t),this.streeRoot=this.assembleTree(this.mmlRoot),this.stree=c.SemanticTree.fromNode(this.streeRoot,this.mathml),this.xml=this.stree.xml(),a.default.getInstance().setNodeFactory(this.factory)}static addAttributes(t,e,r){r&&1===e.childNodes.length&&e.childNodes[0].nodeType!==n.NodeType.TEXT_NODE&&u.addAttributes(t,e.childNodes[0]),u.addAttributes(t,e)}static textContent(t,e,r){if(!r&&e.textContent)return void(t.textContent=e.textContent);const n=h.splitAttribute(h.getAttribute(e,i.Attribute.OPERATOR));n.length>1&&(t.textContent=n[1])}static isPunctuated(t){return!l.SemanticSkeleton.simpleCollapseStructure(t)&&t[1]&&l.SemanticSkeleton.contentCollapseStructure(t[1])}getTree(){return this.stree}assembleTree(t){const e=this.makeNode(t),r=h.splitAttribute(h.getAttribute(t,i.Attribute.CHILDREN)),n=h.splitAttribute(h.getAttribute(t,i.Attribute.CONTENT));if(p.addAttributes(e,t,!(r.length||n.length)),0===n.length&&0===r.length)return p.textContent(e,t),e;if(n.length>0){const t=h.getBySemanticId(this.mathml,n[0]);t&&p.textContent(e,t,!0)}e.contentNodes=n.map((t=>this.setParent(t,e))),e.childNodes=r.map((t=>this.setParent(t,e)));const o=h.getAttribute(t,i.Attribute.COLLAPSED);return o?this.postProcess(e,o):e}makeNode(t){const e=h.getAttribute(t,i.Attribute.TYPE),r=h.getAttribute(t,i.Attribute.ROLE),n=h.getAttribute(t,i.Attribute.FONT),o=h.getAttribute(t,i.Attribute.ANNOTATION)||"",s=h.getAttribute(t,i.Attribute.ID),a=h.getAttribute(t,i.Attribute.EMBELLISHED),l=h.getAttribute(t,i.Attribute.FENCEPOINTER),c=this.createNode(parseInt(s,10));return c.type=e,c.role=r,c.font=n||"unknown",c.parseAnnotation(o),l&&(c.fencePointer=l),a&&(c.embellished=a),c}makePunctuation(t){const e=this.createNode(t);return e.updateContent((0,o.invisibleComma)()),e.role="dummy",e}makePunctuated(t,e,r){const n=this.createNode(e[0]);n.type="punctuated",n.embellished=t.embellished,n.fencePointer=t.fencePointer,n.role=r;const i=e.splice(1,1)[0].slice(1);n.contentNodes=i.map(this.makePunctuation.bind(this)),this.collapsedChildren_(e)}makeEmpty(t,e,r){const n=this.createNode(e);n.type="empty",n.embellished=t.embellished,n.fencePointer=t.fencePointer,n.role=r}makeIndex(t,e,r){if(p.isPunctuated(e))return this.makePunctuated(t,e,r),void(e=e[0]);l.SemanticSkeleton.simpleCollapseStructure(e)&&!this.nodeDict[e.toString()]&&this.makeEmpty(t,e,r)}postProcess(t,e){const r=l.SemanticSkeleton.fromString(e).array;if("subsup"===t.type){const e=this.createNode(r[1][0]);return e.type="subscript",e.role="subsup",t.type="superscript",e.embellished=t.embellished,e.fencePointer=t.fencePointer,this.makeIndex(t,r[1][2],"rightsub"),this.makeIndex(t,r[2],"rightsuper"),this.collapsedChildren_(r),t}if("subscript"===t.type)return this.makeIndex(t,r[2],"rightsub"),this.collapsedChildren_(r),t;if("superscript"===t.type)return this.makeIndex(t,r[2],"rightsuper"),this.collapsedChildren_(r),t;if("tensor"===t.type)return this.makeIndex(t,r[2],"leftsub"),this.makeIndex(t,r[3],"leftsuper"),this.makeIndex(t,r[4],"rightsub"),this.makeIndex(t,r[5],"rightsuper"),this.collapsedChildren_(r),t;if("punctuated"===t.type){if(p.isPunctuated(r)){const e=r.splice(1,1)[0].slice(1);t.contentNodes=e.map(this.makePunctuation.bind(this))}return t}if("underover"===t.type){const e=this.createNode(r[1][0]);return"overaccent"===t.childNodes[1].role?(e.type="overscore",t.type="underscore"):(e.type="underscore",t.type="overscore"),e.role="underover",e.embellished=t.embellished,e.fencePointer=t.fencePointer,this.collapsedChildren_(r),t}return t}createNode(t){const e=this.factory.makeNode(t);return this.nodeDict[t.toString()]=e,e}collapsedChildren_(t){const e=t=>{const r=this.nodeDict[t[0]];r.childNodes=[];for(let n=1,i=t.length;n<i;n++){const i=t[n];r.childNodes.push(l.SemanticSkeleton.simpleCollapseStructure(i)?this.nodeDict[i]:e(i))}return r};e(t)}setParent(t,e){const r=h.getBySemanticId(this.mathml,t),n=this.assembleTree(r);return n.parent=e,n}}e.RebuildStree=p},5161:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticWalker=void 0;const n=r(3429),i=r(5758);class o extends n.AbstractWalker{constructor(t,e,r,n){super(t,e,r,n),this.node=t,this.generator=e,this.highlighter=r,this.levels=null,this.restoreState()}initLevels(){const t=new i.Levels;return t.push([this.getFocus()]),t}up(){super.up();const t=this.previousLevel();if(!t)return null;this.levels.pop();return this.levels.find((function(e){return e.getSemanticNodes().some((function(e){return e.id.toString()===t}))}))}down(){super.down();const t=this.nextLevel();return 0===t.length?null:(this.levels.push(t),t[0])}combineContentChildren(t,e,r,n){switch(t){case"relseq":case"infixop":case"multirel":return this.makePairList(n,r);case"prefixop":return[this.focusFromId(n[0],r.concat(n))];case"postfixop":return[this.focusFromId(n[0],n.concat(r))];case"matrix":case"vector":case"fenced":return[this.focusFromId(n[0],[r[0],n[0],r[1]])];case"cases":return[this.focusFromId(n[0],[r[0],n[0]])];case"punctuated":return"text"===e?n.map(this.singletonFocus.bind(this)):n.length===r.length?r.map(this.singletonFocus.bind(this)):this.combinePunctuations(n,r,[],[]);case"appl":return[this.focusFromId(n[0],[n[0],r[0]]),this.singletonFocus(n[1])];case"root":return[this.singletonFocus(n[1]),this.singletonFocus(n[0])];default:return n.map(this.singletonFocus.bind(this))}}combinePunctuations(t,e,r,n){if(0===t.length)return n;const i=t.shift(),o=e.shift();return i===o?(r.push(o),this.combinePunctuations(t,e,r,n)):(e.unshift(o),r.push(i),t.length===e.length?(n.push(this.focusFromId(i,r.concat(e))),n):(n.push(this.focusFromId(i,r)),this.combinePunctuations(t,e,[],n)))}makePairList(t,e){if(0===t.length)return[];if(1===t.length)return[this.singletonFocus(t[0])];const r=[this.singletonFocus(t.shift())];for(let n=0,i=t.length;n<i;n++)r.push(this.focusFromId(t[n],[e[n],t[n]]));return r}left(){super.left();const t=this.levels.indexOf(this.getFocus());if(null===t)return null;const e=this.levels.get(t-1);return e||null}right(){super.right();const t=this.levels.indexOf(this.getFocus());if(null===t)return null;const e=this.levels.get(t+1);return e||null}findFocusOnLevel(t){return this.levels.find((e=>e.getSemanticPrimary().id===t))}}e.SemanticWalker=o},8166:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SyntaxWalker=void 0;const n=r(8154),i=r(3429),o=r(5758);class s extends i.AbstractWalker{constructor(t,e,r,n){super(t,e,r,n),this.node=t,this.generator=e,this.highlighter=r,this.levels=null,this.restoreState()}initLevels(){const t=new o.Levels;return t.push([this.primaryId()]),t}up(){super.up();const t=this.previousLevel();return t?(this.levels.pop(),this.singletonFocus(t)):null}down(){super.down();const t=this.nextLevel();if(0===t.length)return null;const e=this.singletonFocus(t[0]);return e&&this.levels.push(t),e}combineContentChildren(t,e,r,i){switch(t){case"relseq":case"infixop":case"multirel":return(0,n.interleaveLists)(i,r);case"prefixop":return r.concat(i);case"postfixop":return i.concat(r);case"matrix":case"vector":case"fenced":return i.unshift(r[0]),i.push(r[1]),i;case"cases":return i.unshift(r[0]),i;case"punctuated":return"text"===e?(0,n.interleaveLists)(i,r):i;case"appl":return[i[0],r[0],i[1]];case"root":return[i[1],i[0]];default:return i}}left(){super.left();const t=this.levels.indexOf(this.primaryId());if(null===t)return null;const e=this.levels.get(t-1);return e?this.singletonFocus(e):null}right(){super.right();const t=this.levels.indexOf(this.primaryId());if(null===t)return null;const e=this.levels.get(t+1);return e?this.singletonFocus(e):null}findFocusOnLevel(t){return this.singletonFocus(t.toString())}focusDomNodes(){return[this.getFocus().getDomPrimary()]}focusSemanticNodes(){return[this.getFocus().getSemanticPrimary()]}}e.SyntaxWalker=s},8187:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TableWalker=void 0;const n=r(1838),i=r(7169),o=r(8166),s=r(759);class a extends o.SyntaxWalker{constructor(t,e,r,n){super(t,e,r,n),this.node=t,this.generator=e,this.highlighter=r,this.firstJump=null,this.key_=null,this.row_=0,this.currentTable_=null,this.keyMapping.set(i.KeyCode.ZERO,this.jumpCell.bind(this)),this.keyMapping.set(i.KeyCode.ONE,this.jumpCell.bind(this)),this.keyMapping.set(i.KeyCode.TWO,this.jumpCell.bind(this)),this.keyMapping.set(i.KeyCode.THREE,this.jumpCell.bind(this)),this.keyMapping.set(i.KeyCode.FOUR,this.jumpCell.bind(this)),this.keyMapping.set(i.KeyCode.FIVE,this.jumpCell.bind(this)),this.keyMapping.set(i.KeyCode.SIX,this.jumpCell.bind(this)),this.keyMapping.set(i.KeyCode.SEVEN,this.jumpCell.bind(this)),this.keyMapping.set(i.KeyCode.EIGHT,this.jumpCell.bind(this)),this.keyMapping.set(i.KeyCode.NINE,this.jumpCell.bind(this))}move(t){this.key_=t;const e=super.move(t);return this.modifier=!1,e}up(){return this.moved=s.WalkerMoves.UP,this.eligibleCell_()?this.verticalMove_(!1):super.up()}down(){return this.moved=s.WalkerMoves.DOWN,this.eligibleCell_()?this.verticalMove_(!0):super.down()}jumpCell(){if(!this.isInTable_()||null===this.key_)return this.getFocus();if(this.moved===s.WalkerMoves.ROW){this.moved=s.WalkerMoves.CELL;const t=this.key_-i.KeyCode.ZERO;return this.isLegalJump_(this.row_,t)?this.jumpCell_(this.row_,t):this.getFocus()}const t=this.key_-i.KeyCode.ZERO;return t>this.currentTable_.childNodes.length?this.getFocus():(this.row_=t,this.moved=s.WalkerMoves.ROW,this.getFocus().clone())}undo(){const t=super.undo();return t===this.firstJump&&(this.firstJump=null),t}eligibleCell_(){const t=this.getFocus().getSemanticPrimary();return this.modifier&&"cell"===t.type&&-1!==a.ELIGIBLE_CELL_ROLES.indexOf(t.role)}verticalMove_(t){const e=this.previousLevel();if(!e)return null;const r=this.getFocus(),n=this.levels.indexOf(this.primaryId()),i=this.levels.pop(),o=this.levels.indexOf(e),s=this.levels.get(t?o+1:o-1);if(!s)return this.levels.push(i),null;this.setFocus(this.singletonFocus(s));const a=this.nextLevel();return a[n]?(this.levels.push(a),this.singletonFocus(a[n])):(this.setFocus(r),this.levels.push(i),null)}jumpCell_(t,e){this.firstJump?this.virtualize(!1):(this.firstJump=this.getFocus(),this.virtualize(!0));const r=this.currentTable_.id.toString();let n;do{n=this.levels.pop()}while(-1===n.indexOf(r));this.levels.push(n),this.setFocus(this.singletonFocus(r)),this.levels.push(this.nextLevel());const i=this.currentTable_.childNodes[t-1];return this.setFocus(this.singletonFocus(i.id.toString())),this.levels.push(this.nextLevel()),this.singletonFocus(i.childNodes[e-1].id.toString())}isLegalJump_(t,e){const r=n.querySelectorAllByAttrValue(this.getRebuilt().xml,"id",this.currentTable_.id.toString())[0];if(!r||r.hasAttribute("alternative"))return!1;const i=this.currentTable_.childNodes[t-1];if(!i)return!1;const o=n.querySelectorAllByAttrValue(r,"id",i.id.toString())[0];return!(!o||o.hasAttribute("alternative"))&&!(!i||!i.childNodes[e-1])}isInTable_(){let t=this.getFocus().getSemanticPrimary();for(;t;){if(-1!==a.ELIGIBLE_TABLE_TYPES.indexOf(t.type))return this.currentTable_=t,!0;t=t.parent}return!1}}e.TableWalker=a,a.ELIGIBLE_CELL_ROLES=["determinant","rowvector","binomial","squarematrix","multiline","matrix","vector","cases","table"],a.ELIGIBLE_TABLE_TYPES=["multiline","matrix","vector","cases","table"]},759:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalkerState=e.WalkerMoves=void 0,function(t){t.UP="up",t.DOWN="down",t.LEFT="left",t.RIGHT="right",t.REPEAT="repeat",t.DEPTH="depth",t.ENTER="enter",t.EXPAND="expand",t.HOME="home",t.SUMMARY="summary",t.DETAIL="detail",t.ROW="row",t.CELL="cell"}(e.WalkerMoves||(e.WalkerMoves={}));class r{static resetState(t){delete r.STATE[t]}static setState(t,e){r.STATE[t]=e}static getState(t){return r.STATE[t]}}e.WalkerState=r,r.STATE={}},1034:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.walkerMapping_=e.walker=void 0;const n=r(8815),i=r(5161),o=r(8166),s=r(8187);e.walker=function(t,r,n,i,o){return(e.walkerMapping_[t.toLowerCase()]||e.walkerMapping_.dummy)(r,n,i,o)},e.walkerMapping_={dummy:(t,e,r,i)=>new n.DummyWalker(t,e,r,i),semantic:(t,e,r,n)=>new i.SemanticWalker(t,e,r,n),syntax:(t,e,r,n)=>new o.SyntaxWalker(t,e,r,n),table:(t,e,r,n)=>new s.TableWalker(t,e,r,n)}},3580:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBySemanticId=e.getSemanticRoot=e.getAttribute=e.splitAttribute=void 0;const n=r(1838),i=r(813);e.splitAttribute=function(t){return t?t.split(/,/):[]},e.getAttribute=function(t,e){return t.getAttribute(e)},e.getSemanticRoot=function(t){if(t.hasAttribute(i.Attribute.TYPE)&&!t.hasAttribute(i.Attribute.PARENT))return t;const e=n.querySelectorAllByAttr(t,i.Attribute.TYPE);for(let t,r=0;t=e[r];r++)if(!t.hasAttribute(i.Attribute.PARENT))return t;return t},e.getBySemanticId=function(t,e){return t.getAttribute(i.Attribute.ID)===e?t:n.querySelectorAllByAttrValue(t,i.Attribute.ID,e)[0]}},6085:function(t,e,r){"use strict";r.r(e);var n=r(3284),i=r(8055),o=r(9846);MathJax.loader&&MathJax.loader.checkVersion("[mathjax-modern]/chtml",i.VERSION,"font"),(0,n.combineWithMathJax)({_:{output:{fonts:{"mathjax-modern":{chtml_ts:o}}}}});var s=r(894);MathJax.startup&&((0,n.combineDefaults)(MathJax,"config",{output:{font:"[mathjax-modern]"},chtml:{fontData:o.MathJaxModernFont,dynamicPrefix:"[mathjax-modern]/chtml/dynamic"},loader:{paths:{"mathjax-modern":"[mathjax]/output/fonts/mathjax-modern"}}}),(0,n.combineDefaults)(MathJax.config,"chtml",{fontURL:s.Package.resolvePath("[mathjax-modern]/chtml/woff",!1)}))},9846:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MathJaxModernFont=void 0;var s=r(4791),a=r(4453),l=r(3389),c=r(7349),u=r(8607),h=r(5066),p=r(5951),d=r(1672),f=r(3854),m=r(6402),y=r(7993),g=r(1518),b=r(5652),v=r(9757),M=r(6591),O=r(7286),x=r(4046),S=r(514),E=r(4403),C=r(4187),_=r(3693),A=r(2694),N=r(3445),w=r(6437),T=r(1695),L=r(5627),P=r(4739),k=r(5300),I=r(5923),R=r(3589),j=r(8030),B=r(4955),D=r(2988),F=a.CommonMathJaxModernFontMixin(s.ChtmlFontData),H=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cssFontPrefix="MM",e}return i(e,t),e.NAME="MathJaxModern",e.OPTIONS=o(o({},F.OPTIONS),{fontURL:F.OPTIONS.dynamicPrefix="/chtml/woff",dynamicPrefix:F.OPTIONS.dynamicPrefix+"/chtml/dynamic"}),e.defaultCssFamilyPrefix="MJX-MM-ZERO",e.defaultVariantLetters={normal:"",bold:"B",italic:"I","bold-italic":"BI","double-struck":"DS",fraktur:"F","bold-fraktur":"FB",script:"S","bold-script":"SB","sans-serif":"SS","bold-sans-serif":"SSB","sans-serif-italic":"SSI","sans-serif-bold-italic":"SSBI",monospace:"M","-smallop":"SO","-largeop":"LO","-size3":"S3","-size4":"S4","-size5":"S5","-size6":"S6","-size7":"S7","-tex-mathit":"MI","-tex-calligraphic":"C","-tex-bold-calligraphic":"CB","-tex-oldstyle":"OS","-tex-bold-oldstyle":"OB","-tex-variant":"V","-lf-tp":"LT","-rt-bt":"RB","-ex-md":"EM"},e.defaultDelimiters=D.delimiters,e.defaultChars={normal:l.normal,bold:c.bold,italic:u.italic,"bold-italic":h.boldItalic,"double-struck":p.doubleStruck,fraktur:d.fraktur,"bold-fraktur":f.frakturBold,script:m.script,"bold-script":y.scriptBold,"sans-serif":g.sansSerif,"bold-sans-serif":b.sansSerifBold,"sans-serif-italic":v.sansSerifItalic,"sans-serif-bold-italic":M.sansSerifBoldItalic,monospace:O.monospace,"-smallop":x.smallop,"-largeop":S.largeop,"-size3":E.size3,"-size4":C.size4,"-size5":_.size5,"-size6":A.size6,"-size7":N.size7,"-tex-mathit":w.texMathit,"-tex-calligraphic":T.texCalligraphic,"-tex-bold-calligraphic":L.texCalligraphicBold,"-tex-oldstyle":P.texOldstyle,"-tex-bold-oldstyle":k.texOldstyleBold,"-tex-variant":I.texVariant,"-lf-tp":R.lfTp,"-rt-bt":j.rtBt,"-ex-md":B.exMd},e.defaultStyles=o(o({},s.ChtmlFontData.defaultStyles),{"mjx-break":{"font-family":"MJX-MM-BRK"},".MM-N":{"font-family":"MJX-MM-ZERO, MJX-MM-N"},".MM-B":{"font-family":"MJX-MM-ZERO, MJX-MM-B"},".MM-I":{"font-family":"MJX-MM-ZERO, MJX-MM-I"},".MM-BI":{"font-family":"MJX-MM-ZERO, MJX-MM-BI"},".MM-DS":{"font-family":"MJX-MM-ZERO, MJX-MM-DS"},".MM-F":{"font-family":"MJX-MM-ZERO, MJX-MM-F"},".MM-FB":{"font-family":"MJX-MM-ZERO, MJX-MM-FB"},".MM-S":{"font-family":"MJX-MM-ZERO, MJX-MM-S"},".MM-SB":{"font-family":"MJX-MM-ZERO, MJX-MM-SB"},".MM-SS":{"font-family":"MJX-MM-ZERO, MJX-MM-SS"},".MM-SSB":{"font-family":"MJX-MM-ZERO, MJX-MM-SSB"},".MM-SSI":{"font-family":"MJX-MM-ZERO, MJX-MM-SSI"},".MM-SSBI":{"font-family":"MJX-MM-ZERO, MJX-MM-SSBI"},".MM-M":{"font-family":"MJX-MM-ZERO, MJX-MM-M"},".MM-SO":{"font-family":"MJX-MM-ZERO, MJX-MM-SO"},".MM-LO":{"font-family":"MJX-MM-ZERO, MJX-MM-LO"},".MM-S3":{"font-family":"MJX-MM-ZERO, MJX-MM-S3"},".MM-S4":{"font-family":"MJX-MM-ZERO, MJX-MM-S4"},".MM-S5":{"font-family":"MJX-MM-ZERO, MJX-MM-S5"},".MM-S6":{"font-family":"MJX-MM-ZERO, MJX-MM-S6"},".MM-S7":{"font-family":"MJX-MM-ZERO, MJX-MM-S7"},".MM-MI":{"font-family":"MJX-MM-ZERO, MJX-MM-MI"},".MM-C":{"font-family":"MJX-MM-ZERO, MJX-MM-C"},".MM-CB":{"font-family":"MJX-MM-ZERO, MJX-MM-CB"},".MM-OS":{"font-family":"MJX-MM-ZERO, MJX-MM-OS"},".MM-OB":{"font-family":"MJX-MM-ZERO, MJX-MM-OB"},".MM-V":{"font-family":"MJX-MM-ZERO, MJX-MM-V"},".MM-LT":{"font-family":"MJX-MM-ZERO, MJX-MM-LT"},".MM-RB":{"font-family":"MJX-MM-ZERO, MJX-MM-RB"},".MM-EM":{"font-family":"MJX-MM-ZERO, MJX-MM-EM"}}),e.defaultFonts=o(o({},s.ChtmlFontData.defaultFonts),{"@font-face /* MJX-MM-ZERO */":{"font-family":"MJX-MM-ZERO",src:'url("%%URL%%/mjx-mm-zero.woff") format("woff")'},"@font-face /* MJX-MM-BRK */":{"font-family":"MJX-MM-BRK",src:'url("%%URL%%/mjx-mm-brk.woff") format("woff")'},"@font-face /* MJX-MM-N */":{"font-family":"MJX-MM-N",src:'url("%%URL%%/mjx-mm-n.woff") format("woff")'},"@font-face /* MJX-MM-B */":{"font-family":"MJX-MM-B",src:'url("%%URL%%/mjx-mm-b.woff") format("woff")'},"@font-face /* MJX-MM-I */":{"font-family":"MJX-MM-I",src:'url("%%URL%%/mjx-mm-i.woff") format("woff")'},"@font-face /* MJX-MM-BI */":{"font-family":"MJX-MM-BI",src:'url("%%URL%%/mjx-mm-bi.woff") format("woff")'},"@font-face /* MJX-MM-DS */":{"font-family":"MJX-MM-DS",src:'url("%%URL%%/mjx-mm-ds.woff") format("woff")'},"@font-face /* MJX-MM-F */":{"font-family":"MJX-MM-F",src:'url("%%URL%%/mjx-mm-f.woff") format("woff")'},"@font-face /* MJX-MM-FB */":{"font-family":"MJX-MM-FB",src:'url("%%URL%%/mjx-mm-fb.woff") format("woff")'},"@font-face /* MJX-MM-S */":{"font-family":"MJX-MM-S",src:'url("%%URL%%/mjx-mm-s.woff") format("woff")'},"@font-face /* MJX-MM-SB */":{"font-family":"MJX-MM-SB",src:'url("%%URL%%/mjx-mm-sb.woff") format("woff")'},"@font-face /* MJX-MM-SS */":{"font-family":"MJX-MM-SS",src:'url("%%URL%%/mjx-mm-ss.woff") format("woff")'},"@font-face /* MJX-MM-SSB */":{"font-family":"MJX-MM-SSB",src:'url("%%URL%%/mjx-mm-ssb.woff") format("woff")'},"@font-face /* MJX-MM-SSI */":{"font-family":"MJX-MM-SSI",src:'url("%%URL%%/mjx-mm-ssi.woff") format("woff")'},"@font-face /* MJX-MM-SSBI */":{"font-family":"MJX-MM-SSBI",src:'url("%%URL%%/mjx-mm-ssbi.woff") format("woff")'},"@font-face /* MJX-MM-M */":{"font-family":"MJX-MM-M",src:'url("%%URL%%/mjx-mm-m.woff") format("woff")'},"@font-face /* MJX-MM-SO */":{"font-family":"MJX-MM-SO",src:'url("%%URL%%/mjx-mm-so.woff") format("woff")'},"@font-face /* MJX-MM-LO */":{"font-family":"MJX-MM-LO",src:'url("%%URL%%/mjx-mm-lo.woff") format("woff")'},"@font-face /* MJX-MM-S3 */":{"font-family":"MJX-MM-S3",src:'url("%%URL%%/mjx-mm-s3.woff") format("woff")'},"@font-face /* MJX-MM-S4 */":{"font-family":"MJX-MM-S4",src:'url("%%URL%%/mjx-mm-s4.woff") format("woff")'},"@font-face /* MJX-MM-S5 */":{"font-family":"MJX-MM-S5",src:'url("%%URL%%/mjx-mm-s5.woff") format("woff")'},"@font-face /* MJX-MM-S6 */":{"font-family":"MJX-MM-S6",src:'url("%%URL%%/mjx-mm-s6.woff") format("woff")'},"@font-face /* MJX-MM-S7 */":{"font-family":"MJX-MM-S7",src:'url("%%URL%%/mjx-mm-s7.woff") format("woff")'},"@font-face /* MJX-MM-MI */":{"font-family":"MJX-MM-MI",src:'url("%%URL%%/mjx-mm-mi.woff") format("woff")'},"@font-face /* MJX-MM-C */":{"font-family":"MJX-MM-C",src:'url("%%URL%%/mjx-mm-c.woff") format("woff")'},"@font-face /* MJX-MM-CB */":{"font-family":"MJX-MM-CB",src:'url("%%URL%%/mjx-mm-cb.woff") format("woff")'},"@font-face /* MJX-MM-OS */":{"font-family":"MJX-MM-OS",src:'url("%%URL%%/mjx-mm-os.woff") format("woff")'},"@font-face /* MJX-MM-OB */":{"font-family":"MJX-MM-OB",src:'url("%%URL%%/mjx-mm-ob.woff") format("woff")'},"@font-face /* MJX-MM-V */":{"font-family":"MJX-MM-V",src:'url("%%URL%%/mjx-mm-v.woff") format("woff")'},"@font-face /* MJX-MM-LT */":{"font-family":"MJX-MM-LT",src:'url("%%URL%%/mjx-mm-lt.woff") format("woff")'},"@font-face /* MJX-MM-RB */":{"font-family":"MJX-MM-RB",src:'url("%%URL%%/mjx-mm-rb.woff") format("woff")'},"@font-face /* MJX-MM-EM */":{"font-family":"MJX-MM-EM",src:'url("%%URL%%/mjx-mm-em.woff") format("woff")'}}),e.dynamicFiles=s.ChtmlFontData.defineDynamicFiles([["latin",{normal:[[192,214],[216,239],[241,246],[248,304],[306,311],[313,328],[330,357],[360,383],398,402,416,417,431,432,[461,468],[471,477],486,487,490,491,496,500,501,[506,513],516,517,520,521,524,525,528,529,532,533,[536,539],[7692,7695],[7716,7719],7722,7723,7726,7727,[7734,7737],[7746,7751],[7768,7773],7778,7779,[7788,7791],[7808,7813],7826,7827,7831,7838,[7840,7929]]}],["latin-b",{bold:[[192,214],[216,239],[241,246],[248,304],[306,311],[313,328],[330,357],[360,383],398,402,416,417,431,432,[461,468],[471,477],486,487,490,491,496,500,501,[506,513],516,517,520,521,524,525,528,529,532,533,[536,539],[7692,7695],[7716,7719],7722,7723,7726,7727,[7734,7737],[7746,7751],[7768,7773],7778,7779,[7788,7791],[7808,7813],7826,7827,7831,[7840,7929]]}],["latin-i",{italic:[[192,214],[216,239],[241,246],[248,304],[306,311],[313,328],[330,357],[360,383],398,402,416,417,431,432,[461,468],[471,477],486,487,490,491,496,500,501,[506,513],516,517,520,521,524,525,528,529,532,533,[536,539],[7692,7695],[7716,7719],7722,7723,7726,7727,[7734,7737],[7746,7751],[7768,7773],7778,7779,[7788,7791],[7808,7813],7826,7827,7831,[7840,7929]]}],["latin-bi",{"bold-italic":[[192,214],[216,239],[241,246],[248,304],[306,311],[313,328],[330,357],[360,383],398,402,416,417,431,432,[461,468],[471,477],486,487,490,491,496,500,501,[506,513],516,517,520,521,524,525,528,529,532,533,[536,539],[7692,7695],[7716,7719],7722,7723,7726,7727,[7734,7737],[7746,7751],[7768,7773],7778,7779,[7788,7791],[7808,7813],7826,7827,7831,[7840,7929]]}],["double-struck",{normal:[120120,120121,[120123,120126],[120128,120132],120134,[120138,120144],[120146,120171],[120792,120801],8450,8461,8469,8473,8474,8477,8484,[8508,8512],[8517,8521]],"double-struck":[305,567]}],["fraktur",{normal:[120068,120069,[120071,120074],[120077,120084],[120086,120092],[120094,120119],[120172,120223],8460,8465,8476,8488,8493],fraktur:[305,567],"bold-fraktur":[305,567]}],["script",{normal:[119964,119966,119967,119970,119973,119974,[119977,119980],[119982,119993],119995,[120016,120067],8458,8459,8464,8466,8467,8472,8475,8492,[8495,8497],8499,8500],script:[305,567],"bold-script":[305,567]}],["sans-serif",{normal:[[120224,120431],[120802,120821],8513],"sans-serif":[[123,126],160,163,165,167,168,172,[175,177],[180,183],215,240,247,305,[32,43],44,45,46,47,567,58,59,60,61,62,63,64,710,711,[713,715],[728,730],732,[768,772],[774,776],778,780,8208,8209,8211,8212,8214,8216,8217,8220,8221,8224,8225,8230,8260,8364,8486,8487,[8592,8595],8722,8734,91,[913,919],92,[920,929],93,[931,937],94,95,96],"bold-sans-serif":[[123,126],160,163,165,167,168,172,[175,177],[180,183],215,240,247,305,[32,43],44,45,46,47,567,58,59,60,61,62,63,64,710,711,[713,715],[728,730],732,[768,772],[774,776],778,780,8208,8209,8211,8212,8214,8216,8217,8220,8221,8224,8225,8230,8260,8364,8486,8487,[8592,8595],8722,8734,91,92,93,94,95,96],"sans-serif-italic":[[123,126],160,163,165,167,168,172,[175,177],[180,183],215,240,247,305,[32,43],44,45,46,[47,56],567,57,58,59,60,61,62,63,64,710,711,[713,715],[728,730],732,[768,772],[774,776],778,780,8208,8209,8211,8212,8214,8216,8217,8220,8221,8224,8225,8230,8260,8364,8486,8487,[8592,8595],8722,8734,91,[913,919],92,[920,929],93,[931,937],94,95,96],"sans-serif-bold-italic":[[123,126],160,163,165,167,168,172,[175,177],[180,183],215,240,247,305,[32,43],44,45,46,[47,56],567,57,58,59,60,61,62,63,64,710,711,[713,715],[728,730],732,[768,772],[774,776],778,780,8208,8209,8211,8212,8214,8216,8217,8220,8221,8224,8225,8230,8260,8364,8486,8487,[8592,8595],8722,8734,91,92,93,94,95,96]}],["sans-serif-r",{"sans-serif":[[192,214],[216,239],[241,246],[248,304],[306,311],[313,328],[330,357],[360,383],398,402,416,417,431,432,[461,468],[471,477],486,487,490,491,496,500,501,[506,513],516,517,520,521,524,525,528,529,532,533,[536,539],[7692,7695],[7716,7719],7722,7723,7726,7727,[7734,7737],[7746,7751],[7768,7773],7778,7779,[7788,7791],[7808,7813],7826,7827,7831,[7840,7929]]}],["sans-serif-b",{"bold-sans-serif":[[192,214],[216,239],[241,246],[248,304],[306,311],[313,328],[330,357],[360,383],398,402,416,417,431,432,[461,468],[471,477],486,487,490,491,496,500,501,[506,513],516,517,520,521,524,525,528,529,532,533,[536,539],[7692,7695],[7716,7719],7722,7723,7726,7727,[7734,7737],[7746,7751],[7768,7773],7778,7779,[7788,7791],[7808,7813],7826,7827,7831,[7840,7929]]}],["sans-serif-i",{"sans-serif-italic":[[192,214],[216,239],[241,246],[248,304],[306,311],[313,328],[330,357],[360,383],398,402,416,417,431,432,[461,468],[471,477],486,487,490,491,496,500,501,[506,513],516,517,520,521,524,525,528,529,532,533,[536,539],[7692,7695],[7716,7719],7722,7723,7726,7727,[7734,7737],[7746,7751],[7768,7773],7778,7779,[7788,7791],[7808,7813],7826,7827,7831,[7840,7929]]}],["sans-serif-bi",{"sans-serif-bold-italic":[[192,214],[216,239],[241,246],[248,304],[306,311],[313,328],[330,357],[360,383],398,402,416,417,431,432,[461,468],[471,477],486,487,490,491,496,500,501,[506,513],516,517,520,521,524,525,528,529,532,533,[536,539],[7692,7695],[7716,7719],7722,7723,7726,7727,[7734,7737],[7746,7751],[7768,7773],7778,7779,[7788,7791],[7808,7813],7826,7827,7831,[7840,7929]]}],["sans-serif-ex",{"sans-serif":[10214,10215,161,162,164,166,[169,171],173,174,184,[186,191],3647,59395,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,600,601,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60200,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60257,60259,60261,60270,60271,[60424,60430],60432,60433,63166,63198,[64256,64260],702,703,731,733,777,779,783,785,803,806,[814,818],8218,8222,8226,8240,8241,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8353,8356,8358,8361,8363,8369,8451,8470,8471,8478,8480,8482,8494,[8592,8595],8730,8738,8960,9001,9002,9250,9251,9702,9834,9901,9902],"bold-sans-serif":[10214,10215,161,162,164,166,[169,171],173,174,184,[186,191],3647,59395,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,600,601,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60200,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60257,60259,60261,60270,60271,[60424,60430],60432,60433,63166,63198,[64256,64260],702,703,731,733,777,779,783,785,803,806,[814,818],8218,8222,8226,8240,8241,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8353,8356,8358,8361,8363,8369,8451,8470,8471,8478,8480,8482,8494,[8592,8595],8730,8738,8960,9001,9002,9250,9251,9702,9834,9901,9902],"sans-serif-italic":[10214,10215,161,162,164,166,[169,171],173,174,184,[186,191],3647,59395,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,600,601,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60200,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60257,60259,60261,60270,60271,[60424,60430],60432,60433,63166,63198,[64256,64260],702,703,731,733,777,779,783,785,803,806,[814,818],8218,8222,8226,8240,8241,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8353,8356,8358,8361,8363,8369,8451,8470,8471,8478,8480,8482,8494,[8592,8595],8730,8738,8960,9001,9002,9250,9251,9702,9834,9901,9902],"sans-serif-bold-italic":[10214,10215,161,162,164,166,[169,171],173,174,184,[186,191],3647,59395,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,600,601,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60200,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60257,60259,60261,60270,60271,[60424,60430],60432,60433,63166,63198,[64256,64260],702,703,731,733,777,779,783,785,803,806,[814,818],8218,8222,8226,8240,8241,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8353,8356,8358,8361,8363,8369,8451,8470,8471,8478,8480,8482,8494,[8592,8595],8730,8738,8960,9001,9002,9250,9251,9702,9834,9901,9902]}],["monospace",{normal:[[120432,120483],[120822,120831]],monospace:[[123,126],160,163,165,167,168,172,[175,177],[180,183],215,240,247,305,[32,43],44,45,46,47,567,58,59,60,61,62,63,64,710,711,[728,730],732,[768,772],[774,776],778,780,8208,8209,8211,8212,8214,8216,8217,8220,8221,8224,8225,8230,8260,8364,8486,8487,[8592,8595],8722,8734,91,[913,919],92,[920,929],93,[931,937],94,95,96]}],["monospace-l",{monospace:[[192,214],[216,239],[241,246],[248,304],[308,311],[313,328],[330,357],[360,383],398,402,416,417,431,432,[461,468],[471,477],486,487,490,491,496,500,501,[506,513],516,517,520,521,524,525,528,529,532,533,[536,539],[7692,7695],[7716,7719],7722,7723,7726,7727,[7734,7737],[7746,7751],[7768,7773],7778,7779,[7788,7791],[7808,7813],7826,7827,7831,[7840,7929]]}],["monospace-ex",{monospace:[10214,10215,161,162,164,166,[169,171],173,174,184,[186,191],3647,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,600,601,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60259,60261,60270,60271,[60424,60430],60432,60433,63166,63198,702,703,731,733,777,779,783,785,803,806,[814,818],8218,8222,8226,8240,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8353,8356,8358,8361,8363,8369,8451,8470,8471,8478,8494,[8592,8595],8730,8738,8960,9001,9002,9250,9251,9702,9834,9901,9902]}],["calligraphic",{"-tex-calligraphic":[[65,90]],"-tex-bold-calligraphic":[[65,90]]}],["math",{normal:[10178,[10202,10204],[10208,10211],10731,10742,8714,8717,8762,8763,8782,8783,[8785,8787],[8790,8796],8798,8844,[8886,8889],[8891,8895],8903,[8912,8929],[8932,8937]]}],["symbols",{normal:[11800,12310,12311,161,162,164,166,[169,171],173,174,[186,191],3647,600,601,[64256,64260],65279,8204,8205,8215,8218,8222,8226,8240,8241,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8353,8356,8358,8361,8363,8369,8451,8457,8470,8471,8478,8480,8482,8494,8960,8965,8966,9250,9251]}],["symbols-b-i",{bold:[161,162,164,166,[169,171],173,174,[186,191],3647,600,601,[64256,64260],8218,8222,8226,8240,8241,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8353,8356,8358,8361,8363,8369,8451,8470,8471,8478,8480,8482,8494,8960,9250,9251],italic:[[161,167],[169,174],177,[181,183],[186,191],215,240,247,3647,600,601,[64256,64260],8218,8222,[8224,8226],8240,8241,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8353,8356,8358,8361,8363,8369,8451,8470,8471,8478,8480,8482,8494,8960,9250,9251],"bold-italic":[[161,167],[169,174],177,[181,183],[186,191],215,240,247,3647,600,601,[64256,64260],8218,8222,[8224,8226],8240,8241,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8353,8356,8358,8361,8363,8369,8451,8470,8471,8478,8480,8482,8494,8960,9250,9251]}],["arrows",{normal:[10145,10228,10239,10502,10503,[11012,11015],11020,11021,11057,11059,8607,8609,8613,8615,8621,[8624,8629],[8662,8665],8668,8669,[8678,8681],8691],"-largeop":[[11012,11015],11020,11021,11057,8593,8595,[8597,8603],[8606,8611],8613,8615,[8617,8622],[8624,8627],8630,8631,[8636,8655],8657,8659,[8661,8667],[8678,8681],8691,8693,8694],"-lf-tp":[10503,11013,11014,[8678,8681]],"-rt-bt":[10502,11015,11020,[8678,8681]],"-ex-md":[11013,11014,8678,8679]},[8607,8609,8613,8615,8622,[8678,8681],8691,10145,10502,10503,[11013,11015],11020,11021,11057]],["accents",{normal:[184,702,703,731,733,777,779,783,785,803,806,[812,819],831,[8403,8405],8408,[8413,8415],[8420,8422],[8424,8427],8432,845],"-smallop":[785,[812,816],818,819,831,845],"-largeop":[785,[812,816]],"-size3":[785,[812,816]],"-size4":[785,[812,816]],"-size5":[785,[812,816]],"-size6":[785,[812,816]],"-size7":[785,[812,816]],"-ex-md":[818,819,831,845]},[785,[812,816],818,819,831,845,8425]],["accents-b-i",{bold:[184,702,703,731,733,777,779,783,785,803,806,[814,818]],italic:[184,702,703,731,733,777,779,783,785,803,806,[814,818]],"bold-italic":[184,702,703,731,733,777,779,783,785,803,806,[814,818]]}],["shapes",{normal:[10003,10016,11034,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9585,9586,9601,9608,[9617,9619],9644,9645,9733,[9824,9831],9834,[9837,9839],9901,9902],bold:[9834,9901,9902],italic:[9834,9901,9902],"bold-italic":[9834,9901,9902]}],["variants",{"-tex-variant":[126,170,176,178,179,185,186,34,39,42,8212,8289,8304,8305,[8308,8334],96]}],["PUA",{normal:[[59264,59273],59395,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60200,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60257,60259,60261,60270,60271,[60424,60430],60432,60433,63166,63198],bold:[59395,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60200,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60257,60259,60261,60270,60271,[60424,60430],60432,60433,63166,63198],italic:[59395,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60200,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60257,60259,60261,60270,60271,[60424,60430],60432,60433,63166,63198],"bold-italic":[59395,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60200,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60257,60259,60261,60270,60271,[60424,60430],60432,60433,63166,63198]}]]),e}(F);e.MathJaxModernFont=H},5066:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.boldItalic=void 0,e.boldItalic={32:[0,0,.414],33:[.711,0,.386,{ic:.044}],34:[.703,-.422,.518,{ic:.04}],35:[.694,.194,.944],36:[.75,.056,.575,{ic:.071}],37:[.75,.056,.944,{ic:.002}],38:[.711,.017,.886,{ic:.011}],39:[.703,-.422,.356,{ic:.04}],40:[.75,.249,.473,{ic:.094}],41:[.75,.249,.473],42:[.75,-.306,.591,{ic:.057}],43:[.603,.102,.886],44:[.147,.194,.356],45:[.269,-.175,.414],46:[.147,0,.356],47:[.75,.25,.591,{ic:.09}],58:[.444,0,.356],59:[.444,.194,.356],60:[.587,.086,.894,{ic:.043}],61:[.393,-.108,.886],62:[.587,.086,.894],63:[.711,0,.591,{ic:.023}],64:[.702,.008,.886,{ic:.01}],91:[.75,.25,.356,{ic:.129}],92:[.75,.25,.575],93:[.75,.25,.356,{ic:.036}],94:[.744,-.562,.556,{ic:.151}],95:[-.097,.153,.866],96:[.699,-.502,.591],123:[.75,.25,.575,{ic:.105}],124:[.75,.25,.319,{ic:.051}],125:[.75,.25,.575],126:[.307,-.193,.556,{ic:.071}],160:[0,0,.591],168:[.667,-.535,.591,{ic:.045}],175:[.626,-.576,.591,{ic:.047}],176:[.686,-.392,.443,{ic:.065}],180:[.699,-.502,.591,{ic:.005}],305:[.452,.008,.394,{sk:-.012}],567:[.452,.202,.439,{sk:.063}],710:[.704,-.497,.591,{ic:.012}],711:[.704,-.497,.591,{ic:.052}],713:[.626,-.576,.591,{ic:.047}],714:[.699,-.502,.591,{ic:.005}],715:[.699,-.502,.591],728:[.69,-.511,.591,{ic:.037}],729:[.674,-.527,.356,{ic:.048}],730:[.702,-.534,.949],732:[.66,-.541,.591,{ic:.042}],768:[.699,-.502,0,{dx:.183}],769:[.699,-.502,0,{ic:.005,dx:.113}],770:[.704,-.497,0,{ic:.012,dx:.165}],771:[.66,-.541,0,{ic:.042,dx:.145}],772:[.626,-.576,0,{ic:.047,dx:.145}],774:[.69,-.511,0,{ic:.037,dx:.13}],775:[.674,-.527,0,{dx:.144}],776:[.667,-.535,0,{ic:.045,dx:.145}],778:[.702,-.534,0,{dx:.141}],780:[.704,-.497,0,{ic:.052,dx:.124}],8208:[.269,-.175,.414],8209:[.269,-.175,.414],8211:[.292,-.256,.591,{ic:.037}],8212:[.292,-.256,1.182,{ic:.006}],8214:[.75,.25,.499,{ic:.051}],8216:[.694,-.353,.356,{ic:.037}],8217:[.694,-.353,.356,{ic:.059}],8220:[.694,-.353,.59,{ic:.038}],8221:[.694,-.353,.59,{ic:.059}],8230:[.147,0,.842],8260:[.696,.01,.713,{ic:.077}],8364:[.703,.017,.664,{ic:.114}],8486:[.703,0,.827,{ic:.031}],8487:[.686,.017,.827,{ic:.055}],8592:[.518,.017,1.121],8593:[.694,.194,.592,{ic:.068}],8594:[.518,.017,1.121],8595:[.694,.194,.592],8722:[.281,-.22,.886],8730:[.757,.094,.531,{ic:.243}],8734:[.473,.029,1.06,{ic:.018}],8738:[.604,.102,.886,{ic:.031}],9001:[.75,.25,.473,{ic:.09}],9002:[.751,.25,.473],9702:[.386,-.072,.886],10214:[.751,.249,.488,{ic:.129}],10215:[.751,.249,.488,{ic:.037}]}},7349:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bold=void 0,e.bold={32:[0,0,.383],33:[.705,0,.35],34:[.697,-.418,.481],35:[.694,.194,.958],36:[.75,.056,.575],37:[.75,.056,.958],38:[.705,.011,.894],39:[.697,-.418,.319],40:[.75,.249,.447],41:[.75,.249,.447],42:[.75,-.306,.575],43:[.633,.132,.894],44:[.156,.194,.319],45:[.271,-.174,.383],46:[.156,0,.319],47:[.75,.25,.575],58:[.444,0,.319],59:[.444,.194,.319],60:[.587,.086,.894],61:[.393,-.108,.894],62:[.587,.086,.894],63:[.7,0,.543],64:[.7,.006,.894],91:[.75,.25,.319],92:[.75,.25,.575],93:[.75,.25,.319],94:[.744,-.562,.556,{ic:.005}],95:[-.101,.149,.869],96:[.704,-.509,.575],123:[.75,.25,.575],124:[.75,.25,.319],125:[.75,.25,.575],126:[.307,-.193,.556],160:[0,0,.575],163:[.686,.031,.869],165:[.686,0,.869],167:[.712,.212,.695],168:[.677,-.537,.575],172:[.393,-.108,.894],175:[.633,-.581,.575],176:[.686,-.367,.431],177:[.693,0,.894],180:[.704,-.509,.575],181:[.45,.194,.639],182:[.694,.194,.703],183:[.421,-.265,.894],215:[.531,.03,.894],240:[.702,.006,.575],247:[.582,.08,.894],305:[.45,0,.319],567:[.45,.2,.351],710:[.71,-.503,.575],711:[.71,-.503,.575],713:[.633,-.581,.575],714:[.704,-.509,.575],715:[.704,-.509,.575],728:[.7,-.513,.575],729:[.685,-.529,.319],730:[.689,-.521,.869],732:[.661,-.553,.575],768:[.704,-.509,0,{dx:.317}],769:[.704,-.509,0,{dx:.242}],770:[.71,-.503,0,{dx:.279}],771:[.661,-.553,0,{dx:.279}],772:[.633,-.581,0,{dx:.279}],774:[.7,-.513,0,{dx:.279}],775:[.685,-.529,0,{dx:.279}],776:[.677,-.537,0,{dx:.28}],778:[.689,-.521,0,{dx:.279}],780:[.71,-.503,0,{dx:.279}],8208:[.271,-.174,.383],8209:[.271,-.174,.383],8211:[.292,-.256,.575],8212:[.292,-.256,1.15],8214:[.75,.25,.499],8216:[.694,-.344,.319],8217:[.694,-.344,.319],8220:[.694,-.344,.571],8221:[.694,-.344,.571],8224:[.702,.211,.511],8225:[.702,.202,.511],8230:[.156,0,.838],8260:[.696,.01,.648],8364:[.697,.011,.72],8486:[.697,0,.831],8487:[.686,.011,.831],8592:[.5,0,1.15],8593:[.694,.194,.575],8594:[.5,0,1.15],8595:[.694,.194,.575],8722:[.281,-.22,.894],8730:[.757,.094,.543,{ic:.064}],8734:[.47,.026,1.15],8738:[.634,.132,.894],9001:[.751,.25,.447],9002:[.751,.25,.447],9702:[.381,-.077,.894],10214:[.751,.249,.463],10215:[.751,.249,.463]}},2988:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.delimiters=void 0;var n=r(2388);e.delimiters={40:{dir:n.V,sizes:[.997,1.095,1.195,1.445,1.793,2.093,2.393,2.991],stretch:[9115,9116,9117],HDW:[.748,.248,.875]},41:{dir:n.V,sizes:[.997,1.095,1.195,1.445,1.793,2.093,2.393,2.991],stretch:[9118,9119,9120],HDW:[.748,.248,.875]},45:{c:8722,dir:n.H,stretch:[0,8722],HDW:[.583,.083,.778]},47:{dir:n.V,sizes:[1.001,1.311,1.717,2.249,2.945,3.859,5.055,6.621]},61:{dir:n.H,stretch:[0,61],HDW:[.367,-.133,.778]},91:{dir:n.V,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[9121,9122,9123],HDW:[.75,.25,.667]},92:{dir:n.V,sizes:[1.001,1.311,1.717,2.249,2.945,3.859,5.055,6.621]},93:{dir:n.V,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[9124,9125,9126],HDW:[.75,.25,.667]},94:{c:770,dir:n.H,sizes:[.365,.645,.769,.92,1.101,1.321,1.582,1.897]},123:{dir:n.V,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[9127,123,9129,9128],stretchv:[0,1,0,0],HDW:[.75,.25,.902]},124:{dir:n.V,sizes:[1.001,1.203,1.445,1.735,2.085,2.503,3.005,3.607],schar:[124,8739],stretch:[0,8739],HDW:[.75,.25,.278]},125:{dir:n.V,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[9131,123,9133,9132],stretchv:[0,1,0,0],HDW:[.75,.25,.902]},126:{c:771,dir:n.H,sizes:[.371,.653,.779,.932,1.116,1.336,1.6,1.916]},175:{c:773,dir:n.H,sizes:[.393,.569],stretch:[0,773],stretchv:[0,1],HDW:[.67,-.63,0]},710:{c:770,dir:n.H,sizes:[.365,.645,.769,.92,1.101,1.321,1.582,1.897]},711:{c:780,dir:n.H,sizes:[.365,.645,.769,.92,1.101,1.321,1.582,1.897]},713:{c:773,dir:n.H,sizes:[.393,.569],stretch:[0,773],stretchv:[0,1],HDW:[.67,-.63,0]},728:{c:774,dir:n.H,sizes:[.375,.659,.785,.938,1.121,1.342,1.605,1.921]},732:{c:771,dir:n.H,sizes:[.371,.653,.779,.932,1.116,1.336,1.6,1.916]},770:{dir:n.H,sizes:[.365,.645,.769,.92,1.101,1.321,1.582,1.897]},771:{dir:n.H,sizes:[.371,.653,.779,.932,1.116,1.336,1.6,1.916]},773:{dir:n.H,sizes:[.393,.569],stretch:[0,773],stretchv:[0,1],HDW:[.67,-.63,0]},774:{dir:n.H,sizes:[.375,.659,.785,.938,1.121,1.342,1.605,1.921]},780:{dir:n.H,sizes:[.365,.645,.769,.92,1.101,1.321,1.582,1.897]},8211:{dir:n.H,sizes:[.5],stretch:[0,8211],HDW:[.277,-.255,.5]},8212:{dir:n.H,sizes:[1],stretch:[0,8212],HDW:[.277,-.255,1]},8213:{dir:n.H,stretch:[0,8213],HDW:[.27,-.23,1.152]},8214:{dir:n.V,sizes:[1.001,1.203,1.445,1.735,2.085,2.503,3.005,3.607],schar:[8214,8741],stretch:[0,8214],HDW:[.75,.25,.398]},8215:{dir:n.H,sizes:[.504],stretch:[0,8215],HDW:[-.103,.293,.504]},8260:{dir:n.V,sizes:[1.001,1.311,1.717,2.249,2.945,3.859,5.055,6.621]},8400:{dir:n.H,sizes:[.423,.556],stretch:[8400,8400],stretchv:[2,1],HDW:[.711,-.521,0]},8401:{dir:n.H,sizes:[.423,.556],stretch:[0,8400,8401],stretchv:[0,1,3],HDW:[.711,-.521,0]},8406:{dir:n.H,sizes:[.417,.548],stretch:[8406,8400],stretchv:[2,1],HDW:[.711,-.521,0]},8407:{dir:n.H,sizes:[.417,.548],stretch:[0,8400,8407],stretchv:[0,1,3],HDW:[.711,-.521,0]},8417:{dir:n.H,sizes:[.471,.604],stretch:[8406,8400,8407],stretchv:[2,1,3],HDW:[.711,-.521,0]},8428:{dir:n.H,sizes:[.423,.556],stretch:[0,845,8428],stretchv:[0,1,3],HDW:[-.091,.281,0]},8429:{dir:n.H,sizes:[.423,.556],stretch:[8429,845],stretchv:[2,1],HDW:[-.091,.281,0]},8430:{dir:n.H,sizes:[.417,.548],stretch:[8430,845],stretchv:[2,1],HDW:[-.091,.281,0]},8431:{dir:n.H,sizes:[.417,.548],stretch:[0,845,8431],stretchv:[0,1,3],HDW:[-.091,.281,0]},8592:{dir:n.H,sizes:[.886,1.352],variants:[0,0],schar:[8592,10229],stretch:[8592,8592],stretchv:[2,1],HDW:[.51,.01,1]},8593:{dir:n.V,sizes:[.883,1.349],variants:[0,2],stretch:[8593,8593],stretchv:[2,1],HDW:[.679,.203,.5]},8594:{dir:n.H,sizes:[.886,1.352],variants:[0,0],schar:[8594,10230],stretch:[0,8592,8594],stretchv:[0,1,3],HDW:[.51,.01,1]},8595:{dir:n.V,sizes:[.883,1.349],variants:[0,2],stretch:[0,8593,8595],stretchv:[0,1,3],HDW:[.703,.179,.5]},8596:{dir:n.H,sizes:[.885,1.331],variants:[0,0],schar:[8596,10231],stretch:[8592,8592,8594],stretchv:[2,1,3],HDW:[.51,.01,1]},8597:{dir:n.V,sizes:[1.015,1.015],variants:[0,2],stretch:[8593,8593,8595],stretchv:[2,1,3],HDW:[.757,.257,.5]},8598:{dir:n.V,sizes:[.918,1.384],variants:[0,2]},8599:{dir:n.V,sizes:[.918,1.384],variants:[0,2]},8600:{dir:n.V,sizes:[.918,1.384],variants:[0,2]},8601:{dir:n.V,sizes:[.918,1.384],variants:[0,2]},8602:{dir:n.H,sizes:[.886,1.352],variants:[0,2],stretch:[8602,8592,0,8602],stretchv:[2,1,0,1],HDW:[.51,.01,.997]},8603:{dir:n.H,sizes:[.886,1.352],variants:[0,2],stretch:[0,8592,8603,8602],stretchv:[0,1,3,1],HDW:[.51,.01,.997]},8606:{dir:n.H,sizes:[.906,1.352],variants:[0,2],stretch:[8606,8592],stretchv:[2,1],HDW:[.51,.01,1.017]},8608:{dir:n.H,sizes:[.906,1.352],variants:[0,2],stretch:[0,8592,8608],stretchv:[0,1,3],HDW:[.51,.01,1.017]},8610:{dir:n.H,sizes:[1.081,1.547],variants:[0,2],stretch:[8592,8592,8610],stretchv:[2,1,3],HDW:[.51,.01,1.192]},8611:{dir:n.H,sizes:[1.081,1.547],variants:[0,2],stretch:[8611,8592,8594],stretchv:[2,1,3],HDW:[.51,.01,1.192]},8612:{dir:n.H,sizes:[.866,1.332],variants:[0,0],schar:[8612,10235],stretch:[8592,8592,8612],stretchv:[2,1,3],HDW:[.51,.01,.977]},8614:{dir:n.H,sizes:[.866,1.332],variants:[0,0],schar:[8614,10236],stretch:[8614,8592,8594],stretchv:[2,1,3],HDW:[.51,.01,.977]},8617:{dir:n.H,sizes:[.886,1.352],variants:[0,2],stretch:[8592,8617,8617],stretchv:[2,1,3],HDW:[.55,.05,.997]},8618:{dir:n.H,sizes:[.886,1.352],variants:[0,2],stretch:[8618,8617,8594],stretchv:[2,1,3],HDW:[.55,.05,.997]},8619:{dir:n.H,sizes:[.886,1.352],variants:[0,2],stretch:[8592,8617,8619],stretchv:[2,1,3],HDW:[.55,.05,.997]},8620:{dir:n.H,sizes:[.886,1.352],variants:[0,2],stretch:[8620,8617,8594],stretchv:[2,1,3],HDW:[.55,.05,.997]},8621:{dir:n.H,sizes:[.885,1.331],variants:[0,2]},8624:{dir:n.V,sizes:[.859,1.169],variants:[0,2]},8625:{dir:n.V,sizes:[.859,1.169],variants:[0,2]},8626:{dir:n.V,sizes:[.859,1.169],variants:[0,2]},8627:{dir:n.V,sizes:[.859,1.169],variants:[0,2]},8630:{dir:n.H,sizes:[.869,1.219],variants:[0,2]},8631:{dir:n.H,sizes:[.869,1.219],variants:[0,2]},8636:{dir:n.H,sizes:[.901,1.367],variants:[0,2],stretch:[8636,8636],stretchv:[2,1],HDW:[.503,.003,1]},8637:{dir:n.H,sizes:[.901,1.367],variants:[0,2],stretch:[8637,8636],stretchv:[2,1],HDW:[.503,.003,1.012]},8638:{dir:n.V,sizes:[.901,1.367],variants:[0,2],stretch:[8638,8638],stretchv:[2,1],HDW:[.697,.203,.441]},8639:{dir:n.V,sizes:[.901,1.367],variants:[0,2],stretch:[8639,8639],stretchv:[2,1],HDW:[.697,.203,.441]},8640:{dir:n.H,sizes:[.901,1.367],variants:[0,2],stretch:[0,8636,8640],stretchv:[0,1,3],HDW:[.503,.003,1]},8641:{dir:n.H,sizes:[.901,1.367],variants:[0,2],stretch:[0,8636,8641],stretchv:[0,1,3],HDW:[.503,.003,1.012]},8642:{dir:n.V,sizes:[.901,1.367],variants:[0,2],stretch:[0,8638,8642],stretchv:[0,1,3],HDW:[.703,.197,.441]},8643:{dir:n.V,sizes:[.901,1.367],variants:[0,2],stretch:[0,8639,8643],stretchv:[0,1,3],HDW:[.703,.197,.441]},8644:{dir:n.H,sizes:[.907,1.373],variants:[0,2],stretch:[8644,8644,8644],stretchv:[2,1,3],HDW:[.672,.172,1.018]},8645:{dir:n.V,sizes:[.907,1.373],variants:[0,2],stretch:[8645,8645,8645],stretchv:[2,1,3],HDW:[.703,.203,.896]},8646:{dir:n.H,sizes:[.907,1.373],variants:[0,2],stretch:[8646,8644,8646],stretchv:[2,1,3],HDW:[.672,.172,1.018]},8647:{dir:n.H,sizes:[.886,1.352],variants:[0,2],stretch:[8647,8647],stretchv:[2,1],HDW:[.75,.25,.997]},8648:{dir:n.V,sizes:[.883,1.349],variants:[0,2],stretch:[8648,8648],stretchv:[2,1],HDW:[.679,.203,.992]},8649:{dir:n.H,sizes:[.886,1.352],variants:[0,2],stretch:[0,8647,8649],stretchv:[0,1,3],HDW:[.75,.25,.997]},8650:{dir:n.V,sizes:[.883,1.349],variants:[0,2],stretch:[0,8648,8650],stretchv:[0,1,3],HDW:[.703,.179,.992]},8651:{dir:n.H,sizes:[.907,1.373],variants:[0,2],stretch:[8651,8651,8651],stretchv:[2,1,3],HDW:[.6,.1,1.018]},8652:{dir:n.H,sizes:[.907,1.373],variants:[0,2],stretch:[8652,8651,8652],stretchv:[2,1,3],HDW:[.6,.1,1.018]},8653:{dir:n.H,sizes:[.88,1.346],variants:[0,2],stretch:[8653,8654,0,8653],stretchv:[2,1,0,1],HDW:[.52,.02,.991]},8654:{dir:n.H,sizes:[.957,1.423],variants:[0,2],stretch:[8656,8654,8658,8653],stretchv:[2,1,3,1],HDW:[.52,.02,1.068]},8655:{dir:n.H,sizes:[.88,1.346],variants:[0,2],stretch:[0,8654,8658,8653],stretchv:[0,1,3,1],HDW:[.52,.02,.991]},8656:{dir:n.H,sizes:[.88,1.346],variants:[0,0],schar:[8656,10232],stretch:[8656,8656],stretchv:[2,1],HDW:[.52,.02,1]},8657:{dir:n.V,sizes:[.88,1.346],variants:[0,2],stretch:[8657,8657],stretchv:[2,1],HDW:[.676,.203,.652]},8658:{dir:n.H,sizes:[.88,1.346],variants:[0,0],schar:[8658,10233],stretch:[0,8656,8658],stretchv:[0,1,3],HDW:[.52,.02,1]},8659:{dir:n.V,sizes:[.88,1.346],variants:[0,2],stretch:[0,8657,8659],stretchv:[0,1,3],HDW:[.703,.176,.652]},8660:{dir:n.H,sizes:[.957,1.423],variants:[0,0],schar:[8660,10234],stretch:[8656,8656,8658],stretchv:[2,1,3],HDW:[.52,.02,1]},8661:{dir:n.V,sizes:[.957,1.423],variants:[0,2],stretch:[8657,8657,8659],stretchv:[2,1,3],HDW:[.728,.228,.652]},8662:{dir:n.V,sizes:[.955,1.421],variants:[0,2]},8663:{dir:n.V,sizes:[.955,1.421],variants:[0,2]},8664:{dir:n.V,sizes:[.955,1.421],variants:[0,2]},8665:{dir:n.V,sizes:[.955,1.421],variants:[0,2]},8666:{dir:n.H,sizes:[.904,1.35],variants:[0,2],stretch:[8666,8666],stretchv:[2,1],HDW:[.617,.117,1.015]},8667:{dir:n.H,sizes:[.904,1.35],variants:[0,2],stretch:[0,8666,8667],stretchv:[0,1,3],HDW:[.617,.117,1.015]},8668:{dir:n.H,sizes:[.886,1.352],variants:[0,0],schar:[8668,11059]},8669:{dir:n.H,sizes:[.886,1.352],variants:[0,0],schar:[8669,10239]},8693:{dir:n.V,sizes:[.907,1.373],variants:[0,2],stretch:[8693,8645,8693],stretchv:[2,1,3],HDW:[.703,.203,.896]},8694:{dir:n.H,sizes:[.886,1.352],variants:[0,2],stretch:[0,8694,8694],stretchv:[0,1,3],HDW:[.99,.49,.997]},8719:{dir:n.V,sizes:[1.001,1.401],variants:[0,2]},8720:{dir:n.V,sizes:[1.001,1.401],variants:[0,2]},8721:{dir:n.V,sizes:[1.001,1.401],variants:[0,2]},8722:{dir:n.H,stretch:[0,8722],HDW:[.583,.083,.778]},8730:{dir:n.V,sizes:[1.001,1.201,1.801,2.401,3.001],stretch:[8730,8730,9143],stretchv:[2,1,0],HDW:[.04,.96,1.056],fullExt:[.64,2.44]},8739:{dir:n.V,sizes:[1.001,1.203,1.445,1.735,2.085,2.503,3.005,3.607],stretch:[0,8739],HDW:[.75,.25,.278]},8741:{dir:n.V,sizes:[1.001,1.203,1.445,1.735,2.085,2.503,3.005,3.607],stretch:[0,8741],HDW:[.75,.25,.5]},8747:{dir:n.V,sizes:[1.112,2.223],variants:[0,2]},8748:{dir:n.V,sizes:[1.112,2.223],variants:[0,2]},8749:{dir:n.V,sizes:[1.112,2.223],variants:[0,2]},8750:{dir:n.V,sizes:[1.112,2.223],variants:[0,2]},8751:{dir:n.V,sizes:[1.112,2.223],variants:[0,2]},8752:{dir:n.V,sizes:[1.112,2.223],variants:[0,2]},8753:{dir:n.V,sizes:[1.112,2.223],variants:[0,2]},8754:{dir:n.V,sizes:[1.112,2.223],variants:[0,2]},8755:{dir:n.V,sizes:[1.112,2.223],variants:[0,2]},8801:{dir:n.H,stretch:[0,8801],HDW:[.464,-.036,.778]},8803:{dir:n.H,stretch:[0,8803],HDW:[.561,.061,.778]},8866:{dir:n.V,sizes:[.685,.869],variants:[0,0],schar:[8866,10205]},8867:{dir:n.V,sizes:[.685,.869],variants:[0,0],schar:[8867,10206]},8868:{dir:n.V,sizes:[.685,.869],variants:[0,0],schar:[8868,10201]},8869:{dir:n.V,sizes:[.685,.869],variants:[0,0],schar:[8869,10200]},8896:{dir:n.V,sizes:[1.045,1.394],variants:[0,2]},8897:{dir:n.V,sizes:[1.045,1.394],variants:[0,2]},8898:{dir:n.V,sizes:[1.023,1.357],variants:[0,2]},8899:{dir:n.V,sizes:[1.023,1.357],variants:[0,2]},8968:{dir:n.V,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[9121,9122],HDW:[.75,.25,.667]},8969:{dir:n.V,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[9124,9125],HDW:[.75,.25,.667]},8970:{dir:n.V,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[0,9122,9123],HDW:[.75,.25,.667]},8971:{dir:n.V,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[0,9125,9126],HDW:[.75,.25,.667]},9001:{dir:n.V,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],schar:[9001,10216]},9002:{dir:n.V,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],schar:[9002,10217]},9136:{dir:n.V,sizes:[1.48],stretch:[9127,9130,9133],HDW:[.96,.52,.902]},9137:{dir:n.V,sizes:[1.48],stretch:[9131,9130,9129],HDW:[.96,.52,.902]},9140:{dir:n.H,sizes:[.361,.736,1.111,1.486,1.861,2.236,2.611,2.986],stretch:[9140,9140,9140],stretchv:[2,1,3],HDW:[.772,-.504,.36]},9141:{dir:n.H,sizes:[.361,.736,1.111,1.486,1.861,2.236,2.611,2.986],stretch:[9141,9141,9141],stretchv:[2,1,3],HDW:[-.074,.342,.36]},9180:{dir:n.H,sizes:[.505,1.007,1.509,2.013,2.517,3.021,3.525,4.033],stretch:[9180,9180,9180],stretchv:[2,1,3],HDW:[.796,-.502,.504]},9181:{dir:n.H,sizes:[.505,1.007,1.509,2.013,2.517,3.021,3.525,4.033],stretch:[9181,9181,9181],stretchv:[2,1,3],HDW:[-.072,.366,.504]},9182:{dir:n.H,sizes:[.493,.994,1.495,1.997,2.499,3.001,3.503,4.007],stretch:[9182,175,9182,9182],stretchv:[2,1,3,1],HDW:[.854,-.493,.492]},9183:{dir:n.H,sizes:[.493,.994,1.495,1.997,2.499,3.001,3.503,4.007],stretch:[9183,95,9183,9183],stretchv:[2,1,3,1],HDW:[-.062,.423,.492]},9184:{dir:n.H,sizes:[.547,1.049,1.551,2.057,2.565,3.069,3.575,4.083],stretch:[9184,9184,9184],stretchv:[2,1,3],HDW:[.873,-.605,.546]},9185:{dir:n.H,sizes:[.547,1.049,1.551,2.057,2.565,3.069,3.575,4.083],stretch:[9185,9185,9185],stretchv:[2,1,3],HDW:[-.175,.443,.546]},10214:{dir:n.V,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[10214,10214,10214],stretchv:[2,1,3],HDW:[.75,.25,1.007]},10215:{dir:n.V,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[10215,10215,10215],stretchv:[2,1,3],HDW:[.75,.25,1.007]},10216:{dir:n.V,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001]},10217:{dir:n.V,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001]},10218:{dir:n.V,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001]},10219:{dir:n.V,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001]},10222:{dir:n.V,sizes:[1.025,1.127,1.229,1.483,1.837,2.141,2.445,3.053],stretch:[10222,10222,10222],stretchv:[2,1,3],HDW:[.762,.262,.647]},10223:{dir:n.V,sizes:[1.025,1.127,1.229,1.483,1.837,2.141,2.445,3.053],stretch:[10223,10223,10223],stretchv:[2,1,3],HDW:[.762,.262,.647]},10752:{dir:n.V,sizes:[.987,1.305],variants:[0,2]},10753:{dir:n.V,sizes:[.987,1.305],variants:[0,2]},10754:{dir:n.V,sizes:[.987,1.305],variants:[0,2]},10755:{dir:n.V,sizes:[1.023,1.357],variants:[0,2]},10756:{dir:n.V,sizes:[1.023,1.357],variants:[0,2]},10757:{dir:n.V,sizes:[1.029,1.373],variants:[0,2]},10758:{dir:n.V,sizes:[1.029,1.373],variants:[0,2]},10761:{dir:n.V,sizes:[.981,1.26],variants:[0,2]},10764:{dir:n.V,sizes:[1.112,2.223],variants:[0,2]},10769:{dir:n.V,sizes:[1.112,2.223],variants:[0,2]},11012:{dir:n.H,sizes:[.951,1.397],variants:[0,2],stretch:[8678,8678,8680],stretchv:[2,1,3],HDW:[.52,.02,1.062]}}},5951:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doubleStruck=void 0,e.doubleStruck={}},4955:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.exMd=void 0,e.exMd={95:[-.062,.423,.994],123:[.748,0,.902],175:[.854,-.493,.994],773:[.67,-.63,.19],8400:[.711,-.521,.139],8592:[.51,.01,.337],8593:[.337,0,.5],8602:[.51,.01,.386],8617:[.55,.05,.337],8636:[.503,.003,.341],8638:[.341,0,.441],8639:[.341,0,.441],8644:[.672,.172,.343],8645:[.343,0,.896],8647:[.75,.25,.337],8648:[.337,0,.992],8651:[.6,.1,.343],8653:[.52,.02,.384],8654:[.52,.02,.102],8656:[.52,.02,.336],8657:[.336,0,.652],8666:[.617,.117,.337],8694:[.99,.49,.337],8730:[.64,0,1.056],9140:[.772,-.504,.995],9141:[-.074,.342,.995],9180:[.796,-.502,.994],9181:[-.072,.366,.994],9182:[.854,-.622,2.003],9183:[-.192,.423,2.003],9184:[.873,-.605,1.36],9185:[-.175,.443,1.36],10214:[1,0,1.007],10215:[1,0,1.007],10222:[.998,0,.647],10223:[.998,0,.647]}},3854:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.frakturBold=void 0,e.frakturBold={}},1672:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fraktur=void 0,e.fraktur={}},8607:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.italic=void 0,e.italic={32:[0,0,.358],33:[.716,0,.307,{ic:.068}],34:[.705,-.423,.401,{ic:.048}],35:[.694,.194,.818,{ic:.01}],36:[.75,.056,.5,{ic:.082}],37:[.75,.056,.818,{ic:.028}],38:[.716,.022,.767,{ic:.037}],39:[.705,-.423,.307,{ic:.048}],40:[.75,.25,.409,{ic:.107}],41:[.75,.25,.409],42:[.75,-.319,.511,{ic:.072}],43:[.557,.057,.767],44:[.106,.193,.307],45:[.243,-.187,.358],46:[.106,0,.307],47:[.75,.25,.511,{ic:.105}],58:[.431,0,.307],59:[.431,.193,.307],60:[.54,.04,.778,{ic:.047}],61:[.367,-.133,.767,{ic:.01}],62:[.54,.04,.778],63:[.716,0,.511,{ic:.04}],64:[.705,.011,.767,{ic:.022}],91:[.75,.25,.307,{ic:.139}],92:[.75,.25,.5],93:[.75,.25,.307,{ic:.052}],94:[.744,-.562,.556,{ic:.151}],95:[-.11,.14,.743],96:[.696,-.505,.511],123:[.75,.25,.5,{ic:.113}],124:[.75,.25,.278,{ic:.064}],125:[.75,.25,.5],126:[.307,-.193,.556,{ic:.071}],160:[0,0,.511],168:[.649,-.553,.511,{ic:.032}],175:[.616,-.586,.511,{ic:.061}],176:[.683,-.428,.383,{ic:.079}],180:[.696,-.505,.511,{ic:.028}],305:[.442,.011,.322],567:[.442,.205,.384,{sk:.083}],710:[.683,-.518,.511,{ic:.018}],711:[.683,-.518,.511,{ic:.054}],713:[.616,-.586,.511,{ic:.061}],714:[.696,-.505,.511,{ic:.028}],715:[.696,-.505,.511],728:[.686,-.516,.511,{ic:.052}],729:[.654,-.548,.307,{ic:.051}],730:[.705,-.529,.831],732:[.651,-.55,.511,{ic:.057}],768:[.696,-.505,0,{dx:.137}],769:[.696,-.505,0,{ic:.028,dx:.077}],770:[.683,-.518,0,{ic:.018,dx:.123}],771:[.651,-.55,0,{ic:.057,dx:.105}],772:[.616,-.586,0,{ic:.061,dx:.105}],774:[.686,-.516,0,{ic:.052,dx:.089}],775:[.654,-.548,0,{dx:.105}],776:[.649,-.553,0,{ic:.032,dx:.105}],778:[.705,-.529,0,{dx:.101}],780:[.683,-.518,0,{ic:.054,dx:.087}],8208:[.243,-.187,.358,{ic:.001}],8209:[.243,-.187,.358,{ic:.001}],8211:[.277,-.255,.511,{ic:.04}],8212:[.277,-.255,1.022,{ic:.014}],8214:[.75,.25,.398,{ic:.064}],8216:[.693,-.394,.307,{ic:.053}],8217:[.694,-.395,.307,{ic:.066}],8220:[.693,-.394,.49,{ic:.053}],8221:[.694,-.395,.49,{ic:.064}],8230:[.106,0,.684],8260:[.683,0,.603,{ic:.09}],8364:[.705,.022,.576,{ic:.123}],8486:[.705,0,.716,{ic:.043}],8487:[.684,.021,.716,{ic:.071}],8592:[.512,.011,.971],8593:[.694,.194,.512,{ic:.07}],8594:[.513,.01,.971],8595:[.694,.194,.512],8722:[.27,-.23,.767],8730:[.735,.104,.46,{ic:.226}],8734:[.456,.025,.92,{ic:.022}],8738:[.557,.057,.767,{ic:.044}],9001:[.751,.249,.409,{ic:.105}],9002:[.751,.249,.409],9702:[.379,-.081,.767],10214:[.751,.249,.422,{ic:.138}],10215:[.751,.249,.422,{ic:.052}]}},514:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.largeop=void 0,e.largeop={40:[.847,.347,.458],41:[.847,.347,.458],47:[1.108,.608,.768],91:[.85,.35,.417],92:[1.108,.608,.768],93:[.85,.35,.417],123:[.85,.35,.583],125:[.85,.35,.583],770:[.746,-.572,.768],771:[.753,-.548,.778],774:[.742,-.578,.784],780:[.74,-.566,.768],8260:[1.108,.608,.768],8719:[.95,.45,1.278],8720:[.95,.45,1.278],8721:[.95,.45,1.444],8725:[.608,.107,.577],8726:[.608,.107,.577],8730:[1.15,.65,1,{ic:.02}],8739:[.972,.472,.278],8741:[.972,.472,.364],8747:[1.361,.861,.669,{ic:.33}],8748:[1.361,.861,1.089,{ic:.33}],8749:[1.361,.861,1.509,{ic:.33}],8750:[1.361,.861,.669,{ic:.33}],8751:[1.361,.861,1.089,{ic:.33}],8752:[1.361,.861,1.509,{ic:.33}],8753:[1.361,.861,.669,{ic:.33}],8754:[1.361,.861,.669,{ic:.33}],8755:[1.361,.861,.669,{ic:.33}],8896:[.958,.436,1.111],8897:[.936,.458,1.111],8898:[.939,.417,1.111],8899:[.917,.439,1.111],8968:[.85,.35,.472],8969:[.85,.35,.472],8970:[.85,.35,.472],8971:[.85,.35,.472],9140:[.735,-.541,1.11],9141:[-.111,.305,1.11],9180:[.761,-.511,1.508],9181:[-.081,.331,1.508],9182:[.818,-.509,1.494],9183:[-.078,.387,1.494],9184:[.854,-.612,1.55],9185:[-.182,.424,1.55],10145:[.468,-.032,1.423],10214:[.85,.35,.48],10215:[.85,.35,.48],10216:[.85,.35,.472],10217:[.85,.35,.472],10218:[.85,.35,.682],10219:[.85,.35,.682],10222:[.864,.364,.323],10223:[.864,.364,.323],10752:[.902,.402,1.511],10753:[.902,.402,1.511],10754:[.902,.402,1.511],10755:[.917,.439,1.111],10756:[.917,.439,1.111],10757:[.936,.436,1.111],10758:[.936,.436,1.111],10761:[.88,.38,1.371],10764:[1.361,.861,1.929,{ic:.33}],10769:[1.361,.861,.669,{ic:.33}]}},3589:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lfTp=void 0,e.lfTp={8400:[.711,-.601,.208],8406:[.711,-.521,.205],8429:[-.171,.281,.208],8430:[-.091,.281,.205],8592:[.51,.01,.507],8593:[.505,0,.5],8602:[.51,.01,.386],8606:[.51,.01,.507],8607:[.505,0,.572],8611:[.51,.01,.58],8614:[.51,.01,.499],8615:[.498,0,.632],8618:[.55,-.23,.507],8620:[.55,.05,.507],8636:[.503,-.23,.513],8637:[.27,.003,.512],8638:[.513,0,.441],8639:[.513,0,.441],8644:[.432,.172,.515],8645:[.514,0,.896],8646:[.672,-.068,.514],8647:[.75,.25,.507],8648:[.505,0,.992],8651:[.6,-.133,.515],8652:[.367,.1,.514],8653:[.52,.02,.384],8656:[.52,.02,.504],8657:[.504,0,.652],8666:[.617,.117,.506],8693:[.515,0,.896],8730:[.62,0,1.056,{ic:.02}],9140:[.772,-.504,1.493],9141:[-.074,.342,1.493],9180:[.796,-.502,2.016],9181:[-.072,.366,2.016],9182:[.724,-.493,1.002],9183:[-.062,.294,1.002],9184:[.873,-.605,2.041],9185:[-.175,.443,2.041],10214:[1,0,1.007],10215:[1,0,1.007],10222:[1.526,0,.647],10223:[1.526,0,.647],11057:[.99,.49,.507]}},7286:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.monospace=void 0,e.monospace={}},3389:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normal=void 0,e.normal={32:[0,0,.332],33:[.716,0,.278],34:[.705,-.423,.374],35:[.694,.194,.833],36:[.75,.056,.5],37:[.75,.056,.833],38:[.716,.022,.778],39:[.705,-.423,.278],40:[.748,.248,.389],41:[.748,.248,.389],42:[.75,-.32,.5,{sk:.148}],43:[.583,.083,.778],44:[.106,.193,.278],45:[.245,-.187,.333],46:[.106,0,.278],47:[.75,.25,.5],48:[.666,.022,.5],49:[.666,0,.5],50:[.666,0,.5,{sk:-.01}],51:[.666,.022,.5],52:[.677,0,.5,{sk:.103}],53:[.666,.022,.5],54:[.666,.022,.5,{sk:.068}],55:[.676,.022,.5,{sk:-.147}],56:[.666,.022,.5,{sk:.011}],57:[.666,.022,.5],58:[.431,0,.278],59:[.431,.193,.278],60:[.547,.047,.778],61:[.367,-.133,.778],62:[.547,.047,.778],63:[.705,0,.472],64:[.705,.011,.778],65:[.716,0,.75],66:[.683,0,.708,{sk:-.098}],67:[.705,.022,.722,{sk:.146}],68:[.683,0,.764,{sk:-.139}],69:[.68,0,.681,{sk:-.025}],70:[.68,0,.653,{sk:-.018}],71:[.705,.022,.785,{sk:.115}],72:[.683,0,.75],73:[.683,0,.361],74:[.683,.022,.514,{sk:.06}],75:[.683,0,.778,{sk:-.011}],76:[.683,0,.625,{sk:-.119}],77:[.683,0,.917],78:[.683,0,.75],79:[.705,.022,.778],80:[.683,0,.681,{sk:-.09}],81:[.705,.194,.778],82:[.683,.022,.736,{sk:-.134}],83:[.705,.022,.556,{sk:.052}],84:[.677,0,.722],85:[.683,.022,.75],86:[.683,.022,.75],87:[.683,.022,1.028],88:[.683,0,.75,{sk:-.014}],89:[.683,0,.75],90:[.683,0,.611,{sk:.011}],91:[.75,.25,.278],92:[.75,.25,.5],93:[.75,.25,.278],94:[.744,-.562,.556,{ic:.005}],95:[-.1,.14,.333],96:[.698,-.51,.5,{sk:-.031}],97:[.448,.011,.5,{sk:-.036}],98:[.694,.011,.556,{sk:-.178}],99:[.448,.011,.444,{sk:.027}],100:[.694,.011,.556,{sk:.099}],101:[.448,.011,.444,{sk:.014}],102:[.705,0,.306,{ic:.051,sk:.071}],103:[.453,.206,.5,{sk:.082}],104:[.694,0,.556,{sk:-.174}],105:[.657,0,.278],106:[.657,.205,.306],107:[.694,0,.528,{sk:-.164}],108:[.694,0,.278,{sk:-.034}],109:[.442,0,.833,{sk:-.067}],110:[.442,0,.556,{sk:-.067}],111:[.448,.011,.5],112:[.442,.194,.556,{sk:-.076}],113:[.442,.194,.528,{sk:.054}],114:[.442,0,.392,{sk:-.015}],115:[.448,.011,.394,{sk:.035}],116:[.615,.011,.389,{sk:-.034}],117:[.442,.011,.556,{sk:-.033}],118:[.431,.011,.528],119:[.431,.011,.722],120:[.431,0,.528],121:[.431,.205,.528],122:[.431,0,.444],123:[.75,.25,.5],124:[.75,.25,.278],125:[.75,.25,.5],126:[.307,-.193,.556],160:[0,0,.332],163:[.683,.035,.75],165:[.683,0,.75],167:[.705,.205,.444],168:[.652,-.557,.5],172:[.367,-.133,.667],175:[.62,-.589,.5],176:[.683,-.406,.375],177:[.583,.084,.778],180:[.698,-.51,.5,{sk:.031}],181:[.441,.194,.556],182:[.694,.194,.611],183:[.303,-.197,.278],215:[.491,-.009,.778],240:[.695,.011,.5],247:[.504,.004,.778],305:[.442,0,.278],567:[.442,.205,.306],710:[.692,-.516,.5],711:[.692,-.516,.5],713:[.62,-.589,.5],714:[.698,-.51,.5,{sk:.031}],715:[.698,-.51,.5,{sk:-.031}],728:[.69,-.518,.5],729:[.657,-.551,.278],730:[.705,-.529,.75],732:[.651,-.558,.5],768:[.733,-.545,0,{dx:.295,sk:-.295}],769:[.733,-.545,0,{dx:.233,sk:-.233}],770:[.734,-.587,0,{dx:.264,sk:-.264}],771:[.746,-.554,0,{dx:.264,sk:-.264}],772:[.64,-.609,0,{dx:.264,sk:-.263}],773:[.67,-.63,0,{dx:.264,sk:-.264}],774:[.729,-.592,0,{dx:.264,sk:-.264}],775:[.677,-.571,0,{dx:.265,sk:-.265}],776:[.672,-.577,0,{dx:.264,sk:-.261}],778:[.725,-.549,0,{dx:.264,sk:-.264}],780:[.725,-.578,0,{dx:.264,sk:-.264}],824:[.75,.25,0,{sk:-.263}],913:[.716,0,.75],914:[.683,0,.708,{sk:-.068}],915:[.68,0,.625,{sk:-.015}],916:[.716,0,.833],917:[.68,0,.681,{sk:-.022}],918:[.683,0,.611,{sk:.011}],919:[.683,0,.75],920:[.705,.022,.778],921:[.683,0,.361],922:[.683,0,.778,{sk:-.011}],923:[.716,0,.694],924:[.683,0,.917],925:[.683,0,.75],926:[.677,0,.667],927:[.705,.022,.778],928:[.68,0,.75],929:[.683,0,.681,{sk:-.058}],931:[.683,0,.722,{sk:-.011}],932:[.677,0,.722],933:[.705,0,.778],934:[.683,0,.722],935:[.683,0,.75,{sk:-.014}],936:[.683,0,.778],937:[.705,0,.722],945:[.442,.011,.641,{sk:.035}],946:[.706,.194,.558],947:[.442,.215,.586],948:[.712,.011,.474],949:[.453,.022,.535,{sk:-.024}],950:[.697,.205,.53,{sk:-.041}],951:[.442,.216,.53,{sk:-.047}],952:[.705,.011,.488],953:[.442,.011,.308,{sk:-.056}],954:[.442,.011,.53,{sk:-.018}],955:[.694,.013,.537,{ic:.026,sk:-.202}],956:[.442,.216,.53,{sk:-.028}],957:[.442,0,.502,{sk:-.042}],958:[.697,.205,.53,{sk:-.069}],959:[.448,.011,.5],960:[.431,.011,.586,{sk:-.014}],961:[.442,.216,.488],962:[.442,.108,.474],963:[.431,.011,.599],964:[.431,.012,.53,{sk:-.033}],965:[.442,.011,.53,{sk:-.014}],966:[.442,.218,.641,{sk:-.018}],967:[.442,.205,.641,{sk:-.053}],968:[.694,.205,.641,{sk:.028}],969:[.442,.011,.641],977:[.705,.011,.53,{sk:.026}],981:[.694,.205,.641],982:[.431,.011,.836,{sk:-.014}],1008:[.442,.012,.624,{sk:-.015}],1009:[.442,.194,.488],1012:[.705,.022,.778],1013:[.431,.011,.414,{ic:.007,sk:.03}],8192:[0,0,.5],8193:[0,0,1],8194:[0,0,.5],8195:[0,0,1],8196:[0,0,.333],8197:[0,0,.25],8198:[0,0,.167],8199:[0,0,.5],8200:[0,0,.25],8201:[0,0,.2],8202:[0,0,.1],8203:[0,0,0],8208:[.245,-.187,.333],8209:[.245,-.187,.333],8210:[.342,-.302,.68],8211:[.277,-.255,.5],8212:[.277,-.255,1],8213:[.27,-.23,1.152],8214:[.75,.25,.398],8216:[.693,-.394,.278],8217:[.694,-.395,.278],8220:[.693,-.394,.472],8221:[.694,-.395,.472],8224:[.705,.216,.444],8225:[.705,.205,.444],8230:[.106,0,.837],8239:[0,0,.2],8242:[.748,-.43,.311],8243:[.748,-.43,.511],8244:[.748,-.43,.711],8245:[.748,-.43,.311],8246:[.748,-.43,.511],8247:[.748,-.43,.711],8260:[.75,.25,.5],8279:[.748,-.43,.911],8287:[0,0,.222],8288:[0,0,0],8289:[0,0,0],8290:[0,0,0],8291:[0,0,0],8292:[0,0,0],8364:[.705,.022,.627],8400:[.711,-.601,0,{dx:.264,sk:-.264}],8401:[.711,-.601,0,{dx:.264,sk:-.264}],8402:[.75,.25,0,{sk:-.264}],8406:[.711,-.521,0,{dx:.264,sk:-.264}],8407:[.711,-.521,0,{dx:.264,sk:-.264}],8411:[.696,-.604,0,{ic:.002,dx:.264,sk:-.266}],8412:[.696,-.604,0,{ic:.112,dx:.264,sk:-.348}],8417:[.711,-.521,0,{dx:.264,sk:-.264}],8428:[-.171,.281,0,{dx:.264,sk:-.264}],8429:[-.171,.281,0,{dx:.264,sk:-.264}],8430:[-.091,.281,0,{dx:.264,sk:-.264}],8431:[-.091,.281,0,{dx:.264,sk:-.264}],8455:[.705,.022,.53],8462:[.694,.011,.576,{sk:-.075}],8463:[.694,.011,.576],8486:[.705,0,.722],8487:[.684,.021,.722],8490:[.683,0,.778,{sk:-.011}],8491:[.892,0,.75],8498:[.694,0,.555],8501:[.693,0,.611],8502:[.72,.04,.604],8503:[.721,.03,.528],8504:[.71,.017,.574],8592:[.51,.01,1],8593:[.679,.203,.5],8594:[.51,.01,1],8595:[.703,.179,.5],8596:[.51,.01,1],8597:[.757,.257,.5],8598:[.714,.203,1],8599:[.714,.203,1],8600:[.703,.214,1],8601:[.703,.214,1],8602:[.51,.01,.997],8603:[.51,.01,.997],8606:[.51,.01,1.017],8608:[.51,.01,1.017],8610:[.51,.01,1.192],8611:[.51,.01,1.192],8612:[.51,.01,.977],8614:[.51,.01,.977],8617:[.55,.01,.997],8618:[.55,.01,.997],8619:[.55,.05,.997],8620:[.55,.05,.997],8622:[.51,.01,.996],8630:[.562,-.229,.98],8631:[.562,-.229,.98],8634:[.68,.059,.771],8635:[.68,.059,.771],8636:[.503,-.23,1],8637:[.27,.003,1.012],8638:[.697,.203,.441],8639:[.697,.203,.441],8640:[.503,-.23,1],8641:[.27,.003,1.012],8642:[.703,.197,.441],8643:[.703,.197,.441],8644:[.672,.172,1.018],8645:[.703,.203,.896],8646:[.672,.172,1.018],8647:[.75,.25,.997],8648:[.679,.203,.992],8649:[.75,.25,.997],8650:[.703,.179,.992],8651:[.6,.1,1.018],8652:[.6,.1,1.018],8653:[.52,.02,.991],8654:[.52,.02,1.068],8655:[.52,.02,.991],8656:[.52,.02,1],8657:[.676,.203,.611],8658:[.52,.02,1],8659:[.703,.176,.611],8660:[.52,.02,1],8661:[.728,.228,.611],8666:[.617,.117,1.015],8667:[.617,.117,1.015],8672:[.437,-.063,1.334],8674:[.437,-.063,1.359],8693:[.703,.203,.896],8694:[.99,.49,.997],8704:[.684,-.003,.666],8705:[.684,0,.556],8706:[.716,.022,.586],8707:[.684,0,.556],8708:[.789,.105,.556],8709:[.772,.078,.5],8710:[.716,0,.833],8711:[.683,.033,.833],8712:[.543,.043,.667],8713:[.73,.23,.667],8715:[.543,.043,.667],8716:[.73,.23,.667],8718:[.554,0,.666],8719:[.75,.25,.944],8720:[.75,.25,.944],8721:[.75,.25,1.056],8722:[.583,.083,.778],8723:[.584,.083,.778],8724:[.785,.083,.778],8725:[.603,.103,.568],8726:[.603,.103,.568],8727:[.462,-.039,.5],8728:[.4,-.1,.412],8729:[.445,-.055,.5],8730:[.04,.96,.833,{ic:.02}],8733:[.442,.011,.778],8734:[.442,.011,1],8735:[.679,-.013,.778],8736:[.724,-.013,.778],8737:[.724,.109,.778],8738:[.562,.062,.778],8739:[.75,.25,.278],8740:[.75,.25,.388],8741:[.75,.25,.5],8742:[.75,.25,.556],8743:[.602,.02,.667],8744:[.601,.021,.667],8745:[.604,.02,.667],8746:[.604,.02,.667],8747:[.805,.306,.545,{ic:.12}],8748:[.805,.306,.915,{ic:.12}],8749:[.805,.306,1.285,{ic:.12}],8750:[.805,.306,.615,{ic:.05}],8751:[.805,.306,.985,{ic:.05}],8752:[.805,.306,1.355,{ic:.05}],8753:[.805,.306,.675,{ic:.02}],8754:[.805,.306,.662,{ic:.02}],8755:[.805,.306,.662,{ic:.02}],8756:[.416,-.084,.516],8757:[.416,-.084,.516],8758:[.422,-.078,.278],8759:[.422,-.078,.516],8760:[.504,-.23,.778],8761:[.422,-.078,.906],8764:[.366,-.134,.773],8765:[.366,-.134,.773],8766:[.466,-.034,.901],8767:[.492,-.008,.778],8768:[.583,.083,.28],8769:[.482,-.018,.773],8770:[.38,-.032,.778],8771:[.468,-.12,.778],8772:[.603,.103,.778],8773:[.552,-.036,.778],8774:[.614,.048,.778],8775:[.603,.103,.778],8776:[.457,-.043,.773],8777:[.603,.103,.773],8778:[.541,-.036,.778],8779:[.541,.041,.773],8780:[.541,-.036,.778],8781:[.498,-.002,.778],8784:[.601,-.133,.778],8788:[.422,-.078,.906],8789:[.422,-.078,.906],8797:[.793,-.133,.778],8799:[.803,-.133,.778],8800:[.73,.23,.778],8801:[.464,-.036,.778],8802:[.73,.23,.778],8803:[.561,.061,.778],8804:[.631,.119,.778],8805:[.631,.119,.778],8806:[.715,.203,.778],8807:[.715,.203,.778],8808:[.715,.287,.778],8809:[.715,.287,.778],8810:[.547,.047,1],8811:[.547,.047,1],8812:[.77,.27,.434],8813:[.73,.23,.778],8814:[.73,.23,.778],8815:[.73,.23,.778],8816:[.73,.23,.778],8817:[.73,.23,.778],8818:[.636,.125,.776],8819:[.636,.125,.776],8820:[.691,.191,.776],8821:[.691,.191,.776],8822:[.737,.237,.778],8823:[.737,.237,.778],8824:[.776,.276,.778],8825:[.776,.276,.778],8826:[.547,.047,.778],8827:[.547,.047,.778],8828:[.639,.139,.738],8829:[.639,.139,.738],8830:[.682,.17,.773],8831:[.682,.17,.773],8832:[.73,.23,.778],8833:[.73,.23,.778],8834:[.543,.043,.778],8835:[.543,.043,.778],8836:[.73,.23,.778],8837:[.73,.23,.778],8838:[.627,.127,.778],8839:[.627,.127,.778],8840:[.73,.23,.778],8841:[.73,.23,.778],8842:[.627,.211,.778],8843:[.627,.211,.778],8845:[.604,.02,.667],8846:[.604,.02,.667],8847:[.543,.043,.778],8848:[.543,.043,.778],8849:[.627,.127,.778],8850:[.627,.127,.778],8851:[.604,.02,.667],8852:[.604,.02,.667],8853:[.592,.092,.778],8854:[.592,.092,.778],8855:[.592,.092,.778],8856:[.592,.092,.778],8857:[.592,.092,.778],8858:[.592,.092,.796],8859:[.592,.092,.796],8860:[.592,.092,.796],8861:[.592,.092,.796],8862:[.583,.083,.778],8863:[.583,.083,.778],8864:[.583,.083,.778],8865:[.583,.083,.778],8866:[.684,0,.611],8867:[.684,0,.611],8868:[.664,.02,.778],8869:[.684,0,.778],8870:[.684,0,.445],8871:[.684,0,.445],8872:[.684,0,.612],8873:[.684,0,.673],8874:[.684,0,.841],8875:[.684,0,.653],8876:[.684,0,.565],8877:[.684,0,.732],8878:[.684,0,.793],8879:[.684,0,.773],8882:[.547,.047,.738],8883:[.547,.047,.738],8884:[.605,.105,.738],8885:[.605,.105,.738],8890:[.664,.02,.778],8896:[.78,.264,.833],8897:[.764,.28,.833],8898:[.772,.25,.833],8899:[.75,.272,.833],8900:[.48,-.02,.5],8901:[.303,-.197,.278],8902:[.486,-.014,.5],8904:[.505,.005,.623],8905:[.505,.005,.623],8906:[.505,.005,.623],8907:[.505,.005,.623],8908:[.505,.005,.623],8909:[.468,-.12,.778],8910:[.584,.02,.733],8911:[.584,.02,.733],8930:[.73,.23,.778],8931:[.73,.23,.778],8938:[.73,.23,.738],8939:[.73,.23,.738],8940:[.73,.23,.738],8941:[.73,.23,.738],8942:[.582,.082,.218],8943:[.303,-.197,.776],8944:[.5,0,.613],8945:[.5,0,.613],8968:[.75,.25,.444],8969:[.75,.25,.444],8970:[.75,.25,.444],8971:[.75,.25,.444],8976:[.367,-.133,.667],8985:[.367,-.133,.667],8988:[.77,-.49,.392],8989:[.77,-.49,.392],8990:[.01,.27,.392],8991:[.01,.27,.392],8992:[1.344,0,1.185],8993:[1.322,.022,1.185],8994:[.381,-.13,1],8995:[.371,-.133,1],9001:[.75,.25,.389],9002:[.75,.25,.389],9115:[1.495,0,.875],9116:[.498,0,.875],9117:[1.495,0,.875],9118:[1.495,0,.875],9119:[.498,0,.875],9120:[1.495,0,.875],9121:[1.5,0,.667],9122:[1,0,.667],9123:[1.5,0,.667],9124:[1.5,0,.667],9125:[1,0,.667],9126:[1.5,0,.667],9127:[.75,0,.902],9128:[1.5,0,.902],9129:[.75,0,.902],9130:[.748,0,.902],9131:[.75,0,.902],9132:[1.5,0,.902],9133:[.75,0,.902],9136:[.96,.52,.902],9137:[.96,.52,.902],9138:[.846,0,1.576],9139:[.847,0,1.576],9140:[.726,-.552,.36],9141:[-.122,.296,.36],9143:[1.82,0,1.056],9168:[.642,0,.333],9180:[.727,-.572,.504],9181:[-.142,.297,.504],9182:[.783,-.539,.492],9183:[-.109,.353,.492],9184:[.829,-.657,.546],9185:[-.227,.399,.546],9632:[.583,.083,.778],9633:[.583,.083,.778],9642:[.358,-.142,.328],9643:[.358,-.142,.328],9650:[.741,.005,.968],9651:[.741,.005,.968],9652:[.741,.005,.968],9653:[.741,.005,.968],9654:[.678,.178,.858],9655:[.678,.178,.858],9656:[.678,.178,.858],9657:[.678,.178,.858],9660:[.505,.241,.968],9661:[.505,.241,.968],9662:[.505,.241,.968],9663:[.505,.241,.968],9664:[.678,.178,.858],9665:[.678,.178,.858],9666:[.678,.178,.858],9667:[.678,.178,.858],9674:[.61,.11,.572],9675:[.592,.092,.796],9679:[.592,.092,.796],9702:[.445,-.055,.5],9711:[.701,.201,1.013],9723:[.583,.083,.778],9724:[.583,.083,.778],10072:[.694,.083,.525],10200:[.684,.184,.946],10201:[.684,.184,.986],10205:[.684,.184,.946],10206:[.684,.184,.946],10214:[.75,.25,.41],10215:[.75,.25,.41],10216:[.75,.25,.389],10217:[.75,.25,.389],10218:[.75,.25,.57],10219:[.75,.25,.57],10222:[.762,.262,.287],10223:[.762,.262,.287],10229:[.51,.01,1.463],10230:[.51,.01,1.463],10231:[.51,.01,1.442],10232:[.52,.02,1.457],10233:[.52,.02,1.457],10234:[.52,.02,1.534],10235:[.51,.01,1.443],10236:[.51,.01,1.443],10237:[.52,.02,1.437],10238:[.52,.02,1.437],10744:[.75,.25,.5],10745:[.75,.25,.5],10752:[.743,.243,1.111],10753:[.743,.243,1.111],10754:[.743,.243,1.111],10755:[.75,.272,.833],10756:[.75,.272,.833],10757:[.764,.264,.833],10758:[.764,.264,.833],10761:[.74,.24,1.092],10764:[.805,.306,1.655,{ic:.12}],10769:[.805,.306,.675,{ic:.02}],10799:[.496,-.004,.778],10815:[.683,0,.75],10877:[.634,.134,.778],10878:[.634,.134,.778],10885:[.717,.205,.776],10886:[.717,.205,.776],10887:[.667,.167,.778],10888:[.667,.167,.778],10889:[.749,.321,.776],10890:[.717,.289,.776],10891:[.973,.473,.778],10892:[.973,.473,.778],10901:[.629,.129,.778],10902:[.629,.129,.778],10927:[.631,.119,.778],10928:[.631,.119,.778],10933:[.753,.276,.777],10934:[.753,.276,.777],10935:[.762,.287,.777],10936:[.762,.287,.777],10937:[.762,.329,.777],10938:[.762,.329,.777],10949:[.753,.214,.777],10950:[.753,.214,.777],10955:[.785,.375,.777],10956:[.785,.375,.777],119808:[.698,0,.869],119809:[.686,0,.818,{sk:-.109}],119810:[.697,.011,.831,{sk:.165}],119811:[.686,0,.882,{sk:-.158}],119812:[.68,0,.756,{sk:-.028}],119813:[.68,0,.724,{sk:-.02}],119814:[.697,.011,.904,{sk:.127}],119815:[.686,0,.9],119816:[.686,0,.436],119817:[.686,.011,.594,{sk:.051}],119818:[.686,0,.901,{sk:-.013}],119819:[.686,0,.692,{sk:-.114}],119820:[.686,0,1.092],119821:[.686,0,.9],119822:[.697,.011,.864],119823:[.686,0,.786,{sk:-.1}],119824:[.697,.194,.864],119825:[.686,.011,.863,{sk:-.15}],119826:[.697,.011,.639,{sk:.054}],119827:[.675,0,.8],119828:[.686,.011,.885],119829:[.686,.008,.869],119830:[.686,.008,1.189],119831:[.686,0,.869,{sk:-.017}],119832:[.686,0,.869],119833:[.686,0,.703,{sk:.013}],119834:[.453,.006,.559,{sk:-.049}],119835:[.694,.006,.639,{sk:-.194}],119836:[.453,.006,.511,{sk:.043}],119837:[.694,.006,.639,{sk:.124}],119838:[.453,.006,.527,{sk:.018}],119839:[.7,0,.351,{ic:.086,sk:.069}],119840:[.455,.201,.575,{sk:.07}],119841:[.694,0,.639,{sk:-.185}],119842:[.685,0,.319],119843:[.685,.2,.351,{sk:.013}],119844:[.694,0,.607,{sk:-.177}],119845:[.694,0,.319,{sk:-.024}],119846:[.45,0,.958,{sk:-.061}],119847:[.45,0,.639,{sk:-.063}],119848:[.453,.006,.575],119849:[.45,.194,.639,{sk:-.079}],119850:[.45,.194,.607,{sk:.066}],119851:[.45,0,.474,{sk:-.021}],119852:[.453,.006,.454,{sk:.038}],119853:[.635,.006,.447,{sk:-.029}],119854:[.45,.006,.639,{sk:-.024}],119855:[.444,.004,.607],119856:[.444,.004,.831],119857:[.444,0,.607],119858:[.444,.2,.607],119859:[.444,0,.511],119860:[.716,0,.75,{sk:.175}],119861:[.683,0,.759,{sk:.041}],119862:[.705,.022,.715,{ic:.045,sk:.205}],119863:[.683,0,.828,{sk:.013}],119864:[.68,0,.738,{ic:.026,sk:.095}],119865:[.68,0,.643,{ic:.106,sk:.074}],119866:[.705,.022,.786,{sk:.203}],119867:[.683,0,.831,{ic:.05,sk:.089}],119868:[.683,0,.44,{ic:.057,sk:.084}],119869:[.683,.022,.555,{ic:.078,sk:.151}],119870:[.683,0,.849,{ic:.04,sk:.09}],119871:[.683,0,.681,{sk:.019}],119872:[.683,0,.97,{ic:.074,sk:.085}],119873:[.683,0,.803,{ic:.078,sk:.082}],119874:[.705,.022,.763,{sk:.114}],119875:[.683,0,.642,{ic:.112,sk:.011}],119876:[.705,.194,.791,{sk:.1}],119877:[.683,.022,.759,{sk:.018}],119878:[.705,.022,.613,{ic:.032,sk:.168}],119879:[.677,0,.584,{ic:.12,sk:.016}],119880:[.683,.022,.683,{ic:.077,sk:.022}],119881:[.683,.022,.583,{ic:.186,sk:-.018}],119882:[.683,.022,.944,{ic:.104}],119883:[.683,0,.828,{ic:.023,sk:.097}],119884:[.683,0,.581,{ic:.181,sk:-.027}],119885:[.683,0,.683,{ic:.04,sk:.114}],119886:[.442,.011,.529,{sk:.022}],119887:[.694,.011,.429,{sk:-.05}],119888:[.442,.011,.433,{sk:.101}],119889:[.694,.011,.52,{sk:.182}],119890:[.442,.011,.466,{sk:.067}],119891:[.705,.205,.49,{ic:.062,sk:.172}],119892:[.442,.205,.477,{sk:.077}],119894:[.661,.011,.345,{sk:.074}],119895:[.661,.205,.412,{sk:.153}],119896:[.694,.011,.521,{sk:-.048}],119897:[.694,.011,.298,{sk:.035}],119898:[.442,.011,.878,{sk:-.035}],119899:[.442,.011,.6,{sk:-.035}],119900:[.442,.011,.485,{sk:.072}],119901:[.442,.194,.503],119902:[.442,.194,.446,{ic:.006,sk:.121}],119903:[.442,.011,.451,{sk:.021}],119904:[.442,.011,.469,{sk:.061}],119905:[.626,.011,.361,{sk:.044}],119906:[.442,.011,.572,{sk:.019}],119907:[.442,.011,.485,{sk:.051}],119908:[.442,.011,.716,{sk:.047}],119909:[.442,.011,.572,{sk:.043}],119910:[.442,.205,.49,{sk:.059}],119911:[.442,.011,.465,{ic:.002,sk:.102}],119912:[.711,0,.869,{sk:.173}],119913:[.686,0,.866,{sk:.044}],119914:[.703,.017,.817,{ic:.038,sk:.221}],119915:[.686,0,.938],119916:[.68,0,.81,{ic:.015,sk:.099}],119917:[.68,0,.689,{ic:.12,sk:.072}],119918:[.703,.017,.887,{sk:.214}],119919:[.686,0,.982,{ic:.045,sk:.091}],119920:[.686,0,.511,{ic:.055,sk:.086}],119921:[.686,.017,.631,{ic:.063,sk:.153}],119922:[.686,0,.971,{ic:.032,sk:.095}],119923:[.686,0,.756,{sk:.018}],119924:[.686,0,1.142,{ic:.074,sk:.086}],119925:[.686,0,.95,{ic:.077,sk:.083}],119926:[.703,.017,.837,{sk:.11}],119927:[.686,0,.723,{ic:.126,sk:.012}],119928:[.703,.194,.869,{sk:.093}],119929:[.686,.017,.872,{ic:.009,sk:.014}],119930:[.703,.017,.693,{ic:.021,sk:.199}],119931:[.675,0,.637,{ic:.135,sk:.014}],119932:[.686,.017,.8,{ic:.077,sk:.015}],119933:[.686,.017,.678,{ic:.207,sk:-.018}],119934:[.686,.017,1.093,{ic:.114}],119935:[.686,0,.947,{ic:.006,sk:.106}],119936:[.686,0,.675,{ic:.2,sk:-.028}],119937:[.686,0,.773,{ic:.032,sk:.122}],119938:[.452,.008,.633,{sk:.019}],119939:[.694,.008,.521,{sk:-.035}],119940:[.452,.008,.513,{sk:.108}],119941:[.694,.008,.61,{sk:.207}],119942:[.452,.008,.554,{sk:.063}],119943:[.702,.202,.568,{ic:.058,sk:.189}],119944:[.452,.202,.545,{sk:.067}],119945:[.694,.008,.668,{sk:-.106}],119946:[.694,.008,.405,{sk:.08}],119947:[.694,.202,.471,{sk:.163}],119948:[.694,.008,.604,{sk:-.074}],119949:[.694,.008,.348,{sk:.022}],119950:[.452,.008,1.032,{sk:-.038}],119951:[.452,.008,.713,{sk:-.038}],119952:[.452,.008,.585,{sk:.074}],119953:[.452,.194,.601],119954:[.452,.194,.542,{ic:.001,sk:.138}],119955:[.452,.008,.529,{sk:.018}],119956:[.452,.008,.531,{sk:.059}],119957:[.643,.008,.415,{sk:.046}],119958:[.452,.008,.681],119959:[.453,.008,.567,{sk:.049}],119960:[.453,.008,.831,{sk:.044}],119961:[.452,.008,.659,{sk:.029}],119962:[.452,.202,.59,{sk:.05}],119963:[.452,.008,.555,{sk:.102}],119997:[.847,.013,.681,{ic:.164}],119998:[.708,.022,.438,{ic:.07}],119999:[.708,.35,.872,{ic:.114}],12e4:[.854,.017,.845,{ic:.032}],120002:[.477,.016,1.147],120003:[.477,.015,.843],120005:[.477,.401,1.143],120006:[.48,.401,.817],120007:[.469,0,.747],120008:[.603,.015,.542],120009:[.714,.02,.656],120010:[.459,.021,.745],120011:[.469,.022,.652],120012:[.469,.022,.959],120013:[.479,.02,.817],120014:[.459,.403,.991],120015:[.498,.017,.781],120484:[.442,.011,.322],120485:[.442,.205,.384,{sk:.083}],120488:[.698,0,.869],120489:[.686,0,.818,{sk:-.075}],120490:[.68,0,.692,{sk:-.019}],120491:[.698,0,.958],120492:[.68,0,.756,{sk:-.027}],120493:[.686,0,.703,{sk:.013}],120494:[.686,0,.9],120495:[.697,.011,.894],120496:[.686,0,.436],120497:[.686,0,.901,{sk:-.013}],120498:[.698,0,.806],120499:[.686,0,1.092],120500:[.686,0,.9],120501:[.675,0,.767],120502:[.697,.011,.864],120503:[.68,0,.9],120504:[.686,0,.786,{sk:-.063}],120505:[.697,.011,.894],120506:[.686,0,.831,{sk:-.015}],120507:[.675,0,.8],120508:[.697,0,.894],120509:[.686,0,.831],120510:[.686,0,.869,{sk:-.017}],120511:[.686,0,.894],120512:[.697,0,.831],120513:[.686,.025,.958],120514:[.452,.008,.743,{ic:.002,sk:.019}],120515:[.703,.194,.647],120516:[.452,.211,.679],120517:[.718,.008,.551,{sk:-.011}],120518:[.461,.017,.597,{sk:-.025}],120519:[.703,.202,.615,{sk:-.041}],120520:[.452,.211,.615,{sk:-.051}],120521:[.702,.008,.567],120522:[.452,.008,.359,{ic:.003,sk:-.066}],120523:[.452,.008,.615,{ic:.002,sk:-.032}],120524:[.694,.012,.618,{ic:.045,sk:-.225}],120525:[.452,.211,.615,{ic:.003,sk:-.035}],120526:[.452,0,.583,{sk:-.04}],120527:[.703,.202,.615,{sk:-.072}],120528:[.453,.006,.575],120529:[.444,.009,.679,{sk:-.011}],120530:[.452,.211,.567],120531:[.452,.105,.551],120532:[.444,.008,.695],120533:[.444,.012,.615,{sk:-.035}],120534:[.453,.008,.615,{sk:-.019}],120535:[.452,.216,.743,{sk:-.015}],120536:[.452,.202,.743,{ic:.001,sk:-.062}],120537:[.694,.202,.743,{sk:.032}],120538:[.453,.008,.743],120539:[.711,.017,.679],120540:[.444,.008,.506,{sk:.042}],120541:[.702,.008,.615,{sk:.033}],120542:[.452,.01,.724,{sk:-.018}],120543:[.694,.202,.743],120544:[.452,.194,.567],120545:[.444,.008,.966,{sk:-.01}],120546:[.716,0,.75,{sk:.177}],120547:[.683,0,.759,{sk:.077}],120548:[.68,0,.615,{ic:.106,sk:.074}],120549:[.716,0,.833,{sk:.17}],120550:[.68,0,.738,{ic:.026,sk:.094}],120551:[.683,0,.683,{ic:.04,sk:.11}],120552:[.683,0,.831,{ic:.05,sk:.089}],120553:[.705,.022,.763,{sk:.117}],120554:[.683,0,.44,{ic:.057,sk:.084}],120555:[.683,0,.849,{ic:.04,sk:.09}],120556:[.716,0,.694,{sk:.17}],120557:[.683,0,.97,{ic:.074,sk:.085}],120558:[.683,0,.803,{ic:.078,sk:.082}],120559:[.677,0,.742,{ic:.035,sk:.097}],120560:[.705,.022,.763,{sk:.117}],120561:[.68,0,.831,{ic:.049,sk:.089}],120562:[.683,0,.642,{ic:.112,sk:.049}],120563:[.705,.022,.763,{sk:.117}],120564:[.683,0,.78,{ic:.026,sk:.104}],120565:[.677,0,.584,{ic:.12,sk:.012}],120566:[.705,0,.583,{ic:.118}],120567:[.683,0,.667,{sk:.082}],120568:[.683,0,.828,{ic:.023,sk:.097}],120569:[.683,0,.612,{ic:.081,sk:.025}],120570:[.705,0,.772,{ic:.014,sk:.137}],120571:[.683,.033,.833],120572:[.442,.011,.64,{sk:.072}],120573:[.706,.194,.566,{ic:.008,sk:.148}],120574:[.442,.215,.518,{ic:.025,sk:-.019}],120575:[.712,.011,.444,{ic:.008,sk:.107}],120576:[.453,.022,.466,{sk:.051}],120577:[.697,.205,.438,{ic:.036,sk:.067}],120578:[.442,.216,.497,{sk:.024}],120579:[.705,.011,.469,{sk:.075}],120580:[.442,.011,.354],120581:[.442,.011,.576,{sk:.043}],120582:[.694,.013,.583,{sk:-.053}],120583:[.442,.216,.603,{sk:.048}],120584:[.442,0,.494,{ic:.03,sk:.028}],120585:[.697,.205,.438,{ic:.008,sk:.06}],120586:[.442,.011,.485],120587:[.431,.011,.57,{sk:.043}],120588:[.442,.216,.517,{sk:.096}],120589:[.442,.108,.363,{ic:.046,sk:-.034}],120590:[.431,.011,.571],120591:[.431,.012,.437,{ic:.074}],120592:[.442,.011,.54,{sk:.036}],120593:[.442,.218,.654,{sk:.028}],120594:[.442,.205,.626,{sk:.018}],120595:[.694,.205,.651,{sk:.143}],120596:[.442,.011,.622,{sk:.034}],120597:[.716,.022,.531,{ic:.035,sk:.069}],120598:[.431,.011,.406,{sk:.066}],120599:[.705,.011,.591,{sk:.116}],120600:[.442,.012,.624,{sk:.053}],120601:[.694,.205,.596,{sk:.125}],120602:[.442,.194,.517,{sk:.102}],120603:[.431,.011,.828,{sk:.039}],120604:[.711,0,.869,{sk:.174}],120605:[.686,0,.866,{sk:.069}],120606:[.68,0,.657,{ic:.12,sk:.071}],120607:[.711,0,.958,{sk:.168}],120608:[.68,0,.81,{ic:.015,sk:.098}],120609:[.686,0,.773,{ic:.032,sk:.117}],120610:[.686,0,.982,{ic:.045,sk:.09}],120611:[.703,.017,.867,{sk:.108}],120612:[.686,0,.511,{ic:.055,sk:.085}],120613:[.686,0,.971,{ic:.032,sk:.093}],120614:[.711,0,.806,{sk:.167}],120615:[.686,0,1.142,{ic:.074,sk:.085}],120616:[.686,0,.95,{ic:.077,sk:.082}],120617:[.675,0,.841,{ic:.026,sk:.104}],120618:[.703,.017,.837,{sk:.111}],120619:[.68,0,.982,{ic:.044,sk:.09}],120620:[.686,0,.723,{ic:.126,sk:.039}],120621:[.703,.017,.867,{sk:.108}],120622:[.686,0,.885,{ic:.017,sk:.11}],120623:[.675,0,.637,{ic:.135,sk:.01}],120624:[.703,0,.671,{ic:.131}],120625:[.686,0,.767,{sk:.08}],120626:[.686,0,.947,{ic:.006,sk:.106}],120627:[.686,0,.714,{ic:.078,sk:.029}],120628:[.703,0,.879,{ic:.007,sk:.135}],120629:[.686,.025,.958],120630:[.452,.008,.761,{sk:.059}],120631:[.703,.194,.66,{sk:.153}],120632:[.452,.211,.59,{ic:.027,sk:-.02}],120633:[.718,.008,.522,{sk:.115}],120634:[.461,.017,.529,{sk:.058}],120635:[.703,.202,.508,{ic:.014,sk:.083}],120636:[.452,.211,.6,{sk:.019}],120637:[.702,.008,.562,{sk:.062}],120638:[.452,.008,.412],120639:[.452,.008,.668,{sk:.025}],120640:[.694,.012,.671,{sk:-.072}],120641:[.452,.211,.708,{sk:.042}],120642:[.452,0,.577,{ic:.026,sk:.028}],120643:[.703,.202,.508,{sk:.061}],120644:[.452,.008,.585],120645:[.444,.009,.682,{sk:.046}],120646:[.452,.211,.612,{sk:.1}],120647:[.452,.105,.424,{ic:.038,sk:-.029}],120648:[.444,.008,.686],120649:[.444,.012,.521,{ic:.083}],120650:[.453,.008,.631,{sk:.037}],120651:[.452,.216,.747,{sk:.033}],120652:[.452,.202,.718,{sk:.011}],120653:[.694,.202,.758,{sk:.151}],120654:[.453,.008,.718,{sk:.039}],120655:[.711,.017,.628,{ic:.029,sk:.079}],120656:[.444,.008,.483,{sk:.074}],120657:[.702,.008,.692,{sk:.119}],120658:[.452,.01,.724,{sk:.053}],120659:[.694,.202,.713,{sk:.126}],120660:[.452,.194,.612,{sk:.094}],120661:[.444,.008,.975,{sk:.043}],120662:[.694,0,.733],120663:[.694,0,.733,{sk:-.04}],120664:[.691,0,.581,{sk:.022}],120665:[.694,0,.917],120666:[.691,0,.642,{sk:.015}],120667:[.694,0,.672],120668:[.694,0,.794],120669:[.716,.022,.856],120670:[.694,0,.331],120671:[.694,0,.764,{sk:.012}],120672:[.694,0,.672],120673:[.694,0,.978],120674:[.694,0,.794],120675:[.688,0,.733],120676:[.716,.022,.794],120677:[.691,0,.794],120678:[.694,0,.703,{sk:-.034}],120679:[.716,.022,.856],120680:[.694,0,.794],120681:[.688,0,.733],120682:[.716,0,.856],120683:[.694,0,.794],120684:[.694,0,.733,{sk:-.015}],120685:[.694,0,.856],120686:[.716,0,.794],120687:[.694,0,.917],120688:[.469,.012,.837,{sk:-.03}],120689:[.705,.195,.606],120690:[.469,.217,.698,{sk:.046}],120691:[.733,.012,.541],120692:[.48,.023,.512,{sk:.016}],120693:[.75,.208,.566,{sk:.014}],120694:[.469,.217,.735],120695:[.705,.012,.567],120696:[.469,.012,.477,{sk:-.098}],120697:[.469,.012,.675,{sk:-.059}],120698:[.694,.012,.764,{sk:-.213}],120699:[.469,.217,.735,{sk:-.097}],120700:[.469,.001,.574],120701:[.75,.226,.574,{sk:-.031}],120702:[.475,.011,.599],120703:[.458,.012,.76,{sk:.038}],120704:[.469,.217,.567],120705:[.469,.109,.524,{sk:.016}],120706:[.458,.012,.683,{sk:.034}],120707:[.458,.011,.699,{sk:.037}],120708:[.471,.012,.728,{sk:.012}],120709:[.469,.217,.716,{sk:-.021}],120710:[.469,.206,.849,{sk:-.029}],120711:[.694,.206,.87,{sk:.065}],120712:[.471,.012,.731],120713:[.716,.022,.569],120714:[.458,.012,.519],120715:[.705,.012,.811,{sk:.07}],120716:[.469,.01,.609],120717:[.694,.206,.73],120718:[.469,.245,.567],120719:[.458,.012,1.035,{sk:.049}],120720:[.694,0,.733,{sk:.146}],120721:[.694,0,.733,{ic:.021,sk:.083}],120722:[.691,0,.581,{ic:.092,sk:.091}],120723:[.694,0,.917,{sk:.139}],120724:[.691,0,.642,{ic:.077,sk:.095}],120725:[.694,0,.672,{ic:.079,sk:.087}],120726:[.694,0,.794,{ic:.048,sk:.102}],120727:[.716,.022,.856,{ic:.025,sk:.126}],120728:[.694,0,.331,{ic:.048,sk:.103}],120729:[.694,0,.764,{ic:.076,sk:.095}],120730:[.694,0,.672,{sk:.138}],120731:[.694,0,.978,{ic:.048,sk:.102}],120732:[.694,0,.794,{ic:.048,sk:.102}],120733:[.688,0,.733,{ic:.086,sk:.072}],120734:[.716,.022,.794,{ic:.026,sk:.12}],120735:[.691,0,.794,{ic:.047,sk:.102}],120736:[.694,0,.703,{ic:.047,sk:.07}],120737:[.716,.022,.856,{ic:.025,sk:.126}],120738:[.694,0,.794,{ic:.078,sk:.08}],120739:[.688,0,.733,{ic:.098,sk:.061}],120740:[.716,0,.856,{ic:.06,sk:.097}],120741:[.694,0,.794,{ic:.019,sk:.121}],120742:[.694,0,.769,{ic:.043,sk:.097}],120743:[.694,0,.856,{ic:.063,sk:.096}],120744:[.716,0,.794,{ic:.042,sk:.106}],120745:[.682,.012,.917,{ic:.011,sk:.063}],120746:[.469,.012,.837,{sk:.059}],120747:[.705,.195,.606,{ic:.014,sk:.132}],120748:[.469,.217,.697,{ic:.04,sk:.111}],120749:[.733,.012,.541,{ic:.025,sk:.126}],120750:[.48,.023,.513,{ic:.004,sk:.106}],120751:[.75,.208,.566,{sk:.164}],120752:[.469,.217,.735,{ic:.013,sk:.081}],120753:[.705,.012,.567,{ic:.038,sk:.111}],120754:[.469,.012,.477],120755:[.469,.012,.676,{sk:.031}],120756:[.694,.012,.764,{sk:-.075}],120757:[.469,.217,.736],120758:[.469,.001,.574,{ic:.031,sk:.066}],120759:[.75,.226,.574,{sk:.119}],120760:[.475,.011,.599,{ic:.001,sk:.09}],120761:[.458,.012,.76,{ic:.029,sk:.104}],120762:[.469,.217,.568,{ic:.001,sk:.088}],120763:[.469,.109,.524,{sk:.108}],120764:[.458,.012,.683,{ic:.03,sk:.098}],120765:[.458,.011,.699,{ic:.029,sk:.104}],120766:[.471,.012,.728,{ic:.008,sk:.098}],120767:[.469,.217,.716,{ic:.003,sk:.068}],120768:[.469,.206,.849,{sk:.063}],120769:[.694,.206,.87,{ic:.008,sk:.202}],120770:[.471,.012,.731,{ic:.008,sk:.101}],120771:[.716,.022,.569,{ic:.021,sk:.111}],120772:[.458,.012,.519,{sk:.099}],120773:[.705,.012,.811,{ic:.025,sk:.191}],120774:[.469,.01,.609,{ic:.031}],120775:[.694,.206,.73,{sk:.143}],120776:[.469,.245,.567,{ic:.002,sk:.088}],120777:[.458,.012,1.035,{ic:.029,sk:.133}],120782:[.655,.011,.575],120783:[.655,0,.575],120784:[.655,0,.575,{sk:-.011}],120785:[.655,.011,.575],120786:[.656,0,.575,{sk:.127}],120787:[.655,.011,.575],120788:[.655,.011,.575,{sk:.048}],120789:[.676,.011,.575,{sk:-.164}],120790:[.655,.011,.575,{sk:.011}],120791:[.655,.011,.575]}},8030:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rtBt=void 0,e.rtBt={8401:[.711,-.601,.208],8407:[.711,-.521,.205],8428:[-.171,.281,.208],8431:[-.091,.281,.205],8594:[.51,.01,.507],8595:[.505,0,.5],8603:[.51,.01,.386],8608:[.51,.01,.507],8609:[.505,0,.572],8610:[.51,.01,.58],8612:[.51,.01,.499],8613:[.498,0,.632],8617:[.55,-.23,.507],8619:[.55,.05,.507],8640:[.503,-.23,.513],8641:[.27,.003,.513],8642:[.513,0,.441],8643:[.513,0,.441],8644:[.672,-.068,.514],8645:[.515,0,.896],8646:[.432,.172,.515],8649:[.75,.25,.507],8650:[.505,0,.992],8651:[.367,.1,.514],8652:[.6,-.133,.515],8654:[.52,.02,.406],8658:[.52,.02,.504],8659:[.504,0,.652],8667:[.617,.117,.506],8693:[.514,0,.896],8694:[.99,.49,.507],9140:[.772,-.504,1.492],9141:[-.074,.342,1.492],9180:[.796,-.502,2.016],9181:[-.072,.366,2.016],9182:[.724,-.493,1.001],9183:[-.062,.294,1.001],9184:[.873,-.605,2.041],9185:[-.175,.443,2.041],10214:[1,0,1.007],10215:[1,0,1.007],10222:[1.526,0,.647],10223:[1.526,0,.647]}},6591:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifBoldItalic=void 0,e.sansSerifBoldItalic={}},5652:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifBold=void 0,e.sansSerifBold={}},9757:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifItalic=void 0,e.sansSerifItalic={}},1518:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerif=void 0,e.sansSerif={}},7993:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scriptBold=void 0,e.scriptBold={}},6402:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.script=void 0,e.script={}},4403:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.size3=void 0,e.size3={40:[.972,.472,.523],41:[.972,.472,.523],47:[1.374,.874,.964],91:[.975,.475,.444],92:[1.374,.874,.964],93:[.975,.475,.444],123:[.975,.475,.624],125:[.975,.475,.624],770:[.747,-.572,.919],771:[.757,-.543,.931],774:[.742,-.577,.937],780:[.74,-.565,.919],8260:[1.374,.874,.964],8725:[.61,.109,.581],8726:[.61,.109,.581],8730:[1.45,.95,1,{ic:.02}],8739:[1.117,.617,.278],8741:[1.117,.617,.372],8968:[.975,.475,.499],8969:[.975,.475,.499],8970:[.975,.475,.499],8971:[.975,.475,.499],9140:[.742,-.535,1.485],9141:[-.105,.312,1.485],9180:[.767,-.509,2.012],9181:[-.079,.337,2.012],9182:[.825,-.506,1.996],9183:[-.075,.394,1.996],9184:[.858,-.61,2.056],9185:[-.18,.428,2.056],10214:[.975,.475,.555],10215:[.975,.475,.555],10216:[.975,.475,.537],10217:[.975,.475,.537],10218:[.975,.475,.781],10219:[.975,.475,.781],10222:[.991,.491,.37],10223:[.991,.491,.37]}},4187:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.size4=void 0,e.size4={40:[1.146,.646,.597],41:[1.146,.646,.597],47:[1.722,1.222,1.222],91:[1.15,.65,.472],92:[1.722,1.222,1.222],93:[1.15,.65,.472],123:[1.15,.65,.667],125:[1.15,.65,.667],770:[.747,-.571,1.1],771:[.762,-.539,1.115],774:[.742,-.576,1.12],780:[.741,-.565,1.1],8260:[1.722,1.222,1.222],8725:[.613,.113,.588],8726:[.613,.113,.588],8730:[1.75,1.25,1,{ic:.02}],8739:[1.292,.792,.278],8741:[1.292,.792,.386],8968:[1.15,.65,.528],8969:[1.15,.65,.528],8970:[1.15,.65,.528],8971:[1.15,.65,.528],9140:[.75,-.527,1.86],9141:[-.097,.32,1.86],9180:[.774,-.506,2.516],9181:[-.076,.344,2.516],9182:[.833,-.502,2.498],9183:[-.071,.402,2.498],9184:[.863,-.607,2.564],9185:[-.177,.433,2.564],10214:[1.15,.65,.66],10215:[1.15,.65,.66],10216:[1.15,.65,.611],10217:[1.15,.65,.611],10218:[1.15,.65,.905],10219:[1.15,.65,.905],10222:[1.168,.668,.432],10223:[1.168,.668,.432]}},3693:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.size5=void 0,e.size5={40:[1.296,.796,.663],41:[1.296,.796,.663],47:[2.179,1.679,1.557],91:[1.3,.8,.499],92:[2.179,1.679,1.557],93:[1.3,.8,.499],123:[1.3,.8,.707],125:[1.3,.8,.707],770:[.748,-.57,1.32],771:[.766,-.534,1.335],774:[.742,-.575,1.341],780:[.742,-.564,1.32],8260:[2.179,1.679,1.557],8725:[.616,.115,.593],8726:[.616,.115,.593],8739:[1.501,1.001,.278],8741:[1.501,1.001,.396],8968:[1.3,.8,.555],8969:[1.3,.8,.555],8970:[1.3,.8,.555],8971:[1.3,.8,.555],9140:[.757,-.521,2.235],9141:[-.091,.327,2.235],9180:[.78,-.506,3.02],9181:[-.076,.35,3.02],9182:[.838,-.5,3],9183:[-.07,.408,3],9184:[.866,-.607,3.068],9185:[-.177,.436,3.068],10214:[1.3,.8,.75],10215:[1.3,.8,.75],10216:[1.3,.8,.677],10217:[1.3,.8,.677],10218:[1.3,.8,1.011],10219:[1.3,.8,1.011],10222:[1.32,.82,.485],10223:[1.32,.82,.485]}},2694:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.size6=void 0,e.size6={40:[1.446,.946,.736],41:[1.446,.946,.736],47:[2.777,2.277,1.997],91:[1.45,.95,.528],92:[2.777,2.277,1.997],93:[1.45,.95,.528],123:[1.45,.95,.75],125:[1.45,.95,.75],770:[.748,-.57,1.581],771:[.769,-.532,1.599],774:[.743,-.574,1.604],780:[.742,-.564,1.581],8260:[2.777,2.277,1.997],8725:[.619,.119,.6],8726:[.619,.119,.6],8739:[1.752,1.252,.278],8741:[1.752,1.252,.41],8968:[1.45,.95,.583],8969:[1.45,.95,.583],8970:[1.45,.95,.583],8971:[1.45,.95,.583],9140:[.764,-.513,2.61],9141:[-.083,.334,2.61],9180:[.787,-.505,3.524],9181:[-.075,.357,3.524],9182:[.845,-.498,3.502],9183:[-.067,.414,3.502],9184:[.869,-.606,3.574],9185:[-.176,.439,3.574],10214:[1.45,.95,.838],10215:[1.45,.95,.838],10216:[1.45,.95,.75],10217:[1.45,.95,.75],10218:[1.45,.95,1.124],10219:[1.45,.95,1.124],10222:[1.472,.972,.541],10223:[1.472,.972,.541]}},3445:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.size7=void 0,e.size7={40:[1.745,1.245,.875],41:[1.745,1.245,.875],47:[3.56,3.06,2.572],91:[1.75,1.25,.667],92:[3.56,3.06,2.572],93:[1.75,1.25,.667],123:[1.75,1.25,.902],125:[1.75,1.25,.902],770:[.749,-.569,1.896],771:[.773,-.527,1.915],774:[.743,-.573,1.92],780:[.743,-.563,1.896],8260:[3.56,3.06,2.572],8725:[.623,.122,.607],8726:[.623,.122,.607],8739:[2.053,1.553,.278],8741:[2.053,1.553,.424],8968:[1.75,1.25,.623],8969:[1.75,1.25,.623],8970:[1.75,1.25,.623],8971:[1.75,1.25,.623],9140:[.772,-.504,2.985],9141:[-.074,.342,2.985],9180:[.796,-.502,4.032],9181:[-.072,.366,4.032],9182:[.854,-.493,4.006],9183:[-.062,.423,4.006],9184:[.873,-.605,4.082],9185:[-.175,.443,4.082],10214:[1.75,1.25,1.007],10215:[1.75,1.25,1.007],10216:[1.75,1.25,.908],10217:[1.75,1.25,.908],10218:[1.75,1.25,1.362],10219:[1.75,1.25,1.362],10222:[1.776,1.276,.647],10223:[1.776,1.276,.647]}},4046:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.smallop=void 0,e.smallop={40:[.797,.297,.422],41:[.797,.297,.422],47:[.905,.405,.617],91:[.8,.3,.34],92:[.905,.405,.617],93:[.8,.3,.34],123:[.8,.3,.54],125:[.8,.3,.54],770:[.746,-.572,.644],771:[.751,-.55,.652],773:[.67,-.63,.568],774:[.742,-.578,.658],780:[.74,-.566,.644],8260:[.905,.405,.617],8400:[.711,-.601,.667],8401:[.711,-.601,.667],8406:[.711,-.521,.659],8407:[.711,-.521,.659],8417:[.711,-.521,.715],8428:[-.171,.281,.667],8429:[-.171,.281,.667],8430:[-.091,.281,.659],8431:[-.091,.281,.659],8725:[.605,.105,.572],8726:[.605,.105,.572],8730:[.85,.35,1,{ic:.02}],8739:[.851,.351,.278],8741:[.851,.351,.354],8968:[.8,.3,.458],8969:[.8,.3,.458],8970:[.8,.3,.458],8971:[.8,.3,.458],9140:[.73,-.546,.735],9141:[-.116,.3,.735],9180:[.745,-.54,1.006],9181:[-.11,.315,1.006],9182:[.815,-.509,.993,{ic:.001}],9183:[-.079,.385,.993],9184:[.853,-.613,1.048],9185:[-.183,.423,1.048],10214:[.8,.3,.444],10215:[.8,.3,.444],10216:[.8,.3,.428],10217:[.8,.3,.428],10218:[.8,.3,.623],10219:[.8,.3,.623],10222:[.813,.313,.305],10223:[.813,.313,.305]}},5627:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.texCalligraphicBold=void 0,e.texCalligraphicBold={}},1695:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.texCalligraphic=void 0,e.texCalligraphic={}},6437:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.texMathit=void 0,e.texMathit={65:[.716,0,.743],66:[.683,0,.704],67:[.705,.022,.716],68:[.683,0,.755],69:[.68,0,.678],70:[.68,0,.653],71:[.705,.022,.774],72:[.683,0,.743],73:[.683,0,.386],74:[.683,.022,.525],75:[.683,0,.769],76:[.683,0,.627],77:[.683,0,.897],78:[.683,0,.743],79:[.705,.022,.767],80:[.683,0,.678],81:[.705,.194,.767],82:[.683,.022,.729],83:[.705,.022,.562],84:[.677,0,.716],85:[.683,.022,.743],86:[.683,.022,.743],87:[.683,.022,.999],88:[.683,0,.743],89:[.683,0,.743],90:[.683,0,.613],97:[.442,.011,.511],98:[.694,.011,.46],99:[.442,.011,.46],100:[.694,.011,.511],101:[.442,.011,.46],102:[.705,.205,.307],103:[.442,.205,.46],104:[.694,.011,.511],105:[.654,.011,.307],106:[.654,.205,.307],107:[.694,.011,.46],108:[.694,.011,.256],109:[.442,.011,.818],110:[.442,.011,.562],111:[.442,.011,.511],112:[.442,.194,.511],113:[.442,.194,.46],114:[.442,.011,.422],115:[.442,.011,.409],116:[.626,.011,.332],117:[.442,.011,.537],118:[.442,.011,.46],119:[.442,.011,.664],120:[.442,.011,.464],121:[.442,.205,.486],122:[.442,.011,.409]}},5300:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.texOldstyleBold=void 0,e.texOldstyleBold={48:[.461,.017,.575],49:[.461,0,.575],50:[.461,0,.575],51:[.461,.211,.575],52:[.469,.194,.575],53:[.461,.211,.575],54:[.661,.017,.575],55:[.476,.211,.575],56:[.661,.017,.575],57:[.461,.211,.575]}},4739:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.texOldstyle=void 0,e.texOldstyle={48:[.453,.022,.5],49:[.453,0,.5],50:[.453,0,.5],51:[.453,.216,.5],52:[.464,.194,.5],53:[.453,.216,.5],54:[.666,.022,.5],55:[.463,.216,.5],56:[.666,.022,.5],57:[.453,.216,.5]}},5923:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.texVariant=void 0,e.texVariant={8216:[.549,-.096,.407],8217:[.549,-.096,.407],8218:[.549,-.096,.407],8219:[.549,-.096,.407],8220:[.549,-.096,.647],8221:[.549,-.096,.647],8222:[.549,-.096,.647],8223:[.549,-.096,.647],8242:[.549,-.096,.407],8243:[.549,-.096,.647],8244:[.549,-.096,.887],8245:[.549,-.096,.407],8246:[.549,-.096,.647],8247:[.549,-.096,.887],8279:[.549,-.096,1.127],8463:[.694,.011,.511,{ic:.024}],8592:[.437,-.063,.5],8594:[.437,-.063,.5],8709:[.596,.096,.778],8722:[.27,-.23,.5],8726:[.431,.022,.777],8733:[.472,-.028,.777],8739:[.431,.022,.222],8740:[.431,.022,.222,{ic:.019}],8741:[.431,.022,.388],8742:[.431,.022,.388,{ic:.02}],8764:[.367,-.133,.777],8776:[.483,-.056,.777],8808:[.753,.276,.777],8809:[.753,.276,.777],8816:[.92,.42,.777],8817:[.92,.42,.777],8840:[.828,.328,.777],8841:[.828,.328,.777],8842:[.636,.248,.777],8843:[.636,.248,.777],8902:[.485,-.019,.5],8994:[.378,-.122,.777],8995:[.378,-.142,.777],10887:[.803,.303,.777],10888:[.803,.303,.777],10955:[.753,.325,.777],10956:[.753,.325,.777]}},4453:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s},a=this&&this.__spreadArray||function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMathJaxModernFontMixin=void 0;var l=r(5959);e.CommonMathJaxModernFontMixin=function(t){var e;return e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(t),e.defaultVariants=a(a([],s(l.FontData.defaultVariants)),[["-size3","normal"],["-size4","normal"],["-size5","normal"],["-size6","normal"],["-size7","normal"],["-lf-tp","normal"],["-rt-bt","normal"],["-ex-md","normal"]]),e.defaultCssFonts=o(o({},l.FontData.defaultCssFonts),{"-size3":["serif",!1,!1],"-size4":["serif",!1,!1],"-size5":["serif",!1,!1],"-size6":["serif",!1,!1],"-size7":["serif",!1,!1],"-lf-tp":["serif",!1,!1],"-rt-bt":["serif",!1,!1],"-ex-md":["serif",!1,!1]}),e.defaultAccentMap={94:"\u02c6",126:"\u02dc",768:"\u02cb",769:"\u02ca",770:"\u02c6",771:"\u02dc",772:"\u02c9",774:"\u02d8",775:"\u02d9",776:"\xa8",778:"\u02da",780:"\u02c7",8594:"\u20d7"},e.defaultSizeVariants=["normal","-smallop","-largeop","-size3","-size4","-size5","-size6","-size7"],e.defaultStretchVariants=["normal","-ex-md","-lf-tp","-rt-bt"],e}},403:function(t,e,r){"use strict";r.r(e);var n=r(3284),i=r(8055),o=r(8191);MathJax.loader&&MathJax.loader.checkVersion("a11y/assistive-mml",i.VERSION,"a11y"),(0,n.combineWithMathJax)({_:{a11y:{"assistive-mml":o}}}),MathJax.startup&&MathJax.startup.extendHandler((function(t){return(0,o.AssistiveMmlHandler)(t)}))},1798:function(t,e,r){"use strict";r.r(e);var n=r(3284),i=r(8055),o=r(7232),s=r(8960),a=r(734),l=r(5382),c=r(6021),u=r(1592),h=r(5829),p=r(1943),d=r(6e3),f=r(5134),m=r(8e3),y=r(14),g=r(1869),b=r(8108),v=r(8594),M=r(1338),O=r(1105),x=r(1137),S=r(831),E=r(1187),C=r(1365),_=r(7371),A=r(5282),N=r(4249),w=r(2275),T=r(3785),L=r(5373),P=r(9979),k=r(7530),I=r(1096),R=r(91),j=r(2522),B=r(5510),D=r(3208),F=r(5424),H=r(1506),U=r(3660),X=r(1299),V=r(2728),W=r(8111),G=r(8848),z=r(4463),q=r(2507),J=r(7525),K=r(758),$=r(2183),Y=r(2863),Z=r(5891),Q=r(3861),tt=r(9084),et=r(1873),rt=r(553),nt=r(2254),it=r(9021),ot=r(1822),st=r(7994),at=r(6308),lt=r(8774),ct=r(5919),ut=r(4689),ht=r(2245),pt=r(145),dt=r(3198),ft=r(4096),mt=r(6152),yt=r(7811),gt=r(6913),bt=r(4005),vt=r(8150),Mt=r(7173),Ot=r(4372),xt=r(8181),St=r(6380),Et=r(4747),Ct=r(7661),_t=r(6560),At=r(6707);MathJax.loader&&MathJax.loader.checkVersion("core",i.VERSION,"core"),(0,n.combineWithMathJax)({_:{adaptors:{HTMLAdaptor:o,browserAdaptor:s},components:{global:n},core:{DOMAdaptor:a,FindMath:l,Handler:c,HandlerList:u,InputJax:h,MathDocument:p,MathItem:d,MathList:f,MmlTree:{Attributes:m,MML:y,MathMLVisitor:g,MmlFactory:b,MmlNode:v,MmlNodes:{HtmlNode:M,TeXAtom:O,maction:x,maligngroup:S,malignmark:E,math:C,mathchoice:_,menclose:A,merror:N,mfenced:w,mfrac:T,mglyph:L,mi:P,mmultiscripts:k,mn:I,mo:R,mpadded:j,mphantom:B,mroot:D,mrow:F,ms:H,mspace:U,msqrt:X,mstyle:V,msubsup:W,mtable:G,mtd:z,mtext:q,mtr:J,munderover:K,semantics:$},MmlVisitor:Y,OperatorDictionary:Z,SerializedMmlVisitor:Q},OutputJax:tt,Tree:{Factory:et,Node:rt,NodeFactory:nt,Visitor:it,Wrapper:ot,WrapperFactory:st}},handlers:{html_ts:at,html:{HTMLDocument:lt,HTMLDomStrings:ct,HTMLHandler:ut,HTMLMathItem:ht,HTMLMathList:pt}},mathjax:dt,util:{AsyncLoad:ft,BBox:mt,BitField:yt,Entities:gt,FunctionList:bt,LinkedList:vt,Options:Mt,PrioritizedList:Ot,Retries:xt,StyleList:St,Styles:Et,lengths:Ct,numeric:_t,string:At}}}),MathJax.startup&&(MathJax.startup.registerConstructor("HTMLHandler",ut.HTMLHandler),MathJax.startup.registerConstructor("browserAdaptor",s.browserAdaptor),MathJax.startup.useHandler("HTMLHandler"),MathJax.startup.useAdaptor("browserAdaptor")),MathJax.loader&&(MathJax._.mathjax.mathjax.asyncLoad=function(t){return MathJax.loader.load(t)})},3814:function(t,e,r){"use strict";r.r(e);var n=r(3284),i=r(8055),o=r(7100),s=r(3327),a=r(8366);MathJax.loader&&MathJax.loader.checkVersion("input/mml",i.VERSION,"input"),(0,n.combineWithMathJax)({_:{input:{mathml_ts:o,mathml:{FindMathML:s,MathMLCompile:a}}}}),MathJax.startup&&(MathJax.startup.registerConstructor("mml",o.MathML),MathJax.startup.useInput("mml")),MathJax.loader&&MathJax.loader.pathFilters.add((function(t){return t.name=t.name.replace(/\/util\/entities\/.*?\.js/,"/input/mml/entities.js"),!0}))},4427:function(t,e,r){"use strict";r.r(e);var n=r(3284),i=r(8055),o=r(3031),s=r(2102),a=r(6181),l=r(5275),c=r(9019),u=r(6685),h=r(2533),p=r(4454),d=r(4214),f=r(253),m=r(5174),y=r(6672),g=r(4066),b=r(1942),v=r(3233),M=r(3403),O=r(3983),x=r(3431),S=r(2085),E=r(161),C=r(1975),_=r(2255),A=r(8782),N=r(3318),w=r(7763),T=r(3435),L=r(7890),P=r(9777),k=r(7849),I=r(7447),R=r(4845),j=r(7356),B=r(5302),D=r(3707);MathJax.loader&&MathJax.loader.checkVersion("input/tex",i.VERSION,"input"),(0,n.combineWithMathJax)({_:{input:{tex_ts:o,tex:{ColumnParser:s,Configuration:a,FilterUtil:l,FindTeX:c,MapHandler:u,NodeFactory:h,NodeUtil:p,ParseMethods:d,ParseOptions:f,ParseUtil:m,Stack:y,StackItem:g,StackItemFactory:b,Symbol:v,SymbolMap:M,Tags:O,TexConstants:x,TexError:S,TexParser:E,ams:{AmsConfiguration:C,AmsItems:_,AmsMethods:A},autoload:{AutoloadConfiguration:N},base:{BaseConfiguration:w,BaseItems:T,BaseMethods:L},configmacros:{ConfigMacrosConfiguration:P},newcommand:{NewcommandConfiguration:k,NewcommandItems:I,NewcommandMethods:R,NewcommandUtil:j},noundefined:{NoUndefinedConfiguration:B},require:{RequireConfiguration:D}}}}});var F=r(7173);r(4892).Loader.preLoad("input/tex-base","[tex]/ams","[tex]/newcommand","[tex]/noundefined","[tex]/require","[tex]/autoload","[tex]/configmacros"),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(MathJax.startup){e&&(MathJax.startup.registerConstructor("tex",MathJax._.input.tex_ts.TeX),MathJax.startup.useInput("tex")),MathJax.config.tex||(MathJax.config.tex={});var r=MathJax.config.tex.packages;MathJax.config.tex.packages=t,r&&(0,F.insert)(MathJax.config.tex,{packages:r})}}(["base","ams","newcommand","noundefined","require","autoload","configmacros"])},6238:function(t,e,r){"use strict";r.r(e);var n=r(3284),i=r(8055),o=r(2574),s=r(4947),a=r(4791),l=r(4673),c=r(1701),u=r(5118),h=r(8280),p=r(8326),d=r(3026),f=r(6936),m=r(6166),y=r(4567),g=r(3607),b=r(377),v=r(5683),M=r(4221),O=r(5341),x=r(3819),S=r(7456),E=r(8928),C=r(1526),_=r(555),A=r(456),N=r(4352),w=r(2852),T=r(8381),L=r(7357),P=r(4518),k=r(6298),I=r(4191),R=r(1673),j=r(9788),B=r(5872),D=r(3752),F=r(9972),H=r(2388),U=r(5959),X=r(1334),V=r(8152),W=r(7524),G=r(4949),z=r(1914),q=r(2516),J=r(8174),K=r(3763),$=r(6033),Y=r(5906),Z=r(1977),Q=r(8062),tt=r(5804),et=r(6211),rt=r(5143),nt=r(4719),it=r(7328),ot=r(5274),st=r(837),at=r(7342),lt=r(4542),ct=r(49),ut=r(1901),ht=r(1753),pt=r(6349),dt=r(5749),ft=r(4415),mt=r(4227),yt=r(6403),gt=r(7338),bt=r(999),vt=r(8398);MathJax.loader&&MathJax.loader.checkVersion("output/chtml",i.VERSION,"output"),(0,n.combineWithMathJax)({_:{output:{chtml_ts:o,chtml:{DynamicFonts:s,FontData:a,Notation:l,Usage:c,Wrapper:u,WrapperFactory:h,Wrappers_ts:p,Wrappers:{HtmlNode:d,TeXAtom:f,TextNode:m,maction:y,math:g,menclose:b,mfenced:v,mfrac:M,mglyph:O,mi:x,mmultiscripts:S,mn:E,mo:C,mpadded:_,mroot:A,mrow:N,ms:w,mspace:T,msqrt:L,msubsup:P,mtable:k,mtd:I,mtext:R,mtr:j,munderover:B,scriptbase:D,semantics:F}},common:{Direction:H,FontData:U,LineBBox:X,LinebreakVisitor:V,Notation:W,Wrapper:G,WrapperFactory:z,Wrappers:{HtmlNode:q,TeXAtom:J,TextNode:K,maction:$,math:Y,menclose:Z,mfenced:Q,mfrac:tt,mglyph:et,mi:rt,mmultiscripts:nt,mn:it,mo:ot,mpadded:st,mroot:at,mrow:lt,ms:ct,mspace:ut,msqrt:ht,msubsup:pt,mtable:dt,mtd:ft,mtext:mt,mtr:yt,munderover:gt,scriptbase:bt,semantics:vt}}}}})},5111:function(t,e,r){"use strict";r.r(e),r.d(e,{MathJaxModernFont:function(){return u}});var n=r(4791);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=c(t);if(e){var i=c(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return l(this,r)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(r,t);var e=a(r);function r(){return o(this,r),e.apply(this,arguments)}return r}(n.FontData);u.OPTIONS={fontURL:"."}},8639:function(t,e,r){"use strict";r.r(e);var n=r(3284),i=r(8055),o=r(4892),s=r(894),a=r(2390);MathJax.loader&&MathJax.loader.checkVersion("startup",i.VERSION,"startup"),(0,n.combineWithMathJax)({_:{components:{loader:o,package:s,startup:a}}})},5425:function(t,e,r){"use strict";r.r(e);r(8639);var n=r(3284);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var o,s={"a11y/semantic-enrich":["input/mml","a11y/sre"],"a11y/complexity":["a11y/semantic-enrich"],"a11y/explorer":["a11y/semantic-enrich","ui/menu"],"[mml]/mml3":["input/mml"],"[tex]/all-packages":["input/tex-base"],"[tex]/action":["input/tex-base","[tex]/newcommand"],"[tex]/autoload":["input/tex-base","[tex]/require"],"[tex]/ams":["input/tex-base"],"[tex]/amscd":["input/tex-base"],"[tex]/bbox":["input/tex-base","[tex]/ams","[tex]/newcommand"],"[tex]/boldsymbol":["input/tex-base"],"[tex]/braket":["input/tex-base"],"[tex]/bussproofs":["input/tex-base"],"[tex]/cancel":["input/tex-base","[tex]/enclose"],"[tex]/centernot":["input/tex-base"],"[tex]/color":["input/tex-base"],"[tex]/colorv2":["input/tex-base"],"[tex]/colortbl":["input/tex-base","[tex]/color"],"[tex]/configmacros":["input/tex-base","[tex]/newcommand"],"[tex]/enclose":["input/tex-base"],"[tex]/extpfeil":["input/tex-base","[tex]/newcommand","[tex]/ams"],"[tex]/html":["input/tex-base"],"[tex]/mathtools":["input/tex-base","[tex]/newcommand","[tex]/ams"],"[tex]/mhchem":["input/tex-base","[tex]/ams"],"[tex]/newcommand":["input/tex-base"],"[tex]/noerrors":["input/tex-base"],"[tex]/noundefined":["input/tex-base"],"[tex]/physics":["input/tex-base"],"[tex]/require":["input/tex-base"],"[tex]/setoptions":["input/tex-base"],"[tex]/tagformat":["input/tex-base"],"[tex]/texhtml":["input/tex-base"],"[tex]/textcomp":["input/tex-base","[tex]/textmacros"],"[tex]/textmacros":["input/tex-base"],"[tex]/unicode":["input/tex-base"],"[tex]/verb":["input/tex-base"],"[tex]/cases":["[tex]/empheq"],"[tex]/empheq":["input/tex-base","[tex]/ams"]},a=Array.from(Object.keys(s)).filter((function(t){return"[tex]"===t.substr(0,5)&&"[tex]/autoload"!==t&&"[tex]/colorv2"!==t&&"[tex]/all-packages"!==t})),l={startup:["loader"],"input/tex":["input/tex-base","[tex]/ams","[tex]/newcommand","[tex]/noundefined","[tex]/require","[tex]/autoload","[tex]/configmacros"],"input/tex-full":["input/tex-base","[tex]/all-packages"].concat((o=a,function(t){if(Array.isArray(t))return i(t)}(o)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(o)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),"[tex]/all-packages":a},c=r(4892);function u(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}c.Loader.preLoad("loader","startup"),(0,n.combineDefaults)(MathJax.config.loader,"dependencies",s),(0,n.combineDefaults)(MathJax.config.loader,"paths",{tex:"[mathjax]/input/tex/extensions",mml:"[mathjax]/input/mml/extensions",sre:"[mathjax]/sre/mathmaps"}),(0,n.combineDefaults)(MathJax.config.loader,"provides",l),(0,n.combineDefaults)(MathJax.config.loader,"source",{"[tex]/amsCd":"[tex]/amscd","[tex]/colorV2":"[tex]/colorv2","[tex]/configMacros":"[tex]/configmacros","[tex]/tagFormat":"[tex]/tagformat"}),c.Loader.load.apply(c.Loader,u(c.CONFIG.load)).then((function(){return c.CONFIG.ready()})).catch((function(t){return c.CONFIG.failed(t)}))},2717:function(t,e,r){"use strict";r.r(e);var n=r(3284),i=r(8055),o=r(3110),s=r(7230),a=r(1447),l=r(1291),c=r(5810);MathJax.loader&&MathJax.loader.checkVersion("ui/menu",i.VERSION,"ui"),(0,n.combineWithMathJax)({_:{ui:{menu:{MJContextMenu:o,Menu:s,MenuHandler:a,MmlVisitor:l,SelectableInfo:c}}}}),MathJax.startup&&"undefined"!=typeof window&&MathJax.startup.extendHandler((function(t){return(0,a.MenuHandler)(t)}),20)}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=function(t,e){for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __webpack_exports__={};!function(){__webpack_require__(8639),__webpack_require__(4892).Loader.preLoad("loader","startup","core","input/tex","input/mml","output/chtml","output/fonts/mathjax-modern/chtml","ui/menu","a11y/assistive-mml"),__webpack_require__(1798),__webpack_require__(4427),__webpack_require__(3814),__webpack_require__(6238);var t=__webpack_require__(2574).CHTML;MathJax.startup&&(MathJax.startup.registerConstructor("chtml",t),MathJax.startup.useOutput("chtml")),__webpack_require__(6085),__webpack_require__(2717),__webpack_require__(403),__webpack_require__(5425)}()})();