db-studio 1.2.18 → 1.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/dist/core-dist/assets/{_baseUniq-Ba6cdS3v.js → _baseUniq-CeqT3N-D.js} +1 -1
  2. package/dist/core-dist/assets/_pathlessLayout-DjLhpgxd.js +2 -0
  3. package/dist/core-dist/assets/_queryId-D0l8wnr_.js +1 -0
  4. package/dist/core-dist/assets/_table-D_on85wJ.js +1 -0
  5. package/dist/core-dist/assets/{arc-D8UcRNMa.js → arc-Dnc_3KxD.js} +1 -1
  6. package/dist/core-dist/assets/architectureDiagram-VXUJARFQ-D-naFXsN.js +36 -0
  7. package/dist/core-dist/assets/{blockDiagram-VD42YOAC-Key67jhL.js → blockDiagram-VD42YOAC-jp3IzhcG.js} +2 -2
  8. package/dist/core-dist/assets/{c4Diagram-YG6GDRKO-SLYVYNN5.js → c4Diagram-YG6GDRKO-CahI2eve.js} +4 -4
  9. package/dist/core-dist/assets/cdoe-editor-BswlKXRb.js +9 -0
  10. package/dist/core-dist/assets/channel-C4imq4Zh.js +1 -0
  11. package/dist/core-dist/assets/{chunk-4BX2VUAB-BHKffaup.js → chunk-4BX2VUAB-DNTUv4GR.js} +1 -1
  12. package/dist/core-dist/assets/{chunk-55IACEB6-Bp2-xSpt.js → chunk-55IACEB6-Xrs620gj.js} +1 -1
  13. package/dist/core-dist/assets/chunk-B4BG7PRW-COpTaouf.js +165 -0
  14. package/dist/core-dist/assets/chunk-DI55MBZ5-3wt5pOdw.js +220 -0
  15. package/dist/core-dist/assets/{chunk-FMBD7UC4-CXjDDSki.js → chunk-FMBD7UC4-BQmP0qBN.js} +1 -1
  16. package/dist/core-dist/assets/{chunk-QN33PNHL-D_22Snnm.js → chunk-QN33PNHL-f1y0j0u4.js} +1 -1
  17. package/dist/core-dist/assets/chunk-QZHKN3VN-C6jBpr-H.js +1 -0
  18. package/dist/core-dist/assets/{chunk-TZMSLE5B-cH4y8DMD.js → chunk-TZMSLE5B-31ka2vOU.js} +1 -1
  19. package/dist/core-dist/assets/classDiagram-2ON5EDUG-Q5JJrM4i.js +1 -0
  20. package/dist/core-dist/assets/classDiagram-v2-WZHVMYZB-Q5JJrM4i.js +1 -0
  21. package/dist/core-dist/assets/clone-DVHLGOmt.js +1 -0
  22. package/dist/core-dist/assets/{code-block-IT6T5CEO-BjXa4xsL.js → code-block-IT6T5CEO-B2LU0jbX.js} +4 -4
  23. package/dist/core-dist/assets/cose-bilkent-S5V4N54A-DsJKuZ9Q.js +1 -0
  24. package/dist/core-dist/assets/{css.worker-DBVD8oXr.js → css.worker-NZNbQL3P.js} +33 -33
  25. package/dist/core-dist/assets/dagre-6UL2VRFP-BnjHWLsZ.js +4 -0
  26. package/dist/core-dist/assets/diagram-PSM6KHXK-CnF6MjR2.js +24 -0
  27. package/dist/core-dist/assets/diagram-QEK2KX5R-DxVrT1PJ.js +43 -0
  28. package/dist/core-dist/assets/diagram-S2PKOQOG-BZ5b9Hv-.js +24 -0
  29. package/dist/core-dist/assets/erDiagram-Q2GNP2WA-s3KzkqPg.js +60 -0
  30. package/dist/core-dist/assets/flowDiagram-NV44I4VS-DFMBdQkp.js +162 -0
  31. package/dist/core-dist/assets/format-cell-value-Cn3RA9a1.js +1 -0
  32. package/dist/core-dist/assets/ganttDiagram-JELNMOA3-OzgA9GJ4.js +267 -0
  33. package/dist/core-dist/assets/gitGraphDiagram-NY62KEGX-LfOuHeDw.js +65 -0
  34. package/dist/core-dist/assets/{graph-CTgOz0UF.js → graph-CoUoQfuh.js} +1 -1
  35. package/dist/core-dist/assets/{html.worker-CwpTb9lJ.js → html.worker-eZJr__P7.js} +25 -25
  36. package/dist/core-dist/assets/icons-DJrV7d9i.js +1 -0
  37. package/dist/core-dist/assets/index-C4atBwjx.js +1 -0
  38. package/dist/core-dist/assets/index-CS7mbTnV.js +1 -0
  39. package/dist/core-dist/assets/index-Ch8XtMo1.css +1 -0
  40. package/dist/core-dist/assets/index-DOupmzl0.js +1 -0
  41. package/dist/core-dist/assets/index-ERxh7PXo.js +53 -0
  42. package/dist/core-dist/assets/indexes-COZEEebq.js +1 -0
  43. package/dist/core-dist/assets/infoDiagram-WHAUD3N6-D4mcM6pw.js +2 -0
  44. package/dist/core-dist/assets/{journeyDiagram-XKPGCS4Q-0eaJMAvF.js → journeyDiagram-XKPGCS4Q-CiAw1nw_.js} +5 -5
  45. package/dist/core-dist/assets/json.worker-C838mOW9.js +58 -0
  46. package/dist/core-dist/assets/{kanban-definition-3W4ZIXB7-C5OX0ahP.js → kanban-definition-3W4ZIXB7-Yuc0Z8QR.js} +2 -2
  47. package/dist/core-dist/assets/{layout-CsSbCnq2.js → layout-Cw4LVk42.js} +1 -1
  48. package/dist/core-dist/assets/{linear-D7wMV6wy.js → linear-CU5DgYOG.js} +1 -1
  49. package/dist/core-dist/assets/logs-BL7j4vCh.js +1 -0
  50. package/dist/core-dist/assets/mermaid-VLURNSYL-_Y2XU6_c.js +377 -0
  51. package/dist/core-dist/assets/mermaid.core-ds122QIK.js +191 -0
  52. package/dist/core-dist/assets/{min-i41Gt2X5.js → min-DFudLmkE.js} +1 -1
  53. package/dist/core-dist/assets/mindmap-definition-VGOIOE7T-D7KNYm2E.js +68 -0
  54. package/dist/core-dist/assets/monaco-editor-BMj4E99D.js +1230 -0
  55. package/dist/core-dist/assets/monaco-editor-Ck3IbhyB.css +1 -0
  56. package/dist/core-dist/assets/pieDiagram-ADFJNKIX-D6Z1CJPE.js +30 -0
  57. package/dist/core-dist/assets/quadrantDiagram-AYHSOK5B-CxzHU3WJ.js +7 -0
  58. package/dist/core-dist/assets/queries.store-Bxxvcbg7.js +1 -0
  59. package/dist/core-dist/assets/radix-ui-Cy3m1w7k.js +51 -0
  60. package/dist/core-dist/assets/react-dom-DJoE1oD9.js +9 -0
  61. package/dist/core-dist/assets/requirementDiagram-UZGBJVZJ-CJGHr0pf.js +64 -0
  62. package/dist/core-dist/assets/runner-tab-C3nQeksP.js +3 -0
  63. package/dist/core-dist/assets/sankeyDiagram-TZEHDZUN-CUlo_r1v.js +10 -0
  64. package/dist/core-dist/assets/schema-ChEV6sF4.js +1 -0
  65. package/dist/core-dist/assets/scroll-area-BrIAuvEe.js +1 -0
  66. package/dist/core-dist/assets/{sequenceDiagram-WL72ISMW-DJmT-TV8.js → sequenceDiagram-WL72ISMW-w51z8BRE.js} +10 -10
  67. package/dist/core-dist/assets/spinner-BESLBiEc.js +1 -0
  68. package/dist/core-dist/assets/stateDiagram-FKZM4ZOC-WlBCMI5F.js +1 -0
  69. package/dist/core-dist/assets/stateDiagram-v2-4FDKWEC3-CBo6ZLu7.js +1 -0
  70. package/dist/core-dist/assets/tanstack-qLXitSFb.js +9 -0
  71. package/dist/core-dist/assets/{timeline-definition-IT6M3QCI-CZ6VgbGA.js → timeline-definition-IT6M3QCI-C5ksKXI5.js} +2 -2
  72. package/dist/core-dist/assets/treemap-KMMF4GRG-DPEcHwuf.js +128 -0
  73. package/dist/core-dist/assets/{ts.worker-BH9nVgjN.js → ts.worker-BfwyojP3.js} +108 -108
  74. package/dist/core-dist/assets/visualizer-CEMTmyw2.js +1 -0
  75. package/dist/core-dist/assets/xychartDiagram-PRI3JC2R-CNj0xyV4.js +7 -0
  76. package/dist/core-dist/index.html +8 -2
  77. package/dist/index.js +36 -36
  78. package/dist/index.js.map +1 -1
  79. package/package.json +1 -1
  80. package/dist/core-dist/assets/_queryId-CtxjgPTw.js +0 -1
  81. package/dist/core-dist/assets/_table-QVQOem0H.js +0 -1
  82. package/dist/core-dist/assets/abap-DLDM7-KI.js +0 -1
  83. package/dist/core-dist/assets/apex-DNDY2TF8.js +0 -1
  84. package/dist/core-dist/assets/architectureDiagram-VXUJARFQ-qETUbLAF.js +0 -36
  85. package/dist/core-dist/assets/azcli-Y6nb8tq_.js +0 -1
  86. package/dist/core-dist/assets/bat-BwHxbl9M.js +0 -1
  87. package/dist/core-dist/assets/bicep-CFznDFnq.js +0 -2
  88. package/dist/core-dist/assets/cameligo-Bf6VGUru.js +0 -1
  89. package/dist/core-dist/assets/channel-DXRfMgFO.js +0 -1
  90. package/dist/core-dist/assets/chunk-B4BG7PRW-9F7cesSu.js +0 -165
  91. package/dist/core-dist/assets/chunk-DI55MBZ5-BJ4N1m8m.js +0 -220
  92. package/dist/core-dist/assets/chunk-QZHKN3VN-BI_2bsiS.js +0 -1
  93. package/dist/core-dist/assets/classDiagram-2ON5EDUG-DetPPK8G.js +0 -1
  94. package/dist/core-dist/assets/classDiagram-v2-WZHVMYZB-DetPPK8G.js +0 -1
  95. package/dist/core-dist/assets/clojure-Dnu-v4kV.js +0 -1
  96. package/dist/core-dist/assets/clone-ZzK9qmZ8.js +0 -1
  97. package/dist/core-dist/assets/coffee-Bd8akH9Z.js +0 -1
  98. package/dist/core-dist/assets/cose-bilkent-S5V4N54A-C6X32Xza.js +0 -1
  99. package/dist/core-dist/assets/cpp-BbWJElDN.js +0 -1
  100. package/dist/core-dist/assets/csharp-Co3qMtFm.js +0 -1
  101. package/dist/core-dist/assets/csp-D-4FJmMZ.js +0 -1
  102. package/dist/core-dist/assets/css-DdJfP1eB.js +0 -3
  103. package/dist/core-dist/assets/cssMode-COyIeO5D.js +0 -1
  104. package/dist/core-dist/assets/cypher-cTPe9QuQ.js +0 -1
  105. package/dist/core-dist/assets/dagre-6UL2VRFP-BQJjQlXe.js +0 -4
  106. package/dist/core-dist/assets/dart-BOtBlQCF.js +0 -1
  107. package/dist/core-dist/assets/diagram-PSM6KHXK-B_lyGamX.js +0 -24
  108. package/dist/core-dist/assets/diagram-QEK2KX5R-BXKMeskZ.js +0 -43
  109. package/dist/core-dist/assets/diagram-S2PKOQOG-DRgMDaOe.js +0 -24
  110. package/dist/core-dist/assets/dockerfile-BG73LgW2.js +0 -1
  111. package/dist/core-dist/assets/ecl-BEgZUVRK.js +0 -1
  112. package/dist/core-dist/assets/elixir-BkW5O-1t.js +0 -1
  113. package/dist/core-dist/assets/erDiagram-Q2GNP2WA-BO-W5nUt.js +0 -60
  114. package/dist/core-dist/assets/flow9-BeJ5waoc.js +0 -1
  115. package/dist/core-dist/assets/flowDiagram-NV44I4VS-Dz2q0_YK.js +0 -162
  116. package/dist/core-dist/assets/format-cell-value-X8lEs2y8.js +0 -7
  117. package/dist/core-dist/assets/freemarker2-gdEdc-lB.js +0 -3
  118. package/dist/core-dist/assets/fsharp-PahG7c26.js +0 -1
  119. package/dist/core-dist/assets/ganttDiagram-JELNMOA3-B543Dp2T.js +0 -267
  120. package/dist/core-dist/assets/gitGraphDiagram-NY62KEGX-aRaFIgsI.js +0 -65
  121. package/dist/core-dist/assets/go-acbASCJo.js +0 -1
  122. package/dist/core-dist/assets/graphql-BxJiqAUM.js +0 -1
  123. package/dist/core-dist/assets/handlebars-BBHQDTvc.js +0 -1
  124. package/dist/core-dist/assets/hcl-DtV1sZF8.js +0 -1
  125. package/dist/core-dist/assets/html-BHSCOa4F.js +0 -1
  126. package/dist/core-dist/assets/htmlMode-CkiHtpA8.js +0 -1
  127. package/dist/core-dist/assets/index-BTMIybLt.js +0 -1
  128. package/dist/core-dist/assets/index-BTOfnwiY.js +0 -1
  129. package/dist/core-dist/assets/index-Be72I791.js +0 -93
  130. package/dist/core-dist/assets/index-C1hGVAGZ.css +0 -1
  131. package/dist/core-dist/assets/index-Rq-jgZaW.js +0 -1
  132. package/dist/core-dist/assets/index-_iOa5gQT.js +0 -1
  133. package/dist/core-dist/assets/indexes-CZKaBB3n.js +0 -1
  134. package/dist/core-dist/assets/infoDiagram-WHAUD3N6-BxhzEtc1.js +0 -2
  135. package/dist/core-dist/assets/ini-Kd9XrMLS.js +0 -1
  136. package/dist/core-dist/assets/java-CXBNlu9o.js +0 -1
  137. package/dist/core-dist/assets/javascript-DkfOhMgX.js +0 -1
  138. package/dist/core-dist/assets/json.worker-BoL8UZqY.js +0 -58
  139. package/dist/core-dist/assets/jsonMode-DZ1izBRp.js +0 -7
  140. package/dist/core-dist/assets/julia-cl7-CwDS.js +0 -1
  141. package/dist/core-dist/assets/kotlin-s7OhZKlX.js +0 -1
  142. package/dist/core-dist/assets/less-9HpZscsL.js +0 -2
  143. package/dist/core-dist/assets/lexon-OrD6JF1K.js +0 -1
  144. package/dist/core-dist/assets/liquid-CSiyAE27.js +0 -1
  145. package/dist/core-dist/assets/logs-CorclGry.js +0 -1
  146. package/dist/core-dist/assets/lspLanguageFeatures-DfqpxEKm.js +0 -4
  147. package/dist/core-dist/assets/lua-Cyyb5UIc.js +0 -1
  148. package/dist/core-dist/assets/m3-B8OfTtLu.js +0 -1
  149. package/dist/core-dist/assets/markdown-BFxVWTOG.js +0 -1
  150. package/dist/core-dist/assets/mdx-uX3cu8xR.js +0 -1
  151. package/dist/core-dist/assets/mermaid-VLURNSYL-Dsp_Uc89.js +0 -385
  152. package/dist/core-dist/assets/mermaid.core-CqgD0fud.js +0 -191
  153. package/dist/core-dist/assets/mindmap-definition-VGOIOE7T-DjevekBL.js +0 -68
  154. package/dist/core-dist/assets/mips-CiqrrVzr.js +0 -1
  155. package/dist/core-dist/assets/msdax-DmeGPVcC.js +0 -1
  156. package/dist/core-dist/assets/mysql-C_tMU-Nz.js +0 -1
  157. package/dist/core-dist/assets/objective-c-BDtDVThU.js +0 -1
  158. package/dist/core-dist/assets/pascal-vHIfCaH5.js +0 -1
  159. package/dist/core-dist/assets/pascaligo-DtZ0uQbO.js +0 -1
  160. package/dist/core-dist/assets/perl-Ub6l9XKa.js +0 -1
  161. package/dist/core-dist/assets/pgsql-BlNEE0v7.js +0 -1
  162. package/dist/core-dist/assets/php-BBUBE1dy.js +0 -1
  163. package/dist/core-dist/assets/pieDiagram-ADFJNKIX-CPtZmRfi.js +0 -30
  164. package/dist/core-dist/assets/pla-DSh2-awV.js +0 -1
  165. package/dist/core-dist/assets/postiats-CocnycG-.js +0 -1
  166. package/dist/core-dist/assets/powerquery-tScXyioY.js +0 -1
  167. package/dist/core-dist/assets/powershell-COWaemsV.js +0 -1
  168. package/dist/core-dist/assets/protobuf-Brw8urJB.js +0 -2
  169. package/dist/core-dist/assets/pug-8SOpv6rk.js +0 -1
  170. package/dist/core-dist/assets/python-B9JzkkTC.js +0 -1
  171. package/dist/core-dist/assets/qsharp-Bw9ernYp.js +0 -1
  172. package/dist/core-dist/assets/quadrantDiagram-AYHSOK5B-S4R-vVvp.js +0 -7
  173. package/dist/core-dist/assets/queries.store-B1nG_ISF.js +0 -1
  174. package/dist/core-dist/assets/r-j7ic8hl3.js +0 -1
  175. package/dist/core-dist/assets/razor-CzwuFYGp.js +0 -1
  176. package/dist/core-dist/assets/redis-Bu5POkcn.js +0 -1
  177. package/dist/core-dist/assets/redshift-Bs9aos_-.js +0 -1
  178. package/dist/core-dist/assets/requirementDiagram-UZGBJVZJ-DLD6w2sA.js +0 -64
  179. package/dist/core-dist/assets/restructuredtext-CqXO7rUv.js +0 -1
  180. package/dist/core-dist/assets/ruby-zBfavPgS.js +0 -1
  181. package/dist/core-dist/assets/runner-tab-DPb19JM8.js +0 -915
  182. package/dist/core-dist/assets/runner-tab-Dvl_Svmm.css +0 -1
  183. package/dist/core-dist/assets/rust-BzKRNQWT.js +0 -1
  184. package/dist/core-dist/assets/sankeyDiagram-TZEHDZUN-BbQCHwbF.js +0 -10
  185. package/dist/core-dist/assets/sb-BBc9UKZt.js +0 -1
  186. package/dist/core-dist/assets/scala-D9hQfWCl.js +0 -1
  187. package/dist/core-dist/assets/schema-BD130Lxx.js +0 -1
  188. package/dist/core-dist/assets/scheme-BPhDTwHR.js +0 -1
  189. package/dist/core-dist/assets/scss-CBJaRo0y.js +0 -3
  190. package/dist/core-dist/assets/shell-DiJ1NA_G.js +0 -1
  191. package/dist/core-dist/assets/solidity-Db0IVjzk.js +0 -1
  192. package/dist/core-dist/assets/sophia-CnS9iZB_.js +0 -1
  193. package/dist/core-dist/assets/sparql-CJmd_6j2.js +0 -1
  194. package/dist/core-dist/assets/spinner-ChqXfynD.js +0 -1
  195. package/dist/core-dist/assets/sql-ClhHkBeG.js +0 -1
  196. package/dist/core-dist/assets/st-CHwy0fLd.js +0 -1
  197. package/dist/core-dist/assets/stateDiagram-FKZM4ZOC-CA3Y31oP.js +0 -1
  198. package/dist/core-dist/assets/stateDiagram-v2-4FDKWEC3-C9Mi7uYs.js +0 -1
  199. package/dist/core-dist/assets/swift-CnmFD0ga.js +0 -1
  200. package/dist/core-dist/assets/systemverilog-Bs9z6M-B.js +0 -1
  201. package/dist/core-dist/assets/tcl-Dm6ycUr_.js +0 -1
  202. package/dist/core-dist/assets/treemap-KMMF4GRG-CGReTPVL.js +0 -128
  203. package/dist/core-dist/assets/tsMode-CIVrOdYR.js +0 -11
  204. package/dist/core-dist/assets/twig-Csy3S7wG.js +0 -1
  205. package/dist/core-dist/assets/typescript-C-mVzuNT.js +0 -1
  206. package/dist/core-dist/assets/typespec-Btyra-wh.js +0 -1
  207. package/dist/core-dist/assets/vb-Db0cS2oM.js +0 -1
  208. package/dist/core-dist/assets/visualizer-CFH9tiUM.js +0 -1
  209. package/dist/core-dist/assets/wgsl-BTesnYfV.js +0 -298
  210. package/dist/core-dist/assets/xml-B32PQaiV.js +0 -1
  211. package/dist/core-dist/assets/xychartDiagram-PRI3JC2R-BP0zg957.js +0 -7
  212. package/dist/core-dist/assets/yaml-i7-mo1Cv.js +0 -1
@@ -0,0 +1,377 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-ds122QIK.js","assets/monaco-editor-BMj4E99D.js","assets/monaco-editor-Ck3IbhyB.css","assets/icons-DJrV7d9i.js","assets/code-block-IT6T5CEO-B2LU0jbX.js","assets/radix-ui-Cy3m1w7k.js","assets/react-dom-DJoE1oD9.js","assets/tanstack-qLXitSFb.js","assets/index-ERxh7PXo.js","assets/index-Ch8XtMo1.css","assets/scroll-area-BrIAuvEe.js","assets/spinner-BESLBiEc.js","assets/_pathlessLayout-DjLhpgxd.js","assets/queries.store-Bxxvcbg7.js","assets/katex-DvXFAOB1.css"])))=>i.map(i=>d[i]);
2
+ import{j as I,B as bd,ag as Ed,ah as Td,ai as xd,aj as Ms}from"./radix-ui-Cy3m1w7k.js";import{j as yd,r as kd,s as vd}from"./tanstack-qLXitSFb.js";import{r as B,Z as Ad,g as to,a0 as qa,a1 as ro,a2 as no,a3 as wd,a4 as Sd,a5 as Cd,a6 as Nd,a7 as _d,a8 as Id,p as Dd,J as Ld,a9 as Rd,X as Od,aa as Md,l as Pd,d as Bd}from"./icons-DJrV7d9i.js";import{a as He,B as R0,a6 as Fd,a7 as zd,a8 as Hd,a9 as Ud,aa as qd,m as jd,Q as $d,D as Yd}from"./index-ERxh7PXo.js";import{S as Vd,n as Gd}from"./scroll-area-BrIAuvEe.js";import{T as Wd,a as Xd,b as Qd}from"./spinner-BESLBiEc.js";import{u as Kd}from"./_pathlessLayout-DjLhpgxd.js";import{_ as ja}from"./monaco-editor-BMj4E99D.js";const Zd=["Show me all tables in my database","What columns are in the users table?","Write a query to find all active users","How many orders were placed last month?","Find top 5 customers by total spend","Write a JOIN between users and orders","Users who haven't made any purchase yet","Generate monthly revenue summary query","Suggest useful indexes for better performance","Show schema of the products / inventory table","Latest 20 orders with customer names","Help me write a safe UPDATE query"];const Jd={damping:.7,stiffness:.05,mass:1.25},ef=70,tf=1e3/60,rf=350;let $a=!1;globalThis.document?.addEventListener("mousedown",()=>{$a=!0});globalThis.document?.addEventListener("mouseup",()=>{$a=!1});globalThis.document?.addEventListener("click",()=>{$a=!1});const nf=(e={})=>{const[t,r]=B.useState(!1),[n,a]=B.useState(e.initial!==!1),[i,s]=B.useState(!1),u=B.useRef(null);u.current=e;const l=B.useCallback(()=>{if(!$a)return!1;const w=window.getSelection();if(!w||!w.rangeCount)return!1;const L=w.getRangeAt(0);return L.commonAncestorContainer.contains(v.current)||v.current?.contains(L.commonAncestorContainer)},[]),o=B.useCallback(w=>{c.isAtBottom=w,a(w)},[]),h=B.useCallback(w=>{c.escapedFromLock=w,r(w)},[]),c=B.useMemo(()=>{let w;return{escapedFromLock:t,isAtBottom:n,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return v.current?.scrollTop??0},set scrollTop(L){v.current&&(v.current.scrollTop=L,c.ignoreScrollToTop=v.current.scrollTop)},get targetScrollTop(){return!v.current||!A.current?0:v.current.scrollHeight-1-v.current.clientHeight},get calculatedTargetScrollTop(){if(!v.current||!A.current)return 0;const{targetScrollTop:L}=this;if(!e.targetScrollTop)return L;if(w?.targetScrollTop===L)return w.calculatedScrollTop;const z=Math.max(Math.min(e.targetScrollTop(L,{scrollElement:v.current,contentElement:A.current}),L),0);return w={targetScrollTop:L,calculatedScrollTop:z},requestAnimationFrame(()=>{w=void 0}),z},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=ef}}},[]),m=B.useCallback((w={})=>{typeof w=="string"&&(w={animation:w}),w.preserveScrollPosition||o(!0);const L=Date.now()+(Number(w.wait)||0),z=mi(u.current,w.animation),{ignoreEscapes:q=!1}=w;let O,Y=c.calculatedTargetScrollTop;w.duration instanceof Promise?w.duration.finally(()=>{O=Date.now()}):O=L+(w.duration??0);const J=async()=>{const Q=new Promise(requestAnimationFrame).then(()=>{if(!c.isAtBottom)return c.animation=void 0,!1;const{scrollTop:P}=c,Z=performance.now(),U=(Z-(c.lastTick??Z))/tf;if(c.animation||(c.animation={behavior:z,promise:Q,ignoreEscapes:q}),c.animation.behavior===z&&(c.lastTick=Z),l()||L>Date.now())return J();if(P<Math.min(Y,c.calculatedTargetScrollTop)){if(c.animation?.behavior===z){if(z==="instant")return c.scrollTop=c.calculatedTargetScrollTop,J();c.velocity=(z.damping*c.velocity+z.stiffness*c.scrollDifference)/z.mass,c.accumulated+=c.velocity*U,c.scrollTop+=c.accumulated,c.scrollTop!==P&&(c.accumulated=0)}return J()}return O>Date.now()?(Y=c.calculatedTargetScrollTop,J()):(c.animation=void 0,c.scrollTop<c.calculatedTargetScrollTop?m({animation:mi(u.current,u.current.resize),ignoreEscapes:q,duration:Math.max(0,O-Date.now())||void 0}):c.isAtBottom)});return Q.then(P=>(requestAnimationFrame(()=>{c.animation||(c.lastTick=void 0,c.velocity=0)}),P))};return w.wait!==!0&&(c.animation=void 0),c.animation?.behavior===z?c.animation.promise:J()},[o,l,c]),g=B.useCallback(()=>{h(!0),o(!1)},[h,o]),E=B.useCallback(({target:w})=>{if(w!==v.current)return;const{scrollTop:L,ignoreScrollToTop:z}=c;let{lastScrollTop:q=L}=c;c.lastScrollTop=L,c.ignoreScrollToTop=void 0,z&&z>L&&(q=z),s(c.isNearBottom),setTimeout(()=>{if(c.resizeDifference||L===z)return;if(l()){h(!0),o(!1);return}const O=L>q,Y=L<q;if(c.animation?.ignoreEscapes){c.scrollTop=q;return}Y&&(h(!0),o(!1)),O&&h(!1),!c.escapedFromLock&&c.isNearBottom&&o(!0)},1)},[h,o,l,c]),y=B.useCallback(({target:w,deltaY:L})=>{let z=w;for(;!["scroll","auto"].includes(getComputedStyle(z).overflow);){if(!z.parentElement)return;z=z.parentElement}z===v.current&&L<0&&v.current.scrollHeight>v.current.clientHeight&&!c.animation?.ignoreEscapes&&(h(!0),o(!1))},[h,o,c]),v=Ps(w=>{v.current?.removeEventListener("scroll",E),v.current?.removeEventListener("wheel",y),w?.addEventListener("scroll",E,{passive:!0}),w?.addEventListener("wheel",y,{passive:!0})},[]),A=Ps(w=>{if(c.resizeObserver?.disconnect(),!w)return;let L;c.resizeObserver=new ResizeObserver(([z])=>{const{height:q}=z.contentRect,O=q-(L??q);if(c.resizeDifference=O,c.scrollTop>c.targetScrollTop&&(c.scrollTop=c.targetScrollTop),s(c.isNearBottom),O>=0){const Y=mi(u.current,L?u.current.resize:u.current.initial);m({animation:Y,wait:!0,preserveScrollPosition:!0,duration:Y==="instant"?void 0:rf})}else c.isNearBottom&&(h(!1),o(!0));L=q,requestAnimationFrame(()=>{setTimeout(()=>{c.resizeDifference===O&&(c.resizeDifference=0)},1)})}),c.resizeObserver?.observe(w)},[]);return{contentRef:A,scrollRef:v,scrollToBottom:m,stopScroll:g,isAtBottom:n||i,isNearBottom:i,escapedFromLock:t,state:c}};function Ps(e,t){const r=B.useCallback(n=>(r.current=n,e(n)),t);return r}const fi=new Map;function mi(...e){const t={...Jd};let r=!1;for(const a of e){if(a==="instant"){r=!0;continue}typeof a=="object"&&(r=!1,t.damping=a.damping??t.damping,t.stiffness=a.stiffness??t.stiffness,t.mass=a.mass??t.mass)}const n=JSON.stringify(t);return fi.has(n)||fi.set(n,Object.freeze(t)),r?"instant":fi.get(n)}const ao=B.createContext(null),af=typeof window<"u"?B.useLayoutEffect:B.useEffect;function wa({instance:e,children:t,resize:r,initial:n,mass:a,damping:i,stiffness:s,targetScrollTop:u,contextRef:l,...o}){const h=B.useRef(null),c=B.useCallback((q,O)=>(z?.targetScrollTop??u)?.(q,O)??q,[u]),m=nf({mass:a,damping:i,stiffness:s,resize:r,initial:n,targetScrollTop:c}),{scrollRef:g,contentRef:E,scrollToBottom:y,stopScroll:v,isAtBottom:A,escapedFromLock:w,state:L}=e??m,z=B.useMemo(()=>({scrollToBottom:y,stopScroll:v,scrollRef:g,isAtBottom:A,escapedFromLock:w,contentRef:E,state:L,get targetScrollTop(){return h.current},set targetScrollTop(q){h.current=q}}),[y,A,E,g,v,w,L]);return B.useImperativeHandle(l,()=>z,[z]),af(()=>{g.current&&getComputedStyle(g.current).overflow==="visible"&&(g.current.style.overflow="auto")},[]),I.jsx(ao.Provider,{value:z,children:I.jsx("div",{...o,children:typeof t=="function"?t(z):t})})}(function(e){function t({children:r,...n}){const a=io();return I.jsx("div",{ref:a.scrollRef,style:{height:"100%",width:"100%"},children:I.jsx("div",{...n,ref:a.contentRef,children:typeof r=="function"?r(a):r})})}e.Content=t})(wa||(wa={}));function io(){const e=B.useContext(ao);if(!e)throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}const sf=({className:e,...t})=>I.jsx(wa,{className:He("relative flex-1 overflow-y-hidden",e),initial:"smooth",resize:"smooth",role:"log",...t}),uf=({className:e,...t})=>I.jsx(wa.Content,{className:He("flex flex-col gap-8 p-4",e),...t}),lf=({className:e,...t})=>{const{isAtBottom:r,scrollToBottom:n}=io(),a=B.useCallback(()=>{n()},[n]);return!r&&I.jsx(R0,{className:He("absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full",e),onClick:a,size:"icon",type:"button",variant:"outline",...t,children:I.jsx(Ad,{className:"size-4"})})},Bs=[{variant:"shine",component:({children:e,className:t,...r})=>I.jsx("span",{...r,className:He("bg-[linear-gradient(110deg,#bfbfbf,35%,#000,50%,#bfbfbf,75%,#bfbfbf)] dark:bg-[linear-gradient(110deg,#404040,35%,#fff,50%,#404040,75%,#404040)]","bg-size-[200%_100%] bg-clip-text text-transparent","animate-shine",t),children:e})}];function of({variant:e="shine",className:t,...r}){const i=Bs.find(s=>s.variant===e)?.component||Bs[0].component;return I.jsx(bd,{className:He("font-medium text-sm"),children:I.jsx(i,{...r,className:t})})}const Vn=(function(e){if(e==null)return ff;if(typeof e=="function")return Ya(e);if(typeof e=="object")return Array.isArray(e)?cf(e):hf(e);if(typeof e=="string")return df(e);throw new Error("Expected function, string, or object as test")});function cf(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Vn(e[r]);return Ya(n);function n(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function hf(e){const t=e;return Ya(r);function r(n){const a=n;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function df(e){return Ya(t);function t(r){return r&&r.type===e}}function Ya(e){return t;function t(r,n,a){return!!(mf(r)&&e.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function ff(){return!0}function mf(e){return e!==null&&typeof e=="object"&&"type"in e}const so=[],vn=!0,Ji=!1,Sa="skip";function O0(e,t,r,n){let a;typeof t=="function"&&typeof r!="function"?(n=r,r=t):a=t;const i=Vn(a),s=n?-1:1;u(e,void 0,[])();function u(l,o,h){const c=l&&typeof l=="object"?l:{};if(typeof c.type=="string"){const g=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(l.type+(g?"<"+g+">":""))+")"})}return m;function m(){let g=so,E,y,v;if((!t||i(l,o,h[h.length-1]||void 0))&&(g=pf(r(l,h)),g[0]===Ji))return g;if("children"in l&&l.children){const A=l;if(A.children&&g[0]!==Sa)for(y=(n?A.children.length:-1)+s,v=h.concat(A);y>-1&&y<A.children.length;){const w=A.children[y];if(E=u(w,y,v)(),E[0]===Ji)return E;y=typeof E[1]=="number"?E[1]:y+s}}return g}}}function pf(e){return Array.isArray(e)?e:typeof e=="number"?[vn,e]:e==null?so:[e]}function Qr(e,t,r,n){let a,i,s;typeof t=="function"&&typeof r!="function"?(i=void 0,s=t,a=r):(i=t,s=r,a=n),O0(e,i,u,a);function u(l,o){const h=o[o.length-1],c=h?h.children.indexOf(l):void 0;return s(l,c,h)}}function gf({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:r=[],allowDataImages:n=!1,allowedProtocols:a=[],blockedImageClass:i="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500"}){const u=t.length&&!t.every(o=>o==="*"),l=r.length&&!r.every(o=>o==="*");if(!e&&(u||l))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return o=>{const h=xf(e,t,r,n,a,i,s);Qr(o,h)}}function Fs(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function bf(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const Ef=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),Tf=new Set(["javascript:","data:","file:","vbscript:"]);function zs(e,t,r,n=!1,a=!1,i=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!a)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return a&&n&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const h=e.substring(5);if(h&&h.length>0&&h!=="invalid")return e}}catch{return null}return null}const s=Fs(e,r);if(!s||Tf.has(s.protocol)||!(Ef.has(s.protocol)||i.includes(s.protocol)||i.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const l=bf(e);return s&&t.some(o=>{const h=Fs(o,r);return!h||h.origin!==s.origin?!1:s.href.startsWith(h.href)})?l?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:l?s.pathname+s.search+s.hash:s.href:null}const pi=Symbol("node-seen"),xf=(e,t,r,n,a,i,s)=>{const u=(l,o,h)=>{if(l.type!=="element"||l[pi])return vn;if(l.tagName==="a"){const c=zs(l.properties.href,t,e,!1,!1,a);return c===null?(l[pi]=!0,Qr(l,u),h&&typeof o=="number"&&(h.children[o]={type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(l.properties.href),class:s},children:[...l.children,{type:"text",value:" [blocked]"}]}),Sa):(l.properties.href=c,l.properties.target="_blank",l.properties.rel="noopener noreferrer",vn)}if(l.tagName==="img"){const c=zs(l.properties.src,r,e,n,!0,a);return c===null?(l[pi]=!0,Qr(l,u),h&&typeof o=="number"&&(h.children[o]={type:"element",tagName:"span",properties:{class:i},children:[{type:"text",value:"[Image blocked: "+String(l.properties.alt||"No description")+"]"}]}),Sa):(l.properties.src=c,vn)}return vn};return u};class Gn{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Gn.prototype.normal={};Gn.prototype.property={};Gn.prototype.space=void 0;function uo(e,t){const r={},n={};for(const a of e)Object.assign(r,a.property),Object.assign(n,a.normal);return new Gn(r,n,t)}function zn(e){return e.toLowerCase()}class dt{constructor(t,r){this.attribute=r,this.property=t}}dt.prototype.attribute="";dt.prototype.booleanish=!1;dt.prototype.boolean=!1;dt.prototype.commaOrSpaceSeparated=!1;dt.prototype.commaSeparated=!1;dt.prototype.defined=!1;dt.prototype.mustUseProperty=!1;dt.prototype.number=!1;dt.prototype.overloadedBoolean=!1;dt.prototype.property="";dt.prototype.spaceSeparated=!1;dt.prototype.space=void 0;let yf=0;const me=Dr(),$e=Dr(),e0=Dr(),K=Dr(),Le=Dr(),Vr=Dr(),pt=Dr();function Dr(){return 2**++yf}const t0=Object.freeze(Object.defineProperty({__proto__:null,boolean:me,booleanish:$e,commaOrSpaceSeparated:pt,commaSeparated:Vr,number:K,overloadedBoolean:e0,spaceSeparated:Le},Symbol.toStringTag,{value:"Module"})),gi=Object.keys(t0);class M0 extends dt{constructor(t,r,n,a){let i=-1;if(super(t,r),Hs(this,"space",a),typeof n=="number")for(;++i<gi.length;){const s=gi[i];Hs(this,gi[i],(n&t0[s])===t0[s])}}}M0.prototype.defined=!0;function Hs(e,t,r){r&&(e[t]=r)}function tn(e){const t={},r={};for(const[n,a]of Object.entries(e.properties)){const i=new M0(n,e.transform(e.attributes||{},n),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[zn(n)]=n,r[zn(i.attribute)]=n}return new Gn(t,r,e.space)}const lo=tn({properties:{ariaActiveDescendant:null,ariaAtomic:$e,ariaAutoComplete:null,ariaBusy:$e,ariaChecked:$e,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:Le,ariaCurrent:null,ariaDescribedBy:Le,ariaDetails:null,ariaDisabled:$e,ariaDropEffect:Le,ariaErrorMessage:null,ariaExpanded:$e,ariaFlowTo:Le,ariaGrabbed:$e,ariaHasPopup:null,ariaHidden:$e,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Le,ariaLevel:K,ariaLive:null,ariaModal:$e,ariaMultiLine:$e,ariaMultiSelectable:$e,ariaOrientation:null,ariaOwns:Le,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:$e,ariaReadOnly:$e,ariaRelevant:null,ariaRequired:$e,ariaRoleDescription:Le,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:$e,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function oo(e,t){return t in e?e[t]:t}function co(e,t){return oo(e,t.toLowerCase())}const kf=tn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Vr,acceptCharset:Le,accessKey:Le,action:null,allow:null,allowFullScreen:me,allowPaymentRequest:me,allowUserMedia:me,alt:null,as:null,async:me,autoCapitalize:null,autoComplete:Le,autoFocus:me,autoPlay:me,blocking:Le,capture:null,charSet:null,checked:me,cite:null,className:Le,cols:K,colSpan:null,content:null,contentEditable:$e,controls:me,controlsList:Le,coords:K|Vr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:me,defer:me,dir:null,dirName:null,disabled:me,download:e0,draggable:$e,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:me,formTarget:null,headers:Le,height:K,hidden:e0,high:K,href:null,hrefLang:null,htmlFor:Le,httpEquiv:Le,id:null,imageSizes:null,imageSrcSet:null,inert:me,inputMode:null,integrity:null,is:null,isMap:me,itemId:null,itemProp:Le,itemRef:Le,itemScope:me,itemType:Le,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:me,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:me,muted:me,name:null,nonce:null,noModule:me,noValidate:me,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:me,optimum:K,pattern:null,ping:Le,placeholder:null,playsInline:me,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:me,referrerPolicy:null,rel:Le,required:me,reversed:me,rows:K,rowSpan:K,sandbox:Le,scope:null,scoped:me,seamless:me,selected:me,shadowRootClonable:me,shadowRootDelegatesFocus:me,shadowRootMode:null,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:$e,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:me,useMap:null,value:$e,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Le,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:me,declare:me,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:me,noHref:me,noShade:me,noWrap:me,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:$e,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:me,disableRemotePlayback:me,prefix:null,property:null,results:K,security:null,unselectable:null},space:"html",transform:co}),vf=tn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:pt,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:Le,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:me,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Vr,g2:Vr,glyphName:Vr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:pt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:K,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Le,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pt,rev:pt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pt,requiredFeatures:pt,requiredFonts:pt,requiredFormats:pt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:pt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pt,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:oo}),ho=tn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),fo=tn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:co}),mo=tn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Af={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},wf=/[A-Z]/g,Us=/-[a-z]/g,Sf=/^data[-\w.:]+$/i;function Va(e,t){const r=zn(t);let n=t,a=dt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Sf.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Us,Nf);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Us.test(i)){let s=i.replace(wf,Cf);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=M0}return new a(n,t)}function Cf(e){return"-"+e.toLowerCase()}function Nf(e){return e.charAt(1).toUpperCase()}const Wn=uo([lo,kf,ho,fo,mo],"html"),Er=uo([lo,vf,ho,fo,mo],"svg");function qs(e){const t=[],r=String(e||"");let n=r.indexOf(","),a=0,i=!1;for(;!i;){n===-1&&(n=r.length,i=!0);const s=r.slice(a,n).trim();(s||!i)&&t.push(s),a=n+1,n=r.indexOf(",",a)}return t}function po(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const js=/[#.]/g;function _f(e,t){const r=e||"",n={};let a=0,i,s;for(;a<r.length;){js.lastIndex=a;const u=js.exec(r),l=r.slice(a,u?u.index:r.length);l&&(i?i==="#"?n.id=l:Array.isArray(n.className)?n.className.push(l):n.className=[l]:s=l,a+=l.length),u&&(i=u[0],a++)}return{type:"element",tagName:s||t||"div",properties:n,children:[]}}function $s(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function go(e){return e.join(" ").trim()}function bo(e,t,r){const n=r?Rf(r):void 0;function a(i,s,...u){let l;if(i==null){l={type:"root",children:[]};const o=s;u.unshift(o)}else{l=_f(i,t);const o=l.tagName.toLowerCase(),h=n?n.get(o):void 0;if(l.tagName=h||o,If(s))u.unshift(s);else for(const[c,m]of Object.entries(s))Df(e,l.properties,c,m)}for(const o of u)r0(l.children,o);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return a}function If(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const a=t[n];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const s of i)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Df(e,t,r,n){const a=Va(e,r);let i;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;i=n}else typeof n=="boolean"?i=n:typeof n=="string"?a.spaceSeparated?i=$s(n):a.commaSeparated?i=qs(n):a.commaOrSpaceSeparated?i=$s(qs(n).join(" ")):i=Ys(a,a.property,n):Array.isArray(n)?i=[...n]:i=a.property==="style"?Lf(n):String(n);if(Array.isArray(i)){const s=[];for(const u of i)s.push(Ys(a,a.property,u));i=s}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function r0(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)r0(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?r0(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Ys(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||zn(r)===zn(t)))return!0}return r}function Lf(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function Rf(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const Of=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Eo=bo(Wn,"div"),To=bo(Er,"g",Of),zt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Mf(e,t){return xo(e,{})||{type:"root",children:[]}}function xo(e,t){const r=Pf(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function Pf(e,t){switch(e.nodeType){case 1:return Hf(e,t);case 3:return Ff(e);case 8:return zf(e);case 9:return Vs(e,t);case 10:return Bf();case 11:return Vs(e,t);default:return}}function Vs(e,t){return{type:"root",children:yo(e,t)}}function Bf(){return{type:"doctype"}}function Ff(e){return{type:"text",value:e.nodeValue||""}}function zf(e){return{type:"comment",value:e.nodeValue||""}}function Hf(e,t){const r=e.namespaceURI,n=r===zt.svg?To:Eo,a=r===zt.html?e.tagName.toLowerCase():e.tagName,i=r===zt.html&&a==="template"?e.content:e,s=e.getAttributeNames(),u={};let l=-1;for(;++l<s.length;)u[s[l]]=e.getAttribute(s[l])||"";return n(a,u,yo(i,t))}function yo(e,t){const r=e.childNodes,n=[];let a=-1;for(;++a<r.length;){const i=xo(r[a],t);i!==void 0&&n.push(i)}return n}new DOMParser;function Uf(e,t){const r=qf(e);return Mf(r)}function qf(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const Gs=(function(e,t,r){const n=Vn(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t]}),Lr=(function(e){if(e==null)return Yf;if(typeof e=="string")return $f(e);if(typeof e=="object")return jf(e);if(typeof e=="function")return P0(e);throw new Error("Expected function, string, or array as `test`")});function jf(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Lr(e[r]);return P0(n);function n(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function $f(e){return P0(t);function t(r){return r.tagName===e}}function P0(e){return t;function t(r,n,a){return!!(Vf(r)&&e.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function Yf(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Vf(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Ws=/\n/g,Xs=/[\t ]+/g,n0=Lr("br"),Qs=Lr(em),Gf=Lr("p"),Ks=Lr("tr"),Wf=Lr(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Jf,tm]),ko=Lr(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Xf(e,t){const r=t||{},n="children"in e?e.children:[],a=ko(e),i=wo(e,{whitespace:r.whitespace||"normal"}),s=[];(e.type==="text"||e.type==="comment")&&s.push(...Ao(e,{breakBefore:!0,breakAfter:!0}));let u=-1;for(;++u<n.length;)s.push(...vo(n[u],e,{whitespace:i,breakBefore:u?void 0:a,breakAfter:u<n.length-1?n0(n[u+1]):a}));const l=[];let o;for(u=-1;++u<s.length;){const h=s[u];typeof h=="number"?o!==void 0&&h>o&&(o=h):h&&(o!==void 0&&o>-1&&l.push(`
3
+ `.repeat(o)||" "),o=-1,l.push(h))}return l.join("")}function vo(e,t,r){return e.type==="element"?Qf(e,t,r):e.type==="text"?r.whitespace==="normal"?Ao(e,r):Kf(e):[]}function Qf(e,t,r){const n=wo(e,r),a=e.children||[];let i=-1,s=[];if(Wf(e))return s;let u,l;for(n0(e)||Ks(e)&&Gs(t,e,Ks)?l=`
4
+ `:Gf(e)?(u=2,l=2):ko(e)&&(u=1,l=1);++i<a.length;)s=s.concat(vo(a[i],e,{whitespace:n,breakBefore:i?void 0:u,breakAfter:i<a.length-1?n0(a[i+1]):l}));return Qs(e)&&Gs(t,e,Qs)&&s.push(" "),u&&s.unshift(u),l&&s.push(l),s}function Ao(e,t){const r=String(e.value),n=[],a=[];let i=0;for(;i<=r.length;){Ws.lastIndex=i;const l=Ws.exec(r),o=l&&"index"in l?l.index:r.length;n.push(Zf(r.slice(i,o).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?t.breakBefore:!0,o===r.length?t.breakAfter:!0)),i=o+1}let s=-1,u;for(;++s<n.length;)n[s].charCodeAt(n[s].length-1)===8203||s<n.length-1&&n[s+1].charCodeAt(0)===8203?(a.push(n[s]),u=void 0):n[s]?(typeof u=="number"&&a.push(u),a.push(n[s]),u=0):(s===0||s===n.length-1)&&a.push(0);return a}function Kf(e){return[String(e.value)]}function Zf(e,t,r){const n=[];let a=0,i;for(;a<e.length;){Xs.lastIndex=a;const s=Xs.exec(e);i=s?s.index:e.length,!a&&!i&&s&&!t&&n.push(""),a!==i&&n.push(e.slice(a,i)),a=s?i+s[0].length:i}return a!==i&&!r&&n.push(""),n.join(" ")}function wo(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function Jf(e){return!!(e.properties||{}).hidden}function em(e){return e.tagName==="td"||e.tagName==="th"}function tm(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class ht{constructor(t,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new ht(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class bt{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new bt(r,ht.range(this,t))}}class X{constructor(t,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+t,a,i,s=r&&r.loc;if(s&&s.start<=s.end){var u=s.lexer.input;a=s.start,i=s.end,a===u.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var l=u.slice(a,i).replace(/[^]/g,"$&̲"),o;a>15?o="…"+u.slice(a-15,a):o=u.slice(0,a);var h;i+15<u.length?h=u.slice(i,i+15)+"…":h=u.slice(i),n+=o+l+h}var c=new Error(n);return c.name="ParseError",c.__proto__=X.prototype,c.position=a,a!=null&&i!=null&&(c.length=i-a),c.rawMessage=t,c}}X.prototype.__proto__=Error.prototype;var rm=function(t,r){return t===void 0?r:t},nm=/([A-Z])/g,am=function(t){return t.replace(nm,"-$1").toLowerCase()},im={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},sm=/[&><"']/g;function um(e){return String(e).replace(sm,t=>im[t])}var So=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},lm=function(t){var r=So(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},om=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},cm=function(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},we={deflt:rm,escape:um,hyphenate:am,getBaseElem:So,isCharacterBox:lm,protocolFromUrl:cm},Cn={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function hm(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class B0{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in Cn)if(Cn.hasOwnProperty(r)){var n=Cn[r];this[r]=t[r]!==void 0?n.processor?n.processor(t[r]):t[r]:hm(n)}}reportNonstrict(t,r,n){var a=this.strict;if(typeof a=="function"&&(a=a(t,r,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new X("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var a=this.strict;if(typeof a=="function")try{a=a(t,r,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var r=we.protocolFromUrl(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class sr{constructor(t,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=n}sup(){return Bt[dm[this.id]]}sub(){return Bt[fm[this.id]]}fracNum(){return Bt[mm[this.id]]}fracDen(){return Bt[pm[this.id]]}cramp(){return Bt[gm[this.id]]}text(){return Bt[bm[this.id]]}isTight(){return this.size>=2}}var F0=0,Ca=1,Gr=2,Jt=3,Hn=4,vt=5,Kr=6,it=7,Bt=[new sr(F0,0,!1),new sr(Ca,0,!0),new sr(Gr,1,!1),new sr(Jt,1,!0),new sr(Hn,2,!1),new sr(vt,2,!0),new sr(Kr,3,!1),new sr(it,3,!0)],dm=[Hn,vt,Hn,vt,Kr,it,Kr,it],fm=[vt,vt,vt,vt,it,it,it,it],mm=[Gr,Jt,Hn,vt,Kr,it,Kr,it],pm=[Jt,Jt,vt,vt,it,it,it,it],gm=[Ca,Ca,Jt,Jt,vt,vt,it,it],bm=[F0,Ca,Gr,Jt,Gr,Jt,Gr,Jt],ce={DISPLAY:Bt[F0],TEXT:Bt[Gr],SCRIPT:Bt[Hn],SCRIPTSCRIPT:Bt[Kr]},a0=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Em(e){for(var t=0;t<a0.length;t++)for(var r=a0[t],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(e>=a[0]&&e<=a[1])return r.name}return null}var ya=[];a0.forEach(e=>e.blocks.forEach(t=>ya.push(...t)));function Co(e){for(var t=0;t<ya.length;t+=2)if(e>=ya[t]&&e<=ya[t+1])return!0;return!1}var Ur=80,Tm=function(t,r){return"M95,"+(622+t+r)+`
5
+ c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
6
+ c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
7
+ c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
8
+ s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
9
+ c69,-144,104.5,-217.7,106.5,-221
10
+ l`+t/2.075+" -"+t+`
11
+ c5.3,-9.3,12,-14,20,-14
12
+ H400000v`+(40+t)+`H845.2724
13
+ s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
14
+ c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
15
+ M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},xm=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
16
+ c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
17
+ c340,-704.7,510.7,-1060.3,512,-1067
18
+ l`+t/2.084+" -"+t+`
19
+ c4.7,-7.3,11,-11,19,-11
20
+ H40000v`+(40+t)+`H1012.3
21
+ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
22
+ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
23
+ s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
24
+ c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
25
+ M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},ym=function(t,r){return"M983 "+(10+t+r)+`
26
+ l`+t/3.13+" -"+t+`
27
+ c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
28
+ H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
29
+ s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
30
+ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
31
+ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
32
+ c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
33
+ c53.7,-170.3,84.5,-266.8,92.5,-289.5z
34
+ M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},km=function(t,r){return"M424,"+(2398+t+r)+`
35
+ c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
36
+ c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
37
+ s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
38
+ s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
39
+ l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
40
+ v`+(40+t)+`H1014.6
41
+ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
42
+ c-2,6,-10,9,-24,9
43
+ c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
44
+ h400000v`+(40+t)+"h-400000z"},vm=function(t,r){return"M473,"+(2713+t+r)+`
45
+ c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
46
+ c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
47
+ s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
48
+ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
49
+ c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
50
+ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
51
+ 606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},Am=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},wm=function(t,r,n){var a=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
52
+ H742v`+a+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
53
+ h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
54
+ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
55
+ 219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},Sm=function(t,r,n){r=1e3*r;var a="";switch(t){case"sqrtMain":a=Tm(r,Ur);break;case"sqrtSize1":a=xm(r,Ur);break;case"sqrtSize2":a=ym(r,Ur);break;case"sqrtSize3":a=km(r,Ur);break;case"sqrtSize4":a=vm(r,Ur);break;case"sqrtTall":a=wm(r,Ur,n)}return a},Cm=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},Zs={doubleleftarrow:`M262 157
56
+ l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
57
+ 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
58
+ 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
59
+ c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
60
+ 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
61
+ -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
62
+ -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
63
+ m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
64
+ -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
65
+ 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
66
+ -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
67
+ -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
68
+ -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
69
+ c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
70
+ -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
71
+ 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
72
+ -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
73
+ c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
74
+ 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
75
+ 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
76
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
77
+ -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
78
+ 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
79
+ 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
80
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
81
+ -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
82
+ H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
83
+ 435 0h399565z`,leftgroupunder:`M400000 262
84
+ H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
85
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
86
+ -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
87
+ -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
88
+ -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
89
+ 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
90
+ -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
91
+ -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
92
+ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
93
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
94
+ 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
95
+ -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
96
+ 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
97
+ -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
98
+ v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
99
+ -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
100
+ -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
101
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
102
+ M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
103
+ M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
104
+ -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
105
+ c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
106
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
107
+ M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
108
+ c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
109
+ -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
110
+ 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
111
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
112
+ c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
113
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
114
+ 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
115
+ -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
116
+ -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
117
+ m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
118
+ 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
119
+ -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
120
+ m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
121
+ c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
122
+ -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
123
+ m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
124
+ 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
125
+ -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
126
+ m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
127
+ c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
128
+ -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
129
+ 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
130
+ 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
131
+ -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
132
+ -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
133
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
134
+ -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
135
+ s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
136
+ c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
137
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
138
+ -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
139
+ 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
140
+ 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
141
+ -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
142
+ -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
143
+ 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
144
+ -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
145
+ 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
146
+ m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
147
+ 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
148
+ -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
149
+ -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
150
+ 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
151
+ 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
152
+ -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
153
+ m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
154
+ 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
155
+ -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
156
+ 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
157
+ M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
158
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
159
+ -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
160
+ -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
161
+ 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
162
+ -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
163
+ -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
164
+ -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
165
+ 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
166
+ c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
167
+ 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
168
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
169
+ -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
170
+ 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
171
+ -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
172
+ 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
173
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
174
+ -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
175
+ -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
176
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
177
+ c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
178
+ 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
179
+ -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
180
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
181
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
182
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
183
+ -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
184
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
185
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
186
+ -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
187
+ 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
188
+ 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
189
+ -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
190
+ -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
191
+ H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
192
+ c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
193
+ c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
194
+ -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
195
+ -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
196
+ -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
197
+ -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
198
+ -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
199
+ -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
200
+ -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
201
+ c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
202
+ c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
203
+ s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
204
+ 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
205
+ s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
206
+ c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
207
+ M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
208
+ -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
209
+ 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
210
+ -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
211
+ -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
212
+ -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
213
+ 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
214
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
215
+ c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
216
+ c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
217
+ c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
218
+ M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
219
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
220
+ -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
221
+ c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
222
+ M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
223
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
224
+ 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
225
+ -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
226
+ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
227
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
228
+ -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
229
+ c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
230
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Nm=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
231
+ H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
232
+ M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
233
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
234
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
235
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
236
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
237
+ M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
238
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
239
+ c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
240
+ MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
241
+ MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
242
+ M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
243
+ M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
244
+ c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
245
+ -36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
246
+ 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
247
+ c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
248
+ -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
249
+ l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
250
+ -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
251
+ 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
252
+ c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
253
+ c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
254
+ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
255
+ c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
256
+ c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
257
+ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
258
+ -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Xn{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}}var Ht={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},aa={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Js={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function No(e,t){Ht[e]=t}function z0(e,t,r){if(!Ht[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),a=Ht[t][n];if(!a&&e[0]in Js&&(n=Js[e[0]].charCodeAt(0),a=Ht[t][n]),!a&&r==="text"&&Co(n)&&(a=Ht[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var bi={};function _m(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!bi[t]){var r=bi[t]={cssEmPerMu:aa.quad[t]/18};for(var n in aa)aa.hasOwnProperty(n)&&(r[n]=aa[n][t])}return bi[t]}var Im=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],eu=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],tu=function(t,r){return r.size<2?t:Im[t-1][r.size-1]};class Qt{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Qt.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=eu[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return new Qt(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:tu(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:eu[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=tu(Qt.BASESIZE,t);return this.size===r&&this.textSize===Qt.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Qt.BASESIZE?["sizing","reset-size"+this.size,"size"+Qt.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=_m(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Qt.BASESIZE=6;var i0={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Dm={ex:!0,em:!0,mu:!0},_o=function(t){return typeof t!="string"&&(t=t.unit),t in i0||t in Dm||t==="ex"},Fe=function(t,r){var n;if(t.unit in i0)n=i0[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,t.unit==="ex")n=a.fontMetrics().xHeight;else if(t.unit==="em")n=a.fontMetrics().quad;else throw new X("Invalid unit: '"+t.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},te=function(t){return+t.toFixed(4)+"em"},mr=function(t){return t.filter(r=>r).join(" ")},Io=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var a=r.getColor();a&&(this.style.color=a)}},Do=function(t){var r=document.createElement(t);r.className=mr(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(r.style[n]=this.style[n]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&r.setAttribute(a,this.attributes[a]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r},Lm=/[\s"'>/=\x00-\x1f]/,Lo=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+we.escape(mr(this.classes))+'"');var n="";for(var a in this.style)this.style.hasOwnProperty(a)&&(n+=we.hyphenate(a)+":"+this.style[a]+";");n&&(r+=' style="'+we.escape(n)+'"');for(var i in this.attributes)if(this.attributes.hasOwnProperty(i)){if(Lm.test(i))throw new X("Invalid attribute name '"+i+"'");r+=" "+i+'="'+we.escape(this.attributes[i])+'"'}r+=">";for(var s=0;s<this.children.length;s++)r+=this.children[s].toMarkup();return r+="</"+t+">",r};class Qn{constructor(t,r,n,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Io.call(this,t,n,a),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return Do.call(this,"span")}toMarkup(){return Lo.call(this,"span")}}class H0{constructor(t,r,n,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Io.call(this,r,a),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return Do.call(this,"a")}toMarkup(){return Lo.call(this,"a")}}class Rm{constructor(t,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);return t}toMarkup(){var t='<img src="'+we.escape(this.src)+'"'+(' alt="'+we.escape(this.alt)+'"'),r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=we.hyphenate(n)+":"+this.style[n]+";");return r&&(t+=' style="'+we.escape(r)+'"'),t+="'/>",t}}var Om={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class At{constructor(t,r,n,a,i,s,u,l){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=r||0,this.depth=n||0,this.italic=a||0,this.skew=i||0,this.width=s||0,this.classes=u||[],this.style=l||{},this.maxFontSize=0;var o=Em(this.text.charCodeAt(0));o&&this.classes.push(o+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Om[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=te(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=mr(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(r=r||document.createElement("span"),r.style[n]=this.style[n]);return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=we.escape(mr(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+this.italic+"em;");for(var a in this.style)this.style.hasOwnProperty(a)&&(n+=we.hyphenate(a)+":"+this.style[a]+";");n&&(t=!0,r+=' style="'+we.escape(n)+'"');var i=we.escape(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}}class tr{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+we.escape(this.attributes[r])+'"');t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class pr{constructor(t,r){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",Zs[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+we.escape(this.alternate)+'"/>':'<path d="'+we.escape(Zs[this.pathName])+'"/>'}}class s0{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+we.escape(this.attributes[r])+'"');return t+="/>",t}}function ru(e){if(e instanceof At)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Mm(e){if(e instanceof Qn)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var Pm={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Bm={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Re={math:{},text:{}};function f(e,t,r,n,a,i){Re[e][a]={font:t,group:r,replace:n},i&&n&&(Re[e][n]=Re[e][a])}var p="math",$="text",b="main",S="ams",Pe="accent-token",ie="bin",ut="close",rn="inner",oe="mathord",Ye="op-token",Tt="open",Ga="punct",C="rel",ar="spacing",R="textord";f(p,b,C,"≡","\\equiv",!0);f(p,b,C,"≺","\\prec",!0);f(p,b,C,"≻","\\succ",!0);f(p,b,C,"∼","\\sim",!0);f(p,b,C,"⊥","\\perp");f(p,b,C,"⪯","\\preceq",!0);f(p,b,C,"⪰","\\succeq",!0);f(p,b,C,"≃","\\simeq",!0);f(p,b,C,"∣","\\mid",!0);f(p,b,C,"≪","\\ll",!0);f(p,b,C,"≫","\\gg",!0);f(p,b,C,"≍","\\asymp",!0);f(p,b,C,"∥","\\parallel");f(p,b,C,"⋈","\\bowtie",!0);f(p,b,C,"⌣","\\smile",!0);f(p,b,C,"⊑","\\sqsubseteq",!0);f(p,b,C,"⊒","\\sqsupseteq",!0);f(p,b,C,"≐","\\doteq",!0);f(p,b,C,"⌢","\\frown",!0);f(p,b,C,"∋","\\ni",!0);f(p,b,C,"∝","\\propto",!0);f(p,b,C,"⊢","\\vdash",!0);f(p,b,C,"⊣","\\dashv",!0);f(p,b,C,"∋","\\owns");f(p,b,Ga,".","\\ldotp");f(p,b,Ga,"⋅","\\cdotp");f(p,b,R,"#","\\#");f($,b,R,"#","\\#");f(p,b,R,"&","\\&");f($,b,R,"&","\\&");f(p,b,R,"ℵ","\\aleph",!0);f(p,b,R,"∀","\\forall",!0);f(p,b,R,"ℏ","\\hbar",!0);f(p,b,R,"∃","\\exists",!0);f(p,b,R,"∇","\\nabla",!0);f(p,b,R,"♭","\\flat",!0);f(p,b,R,"ℓ","\\ell",!0);f(p,b,R,"♮","\\natural",!0);f(p,b,R,"♣","\\clubsuit",!0);f(p,b,R,"℘","\\wp",!0);f(p,b,R,"♯","\\sharp",!0);f(p,b,R,"♢","\\diamondsuit",!0);f(p,b,R,"ℜ","\\Re",!0);f(p,b,R,"♡","\\heartsuit",!0);f(p,b,R,"ℑ","\\Im",!0);f(p,b,R,"♠","\\spadesuit",!0);f(p,b,R,"§","\\S",!0);f($,b,R,"§","\\S");f(p,b,R,"¶","\\P",!0);f($,b,R,"¶","\\P");f(p,b,R,"†","\\dag");f($,b,R,"†","\\dag");f($,b,R,"†","\\textdagger");f(p,b,R,"‡","\\ddag");f($,b,R,"‡","\\ddag");f($,b,R,"‡","\\textdaggerdbl");f(p,b,ut,"⎱","\\rmoustache",!0);f(p,b,Tt,"⎰","\\lmoustache",!0);f(p,b,ut,"⟯","\\rgroup",!0);f(p,b,Tt,"⟮","\\lgroup",!0);f(p,b,ie,"∓","\\mp",!0);f(p,b,ie,"⊖","\\ominus",!0);f(p,b,ie,"⊎","\\uplus",!0);f(p,b,ie,"⊓","\\sqcap",!0);f(p,b,ie,"∗","\\ast");f(p,b,ie,"⊔","\\sqcup",!0);f(p,b,ie,"◯","\\bigcirc",!0);f(p,b,ie,"∙","\\bullet",!0);f(p,b,ie,"‡","\\ddagger");f(p,b,ie,"≀","\\wr",!0);f(p,b,ie,"⨿","\\amalg");f(p,b,ie,"&","\\And");f(p,b,C,"⟵","\\longleftarrow",!0);f(p,b,C,"⇐","\\Leftarrow",!0);f(p,b,C,"⟸","\\Longleftarrow",!0);f(p,b,C,"⟶","\\longrightarrow",!0);f(p,b,C,"⇒","\\Rightarrow",!0);f(p,b,C,"⟹","\\Longrightarrow",!0);f(p,b,C,"↔","\\leftrightarrow",!0);f(p,b,C,"⟷","\\longleftrightarrow",!0);f(p,b,C,"⇔","\\Leftrightarrow",!0);f(p,b,C,"⟺","\\Longleftrightarrow",!0);f(p,b,C,"↦","\\mapsto",!0);f(p,b,C,"⟼","\\longmapsto",!0);f(p,b,C,"↗","\\nearrow",!0);f(p,b,C,"↩","\\hookleftarrow",!0);f(p,b,C,"↪","\\hookrightarrow",!0);f(p,b,C,"↘","\\searrow",!0);f(p,b,C,"↼","\\leftharpoonup",!0);f(p,b,C,"⇀","\\rightharpoonup",!0);f(p,b,C,"↙","\\swarrow",!0);f(p,b,C,"↽","\\leftharpoondown",!0);f(p,b,C,"⇁","\\rightharpoondown",!0);f(p,b,C,"↖","\\nwarrow",!0);f(p,b,C,"⇌","\\rightleftharpoons",!0);f(p,S,C,"≮","\\nless",!0);f(p,S,C,"","\\@nleqslant");f(p,S,C,"","\\@nleqq");f(p,S,C,"⪇","\\lneq",!0);f(p,S,C,"≨","\\lneqq",!0);f(p,S,C,"","\\@lvertneqq");f(p,S,C,"⋦","\\lnsim",!0);f(p,S,C,"⪉","\\lnapprox",!0);f(p,S,C,"⊀","\\nprec",!0);f(p,S,C,"⋠","\\npreceq",!0);f(p,S,C,"⋨","\\precnsim",!0);f(p,S,C,"⪹","\\precnapprox",!0);f(p,S,C,"≁","\\nsim",!0);f(p,S,C,"","\\@nshortmid");f(p,S,C,"∤","\\nmid",!0);f(p,S,C,"⊬","\\nvdash",!0);f(p,S,C,"⊭","\\nvDash",!0);f(p,S,C,"⋪","\\ntriangleleft");f(p,S,C,"⋬","\\ntrianglelefteq",!0);f(p,S,C,"⊊","\\subsetneq",!0);f(p,S,C,"","\\@varsubsetneq");f(p,S,C,"⫋","\\subsetneqq",!0);f(p,S,C,"","\\@varsubsetneqq");f(p,S,C,"≯","\\ngtr",!0);f(p,S,C,"","\\@ngeqslant");f(p,S,C,"","\\@ngeqq");f(p,S,C,"⪈","\\gneq",!0);f(p,S,C,"≩","\\gneqq",!0);f(p,S,C,"","\\@gvertneqq");f(p,S,C,"⋧","\\gnsim",!0);f(p,S,C,"⪊","\\gnapprox",!0);f(p,S,C,"⊁","\\nsucc",!0);f(p,S,C,"⋡","\\nsucceq",!0);f(p,S,C,"⋩","\\succnsim",!0);f(p,S,C,"⪺","\\succnapprox",!0);f(p,S,C,"≆","\\ncong",!0);f(p,S,C,"","\\@nshortparallel");f(p,S,C,"∦","\\nparallel",!0);f(p,S,C,"⊯","\\nVDash",!0);f(p,S,C,"⋫","\\ntriangleright");f(p,S,C,"⋭","\\ntrianglerighteq",!0);f(p,S,C,"","\\@nsupseteqq");f(p,S,C,"⊋","\\supsetneq",!0);f(p,S,C,"","\\@varsupsetneq");f(p,S,C,"⫌","\\supsetneqq",!0);f(p,S,C,"","\\@varsupsetneqq");f(p,S,C,"⊮","\\nVdash",!0);f(p,S,C,"⪵","\\precneqq",!0);f(p,S,C,"⪶","\\succneqq",!0);f(p,S,C,"","\\@nsubseteqq");f(p,S,ie,"⊴","\\unlhd");f(p,S,ie,"⊵","\\unrhd");f(p,S,C,"↚","\\nleftarrow",!0);f(p,S,C,"↛","\\nrightarrow",!0);f(p,S,C,"⇍","\\nLeftarrow",!0);f(p,S,C,"⇏","\\nRightarrow",!0);f(p,S,C,"↮","\\nleftrightarrow",!0);f(p,S,C,"⇎","\\nLeftrightarrow",!0);f(p,S,C,"△","\\vartriangle");f(p,S,R,"ℏ","\\hslash");f(p,S,R,"▽","\\triangledown");f(p,S,R,"◊","\\lozenge");f(p,S,R,"Ⓢ","\\circledS");f(p,S,R,"®","\\circledR");f($,S,R,"®","\\circledR");f(p,S,R,"∡","\\measuredangle",!0);f(p,S,R,"∄","\\nexists");f(p,S,R,"℧","\\mho");f(p,S,R,"Ⅎ","\\Finv",!0);f(p,S,R,"⅁","\\Game",!0);f(p,S,R,"‵","\\backprime");f(p,S,R,"▲","\\blacktriangle");f(p,S,R,"▼","\\blacktriangledown");f(p,S,R,"■","\\blacksquare");f(p,S,R,"⧫","\\blacklozenge");f(p,S,R,"★","\\bigstar");f(p,S,R,"∢","\\sphericalangle",!0);f(p,S,R,"∁","\\complement",!0);f(p,S,R,"ð","\\eth",!0);f($,b,R,"ð","ð");f(p,S,R,"╱","\\diagup");f(p,S,R,"╲","\\diagdown");f(p,S,R,"□","\\square");f(p,S,R,"□","\\Box");f(p,S,R,"◊","\\Diamond");f(p,S,R,"¥","\\yen",!0);f($,S,R,"¥","\\yen",!0);f(p,S,R,"✓","\\checkmark",!0);f($,S,R,"✓","\\checkmark");f(p,S,R,"ℶ","\\beth",!0);f(p,S,R,"ℸ","\\daleth",!0);f(p,S,R,"ℷ","\\gimel",!0);f(p,S,R,"ϝ","\\digamma",!0);f(p,S,R,"ϰ","\\varkappa");f(p,S,Tt,"┌","\\@ulcorner",!0);f(p,S,ut,"┐","\\@urcorner",!0);f(p,S,Tt,"└","\\@llcorner",!0);f(p,S,ut,"┘","\\@lrcorner",!0);f(p,S,C,"≦","\\leqq",!0);f(p,S,C,"⩽","\\leqslant",!0);f(p,S,C,"⪕","\\eqslantless",!0);f(p,S,C,"≲","\\lesssim",!0);f(p,S,C,"⪅","\\lessapprox",!0);f(p,S,C,"≊","\\approxeq",!0);f(p,S,ie,"⋖","\\lessdot");f(p,S,C,"⋘","\\lll",!0);f(p,S,C,"≶","\\lessgtr",!0);f(p,S,C,"⋚","\\lesseqgtr",!0);f(p,S,C,"⪋","\\lesseqqgtr",!0);f(p,S,C,"≑","\\doteqdot");f(p,S,C,"≓","\\risingdotseq",!0);f(p,S,C,"≒","\\fallingdotseq",!0);f(p,S,C,"∽","\\backsim",!0);f(p,S,C,"⋍","\\backsimeq",!0);f(p,S,C,"⫅","\\subseteqq",!0);f(p,S,C,"⋐","\\Subset",!0);f(p,S,C,"⊏","\\sqsubset",!0);f(p,S,C,"≼","\\preccurlyeq",!0);f(p,S,C,"⋞","\\curlyeqprec",!0);f(p,S,C,"≾","\\precsim",!0);f(p,S,C,"⪷","\\precapprox",!0);f(p,S,C,"⊲","\\vartriangleleft");f(p,S,C,"⊴","\\trianglelefteq");f(p,S,C,"⊨","\\vDash",!0);f(p,S,C,"⊪","\\Vvdash",!0);f(p,S,C,"⌣","\\smallsmile");f(p,S,C,"⌢","\\smallfrown");f(p,S,C,"≏","\\bumpeq",!0);f(p,S,C,"≎","\\Bumpeq",!0);f(p,S,C,"≧","\\geqq",!0);f(p,S,C,"⩾","\\geqslant",!0);f(p,S,C,"⪖","\\eqslantgtr",!0);f(p,S,C,"≳","\\gtrsim",!0);f(p,S,C,"⪆","\\gtrapprox",!0);f(p,S,ie,"⋗","\\gtrdot");f(p,S,C,"⋙","\\ggg",!0);f(p,S,C,"≷","\\gtrless",!0);f(p,S,C,"⋛","\\gtreqless",!0);f(p,S,C,"⪌","\\gtreqqless",!0);f(p,S,C,"≖","\\eqcirc",!0);f(p,S,C,"≗","\\circeq",!0);f(p,S,C,"≜","\\triangleq",!0);f(p,S,C,"∼","\\thicksim");f(p,S,C,"≈","\\thickapprox");f(p,S,C,"⫆","\\supseteqq",!0);f(p,S,C,"⋑","\\Supset",!0);f(p,S,C,"⊐","\\sqsupset",!0);f(p,S,C,"≽","\\succcurlyeq",!0);f(p,S,C,"⋟","\\curlyeqsucc",!0);f(p,S,C,"≿","\\succsim",!0);f(p,S,C,"⪸","\\succapprox",!0);f(p,S,C,"⊳","\\vartriangleright");f(p,S,C,"⊵","\\trianglerighteq");f(p,S,C,"⊩","\\Vdash",!0);f(p,S,C,"∣","\\shortmid");f(p,S,C,"∥","\\shortparallel");f(p,S,C,"≬","\\between",!0);f(p,S,C,"⋔","\\pitchfork",!0);f(p,S,C,"∝","\\varpropto");f(p,S,C,"◀","\\blacktriangleleft");f(p,S,C,"∴","\\therefore",!0);f(p,S,C,"∍","\\backepsilon");f(p,S,C,"▶","\\blacktriangleright");f(p,S,C,"∵","\\because",!0);f(p,S,C,"⋘","\\llless");f(p,S,C,"⋙","\\gggtr");f(p,S,ie,"⊲","\\lhd");f(p,S,ie,"⊳","\\rhd");f(p,S,C,"≂","\\eqsim",!0);f(p,b,C,"⋈","\\Join");f(p,S,C,"≑","\\Doteq",!0);f(p,S,ie,"∔","\\dotplus",!0);f(p,S,ie,"∖","\\smallsetminus");f(p,S,ie,"⋒","\\Cap",!0);f(p,S,ie,"⋓","\\Cup",!0);f(p,S,ie,"⩞","\\doublebarwedge",!0);f(p,S,ie,"⊟","\\boxminus",!0);f(p,S,ie,"⊞","\\boxplus",!0);f(p,S,ie,"⋇","\\divideontimes",!0);f(p,S,ie,"⋉","\\ltimes",!0);f(p,S,ie,"⋊","\\rtimes",!0);f(p,S,ie,"⋋","\\leftthreetimes",!0);f(p,S,ie,"⋌","\\rightthreetimes",!0);f(p,S,ie,"⋏","\\curlywedge",!0);f(p,S,ie,"⋎","\\curlyvee",!0);f(p,S,ie,"⊝","\\circleddash",!0);f(p,S,ie,"⊛","\\circledast",!0);f(p,S,ie,"⋅","\\centerdot");f(p,S,ie,"⊺","\\intercal",!0);f(p,S,ie,"⋒","\\doublecap");f(p,S,ie,"⋓","\\doublecup");f(p,S,ie,"⊠","\\boxtimes",!0);f(p,S,C,"⇢","\\dashrightarrow",!0);f(p,S,C,"⇠","\\dashleftarrow",!0);f(p,S,C,"⇇","\\leftleftarrows",!0);f(p,S,C,"⇆","\\leftrightarrows",!0);f(p,S,C,"⇚","\\Lleftarrow",!0);f(p,S,C,"↞","\\twoheadleftarrow",!0);f(p,S,C,"↢","\\leftarrowtail",!0);f(p,S,C,"↫","\\looparrowleft",!0);f(p,S,C,"⇋","\\leftrightharpoons",!0);f(p,S,C,"↶","\\curvearrowleft",!0);f(p,S,C,"↺","\\circlearrowleft",!0);f(p,S,C,"↰","\\Lsh",!0);f(p,S,C,"⇈","\\upuparrows",!0);f(p,S,C,"↿","\\upharpoonleft",!0);f(p,S,C,"⇃","\\downharpoonleft",!0);f(p,b,C,"⊶","\\origof",!0);f(p,b,C,"⊷","\\imageof",!0);f(p,S,C,"⊸","\\multimap",!0);f(p,S,C,"↭","\\leftrightsquigarrow",!0);f(p,S,C,"⇉","\\rightrightarrows",!0);f(p,S,C,"⇄","\\rightleftarrows",!0);f(p,S,C,"↠","\\twoheadrightarrow",!0);f(p,S,C,"↣","\\rightarrowtail",!0);f(p,S,C,"↬","\\looparrowright",!0);f(p,S,C,"↷","\\curvearrowright",!0);f(p,S,C,"↻","\\circlearrowright",!0);f(p,S,C,"↱","\\Rsh",!0);f(p,S,C,"⇊","\\downdownarrows",!0);f(p,S,C,"↾","\\upharpoonright",!0);f(p,S,C,"⇂","\\downharpoonright",!0);f(p,S,C,"⇝","\\rightsquigarrow",!0);f(p,S,C,"⇝","\\leadsto");f(p,S,C,"⇛","\\Rrightarrow",!0);f(p,S,C,"↾","\\restriction");f(p,b,R,"‘","`");f(p,b,R,"$","\\$");f($,b,R,"$","\\$");f($,b,R,"$","\\textdollar");f(p,b,R,"%","\\%");f($,b,R,"%","\\%");f(p,b,R,"_","\\_");f($,b,R,"_","\\_");f($,b,R,"_","\\textunderscore");f(p,b,R,"∠","\\angle",!0);f(p,b,R,"∞","\\infty",!0);f(p,b,R,"′","\\prime");f(p,b,R,"△","\\triangle");f(p,b,R,"Γ","\\Gamma",!0);f(p,b,R,"Δ","\\Delta",!0);f(p,b,R,"Θ","\\Theta",!0);f(p,b,R,"Λ","\\Lambda",!0);f(p,b,R,"Ξ","\\Xi",!0);f(p,b,R,"Π","\\Pi",!0);f(p,b,R,"Σ","\\Sigma",!0);f(p,b,R,"Υ","\\Upsilon",!0);f(p,b,R,"Φ","\\Phi",!0);f(p,b,R,"Ψ","\\Psi",!0);f(p,b,R,"Ω","\\Omega",!0);f(p,b,R,"A","Α");f(p,b,R,"B","Β");f(p,b,R,"E","Ε");f(p,b,R,"Z","Ζ");f(p,b,R,"H","Η");f(p,b,R,"I","Ι");f(p,b,R,"K","Κ");f(p,b,R,"M","Μ");f(p,b,R,"N","Ν");f(p,b,R,"O","Ο");f(p,b,R,"P","Ρ");f(p,b,R,"T","Τ");f(p,b,R,"X","Χ");f(p,b,R,"¬","\\neg",!0);f(p,b,R,"¬","\\lnot");f(p,b,R,"⊤","\\top");f(p,b,R,"⊥","\\bot");f(p,b,R,"∅","\\emptyset");f(p,S,R,"∅","\\varnothing");f(p,b,oe,"α","\\alpha",!0);f(p,b,oe,"β","\\beta",!0);f(p,b,oe,"γ","\\gamma",!0);f(p,b,oe,"δ","\\delta",!0);f(p,b,oe,"ϵ","\\epsilon",!0);f(p,b,oe,"ζ","\\zeta",!0);f(p,b,oe,"η","\\eta",!0);f(p,b,oe,"θ","\\theta",!0);f(p,b,oe,"ι","\\iota",!0);f(p,b,oe,"κ","\\kappa",!0);f(p,b,oe,"λ","\\lambda",!0);f(p,b,oe,"μ","\\mu",!0);f(p,b,oe,"ν","\\nu",!0);f(p,b,oe,"ξ","\\xi",!0);f(p,b,oe,"ο","\\omicron",!0);f(p,b,oe,"π","\\pi",!0);f(p,b,oe,"ρ","\\rho",!0);f(p,b,oe,"σ","\\sigma",!0);f(p,b,oe,"τ","\\tau",!0);f(p,b,oe,"υ","\\upsilon",!0);f(p,b,oe,"ϕ","\\phi",!0);f(p,b,oe,"χ","\\chi",!0);f(p,b,oe,"ψ","\\psi",!0);f(p,b,oe,"ω","\\omega",!0);f(p,b,oe,"ε","\\varepsilon",!0);f(p,b,oe,"ϑ","\\vartheta",!0);f(p,b,oe,"ϖ","\\varpi",!0);f(p,b,oe,"ϱ","\\varrho",!0);f(p,b,oe,"ς","\\varsigma",!0);f(p,b,oe,"φ","\\varphi",!0);f(p,b,ie,"∗","*",!0);f(p,b,ie,"+","+");f(p,b,ie,"−","-",!0);f(p,b,ie,"⋅","\\cdot",!0);f(p,b,ie,"∘","\\circ",!0);f(p,b,ie,"÷","\\div",!0);f(p,b,ie,"±","\\pm",!0);f(p,b,ie,"×","\\times",!0);f(p,b,ie,"∩","\\cap",!0);f(p,b,ie,"∪","\\cup",!0);f(p,b,ie,"∖","\\setminus",!0);f(p,b,ie,"∧","\\land");f(p,b,ie,"∨","\\lor");f(p,b,ie,"∧","\\wedge",!0);f(p,b,ie,"∨","\\vee",!0);f(p,b,R,"√","\\surd");f(p,b,Tt,"⟨","\\langle",!0);f(p,b,Tt,"∣","\\lvert");f(p,b,Tt,"∥","\\lVert");f(p,b,ut,"?","?");f(p,b,ut,"!","!");f(p,b,ut,"⟩","\\rangle",!0);f(p,b,ut,"∣","\\rvert");f(p,b,ut,"∥","\\rVert");f(p,b,C,"=","=");f(p,b,C,":",":");f(p,b,C,"≈","\\approx",!0);f(p,b,C,"≅","\\cong",!0);f(p,b,C,"≥","\\ge");f(p,b,C,"≥","\\geq",!0);f(p,b,C,"←","\\gets");f(p,b,C,">","\\gt",!0);f(p,b,C,"∈","\\in",!0);f(p,b,C,"","\\@not");f(p,b,C,"⊂","\\subset",!0);f(p,b,C,"⊃","\\supset",!0);f(p,b,C,"⊆","\\subseteq",!0);f(p,b,C,"⊇","\\supseteq",!0);f(p,S,C,"⊈","\\nsubseteq",!0);f(p,S,C,"⊉","\\nsupseteq",!0);f(p,b,C,"⊨","\\models");f(p,b,C,"←","\\leftarrow",!0);f(p,b,C,"≤","\\le");f(p,b,C,"≤","\\leq",!0);f(p,b,C,"<","\\lt",!0);f(p,b,C,"→","\\rightarrow",!0);f(p,b,C,"→","\\to");f(p,S,C,"≱","\\ngeq",!0);f(p,S,C,"≰","\\nleq",!0);f(p,b,ar," ","\\ ");f(p,b,ar," ","\\space");f(p,b,ar," ","\\nobreakspace");f($,b,ar," ","\\ ");f($,b,ar," "," ");f($,b,ar," ","\\space");f($,b,ar," ","\\nobreakspace");f(p,b,ar,null,"\\nobreak");f(p,b,ar,null,"\\allowbreak");f(p,b,Ga,",",",");f(p,b,Ga,";",";");f(p,S,ie,"⊼","\\barwedge",!0);f(p,S,ie,"⊻","\\veebar",!0);f(p,b,ie,"⊙","\\odot",!0);f(p,b,ie,"⊕","\\oplus",!0);f(p,b,ie,"⊗","\\otimes",!0);f(p,b,R,"∂","\\partial",!0);f(p,b,ie,"⊘","\\oslash",!0);f(p,S,ie,"⊚","\\circledcirc",!0);f(p,S,ie,"⊡","\\boxdot",!0);f(p,b,ie,"△","\\bigtriangleup");f(p,b,ie,"▽","\\bigtriangledown");f(p,b,ie,"†","\\dagger");f(p,b,ie,"⋄","\\diamond");f(p,b,ie,"⋆","\\star");f(p,b,ie,"◃","\\triangleleft");f(p,b,ie,"▹","\\triangleright");f(p,b,Tt,"{","\\{");f($,b,R,"{","\\{");f($,b,R,"{","\\textbraceleft");f(p,b,ut,"}","\\}");f($,b,R,"}","\\}");f($,b,R,"}","\\textbraceright");f(p,b,Tt,"{","\\lbrace");f(p,b,ut,"}","\\rbrace");f(p,b,Tt,"[","\\lbrack",!0);f($,b,R,"[","\\lbrack",!0);f(p,b,ut,"]","\\rbrack",!0);f($,b,R,"]","\\rbrack",!0);f(p,b,Tt,"(","\\lparen",!0);f(p,b,ut,")","\\rparen",!0);f($,b,R,"<","\\textless",!0);f($,b,R,">","\\textgreater",!0);f(p,b,Tt,"⌊","\\lfloor",!0);f(p,b,ut,"⌋","\\rfloor",!0);f(p,b,Tt,"⌈","\\lceil",!0);f(p,b,ut,"⌉","\\rceil",!0);f(p,b,R,"\\","\\backslash");f(p,b,R,"∣","|");f(p,b,R,"∣","\\vert");f($,b,R,"|","\\textbar",!0);f(p,b,R,"∥","\\|");f(p,b,R,"∥","\\Vert");f($,b,R,"∥","\\textbardbl");f($,b,R,"~","\\textasciitilde");f($,b,R,"\\","\\textbackslash");f($,b,R,"^","\\textasciicircum");f(p,b,C,"↑","\\uparrow",!0);f(p,b,C,"⇑","\\Uparrow",!0);f(p,b,C,"↓","\\downarrow",!0);f(p,b,C,"⇓","\\Downarrow",!0);f(p,b,C,"↕","\\updownarrow",!0);f(p,b,C,"⇕","\\Updownarrow",!0);f(p,b,Ye,"∐","\\coprod");f(p,b,Ye,"⋁","\\bigvee");f(p,b,Ye,"⋀","\\bigwedge");f(p,b,Ye,"⨄","\\biguplus");f(p,b,Ye,"⋂","\\bigcap");f(p,b,Ye,"⋃","\\bigcup");f(p,b,Ye,"∫","\\int");f(p,b,Ye,"∫","\\intop");f(p,b,Ye,"∬","\\iint");f(p,b,Ye,"∭","\\iiint");f(p,b,Ye,"∏","\\prod");f(p,b,Ye,"∑","\\sum");f(p,b,Ye,"⨂","\\bigotimes");f(p,b,Ye,"⨁","\\bigoplus");f(p,b,Ye,"⨀","\\bigodot");f(p,b,Ye,"∮","\\oint");f(p,b,Ye,"∯","\\oiint");f(p,b,Ye,"∰","\\oiiint");f(p,b,Ye,"⨆","\\bigsqcup");f(p,b,Ye,"∫","\\smallint");f($,b,rn,"…","\\textellipsis");f(p,b,rn,"…","\\mathellipsis");f($,b,rn,"…","\\ldots",!0);f(p,b,rn,"…","\\ldots",!0);f(p,b,rn,"⋯","\\@cdots",!0);f(p,b,rn,"⋱","\\ddots",!0);f(p,b,R,"⋮","\\varvdots");f($,b,R,"⋮","\\varvdots");f(p,b,Pe,"ˊ","\\acute");f(p,b,Pe,"ˋ","\\grave");f(p,b,Pe,"¨","\\ddot");f(p,b,Pe,"~","\\tilde");f(p,b,Pe,"ˉ","\\bar");f(p,b,Pe,"˘","\\breve");f(p,b,Pe,"ˇ","\\check");f(p,b,Pe,"^","\\hat");f(p,b,Pe,"⃗","\\vec");f(p,b,Pe,"˙","\\dot");f(p,b,Pe,"˚","\\mathring");f(p,b,oe,"","\\@imath");f(p,b,oe,"","\\@jmath");f(p,b,R,"ı","ı");f(p,b,R,"ȷ","ȷ");f($,b,R,"ı","\\i",!0);f($,b,R,"ȷ","\\j",!0);f($,b,R,"ß","\\ss",!0);f($,b,R,"æ","\\ae",!0);f($,b,R,"œ","\\oe",!0);f($,b,R,"ø","\\o",!0);f($,b,R,"Æ","\\AE",!0);f($,b,R,"Œ","\\OE",!0);f($,b,R,"Ø","\\O",!0);f($,b,Pe,"ˊ","\\'");f($,b,Pe,"ˋ","\\`");f($,b,Pe,"ˆ","\\^");f($,b,Pe,"˜","\\~");f($,b,Pe,"ˉ","\\=");f($,b,Pe,"˘","\\u");f($,b,Pe,"˙","\\.");f($,b,Pe,"¸","\\c");f($,b,Pe,"˚","\\r");f($,b,Pe,"ˇ","\\v");f($,b,Pe,"¨",'\\"');f($,b,Pe,"˝","\\H");f($,b,Pe,"◯","\\textcircled");var Ro={"--":!0,"---":!0,"``":!0,"''":!0};f($,b,R,"–","--",!0);f($,b,R,"–","\\textendash");f($,b,R,"—","---",!0);f($,b,R,"—","\\textemdash");f($,b,R,"‘","`",!0);f($,b,R,"‘","\\textquoteleft");f($,b,R,"’","'",!0);f($,b,R,"’","\\textquoteright");f($,b,R,"“","``",!0);f($,b,R,"“","\\textquotedblleft");f($,b,R,"”","''",!0);f($,b,R,"”","\\textquotedblright");f(p,b,R,"°","\\degree",!0);f($,b,R,"°","\\degree");f($,b,R,"°","\\textdegree",!0);f(p,b,R,"£","\\pounds");f(p,b,R,"£","\\mathsterling",!0);f($,b,R,"£","\\pounds");f($,b,R,"£","\\textsterling",!0);f(p,S,R,"✠","\\maltese");f($,S,R,"✠","\\maltese");var nu='0123456789/@."';for(var Ei=0;Ei<nu.length;Ei++){var au=nu.charAt(Ei);f(p,b,R,au,au)}var iu='0123456789!@*()-=+";:?/.,';for(var Ti=0;Ti<iu.length;Ti++){var su=iu.charAt(Ti);f($,b,R,su,su)}var Na="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var xi=0;xi<Na.length;xi++){var ia=Na.charAt(xi);f(p,b,oe,ia,ia),f($,b,R,ia,ia)}f(p,S,R,"C","ℂ");f($,S,R,"C","ℂ");f(p,S,R,"H","ℍ");f($,S,R,"H","ℍ");f(p,S,R,"N","ℕ");f($,S,R,"N","ℕ");f(p,S,R,"P","ℙ");f($,S,R,"P","ℙ");f(p,S,R,"Q","ℚ");f($,S,R,"Q","ℚ");f(p,S,R,"R","ℝ");f($,S,R,"R","ℝ");f(p,S,R,"Z","ℤ");f($,S,R,"Z","ℤ");f(p,b,oe,"h","ℎ");f($,b,oe,"h","ℎ");var he="";for(var nt=0;nt<Na.length;nt++){var ze=Na.charAt(nt);he=String.fromCharCode(55349,56320+nt),f(p,b,oe,ze,he),f($,b,R,ze,he),he=String.fromCharCode(55349,56372+nt),f(p,b,oe,ze,he),f($,b,R,ze,he),he=String.fromCharCode(55349,56424+nt),f(p,b,oe,ze,he),f($,b,R,ze,he),he=String.fromCharCode(55349,56580+nt),f(p,b,oe,ze,he),f($,b,R,ze,he),he=String.fromCharCode(55349,56684+nt),f(p,b,oe,ze,he),f($,b,R,ze,he),he=String.fromCharCode(55349,56736+nt),f(p,b,oe,ze,he),f($,b,R,ze,he),he=String.fromCharCode(55349,56788+nt),f(p,b,oe,ze,he),f($,b,R,ze,he),he=String.fromCharCode(55349,56840+nt),f(p,b,oe,ze,he),f($,b,R,ze,he),he=String.fromCharCode(55349,56944+nt),f(p,b,oe,ze,he),f($,b,R,ze,he),nt<26&&(he=String.fromCharCode(55349,56632+nt),f(p,b,oe,ze,he),f($,b,R,ze,he),he=String.fromCharCode(55349,56476+nt),f(p,b,oe,ze,he),f($,b,R,ze,he))}he="𝕜";f(p,b,oe,"k",he);f($,b,R,"k",he);for(var vr=0;vr<10;vr++){var ur=vr.toString();he=String.fromCharCode(55349,57294+vr),f(p,b,oe,ur,he),f($,b,R,ur,he),he=String.fromCharCode(55349,57314+vr),f(p,b,oe,ur,he),f($,b,R,ur,he),he=String.fromCharCode(55349,57324+vr),f(p,b,oe,ur,he),f($,b,R,ur,he),he=String.fromCharCode(55349,57334+vr),f(p,b,oe,ur,he),f($,b,R,ur,he)}var u0="ÐÞþ";for(var yi=0;yi<u0.length;yi++){var sa=u0.charAt(yi);f(p,b,oe,sa,sa),f($,b,R,sa,sa)}var ua=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],uu=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Fm=function(t,r){var n=t.charCodeAt(0),a=t.charCodeAt(1),i=(n-55296)*1024+(a-56320)+65536,s=r==="math"?0:1;if(119808<=i&&i<120484){var u=Math.floor((i-119808)/26);return[ua[u][2],ua[u][s]]}else if(120782<=i&&i<=120831){var l=Math.floor((i-120782)/10);return[uu[l][2],uu[l][s]]}else{if(i===120485||i===120486)return[ua[0][2],ua[0][s]];if(120486<i&&i<120782)return["",""];throw new X("Unsupported character: "+t)}},Wa=function(t,r,n){return Re[n][t]&&Re[n][t].replace&&(t=Re[n][t].replace),{value:t,metrics:z0(t,r,n)}},_t=function(t,r,n,a,i){var s=Wa(t,r,n),u=s.metrics;t=s.value;var l;if(u){var o=u.italic;(n==="text"||a&&a.font==="mathit")&&(o=0),l=new At(t,u.height,u.depth,o,u.skew,u.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),l=new At(t,0,0,0,0,0,i);if(a){l.maxFontSize=a.sizeMultiplier,a.style.isTight()&&l.classes.push("mtight");var h=a.getColor();h&&(l.style.color=h)}return l},zm=function(t,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&Wa(t,"Main-Bold",r).metrics?_t(t,"Main-Bold",r,n,a.concat(["mathbf"])):t==="\\"||Re[r][t].font==="main"?_t(t,"Main-Regular",r,n,a):_t(t,"AMS-Regular",r,n,a.concat(["amsrm"]))},Hm=function(t,r,n,a,i){return i!=="textord"&&Wa(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Um=function(t,r,n){var a=t.mode,i=t.text,s=["mord"],u=a==="math"||a==="text"&&r.font,l=u?r.font:r.fontFamily,o="",h="";if(i.charCodeAt(0)===55349&&([o,h]=Fm(i,a)),o.length>0)return _t(i,o,a,r,s.concat(h));if(l){var c,m;if(l==="boldsymbol"){var g=Hm(i,a,r,s,n);c=g.fontName,m=[g.fontClass]}else u?(c=Po[l].fontName,m=[l]):(c=la(l,r.fontWeight,r.fontShape),m=[l,r.fontWeight,r.fontShape]);if(Wa(i,c,a).metrics)return _t(i,c,a,r,s.concat(m));if(Ro.hasOwnProperty(i)&&c.slice(0,10)==="Typewriter"){for(var E=[],y=0;y<i.length;y++)E.push(_t(i[y],c,a,r,s.concat(m)));return Mo(E)}}if(n==="mathord")return _t(i,"Math-Italic",a,r,s.concat(["mathnormal"]));if(n==="textord"){var v=Re[a][i]&&Re[a][i].font;if(v==="ams"){var A=la("amsrm",r.fontWeight,r.fontShape);return _t(i,A,a,r,s.concat("amsrm",r.fontWeight,r.fontShape))}else if(v==="main"||!v){var w=la("textrm",r.fontWeight,r.fontShape);return _t(i,w,a,r,s.concat(r.fontWeight,r.fontShape))}else{var L=la(v,r.fontWeight,r.fontShape);return _t(i,L,a,r,s.concat(L,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},qm=(e,t)=>{if(mr(e.classes)!==mr(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},jm=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof At&&n instanceof At&&qm(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},U0=function(t){for(var r=0,n=0,a=0,i=0;i<t.children.length;i++){var s=t.children[i];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>a&&(a=s.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=a},ct=function(t,r,n,a){var i=new Qn(t,r,n,a);return U0(i),i},Oo=(e,t,r,n)=>new Qn(e,t,r,n),$m=function(t,r,n){var a=ct([t],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=te(a.height),a.maxFontSize=1,a},Ym=function(t,r,n,a){var i=new H0(t,r,n,a);return U0(i),i},Mo=function(t){var r=new Xn(t);return U0(r),r},Vm=function(t,r){return t instanceof Xn?ct([],[t],r):t},Gm=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,s=1;s<r.length;s++){var u=-r[s].shift-i-r[s].elem.depth,l=u-(r[s-1].elem.height+r[s-1].elem.depth);i=i+u,n.push({type:"kern",size:l}),n.push(r[s])}return{children:n,depth:a}}var o;if(t.positionType==="top"){for(var h=t.positionData,c=0;c<t.children.length;c++){var m=t.children[c];h-=m.type==="kern"?m.size:m.elem.height+m.elem.depth}o=h}else if(t.positionType==="bottom")o=-t.positionData;else{var g=t.children[0];if(g.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")o=-g.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")o=-g.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:o}},Wm=function(t,r){for(var{children:n,depth:a}=Gm(t),i=0,s=0;s<n.length;s++){var u=n[s];if(u.type==="elem"){var l=u.elem;i=Math.max(i,l.maxFontSize,l.height)}}i+=2;var o=ct(["pstrut"],[]);o.style.height=te(i);for(var h=[],c=a,m=a,g=a,E=0;E<n.length;E++){var y=n[E];if(y.type==="kern")g+=y.size;else{var v=y.elem,A=y.wrapperClasses||[],w=y.wrapperStyle||{},L=ct(A,[o,v],void 0,w);L.style.top=te(-i-g-v.depth),y.marginLeft&&(L.style.marginLeft=y.marginLeft),y.marginRight&&(L.style.marginRight=y.marginRight),h.push(L),g+=v.height+v.depth}c=Math.min(c,g),m=Math.max(m,g)}var z=ct(["vlist"],h);z.style.height=te(m);var q;if(c<0){var O=ct([],[]),Y=ct(["vlist"],[O]);Y.style.height=te(-c);var J=ct(["vlist-s"],[new At("​")]);q=[ct(["vlist-r"],[z,J]),ct(["vlist-r"],[Y])]}else q=[ct(["vlist-r"],[z])];var Q=ct(["vlist-t"],q);return q.length===2&&Q.classes.push("vlist-t2"),Q.height=m,Q.depth=-c,Q},Xm=(e,t)=>{var r=ct(["mspace"],[],t),n=Fe(e,t);return r.style.marginRight=te(n),r},la=function(t,r,n){var a="";switch(t){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=t}var i;return r==="textbf"&&n==="textit"?i="BoldItalic":r==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",a+"-"+i},Po={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Bo={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Qm=function(t,r){var[n,a,i]=Bo[t],s=new pr(n),u=new tr([s],{width:te(a),height:te(i),style:"width:"+te(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=Oo(["overlay"],[u],r);return l.height=i,l.style.height=te(i),l.style.width=te(a),l},F={fontMap:Po,makeSymbol:_t,mathsym:zm,makeSpan:ct,makeSvgSpan:Oo,makeLineSpan:$m,makeAnchor:Ym,makeFragment:Mo,wrapFragment:Vm,makeVList:Wm,makeOrd:Um,makeGlue:Xm,staticSvg:Qm,svgData:Bo,tryCombineChars:jm},Be={number:3,unit:"mu"},Ar={number:4,unit:"mu"},Xt={number:5,unit:"mu"},Km={mord:{mop:Be,mbin:Ar,mrel:Xt,minner:Be},mop:{mord:Be,mop:Be,mrel:Xt,minner:Be},mbin:{mord:Ar,mop:Ar,mopen:Ar,minner:Ar},mrel:{mord:Xt,mop:Xt,mopen:Xt,minner:Xt},mopen:{},mclose:{mop:Be,mbin:Ar,mrel:Xt,minner:Be},mpunct:{mord:Be,mop:Be,mrel:Xt,mopen:Be,mclose:Be,mpunct:Be,minner:Be},minner:{mord:Be,mop:Be,mbin:Ar,mrel:Xt,mopen:Be,mpunct:Be,minner:Be}},Zm={mord:{mop:Be},mop:{mord:Be,mop:Be},mbin:{},mrel:{},mopen:{},mclose:{mop:Be},mpunct:{},minner:{mop:Be}},Fo={},_a={},Ia={};function ne(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=e,u={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:a},l=0;l<r.length;++l)Fo[r[l]]=u;t&&(i&&(_a[t]=i),s&&(Ia[t]=s))}function Rr(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;ne({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var Da=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},je=function(t){return t.type==="ordgroup"?t.body:[t]},rr=F.makeSpan,Jm=["leftmost","mbin","mopen","mrel","mop","mpunct"],ep=["rightmost","mrel","mclose","mpunct"],tp={display:ce.DISPLAY,text:ce.TEXT,script:ce.SCRIPT,scriptscript:ce.SCRIPTSCRIPT},rp={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ve=function(t,r,n,a){a===void 0&&(a=[null,null]);for(var i=[],s=0;s<t.length;s++){var u=Ae(t[s],r);if(u instanceof Xn){var l=u.children;i.push(...l)}else i.push(u)}if(F.tryCombineChars(i),!n)return i;var o=r;if(t.length===1){var h=t[0];h.type==="sizing"?o=r.havingSize(h.size):h.type==="styling"&&(o=r.havingStyle(tp[h.style]))}var c=rr([a[0]||"leftmost"],[],r),m=rr([a[1]||"rightmost"],[],r),g=n==="root";return lu(i,(E,y)=>{var v=y.classes[0],A=E.classes[0];v==="mbin"&&ep.includes(A)?y.classes[0]="mord":A==="mbin"&&Jm.includes(v)&&(E.classes[0]="mord")},{node:c},m,g),lu(i,(E,y)=>{var v=l0(y),A=l0(E),w=v&&A?E.hasClass("mtight")?Zm[v][A]:Km[v][A]:null;if(w)return F.makeGlue(w,o)},{node:c},m,g),i},lu=function e(t,r,n,a,i){a&&t.push(a);for(var s=0;s<t.length;s++){var u=t[s],l=zo(u);if(l){e(l.children,r,n,null,i);continue}var o=!u.hasClass("mspace");if(o){var h=r(u,n.node);h&&(n.insertAfter?n.insertAfter(h):(t.unshift(h),s++))}o?n.node=u:i&&u.hasClass("newline")&&(n.node=rr(["leftmost"])),n.insertAfter=(c=>m=>{t.splice(c+1,0,m),s++})(s)}a&&t.pop()},zo=function(t){return t instanceof Xn||t instanceof H0||t instanceof Qn&&t.hasClass("enclosing")?t:null},np=function e(t,r){var n=zo(t);if(n){var a=n.children;if(a.length){if(r==="right")return e(a[a.length-1],"right");if(r==="left")return e(a[0],"left")}}return t},l0=function(t,r){return t?(r&&(t=np(t,r)),rp[t.classes[0]]||null):null},Un=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return rr(r.concat(n))},Ae=function(t,r,n){if(!t)return rr();if(_a[t.type]){var a=_a[t.type](t,r);if(n&&r.size!==n.size){a=rr(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new X("Got group of unknown type: '"+t.type+"'")};function oa(e,t){var r=rr(["base"],e,t),n=rr(["strut"]);return n.style.height=te(r.height+r.depth),r.depth&&(n.style.verticalAlign=te(-r.depth)),r.children.unshift(n),r}function o0(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=Ve(e,t,"root"),a;n.length===2&&n[1].hasClass("tag")&&(a=n.pop());for(var i=[],s=[],u=0;u<n.length;u++)if(s.push(n[u]),n[u].hasClass("mbin")||n[u].hasClass("mrel")||n[u].hasClass("allowbreak")){for(var l=!1;u<n.length-1&&n[u+1].hasClass("mspace")&&!n[u+1].hasClass("newline");)u++,s.push(n[u]),n[u].hasClass("nobreak")&&(l=!0);l||(i.push(oa(s,t)),s=[])}else n[u].hasClass("newline")&&(s.pop(),s.length>0&&(i.push(oa(s,t)),s=[]),i.push(n[u]));s.length>0&&i.push(oa(s,t));var o;r?(o=oa(Ve(r,t,!0)),o.classes=["tag"],i.push(o)):a&&i.push(a);var h=rr(["katex-html"],i);if(h.setAttribute("aria-hidden","true"),o){var c=o.children[0];c.style.height=te(h.height+h.depth),h.depth&&(c.style.verticalAlign=te(-h.depth))}return h}function Ho(e){return new Xn(e)}class gt{constructor(t,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=mr(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Ut&&this.children[n+1]instanceof Ut){for(var a=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Ut;)a+=this.children[++n].toText();t.appendChild(new Ut(a).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=we.escape(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+we.escape(mr(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Ut{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return we.escape(this.toText())}toText(){return this.text}}class ap{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",te(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+te(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var W={MathNode:gt,TextNode:Ut,SpaceNode:ap,newDocumentFragment:Ho},wt=function(t,r,n){return Re[r][t]&&Re[r][t].replace&&t.charCodeAt(0)!==55349&&!(Ro.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=Re[r][t].replace),new W.TextNode(t)},q0=function(t){return t.length===1?t[0]:new W.MathNode("mrow",t)},j0=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var a=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var i=t.text;if(["\\imath","\\jmath"].includes(i))return null;Re[a][i]&&Re[a][i].replace&&(i=Re[a][i].replace);var s=F.fontMap[n].fontName;return z0(i,s,a)?F.fontMap[n].variant:null};function ki(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Ut&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Ut&&r.text===","}else return!1}var ft=function(t,r,n){if(t.length===1){var a=De(t[0],r);return n&&a instanceof gt&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],s,u=0;u<t.length;u++){var l=De(t[u],r);if(l instanceof gt&&s instanceof gt){if(l.type==="mtext"&&s.type==="mtext"&&l.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...l.children);continue}else if(l.type==="mn"&&s.type==="mn"){s.children.push(...l.children);continue}else if(ki(l)&&s.type==="mn"){s.children.push(...l.children);continue}else if(l.type==="mn"&&ki(s))l.children=[...s.children,...l.children],i.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(s.type==="mn"||ki(s))){var o=l.children[0];o instanceof gt&&o.type==="mn"&&(o.children=[...s.children,...o.children],i.pop())}else if(s.type==="mi"&&s.children.length===1){var h=s.children[0];if(h instanceof Ut&&h.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var c=l.children[0];c instanceof Ut&&c.text.length>0&&(c.text=c.text.slice(0,1)+"̸"+c.text.slice(1),i.pop())}}}i.push(l),s=l}return i},gr=function(t,r,n){return q0(ft(t,r,n))},De=function(t,r){if(!t)return new W.MathNode("mrow");if(Ia[t.type]){var n=Ia[t.type](t,r);return n}else throw new X("Got group of unknown type: '"+t.type+"'")};function ou(e,t,r,n,a){var i=ft(e,r),s;i.length===1&&i[0]instanceof gt&&["mrow","mtable"].includes(i[0].type)?s=i[0]:s=new W.MathNode("mrow",i);var u=new W.MathNode("annotation",[new W.TextNode(t)]);u.setAttribute("encoding","application/x-tex");var l=new W.MathNode("semantics",[s,u]),o=new W.MathNode("math",[l]);o.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&o.setAttribute("display","block");var h=a?"katex":"katex-mathml";return F.makeSpan([h],[o])}var Uo=function(t){return new Qt({style:t.displayMode?ce.DISPLAY:ce.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},qo=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=F.makeSpan(n,[t])}return t},ip=function(t,r,n){var a=Uo(n),i;if(n.output==="mathml")return ou(t,r,a,n.displayMode,!0);if(n.output==="html"){var s=o0(t,a);i=F.makeSpan(["katex"],[s])}else{var u=ou(t,r,a,n.displayMode,!1),l=o0(t,a);i=F.makeSpan(["katex"],[u,l])}return qo(i,n)},sp=function(t,r,n){var a=Uo(n),i=o0(t,a),s=F.makeSpan(["katex"],[i]);return qo(s,n)},up={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},lp=function(t){var r=new W.MathNode("mo",[new W.TextNode(up[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},op={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},cp=function(t){return t.type==="ordgroup"?t.body.length:1},hp=function(t,r){function n(){var u=4e5,l=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(l)){var o=t,h=cp(o.base),c,m,g;if(h>5)l==="widehat"||l==="widecheck"?(c=420,u=2364,g=.42,m=l+"4"):(c=312,u=2340,g=.34,m="tilde4");else{var E=[1,1,2,2,3,3][h];l==="widehat"||l==="widecheck"?(u=[0,1062,2364,2364,2364][E],c=[0,239,300,360,420][E],g=[0,.24,.3,.3,.36,.42][E],m=l+E):(u=[0,600,1033,2339,2340][E],c=[0,260,286,306,312][E],g=[0,.26,.286,.3,.306,.34][E],m="tilde"+E)}var y=new pr(m),v=new tr([y],{width:"100%",height:te(g),viewBox:"0 0 "+u+" "+c,preserveAspectRatio:"none"});return{span:F.makeSvgSpan([],[v],r),minWidth:0,height:g}}else{var A=[],w=op[l],[L,z,q]=w,O=q/1e3,Y=L.length,J,Q;if(Y===1){var P=w[3];J=["hide-tail"],Q=[P]}else if(Y===2)J=["halfarrow-left","halfarrow-right"],Q=["xMinYMin","xMaxYMin"];else if(Y===3)J=["brace-left","brace-center","brace-right"],Q=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
259
+ `+Y+" children.");for(var Z=0;Z<Y;Z++){var U=new pr(L[Z]),le=new tr([U],{width:"400em",height:te(O),viewBox:"0 0 "+u+" "+q,preserveAspectRatio:Q[Z]+" slice"}),ae=F.makeSvgSpan([J[Z]],[le],r);if(Y===1)return{span:ae,minWidth:z,height:O};ae.style.height=te(O),A.push(ae)}return{span:F.makeSpan(["stretchy"],A,r),minWidth:z,height:O}}}var{span:a,minWidth:i,height:s}=n();return a.height=s,a.style.height=te(s),i>0&&(a.style.minWidth=te(i)),a},dp=function(t,r,n,a,i){var s,u=t.height+t.depth+n+a;if(/fbox|color|angl/.test(r)){if(s=F.makeSpan(["stretchy",r],[],i),r==="fbox"){var l=i.color&&i.getColor();l&&(s.style.borderColor=l)}}else{var o=[];/^[bx]cancel$/.test(r)&&o.push(new s0({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&o.push(new s0({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var h=new tr(o,{width:"100%",height:te(u)});s=F.makeSvgSpan([],[h],i)}return s.height=u,s.style.height=te(u),s},nr={encloseSpan:dp,mathMLnode:lp,svgSpan:hp};function ge(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function $0(e){var t=Xa(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Xa(e){return e&&(e.type==="atom"||Bm.hasOwnProperty(e.type))?e:null}var Y0=(e,t)=>{var r,n,a;e&&e.type==="supsub"?(n=ge(e.base,"accent"),r=n.base,e.base=r,a=Mm(Ae(e,t)),e.base=n):(n=ge(e,"accent"),r=n.base);var i=Ae(r,t.havingCrampedStyle()),s=n.isShifty&&we.isCharacterBox(r),u=0;if(s){var l=we.getBaseElem(r),o=Ae(l,t.havingCrampedStyle());u=ru(o).skew}var h=n.label==="\\c",c=h?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),m;if(n.isStretchy)m=nr.svgSpan(n,t),m=F.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:m,wrapperClasses:["svg-align"],wrapperStyle:u>0?{width:"calc(100% - "+te(2*u)+")",marginLeft:te(2*u)}:void 0}]},t);else{var g,E;n.label==="\\vec"?(g=F.staticSvg("vec",t),E=F.svgData.vec[1]):(g=F.makeOrd({mode:n.mode,text:n.label},t,"textord"),g=ru(g),g.italic=0,E=g.width,h&&(c+=g.depth)),m=F.makeSpan(["accent-body"],[g]);var y=n.label==="\\textcircled";y&&(m.classes.push("accent-full"),c=i.height);var v=u;y||(v-=E/2),m.style.left=te(v),n.label==="\\textcircled"&&(m.style.top=".2em"),m=F.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-c},{type:"elem",elem:m}]},t)}var A=F.makeSpan(["mord","accent"],[m],t);return a?(a.children[0]=A,a.height=Math.max(A.height,a.height),a.classes[0]="mord",a):A},jo=(e,t)=>{var r=e.isStretchy?nr.mathMLnode(e.label):new W.MathNode("mo",[wt(e.label,e.mode)]),n=new W.MathNode("mover",[De(e.base,t),r]);return n.setAttribute("accent","true"),n},fp=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ne({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=Da(t[0]),n=!fp.test(e.funcName),a=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:Y0,mathmlBuilder:jo});ne({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Y0,mathmlBuilder:jo});ne({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(e,t)=>{var r=Ae(e.base,t),n=nr.svgSpan(e,t),a=e.label==="\\utilde"?.12:0,i=F.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]},t);return F.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=nr.mathMLnode(e.label),n=new W.MathNode("munder",[De(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var ca=e=>{var t=new W.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ne({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:a}=e;return{type:"xArrow",mode:n.mode,label:a,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),a=F.wrapFragment(Ae(e.body,n,t),t),i=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var s;e.below&&(n=t.havingStyle(r.sub()),s=F.wrapFragment(Ae(e.below,n,t),t),s.classes.push(i+"-arrow-pad"));var u=nr.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*u.height,o=-t.fontMetrics().axisHeight-.5*u.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(o-=a.depth);var h;if(s){var c=-t.fontMetrics().axisHeight+s.height+.5*u.height+.111;h=F.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:o},{type:"elem",elem:u,shift:l},{type:"elem",elem:s,shift:c}]},t)}else h=F.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:o},{type:"elem",elem:u,shift:l}]},t);return h.children[0].children[0].children[1].classes.push("svg-align"),F.makeSpan(["mrel","x-arrow"],[h],t)},mathmlBuilder(e,t){var r=nr.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var a=ca(De(e.body,t));if(e.below){var i=ca(De(e.below,t));n=new W.MathNode("munderover",[r,i,a])}else n=new W.MathNode("mover",[r,a])}else if(e.below){var s=ca(De(e.below,t));n=new W.MathNode("munder",[r,s])}else n=ca(),n=new W.MathNode("mover",[r,n]);return n}});var mp=F.makeSpan;function $o(e,t){var r=Ve(e.body,t,!0);return mp([e.mclass],r,t)}function Yo(e,t){var r,n=ft(e.body,t);return e.mclass==="minner"?r=new W.MathNode("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new W.MathNode("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new W.MathNode("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}ne({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:je(a),isCharacterBox:we.isCharacterBox(a)}},htmlBuilder:$o,mathmlBuilder:Yo});var Qa=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ne({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Qa(t[0]),body:je(t[1]),isCharacterBox:we.isCharacterBox(t[1])}}});ne({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,a=t[1],i=t[0],s;n!=="\\stackrel"?s=Qa(a):s="mrel";var u={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:je(a)},l={type:"supsub",mode:i.mode,base:u,sup:n==="\\underset"?null:i,sub:n==="\\underset"?i:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:we.isCharacterBox(l)}},htmlBuilder:$o,mathmlBuilder:Yo});ne({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Qa(t[0]),body:je(t[0])}},htmlBuilder(e,t){var r=Ve(e.body,t,!0),n=F.makeSpan([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=ft(e.body,t),n=new W.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var pp={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},cu=()=>({type:"styling",body:[],mode:"math",style:"display"}),hu=e=>e.type==="textord"&&e.text==="@",gp=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function bp(e,t,r){var n=pp[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[t[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[i],[]),u=r.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[a,s,u]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var o={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[o],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Ep(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new X("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],a=[n],i=0;i<t.length;i++){for(var s=t[i],u=cu(),l=0;l<s.length;l++)if(!hu(s[l]))u.body.push(s[l]);else{n.push(u),l+=1;var o=$0(s[l]).text,h=new Array(2);if(h[0]={type:"ordgroup",mode:"math",body:[]},h[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(o)>-1))if("<>AV".indexOf(o)>-1)for(var c=0;c<2;c++){for(var m=!0,g=l+1;g<s.length;g++){if(gp(s[g],o)){m=!1,l=g;break}if(hu(s[g]))throw new X("Missing a "+o+" character to complete a CD arrow.",s[g]);h[c].body.push(s[g])}if(m)throw new X("Missing a "+o+" character to complete a CD arrow.",s[l])}else throw new X('Expected one of "<>AV=|." after @',s[l]);var E=bp(o,h,e),y={type:"styling",body:[E],mode:"math",style:"display"};n.push(y),u=cu()}i%2===0?n.push(u):n.shift(),n=[],a.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var v=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:v,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}ne({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=F.wrapFragment(Ae(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=te(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new W.MathNode("mrow",[De(e.label,t)]);return r=new W.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new W.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});ne({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=F.wrapFragment(Ae(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new W.MathNode("mrow",[De(e.fragment,t)])}});ne({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=ge(t[0],"ordgroup"),a=n.body,i="",s=0;s<a.length;s++){var u=ge(a[s],"textord");i+=u.text}var l=parseInt(i),o;if(isNaN(l))throw new X("\\@char has non-numeric argument "+i);if(l<0||l>=1114111)throw new X("\\@char with invalid code point "+i);return l<=65535?o=String.fromCharCode(l):(l-=65536,o=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:o}}});var Vo=(e,t)=>{var r=Ve(e.body,t.withColor(e.color),!1);return F.makeFragment(r)},Go=(e,t)=>{var r=ft(e.body,t.withColor(e.color)),n=new W.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};ne({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=ge(t[0],"color-token").color,a=t[1];return{type:"color",mode:r.mode,color:n,body:je(a)}},htmlBuilder:Vo,mathmlBuilder:Go});ne({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,a=ge(t[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:Vo,mathmlBuilder:Go});ne({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,a=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&ge(a,"size").value}},htmlBuilder(e,t){var r=F.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=te(Fe(e.size,t)))),r},mathmlBuilder(e,t){var r=new W.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",te(Fe(e.size,t)))),r}});var c0={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Wo=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new X("Expected a control sequence",e);return t},Tp=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Xo=(e,t,r,n)=>{var a=e.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,a,n)};ne({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(c0[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=c0[n.text]),ge(t.parseFunction(),"internal");throw new X("Invalid token after macro prefix",n)}});ne({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new X("Expected a control sequence",n);for(var i=0,s,u=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),u[i].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new X('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new X('Argument number "'+n.text+'" out of order');i++,u.push([])}else{if(n.text==="EOF")throw new X("Expected a macro definition");u[i].push(n.text)}var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),(r==="\\edef"||r==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(a,{tokens:l,numArgs:i,delimiters:u},r===c0[r]),{type:"internal",mode:t.mode}}});ne({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Wo(t.gullet.popToken());t.gullet.consumeSpaces();var a=Tp(t);return Xo(t,n,a,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});ne({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Wo(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return Xo(t,n,i,r==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var An=function(t,r,n){var a=Re.math[t]&&Re.math[t].replace,i=z0(a||t,r,n);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return i},V0=function(t,r,n,a){var i=n.havingBaseStyle(r),s=F.makeSpan(a.concat(i.sizingClasses(n)),[t],n),u=i.sizeMultiplier/n.sizeMultiplier;return s.height*=u,s.depth*=u,s.maxFontSize=i.sizeMultiplier,s},Qo=function(t,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=te(i),t.height-=i,t.depth+=i},xp=function(t,r,n,a,i,s){var u=F.makeSymbol(t,"Main-Regular",i,a),l=V0(u,r,a,s);return n&&Qo(l,a,r),l},yp=function(t,r,n,a){return F.makeSymbol(t,"Size"+r+"-Regular",n,a)},Ko=function(t,r,n,a,i,s){var u=yp(t,r,i,a),l=V0(F.makeSpan(["delimsizing","size"+r],[u],a),ce.TEXT,a,s);return n&&Qo(l,a,ce.TEXT),l},vi=function(t,r,n){var a;r==="Size1-Regular"?a="delim-size1":a="delim-size4";var i=F.makeSpan(["delimsizinginner",a],[F.makeSpan([],[F.makeSymbol(t,r,n)])]);return{type:"elem",elem:i}},Ai=function(t,r,n){var a=Ht["Size4-Regular"][t.charCodeAt(0)]?Ht["Size4-Regular"][t.charCodeAt(0)][4]:Ht["Size1-Regular"][t.charCodeAt(0)][4],i=new pr("inner",Cm(t,Math.round(1e3*r))),s=new tr([i],{width:te(a),height:te(r),style:"width:"+te(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),u=F.makeSvgSpan([],[s],n);return u.height=r,u.style.height=te(r),u.style.width=te(a),{type:"elem",elem:u}},h0=.008,ha={type:"kern",size:-1*h0},kp=["|","\\lvert","\\rvert","\\vert"],vp=["\\|","\\lVert","\\rVert","\\Vert"],Zo=function(t,r,n,a,i,s){var u,l,o,h,c="",m=0;u=o=h=t,l=null;var g="Size1-Regular";t==="\\uparrow"?o=h="⏐":t==="\\Uparrow"?o=h="‖":t==="\\downarrow"?u=o="⏐":t==="\\Downarrow"?u=o="‖":t==="\\updownarrow"?(u="\\uparrow",o="⏐",h="\\downarrow"):t==="\\Updownarrow"?(u="\\Uparrow",o="‖",h="\\Downarrow"):kp.includes(t)?(o="∣",c="vert",m=333):vp.includes(t)?(o="∥",c="doublevert",m=556):t==="["||t==="\\lbrack"?(u="⎡",o="⎢",h="⎣",g="Size4-Regular",c="lbrack",m=667):t==="]"||t==="\\rbrack"?(u="⎤",o="⎥",h="⎦",g="Size4-Regular",c="rbrack",m=667):t==="\\lfloor"||t==="⌊"?(o=u="⎢",h="⎣",g="Size4-Regular",c="lfloor",m=667):t==="\\lceil"||t==="⌈"?(u="⎡",o=h="⎢",g="Size4-Regular",c="lceil",m=667):t==="\\rfloor"||t==="⌋"?(o=u="⎥",h="⎦",g="Size4-Regular",c="rfloor",m=667):t==="\\rceil"||t==="⌉"?(u="⎤",o=h="⎥",g="Size4-Regular",c="rceil",m=667):t==="("||t==="\\lparen"?(u="⎛",o="⎜",h="⎝",g="Size4-Regular",c="lparen",m=875):t===")"||t==="\\rparen"?(u="⎞",o="⎟",h="⎠",g="Size4-Regular",c="rparen",m=875):t==="\\{"||t==="\\lbrace"?(u="⎧",l="⎨",h="⎩",o="⎪",g="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(u="⎫",l="⎬",h="⎭",o="⎪",g="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(u="⎧",h="⎩",o="⎪",g="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(u="⎫",h="⎭",o="⎪",g="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(u="⎧",h="⎭",o="⎪",g="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(u="⎫",h="⎩",o="⎪",g="Size4-Regular");var E=An(u,g,i),y=E.height+E.depth,v=An(o,g,i),A=v.height+v.depth,w=An(h,g,i),L=w.height+w.depth,z=0,q=1;if(l!==null){var O=An(l,g,i);z=O.height+O.depth,q=2}var Y=y+L+z,J=Math.max(0,Math.ceil((r-Y)/(q*A))),Q=Y+J*q*A,P=a.fontMetrics().axisHeight;n&&(P*=a.sizeMultiplier);var Z=Q/2-P,U=[];if(c.length>0){var le=Q-y-L,ae=Math.round(Q*1e3),ee=Nm(c,Math.round(le*1e3)),be=new pr(c,ee),se=(m/1e3).toFixed(3)+"em",Te=(ae/1e3).toFixed(3)+"em",fe=new tr([be],{width:se,height:Te,viewBox:"0 0 "+m+" "+ae}),N=F.makeSvgSpan([],[fe],a);N.height=ae/1e3,N.style.width=se,N.style.height=Te,U.push({type:"elem",elem:N})}else{if(U.push(vi(h,g,i)),U.push(ha),l===null){var Ee=Q-y-L+2*h0;U.push(Ai(o,Ee,a))}else{var Ce=(Q-y-L-z)/2+2*h0;U.push(Ai(o,Ce,a)),U.push(ha),U.push(vi(l,g,i)),U.push(ha),U.push(Ai(o,Ce,a))}U.push(ha),U.push(vi(u,g,i))}var D=a.havingBaseStyle(ce.TEXT),Xe=F.makeVList({positionType:"bottom",positionData:Z,children:U},D);return V0(F.makeSpan(["delimsizing","mult"],[Xe],D),ce.TEXT,a,s)},wi=80,Si=.08,Ci=function(t,r,n,a,i){var s=Sm(t,a,n),u=new pr(t,s),l=new tr([u],{width:"400em",height:te(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return F.makeSvgSpan(["hide-tail"],[l],i)},Ap=function(t,r){var n=r.havingBaseSizing(),a=rc("\\surd",t*n.sizeMultiplier,tc,n),i=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),u,l=0,o=0,h=0,c;return a.type==="small"?(h=1e3+1e3*s+wi,t<1?i=1:t<1.4&&(i=.7),l=(1+s+Si)/i,o=(1+s)/i,u=Ci("sqrtMain",l,h,s,r),u.style.minWidth="0.853em",c=.833/i):a.type==="large"?(h=(1e3+wi)*Nn[a.size],o=(Nn[a.size]+s)/i,l=(Nn[a.size]+s+Si)/i,u=Ci("sqrtSize"+a.size,l,h,s,r),u.style.minWidth="1.02em",c=1/i):(l=t+s+Si,o=t+s,h=Math.floor(1e3*t+s)+wi,u=Ci("sqrtTall",l,h,s,r),u.style.minWidth="0.742em",c=1.056),u.height=o,u.style.height=te(l),{span:u,advanceWidth:c,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*i}},Jo=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],wp=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],ec=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Nn=[0,1.2,1.8,2.4,3],Sp=function(t,r,n,a,i){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Jo.includes(t)||ec.includes(t))return Ko(t,r,!1,n,a,i);if(wp.includes(t))return Zo(t,Nn[r],!1,n,a,i);throw new X("Illegal delimiter: '"+t+"'")},Cp=[{type:"small",style:ce.SCRIPTSCRIPT},{type:"small",style:ce.SCRIPT},{type:"small",style:ce.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Np=[{type:"small",style:ce.SCRIPTSCRIPT},{type:"small",style:ce.SCRIPT},{type:"small",style:ce.TEXT},{type:"stack"}],tc=[{type:"small",style:ce.SCRIPTSCRIPT},{type:"small",style:ce.SCRIPT},{type:"small",style:ce.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],_p=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},rc=function(t,r,n,a){for(var i=Math.min(2,3-a.style.size),s=i;s<n.length&&n[s].type!=="stack";s++){var u=An(t,_p(n[s]),"math"),l=u.height+u.depth;if(n[s].type==="small"){var o=a.havingBaseStyle(n[s].style);l*=o.sizeMultiplier}if(l>r)return n[s]}return n[n.length-1]},nc=function(t,r,n,a,i,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var u;ec.includes(t)?u=Cp:Jo.includes(t)?u=tc:u=Np;var l=rc(t,r,u,a);return l.type==="small"?xp(t,l.style,n,a,i,s):l.type==="large"?Ko(t,l.size,n,a,i,s):Zo(t,r,n,a,i,s)},Ip=function(t,r,n,a,i,s){var u=a.fontMetrics().axisHeight*a.sizeMultiplier,l=901,o=5/a.fontMetrics().ptPerEm,h=Math.max(r-u,n+u),c=Math.max(h/500*l,2*h-o);return nc(t,c,!0,a,i,s)},er={sqrtImage:Ap,sizedDelim:Sp,sizeToMaxHeight:Nn,customSizedDelim:nc,leftRightDelim:Ip},du={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Dp=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Ka(e,t){var r=Xa(e);if(r&&Dp.includes(r.text))return r;throw r?new X("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new X("Invalid delimiter type '"+e.type+"'",e)}ne({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=Ka(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:du[e.funcName].size,mclass:du[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?F.makeSpan([e.mclass]):er.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(wt(e.delim,e.mode));var r=new W.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=te(er.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function fu(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ne({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new X("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Ka(t[0],e).text,color:r}}});ne({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Ka(t[0],e),n=e.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=ge(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{fu(e);for(var r=Ve(e.body,t,!0,["mopen","mclose"]),n=0,a=0,i=!1,s=0;s<r.length;s++)r[s].isMiddle?i=!0:(n=Math.max(r[s].height,n),a=Math.max(r[s].depth,a));n*=t.sizeMultiplier,a*=t.sizeMultiplier;var u;if(e.left==="."?u=Un(t,["mopen"]):u=er.leftRightDelim(e.left,n,a,t,e.mode,["mopen"]),r.unshift(u),i)for(var l=1;l<r.length;l++){var o=r[l],h=o.isMiddle;h&&(r[l]=er.leftRightDelim(h.delim,n,a,h.options,e.mode,[]))}var c;if(e.right===".")c=Un(t,["mclose"]);else{var m=e.rightColor?t.withColor(e.rightColor):t;c=er.leftRightDelim(e.right,n,a,m,e.mode,["mclose"])}return r.push(c),F.makeSpan(["minner"],r,t)},mathmlBuilder:(e,t)=>{fu(e);var r=ft(e.body,t);if(e.left!=="."){var n=new W.MathNode("mo",[wt(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var a=new W.MathNode("mo",[wt(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),r.push(a)}return q0(r)}});ne({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Ka(t[0],e);if(!e.parser.leftrightDepth)throw new X("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=Un(t,[]);else{r=er.sizedDelim(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?wt("|","text"):wt(e.delim,e.mode),n=new W.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var G0=(e,t)=>{var r=F.wrapFragment(Ae(e.body,t),t),n=e.label.slice(1),a=t.sizeMultiplier,i,s=0,u=we.isCharacterBox(e.body);if(n==="sout")i=F.makeSpan(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/a,s=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var l=Fe({number:.6,unit:"pt"},t),o=Fe({number:.35,unit:"ex"},t),h=t.havingBaseSizing();a=a/h.sizeMultiplier;var c=r.height+r.depth+l+o;r.style.paddingLeft=te(c/2+l);var m=Math.floor(1e3*c*a),g=Am(m),E=new tr([new pr("phase",g)],{width:"400em",height:te(m/1e3),viewBox:"0 0 400000 "+m,preserveAspectRatio:"xMinYMin slice"});i=F.makeSvgSpan(["hide-tail"],[E],t),i.style.height=te(c),s=r.depth+l+o}else{/cancel/.test(n)?u||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var y=0,v=0,A=0;/box/.test(n)?(A=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),y=t.fontMetrics().fboxsep+(n==="colorbox"?0:A),v=y):n==="angl"?(A=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),y=4*A,v=Math.max(0,.25-r.depth)):(y=u?.2:0,v=y),i=nr.encloseSpan(r,n,y,v,t),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=te(A)):n==="angl"&&A!==.049&&(i.style.borderTopWidth=te(A),i.style.borderRightWidth=te(A)),s=r.depth+v,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var w;if(e.backgroundColor)w=F.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:s},{type:"elem",elem:r,shift:0}]},t);else{var L=/cancel|phase/.test(n)?["svg-align"]:[];w=F.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:s,wrapperClasses:L}]},t)}return/cancel/.test(n)&&(w.height=r.height,w.depth=r.depth),/cancel/.test(n)&&!u?F.makeSpan(["mord","cancel-lap"],[w],t):F.makeSpan(["mord"],[w],t)},W0=(e,t)=>{var r=0,n=new W.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[De(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};ne({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=ge(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:s}},htmlBuilder:G0,mathmlBuilder:W0});ne({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=ge(t[0],"color-token").color,s=ge(t[1],"color-token").color,u=t[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:s,borderColor:i,body:u}},htmlBuilder:G0,mathmlBuilder:W0});ne({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});ne({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:G0,mathmlBuilder:W0});ne({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var ac={};function qt(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:s}=e,u={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l<r.length;++l)ac[r[l]]=u;i&&(_a[t]=i),s&&(Ia[t]=s)}var ic={};function T(e,t){ic[e]=t}function mu(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var Za=e=>{var t=e.parser.settings;if(!t.displayMode)throw new X("{"+e.envName+"} can be used only in display mode.")};function X0(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Tr(e,t,r){var{hskipBeforeAndAfter:n,addJot:a,cols:i,arraystretch:s,colSeparationType:u,autoTag:l,singleRow:o,emptySingleRow:h,maxNumCols:c,leqno:m}=t;if(e.gullet.beginGroup(),o||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var g=e.gullet.expandMacroAsText("\\arraystretch");if(g==null)s=1;else if(s=parseFloat(g),!s||s<0)throw new X("Invalid \\arraystretch: "+g)}e.gullet.beginGroup();var E=[],y=[E],v=[],A=[],w=l!=null?[]:void 0;function L(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function z(){w&&(e.gullet.macros.get("\\df@tag")?(w.push(e.subparse([new bt("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):w.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(L(),A.push(mu(e));;){var q=e.parseExpression(!1,o?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),q={type:"ordgroup",mode:e.mode,body:q},r&&(q={type:"styling",mode:e.mode,style:r,body:[q]}),E.push(q);var O=e.fetch().text;if(O==="&"){if(c&&E.length===c){if(o||u)throw new X("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(O==="\\end"){z(),E.length===1&&q.type==="styling"&&q.body[0].body.length===0&&(y.length>1||!h)&&y.pop(),A.length<y.length+1&&A.push([]);break}else if(O==="\\\\"){e.consume();var Y=void 0;e.gullet.future().text!==" "&&(Y=e.parseSizeGroup(!0)),v.push(Y?Y.value:null),z(),A.push(mu(e)),E=[],y.push(E),L()}else throw new X("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:s,body:y,cols:i,rowGaps:v,hskipBeforeAndAfter:n,hLinesBeforeRow:A,colSeparationType:u,tags:w,leqno:m}}function Q0(e){return e.slice(0,1)==="d"?"display":"text"}var jt=function(t,r){var n,a,i=t.body.length,s=t.hLinesBeforeRow,u=0,l=new Array(i),o=[],h=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),c=1/r.fontMetrics().ptPerEm,m=5*c;if(t.colSeparationType&&t.colSeparationType==="small"){var g=r.havingStyle(ce.SCRIPT).sizeMultiplier;m=.2778*(g/r.sizeMultiplier)}var E=t.colSeparationType==="CD"?Fe({number:3,unit:"ex"},r):12*c,y=3*c,v=t.arraystretch*E,A=.7*v,w=.3*v,L=0;function z(zr){for(var yr=0;yr<zr.length;++yr)yr>0&&(L+=.25),o.push({pos:L,isDashed:zr[yr]})}for(z(s[0]),n=0;n<t.body.length;++n){var q=t.body[n],O=A,Y=w;u<q.length&&(u=q.length);var J=new Array(q.length);for(a=0;a<q.length;++a){var Q=Ae(q[a],r);Y<Q.depth&&(Y=Q.depth),O<Q.height&&(O=Q.height),J[a]=Q}var P=t.rowGaps[n],Z=0;P&&(Z=Fe(P,r),Z>0&&(Z+=w,Y<Z&&(Y=Z),Z=0)),t.addJot&&(Y+=y),J.height=O,J.depth=Y,L+=O,J.pos=L,L+=Y+Z,l[n]=J,z(s[n+1])}var U=L/2+r.fontMetrics().axisHeight,le=t.cols||[],ae=[],ee,be,se=[];if(t.tags&&t.tags.some(zr=>zr))for(n=0;n<i;++n){var Te=l[n],fe=Te.pos-U,N=t.tags[n],Ee=void 0;N===!0?Ee=F.makeSpan(["eqn-num"],[],r):N===!1?Ee=F.makeSpan([],[],r):Ee=F.makeSpan([],Ve(N,r,!0),r),Ee.depth=Te.depth,Ee.height=Te.height,se.push({type:"elem",elem:Ee,shift:fe})}for(a=0,be=0;a<u||be<le.length;++a,++be){for(var Ce=le[be]||{},D=!0;Ce.type==="separator";){if(D||(ee=F.makeSpan(["arraycolsep"],[]),ee.style.width=te(r.fontMetrics().doubleRuleSep),ae.push(ee)),Ce.separator==="|"||Ce.separator===":"){var Xe=Ce.separator==="|"?"solid":"dashed",Qe=F.makeSpan(["vertical-separator"],[],r);Qe.style.height=te(L),Qe.style.borderRightWidth=te(h),Qe.style.borderRightStyle=Xe,Qe.style.margin="0 "+te(-h/2);var Oe=L-U;Oe&&(Qe.style.verticalAlign=te(-Oe)),ae.push(Qe)}else throw new X("Invalid separator type: "+Ce.separator);be++,Ce=le[be]||{},D=!1}if(!(a>=u)){var xt=void 0;(a>0||t.hskipBeforeAndAfter)&&(xt=we.deflt(Ce.pregap,m),xt!==0&&(ee=F.makeSpan(["arraycolsep"],[]),ee.style.width=te(xt),ae.push(ee)));var rt=[];for(n=0;n<i;++n){var St=l[n],Ct=St[a];if(Ct){var Br=St.pos-U;Ct.depth=St.depth,Ct.height=St.height,rt.push({type:"elem",elem:Ct,shift:Br})}}rt=F.makeVList({positionType:"individualShift",children:rt},r),rt=F.makeSpan(["col-align-"+(Ce.align||"c")],[rt]),ae.push(rt),(a<u-1||t.hskipBeforeAndAfter)&&(xt=we.deflt(Ce.postgap,m),xt!==0&&(ee=F.makeSpan(["arraycolsep"],[]),ee.style.width=te(xt),ae.push(ee)))}}if(l=F.makeSpan(["mtable"],ae),o.length>0){for(var hi=F.makeLineSpan("hline",r,h),di=F.makeLineSpan("hdashline",r,h),cn=[{type:"elem",elem:l,shift:0}];o.length>0;){var hn=o.pop(),dn=hn.pos-U;hn.isDashed?cn.push({type:"elem",elem:di,shift:dn}):cn.push({type:"elem",elem:hi,shift:dn})}l=F.makeVList({positionType:"individualShift",children:cn},r)}if(se.length===0)return F.makeSpan(["mord"],[l],r);var Fr=F.makeVList({positionType:"individualShift",children:se},r);return Fr=F.makeSpan(["tag"],[Fr],r),F.makeFragment([l,Fr])},Lp={c:"center ",l:"left ",r:"right "},$t=function(t,r){for(var n=[],a=new W.MathNode("mtd",[],["mtr-glue"]),i=new W.MathNode("mtd",[],["mml-eqn-num"]),s=0;s<t.body.length;s++){for(var u=t.body[s],l=[],o=0;o<u.length;o++)l.push(new W.MathNode("mtd",[De(u[o],r)]));t.tags&&t.tags[s]&&(l.unshift(a),l.push(a),t.leqno?l.unshift(i):l.push(i)),n.push(new W.MathNode("mtr",l))}var h=new W.MathNode("mtable",n),c=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);h.setAttribute("rowspacing",te(c));var m="",g="";if(t.cols&&t.cols.length>0){var E=t.cols,y="",v=!1,A=0,w=E.length;E[0].type==="separator"&&(m+="top ",A=1),E[E.length-1].type==="separator"&&(m+="bottom ",w-=1);for(var L=A;L<w;L++)E[L].type==="align"?(g+=Lp[E[L].align],v&&(y+="none "),v=!0):E[L].type==="separator"&&v&&(y+=E[L].separator==="|"?"solid ":"dashed ",v=!1);h.setAttribute("columnalign",g.trim()),/[sd]/.test(y)&&h.setAttribute("columnlines",y.trim())}if(t.colSeparationType==="align"){for(var z=t.cols||[],q="",O=1;O<z.length;O++)q+=O%2?"0em ":"1em ";h.setAttribute("columnspacing",q.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?h.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?h.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?h.setAttribute("columnspacing","0.5em"):h.setAttribute("columnspacing","1em");var Y="",J=t.hLinesBeforeRow;m+=J[0].length>0?"left ":"",m+=J[J.length-1].length>0?"right ":"";for(var Q=1;Q<J.length-1;Q++)Y+=J[Q].length===0?"none ":J[Q][0]?"dashed ":"solid ";return/[sd]/.test(Y)&&h.setAttribute("rowlines",Y.trim()),m!==""&&(h=new W.MathNode("menclose",[h]),h.setAttribute("notation",m.trim())),t.arraystretch&&t.arraystretch<1&&(h=new W.MathNode("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},sc=function(t,r){t.envName.indexOf("ed")===-1&&Za(t);var n=[],a=t.envName.indexOf("at")>-1?"alignat":"align",i=t.envName==="split",s=Tr(t.parser,{cols:n,addJot:!0,autoTag:i?void 0:X0(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:i?2:void 0,leqno:t.parser.settings.leqno},"display"),u,l=0,o={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var h="",c=0;c<r[0].body.length;c++){var m=ge(r[0].body[c],"textord");h+=m.text}u=Number(h),l=u*2}var g=!l;s.body.forEach(function(A){for(var w=1;w<A.length;w+=2){var L=ge(A[w],"styling"),z=ge(L.body[0],"ordgroup");z.body.unshift(o)}if(g)l<A.length&&(l=A.length);else{var q=A.length/2;if(u<q)throw new X("Too many math in a row: "+("expected "+u+", but got "+q),A[0])}});for(var E=0;E<l;++E){var y="r",v=0;E%2===1?y="l":E>0&&g&&(v=1),n[E]={type:"align",align:y,pregap:v,postgap:0}}return s.colSeparationType=g?"align":"alignat",s};qt({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Xa(t[0]),n=r?[t[0]]:ge(t[0],"ordgroup").body,a=n.map(function(s){var u=$0(s),l=u.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new X("Unknown column alignment: "+l,s)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Tr(e.parser,i,Q0(e.envName))},htmlBuilder:jt,mathmlBuilder:$t});qt({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var a=e.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,"lcr".indexOf(r)===-1)throw new X("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=Tr(e.parser,n,Q0(e.envName)),s=Math.max(0,...i.body.map(u=>u.length));return i.cols=new Array(s).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:jt,mathmlBuilder:$t});qt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Tr(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:jt,mathmlBuilder:$t});qt({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Xa(t[0]),n=r?[t[0]]:ge(t[0],"ordgroup").body,a=n.map(function(s){var u=$0(s),l=u.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new X("Unknown column alignment: "+l,s)});if(a.length>1)throw new X("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5};if(i=Tr(e.parser,i,"script"),i.body.length>0&&i.body[0].length>1)throw new X("{subarray} can contain only one column");return i},htmlBuilder:jt,mathmlBuilder:$t});qt({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Tr(e.parser,t,Q0(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:jt,mathmlBuilder:$t});qt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:sc,htmlBuilder:jt,mathmlBuilder:$t});qt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&Za(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:X0(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Tr(e.parser,t,"display")},htmlBuilder:jt,mathmlBuilder:$t});qt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:sc,htmlBuilder:jt,mathmlBuilder:$t});qt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Za(e);var t={autoTag:X0(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Tr(e.parser,t,"display")},htmlBuilder:jt,mathmlBuilder:$t});qt({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Za(e),Ep(e.parser)},htmlBuilder:jt,mathmlBuilder:$t});T("\\nonumber","\\gdef\\@eqnsw{0}");T("\\notag","\\nonumber");ne({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new X(e.funcName+" valid only within array environment")}});var pu=ac;ne({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];if(a.type!=="ordgroup")throw new X("Invalid environment name",a);for(var i="",s=0;s<a.body.length;++s)i+=ge(a.body[s],"textord").text;if(n==="\\begin"){if(!pu.hasOwnProperty(i))throw new X("No such environment: "+i,a);var u=pu[i],{args:l,optArgs:o}=r.parseArguments("\\begin{"+i+"}",u),h={mode:r.mode,envName:i,parser:r},c=u.handler(h,l,o);r.expect("\\end",!1);var m=r.nextToken,g=ge(r.parseFunction(),"environment");if(g.name!==i)throw new X("Mismatch: \\begin{"+i+"} matched by \\end{"+g.name+"}",m);return c}return{type:"environment",mode:r.mode,name:i,nameGroup:a}}});var uc=(e,t)=>{var r=e.font,n=t.withFont(r);return Ae(e.body,n)},lc=(e,t)=>{var r=e.font,n=t.withFont(r);return De(e.body,n)},gu={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ne({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=Da(t[0]),i=n;return i in gu&&(i=gu[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:uc,mathmlBuilder:lc});ne({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0],a=we.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:Qa(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:a}}});ne({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:a}=e,{mode:i}=r,s=r.parseExpression(!0,a),u="math"+n.slice(1);return{type:"font",mode:i,font:u,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:uc,mathmlBuilder:lc});var oc=(e,t)=>{var r=t;return e==="display"?r=r.id>=ce.SCRIPT.id?r.text():ce.DISPLAY:e==="text"&&r.size===ce.DISPLAY.size?r=ce.TEXT:e==="script"?r=ce.SCRIPT:e==="scriptscript"&&(r=ce.SCRIPTSCRIPT),r},K0=(e,t)=>{var r=oc(e.size,t.style),n=r.fracNum(),a=r.fracDen(),i;i=t.havingStyle(n);var s=Ae(e.numer,i,t);if(e.continued){var u=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height<u?u:s.height,s.depth=s.depth<l?l:s.depth}i=t.havingStyle(a);var o=Ae(e.denom,i,t),h,c,m;e.hasBarLine?(e.barSize?(c=Fe(e.barSize,t),h=F.makeLineSpan("frac-line",t,c)):h=F.makeLineSpan("frac-line",t),c=h.height,m=h.height):(h=null,c=0,m=t.fontMetrics().defaultRuleThickness);var g,E,y;r.size===ce.DISPLAY.size||e.size==="display"?(g=t.fontMetrics().num1,c>0?E=3*m:E=7*m,y=t.fontMetrics().denom1):(c>0?(g=t.fontMetrics().num2,E=m):(g=t.fontMetrics().num3,E=3*m),y=t.fontMetrics().denom2);var v;if(h){var w=t.fontMetrics().axisHeight;g-s.depth-(w+.5*c)<E&&(g+=E-(g-s.depth-(w+.5*c))),w-.5*c-(o.height-y)<E&&(y+=E-(w-.5*c-(o.height-y)));var L=-(w-.5*c);v=F.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:y},{type:"elem",elem:h,shift:L},{type:"elem",elem:s,shift:-g}]},t)}else{var A=g-s.depth-(o.height-y);A<E&&(g+=.5*(E-A),y+=.5*(E-A)),v=F.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:y},{type:"elem",elem:s,shift:-g}]},t)}i=t.havingStyle(r),v.height*=i.sizeMultiplier/t.sizeMultiplier,v.depth*=i.sizeMultiplier/t.sizeMultiplier;var z;r.size===ce.DISPLAY.size?z=t.fontMetrics().delim1:r.size===ce.SCRIPTSCRIPT.size?z=t.havingStyle(ce.SCRIPT).fontMetrics().delim2:z=t.fontMetrics().delim2;var q,O;return e.leftDelim==null?q=Un(t,["mopen"]):q=er.customSizedDelim(e.leftDelim,z,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?O=F.makeSpan([]):e.rightDelim==null?O=Un(t,["mclose"]):O=er.customSizedDelim(e.rightDelim,z,!0,t.havingStyle(r),e.mode,["mclose"]),F.makeSpan(["mord"].concat(i.sizingClasses(t)),[q,F.makeSpan(["mfrac"],[v]),O],t)},Z0=(e,t)=>{var r=new W.MathNode("mfrac",[De(e.numer,t),De(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=Fe(e.barSize,t);r.setAttribute("linethickness",te(n))}var a=oc(e.size,t.style);if(a.size!==t.style.size){r=new W.MathNode("mstyle",[r]);var i=a.size===ce.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",i),r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var u=new W.MathNode("mo",[new W.TextNode(e.leftDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}if(s.push(r),e.rightDelim!=null){var l=new W.MathNode("mo",[new W.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return q0(s)}return r};ne({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=t[1],s,u=null,l=null,o="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,u="(",l=")";break;case"\\\\bracefrac":s=!1,u="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,u="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":o="display";break;case"\\tfrac":case"\\tbinom":o="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:a,denom:i,hasBarLine:s,leftDelim:u,rightDelim:l,size:o,barSize:null}},htmlBuilder:K0,mathmlBuilder:Z0});ne({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:a,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ne({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,a;switch(r){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:a,token:n}}});var bu=["display","text","script","scriptscript"],Eu=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};ne({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],a=t[5],i=Da(t[0]),s=i.type==="atom"&&i.family==="open"?Eu(i.text):null,u=Da(t[1]),l=u.type==="atom"&&u.family==="close"?Eu(u.text):null,o=ge(t[2],"size"),h,c=null;o.isBlank?h=!0:(c=o.value,h=c.number>0);var m="auto",g=t[3];if(g.type==="ordgroup"){if(g.body.length>0){var E=ge(g.body[0],"textord");m=bu[Number(E.text)]}}else g=ge(g,"textord"),m=bu[Number(g.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:h,barSize:c,leftDelim:s,rightDelim:l,size:m}},htmlBuilder:K0,mathmlBuilder:Z0});ne({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:a}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:ge(t[0],"size").value,token:a}}});ne({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=om(ge(t[1],"infix").size),s=t[2],u=i.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:s,continued:!1,hasBarLine:u,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:K0,mathmlBuilder:Z0});var cc=(e,t)=>{var r=t.style,n,a;e.type==="supsub"?(n=e.sup?Ae(e.sup,t.havingStyle(r.sup()),t):Ae(e.sub,t.havingStyle(r.sub()),t),a=ge(e.base,"horizBrace")):a=ge(e,"horizBrace");var i=Ae(a.base,t.havingBaseStyle(ce.DISPLAY)),s=nr.svgSpan(a,t),u;if(a.isOver?(u=F.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:s}]},t),u.children[0].children[0].children[1].classes.push("svg-align")):(u=F.makeVList({positionType:"bottom",positionData:i.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:i}]},t),u.children[0].children[0].children[0].classes.push("svg-align")),n){var l=F.makeSpan(["mord",a.isOver?"mover":"munder"],[u],t);a.isOver?u=F.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},t):u=F.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return F.makeSpan(["mord",a.isOver?"mover":"munder"],[u],t)},Rp=(e,t)=>{var r=nr.mathMLnode(e.label);return new W.MathNode(e.isOver?"mover":"munder",[De(e.base,t),r])};ne({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:cc,mathmlBuilder:Rp});ne({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],a=ge(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:je(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Ve(e.body,t,!1);return F.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=gr(e.body,t);return r instanceof gt||(r=new gt("mrow",[r])),r.setAttribute("href",e.href),r}});ne({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=ge(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<n.length;i++){var s=n[i];s==="~"&&(s="\\textasciitilde"),a.push({type:"textord",mode:"text",text:s})}var u={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:je(u)}}});ne({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:je(t[0])}},htmlBuilder(e,t){var r=Ve(e.body,t,!1);return F.makeFragment(r)},mathmlBuilder(e,t){return new W.MathNode("mrow",ft(e.body,t))}});ne({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:a}=e,i=ge(t[0],"raw").string,s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var u,l={};switch(n){case"\\htmlClass":l.class=i,u={command:"\\htmlClass",class:i};break;case"\\htmlId":l.id=i,u={command:"\\htmlId",id:i};break;case"\\htmlStyle":l.style=i,u={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var o=i.split(","),h=0;h<o.length;h++){var c=o[h],m=c.indexOf("=");if(m<0)throw new X("\\htmlData key/value '"+c+"' missing equals sign");var g=c.slice(0,m),E=c.slice(m+1);l["data-"+g.trim()]=E}u={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(u)?{type:"html",mode:r.mode,attributes:l,body:je(s)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=Ve(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var a=F.makeSpan(n,r,t);for(var i in e.attributes)i!=="class"&&e.attributes.hasOwnProperty(i)&&a.setAttribute(i,e.attributes[i]);return a},mathmlBuilder:(e,t)=>gr(e.body,t)});ne({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:je(t[0]),mathml:je(t[1])}},htmlBuilder:(e,t)=>{var r=Ve(e.html,t,!1);return F.makeFragment(r)},mathmlBuilder:(e,t)=>gr(e.mathml,t)});var Ni=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new X("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!_o(n))throw new X("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};ne({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,a={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},u="";if(r[0])for(var l=ge(r[0],"raw").string,o=l.split(","),h=0;h<o.length;h++){var c=o[h].split("=");if(c.length===2){var m=c[1].trim();switch(c[0].trim()){case"alt":u=m;break;case"width":a=Ni(m);break;case"height":i=Ni(m);break;case"totalheight":s=Ni(m);break;default:throw new X("Invalid key: '"+c[0]+"' in \\includegraphics.")}}}var g=ge(t[0],"url").url;return u===""&&(u=g,u=u.replace(/^.*[\\/]/,""),u=u.substring(0,u.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:g})?{type:"includegraphics",mode:n.mode,alt:u,width:a,height:i,totalheight:s,src:g}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Fe(e.height,t),n=0;e.totalheight.number>0&&(n=Fe(e.totalheight,t)-r);var a=0;e.width.number>0&&(a=Fe(e.width,t));var i={height:te(r+n)};a>0&&(i.width=te(a)),n>0&&(i.verticalAlign=te(-n));var s=new Rm(e.src,e.alt,i);return s.height=r,s.depth=n,s},mathmlBuilder:(e,t)=>{var r=new W.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=Fe(e.height,t),a=0;if(e.totalheight.number>0&&(a=Fe(e.totalheight,t)-n,r.setAttribute("valign",te(-a))),r.setAttribute("height",te(n+a)),e.width.number>0){var i=Fe(e.width,t);r.setAttribute("width",te(i))}return r.setAttribute("src",e.src),r}});ne({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=ge(t[0],"size");if(r.settings.strict){var i=n[1]==="m",s=a.value.unit==="mu";i?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder(e,t){return F.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=Fe(e.dimension,t);return new W.SpaceNode(r)}});ne({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=F.makeSpan([],[Ae(e.body,t)]),r=F.makeSpan(["inner"],[r],t)):r=F.makeSpan(["inner"],[Ae(e.body,t)]);var n=F.makeSpan(["fix"],[]),a=F.makeSpan([e.alignment],[r,n],t),i=F.makeSpan(["strut"]);return i.style.height=te(a.height+a.depth),a.depth&&(i.style.verticalAlign=te(-a.depth)),a.children.unshift(i),a=F.makeSpan(["thinbox"],[a],t),F.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var r=new W.MathNode("mpadded",[De(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});ne({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,a=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",s=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",body:s}}});ne({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new X("Mismatched "+e.funcName)}});var Tu=(e,t)=>{switch(t.style.size){case ce.DISPLAY.size:return e.display;case ce.TEXT.size:return e.text;case ce.SCRIPT.size:return e.script;case ce.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ne({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:je(t[0]),text:je(t[1]),script:je(t[2]),scriptscript:je(t[3])}},htmlBuilder:(e,t)=>{var r=Tu(e,t),n=Ve(r,t,!1);return F.makeFragment(n)},mathmlBuilder:(e,t)=>{var r=Tu(e,t);return gr(r,t)}});var hc=(e,t,r,n,a,i,s)=>{e=F.makeSpan([],[e]);var u=r&&we.isCharacterBox(r),l,o;if(t){var h=Ae(t,n.havingStyle(a.sup()),n);o={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-h.depth)}}if(r){var c=Ae(r,n.havingStyle(a.sub()),n);l={elem:c,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-c.height)}}var m;if(o&&l){var g=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;m=F.makeVList({positionType:"bottom",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:te(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:o.kern},{type:"elem",elem:o.elem,marginLeft:te(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(l){var E=e.height-s;m=F.makeVList({positionType:"top",positionData:E,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:te(-i)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},n)}else if(o){var y=e.depth+s;m=F.makeVList({positionType:"bottom",positionData:y,children:[{type:"elem",elem:e},{type:"kern",size:o.kern},{type:"elem",elem:o.elem,marginLeft:te(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return e;var v=[m];if(l&&i!==0&&!u){var A=F.makeSpan(["mspace"],[],n);A.style.marginRight=te(i),v.unshift(A)}return F.makeSpan(["mop","op-limits"],v,n)},dc=["\\smallint"],nn=(e,t)=>{var r,n,a=!1,i;e.type==="supsub"?(r=e.sup,n=e.sub,i=ge(e.base,"op"),a=!0):i=ge(e,"op");var s=t.style,u=!1;s.size===ce.DISPLAY.size&&i.symbol&&!dc.includes(i.name)&&(u=!0);var l;if(i.symbol){var o=u?"Size2-Regular":"Size1-Regular",h="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(h=i.name.slice(1),i.name=h==="oiint"?"\\iint":"\\iiint"),l=F.makeSymbol(i.name,o,"math",t,["mop","op-symbol",u?"large-op":"small-op"]),h.length>0){var c=l.italic,m=F.staticSvg(h+"Size"+(u?"2":"1"),t);l=F.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:m,shift:u?.08:0}]},t),i.name="\\"+h,l.classes.unshift("mop"),l.italic=c}}else if(i.body){var g=Ve(i.body,t,!0);g.length===1&&g[0]instanceof At?(l=g[0],l.classes[0]="mop"):l=F.makeSpan(["mop"],g,t)}else{for(var E=[],y=1;y<i.name.length;y++)E.push(F.mathsym(i.name[y],i.mode,t));l=F.makeSpan(["mop"],E,t)}var v=0,A=0;return(l instanceof At||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift&&(v=(l.height-l.depth)/2-t.fontMetrics().axisHeight,A=l.italic),a?hc(l,r,n,t,s,A,v):(v&&(l.style.position="relative",l.style.top=te(v)),l)},Kn=(e,t)=>{var r;if(e.symbol)r=new gt("mo",[wt(e.name,e.mode)]),dc.includes(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new gt("mo",ft(e.body,t));else{r=new gt("mi",[new Ut(e.name.slice(1))]);var n=new gt("mo",[wt("⁡","text")]);e.parentIsSupSub?r=new gt("mrow",[r,n]):r=Ho([r,n])}return r},Op={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ne({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=n;return a.length===1&&(a=Op[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:nn,mathmlBuilder:Kn});ne({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:je(n)}},htmlBuilder:nn,mathmlBuilder:Kn});var Mp={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ne({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:nn,mathmlBuilder:Kn});ne({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:nn,mathmlBuilder:Kn});ne({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=Mp[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:nn,mathmlBuilder:Kn});var fc=(e,t)=>{var r,n,a=!1,i;e.type==="supsub"?(r=e.sup,n=e.sub,i=ge(e.base,"operatorname"),a=!0):i=ge(e,"operatorname");var s;if(i.body.length>0){for(var u=i.body.map(c=>{var m=c.text;return typeof m=="string"?{type:"textord",mode:c.mode,text:m}:c}),l=Ve(u,t.withFont("mathrm"),!0),o=0;o<l.length;o++){var h=l[o];h instanceof At&&(h.text=h.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=F.makeSpan(["mop"],l,t)}else s=F.makeSpan(["mop"],[],t);return a?hc(s,r,n,t,t.style,0,0):s},Pp=(e,t)=>{for(var r=ft(e.body,t.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(!(i instanceof W.SpaceNode))if(i instanceof W.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var s=i.children[0];i.children.length===1&&s instanceof W.TextNode?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var u=r.map(h=>h.toText()).join("");r=[new W.TextNode(u)]}var l=new W.MathNode("mi",r);l.setAttribute("mathvariant","normal");var o=new W.MathNode("mo",[wt("⁡","text")]);return e.parentIsSupSub?new W.MathNode("mrow",[l,o]):W.newDocumentFragment([l,o])};ne({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"operatorname",mode:r.mode,body:je(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:fc,mathmlBuilder:Pp});T("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Rr({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?F.makeFragment(Ve(e.body,t,!1)):F.makeSpan(["mord"],Ve(e.body,t,!0),t)},mathmlBuilder(e,t){return gr(e.body,t,!0)}});ne({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=Ae(e.body,t.havingCrampedStyle()),n=F.makeLineSpan("overline-line",t),a=t.fontMetrics().defaultRuleThickness,i=F.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]},t);return F.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new W.MathNode("mo",[new W.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new W.MathNode("mover",[De(e.body,t),r]);return n.setAttribute("accent","true"),n}});ne({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:je(n)}},htmlBuilder:(e,t)=>{var r=Ve(e.body,t.withPhantom(),!1);return F.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=ft(e.body,t);return new W.MathNode("mphantom",r)}});ne({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=F.makeSpan([],[Ae(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n<r.children.length;n++)r.children[n].height=0,r.children[n].depth=0;return r=F.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),F.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=ft(je(e.body),t),n=new W.MathNode("mphantom",r),a=new W.MathNode("mpadded",[n]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}});ne({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=F.makeSpan(["inner"],[Ae(e.body,t.withPhantom())]),n=F.makeSpan(["fix"],[]);return F.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=ft(je(e.body),t),n=new W.MathNode("mphantom",r),a=new W.MathNode("mpadded",[n]);return a.setAttribute("width","0px"),a}});ne({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=ge(t[0],"size").value,a=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(e,t){var r=Ae(e.body,t),n=Fe(e.dy,t);return F.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new W.MathNode("mpadded",[De(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});ne({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ne({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,a=r[0],i=ge(t[0],"size"),s=ge(t[1],"size");return{type:"rule",mode:n.mode,shift:a&&ge(a,"size").value,width:i.value,height:s.value}},htmlBuilder(e,t){var r=F.makeSpan(["mord","rule"],[],t),n=Fe(e.width,t),a=Fe(e.height,t),i=e.shift?Fe(e.shift,t):0;return r.style.borderRightWidth=te(n),r.style.borderTopWidth=te(a),r.style.bottom=te(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Fe(e.width,t),n=Fe(e.height,t),a=e.shift?Fe(e.shift,t):0,i=t.color&&t.getColor()||"black",s=new W.MathNode("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",te(r)),s.setAttribute("height",te(n));var u=new W.MathNode("mpadded",[s]);return a>=0?u.setAttribute("height",te(a)):(u.setAttribute("height",te(a)),u.setAttribute("depth",te(-a))),u.setAttribute("voffset",te(a)),u}});function mc(e,t,r){for(var n=Ve(e,t,!1),a=t.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var s=n[i].classes.indexOf("sizing");s<0?Array.prototype.push.apply(n[i].classes,t.sizingClasses(r)):n[i].classes[s+1]==="reset-size"+t.size&&(n[i].classes[s+1]="reset-size"+r.size),n[i].height*=a,n[i].depth*=a}return F.makeFragment(n)}var xu=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Bp=(e,t)=>{var r=t.havingSize(e.size);return mc(e.body,r,t)};ne({type:"sizing",names:xu,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:xu.indexOf(n)+1,body:i}},htmlBuilder:Bp,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=ft(e.body,r),a=new W.MathNode("mstyle",n);return a.setAttribute("mathsize",te(r.sizeMultiplier)),a}});ne({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,a=!1,i=!1,s=r[0]&&ge(r[0],"ordgroup");if(s)for(var u="",l=0;l<s.body.length;++l){var o=s.body[l];if(u=o.text,u==="t")a=!0;else if(u==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var h=t[0];return{type:"smash",mode:n.mode,body:h,smashHeight:a,smashDepth:i}},htmlBuilder:(e,t)=>{var r=F.makeSpan([],[Ae(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var a=0;a<r.children.length;a++)r.children[a].depth=0;var i=F.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return F.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new W.MathNode("mpadded",[De(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});ne({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,a=r[0],i=t[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(e,t){var r=Ae(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=F.wrapFragment(r,t);var n=t.fontMetrics(),a=n.defaultRuleThickness,i=a;t.style.id<ce.TEXT.id&&(i=t.fontMetrics().xHeight);var s=a+i/4,u=r.height+r.depth+s+a,{span:l,ruleWidth:o,advanceWidth:h}=er.sqrtImage(u,t),c=l.height-o;c>r.height+r.depth+s&&(s=(s+c-r.height-r.depth)/2);var m=l.height-r.height-s-o;r.style.paddingLeft=te(h);var g=F.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+m)},{type:"elem",elem:l},{type:"kern",size:o}]},t);if(e.index){var E=t.havingStyle(ce.SCRIPTSCRIPT),y=Ae(e.index,E,t),v=.6*(g.height-g.depth),A=F.makeVList({positionType:"shift",positionData:-v,children:[{type:"elem",elem:y}]},t),w=F.makeSpan(["root"],[A]);return F.makeSpan(["mord","sqrt"],[w,g],t)}else return F.makeSpan(["mord","sqrt"],[g],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new W.MathNode("mroot",[De(r,t),De(n,t)]):new W.MathNode("msqrt",[De(r,t)])}});var yu={display:ce.DISPLAY,text:ce.TEXT,script:ce.SCRIPT,scriptscript:ce.SCRIPTSCRIPT};ne({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:s,body:i}},htmlBuilder(e,t){var r=yu[e.style],n=t.havingStyle(r).withFont("");return mc(e.body,n,t)},mathmlBuilder(e,t){var r=yu[e.style],n=t.havingStyle(r),a=ft(e.body,n),i=new W.MathNode("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},u=s[e.style];return i.setAttribute("scriptlevel",u[0]),i.setAttribute("displaystyle",u[1]),i}});var Fp=function(t,r){var n=t.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===ce.DISPLAY.size||n.alwaysHandleSupSub);return a?nn:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===ce.DISPLAY.size||n.limits);return i?fc:null}else{if(n.type==="accent")return we.isCharacterBox(n.base)?Y0:null;if(n.type==="horizBrace"){var s=!t.sub;return s===n.isOver?cc:null}else return null}else return null};Rr({type:"supsub",htmlBuilder(e,t){var r=Fp(e,t);if(r)return r(e,t);var{base:n,sup:a,sub:i}=e,s=Ae(n,t),u,l,o=t.fontMetrics(),h=0,c=0,m=n&&we.isCharacterBox(n);if(a){var g=t.havingStyle(t.style.sup());u=Ae(a,g,t),m||(h=s.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(i){var E=t.havingStyle(t.style.sub());l=Ae(i,E,t),m||(c=s.depth+E.fontMetrics().subDrop*E.sizeMultiplier/t.sizeMultiplier)}var y;t.style===ce.DISPLAY?y=o.sup1:t.style.cramped?y=o.sup3:y=o.sup2;var v=t.sizeMultiplier,A=te(.5/o.ptPerEm/v),w=null;if(l){var L=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof At||L)&&(w=te(-s.italic))}var z;if(u&&l){h=Math.max(h,y,u.depth+.25*o.xHeight),c=Math.max(c,o.sub2);var q=o.defaultRuleThickness,O=4*q;if(h-u.depth-(l.height-c)<O){c=O-(h-u.depth)+l.height;var Y=.8*o.xHeight-(h-u.depth);Y>0&&(h+=Y,c-=Y)}var J=[{type:"elem",elem:l,shift:c,marginRight:A,marginLeft:w},{type:"elem",elem:u,shift:-h,marginRight:A}];z=F.makeVList({positionType:"individualShift",children:J},t)}else if(l){c=Math.max(c,o.sub1,l.height-.8*o.xHeight);var Q=[{type:"elem",elem:l,marginLeft:w,marginRight:A}];z=F.makeVList({positionType:"shift",positionData:c,children:Q},t)}else if(u)h=Math.max(h,y,u.depth+.25*o.xHeight),z=F.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:u,marginRight:A}]},t);else throw new Error("supsub must have either sup or sub.");var P=l0(s,"right")||"mord";return F.makeSpan([P],[s,F.makeSpan(["msupsub"],[z])],t)},mathmlBuilder(e,t){var r=!1,n,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var i=[De(e.base,t)];e.sub&&i.push(De(e.sub,t)),e.sup&&i.push(De(e.sup,t));var s;if(r)s=n?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;o&&o.type==="op"&&o.limits&&t.style===ce.DISPLAY||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(t.style===ce.DISPLAY||o.limits)?s="munderover":s="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===ce.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===ce.DISPLAY)?s="munder":s="msub"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===ce.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===ce.DISPLAY)?s="mover":s="msup"}return new W.MathNode(s,i)}});Rr({type:"atom",htmlBuilder(e,t){return F.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new W.MathNode("mo",[wt(e.text,e.mode)]);if(e.family==="bin"){var n=j0(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var pc={mi:"italic",mn:"normal",mtext:"normal"};Rr({type:"mathord",htmlBuilder(e,t){return F.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new W.MathNode("mi",[wt(e.text,e.mode,t)]),n=j0(e,t)||"italic";return n!==pc[r.type]&&r.setAttribute("mathvariant",n),r}});Rr({type:"textord",htmlBuilder(e,t){return F.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=wt(e.text,e.mode,t),n=j0(e,t)||"normal",a;return e.mode==="text"?a=new W.MathNode("mtext",[r]):/[0-9]/.test(e.text)?a=new W.MathNode("mn",[r]):e.text==="\\prime"?a=new W.MathNode("mo",[r]):a=new W.MathNode("mi",[r]),n!==pc[a.type]&&a.setAttribute("mathvariant",n),a}});var _i={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Ii={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Rr({type:"spacing",htmlBuilder(e,t){if(Ii.hasOwnProperty(e.text)){var r=Ii[e.text].className||"";if(e.mode==="text"){var n=F.makeOrd(e,t,"textord");return n.classes.push(r),n}else return F.makeSpan(["mspace",r],[F.mathsym(e.text,e.mode,t)],t)}else{if(_i.hasOwnProperty(e.text))return F.makeSpan(["mspace",_i[e.text]],[],t);throw new X('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(Ii.hasOwnProperty(e.text))r=new W.MathNode("mtext",[new W.TextNode(" ")]);else{if(_i.hasOwnProperty(e.text))return new W.MathNode("mspace");throw new X('Unknown type of space "'+e.text+'"')}return r}});var ku=()=>{var e=new W.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Rr({type:"tag",mathmlBuilder(e,t){var r=new W.MathNode("mtable",[new W.MathNode("mtr",[ku(),new W.MathNode("mtd",[gr(e.body,t)]),ku(),new W.MathNode("mtd",[gr(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var vu={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Au={"\\textbf":"textbf","\\textmd":"textmd"},zp={"\\textit":"textit","\\textup":"textup"},wu=(e,t)=>{var r=e.font;if(r){if(vu[r])return t.withTextFontFamily(vu[r]);if(Au[r])return t.withTextFontWeight(Au[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(zp[r])};ne({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"text",mode:r.mode,body:je(a),font:n}},htmlBuilder(e,t){var r=wu(e,t),n=Ve(e.body,r,!0);return F.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){var r=wu(e,t);return gr(e.body,r)}});ne({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Ae(e.body,t),n=F.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,i=F.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]},t);return F.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new W.MathNode("mo",[new W.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new W.MathNode("munder",[De(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});ne({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Ae(e.body,t),n=t.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return F.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new W.MathNode("mpadded",[De(e.body,t)],["vcenter"])}});ne({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new X("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Su(e),n=[],a=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var s=r[i];s==="~"&&(s="\\textasciitilde"),n.push(F.makeSymbol(s,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return F.makeSpan(["mord","text"].concat(a.sizingClasses(t)),F.tryCombineChars(n),a)},mathmlBuilder(e,t){var r=new W.TextNode(Su(e)),n=new W.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Su=e=>e.body.replace(/ /g,e.star?"␣":" "),dr=Fo,gc=`[ \r
260
+ ]`,Hp="\\\\[a-zA-Z@]+",Up="\\\\[^\uD800-\uDFFF]",qp="("+Hp+")"+gc+"*",jp=`\\\\(
261
+ |[ \r ]+
262
+ ?)[ \r ]*`,d0="[̀-ͯ]",$p=new RegExp(d0+"+$"),Yp="("+gc+"+)|"+(jp+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(d0+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(d0+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+qp)+("|"+Up+")");class Cu{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(Yp,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new bt("EOF",new ht(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new X("Unexpected character: '"+t[r]+"'",new bt(t[r],new ht(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=t.indexOf(`
263
+ `,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new bt(a,new ht(this,r,this.tokenRegex.lastIndex))}}class Vp{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new X("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var Gp=ic;T("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});T("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});T("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});T("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});T("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});T("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");T("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Nu={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};T("\\char",function(e){var t=e.popToken(),r,n="";if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new X("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=Nu[t.text],n==null||n>=r)throw new X("Invalid base-"+r+" digit "+t.text);for(var a;(a=Nu[e.future().text])!=null&&a<r;)n*=r,n+=a,e.popToken()}return"\\@char{"+n+"}"});var J0=(e,t,r,n)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new X("\\newcommand's first argument must be a macro name");var i=a[0].text,s=e.isDefined(i);if(s&&!t)throw new X("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!s&&!r)throw new X("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var u=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var l="",o=e.expandNextToken();o.text!=="]"&&o.text!=="EOF";)l+=o.text,o=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new X("Invalid number of arguments: "+l);u=parseInt(l),a=e.consumeArg().tokens}return s&&n||e.macros.set(i,{tokens:a,numArgs:u}),""};T("\\newcommand",e=>J0(e,!1,!0,!1));T("\\renewcommand",e=>J0(e,!0,!1,!1));T("\\providecommand",e=>J0(e,!0,!0,!0));T("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});T("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});T("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),dr[r],Re.math[r],Re.text[r]),""});T("\\bgroup","{");T("\\egroup","}");T("~","\\nobreakspace");T("\\lq","`");T("\\rq","'");T("\\aa","\\r a");T("\\AA","\\r A");T("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");T("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");T("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");T("ℬ","\\mathscr{B}");T("ℰ","\\mathscr{E}");T("ℱ","\\mathscr{F}");T("ℋ","\\mathscr{H}");T("ℐ","\\mathscr{I}");T("ℒ","\\mathscr{L}");T("ℳ","\\mathscr{M}");T("ℛ","\\mathscr{R}");T("ℭ","\\mathfrak{C}");T("ℌ","\\mathfrak{H}");T("ℨ","\\mathfrak{Z}");T("\\Bbbk","\\Bbb{k}");T("·","\\cdotp");T("\\llap","\\mathllap{\\textrm{#1}}");T("\\rlap","\\mathrlap{\\textrm{#1}}");T("\\clap","\\mathclap{\\textrm{#1}}");T("\\mathstrut","\\vphantom{(}");T("\\underbar","\\underline{\\text{#1}}");T("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');T("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");T("\\ne","\\neq");T("≠","\\neq");T("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");T("∉","\\notin");T("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");T("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");T("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");T("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");T("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");T("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");T("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");T("⟂","\\perp");T("‼","\\mathclose{!\\mkern-0.8mu!}");T("∌","\\notni");T("⌜","\\ulcorner");T("⌝","\\urcorner");T("⌞","\\llcorner");T("⌟","\\lrcorner");T("©","\\copyright");T("®","\\textregistered");T("️","\\textregistered");T("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');T("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');T("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');T("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');T("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");T("⋮","\\vdots");T("\\varGamma","\\mathit{\\Gamma}");T("\\varDelta","\\mathit{\\Delta}");T("\\varTheta","\\mathit{\\Theta}");T("\\varLambda","\\mathit{\\Lambda}");T("\\varXi","\\mathit{\\Xi}");T("\\varPi","\\mathit{\\Pi}");T("\\varSigma","\\mathit{\\Sigma}");T("\\varUpsilon","\\mathit{\\Upsilon}");T("\\varPhi","\\mathit{\\Phi}");T("\\varPsi","\\mathit{\\Psi}");T("\\varOmega","\\mathit{\\Omega}");T("\\substack","\\begin{subarray}{c}#1\\end{subarray}");T("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");T("\\boxed","\\fbox{$\\displaystyle{#1}$}");T("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");T("\\implies","\\DOTSB\\;\\Longrightarrow\\;");T("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");T("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");T("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var _u={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};T("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in _u?t=_u[r]:(r.slice(0,4)==="\\not"||r in Re.math&&["bin","rel"].includes(Re.math[r].group))&&(t="\\dotsb"),t});var es={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};T("\\dotso",function(e){var t=e.future().text;return t in es?"\\ldots\\,":"\\ldots"});T("\\dotsc",function(e){var t=e.future().text;return t in es&&t!==","?"\\ldots\\,":"\\ldots"});T("\\cdots",function(e){var t=e.future().text;return t in es?"\\@cdots\\,":"\\@cdots"});T("\\dotsb","\\cdots");T("\\dotsm","\\cdots");T("\\dotsi","\\!\\cdots");T("\\dotsx","\\ldots\\,");T("\\DOTSI","\\relax");T("\\DOTSB","\\relax");T("\\DOTSX","\\relax");T("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");T("\\,","\\tmspace+{3mu}{.1667em}");T("\\thinspace","\\,");T("\\>","\\mskip{4mu}");T("\\:","\\tmspace+{4mu}{.2222em}");T("\\medspace","\\:");T("\\;","\\tmspace+{5mu}{.2777em}");T("\\thickspace","\\;");T("\\!","\\tmspace-{3mu}{.1667em}");T("\\negthinspace","\\!");T("\\negmedspace","\\tmspace-{4mu}{.2222em}");T("\\negthickspace","\\tmspace-{5mu}{.277em}");T("\\enspace","\\kern.5em ");T("\\enskip","\\hskip.5em\\relax");T("\\quad","\\hskip1em\\relax");T("\\qquad","\\hskip2em\\relax");T("\\tag","\\@ifstar\\tag@literal\\tag@paren");T("\\tag@paren","\\tag@literal{({#1})}");T("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new X("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});T("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");T("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");T("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");T("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");T("\\newline","\\\\\\relax");T("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var bc=te(Ht["Main-Regular"][84][1]-.7*Ht["Main-Regular"][65][1]);T("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+bc+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");T("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+bc+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");T("\\hspace","\\@ifstar\\@hspacer\\@hspace");T("\\@hspace","\\hskip #1\\relax");T("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");T("\\ordinarycolon",":");T("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");T("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');T("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');T("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');T("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');T("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');T("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');T("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');T("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');T("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');T("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');T("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');T("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');T("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');T("∷","\\dblcolon");T("∹","\\eqcolon");T("≔","\\coloneqq");T("≕","\\eqqcolon");T("⩴","\\Coloneqq");T("\\ratio","\\vcentcolon");T("\\coloncolon","\\dblcolon");T("\\colonequals","\\coloneqq");T("\\coloncolonequals","\\Coloneqq");T("\\equalscolon","\\eqqcolon");T("\\equalscoloncolon","\\Eqqcolon");T("\\colonminus","\\coloneq");T("\\coloncolonminus","\\Coloneq");T("\\minuscolon","\\eqcolon");T("\\minuscoloncolon","\\Eqcolon");T("\\coloncolonapprox","\\Colonapprox");T("\\coloncolonsim","\\Colonsim");T("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");T("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");T("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");T("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");T("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");T("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");T("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");T("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");T("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");T("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");T("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");T("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");T("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");T("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");T("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");T("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");T("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");T("\\nleqq","\\html@mathml{\\@nleqq}{≰}");T("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");T("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");T("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");T("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");T("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");T("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");T("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");T("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");T("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");T("\\imath","\\html@mathml{\\@imath}{ı}");T("\\jmath","\\html@mathml{\\@jmath}{ȷ}");T("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");T("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");T("⟦","\\llbracket");T("⟧","\\rrbracket");T("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");T("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");T("⦃","\\lBrace");T("⦄","\\rBrace");T("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");T("⦵","\\minuso");T("\\darr","\\downarrow");T("\\dArr","\\Downarrow");T("\\Darr","\\Downarrow");T("\\lang","\\langle");T("\\rang","\\rangle");T("\\uarr","\\uparrow");T("\\uArr","\\Uparrow");T("\\Uarr","\\Uparrow");T("\\N","\\mathbb{N}");T("\\R","\\mathbb{R}");T("\\Z","\\mathbb{Z}");T("\\alef","\\aleph");T("\\alefsym","\\aleph");T("\\Alpha","\\mathrm{A}");T("\\Beta","\\mathrm{B}");T("\\bull","\\bullet");T("\\Chi","\\mathrm{X}");T("\\clubs","\\clubsuit");T("\\cnums","\\mathbb{C}");T("\\Complex","\\mathbb{C}");T("\\Dagger","\\ddagger");T("\\diamonds","\\diamondsuit");T("\\empty","\\emptyset");T("\\Epsilon","\\mathrm{E}");T("\\Eta","\\mathrm{H}");T("\\exist","\\exists");T("\\harr","\\leftrightarrow");T("\\hArr","\\Leftrightarrow");T("\\Harr","\\Leftrightarrow");T("\\hearts","\\heartsuit");T("\\image","\\Im");T("\\infin","\\infty");T("\\Iota","\\mathrm{I}");T("\\isin","\\in");T("\\Kappa","\\mathrm{K}");T("\\larr","\\leftarrow");T("\\lArr","\\Leftarrow");T("\\Larr","\\Leftarrow");T("\\lrarr","\\leftrightarrow");T("\\lrArr","\\Leftrightarrow");T("\\Lrarr","\\Leftrightarrow");T("\\Mu","\\mathrm{M}");T("\\natnums","\\mathbb{N}");T("\\Nu","\\mathrm{N}");T("\\Omicron","\\mathrm{O}");T("\\plusmn","\\pm");T("\\rarr","\\rightarrow");T("\\rArr","\\Rightarrow");T("\\Rarr","\\Rightarrow");T("\\real","\\Re");T("\\reals","\\mathbb{R}");T("\\Reals","\\mathbb{R}");T("\\Rho","\\mathrm{P}");T("\\sdot","\\cdot");T("\\sect","\\S");T("\\spades","\\spadesuit");T("\\sub","\\subset");T("\\sube","\\subseteq");T("\\supe","\\supseteq");T("\\Tau","\\mathrm{T}");T("\\thetasym","\\vartheta");T("\\weierp","\\wp");T("\\Zeta","\\mathrm{Z}");T("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");T("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");T("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");T("\\bra","\\mathinner{\\langle{#1}|}");T("\\ket","\\mathinner{|{#1}\\rangle}");T("\\braket","\\mathinner{\\langle{#1}\\rangle}");T("\\Bra","\\left\\langle#1\\right|");T("\\Ket","\\left|#1\\right\\rangle");var Ec=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,a=t.consumeArg().tokens,i=t.consumeArg().tokens,s=t.macros.get("|"),u=t.macros.get("\\|");t.macros.beginGroup();var l=c=>m=>{e&&(m.macros.set("|",s),a.length&&m.macros.set("\\|",u));var g=c;if(!c&&a.length){var E=m.future();E.text==="|"&&(m.popToken(),g=!0)}return{tokens:g?a:n,numArgs:0}};t.macros.set("|",l(!1)),a.length&&t.macros.set("\\|",l(!0));var o=t.consumeArg().tokens,h=t.expandTokens([...i,...o,...r]);return t.macros.endGroup(),{tokens:h.reverse(),numArgs:0}};T("\\bra@ket",Ec(!1));T("\\bra@set",Ec(!0));T("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");T("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");T("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");T("\\angln","{\\angl n}");T("\\blue","\\textcolor{##6495ed}{#1}");T("\\orange","\\textcolor{##ffa500}{#1}");T("\\pink","\\textcolor{##ff00af}{#1}");T("\\red","\\textcolor{##df0030}{#1}");T("\\green","\\textcolor{##28ae7b}{#1}");T("\\gray","\\textcolor{gray}{#1}");T("\\purple","\\textcolor{##9d38bd}{#1}");T("\\blueA","\\textcolor{##ccfaff}{#1}");T("\\blueB","\\textcolor{##80f6ff}{#1}");T("\\blueC","\\textcolor{##63d9ea}{#1}");T("\\blueD","\\textcolor{##11accd}{#1}");T("\\blueE","\\textcolor{##0c7f99}{#1}");T("\\tealA","\\textcolor{##94fff5}{#1}");T("\\tealB","\\textcolor{##26edd5}{#1}");T("\\tealC","\\textcolor{##01d1c1}{#1}");T("\\tealD","\\textcolor{##01a995}{#1}");T("\\tealE","\\textcolor{##208170}{#1}");T("\\greenA","\\textcolor{##b6ffb0}{#1}");T("\\greenB","\\textcolor{##8af281}{#1}");T("\\greenC","\\textcolor{##74cf70}{#1}");T("\\greenD","\\textcolor{##1fab54}{#1}");T("\\greenE","\\textcolor{##0d923f}{#1}");T("\\goldA","\\textcolor{##ffd0a9}{#1}");T("\\goldB","\\textcolor{##ffbb71}{#1}");T("\\goldC","\\textcolor{##ff9c39}{#1}");T("\\goldD","\\textcolor{##e07d10}{#1}");T("\\goldE","\\textcolor{##a75a05}{#1}");T("\\redA","\\textcolor{##fca9a9}{#1}");T("\\redB","\\textcolor{##ff8482}{#1}");T("\\redC","\\textcolor{##f9685d}{#1}");T("\\redD","\\textcolor{##e84d39}{#1}");T("\\redE","\\textcolor{##bc2612}{#1}");T("\\maroonA","\\textcolor{##ffbde0}{#1}");T("\\maroonB","\\textcolor{##ff92c6}{#1}");T("\\maroonC","\\textcolor{##ed5fa6}{#1}");T("\\maroonD","\\textcolor{##ca337c}{#1}");T("\\maroonE","\\textcolor{##9e034e}{#1}");T("\\purpleA","\\textcolor{##ddd7ff}{#1}");T("\\purpleB","\\textcolor{##c6b9fc}{#1}");T("\\purpleC","\\textcolor{##aa87ff}{#1}");T("\\purpleD","\\textcolor{##7854ab}{#1}");T("\\purpleE","\\textcolor{##543b78}{#1}");T("\\mintA","\\textcolor{##f5f9e8}{#1}");T("\\mintB","\\textcolor{##edf2df}{#1}");T("\\mintC","\\textcolor{##e0e5cc}{#1}");T("\\grayA","\\textcolor{##f6f7f7}{#1}");T("\\grayB","\\textcolor{##f0f1f2}{#1}");T("\\grayC","\\textcolor{##e3e5e6}{#1}");T("\\grayD","\\textcolor{##d6d8da}{#1}");T("\\grayE","\\textcolor{##babec2}{#1}");T("\\grayF","\\textcolor{##888d93}{#1}");T("\\grayG","\\textcolor{##626569}{#1}");T("\\grayH","\\textcolor{##3b3e40}{#1}");T("\\grayI","\\textcolor{##21242c}{#1}");T("\\kaBlue","\\textcolor{##314453}{#1}");T("\\kaGreen","\\textcolor{##71B307}{#1}");var Tc={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Wp{constructor(t,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new Vp(Gp,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new Cu(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:a,end:n}=this.consumeArg(["]"])}else({tokens:a,start:r,end:n}=this.consumeArg());return this.pushToken(new bt("EOF",n.loc)),this.pushTokens(a),new bt("",ht.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var a=this.future(),i,s=0,u=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++s;else if(i.text==="}"){if(--s,s===-1)throw new X("Extra }",i)}else if(i.text==="EOF")throw new X("Unexpected end of input in a macro argument, expected '"+(t&&n?t[u]:"}")+"'",i);if(t&&n)if((s===0||s===1&&t[u]==="{")&&i.text===t[u]){if(++u,u===t.length){r.splice(-u,u);break}}else u=0}while(s!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:i}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new X("The length of delimiters doesn't match the number of args!");for(var n=r[0],a=0;a<n.length;a++){var i=this.popToken();if(n[a]!==i.text)throw new X("Use of the macro doesn't match its definition",i)}}for(var s=[],u=0;u<t;u++)s.push(this.consumeArg(r&&r[u+1]).tokens);return s}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new X("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,a=r.noexpand?null:this._getExpansion(n);if(a==null||t&&a.unexpandable){if(t&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new X("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var u=i.length-1;u>=0;--u){var l=i[u];if(l.text==="#"){if(u===0)throw new X("Incomplete placeholder at end of macro body",l);if(l=i[--u],l.text==="#")i.splice(u+1,1);else if(/^[1-9]$/.test(l.text))i.splice(u,2,...s[+l.text-1]);else throw new X("Not a valid argument number",l)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new bt(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.indexOf("#")!==-1)for(var s=a.replace(/##/g,"");s.indexOf("#"+(i+1))!==-1;)++i;for(var u=new Cu(a,this.settings),l=[],o=u.lex();o.text!=="EOF";)l.push(o),o=u.lex();l.reverse();var h={tokens:l,numArgs:i};return h}return a}isDefined(t){return this.macros.has(t)||dr.hasOwnProperty(t)||Re.math.hasOwnProperty(t)||Re.text.hasOwnProperty(t)||Tc.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:dr.hasOwnProperty(t)&&!dr[t].primitive}}var Iu=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,da=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Di={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Du={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let xc=class yc{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Wp(t,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new X("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new bt("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(yc.endOfExpression.indexOf(a.text)!==-1||r&&a.text===r||t&&dr[a.text]&&dr[a.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,a=0;a<t.length;a++)if(t[a].type==="infix"){if(r!==-1)throw new X("only one infix operator per group",t[a].token);r=a,n=t[a].replaceWith}if(r!==-1&&n){var i,s,u=t.slice(0,r),l=t.slice(r+1);u.length===1&&u[0].type==="ordgroup"?i=u[0]:i={type:"ordgroup",mode:this.mode,body:u},l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l};var o;return n==="\\\\abovefrac"?o=this.callFunction(n,[i,t[r],s],[]):o=this.callFunction(n,[i,s],[]),[o]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var a;do{var i;a=this.parseGroup(t)}while(((i=a)==null?void 0:i.type)==="internal");if(!a)throw new X("Expected group after '"+n+"'",r);return a}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var a={type:"text",mode:this.mode,body:r},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return i}parseAtom(t){var r=this.parseGroup("atom",t);if(r?.type==="internal"||this.mode==="text")return r;for(var n,a;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(r&&r.type==="op"){var s=i.text==="\\limits";r.limits=s,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=i.text==="\\limits");else throw new X("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(n)throw new X("Double superscript",i);n=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(a)throw new X("Double subscript",i);a=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(n)throw new X("Double superscript",i);var u={type:"textord",mode:this.mode,text:"\\prime"},l=[u];for(this.consume();this.fetch().text==="'";)l.push(u),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:l}}else if(da[i.text]){var o=Iu.test(i.text),h=[];for(h.push(new bt(da[i.text])),this.consume();;){var c=this.fetch().text;if(!da[c]||Iu.test(c)!==o)break;h.unshift(new bt(da[c])),this.consume()}var m=this.subparse(h);o?a={type:"ordgroup",mode:"math",body:m}:n={type:"ordgroup",mode:"math",body:m}}else break}return n||a?{type:"supsub",mode:this.mode,base:r,sup:n,sub:a}:r}parseFunction(t,r){var n=this.fetch(),a=n.text,i=dr[a];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new X("Got function '"+a+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!i.allowedInText)throw new X("Can't use function '"+a+"' in text mode",n);if(this.mode==="math"&&i.allowedInMath===!1)throw new X("Can't use function '"+a+"' in math mode",n);var{args:s,optArgs:u}=this.parseArguments(a,i);return this.callFunction(a,s,u,n,t)}callFunction(t,r,n,a,i){var s={funcName:t,parser:this,token:a,breakOnTokenText:i},u=dr[t];if(u&&u.handler)return u.handler(s,r,n);throw new X("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var a=[],i=[],s=0;s<n;s++){var u=r.argTypes&&r.argTypes[s],l=s<r.numOptionalArgs;(r.primitive&&u==null||r.type==="sqrt"&&s===1&&i[0]==null)&&(u="primitive");var o=this.parseGroupOfType("argument to '"+t+"'",u,l);if(l)i.push(o);else if(o!=null)a.push(o);else throw new X("Null argument, please report this as a bug")}return{args:a,optArgs:i}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var a=this.parseArgumentGroup(n,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text"}:null}case"raw":{var i=this.parseStringGroup("raw",n);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(n)throw new X("A primitive argument cannot be optional");var s=this.parseGroup(t);if(s==null)throw new X("Expected group as "+t,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new X("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var a="",i;(i=this.fetch()).text!=="EOF";)a+=i.text,this.consume();return this.consume(),n.text=a,n}parseRegexGroup(t,r){for(var n=this.fetch(),a=n,i="",s;(s=this.fetch()).text!=="EOF"&&t.test(i+s.text);)a=s,i+=a.text,this.consume();if(i==="")throw new X("Invalid "+r+": '"+n.text+"'",n);return n.range(a,i)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new X("Invalid color: '"+r.text+"'",r);var a=n[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!a)throw new X("Invalid size: '"+r.text+"'",r);var i={number:+(a[1]+a[2]),unit:a[3]};if(!_o(i))throw new X("Invalid unit: '"+i.unit+"'",r);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var a=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return r&&this.switchMode(a),s}parseGroup(t,r){var n=this.fetch(),a=n.text,i;if(a==="{"||a==="\\begingroup"){this.consume();var s=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var u=this.parseExpression(!1,s),l=this.fetch();this.expect(s),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:ht.range(n,l),body:u,semisimple:a==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,t)||this.parseSymbol(),i==null&&a[0]==="\\"&&!Tc.hasOwnProperty(a)){if(this.settings.throwOnError)throw new X("Undefined control sequence: "+a,n);i=this.formatUnsupportedCmd(a),this.consume()}return i}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var a=t[n],i=a.text;i==="-"&&t[n+1].text==="-"&&(n+1<r&&t[n+2].text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:ht.range(a,t[n+2]),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:ht.range(a,t[n+1]),text:"--"}),r-=1)),(i==="'"||i==="`")&&t[n+1].text===i&&(t.splice(n,2,{type:"textord",mode:"text",loc:ht.range(a,t[n+1]),text:i+i}),r-=1)}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),a=n.charAt(0)==="*";if(a&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new X(`\\verb assertion failed --
264
+ please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}Du.hasOwnProperty(r[0])&&!Re[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=Du[r[0]]+r.slice(1));var i=$p.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(Re[this.mode][r]){this.settings.strict&&this.mode==="math"&&u0.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var u=Re[this.mode][r].group,l=ht.range(t),o;if(Pm.hasOwnProperty(u)){var h=u;o={type:"atom",mode:this.mode,family:h,loc:l,text:r}}else o={type:u,mode:this.mode,loc:l,text:r};s=o}else if(r.charCodeAt(0)>=128)this.settings.strict&&(Co(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:ht.range(t),text:r};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var m=i[0][c];if(!Di[m])throw new X("Unknown accent ' "+m+"'",t);var g=Di[m][this.mode]||Di[m].text;if(!g)throw new X("Accent "+m+" unsupported in "+this.mode+" mode",t);s={type:"accent",mode:this.mode,loc:ht.range(t),label:g,isStretchy:!1,isShifty:!0,base:s}}return s}};xc.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var ts=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new xc(t,r);delete n.gullet.macros.current["\\df@tag"];var a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new X("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new bt("\\df@tag")])}]}return a},rs=function(t,r,n){r.textContent="";var a=Ja(t,n).toNode();r.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),rs=function(){throw new X("KaTeX doesn't work in quirks mode.")});var kc=function(t,r){var n=Ja(t,r).toMarkup();return n},vc=function(t,r){var n=new B0(r);return ts(t,n)},Ac=function(t,r,n){if(n.throwOnError||!(t instanceof X))throw t;var a=F.makeSpan(["katex-error"],[new At(r)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+n.errorColor),a},Ja=function(t,r){var n=new B0(r);try{var a=ts(t,n);return ip(a,t,n)}catch(i){return Ac(i,t,n)}},wc=function(t,r){var n=new B0(r);try{var a=ts(t,n);return sp(a,t,n)}catch(i){return Ac(i,t,n)}},Sc="0.16.27",Cc={Span:Qn,Anchor:H0,SymbolNode:At,SvgNode:tr,PathNode:pr,LineNode:s0},f0={version:Sc,render:rs,renderToString:kc,ParseError:X,SETTINGS_SCHEMA:Cn,__parse:vc,__renderToDomTree:Ja,__renderToHTMLTree:wc,__setFontMetrics:No,__defineSymbol:f,__defineFunction:ne,__defineMacro:T,__domTree:Cc};const wx=Object.freeze(Object.defineProperty({__proto__:null,ParseError:X,SETTINGS_SCHEMA:Cn,__defineFunction:ne,__defineMacro:T,__defineSymbol:f,__domTree:Cc,__parse:vc,__renderToDomTree:Ja,__renderToHTMLTree:wc,__setFontMetrics:No,default:f0,get render(){return rs},renderToString:kc,version:Sc},Symbol.toStringTag,{value:"Module"})),Xp={},Qp=[];function m0(e){const t=e||Xp;return function(r,n){O0(r,"element",function(a,i){const s=Array.isArray(a.properties.className)?a.properties.className:Qp,u=s.includes("language-math"),l=s.includes("math-display"),o=s.includes("math-inline");let h=l;if(!u&&!l&&!o)return;let c=i[i.length-1],m=a;if(a.tagName==="code"&&u&&c&&c.type==="element"&&c.tagName==="pre"&&(m=c,c=i[i.length-2],h=!0),!c)return;const g=Xf(m,{whitespace:"pre"});let E;try{E=f0.renderToString(g,{...t,displayMode:h,throwOnError:!0})}catch(v){const A=v,w=A.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...i,a],cause:A,place:a.position,ruleId:w,source:"rehype-katex"});try{E=f0.renderToString(g,{...t,displayMode:h,strict:"ignore",throwOnError:!1})}catch{E=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(v)},children:[{type:"text",value:g}]}]}}typeof E=="string"&&(E=Uf(E).children);const y=c.children.indexOf(m);return c.children.splice(y,1,...E),Sa})}}const Nc=-1,ei=0,_n=1,La=2,ns=3,as=4,is=5,ss=6,_c=7,Ic=8,Lu=typeof self=="object"?self:globalThis,Kp=(e,t)=>{const r=(a,i)=>(e.set(i,a),a),n=a=>{if(e.has(a))return e.get(a);const[i,s]=t[a];switch(i){case ei:case Nc:return r(s,a);case _n:{const u=r([],a);for(const l of s)u.push(n(l));return u}case La:{const u=r({},a);for(const[l,o]of s)u[n(l)]=n(o);return u}case ns:return r(new Date(s),a);case as:{const{source:u,flags:l}=s;return r(new RegExp(u,l),a)}case is:{const u=r(new Map,a);for(const[l,o]of s)u.set(n(l),n(o));return u}case ss:{const u=r(new Set,a);for(const l of s)u.add(n(l));return u}case _c:{const{name:u,message:l}=s;return r(new Lu[u](l),a)}case Ic:return r(BigInt(s),a);case"BigInt":return r(Object(BigInt(s)),a);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:u}=new Uint8Array(s);return r(new DataView(u),s)}}return r(new Lu[i](s),a)};return n},Ru=e=>Kp(new Map,e)(0),qr="",{toString:Zp}={},{keys:Jp}=Object,pn=e=>{const t=typeof e;if(t!=="object"||!e)return[ei,t];const r=Zp.call(e).slice(8,-1);switch(r){case"Array":return[_n,qr];case"Object":return[La,qr];case"Date":return[ns,qr];case"RegExp":return[as,qr];case"Map":return[is,qr];case"Set":return[ss,qr];case"DataView":return[_n,r]}return r.includes("Array")?[_n,r]:r.includes("Error")?[_c,r]:[La,r]},fa=([e,t])=>e===ei&&(t==="function"||t==="symbol"),e2=(e,t,r,n)=>{const a=(s,u)=>{const l=n.push(s)-1;return r.set(u,l),l},i=s=>{if(r.has(s))return r.get(s);let[u,l]=pn(s);switch(u){case ei:{let h=s;switch(l){case"bigint":u=Ic,h=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);h=null;break;case"undefined":return a([Nc],s)}return a([u,h],s)}case _n:{if(l){let m=s;return l==="DataView"?m=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(m=new Uint8Array(s)),a([l,[...m]],s)}const h=[],c=a([u,h],s);for(const m of s)h.push(i(m));return c}case La:{if(l)switch(l){case"BigInt":return a([l,s.toString()],s);case"Boolean":case"Number":case"String":return a([l,s.valueOf()],s)}if(t&&"toJSON"in s)return i(s.toJSON());const h=[],c=a([u,h],s);for(const m of Jp(s))(e||!fa(pn(s[m])))&&h.push([i(m),i(s[m])]);return c}case ns:return a([u,s.toISOString()],s);case as:{const{source:h,flags:c}=s;return a([u,{source:h,flags:c}],s)}case is:{const h=[],c=a([u,h],s);for(const[m,g]of s)(e||!(fa(pn(m))||fa(pn(g))))&&h.push([i(m),i(g)]);return c}case ss:{const h=[],c=a([u,h],s);for(const m of s)(e||!fa(pn(m)))&&h.push(i(m));return c}}const{message:o}=s;return a([u,{name:l,message:o}],s)};return i},Ou=(e,{json:t,lossy:r}={})=>{const n=[];return e2(!(t||r),!!t,new Map,n)(e),n},Nr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Ru(Ou(e,t)):structuredClone(e):(e,t)=>Ru(Ou(e,t));function t2(e){const t=String(e),r=[];return{toOffset:a,toPoint:n};function n(i){if(typeof i=="number"&&i>-1&&i<=t.length){let s=0;for(;;){let u=r[s];if(u===void 0){const l=Mu(t,r[s-1]);u=l===-1?t.length+1:l+1,r[s]=u}if(u>i)return{line:s+1,column:i-(s>0?r[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;r.length<i.line;){const u=r[r.length-1],l=Mu(t,u),o=l===-1?t.length+1:l+1;if(u===o)break;r.push(o)}const s=(i.line>1?r[i.line-2]:0)+i.column-1;if(s<r[i.line-1])return s}}}function Mu(e,t){const r=e.indexOf("\r",t),n=e.indexOf(`
265
+ `,t);return n===-1?r:r===-1||r+1===n?n:r<n?r:n}const Dc={}.hasOwnProperty,r2=Object.prototype;function n2(e,t){const r=t||{};return us({file:r.file||void 0,location:!1,schema:r.space==="svg"?Er:Wn,verbose:r.verbose||!1},e)}function us(e,t){let r;switch(t.nodeName){case"#comment":{const n=t;return r={type:"comment",value:n.data},ka(e,n,r),r}case"#document":case"#document-fragment":{const n=t,a="mode"in n?n.mode==="quirks"||n.mode==="limited-quirks":!1;if(r={type:"root",children:Lc(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=t2(i),u=s.toPoint(0),l=s.toPoint(i.length);r.position={start:u,end:l}}return r}case"#documentType":{const n=t;return r={type:"doctype"},ka(e,n,r),r}case"#text":{const n=t;return r={type:"text",value:n.value},ka(e,n,r),r}default:return r=a2(e,t),r}}function Lc(e,t){let r=-1;const n=[];for(;++r<t.length;){const a=us(e,t[r]);n.push(a)}return n}function a2(e,t){const r=e.schema;e.schema=t.namespaceURI===zt.svg?Er:Wn;let n=-1;const a={};for(;++n<t.attrs.length;){const u=t.attrs[n],l=(u.prefix?u.prefix+":":"")+u.name;Dc.call(r2,l)||(a[l]=u.value)}const s=(e.schema.space==="svg"?To:Eo)(t.tagName,a,Lc(e,t.childNodes));if(ka(e,t,s),s.tagName==="template"){const u=t,l=u.sourceCodeLocation,o=l&&l.startTag&&Yr(l.startTag),h=l&&l.endTag&&Yr(l.endTag),c=us(e,u.content);o&&h&&e.file&&(c.position={start:o.end,end:h.start}),s.content=c}return e.schema=r,s}function ka(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const n=i2(e,r,t.sourceCodeLocation);n&&(e.location=!0,r.position=n)}}function i2(e,t,r){const n=Yr(r);if(t.type==="element"){const a=t.children[t.children.length-1];if(n&&!r.endTag&&a&&a.position&&a.position.end&&(n.end=Object.assign({},a.position.end)),e.verbose){const i={};let s;if(r.attrs)for(s in r.attrs)Dc.call(r.attrs,s)&&(i[Va(e.schema,s).property]=Yr(r.attrs[s]));r.startTag;const u=Yr(r.startTag),l=r.endTag?Yr(r.endTag):void 0,o={opening:u};l&&(o.closing=l),o.properties=i,t.data={position:o}}}return n}function Yr(e){const t=Pu({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=Pu({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function Pu(e){return e.line&&e.column?e:void 0}const Bu={}.hasOwnProperty;function Rc(e,t){const r=t||{};function n(a,...i){let s=n.invalid;const u=n.handlers;if(a&&Bu.call(a,e)){const l=String(a[e]);s=Bu.call(u,l)?u[l]:n.unknown}if(s)return s.call(this,a,...i)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const s2={},u2={}.hasOwnProperty,Oc=Rc("type",{handlers:{root:o2,element:m2,text:d2,comment:f2,doctype:h2}});function l2(e,t){const n=(t||s2).space;return Oc(e,n==="svg"?Er:Wn)}function o2(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=ls(e.children,r,t),an(e,r),r}function c2(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=ls(e.children,r,t),an(e,r),r}function h2(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return an(e,t),t}function d2(e){const t={nodeName:"#text",value:e.value,parentNode:null};return an(e,t),t}function f2(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return an(e,t),t}function m2(e,t){const r=t;let n=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(n=Er);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&u2.call(e.properties,i)){const l=p2(n,i,e.properties[i]);l&&a.push(l)}}const s=n.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:zt[s],childNodes:[],parentNode:null};return u.childNodes=ls(e.children,u,n),an(e,u),e.tagName==="template"&&e.content&&(u.content=c2(e.content,n)),u}function p2(e,t,r){const n=Va(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&n.boolean)return;Array.isArray(r)&&(r=n.commaSeparated?po(r):go(r));const a={name:n.attribute,value:r===!0?"":String(r)};if(n.space&&n.space!=="html"&&n.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=n.attribute.slice(0,i)),a.namespace=zt[n.space]}return a}function ls(e,t,r){let n=-1;const a=[];if(e)for(;++n<e.length;){const i=Oc(e[n],r);i.parentNode=t,a.push(i)}return a}function an(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const g2=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],b2=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Me="�";var x;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(x||(x={}));const lt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Mc(e){return e>=55296&&e<=57343}function E2(e){return e>=56320&&e<=57343}function T2(e,t){return(e-55296)*1024+9216+t}function Pc(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Bc(e){return e>=64976&&e<=65007||b2.has(e)}var H;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(H||(H={}));const x2=65536;class y2{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=x2,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){const{line:n,col:a,offset:i}=this,s=a+r,u=i+r;return{code:t,startLine:n,endLine:n,startCol:s,endCol:s,startOffset:u,endOffset:u}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const r=this.html.charCodeAt(this.pos+1);if(E2(r))return this.pos++,this._addGap(),T2(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,x.EOF;return this._err(H.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let n=0;n<t.length;n++)if((this.html.charCodeAt(this.pos+n)|32)!==t.charCodeAt(n))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,x.EOF;const n=this.html.charCodeAt(r);return n===x.CARRIAGE_RETURN?x.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,x.EOF;let t=this.html.charCodeAt(this.pos);return t===x.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,x.LINE_FEED):t===x.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Mc(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===x.LINE_FEED||t===x.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Pc(t)?this._err(H.controlCharacterInInputStream):Bc(t)&&this._err(H.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var xe;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(xe||(xe={}));function Fc(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}const k2=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),v2=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function A2(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=v2.get(e))!==null&&t!==void 0?t:e}var We;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(We||(We={}));const w2=32;var fr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(fr||(fr={}));function p0(e){return e>=We.ZERO&&e<=We.NINE}function S2(e){return e>=We.UPPER_A&&e<=We.UPPER_F||e>=We.LOWER_A&&e<=We.LOWER_F}function C2(e){return e>=We.UPPER_A&&e<=We.UPPER_Z||e>=We.LOWER_A&&e<=We.LOWER_Z||p0(e)}function N2(e){return e===We.EQUALS||C2(e)}var Ge;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Ge||(Ge={}));var Kt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Kt||(Kt={}));class _2{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=Ge.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Kt.Strict}startEntity(t){this.decodeMode=t,this.state=Ge.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case Ge.EntityStart:return t.charCodeAt(r)===We.NUM?(this.state=Ge.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=Ge.NamedEntity,this.stateNamedEntity(t,r));case Ge.NumericStart:return this.stateNumericStart(t,r);case Ge.NumericDecimal:return this.stateNumericDecimal(t,r);case Ge.NumericHex:return this.stateNumericHex(t,r);case Ge.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|w2)===We.LOWER_X?(this.state=Ge.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=Ge.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,a){if(r!==n){const i=n-r;this.result=this.result*Math.pow(a,i)+Number.parseInt(t.substr(r,i),a),this.consumed+=i}}stateNumericHex(t,r){const n=r;for(;r<t.length;){const a=t.charCodeAt(r);if(p0(a)||S2(a))r+=1;else return this.addToNumericResult(t,n,r,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,n,r,16),-1}stateNumericDecimal(t,r){const n=r;for(;r<t.length;){const a=t.charCodeAt(r);if(p0(a))r+=1;else return this.addToNumericResult(t,n,r,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,n,r,10),-1}emitNumericEntity(t,r){var n;if(this.consumed<=r)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===We.SEMI)this.consumed+=1;else if(this.decodeMode===Kt.Strict)return 0;return this.emitCodePoint(A2(this.result),this.consumed),this.errors&&(t!==We.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:n}=this;let a=n[this.treeIndex],i=(a&fr.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const s=t.charCodeAt(r);if(this.treeIndex=I2(n,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===Kt.Attribute&&(i===0||N2(s))?0:this.emitNotTerminatedNamedEntity();if(a=n[this.treeIndex],i=(a&fr.VALUE_LENGTH)>>14,i!==0){if(s===We.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Kt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:n}=this,a=(n[r]&fr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){const{decodeTree:a}=this;return this.emitCodePoint(r===1?a[t]&~fr.VALUE_LENGTH:a[t+1],n),r===3&&this.emitCodePoint(a[t+2],n),n}end(){var t;switch(this.state){case Ge.NamedEntity:return this.result!==0&&(this.decodeMode!==Kt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ge.NumericDecimal:return this.emitNumericEntity(0,2);case Ge.NumericHex:return this.emitNumericEntity(0,3);case Ge.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ge.EntityStart:return 0}}}function I2(e,t,r,n){const a=(t&fr.BRANCH_LENGTH)>>7,i=t&fr.JUMP_TABLE;if(a===0)return i!==0&&n===i?r:-1;if(i){const l=n-i;return l<0||l>=a?-1:e[r+l]-1}let s=r,u=s+a-1;for(;s<=u;){const l=s+u>>>1,o=e[l];if(o<n)s=l+1;else if(o>n)u=l-1;else return e[l+a]}return-1}var V;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(V||(V={}));var Cr;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Cr||(Cr={}));var yt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(yt||(yt={}));var M;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(M||(M={}));var d;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(d||(d={}));const D2=new Map([[M.A,d.A],[M.ADDRESS,d.ADDRESS],[M.ANNOTATION_XML,d.ANNOTATION_XML],[M.APPLET,d.APPLET],[M.AREA,d.AREA],[M.ARTICLE,d.ARTICLE],[M.ASIDE,d.ASIDE],[M.B,d.B],[M.BASE,d.BASE],[M.BASEFONT,d.BASEFONT],[M.BGSOUND,d.BGSOUND],[M.BIG,d.BIG],[M.BLOCKQUOTE,d.BLOCKQUOTE],[M.BODY,d.BODY],[M.BR,d.BR],[M.BUTTON,d.BUTTON],[M.CAPTION,d.CAPTION],[M.CENTER,d.CENTER],[M.CODE,d.CODE],[M.COL,d.COL],[M.COLGROUP,d.COLGROUP],[M.DD,d.DD],[M.DESC,d.DESC],[M.DETAILS,d.DETAILS],[M.DIALOG,d.DIALOG],[M.DIR,d.DIR],[M.DIV,d.DIV],[M.DL,d.DL],[M.DT,d.DT],[M.EM,d.EM],[M.EMBED,d.EMBED],[M.FIELDSET,d.FIELDSET],[M.FIGCAPTION,d.FIGCAPTION],[M.FIGURE,d.FIGURE],[M.FONT,d.FONT],[M.FOOTER,d.FOOTER],[M.FOREIGN_OBJECT,d.FOREIGN_OBJECT],[M.FORM,d.FORM],[M.FRAME,d.FRAME],[M.FRAMESET,d.FRAMESET],[M.H1,d.H1],[M.H2,d.H2],[M.H3,d.H3],[M.H4,d.H4],[M.H5,d.H5],[M.H6,d.H6],[M.HEAD,d.HEAD],[M.HEADER,d.HEADER],[M.HGROUP,d.HGROUP],[M.HR,d.HR],[M.HTML,d.HTML],[M.I,d.I],[M.IMG,d.IMG],[M.IMAGE,d.IMAGE],[M.INPUT,d.INPUT],[M.IFRAME,d.IFRAME],[M.KEYGEN,d.KEYGEN],[M.LABEL,d.LABEL],[M.LI,d.LI],[M.LINK,d.LINK],[M.LISTING,d.LISTING],[M.MAIN,d.MAIN],[M.MALIGNMARK,d.MALIGNMARK],[M.MARQUEE,d.MARQUEE],[M.MATH,d.MATH],[M.MENU,d.MENU],[M.META,d.META],[M.MGLYPH,d.MGLYPH],[M.MI,d.MI],[M.MO,d.MO],[M.MN,d.MN],[M.MS,d.MS],[M.MTEXT,d.MTEXT],[M.NAV,d.NAV],[M.NOBR,d.NOBR],[M.NOFRAMES,d.NOFRAMES],[M.NOEMBED,d.NOEMBED],[M.NOSCRIPT,d.NOSCRIPT],[M.OBJECT,d.OBJECT],[M.OL,d.OL],[M.OPTGROUP,d.OPTGROUP],[M.OPTION,d.OPTION],[M.P,d.P],[M.PARAM,d.PARAM],[M.PLAINTEXT,d.PLAINTEXT],[M.PRE,d.PRE],[M.RB,d.RB],[M.RP,d.RP],[M.RT,d.RT],[M.RTC,d.RTC],[M.RUBY,d.RUBY],[M.S,d.S],[M.SCRIPT,d.SCRIPT],[M.SEARCH,d.SEARCH],[M.SECTION,d.SECTION],[M.SELECT,d.SELECT],[M.SOURCE,d.SOURCE],[M.SMALL,d.SMALL],[M.SPAN,d.SPAN],[M.STRIKE,d.STRIKE],[M.STRONG,d.STRONG],[M.STYLE,d.STYLE],[M.SUB,d.SUB],[M.SUMMARY,d.SUMMARY],[M.SUP,d.SUP],[M.TABLE,d.TABLE],[M.TBODY,d.TBODY],[M.TEMPLATE,d.TEMPLATE],[M.TEXTAREA,d.TEXTAREA],[M.TFOOT,d.TFOOT],[M.TD,d.TD],[M.TH,d.TH],[M.THEAD,d.THEAD],[M.TITLE,d.TITLE],[M.TR,d.TR],[M.TRACK,d.TRACK],[M.TT,d.TT],[M.U,d.U],[M.UL,d.UL],[M.SVG,d.SVG],[M.VAR,d.VAR],[M.WBR,d.WBR],[M.XMP,d.XMP]]);function sn(e){var t;return(t=D2.get(e))!==null&&t!==void 0?t:d.UNKNOWN}const G=d,L2={[V.HTML]:new Set([G.ADDRESS,G.APPLET,G.AREA,G.ARTICLE,G.ASIDE,G.BASE,G.BASEFONT,G.BGSOUND,G.BLOCKQUOTE,G.BODY,G.BR,G.BUTTON,G.CAPTION,G.CENTER,G.COL,G.COLGROUP,G.DD,G.DETAILS,G.DIR,G.DIV,G.DL,G.DT,G.EMBED,G.FIELDSET,G.FIGCAPTION,G.FIGURE,G.FOOTER,G.FORM,G.FRAME,G.FRAMESET,G.H1,G.H2,G.H3,G.H4,G.H5,G.H6,G.HEAD,G.HEADER,G.HGROUP,G.HR,G.HTML,G.IFRAME,G.IMG,G.INPUT,G.LI,G.LINK,G.LISTING,G.MAIN,G.MARQUEE,G.MENU,G.META,G.NAV,G.NOEMBED,G.NOFRAMES,G.NOSCRIPT,G.OBJECT,G.OL,G.P,G.PARAM,G.PLAINTEXT,G.PRE,G.SCRIPT,G.SECTION,G.SELECT,G.SOURCE,G.STYLE,G.SUMMARY,G.TABLE,G.TBODY,G.TD,G.TEMPLATE,G.TEXTAREA,G.TFOOT,G.TH,G.THEAD,G.TITLE,G.TR,G.TRACK,G.UL,G.WBR,G.XMP]),[V.MATHML]:new Set([G.MI,G.MO,G.MN,G.MS,G.MTEXT,G.ANNOTATION_XML]),[V.SVG]:new Set([G.TITLE,G.FOREIGN_OBJECT,G.DESC]),[V.XLINK]:new Set,[V.XML]:new Set,[V.XMLNS]:new Set},g0=new Set([G.H1,G.H2,G.H3,G.H4,G.H5,G.H6]);M.STYLE,M.SCRIPT,M.XMP,M.IFRAME,M.NOEMBED,M.NOFRAMES,M.PLAINTEXT;var k;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(k||(k={}));const qe={DATA:k.DATA,RCDATA:k.RCDATA,RAWTEXT:k.RAWTEXT,SCRIPT_DATA:k.SCRIPT_DATA,PLAINTEXT:k.PLAINTEXT,CDATA_SECTION:k.CDATA_SECTION};function R2(e){return e>=x.DIGIT_0&&e<=x.DIGIT_9}function wn(e){return e>=x.LATIN_CAPITAL_A&&e<=x.LATIN_CAPITAL_Z}function O2(e){return e>=x.LATIN_SMALL_A&&e<=x.LATIN_SMALL_Z}function or(e){return O2(e)||wn(e)}function Fu(e){return or(e)||R2(e)}function ma(e){return e+32}function zc(e){return e===x.SPACE||e===x.LINE_FEED||e===x.TABULATION||e===x.FORM_FEED}function zu(e){return zc(e)||e===x.SOLIDUS||e===x.GREATER_THAN_SIGN}function M2(e){return e===x.NULL?H.nullCharacterReference:e>1114111?H.characterReferenceOutsideUnicodeRange:Mc(e)?H.surrogateCharacterReference:Bc(e)?H.noncharacterCharacterReference:Pc(e)||e===x.CARRIAGE_RETURN?H.controlCharacterReference:null}class P2{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=k.DATA,this.returnState=k.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new y2(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new _2(k2,(n,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(n)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(H.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:n=>{this._err(H.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+n)},validateNumericCharacterReference:n=>{const a=M2(n);a&&this._err(a,1)}}:void 0)}_err(t,r=0){var n,a;(a=(n=this.handler).onParseError)===null||a===void 0||a.call(n,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,r,n){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||n?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:xe.START_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:xe.END_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:xe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:xe.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const n=this.currentToken;if(Fc(n,this.currentAttr.name)===null){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){const a=(t=(r=n.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(H.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=sn(t.tagName),t.type===xe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(H.endTagWithAttributes),t.selfClosing&&this._err(H.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case xe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case xe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case xe.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:xe.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=zc(t)?xe.WHITESPACE_CHARACTER:t===x.NULL?xe.NULL_CHARACTER:xe.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(xe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=k.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Kt.Attribute:Kt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===k.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case k.DATA:{this._stateData(t);break}case k.RCDATA:{this._stateRcdata(t);break}case k.RAWTEXT:{this._stateRawtext(t);break}case k.SCRIPT_DATA:{this._stateScriptData(t);break}case k.PLAINTEXT:{this._statePlaintext(t);break}case k.TAG_OPEN:{this._stateTagOpen(t);break}case k.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case k.TAG_NAME:{this._stateTagName(t);break}case k.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case k.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case k.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case k.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case k.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case k.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case k.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case k.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case k.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case k.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case k.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case k.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case k.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case k.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case k.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case k.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case k.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case k.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case k.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case k.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case k.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case k.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case k.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case k.BOGUS_COMMENT:{this._stateBogusComment(t);break}case k.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case k.COMMENT_START:{this._stateCommentStart(t);break}case k.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case k.COMMENT:{this._stateComment(t);break}case k.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case k.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case k.COMMENT_END:{this._stateCommentEnd(t);break}case k.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case k.DOCTYPE:{this._stateDoctype(t);break}case k.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case k.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case k.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case k.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case k.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case k.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case k.CDATA_SECTION:{this._stateCdataSection(t);break}case k.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case k.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case k.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case k.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case x.LESS_THAN_SIGN:{this.state=k.TAG_OPEN;break}case x.AMPERSAND:{this._startCharacterReference();break}case x.NULL:{this._err(H.unexpectedNullCharacter),this._emitCodePoint(t);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case x.AMPERSAND:{this._startCharacterReference();break}case x.LESS_THAN_SIGN:{this.state=k.RCDATA_LESS_THAN_SIGN;break}case x.NULL:{this._err(H.unexpectedNullCharacter),this._emitChars(Me);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case x.LESS_THAN_SIGN:{this.state=k.RAWTEXT_LESS_THAN_SIGN;break}case x.NULL:{this._err(H.unexpectedNullCharacter),this._emitChars(Me);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case x.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_LESS_THAN_SIGN;break}case x.NULL:{this._err(H.unexpectedNullCharacter),this._emitChars(Me);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case x.NULL:{this._err(H.unexpectedNullCharacter),this._emitChars(Me);break}case x.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(or(t))this._createStartTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case x.EXCLAMATION_MARK:{this.state=k.MARKUP_DECLARATION_OPEN;break}case x.SOLIDUS:{this.state=k.END_TAG_OPEN;break}case x.QUESTION_MARK:{this._err(H.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t);break}case x.EOF:{this._err(H.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(H.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=k.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(or(t))this._createEndTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case x.GREATER_THAN_SIGN:{this._err(H.missingEndTagName),this.state=k.DATA;break}case x.EOF:{this._err(H.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(H.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=k.BEFORE_ATTRIBUTE_NAME;break}case x.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case x.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case x.NULL:{this._err(H.unexpectedNullCharacter),r.tagName+=Me;break}case x.EOF:{this._err(H.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(wn(t)?ma(t):t)}}_stateRcdataLessThanSign(t){t===x.SOLIDUS?this.state=k.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){or(t)?(this.state=k.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=k.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=k.BEFORE_ATTRIBUTE_NAME,!1;case x.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=k.SELF_CLOSING_START_TAG,!1;case x.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=k.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===x.SOLIDUS?this.state=k.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){or(t)?(this.state=k.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case x.SOLIDUS:{this.state=k.SCRIPT_DATA_END_TAG_OPEN;break}case x.EXCLAMATION_MARK:{this.state=k.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=k.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){or(t)?(this.state=k.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===x.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===x.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case x.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case x.NULL:{this._err(H.unexpectedNullCharacter),this._emitChars(Me);break}case x.EOF:{this._err(H.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case x.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case x.NULL:{this._err(H.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(Me);break}case x.EOF:{this._err(H.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case x.HYPHEN_MINUS:{this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case x.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case x.NULL:{this._err(H.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(Me);break}case x.EOF:{this._err(H.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===x.SOLIDUS?this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:or(t)?(this._emitChars("<"),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){or(t)?(this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(lt.SCRIPT,!1)&&zu(this.preprocessor.peek(lt.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<lt.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case x.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case x.NULL:{this._err(H.unexpectedNullCharacter),this._emitChars(Me);break}case x.EOF:{this._err(H.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case x.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case x.NULL:{this._err(H.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Me);break}case x.EOF:{this._err(H.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case x.HYPHEN_MINUS:{this._emitChars("-");break}case x.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case x.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case x.NULL:{this._err(H.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Me);break}case x.EOF:{this._err(H.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===x.SOLIDUS?(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(lt.SCRIPT,!1)&&zu(this.preprocessor.peek(lt.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<lt.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.SOLIDUS:case x.GREATER_THAN_SIGN:case x.EOF:{this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case x.EQUALS_SIGN:{this._err(H.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=k.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:case x.SOLIDUS:case x.GREATER_THAN_SIGN:case x.EOF:{this._leaveAttrName(),this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case x.EQUALS_SIGN:{this._leaveAttrName(),this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case x.QUOTATION_MARK:case x.APOSTROPHE:case x.LESS_THAN_SIGN:{this._err(H.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case x.NULL:{this._err(H.unexpectedNullCharacter),this.currentAttr.name+=Me;break}default:this.currentAttr.name+=String.fromCodePoint(wn(t)?ma(t):t)}}_stateAfterAttributeName(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case x.EQUALS_SIGN:{this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case x.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case x.EOF:{this._err(H.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.QUOTATION_MARK:{this.state=k.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case x.APOSTROPHE:{this.state=k.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err(H.missingAttributeValue),this.state=k.DATA,this.emitCurrentTagToken();break}default:this.state=k.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case x.QUOTATION_MARK:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case x.AMPERSAND:{this._startCharacterReference();break}case x.NULL:{this._err(H.unexpectedNullCharacter),this.currentAttr.value+=Me;break}case x.EOF:{this._err(H.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case x.APOSTROPHE:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case x.AMPERSAND:{this._startCharacterReference();break}case x.NULL:{this._err(H.unexpectedNullCharacter),this.currentAttr.value+=Me;break}case x.EOF:{this._err(H.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case x.AMPERSAND:{this._startCharacterReference();break}case x.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case x.NULL:{this._err(H.unexpectedNullCharacter),this.currentAttr.value+=Me;break}case x.QUOTATION_MARK:case x.APOSTROPHE:case x.LESS_THAN_SIGN:case x.EQUALS_SIGN:case x.GRAVE_ACCENT:{this._err(H.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case x.EOF:{this._err(H.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case x.SOLIDUS:{this._leaveAttrValue(),this.state=k.SELF_CLOSING_START_TAG;break}case x.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case x.EOF:{this._err(H.eofInTag),this._emitEOFToken();break}default:this._err(H.missingWhitespaceBetweenAttributes),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case x.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=k.DATA,this.emitCurrentTagToken();break}case x.EOF:{this._err(H.eofInTag),this._emitEOFToken();break}default:this._err(H.unexpectedSolidusInTag),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case x.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(r);break}case x.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case x.NULL:{this._err(H.unexpectedNullCharacter),r.data+=Me;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(lt.DASH_DASH,!0)?(this._createCommentToken(lt.DASH_DASH.length+1),this.state=k.COMMENT_START):this._consumeSequenceIfMatch(lt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(lt.DOCTYPE.length+1),this.state=k.DOCTYPE):this._consumeSequenceIfMatch(lt.CDATA_START,!0)?this.inForeignNode?this.state=k.CDATA_SECTION:(this._err(H.cdataInHtmlContent),this._createCommentToken(lt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=k.BOGUS_COMMENT):this._ensureHibernation()||(this._err(H.incorrectlyOpenedComment),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case x.HYPHEN_MINUS:{this.state=k.COMMENT_START_DASH;break}case x.GREATER_THAN_SIGN:{this._err(H.abruptClosingOfEmptyComment),this.state=k.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case x.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case x.GREATER_THAN_SIGN:{this._err(H.abruptClosingOfEmptyComment),this.state=k.DATA,this.emitCurrentComment(r);break}case x.EOF:{this._err(H.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case x.HYPHEN_MINUS:{this.state=k.COMMENT_END_DASH;break}case x.LESS_THAN_SIGN:{r.data+="<",this.state=k.COMMENT_LESS_THAN_SIGN;break}case x.NULL:{this._err(H.unexpectedNullCharacter),r.data+=Me;break}case x.EOF:{this._err(H.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case x.EXCLAMATION_MARK:{r.data+="!",this.state=k.COMMENT_LESS_THAN_SIGN_BANG;break}case x.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===x.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=k.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===x.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=k.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==x.GREATER_THAN_SIGN&&t!==x.EOF&&this._err(H.nestedComment),this.state=k.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case x.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case x.EOF:{this._err(H.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case x.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(r);break}case x.EXCLAMATION_MARK:{this.state=k.COMMENT_END_BANG;break}case x.HYPHEN_MINUS:{r.data+="-";break}case x.EOF:{this._err(H.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case x.HYPHEN_MINUS:{r.data+="--!",this.state=k.COMMENT_END_DASH;break}case x.GREATER_THAN_SIGN:{this._err(H.incorrectlyClosedComment),this.state=k.DATA,this.emitCurrentComment(r);break}case x.EOF:{this._err(H.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=k.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_NAME;break}case x.GREATER_THAN_SIGN:{this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case x.EOF:{this._err(H.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(H.missingWhitespaceBeforeDoctypeName),this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(wn(t))this._createDoctypeToken(String.fromCharCode(ma(t))),this.state=k.DOCTYPE_NAME;else switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.NULL:{this._err(H.unexpectedNullCharacter),this._createDoctypeToken(Me),this.state=k.DOCTYPE_NAME;break}case x.GREATER_THAN_SIGN:{this._err(H.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=k.DATA;break}case x.EOF:{this._err(H.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=k.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=k.AFTER_DOCTYPE_NAME;break}case x.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(r);break}case x.NULL:{this._err(H.unexpectedNullCharacter),r.name+=Me;break}case x.EOF:{this._err(H.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(wn(t)?ma(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(r);break}case x.EOF:{this._err(H.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(lt.PUBLIC,!1)?this.state=k.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(lt.SYSTEM,!1)?this.state=k.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(H.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case x.QUOTATION_MARK:{this._err(H.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{this._err(H.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err(H.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(r);break}case x.EOF:{this._err(H.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(H.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.QUOTATION_MARK:{r.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{r.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err(H.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(r);break}case x.EOF:{this._err(H.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(H.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case x.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case x.NULL:{this._err(H.unexpectedNullCharacter),r.publicId+=Me;break}case x.GREATER_THAN_SIGN:{this._err(H.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=k.DATA;break}case x.EOF:{this._err(H.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case x.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case x.NULL:{this._err(H.unexpectedNullCharacter),r.publicId+=Me;break}case x.GREATER_THAN_SIGN:{this._err(H.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=k.DATA;break}case x.EOF:{this._err(H.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case x.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(r);break}case x.QUOTATION_MARK:{this._err(H.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{this._err(H.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case x.EOF:{this._err(H.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(H.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=k.DATA;break}case x.QUOTATION_MARK:{r.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{r.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case x.EOF:{this._err(H.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(H.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case x.QUOTATION_MARK:{this._err(H.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{this._err(H.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err(H.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(r);break}case x.EOF:{this._err(H.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(H.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.QUOTATION_MARK:{r.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case x.APOSTROPHE:{r.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case x.GREATER_THAN_SIGN:{this._err(H.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(r);break}case x.EOF:{this._err(H.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(H.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case x.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case x.NULL:{this._err(H.unexpectedNullCharacter),r.systemId+=Me;break}case x.GREATER_THAN_SIGN:{this._err(H.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=k.DATA;break}case x.EOF:{this._err(H.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case x.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case x.NULL:{this._err(H.unexpectedNullCharacter),r.systemId+=Me;break}case x.GREATER_THAN_SIGN:{this._err(H.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=k.DATA;break}case x.EOF:{this._err(H.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case x.SPACE:case x.LINE_FEED:case x.TABULATION:case x.FORM_FEED:break;case x.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=k.DATA;break}case x.EOF:{this._err(H.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(H.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case x.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=k.DATA;break}case x.NULL:{this._err(H.unexpectedNullCharacter);break}case x.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case x.RIGHT_SQUARE_BRACKET:{this.state=k.CDATA_SECTION_BRACKET;break}case x.EOF:{this._err(H.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===x.RIGHT_SQUARE_BRACKET?this.state=k.CDATA_SECTION_END:(this._emitChars("]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case x.GREATER_THAN_SIGN:{this.state=k.DATA;break}case x.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(x.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Fu(this.preprocessor.peek(1))?k.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Fu(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===x.SEMICOLON&&this._err(H.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Hc=new Set([d.DD,d.DT,d.LI,d.OPTGROUP,d.OPTION,d.P,d.RB,d.RP,d.RT,d.RTC]),Hu=new Set([...Hc,d.CAPTION,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]),Ra=new Set([d.APPLET,d.CAPTION,d.HTML,d.MARQUEE,d.OBJECT,d.TABLE,d.TD,d.TEMPLATE,d.TH]),B2=new Set([...Ra,d.OL,d.UL]),F2=new Set([...Ra,d.BUTTON]),Uu=new Set([d.ANNOTATION_XML,d.MI,d.MN,d.MO,d.MS,d.MTEXT]),qu=new Set([d.DESC,d.FOREIGN_OBJECT,d.TITLE]),z2=new Set([d.TR,d.TEMPLATE,d.HTML]),H2=new Set([d.TBODY,d.TFOOT,d.THEAD,d.TEMPLATE,d.HTML]),U2=new Set([d.TABLE,d.TEMPLATE,d.HTML]),q2=new Set([d.TD,d.TH]);class j2{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,n){this.treeAdapter=r,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=d.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===d.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===V.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const n=this._indexOf(t);this.items[n]=r,n===this.stackTop&&(this.current=r)}insertAfter(t,r,n){const a=this._indexOf(t)+1;this.items.splice(a,0,r),this.tagIDs.splice(a,0,n),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==V.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(g0,V.HTML)}popUntilTableCellPopped(){this.popUntilPopped(q2,V.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let n=this.stackTop;n>=0;n--)if(t.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===r)return n;return-1}clearBackTo(t,r){const n=this._indexOfTagNames(t,r);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(U2,V.HTML)}clearBackToTableBodyContext(){this.clearBackTo(H2,V.HTML)}clearBackToTableRowContext(){this.clearBackTo(z2,V.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===d.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===d.HTML}hasInDynamicScope(t,r){for(let n=this.stackTop;n>=0;n--){const a=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case V.HTML:{if(a===t)return!0;if(r.has(a))return!1;break}case V.SVG:{if(qu.has(a))return!1;break}case V.MATHML:{if(Uu.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Ra)}hasInListItemScope(t){return this.hasInDynamicScope(t,B2)}hasInButtonScope(t){return this.hasInDynamicScope(t,F2)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case V.HTML:{if(g0.has(r))return!0;if(Ra.has(r))return!1;break}case V.SVG:{if(qu.has(r))return!1;break}case V.MATHML:{if(Uu.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===V.HTML)switch(this.tagIDs[r]){case t:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===V.HTML)switch(this.tagIDs[t]){case d.TBODY:case d.THEAD:case d.TFOOT:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===V.HTML)switch(this.tagIDs[r]){case t:return!0;case d.OPTION:case d.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Hc.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Hu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Hu.has(this.currentTagId);)this.pop()}}const Li=3;var Ft;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Ft||(Ft={}));const ju={type:Ft.Marker};class $2{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){const n=[],a=r.length,i=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){const l=this.entries[u];if(l.type===Ft.Marker)break;const{element:o}=l;if(this.treeAdapter.getTagName(o)===i&&this.treeAdapter.getNamespaceURI(o)===s){const h=this.treeAdapter.getAttrList(o);h.length===a&&n.push({idx:u,attrs:h})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<Li)return;const r=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,r);if(n.length<Li)return;const a=new Map(r.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<n.length;s++){const u=n[s];u.attrs.every(l=>a.get(l.name)===l.value)&&(i+=1,i>=Li&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(ju)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:Ft.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Ft.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(ju);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const r=this.entries.find(n=>n.type===Ft.Marker||this.treeAdapter.getTagName(n.element)===t);return r&&r.type===Ft.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===Ft.Element&&r.element===t)}}const cr={createDocument(){return{nodeName:"#document",mode:yt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const n=e.childNodes.indexOf(r);e.childNodes.splice(n,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,n){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=r,a.systemId=n;else{const i={nodeName:"#documentType",name:t,publicId:r,systemId:n,parentNode:null};cr.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(cr.isTextNode(r)){r.value+=t;return}}cr.appendChild(e,cr.createTextNode(t))},insertTextBefore(e,t,r){const n=e.childNodes[e.childNodes.indexOf(r)-1];n&&cr.isTextNode(n)?n.value+=t:cr.insertBefore(e,cr.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(n=>n.name));for(let n=0;n<t.length;n++)r.has(t[n].name)||e.attrs.push(t[n])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Uc="html",Y2="about:legacy-compat",V2="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",qc=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],G2=[...qc,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],W2=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),jc=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],X2=[...jc,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function $u(e,t){return t.some(r=>e.startsWith(r))}function Q2(e){return e.name===Uc&&e.publicId===null&&(e.systemId===null||e.systemId===Y2)}function K2(e){if(e.name!==Uc)return yt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===V2)return yt.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),W2.has(r))return yt.QUIRKS;let n=t===null?G2:qc;if($u(r,n))return yt.QUIRKS;if(n=t===null?jc:X2,$u(r,n))return yt.LIMITED_QUIRKS}return yt.NO_QUIRKS}const Yu={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Z2="definitionurl",J2="definitionURL",e4=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),t4=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:V.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:V.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:V.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:V.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:V.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:V.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:V.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:V.XML}],["xml:space",{prefix:"xml",name:"space",namespace:V.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:V.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:V.XMLNS}]]),r4=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),n4=new Set([d.B,d.BIG,d.BLOCKQUOTE,d.BODY,d.BR,d.CENTER,d.CODE,d.DD,d.DIV,d.DL,d.DT,d.EM,d.EMBED,d.H1,d.H2,d.H3,d.H4,d.H5,d.H6,d.HEAD,d.HR,d.I,d.IMG,d.LI,d.LISTING,d.MENU,d.META,d.NOBR,d.OL,d.P,d.PRE,d.RUBY,d.S,d.SMALL,d.SPAN,d.STRONG,d.STRIKE,d.SUB,d.SUP,d.TABLE,d.TT,d.U,d.UL,d.VAR]);function a4(e){const t=e.tagID;return t===d.FONT&&e.attrs.some(({name:n})=>n===Cr.COLOR||n===Cr.SIZE||n===Cr.FACE)||n4.has(t)}function $c(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Z2){e.attrs[t].name=J2;break}}function Yc(e){for(let t=0;t<e.attrs.length;t++){const r=e4.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function os(e){for(let t=0;t<e.attrs.length;t++){const r=t4.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function i4(e){const t=r4.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=sn(e.tagName))}function s4(e,t){return t===V.MATHML&&(e===d.MI||e===d.MO||e===d.MN||e===d.MS||e===d.MTEXT)}function u4(e,t,r){if(t===V.MATHML&&e===d.ANNOTATION_XML){for(let n=0;n<r.length;n++)if(r[n].name===Cr.ENCODING){const a=r[n].value.toLowerCase();return a===Yu.TEXT_HTML||a===Yu.APPLICATION_XML}}return t===V.SVG&&(e===d.FOREIGN_OBJECT||e===d.DESC||e===d.TITLE)}function l4(e,t,r,n){return(!n||n===V.HTML)&&u4(e,t,r)||(!n||n===V.MATHML)&&s4(e,t)}const o4="hidden",c4=8,h4=3;var _;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(_||(_={}));const d4={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Vc=new Set([d.TABLE,d.TBODY,d.TFOOT,d.THEAD,d.TR]),Vu={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:cr,onParseError:null};class Gu{constructor(t,r,n=null,a=null){this.fragmentContext=n,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=_.INITIAL,this.originalInsertionMode=_.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Vu,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new P2(this.options,this),this.activeFormattingElements=new $2(this.treeAdapter),this.fragmentContextID=n?sn(this.treeAdapter.getTagName(n)):d.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new j2(this.document,this.treeAdapter,this)}static parse(t,r){const n=new this(r);return n.tokenizer.write(t,!0),n.document}static getFragmentParser(t,r){const n={...Vu,...r};t??(t=n.treeAdapter.createElement(M.TEMPLATE,V.HTML,[]));const a=n.treeAdapter.createElement("documentmock",V.HTML,[]),i=new this(n,a,t);return i.fragmentContextID===d.TEMPLATE&&i.tmplInsertionModeStack.unshift(_.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,n){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:d4,s={code:r,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(s)}onItemPush(t,r,n){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),n&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var n,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(n=this.treeAdapter).onItemPop)===null||a===void 0||a.call(n,t,this.openElements.current),r){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(t,r){const n=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===V.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,V.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=_.TEXT}switchToPlaintextParsing(){this.insertionMode=_.TEXT,this.originalInsertionMode=_.IN_BODY,this.tokenizer.state=qe.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===M.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==V.HTML))switch(this.fragmentContextID){case d.TITLE:case d.TEXTAREA:{this.tokenizer.state=qe.RCDATA;break}case d.STYLE:case d.XMP:case d.IFRAME:case d.NOEMBED:case d.NOFRAMES:case d.NOSCRIPT:{this.tokenizer.state=qe.RAWTEXT;break}case d.SCRIPT:{this.tokenizer.state=qe.SCRIPT_DATA;break}case d.PLAINTEXT:{this.tokenizer.state=qe.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",n=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,n,a),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const n=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(n??this.document,t)}}_appendElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location)}_insertElement(t,r){const n=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID)}_insertFakeElement(t,r){const n=this.treeAdapter.createElement(t,V.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,V.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,n),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(M.HTML,V.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,d.HTML)}_appendCommentNode(t,r){const n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}_insertCharacters(t){let r,n;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(r,t.chars,n):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(r),i=n?a.lastIndexOf(n):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:o,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:o,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,r){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(r,n)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const n=r.location,a=this.treeAdapter.getTagName(t),i=r.type===xe.END_TAG&&a===r.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,n;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,n=this.fragmentContextID):{current:r,currentTagId:n}=this.openElements,t.tagID===d.SVG&&this.treeAdapter.getTagName(r)===M.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===V.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===d.MGLYPH||t.tagID===d.MALIGNMARK)&&n!==void 0&&!this._isIntegrationPoint(n,r,V.HTML)}_processToken(t){switch(t.type){case xe.CHARACTER:{this.onCharacter(t);break}case xe.NULL_CHARACTER:{this.onNullCharacter(t);break}case xe.COMMENT:{this.onComment(t);break}case xe.DOCTYPE:{this.onDoctype(t);break}case xe.START_TAG:{this._processStartTag(t);break}case xe.END_TAG:{this.onEndTag(t);break}case xe.EOF:{this.onEof(t);break}case xe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,n){const a=this.treeAdapter.getNamespaceURI(r),i=this.treeAdapter.getAttrList(r);return l4(t,a,i,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(a=>a.type===Ft.Marker||this.openElements.contains(a.element)),n=r===-1?t-1:r-1;for(let a=n;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=_.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(d.P),this.openElements.popUntilTagNamePopped(d.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case d.TR:{this.insertionMode=_.IN_ROW;return}case d.TBODY:case d.THEAD:case d.TFOOT:{this.insertionMode=_.IN_TABLE_BODY;return}case d.CAPTION:{this.insertionMode=_.IN_CAPTION;return}case d.COLGROUP:{this.insertionMode=_.IN_COLUMN_GROUP;return}case d.TABLE:{this.insertionMode=_.IN_TABLE;return}case d.BODY:{this.insertionMode=_.IN_BODY;return}case d.FRAMESET:{this.insertionMode=_.IN_FRAMESET;return}case d.SELECT:{this._resetInsertionModeForSelect(t);return}case d.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case d.HTML:{this.insertionMode=this.headElement?_.AFTER_HEAD:_.BEFORE_HEAD;return}case d.TD:case d.TH:{if(t>0){this.insertionMode=_.IN_CELL;return}break}case d.HEAD:{if(t>0){this.insertionMode=_.IN_HEAD;return}break}}this.insertionMode=_.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const n=this.openElements.tagIDs[r];if(n===d.TEMPLATE)break;if(n===d.TABLE){this.insertionMode=_.IN_SELECT_IN_TABLE;return}}this.insertionMode=_.IN_SELECT}_isElementCausesFosterParenting(t){return Vc.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case d.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===V.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case d.TABLE:{const n=this.treeAdapter.getParentNode(r);return n?{parent:n,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const n=this.treeAdapter.getNamespaceURI(t);return L2[n].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){q3(this,t);return}switch(this.insertionMode){case _.INITIAL:{gn(this,t);break}case _.BEFORE_HTML:{In(this,t);break}case _.BEFORE_HEAD:{Dn(this,t);break}case _.IN_HEAD:{Ln(this,t);break}case _.IN_HEAD_NO_SCRIPT:{Rn(this,t);break}case _.AFTER_HEAD:{On(this,t);break}case _.IN_BODY:case _.IN_CAPTION:case _.IN_CELL:case _.IN_TEMPLATE:{Wc(this,t);break}case _.TEXT:case _.IN_SELECT:case _.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case _.IN_TABLE:case _.IN_TABLE_BODY:case _.IN_ROW:{Ri(this,t);break}case _.IN_TABLE_TEXT:{e1(this,t);break}case _.IN_COLUMN_GROUP:{Oa(this,t);break}case _.AFTER_BODY:{Ma(this,t);break}case _.AFTER_AFTER_BODY:{va(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){U3(this,t);return}switch(this.insertionMode){case _.INITIAL:{gn(this,t);break}case _.BEFORE_HTML:{In(this,t);break}case _.BEFORE_HEAD:{Dn(this,t);break}case _.IN_HEAD:{Ln(this,t);break}case _.IN_HEAD_NO_SCRIPT:{Rn(this,t);break}case _.AFTER_HEAD:{On(this,t);break}case _.TEXT:{this._insertCharacters(t);break}case _.IN_TABLE:case _.IN_TABLE_BODY:case _.IN_ROW:{Ri(this,t);break}case _.IN_COLUMN_GROUP:{Oa(this,t);break}case _.AFTER_BODY:{Ma(this,t);break}case _.AFTER_AFTER_BODY:{va(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){b0(this,t);return}switch(this.insertionMode){case _.INITIAL:case _.BEFORE_HTML:case _.BEFORE_HEAD:case _.IN_HEAD:case _.IN_HEAD_NO_SCRIPT:case _.AFTER_HEAD:case _.IN_BODY:case _.IN_TABLE:case _.IN_CAPTION:case _.IN_COLUMN_GROUP:case _.IN_TABLE_BODY:case _.IN_ROW:case _.IN_CELL:case _.IN_SELECT:case _.IN_SELECT_IN_TABLE:case _.IN_TEMPLATE:case _.IN_FRAMESET:case _.AFTER_FRAMESET:{b0(this,t);break}case _.IN_TABLE_TEXT:{bn(this,t);break}case _.AFTER_BODY:{T4(this,t);break}case _.AFTER_AFTER_BODY:case _.AFTER_AFTER_FRAMESET:{x4(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case _.INITIAL:{y4(this,t);break}case _.BEFORE_HEAD:case _.IN_HEAD:case _.IN_HEAD_NO_SCRIPT:case _.AFTER_HEAD:{this._err(t,H.misplacedDoctype);break}case _.IN_TABLE_TEXT:{bn(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,H.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?j3(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case _.INITIAL:{gn(this,t);break}case _.BEFORE_HTML:{k4(this,t);break}case _.BEFORE_HEAD:{A4(this,t);break}case _.IN_HEAD:{Rt(this,t);break}case _.IN_HEAD_NO_SCRIPT:{C4(this,t);break}case _.AFTER_HEAD:{_4(this,t);break}case _.IN_BODY:{et(this,t);break}case _.IN_TABLE:{Zr(this,t);break}case _.IN_TABLE_TEXT:{bn(this,t);break}case _.IN_CAPTION:{w3(this,t);break}case _.IN_COLUMN_GROUP:{ds(this,t);break}case _.IN_TABLE_BODY:{ni(this,t);break}case _.IN_ROW:{ai(this,t);break}case _.IN_CELL:{N3(this,t);break}case _.IN_SELECT:{n1(this,t);break}case _.IN_SELECT_IN_TABLE:{I3(this,t);break}case _.IN_TEMPLATE:{L3(this,t);break}case _.AFTER_BODY:{O3(this,t);break}case _.IN_FRAMESET:{M3(this,t);break}case _.AFTER_FRAMESET:{B3(this,t);break}case _.AFTER_AFTER_BODY:{z3(this,t);break}case _.AFTER_AFTER_FRAMESET:{H3(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?$3(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case _.INITIAL:{gn(this,t);break}case _.BEFORE_HTML:{v4(this,t);break}case _.BEFORE_HEAD:{w4(this,t);break}case _.IN_HEAD:{S4(this,t);break}case _.IN_HEAD_NO_SCRIPT:{N4(this,t);break}case _.AFTER_HEAD:{I4(this,t);break}case _.IN_BODY:{ri(this,t);break}case _.TEXT:{p3(this,t);break}case _.IN_TABLE:{qn(this,t);break}case _.IN_TABLE_TEXT:{bn(this,t);break}case _.IN_CAPTION:{S3(this,t);break}case _.IN_COLUMN_GROUP:{C3(this,t);break}case _.IN_TABLE_BODY:{E0(this,t);break}case _.IN_ROW:{r1(this,t);break}case _.IN_CELL:{_3(this,t);break}case _.IN_SELECT:{a1(this,t);break}case _.IN_SELECT_IN_TABLE:{D3(this,t);break}case _.IN_TEMPLATE:{R3(this,t);break}case _.AFTER_BODY:{s1(this,t);break}case _.IN_FRAMESET:{P3(this,t);break}case _.AFTER_FRAMESET:{F3(this,t);break}case _.AFTER_AFTER_BODY:{va(this,t);break}}}onEof(t){switch(this.insertionMode){case _.INITIAL:{gn(this,t);break}case _.BEFORE_HTML:{In(this,t);break}case _.BEFORE_HEAD:{Dn(this,t);break}case _.IN_HEAD:{Ln(this,t);break}case _.IN_HEAD_NO_SCRIPT:{Rn(this,t);break}case _.AFTER_HEAD:{On(this,t);break}case _.IN_BODY:case _.IN_TABLE:case _.IN_CAPTION:case _.IN_COLUMN_GROUP:case _.IN_TABLE_BODY:case _.IN_ROW:case _.IN_CELL:case _.IN_SELECT:case _.IN_SELECT_IN_TABLE:{Zc(this,t);break}case _.TEXT:{g3(this,t);break}case _.IN_TABLE_TEXT:{bn(this,t);break}case _.IN_TEMPLATE:{i1(this,t);break}case _.AFTER_BODY:case _.IN_FRAMESET:case _.AFTER_FRAMESET:case _.AFTER_AFTER_BODY:case _.AFTER_AFTER_FRAMESET:{hs(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===x.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case _.IN_HEAD:case _.IN_HEAD_NO_SCRIPT:case _.AFTER_HEAD:case _.TEXT:case _.IN_COLUMN_GROUP:case _.IN_SELECT:case _.IN_SELECT_IN_TABLE:case _.IN_FRAMESET:case _.AFTER_FRAMESET:{this._insertCharacters(t);break}case _.IN_BODY:case _.IN_CAPTION:case _.IN_CELL:case _.IN_TEMPLATE:case _.AFTER_BODY:case _.AFTER_AFTER_BODY:case _.AFTER_AFTER_FRAMESET:{Gc(this,t);break}case _.IN_TABLE:case _.IN_TABLE_BODY:case _.IN_ROW:{Ri(this,t);break}case _.IN_TABLE_TEXT:{Jc(this,t);break}}}}function f4(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):Kc(e,t),r}function m4(e,t){let r=null,n=e.openElements.stackTop;for(;n>=0;n--){const a=e.openElements.items[n];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[n])&&(r=a)}return r||(e.openElements.shortenToLength(Math.max(n,0)),e.activeFormattingElements.removeEntry(t)),r}function p4(e,t,r){let n=t,a=e.openElements.getCommonAncestor(t);for(let i=0,s=a;s!==r;i++,s=a){a=e.openElements.getCommonAncestor(s);const u=e.activeFormattingElements.getElementEntry(s),l=u&&i>=h4;!u||l?(l&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(s)):(s=g4(e,u),n===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(n),e.treeAdapter.appendChild(s,n),n=s)}return n}function g4(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),n=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,n),t.element=n,n}function b4(e,t,r){const n=e.treeAdapter.getTagName(t),a=sn(n);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(r);else{const i=e.treeAdapter.getNamespaceURI(t);a===d.TEMPLATE&&i===V.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function E4(e,t,r){const n=e.treeAdapter.getNamespaceURI(r.element),{token:a}=r,i=e.treeAdapter.createElement(a.tagName,n,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,i,a.tagID)}function cs(e,t){for(let r=0;r<c4;r++){const n=f4(e,t);if(!n)break;const a=m4(e,n);if(!a)break;e.activeFormattingElements.bookmark=n;const i=p4(e,a,n.element),s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),s&&b4(e,s,i),E4(e,a,n)}}function b0(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function T4(e,t){e._appendCommentNode(t,e.openElements.items[0])}function x4(e,t){e._appendCommentNode(t,e.document)}function hs(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let n=e.openElements.stackTop;n>=r;n--)e._setEndLocation(e.openElements.items[n],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(n);if(a&&!a.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&e._setEndLocation(i,t)}}}}function y4(e,t){e._setDocumentType(t);const r=t.forceQuirks?yt.QUIRKS:K2(t);Q2(t)||e._err(t,H.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=_.BEFORE_HTML}function gn(e,t){e._err(t,H.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,yt.QUIRKS),e.insertionMode=_.BEFORE_HTML,e._processToken(t)}function k4(e,t){t.tagID===d.HTML?(e._insertElement(t,V.HTML),e.insertionMode=_.BEFORE_HEAD):In(e,t)}function v4(e,t){const r=t.tagID;(r===d.HTML||r===d.HEAD||r===d.BODY||r===d.BR)&&In(e,t)}function In(e,t){e._insertFakeRootElement(),e.insertionMode=_.BEFORE_HEAD,e._processToken(t)}function A4(e,t){switch(t.tagID){case d.HTML:{et(e,t);break}case d.HEAD:{e._insertElement(t,V.HTML),e.headElement=e.openElements.current,e.insertionMode=_.IN_HEAD;break}default:Dn(e,t)}}function w4(e,t){const r=t.tagID;r===d.HEAD||r===d.BODY||r===d.HTML||r===d.BR?Dn(e,t):e._err(t,H.endTagWithoutMatchingOpenElement)}function Dn(e,t){e._insertFakeElement(M.HEAD,d.HEAD),e.headElement=e.openElements.current,e.insertionMode=_.IN_HEAD,e._processToken(t)}function Rt(e,t){switch(t.tagID){case d.HTML:{et(e,t);break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:{e._appendElement(t,V.HTML),t.ackSelfClosing=!0;break}case d.TITLE:{e._switchToTextParsing(t,qe.RCDATA);break}case d.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,qe.RAWTEXT):(e._insertElement(t,V.HTML),e.insertionMode=_.IN_HEAD_NO_SCRIPT);break}case d.NOFRAMES:case d.STYLE:{e._switchToTextParsing(t,qe.RAWTEXT);break}case d.SCRIPT:{e._switchToTextParsing(t,qe.SCRIPT_DATA);break}case d.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=_.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(_.IN_TEMPLATE);break}case d.HEAD:{e._err(t,H.misplacedStartTagForHeadElement);break}default:Ln(e,t)}}function S4(e,t){switch(t.tagID){case d.HEAD:{e.openElements.pop(),e.insertionMode=_.AFTER_HEAD;break}case d.BODY:case d.BR:case d.HTML:{Ln(e,t);break}case d.TEMPLATE:{Or(e,t);break}default:e._err(t,H.endTagWithoutMatchingOpenElement)}}function Or(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==d.TEMPLATE&&e._err(t,H.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,H.endTagWithoutMatchingOpenElement)}function Ln(e,t){e.openElements.pop(),e.insertionMode=_.AFTER_HEAD,e._processToken(t)}function C4(e,t){switch(t.tagID){case d.HTML:{et(e,t);break}case d.BASEFONT:case d.BGSOUND:case d.HEAD:case d.LINK:case d.META:case d.NOFRAMES:case d.STYLE:{Rt(e,t);break}case d.NOSCRIPT:{e._err(t,H.nestedNoscriptInHead);break}default:Rn(e,t)}}function N4(e,t){switch(t.tagID){case d.NOSCRIPT:{e.openElements.pop(),e.insertionMode=_.IN_HEAD;break}case d.BR:{Rn(e,t);break}default:e._err(t,H.endTagWithoutMatchingOpenElement)}}function Rn(e,t){const r=t.type===xe.EOF?H.openElementsLeftAfterEof:H.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=_.IN_HEAD,e._processToken(t)}function _4(e,t){switch(t.tagID){case d.HTML:{et(e,t);break}case d.BODY:{e._insertElement(t,V.HTML),e.framesetOk=!1,e.insertionMode=_.IN_BODY;break}case d.FRAMESET:{e._insertElement(t,V.HTML),e.insertionMode=_.IN_FRAMESET;break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{e._err(t,H.abandonedHeadElementChild),e.openElements.push(e.headElement,d.HEAD),Rt(e,t),e.openElements.remove(e.headElement);break}case d.HEAD:{e._err(t,H.misplacedStartTagForHeadElement);break}default:On(e,t)}}function I4(e,t){switch(t.tagID){case d.BODY:case d.HTML:case d.BR:{On(e,t);break}case d.TEMPLATE:{Or(e,t);break}default:e._err(t,H.endTagWithoutMatchingOpenElement)}}function On(e,t){e._insertFakeElement(M.BODY,d.BODY),e.insertionMode=_.IN_BODY,ti(e,t)}function ti(e,t){switch(t.type){case xe.CHARACTER:{Wc(e,t);break}case xe.WHITESPACE_CHARACTER:{Gc(e,t);break}case xe.COMMENT:{b0(e,t);break}case xe.START_TAG:{et(e,t);break}case xe.END_TAG:{ri(e,t);break}case xe.EOF:{Zc(e,t);break}}}function Gc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Wc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function D4(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function L4(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function R4(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,V.HTML),e.insertionMode=_.IN_FRAMESET)}function O4(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,V.HTML)}function M4(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&g0.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,V.HTML)}function P4(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,V.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function B4(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,V.HTML),r||(e.formElement=e.openElements.current))}function F4(e,t){e.framesetOk=!1;const r=t.tagID;for(let n=e.openElements.stackTop;n>=0;n--){const a=e.openElements.tagIDs[n];if(r===d.LI&&a===d.LI||(r===d.DD||r===d.DT)&&(a===d.DD||a===d.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==d.ADDRESS&&a!==d.DIV&&a!==d.P&&e._isSpecialElement(e.openElements.items[n],a))break}e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,V.HTML)}function z4(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,V.HTML),e.tokenizer.state=qe.PLAINTEXT}function H4(e,t){e.openElements.hasInScope(d.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,V.HTML),e.framesetOk=!1}function U4(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(M.A);r&&(cs(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,V.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function q4(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,V.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function j4(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(d.NOBR)&&(cs(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,V.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function $4(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,V.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Y4(e,t){e.treeAdapter.getDocumentMode(e.document)!==yt.QUIRKS&&e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,V.HTML),e.framesetOk=!1,e.insertionMode=_.IN_TABLE}function Xc(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,V.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Qc(e){const t=Fc(e,Cr.TYPE);return t!=null&&t.toLowerCase()===o4}function V4(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,V.HTML),Qc(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function G4(e,t){e._appendElement(t,V.HTML),t.ackSelfClosing=!0}function W4(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._appendElement(t,V.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function X4(e,t){t.tagName=M.IMG,t.tagID=d.IMG,Xc(e,t)}function Q4(e,t){e._insertElement(t,V.HTML),e.skipNextNewLine=!0,e.tokenizer.state=qe.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=_.TEXT}function K4(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,qe.RAWTEXT)}function Z4(e,t){e.framesetOk=!1,e._switchToTextParsing(t,qe.RAWTEXT)}function Wu(e,t){e._switchToTextParsing(t,qe.RAWTEXT)}function J4(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,V.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===_.IN_TABLE||e.insertionMode===_.IN_CAPTION||e.insertionMode===_.IN_TABLE_BODY||e.insertionMode===_.IN_ROW||e.insertionMode===_.IN_CELL?_.IN_SELECT_IN_TABLE:_.IN_SELECT}function e3(e,t){e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,V.HTML)}function t3(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,V.HTML)}function r3(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(d.RTC),e._insertElement(t,V.HTML)}function n3(e,t){e._reconstructActiveFormattingElements(),$c(t),os(t),t.selfClosing?e._appendElement(t,V.MATHML):e._insertElement(t,V.MATHML),t.ackSelfClosing=!0}function a3(e,t){e._reconstructActiveFormattingElements(),Yc(t),os(t),t.selfClosing?e._appendElement(t,V.SVG):e._insertElement(t,V.SVG),t.ackSelfClosing=!0}function Xu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,V.HTML)}function et(e,t){switch(t.tagID){case d.I:case d.S:case d.B:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.SMALL:case d.STRIKE:case d.STRONG:{q4(e,t);break}case d.A:{U4(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{M4(e,t);break}case d.P:case d.DL:case d.OL:case d.UL:case d.DIV:case d.DIR:case d.NAV:case d.MAIN:case d.MENU:case d.ASIDE:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.DETAILS:case d.ADDRESS:case d.ARTICLE:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{O4(e,t);break}case d.LI:case d.DD:case d.DT:{F4(e,t);break}case d.BR:case d.IMG:case d.WBR:case d.AREA:case d.EMBED:case d.KEYGEN:{Xc(e,t);break}case d.HR:{W4(e,t);break}case d.RB:case d.RTC:{t3(e,t);break}case d.RT:case d.RP:{r3(e,t);break}case d.PRE:case d.LISTING:{P4(e,t);break}case d.XMP:{K4(e,t);break}case d.SVG:{a3(e,t);break}case d.HTML:{D4(e,t);break}case d.BASE:case d.LINK:case d.META:case d.STYLE:case d.TITLE:case d.SCRIPT:case d.BGSOUND:case d.BASEFONT:case d.TEMPLATE:{Rt(e,t);break}case d.BODY:{L4(e,t);break}case d.FORM:{B4(e,t);break}case d.NOBR:{j4(e,t);break}case d.MATH:{n3(e,t);break}case d.TABLE:{Y4(e,t);break}case d.INPUT:{V4(e,t);break}case d.PARAM:case d.TRACK:case d.SOURCE:{G4(e,t);break}case d.IMAGE:{X4(e,t);break}case d.BUTTON:{H4(e,t);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{$4(e,t);break}case d.IFRAME:{Z4(e,t);break}case d.SELECT:{J4(e,t);break}case d.OPTION:case d.OPTGROUP:{e3(e,t);break}case d.NOEMBED:case d.NOFRAMES:{Wu(e,t);break}case d.FRAMESET:{R4(e,t);break}case d.TEXTAREA:{Q4(e,t);break}case d.NOSCRIPT:{e.options.scriptingEnabled?Wu(e,t):Xu(e,t);break}case d.PLAINTEXT:{z4(e,t);break}case d.COL:case d.TH:case d.TD:case d.TR:case d.HEAD:case d.FRAME:case d.TBODY:case d.TFOOT:case d.THEAD:case d.CAPTION:case d.COLGROUP:break;default:Xu(e,t)}}function i3(e,t){if(e.openElements.hasInScope(d.BODY)&&(e.insertionMode=_.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function s3(e,t){e.openElements.hasInScope(d.BODY)&&(e.insertionMode=_.AFTER_BODY,s1(e,t))}function u3(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function l3(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(d.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(d.FORM):r&&e.openElements.remove(r))}function o3(e){e.openElements.hasInButtonScope(d.P)||e._insertFakeElement(M.P,d.P),e._closePElement()}function c3(e){e.openElements.hasInListItemScope(d.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(d.LI),e.openElements.popUntilTagNamePopped(d.LI))}function h3(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function d3(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function f3(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function m3(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(M.BR,d.BR),e.openElements.pop(),e.framesetOk=!1}function Kc(e,t){const r=t.tagName,n=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],s=e.openElements.tagIDs[a];if(n===s&&(n!==d.UNKNOWN||e.treeAdapter.getTagName(i)===r)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,s))break}}function ri(e,t){switch(t.tagID){case d.A:case d.B:case d.I:case d.S:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.NOBR:case d.SMALL:case d.STRIKE:case d.STRONG:{cs(e,t);break}case d.P:{o3(e);break}case d.DL:case d.UL:case d.OL:case d.DIR:case d.DIV:case d.NAV:case d.PRE:case d.MAIN:case d.MENU:case d.ASIDE:case d.BUTTON:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.ADDRESS:case d.ARTICLE:case d.DETAILS:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.LISTING:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{u3(e,t);break}case d.LI:{c3(e);break}case d.DD:case d.DT:{h3(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{d3(e);break}case d.BR:{m3(e);break}case d.BODY:{i3(e,t);break}case d.HTML:{s3(e,t);break}case d.FORM:{l3(e);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{f3(e,t);break}case d.TEMPLATE:{Or(e,t);break}default:Kc(e,t)}}function Zc(e,t){e.tmplInsertionModeStack.length>0?i1(e,t):hs(e,t)}function p3(e,t){var r;t.tagID===d.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function g3(e,t){e._err(t,H.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Ri(e,t){if(e.openElements.currentTagId!==void 0&&Vc.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=_.IN_TABLE_TEXT,t.type){case xe.CHARACTER:{e1(e,t);break}case xe.WHITESPACE_CHARACTER:{Jc(e,t);break}}else Zn(e,t)}function b3(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,V.HTML),e.insertionMode=_.IN_CAPTION}function E3(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,V.HTML),e.insertionMode=_.IN_COLUMN_GROUP}function T3(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(M.COLGROUP,d.COLGROUP),e.insertionMode=_.IN_COLUMN_GROUP,ds(e,t)}function x3(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,V.HTML),e.insertionMode=_.IN_TABLE_BODY}function y3(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(M.TBODY,d.TBODY),e.insertionMode=_.IN_TABLE_BODY,ni(e,t)}function k3(e,t){e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function v3(e,t){Qc(t)?e._appendElement(t,V.HTML):Zn(e,t),t.ackSelfClosing=!0}function A3(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,V.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Zr(e,t){switch(t.tagID){case d.TD:case d.TH:case d.TR:{y3(e,t);break}case d.STYLE:case d.SCRIPT:case d.TEMPLATE:{Rt(e,t);break}case d.COL:{T3(e,t);break}case d.FORM:{A3(e,t);break}case d.TABLE:{k3(e,t);break}case d.TBODY:case d.TFOOT:case d.THEAD:{x3(e,t);break}case d.INPUT:{v3(e,t);break}case d.CAPTION:{b3(e,t);break}case d.COLGROUP:{E3(e,t);break}default:Zn(e,t)}}function qn(e,t){switch(t.tagID){case d.TABLE:{e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode());break}case d.TEMPLATE:{Or(e,t);break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:Zn(e,t)}}function Zn(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,ti(e,t),e.fosterParentingEnabled=r}function Jc(e,t){e.pendingCharacterTokens.push(t)}function e1(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function bn(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Zn(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const t1=new Set([d.CAPTION,d.COL,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]);function w3(e,t){const r=t.tagID;t1.has(r)?e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_.IN_TABLE,Zr(e,t)):et(e,t)}function S3(e,t){const r=t.tagID;switch(r){case d.CAPTION:case d.TABLE:{e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_.IN_TABLE,r===d.TABLE&&qn(e,t));break}case d.BODY:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:ri(e,t)}}function ds(e,t){switch(t.tagID){case d.HTML:{et(e,t);break}case d.COL:{e._appendElement(t,V.HTML),t.ackSelfClosing=!0;break}case d.TEMPLATE:{Rt(e,t);break}default:Oa(e,t)}}function C3(e,t){switch(t.tagID){case d.COLGROUP:{e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=_.IN_TABLE);break}case d.TEMPLATE:{Or(e,t);break}case d.COL:break;default:Oa(e,t)}}function Oa(e,t){e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=_.IN_TABLE,e._processToken(t))}function ni(e,t){switch(t.tagID){case d.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,V.HTML),e.insertionMode=_.IN_ROW;break}case d.TH:case d.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(M.TR,d.TR),e.insertionMode=_.IN_ROW,ai(e,t);break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_.IN_TABLE,Zr(e,t));break}default:Zr(e,t)}}function E0(e,t){const r=t.tagID;switch(t.tagID){case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_.IN_TABLE);break}case d.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=_.IN_TABLE,qn(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:case d.TR:break;default:qn(e,t)}}function ai(e,t){switch(t.tagID){case d.TH:case d.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,V.HTML),e.insertionMode=_.IN_CELL,e.activeFormattingElements.insertMarker();break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=_.IN_TABLE_BODY,ni(e,t));break}default:Zr(e,t)}}function r1(e,t){switch(t.tagID){case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=_.IN_TABLE_BODY);break}case d.TABLE:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=_.IN_TABLE_BODY,E0(e,t));break}case d.TBODY:case d.TFOOT:case d.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(d.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=_.IN_TABLE_BODY,E0(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:break;default:qn(e,t)}}function N3(e,t){const r=t.tagID;t1.has(r)?(e.openElements.hasInTableScope(d.TD)||e.openElements.hasInTableScope(d.TH))&&(e._closeTableCell(),ai(e,t)):et(e,t)}function _3(e,t){const r=t.tagID;switch(r){case d.TD:case d.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=_.IN_ROW);break}case d.TABLE:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),r1(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:break;default:ri(e,t)}}function n1(e,t){switch(t.tagID){case d.HTML:{et(e,t);break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._insertElement(t,V.HTML);break}case d.OPTGROUP:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._insertElement(t,V.HTML);break}case d.HR:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._appendElement(t,V.HTML),t.ackSelfClosing=!0;break}case d.INPUT:case d.KEYGEN:case d.TEXTAREA:case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),t.tagID!==d.SELECT&&e._processStartTag(t));break}case d.SCRIPT:case d.TEMPLATE:{Rt(e,t);break}}}function a1(e,t){switch(t.tagID){case d.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===d.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===d.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop();break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop();break}case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode());break}case d.TEMPLATE:{Or(e,t);break}}}function I3(e,t){const r=t.tagID;r===d.CAPTION||r===d.TABLE||r===d.TBODY||r===d.TFOOT||r===d.THEAD||r===d.TR||r===d.TD||r===d.TH?(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e._processStartTag(t)):n1(e,t)}function D3(e,t){const r=t.tagID;r===d.CAPTION||r===d.TABLE||r===d.TBODY||r===d.TFOOT||r===d.THEAD||r===d.TR||r===d.TD||r===d.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e.onEndTag(t)):a1(e,t)}function L3(e,t){switch(t.tagID){case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{Rt(e,t);break}case d.CAPTION:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.tmplInsertionModeStack[0]=_.IN_TABLE,e.insertionMode=_.IN_TABLE,Zr(e,t);break}case d.COL:{e.tmplInsertionModeStack[0]=_.IN_COLUMN_GROUP,e.insertionMode=_.IN_COLUMN_GROUP,ds(e,t);break}case d.TR:{e.tmplInsertionModeStack[0]=_.IN_TABLE_BODY,e.insertionMode=_.IN_TABLE_BODY,ni(e,t);break}case d.TD:case d.TH:{e.tmplInsertionModeStack[0]=_.IN_ROW,e.insertionMode=_.IN_ROW,ai(e,t);break}default:e.tmplInsertionModeStack[0]=_.IN_BODY,e.insertionMode=_.IN_BODY,et(e,t)}}function R3(e,t){t.tagID===d.TEMPLATE&&Or(e,t)}function i1(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):hs(e,t)}function O3(e,t){t.tagID===d.HTML?et(e,t):Ma(e,t)}function s1(e,t){var r;if(t.tagID===d.HTML){if(e.fragmentContext||(e.insertionMode=_.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===d.HTML){e._setEndLocation(e.openElements.items[0],t);const n=e.openElements.items[1];n&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(n))===null||r===void 0)&&r.endTag)&&e._setEndLocation(n,t)}}else Ma(e,t)}function Ma(e,t){e.insertionMode=_.IN_BODY,ti(e,t)}function M3(e,t){switch(t.tagID){case d.HTML:{et(e,t);break}case d.FRAMESET:{e._insertElement(t,V.HTML);break}case d.FRAME:{e._appendElement(t,V.HTML),t.ackSelfClosing=!0;break}case d.NOFRAMES:{Rt(e,t);break}}}function P3(e,t){t.tagID===d.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==d.FRAMESET&&(e.insertionMode=_.AFTER_FRAMESET))}function B3(e,t){switch(t.tagID){case d.HTML:{et(e,t);break}case d.NOFRAMES:{Rt(e,t);break}}}function F3(e,t){t.tagID===d.HTML&&(e.insertionMode=_.AFTER_AFTER_FRAMESET)}function z3(e,t){t.tagID===d.HTML?et(e,t):va(e,t)}function va(e,t){e.insertionMode=_.IN_BODY,ti(e,t)}function H3(e,t){switch(t.tagID){case d.HTML:{et(e,t);break}case d.NOFRAMES:{Rt(e,t);break}}}function U3(e,t){t.chars=Me,e._insertCharacters(t)}function q3(e,t){e._insertCharacters(t),e.framesetOk=!1}function u1(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==V.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function j3(e,t){if(a4(t))u1(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),n=e.treeAdapter.getNamespaceURI(r);n===V.MATHML?$c(t):n===V.SVG&&(i4(t),Yc(t)),os(t),t.selfClosing?e._appendElement(t,n):e._insertElement(t,n),t.ackSelfClosing=!0}}function $3(e,t){if(t.tagID===d.P||t.tagID===d.BR){u1(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const n=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(n)===V.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(n);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(r);break}}}M.AREA,M.BASE,M.BASEFONT,M.BGSOUND,M.BR,M.COL,M.EMBED,M.FRAME,M.HR,M.IMG,M.INPUT,M.KEYGEN,M.LINK,M.META,M.PARAM,M.SOURCE,M.TRACK,M.WBR;const ii=l1("end"),Yt=l1("start");function l1(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function o1(e){const t=Yt(e),r=ii(e);if(t&&r)return{start:t,end:r}}const Y3=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,V3=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Qu={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function c1(e,t){const r=r6(e),n=Rc("type",{handlers:{root:G3,element:W3,text:X3,comment:d1,doctype:Q3,raw:Z3},unknown:J3}),a={parser:r?new Gu(Qu):Gu.getFragmentParser(void 0,Qu),handle(u){n(u,a)},stitches:!1,options:t||{}};n(e,a),un(a,Yt());const i=r?a.parser.document:a.parser.getFragment(),s=n2(i,{file:a.options.file});return a.stitches&&Qr(s,"comment",function(u,l,o){const h=u;if(h.value.stitch&&o&&l!==void 0){const c=o.children;return c[l]=h.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function h1(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function G3(e,t){h1(e.children,t)}function W3(e,t){e6(e,t),h1(e.children,t),t6(e,t)}function X3(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:xe.CHARACTER,chars:e.value,location:Jn(e)};un(t,Yt(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Q3(e,t){const r={type:xe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Jn(e)};un(t,Yt(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function K3(e,t){t.stitches=!0;const r=n6(e);if("children"in e&&"children"in r){const n=c1({type:"root",children:e.children},t.options);r.children=n.children}d1({type:"comment",value:{stitch:r}},t)}function d1(e,t){const r=e.value,n={type:xe.COMMENT,data:r,location:Jn(e)};un(t,Yt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Z3(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,f1(t,Yt(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Y3,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function J3(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))K3(r,t);else{let n="";throw V3.has(r.type)&&(n=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+n)}}function un(e,t){f1(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=qe.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function f1(e,t){if(t&&t.offset!==void 0){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function e6(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===qe.PLAINTEXT)return;un(t,Yt(e));const n=t.parser.openElements.current;let a="namespaceURI"in n?n.namespaceURI:zt.html;a===zt.html&&r==="svg"&&(a=zt.svg);const i=l2({...e,children:[]},{space:a===zt.svg?"svg":"html"}),s={type:xe.START_TAG,tagName:r,tagID:sn(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:Jn(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function t6(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&g2.includes(r)||t.parser.tokenizer.state===qe.PLAINTEXT)return;un(t,ii(e));const n={type:xe.END_TAG,tagName:r,tagID:sn(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Jn(e)};t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===qe.RCDATA||t.parser.tokenizer.state===qe.RAWTEXT||t.parser.tokenizer.state===qe.SCRIPT_DATA)&&(t.parser.tokenizer.state=qe.DATA)}function r6(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Jn(e){const t=Yt(e)||{line:void 0,column:void 0,offset:void 0},r=ii(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function n6(e){return"children"in e?Nr({...e,children:[]}):Nr(e)}function a6(e){return function(t,r){return c1(t,{...e,file:r})}}const wr=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Ku={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...wr,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...wr],h2:[["className","sr-only"]],img:[...wr,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...wr,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...wr],table:[...wr],ul:[...wr,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},hr={}.hasOwnProperty;function i6(e,t){let r={type:"root",children:[]};const n={schema:t?{...Ku,...t}:Ku,stack:[]},a=m1(n,e);return a&&(Array.isArray(a)?a.length===1?r=a[0]:r.children=a:r=a),r}function m1(e,t){if(t&&typeof t=="object"){const r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return s6(e,r);case"doctype":return u6(e,r);case"element":return l6(e,r);case"root":return o6(e,r);case"text":return c6(e,r)}}}function s6(e,t){if(e.schema.allowComments){const r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),i={type:"comment",value:n<0?r:r.slice(0,n)};return ea(i,t),i}}function u6(e,t){if(e.schema.allowDoctypes){const r={type:"doctype"};return ea(r,t),r}}function l6(e,t){const r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);const n=p1(e,t.children),a=h6(e,t.properties);e.stack.pop();let i=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(i=!0,e.schema.ancestors&&hr.call(e.schema.ancestors,r))){const u=e.schema.ancestors[r];let l=-1;for(i=!1;++l<u.length;)e.stack.includes(u[l])&&(i=!0)}if(!i)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;const s={type:"element",tagName:r,properties:a,children:n};return ea(s,t),s}function o6(e,t){const n={type:"root",children:p1(e,t.children)};return ea(n,t),n}function c6(e,t){const n={type:"text",value:typeof t.value=="string"?t.value:""};return ea(n,t),n}function p1(e,t){const r=[];if(Array.isArray(t)){const n=t;let a=-1;for(;++a<n.length;){const i=m1(e,n[a]);i&&(Array.isArray(i)?r.push(...i):r.push(i))}}return r}function h6(e,t){const r=e.stack[e.stack.length-1],n=e.schema.attributes,a=e.schema.required,i=n&&hr.call(n,r)?n[r]:void 0,s=n&&hr.call(n,"*")?n["*"]:void 0,u=t&&typeof t=="object"?t:{},l={};let o;for(o in u)if(hr.call(u,o)){const h=u[o];let c=Zu(e,Ju(i,o),o,h);c==null&&(c=Zu(e,Ju(s,o),o,h)),c!=null&&(l[o]=c)}if(a&&hr.call(a,r)){const h=a[r];for(o in h)hr.call(h,o)&&!hr.call(l,o)&&(l[o]=h[o])}return l}function Zu(e,t,r,n){return t?Array.isArray(n)?d6(e,t,r,n):g1(e,t,r,n):void 0}function d6(e,t,r,n){let a=-1;const i=[];for(;++a<n.length;){const s=g1(e,t,r,n[a]);(typeof s=="number"||typeof s=="string")&&i.push(s)}return i}function g1(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&f6(e,r,n)){if(typeof t=="object"&&t.length>1){let a=!1,i=0;for(;++i<t.length;){const s=t[i];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(n))){a=!0;break}}else if(s===n){a=!0;break}}if(!a)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function f6(e,t,r){const n=e.schema.protocols&&hr.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;const a=String(r),i=a.indexOf(":"),s=a.indexOf("?"),u=a.indexOf("#"),l=a.indexOf("/");if(i<0||l>-1&&i>l||s>-1&&i>s||u>-1&&i>u)return!0;let o=-1;for(;++o<n.length;){const h=n[o];if(i===h.length&&a.slice(0,h.length)===h)return!0}return!1}function ea(e,t){const r=o1(t);t.data&&(e.data=Nr(t.data)),r&&(e.position=r)}function Ju(e,t){let r,n=-1;if(e)for(;++n<e.length;){const a=e[n],i=typeof a=="string"?a:a[0];if(i===t)return a;i==="data*"&&(r=a)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}function m6(e){return function(t){return i6(t,e)}}const Zt={eof:null,asterisk:42,underscore:95,tilde:126},Jr={attentionSideAfter:2,characterGroupPunctuation:2,characterGroupWhitespace:1},Mt={data:"data",characterEscape:"characterEscape",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",strong:"strong",strongSequence:"strongSequence",strongText:"strongText"},at=xr(/[A-Za-z]/),Je=xr(/[\dA-Za-z]/),p6=xr(/[#-'*+\--9=?A-Z^-~]/);function Pa(e){return e!==null&&(e<32||e===127)}const T0=xr(/\d/),g6=xr(/[\dA-Fa-f]/),b6=xr(/[!-/:-@[-`{-~]/);function ue(e){return e!==null&&e<-2}function _e(e){return e!==null&&(e<0||e===32)}function ke(e){return e===-2||e===-1||e===32}const si=xr(/\p{P}|\p{S}/u),_r=xr(/\s/);function xr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function E6(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function T6(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function x6(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function y6(e){return E6(e)?"ambiguous":T6(e)?"fullwidth":e===8361||e>=65377&&e<=65470||e>=65474&&e<=65479||e>=65482&&e<=65487||e>=65490&&e<=65495||e>=65498&&e<=65500||e>=65512&&e<=65518?"halfwidth":e>=32&&e<=126||e===162||e===163||e===165||e===166||e===172||e===175||e>=10214&&e<=10221||e===10629||e===10630?"narrow":x6(e)?"wide":"neutral"}function k6(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function v6(e){return k6(e),y6(e)}var A6=Object.defineProperty,w6=(e,t,r)=>t in e?A6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S6=(e,t,r)=>w6(e,t+"",r);function C6(e){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e))}function N6(e){if(!e||e<4352)return!1;switch(v6(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!C6(e);case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999?null:!1;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}function _6(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function I6(e){return e!==null&&e>=65024&&e<=65038}var D6=b1(/\p{P}|\p{S}/u),L6=b1(/\s/);function b1(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCodePoint(r))}}var Et;(e=>{e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(Et||(Et={}));function Wr(e){if(e===Zt.eof||_e(e)||L6(e))return Jr.characterGroupWhitespace;let t=0;if(e>=4352){if(I6(e))return Et.nonEmojiGeneralUseVS;switch(N6(e)){case null:return Et.ivs;case!0:t|=Et.cjk;break}}return D6(e)&&(t|=Jr.characterGroupPunctuation),t}function E1(e,t,r){if(!P6(e))return e;const n=t(),a=Wr(n);return!n||jn(a)?e:_6(n,r)?Et.cjkPunctuation:R6(a)}function R6(e){return e&~Et.ivs}function jn(e){return!!(e&Jr.characterGroupWhitespace)}function Ba(e){return(e&Et.cjkPunctuation)===Jr.characterGroupPunctuation}function x0(e){return!!(e&Et.cjk)}function O6(e){return e===Et.ivs}function M6(e){return!!(e&Et.cjkOrIvs)}function P6(e){return e===Et.nonEmojiGeneralUseVS}function el(e){return!!(e&Et.spaceOrPunctuation)}function T1(e){return!!(e&&e>=55296&&e<=56319)}function x1(e){return!!(e&&e>=56320&&e<=57343)}function y1(e,t,r){if(t._bufferIndex<2)return e;const a=r({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return a&&a>=65536?a:e}function B6(e,t,r){const n=e>=65536?2:1;if(t._bufferIndex<1+n)return null;const a=t._bufferIndex-n-2,i=r({start:{...t,_bufferIndex:a>=0?a:0},end:{...t,_bufferIndex:t._bufferIndex-n}}),s=i.charCodeAt(i.length-1);if(Number.isNaN(s))return null;if(i.length<2||s<56320||57343<s)return s;const u=i.codePointAt(0);return u&&u>=65536?u:s}var k1=class{constructor(e,t,r){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=r,S6(this,"cachedValue")}value(){return this.cachedValue===void 0&&(this.cachedValue=B6(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function v1(e,t,r){const n=r({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return n&&n>=65536?n:e}function Ze(e,t,r,n){const a=e.length;let i=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);i<n.length;)s=n.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function Ke(e,t){return e.length>0?(Ze(e,e.length,0,t),e):t}function ln(e,t,r){const n=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!n.includes(i)&&(t=i(t,r),n.push(i))}return t}var Oi={name:"attention",resolveAll:F6,tokenize:z6};function F6(e,t){let r=-1,n,a,i,s,u,l,o,h;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const c={...e[n][1].end},m={...e[r][1].start};tl(c,-l),tl(m,l),s={type:l>1?Mt.strongSequence:Mt.emphasisSequence,start:c,end:{...e[n][1].end}},u={type:l>1?Mt.strongSequence:Mt.emphasisSequence,start:{...e[r][1].start},end:m},i={type:l>1?Mt.strongText:Mt.emphasisText,start:{...e[n][1].end},end:{...e[r][1].start}},a={type:l>1?Mt.strong:Mt.emphasis,start:{...s.start},end:{...u.end}},e[n][1].end={...s.start},e[r][1].start={...u.end},o=[],e[n][1].end.offset-e[n][1].start.offset&&(o=Ke(o,[["enter",e[n][1],t],["exit",e[n][1],t]])),o=Ke(o,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),t.parser.constructs.insideSpan.null,o=Ke(o,ln(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),o=Ke(o,[["exit",i,t],["enter",u,t],["exit",u,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(h=2,o=Ke(o,[["enter",e[r][1],t],["exit",e[r][1],t]])):h=0,Ze(e,n-1,r-n+3,o),r=n+o.length-h-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function z6(e,t){const r=this.parser.constructs.attentionMarkers.null,{now:n,sliceSerialize:a,previous:i}=this,s=x1(i)?y1(i,n(),a):i,u=Wr(s),l=new k1(s,n(),a),o=E1(u,l.value.bind(l),s);let h;return c;function c(g){return h=g,e.enter("attentionSequence"),m(g)}function m(g){if(g===h)return e.consume(g),m;const E=e.exit("attentionSequence"),y=T1(g)?v1(g,n(),a):g,v=Wr(y),A=Ba(o),w=A||jn(o),L=Ba(v),z=L||jn(v),q=M6(o),O=!z||L&&(w||q)||r.includes(g),Y=!w||A&&(z||x0(v))||r.includes(s);return E._open=!!(h===Zt.asterisk?O:O&&(el(o)||!Y)),E._close=!!(h===Zt.asterisk?Y:Y&&(el(v)||!O)),t(g)}}function tl(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function H6(){return{text:{[Zt.asterisk]:Oi,[Zt.underscore]:Oi},insideSpan:{null:[Oi]}}}function U6(){const e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(H6())}function q6(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:i,resolveAll:a};return r==null&&(r=!0),{text:{[Zt.tilde]:n},insideSpan:{null:[n]},attentionMarkers:{null:[Zt.tilde]}};function a(s,u){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let o=l;for(;o--;)if(s[o][0]==="exit"&&s[o][1].type==="strikethroughSequenceTemporary"&&s[o][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[o][1].end.offset-s[o][1].start.offset){s[l][1].type="strikethroughSequence",s[o][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},s[o][1].start),end:Object.assign({},s[l][1].end)},c={type:"strikethroughText",start:Object.assign({},s[o][1].end),end:Object.assign({},s[l][1].start)},m=[["enter",h,u],["enter",s[o][1],u],["exit",s[o][1],u],["enter",c,u]],g=u.parser.constructs.insideSpan.null;g&&Ze(m,m.length,0,ln(g,s.slice(o+1,l),u)),Ze(m,m.length,0,[["exit",c,u],["enter",s[l][1],u],["exit",s[l][1],u],["exit",h,u]]),Ze(s,o-1,l-o+3,m),l=o+m.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type=Mt.data);return s}function i(s,u,l){const{now:o,sliceSerialize:h,previous:c}=this,m=x1(c)?y1(c,o(),h):c,g=Wr(m),E=new k1(m,o(),h),y=E1(g,E.value.bind(E),m),v=this.events;let A=0;return w;function w(z){return m===Zt.tilde&&v[v.length-1][1].type!==Mt.characterEscape?l(z):(s.enter("strikethroughSequenceTemporary"),L(z))}function L(z){const q=Wr(m);if(z===Zt.tilde)return A>1?l(z):(s.consume(z),A++,L);if(A<2&&!r)return l(z);const O=s.exit("strikethroughSequenceTemporary"),Y=T1(z)?v1(z,o(),h):z,J=Wr(Y),P=Ba(y)||jn(y),U=Ba(J)||jn(J),le=x0(y)||O6(q);return O._open=!U||J===Jr.attentionSideAfter&&(P||le),O._close=!P||q===Jr.attentionSideAfter&&(U||x0(J)),u(z)}}}function j6(e){const t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(q6(e))}function rl(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,a=r.indexOf(t);for(;a!==-1;)n++,a=r.indexOf(t,a+t.length);return n}function $6(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Y6(e,t,r){const a=Vn((r||{}).ignore||[]),i=V6(t);let s=-1;for(;++s<i.length;)O0(e,"text",u);function u(o,h){let c=-1,m;for(;++c<h.length;){const g=h[c],E=m?m.children:void 0;if(a(g,E?E.indexOf(g):void 0,m))return;m=g}if(m)return l(o,h)}function l(o,h){const c=h[h.length-1],m=i[s][0],g=i[s][1];let E=0;const v=c.children.indexOf(o);let A=!1,w=[];m.lastIndex=0;let L=m.exec(o.value);for(;L;){const z=L.index,q={index:L.index,input:L.input,stack:[...h,o]};let O=g(...L,q);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?m.lastIndex=z+1:(E!==z&&w.push({type:"text",value:o.value.slice(E,z)}),Array.isArray(O)?w.push(...O):O&&w.push(O),E=z+L[0].length,A=!0),!m.global)break;L=m.exec(o.value)}return A?(E<o.value.length&&w.push({type:"text",value:o.value.slice(E)}),c.children.splice(v,1,...w)):w=[o],v+w.length}}function V6(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const a=r[n];t.push([G6(a[0]),W6(a[1])])}return t}function G6(e){return typeof e=="string"?new RegExp($6(e),"g"):e}function W6(e){return typeof e=="function"?e:function(){return e}}const Mi="phrasing",Pi=["autolink","link","image","label"];function X6(){return{transforms:[r5],enter:{literalAutolink:K6,literalAutolinkEmail:Bi,literalAutolinkHttp:Bi,literalAutolinkWww:Bi},exit:{literalAutolink:t5,literalAutolinkEmail:e5,literalAutolinkHttp:Z6,literalAutolinkWww:J6}}}function Q6(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Mi,notInConstruct:Pi},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Mi,notInConstruct:Pi},{character:":",before:"[ps]",after:"\\/",inConstruct:Mi,notInConstruct:Pi}]}}function K6(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bi(e){this.config.enter.autolinkProtocol.call(this,e)}function Z6(e){this.config.exit.autolinkProtocol.call(this,e)}function J6(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function e5(e){this.config.exit.autolinkEmail.call(this,e)}function t5(e){this.exit(e)}function r5(e){Y6(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,n5],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,a5]],{ignore:["link","linkReference"]})}function n5(e,t,r,n,a){let i="";if(!A1(a)||(/^w/i.test(t)&&(r=t+r,t="",i="http://"),!i5(r)))return!1;const s=s5(r+n);if(!s[0])return!1;const u={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[u,{type:"text",value:s[1]}]:u}function a5(e,t,r,n){return!A1(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function i5(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function s5(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const a=rl(e,"(");let i=rl(e,")");for(;n!==-1&&a>i;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),i++;return[e,r]}function A1(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||_r(r)||si(r))&&(!t||r!==47)}function Dt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}w1.peek=p5;function u5(){this.buffer()}function l5(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function o5(){this.buffer()}function c5(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function h5(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Dt(this.sliceSerialize(e)).toLowerCase(),r.label=t}function d5(e){this.exit(e)}function f5(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Dt(this.sliceSerialize(e)).toLowerCase(),r.label=t}function m5(e){this.exit(e)}function p5(){return"["}function w1(e,t,r,n){const a=r.createTracker(n);let i=a.move("[^");const s=r.enter("footnoteReference"),u=r.enter("reference");return i+=a.move(r.safe(r.associationId(e),{after:"]",before:i})),u(),s(),i+=a.move("]"),i}function g5(){return{enter:{gfmFootnoteCallString:u5,gfmFootnoteCall:l5,gfmFootnoteDefinitionLabelString:o5,gfmFootnoteDefinition:c5},exit:{gfmFootnoteCallString:h5,gfmFootnoteCall:d5,gfmFootnoteDefinitionLabelString:f5,gfmFootnoteDefinition:m5}}}function b5(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:w1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,a,i,s){const u=i.createTracker(s);let l=u.move("[^");const o=i.enter("footnoteDefinition"),h=i.enter("label");return l+=u.move(i.safe(i.associationId(n),{before:l,after:"]"})),h(),l+=u.move("]:"),n.children&&n.children.length>0&&(u.shift(4),l+=u.move((t?`
266
+ `:" ")+i.indentLines(i.containerFlow(n,u.current()),t?S1:E5))),o(),l}}function E5(e,t,r){return t===0?e:S1(e,t,r)}function S1(e,t,r){return(r?"":" ")+e}const T5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];C1.peek=A5;function x5(){return{canContainEols:["delete"],enter:{strikethrough:k5},exit:{strikethrough:v5}}}function y5(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:T5}],handlers:{delete:C1}}}function k5(e){this.enter({type:"delete",children:[]},e)}function v5(e){this.exit(e)}function C1(e,t,r,n){const a=r.createTracker(n),i=r.enter("strikethrough");let s=a.move("~~");return s+=r.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),i(),s}function A5(){return"~"}function w5(e){return e.length}function S5(e,t){const r=t||{},n=(r.align||[]).concat(),a=r.stringLength||w5,i=[],s=[],u=[],l=[];let o=0,h=-1;for(;++h<e.length;){const y=[],v=[];let A=-1;for(e[h].length>o&&(o=e[h].length);++A<e[h].length;){const w=C5(e[h][A]);if(r.alignDelimiters!==!1){const L=a(w);v[A]=L,(l[A]===void 0||L>l[A])&&(l[A]=L)}y.push(w)}s[h]=y,u[h]=v}let c=-1;if(typeof n=="object"&&"length"in n)for(;++c<o;)i[c]=nl(n[c]);else{const y=nl(n);for(;++c<o;)i[c]=y}c=-1;const m=[],g=[];for(;++c<o;){const y=i[c];let v="",A="";y===99?(v=":",A=":"):y===108?v=":":y===114&&(A=":");let w=r.alignDelimiters===!1?1:Math.max(1,l[c]-v.length-A.length);const L=v+"-".repeat(w)+A;r.alignDelimiters!==!1&&(w=v.length+w+A.length,w>l[c]&&(l[c]=w),g[c]=w),m[c]=L}s.splice(1,0,m),u.splice(1,0,g),h=-1;const E=[];for(;++h<s.length;){const y=s[h],v=u[h];c=-1;const A=[];for(;++c<o;){const w=y[c]||"";let L="",z="";if(r.alignDelimiters!==!1){const q=l[c]-(v[c]||0),O=i[c];O===114?L=" ".repeat(q):O===99?q%2?(L=" ".repeat(q/2+.5),z=" ".repeat(q/2-.5)):(L=" ".repeat(q/2),z=L):z=" ".repeat(q)}r.delimiterStart!==!1&&!c&&A.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&w==="")&&(r.delimiterStart!==!1||c)&&A.push(" "),r.alignDelimiters!==!1&&A.push(L),A.push(w),r.alignDelimiters!==!1&&A.push(z),r.padding!==!1&&A.push(" "),(r.delimiterEnd!==!1||c!==o-1)&&A.push("|")}E.push(r.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return E.join(`
267
+ `)}function C5(e){return e==null?"":String(e)}function nl(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function N5(e,t,r,n){const a=r.enter("blockquote"),i=r.createTracker(n);i.move("> "),i.shift(2);const s=r.indentLines(r.containerFlow(e,i.current()),_5);return a(),s}function _5(e,t,r){return">"+(r?"":" ")+e}function I5(e,t){return al(e,t.inConstruct,!0)&&!al(e,t.notInConstruct,!1)}function al(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function il(e,t,r,n){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===`
268
+ `&&I5(r.stack,r.unsafe[a]))return/[ \t]/.test(n.before)?"":" ";return`\\
269
+ `}function N1(e,t){const r=String(e);let n=r.indexOf(t),a=n,i=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===a?++i>s&&(s=i):i=1,a=n+t.length,n=r.indexOf(t,a);return s}function D5(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function L5(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function R5(e,t,r,n){const a=L5(r),i=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(D5(e,r)){const c=r.enter("codeIndented"),m=r.indentLines(i,O5);return c(),m}const u=r.createTracker(n),l=a.repeat(Math.max(N1(i,a)+1,3)),o=r.enter("codeFenced");let h=u.move(l);if(e.lang){const c=r.enter(`codeFencedLang${s}`);h+=u.move(r.safe(e.lang,{before:h,after:" ",encode:["`"],...u.current()})),c()}if(e.lang&&e.meta){const c=r.enter(`codeFencedMeta${s}`);h+=u.move(" "),h+=u.move(r.safe(e.meta,{before:h,after:`
270
+ `,encode:["`"],...u.current()})),c()}return h+=u.move(`
271
+ `),i&&(h+=u.move(i+`
272
+ `)),h+=u.move(l),o(),h}function O5(e,t,r){return(r?"":" ")+e}function fs(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function M5(e,t,r,n){const a=fs(r),i=a==='"'?"Quote":"Apostrophe",s=r.enter("definition");let u=r.enter("label");const l=r.createTracker(n);let o=l.move("[");return o+=l.move(r.safe(r.associationId(e),{before:o,after:"]",...l.current()})),o+=l.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=r.enter("destinationLiteral"),o+=l.move("<"),o+=l.move(r.safe(e.url,{before:o,after:">",...l.current()})),o+=l.move(">")):(u=r.enter("destinationRaw"),o+=l.move(r.safe(e.url,{before:o,after:e.title?" ":`
273
+ `,...l.current()}))),u(),e.title&&(u=r.enter(`title${i}`),o+=l.move(" "+a),o+=l.move(r.safe(e.title,{before:o,after:a,...l.current()})),o+=l.move(a),u()),s(),o}function P5(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function $n(e){return"&#x"+e.toString(16).toUpperCase()+";"}function en(e){if(e===null||_e(e)||_r(e))return 1;if(si(e))return 2}function Fa(e,t,r){const n=en(e),a=en(t);return n===void 0?a===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}_1.peek=B5;function _1(e,t,r,n){const a=P5(r),i=r.enter("emphasis"),s=r.createTracker(n),u=s.move(a);let l=s.move(r.containerPhrasing(e,{after:a,before:u,...s.current()}));const o=l.charCodeAt(0),h=Fa(n.before.charCodeAt(n.before.length-1),o,a);h.inside&&(l=$n(o)+l.slice(1));const c=l.charCodeAt(l.length-1),m=Fa(n.after.charCodeAt(0),c,a);m.inside&&(l=l.slice(0,-1)+$n(c));const g=s.move(a);return i(),r.attentionEncodeSurroundingInfo={after:m.outside,before:h.outside},u+l+g}function B5(e,t,r){return r.options.emphasis||"*"}const F5={};function ms(e,t){const r=F5,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return I1(e,n,a)}function I1(e,t,r){if(z5(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return sl(e.children,t,r)}return Array.isArray(e)?sl(e,t,r):""}function sl(e,t,r){const n=[];let a=-1;for(;++a<e.length;)n[a]=I1(e[a],t,r);return n.join("")}function z5(e){return!!(e&&typeof e=="object")}function H5(e,t){let r=!1;return Qr(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,Ji}),!!((!e.depth||e.depth<3)&&ms(e)&&(t.options.setext||r))}function U5(e,t,r,n){const a=Math.max(Math.min(6,e.depth||1),1),i=r.createTracker(n);if(H5(e,r)){const h=r.enter("headingSetext"),c=r.enter("phrasing"),m=r.containerPhrasing(e,{...i.current(),before:`
274
+ `,after:`
275
+ `});return c(),h(),m+`
276
+ `+(a===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
277
+ `))+1))}const s="#".repeat(a),u=r.enter("headingAtx"),l=r.enter("phrasing");i.move(s+" ");let o=r.containerPhrasing(e,{before:"# ",after:`
278
+ `,...i.current()});return/^[\t ]/.test(o)&&(o=$n(o.charCodeAt(0))+o.slice(1)),o=o?s+" "+o:s,r.options.closeAtx&&(o+=" "+s),l(),u(),o}D1.peek=q5;function D1(e){return e.value||""}function q5(){return"<"}L1.peek=j5;function L1(e,t,r,n){const a=fs(r),i=a==='"'?"Quote":"Apostrophe",s=r.enter("image");let u=r.enter("label");const l=r.createTracker(n);let o=l.move("![");return o+=l.move(r.safe(e.alt,{before:o,after:"]",...l.current()})),o+=l.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=r.enter("destinationLiteral"),o+=l.move("<"),o+=l.move(r.safe(e.url,{before:o,after:">",...l.current()})),o+=l.move(">")):(u=r.enter("destinationRaw"),o+=l.move(r.safe(e.url,{before:o,after:e.title?" ":")",...l.current()}))),u(),e.title&&(u=r.enter(`title${i}`),o+=l.move(" "+a),o+=l.move(r.safe(e.title,{before:o,after:a,...l.current()})),o+=l.move(a),u()),o+=l.move(")"),s(),o}function j5(){return"!"}R1.peek=$5;function R1(e,t,r,n){const a=e.referenceType,i=r.enter("imageReference");let s=r.enter("label");const u=r.createTracker(n);let l=u.move("![");const o=r.safe(e.alt,{before:l,after:"]",...u.current()});l+=u.move(o+"]["),s();const h=r.stack;r.stack=[],s=r.enter("reference");const c=r.safe(r.associationId(e),{before:l,after:"]",...u.current()});return s(),r.stack=h,i(),a==="full"||!o||o!==c?l+=u.move(c+"]"):a==="shortcut"?l=l.slice(0,-1):l+=u.move("]"),l}function $5(){return"!"}O1.peek=Y5;function O1(e,t,r){let n=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(n);)a+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++i<r.unsafe.length;){const s=r.unsafe[i],u=r.compilePattern(s);let l;if(s.atBreak)for(;l=u.exec(n);){let o=l.index;n.charCodeAt(o)===10&&n.charCodeAt(o-1)===13&&o--,n=n.slice(0,o)+" "+n.slice(l.index+1)}}return a+n+a}function Y5(){return"`"}function M1(e,t){const r=ms(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}P1.peek=V5;function P1(e,t,r,n){const a=fs(r),i=a==='"'?"Quote":"Apostrophe",s=r.createTracker(n);let u,l;if(M1(e,r)){const h=r.stack;r.stack=[],u=r.enter("autolink");let c=s.move("<");return c+=s.move(r.containerPhrasing(e,{before:c,after:">",...s.current()})),c+=s.move(">"),u(),r.stack=h,c}u=r.enter("link"),l=r.enter("label");let o=s.move("[");return o+=s.move(r.containerPhrasing(e,{before:o,after:"](",...s.current()})),o+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),o+=s.move("<"),o+=s.move(r.safe(e.url,{before:o,after:">",...s.current()})),o+=s.move(">")):(l=r.enter("destinationRaw"),o+=s.move(r.safe(e.url,{before:o,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${i}`),o+=s.move(" "+a),o+=s.move(r.safe(e.title,{before:o,after:a,...s.current()})),o+=s.move(a),l()),o+=s.move(")"),u(),o}function V5(e,t,r){return M1(e,r)?"<":"["}B1.peek=G5;function B1(e,t,r,n){const a=e.referenceType,i=r.enter("linkReference");let s=r.enter("label");const u=r.createTracker(n);let l=u.move("[");const o=r.containerPhrasing(e,{before:l,after:"]",...u.current()});l+=u.move(o+"]["),s();const h=r.stack;r.stack=[],s=r.enter("reference");const c=r.safe(r.associationId(e),{before:l,after:"]",...u.current()});return s(),r.stack=h,i(),a==="full"||!o||o!==c?l+=u.move(c+"]"):a==="shortcut"?l=l.slice(0,-1):l+=u.move("]"),l}function G5(){return"["}function ps(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function W5(e){const t=ps(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function X5(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function F1(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Q5(e,t,r,n){const a=r.enter("list"),i=r.bulletCurrent;let s=e.ordered?X5(r):ps(r);const u=e.ordered?s==="."?")":".":W5(r);let l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&h&&(!h.children||!h.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),F1(r)===s&&h){let c=-1;for(;++c<e.children.length;){const m=e.children[c];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=u),r.bulletCurrent=s;const o=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=i,a(),o}function K5(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Z5(e,t,r,n){const a=K5(r);let i=r.bulletCurrent||ps(r);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let s=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const u=r.createTracker(n);u.move(i+" ".repeat(s-i.length)),u.shift(s);const l=r.enter("listItem"),o=r.indentLines(r.containerFlow(e,u.current()),h);return l(),o;function h(c,m,g){return m?(g?"":" ".repeat(s))+c:(g?i:i+" ".repeat(s-i.length))+c}}function J5(e,t,r,n){const a=r.enter("paragraph"),i=r.enter("phrasing"),s=r.containerPhrasing(e,n);return i(),a(),s}const eg=Vn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function tg(e,t,r,n){return(e.children.some(function(s){return eg(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function rg(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}z1.peek=ng;function z1(e,t,r,n){const a=rg(r),i=r.enter("strong"),s=r.createTracker(n),u=s.move(a+a);let l=s.move(r.containerPhrasing(e,{after:a,before:u,...s.current()}));const o=l.charCodeAt(0),h=Fa(n.before.charCodeAt(n.before.length-1),o,a);h.inside&&(l=$n(o)+l.slice(1));const c=l.charCodeAt(l.length-1),m=Fa(n.after.charCodeAt(0),c,a);m.inside&&(l=l.slice(0,-1)+$n(c));const g=s.move(a+a);return i(),r.attentionEncodeSurroundingInfo={after:m.outside,before:h.outside},u+l+g}function ng(e,t,r){return r.options.strong||"*"}function ag(e,t,r,n){return r.safe(e.value,n)}function ig(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function sg(e,t,r){const n=(F1(r)+(r.options.ruleSpaces?" ":"")).repeat(ig(r));return r.options.ruleSpaces?n.slice(0,-1):n}const H1={blockquote:N5,break:il,code:R5,definition:M5,emphasis:_1,hardBreak:il,heading:U5,html:D1,image:L1,imageReference:R1,inlineCode:O1,link:P1,linkReference:B1,list:Q5,listItem:Z5,paragraph:J5,root:tg,strong:z1,text:ag,thematicBreak:sg},ul=document.createElement("i");function gs(e){const t="&"+e+";";ul.innerHTML=t;const r=ul.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function U1(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}const ug=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lg(e){return e.replace(ug,og)}function og(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),i=a===120||a===88;return U1(r.slice(i?2:1),i?16:10)}return gs(r)||e}function cg(){return{enter:{table:hg,tableData:ll,tableHeader:ll,tableRow:fg},exit:{codeText:mg,table:dg,tableData:Fi,tableHeader:Fi,tableRow:Fi}}}function hg(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function dg(e){this.exit(e),this.data.inTable=void 0}function fg(e){this.enter({type:"tableRow",children:[]},e)}function Fi(e){this.exit(e)}function ll(e){this.enter({type:"tableCell",children:[]},e)}function mg(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,pg));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function pg(e,t){return t==="|"?t:e}function gg(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,a=t.stringLength,i=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
279
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:s,tableCell:l,tableRow:u}};function s(g,E,y,v){return o(h(g,y,v),g.align)}function u(g,E,y,v){const A=c(g,y,v),w=o([A]);return w.slice(0,w.indexOf(`
280
+ `))}function l(g,E,y,v){const A=y.enter("tableCell"),w=y.enter("phrasing"),L=y.containerPhrasing(g,{...v,before:i,after:i});return w(),A(),L}function o(g,E){return S5(g,{align:E,alignDelimiters:n,padding:r,stringLength:a})}function h(g,E,y){const v=g.children;let A=-1;const w=[],L=E.enter("table");for(;++A<v.length;)w[A]=c(v[A],E,y);return L(),w}function c(g,E,y){const v=g.children;let A=-1;const w=[],L=E.enter("tableRow");for(;++A<v.length;)w[A]=l(v[A],g,E,y);return L(),w}function m(g,E,y){let v=H1.inlineCode(g,E,y);return y.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function bg(){return{exit:{taskListCheckValueChecked:ol,taskListCheckValueUnchecked:ol,paragraph:Tg}}}function Eg(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:xg}}}function ol(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Tg(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const a=t.children;let i=-1,s;for(;++i<a.length;){const u=a[i];if(u.type==="paragraph"){s=u;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function xg(e,t,r,n){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",u=r.createTracker(n);i&&u.move(s);let l=H1.listItem(e,t,r,{...n,...u.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,o)),l;function o(h){return h+s}}function yg(){return[X6(),g5(),x5(),cg(),bg()]}function kg(e){return{extensions:[Q6(),b5(e),y5(),gg(e),Eg()]}}const cl={}.hasOwnProperty;function q1(e){const t={};let r=-1;for(;++r<e.length;)vg(t,e[r]);return t}function vg(e,t){let r;for(r in t){const a=(cl.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let s;if(i)for(s in i){cl.call(a,s)||(a[s]=[]);const u=i[s];Ag(a[s],Array.isArray(u)?u:u?[u]:[])}}}function Ag(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Ze(e,0,0,n)}const wg={tokenize:Dg,partial:!0},j1={tokenize:Lg,partial:!0},$1={tokenize:Rg,partial:!0},Y1={tokenize:Og,partial:!0},Sg={tokenize:Mg,partial:!0},V1={name:"wwwAutolink",tokenize:_g,previous:W1},G1={name:"protocolAutolink",tokenize:Ig,previous:X1},ir={name:"emailAutolink",tokenize:Ng,previous:Q1},Vt={};function Cg(){return{text:Vt}}let Sr=48;for(;Sr<123;)Vt[Sr]=ir,Sr++,Sr===58?Sr=65:Sr===91&&(Sr=97);Vt[43]=ir;Vt[45]=ir;Vt[46]=ir;Vt[95]=ir;Vt[72]=[ir,G1];Vt[104]=[ir,G1];Vt[87]=[ir,V1];Vt[119]=[ir,V1];function Ng(e,t,r){const n=this;let a,i;return s;function s(c){return!y0(c)||!Q1.call(n,n.previous)||bs(n.events)?r(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(c))}function u(c){return y0(c)?(e.consume(c),u):c===64?(e.consume(c),l):r(c)}function l(c){return c===46?e.check(Sg,h,o)(c):c===45||c===95||Je(c)?(i=!0,e.consume(c),l):h(c)}function o(c){return e.consume(c),a=!0,l}function h(c){return i&&a&&at(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):r(c)}}function _g(e,t,r){const n=this;return a;function a(s){return s!==87&&s!==119||!W1.call(n,n.previous)||bs(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(wg,e.attempt(j1,e.attempt($1,i),r),r)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function Ig(e,t,r){const n=this;let a="",i=!1;return s;function s(c){return(c===72||c===104)&&X1.call(n,n.previous)&&!bs(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(c),e.consume(c),u):r(c)}function u(c){if(at(c)&&a.length<5)return a+=String.fromCodePoint(c),e.consume(c),u;if(c===58){const m=a.toLowerCase();if(m==="http"||m==="https")return e.consume(c),l}return r(c)}function l(c){return c===47?(e.consume(c),i?o:(i=!0,l)):r(c)}function o(c){return c===null||Pa(c)||_e(c)||_r(c)||si(c)?r(c):e.attempt(j1,e.attempt($1,h),r)(c)}function h(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function Dg(e,t,r){let n=0;return a;function a(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),a):s===46&&n===3?(e.consume(s),i):r(s)}function i(s){return s===null?r(s):t(s)}}function Lg(e,t,r){let n,a,i;return s;function s(o){return o===46||o===95?e.check(Y1,l,u)(o):o===null||_e(o)||_r(o)||o!==45&&si(o)?l(o):(i=!0,e.consume(o),s)}function u(o){return o===95?n=!0:(a=n,n=void 0),e.consume(o),s}function l(o){return a||n||!i?r(o):t(o)}}function Rg(e,t){let r=0,n=0;return a;function a(s){return s===40?(r++,e.consume(s),a):s===41&&n<r?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Y1,t,i)(s):s===null||_e(s)||_r(s)?t(s):(e.consume(s),a)}function i(s){return s===41&&n++,e.consume(s),a}}function Og(e,t,r){return n;function n(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),n):u===38?(e.consume(u),i):u===93?(e.consume(u),a):u===60||u===null||_e(u)||_r(u)?t(u):r(u)}function a(u){return u===null||u===40||u===91||_e(u)||_r(u)?t(u):n(u)}function i(u){return at(u)?s(u):r(u)}function s(u){return u===59?(e.consume(u),n):at(u)?(e.consume(u),s):r(u)}}function Mg(e,t,r){return n;function n(i){return e.consume(i),a}function a(i){return Je(i)?r(i):t(i)}}function W1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||_e(e)}function X1(e){return!at(e)}function Q1(e){return!(e===47||y0(e))}function y0(e){return e===43||e===45||e===46||e===95||Je(e)}function bs(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}function on(e){const t=[];let r=-1,n=0,a=0;for(;++r<e.length;){const i=e.charCodeAt(r);let s="";if(i===37&&Je(e.charCodeAt(r+1))&&Je(e.charCodeAt(r+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const u=e.charCodeAt(r+1);i<56320&&u>56319&&u<57344?(s=String.fromCharCode(i,u),a=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+a+1,s=""),a&&(r+=a,a=0)}return t.join("")+e.slice(n)}const k0={name:"attention",resolveAll:Pg,tokenize:Bg};function Pg(e,t){let r=-1,n,a,i,s,u,l,o,h;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const c={...e[n][1].end},m={...e[r][1].start};hl(c,-l),hl(m,l),s={type:l>1?"strongSequence":"emphasisSequence",start:c,end:{...e[n][1].end}},u={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:m},i={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},a={type:l>1?"strong":"emphasis",start:{...s.start},end:{...u.end}},e[n][1].end={...s.start},e[r][1].start={...u.end},o=[],e[n][1].end.offset-e[n][1].start.offset&&(o=Ke(o,[["enter",e[n][1],t],["exit",e[n][1],t]])),o=Ke(o,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),o=Ke(o,ln(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),o=Ke(o,[["exit",i,t],["enter",u,t],["exit",u,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(h=2,o=Ke(o,[["enter",e[r][1],t],["exit",e[r][1],t]])):h=0,Ze(e,n-1,r-n+3,o),r=n+o.length-h-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Bg(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,a=en(n);let i;return s;function s(l){return i=l,e.enter("attentionSequence"),u(l)}function u(l){if(l===i)return e.consume(l),u;const o=e.exit("attentionSequence"),h=en(l),c=!h||h===2&&a||r.includes(l),m=!a||a===2&&h||r.includes(n);return o._open=!!(i===42?c:c&&(a||!m)),o._close=!!(i===42?m:m&&(h||!c)),t(l)}}function hl(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Fg={name:"autolink",tokenize:zg};function zg(e,t,r){let n=0;return a;function a(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(g){return at(g)?(e.consume(g),s):g===64?r(g):o(g)}function s(g){return g===43||g===45||g===46||Je(g)?(n=1,u(g)):o(g)}function u(g){return g===58?(e.consume(g),n=0,l):(g===43||g===45||g===46||Je(g))&&n++<32?(e.consume(g),u):(n=0,o(g))}function l(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||Pa(g)?r(g):(e.consume(g),l)}function o(g){return g===64?(e.consume(g),h):p6(g)?(e.consume(g),o):r(g)}function h(g){return Je(g)?c(g):r(g)}function c(g){return g===46?(e.consume(g),n=0,h):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):m(g)}function m(g){if((g===45||Je(g))&&n++<63){const E=g===45?m:c;return e.consume(g),E}return r(g)}}function ye(e,t,r,n){const a=n?n-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(l){return ke(l)?(e.enter(r),u(l)):t(l)}function u(l){return ke(l)&&i++<a?(e.consume(l),u):(e.exit(r),t(l))}}const ta={partial:!0,tokenize:Hg};function Hg(e,t,r){return n;function n(i){return ke(i)?ye(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ue(i)?t(i):r(i)}}const K1={continuation:{tokenize:qg},exit:jg,name:"blockQuote",tokenize:Ug};function Ug(e,t,r){const n=this;return a;function a(s){if(s===62){const u=n.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return r(s)}function i(s){return ke(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function qg(e,t,r){const n=this;return a;function a(s){return ke(s)?ye(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(K1,t,r)(s)}}function jg(e){e.exit("blockQuote")}const Z1={name:"characterEscape",tokenize:$g};function $g(e,t,r){return n;function n(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return b6(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(i)}}const J1={name:"characterReference",tokenize:Yg};function Yg(e,t,r){const n=this;let a=0,i,s;return u;function u(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),l}function l(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),o):(e.enter("characterReferenceValue"),i=31,s=Je,h(c))}function o(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=g6,h):(e.enter("characterReferenceValue"),i=7,s=T0,h(c))}function h(c){if(c===59&&a){const m=e.exit("characterReferenceValue");return s===Je&&!gs(n.sliceSerialize(m))?r(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(c)&&a++<i?(e.consume(c),h):r(c)}}const dl={partial:!0,tokenize:Gg},fl={concrete:!0,name:"codeFenced",tokenize:Vg};function Vg(e,t,r){const n=this,a={partial:!0,tokenize:q};let i=0,s=0,u;return l;function l(O){return o(O)}function o(O){const Y=n.events[n.events.length-1];return i=Y&&Y[1].type==="linePrefix"?Y[2].sliceSerialize(Y[1],!0).length:0,u=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(O)}function h(O){return O===u?(s++,e.consume(O),h):s<3?r(O):(e.exit("codeFencedFenceSequence"),ke(O)?ye(e,c,"whitespace")(O):c(O))}function c(O){return O===null||ue(O)?(e.exit("codeFencedFence"),n.interrupt?t(O):e.check(dl,y,z)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(O))}function m(O){return O===null||ue(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(O)):ke(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ye(e,g,"whitespace")(O)):O===96&&O===u?r(O):(e.consume(O),m)}function g(O){return O===null||ue(O)?c(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(O))}function E(O){return O===null||ue(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(O)):O===96&&O===u?r(O):(e.consume(O),E)}function y(O){return e.attempt(a,z,v)(O)}function v(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),A}function A(O){return i>0&&ke(O)?ye(e,w,"linePrefix",i+1)(O):w(O)}function w(O){return O===null||ue(O)?e.check(dl,y,z)(O):(e.enter("codeFlowValue"),L(O))}function L(O){return O===null||ue(O)?(e.exit("codeFlowValue"),w(O)):(e.consume(O),L)}function z(O){return e.exit("codeFenced"),t(O)}function q(O,Y,J){let Q=0;return P;function P(ee){return O.enter("lineEnding"),O.consume(ee),O.exit("lineEnding"),Z}function Z(ee){return O.enter("codeFencedFence"),ke(ee)?ye(O,U,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):U(ee)}function U(ee){return ee===u?(O.enter("codeFencedFenceSequence"),le(ee)):J(ee)}function le(ee){return ee===u?(Q++,O.consume(ee),le):Q>=s?(O.exit("codeFencedFenceSequence"),ke(ee)?ye(O,ae,"whitespace")(ee):ae(ee)):J(ee)}function ae(ee){return ee===null||ue(ee)?(O.exit("codeFencedFence"),Y(ee)):J(ee)}}}function Gg(e,t,r){const n=this;return a;function a(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}const zi={name:"codeIndented",tokenize:Xg},Wg={partial:!0,tokenize:Qg};function Xg(e,t,r){const n=this;return a;function a(o){return e.enter("codeIndented"),ye(e,i,"linePrefix",5)(o)}function i(o){const h=n.events[n.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?s(o):r(o)}function s(o){return o===null?l(o):ue(o)?e.attempt(Wg,s,l)(o):(e.enter("codeFlowValue"),u(o))}function u(o){return o===null||ue(o)?(e.exit("codeFlowValue"),s(o)):(e.consume(o),u)}function l(o){return e.exit("codeIndented"),t(o)}}function Qg(e,t,r){const n=this;return a;function a(s){return n.parser.lazy[n.now().line]?r(s):ue(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):ye(e,i,"linePrefix",5)(s)}function i(s){const u=n.events[n.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):ue(s)?a(s):r(s)}}const Kg={name:"codeText",previous:Jg,resolve:Zg,tokenize:e7};function Zg(e){let t=e.length-4,r=3,n,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)a===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(a=n):(n===t||e[n][1].type==="lineEnding")&&(e[a][1].type="codeTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),t-=n-a-2,n=a+2),a=void 0);return e}function Jg(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function e7(e,t,r){let n=0,a,i;return s;function s(c){return e.enter("codeText"),e.enter("codeTextSequence"),u(c)}function u(c){return c===96?(e.consume(c),n++,u):(e.exit("codeTextSequence"),l(c))}function l(c){return c===null?r(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),l):c===96?(i=e.enter("codeTextSequence"),a=0,h(c)):ue(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):(e.enter("codeTextData"),o(c))}function o(c){return c===null||c===32||c===96||ue(c)?(e.exit("codeTextData"),l(c)):(e.consume(c),o)}function h(c){return c===96?(e.consume(c),a++,h):a===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(i.type="codeTextData",o(c))}}class t7{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const a=r||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return n&&En(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),En(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),En(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);En(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);En(this.left,r.reverse())}}}function En(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function eh(e){const t={};let r=-1,n,a,i,s,u,l,o;const h=new t7(e);for(;++r<h.length;){for(;r in t;)r=t[r];if(n=h.get(r),r&&n[1].type==="chunkFlow"&&h.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,r7(h,r)),r=t[r],o=!0);else if(n[1]._container){for(i=r,a=void 0;i--;)if(s=h.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(h.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(n[1].end={...h.get(a)[1].start},u=h.slice(a,r),u.unshift(n),h.splice(a,r-a+1,u))}}return Ze(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!o}function r7(e,t){const r=e.get(t)[1],n=e.get(t)[2];let a=t-1;const i=[];let s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const u=s.events,l=[],o={};let h,c,m=-1,g=r,E=0,y=0;const v=[y];for(;g;){for(;e.get(++a)[1]!==g;);i.push(a),g._tokenizer||(h=n.sliceStream(g),g.next||h.push(null),c&&s.defineSkip(g.start),g._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(h),g._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),c=g,g=g.next}for(g=r;++m<u.length;)u[m][0]==="exit"&&u[m-1][0]==="enter"&&u[m][1].type===u[m-1][1].type&&u[m][1].start.line!==u[m][1].end.line&&(y=m+1,v.push(y),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(s.events=[],g?(g._tokenizer=void 0,g.previous=void 0):v.pop(),m=v.length;m--;){const A=u.slice(v[m],v[m+1]),w=i.pop();l.push([w,w+A.length-1]),e.splice(w,2,A)}for(l.reverse(),m=-1;++m<l.length;)o[E+l[m][0]]=E+l[m][1],E+=l[m][1]-l[m][0]-1;return o}const n7={resolve:i7,tokenize:s7},a7={partial:!0,tokenize:u7};function i7(e){return eh(e),e}function s7(e,t){let r;return n;function n(u){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(u)}function a(u){return u===null?i(u):ue(u)?e.check(a7,s,i)(u):(e.consume(u),a)}function i(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function s(u){return e.consume(u),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}}function u7(e,t,r){const n=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ye(e,i,"linePrefix")}function i(s){if(s===null||ue(s))return r(s);const u=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function th(e,t,r,n,a,i,s,u,l){const o=l||Number.POSITIVE_INFINITY;let h=0;return c;function c(A){return A===60?(e.enter(n),e.enter(a),e.enter(i),e.consume(A),e.exit(i),m):A===null||A===32||A===41||Pa(A)?r(A):(e.enter(n),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),y(A))}function m(A){return A===62?(e.enter(i),e.consume(A),e.exit(i),e.exit(a),e.exit(n),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===62?(e.exit("chunkString"),e.exit(u),m(A)):A===null||A===60||ue(A)?r(A):(e.consume(A),A===92?E:g)}function E(A){return A===60||A===62||A===92?(e.consume(A),g):g(A)}function y(A){return!h&&(A===null||A===41||_e(A))?(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(n),t(A)):h<o&&A===40?(e.consume(A),h++,y):A===41?(e.consume(A),h--,y):A===null||A===32||A===40||Pa(A)?r(A):(e.consume(A),A===92?v:y)}function v(A){return A===40||A===41||A===92?(e.consume(A),y):y(A)}}function rh(e,t,r,n,a,i){const s=this;let u=0,l;return o;function o(g){return e.enter(n),e.enter(a),e.consume(g),e.exit(a),e.enter(i),h}function h(g){return u>999||g===null||g===91||g===93&&!l||g===94&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs?r(g):g===93?(e.exit(i),e.enter(a),e.consume(g),e.exit(a),e.exit(n),t):ue(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),c(g))}function c(g){return g===null||g===91||g===93||ue(g)||u++>999?(e.exit("chunkString"),h(g)):(e.consume(g),l||(l=!ke(g)),g===92?m:c)}function m(g){return g===91||g===92||g===93?(e.consume(g),u++,c):c(g)}}function nh(e,t,r,n,a,i){let s;return u;function u(m){return m===34||m===39||m===40?(e.enter(n),e.enter(a),e.consume(m),e.exit(a),s=m===40?41:m,l):r(m)}function l(m){return m===s?(e.enter(a),e.consume(m),e.exit(a),e.exit(n),t):(e.enter(i),o(m))}function o(m){return m===s?(e.exit(i),l(s)):m===null?r(m):ue(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ye(e,o,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===s||m===null||ue(m)?(e.exit("chunkString"),o(m)):(e.consume(m),m===92?c:h)}function c(m){return m===s||m===92?(e.consume(m),h):h(m)}}function Mn(e,t){let r;return n;function n(a){return ue(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,n):ke(a)?ye(e,n,r?"linePrefix":"lineSuffix")(a):t(a)}}const l7={name:"definition",tokenize:c7},o7={partial:!0,tokenize:h7};function c7(e,t,r){const n=this;let a;return i;function i(g){return e.enter("definition"),s(g)}function s(g){return rh.call(n,e,u,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function u(g){return a=Dt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),l):r(g)}function l(g){return _e(g)?Mn(e,o)(g):o(g)}function o(g){return th(e,h,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function h(g){return e.attempt(o7,c,c)(g)}function c(g){return ke(g)?ye(e,m,"whitespace")(g):m(g)}function m(g){return g===null||ue(g)?(e.exit("definition"),n.parser.defined.push(a),t(g)):r(g)}}function h7(e,t,r){return n;function n(u){return _e(u)?Mn(e,a)(u):r(u)}function a(u){return nh(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function i(u){return ke(u)?ye(e,s,"whitespace")(u):s(u)}function s(u){return u===null||ue(u)?t(u):r(u)}}const d7={name:"hardBreakEscape",tokenize:f7};function f7(e,t,r){return n;function n(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ue(i)?(e.exit("hardBreakEscape"),t(i)):r(i)}}const m7={name:"headingAtx",resolve:p7,tokenize:g7};function p7(e,t){let r=e.length-2,n=3,a,i;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(a={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},i={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Ze(e,n,r-n+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function g7(e,t,r){let n=0;return a;function a(h){return e.enter("atxHeading"),i(h)}function i(h){return e.enter("atxHeadingSequence"),s(h)}function s(h){return h===35&&n++<6?(e.consume(h),s):h===null||_e(h)?(e.exit("atxHeadingSequence"),u(h)):r(h)}function u(h){return h===35?(e.enter("atxHeadingSequence"),l(h)):h===null||ue(h)?(e.exit("atxHeading"),t(h)):ke(h)?ye(e,u,"whitespace")(h):(e.enter("atxHeadingText"),o(h))}function l(h){return h===35?(e.consume(h),l):(e.exit("atxHeadingSequence"),u(h))}function o(h){return h===null||h===35||_e(h)?(e.exit("atxHeadingText"),u(h)):(e.consume(h),o)}}const b7=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ml=["pre","script","style","textarea"],E7={concrete:!0,name:"htmlFlow",resolveTo:y7,tokenize:k7},T7={partial:!0,tokenize:A7},x7={partial:!0,tokenize:v7};function y7(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function k7(e,t,r){const n=this;let a,i,s,u,l;return o;function o(D){return h(D)}function h(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),c}function c(D){return D===33?(e.consume(D),m):D===47?(e.consume(D),i=!0,y):D===63?(e.consume(D),a=3,n.interrupt?t:N):at(D)?(e.consume(D),s=String.fromCharCode(D),v):r(D)}function m(D){return D===45?(e.consume(D),a=2,g):D===91?(e.consume(D),a=5,u=0,E):at(D)?(e.consume(D),a=4,n.interrupt?t:N):r(D)}function g(D){return D===45?(e.consume(D),n.interrupt?t:N):r(D)}function E(D){const Xe="CDATA[";return D===Xe.charCodeAt(u++)?(e.consume(D),u===Xe.length?n.interrupt?t:U:E):r(D)}function y(D){return at(D)?(e.consume(D),s=String.fromCharCode(D),v):r(D)}function v(D){if(D===null||D===47||D===62||_e(D)){const Xe=D===47,Qe=s.toLowerCase();return!Xe&&!i&&ml.includes(Qe)?(a=1,n.interrupt?t(D):U(D)):b7.includes(s.toLowerCase())?(a=6,Xe?(e.consume(D),A):n.interrupt?t(D):U(D)):(a=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(D):i?w(D):L(D))}return D===45||Je(D)?(e.consume(D),s+=String.fromCharCode(D),v):r(D)}function A(D){return D===62?(e.consume(D),n.interrupt?t:U):r(D)}function w(D){return ke(D)?(e.consume(D),w):P(D)}function L(D){return D===47?(e.consume(D),P):D===58||D===95||at(D)?(e.consume(D),z):ke(D)?(e.consume(D),L):P(D)}function z(D){return D===45||D===46||D===58||D===95||Je(D)?(e.consume(D),z):q(D)}function q(D){return D===61?(e.consume(D),O):ke(D)?(e.consume(D),q):L(D)}function O(D){return D===null||D===60||D===61||D===62||D===96?r(D):D===34||D===39?(e.consume(D),l=D,Y):ke(D)?(e.consume(D),O):J(D)}function Y(D){return D===l?(e.consume(D),l=null,Q):D===null||ue(D)?r(D):(e.consume(D),Y)}function J(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||_e(D)?q(D):(e.consume(D),J)}function Q(D){return D===47||D===62||ke(D)?L(D):r(D)}function P(D){return D===62?(e.consume(D),Z):r(D)}function Z(D){return D===null||ue(D)?U(D):ke(D)?(e.consume(D),Z):r(D)}function U(D){return D===45&&a===2?(e.consume(D),be):D===60&&a===1?(e.consume(D),se):D===62&&a===4?(e.consume(D),Ee):D===63&&a===3?(e.consume(D),N):D===93&&a===5?(e.consume(D),fe):ue(D)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(T7,Ce,le)(D)):D===null||ue(D)?(e.exit("htmlFlowData"),le(D)):(e.consume(D),U)}function le(D){return e.check(x7,ae,Ce)(D)}function ae(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),ee}function ee(D){return D===null||ue(D)?le(D):(e.enter("htmlFlowData"),U(D))}function be(D){return D===45?(e.consume(D),N):U(D)}function se(D){return D===47?(e.consume(D),s="",Te):U(D)}function Te(D){if(D===62){const Xe=s.toLowerCase();return ml.includes(Xe)?(e.consume(D),Ee):U(D)}return at(D)&&s.length<8?(e.consume(D),s+=String.fromCharCode(D),Te):U(D)}function fe(D){return D===93?(e.consume(D),N):U(D)}function N(D){return D===62?(e.consume(D),Ee):D===45&&a===2?(e.consume(D),N):U(D)}function Ee(D){return D===null||ue(D)?(e.exit("htmlFlowData"),Ce(D)):(e.consume(D),Ee)}function Ce(D){return e.exit("htmlFlow"),t(D)}}function v7(e,t,r){const n=this;return a;function a(s){return ue(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):r(s)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function A7(e,t,r){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(ta,t,r)}}const w7={name:"htmlText",tokenize:S7};function S7(e,t,r){const n=this;let a,i,s;return u;function u(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),l}function l(N){return N===33?(e.consume(N),o):N===47?(e.consume(N),q):N===63?(e.consume(N),L):at(N)?(e.consume(N),J):r(N)}function o(N){return N===45?(e.consume(N),h):N===91?(e.consume(N),i=0,E):at(N)?(e.consume(N),w):r(N)}function h(N){return N===45?(e.consume(N),g):r(N)}function c(N){return N===null?r(N):N===45?(e.consume(N),m):ue(N)?(s=c,se(N)):(e.consume(N),c)}function m(N){return N===45?(e.consume(N),g):c(N)}function g(N){return N===62?be(N):N===45?m(N):c(N)}function E(N){const Ee="CDATA[";return N===Ee.charCodeAt(i++)?(e.consume(N),i===Ee.length?y:E):r(N)}function y(N){return N===null?r(N):N===93?(e.consume(N),v):ue(N)?(s=y,se(N)):(e.consume(N),y)}function v(N){return N===93?(e.consume(N),A):y(N)}function A(N){return N===62?be(N):N===93?(e.consume(N),A):y(N)}function w(N){return N===null||N===62?be(N):ue(N)?(s=w,se(N)):(e.consume(N),w)}function L(N){return N===null?r(N):N===63?(e.consume(N),z):ue(N)?(s=L,se(N)):(e.consume(N),L)}function z(N){return N===62?be(N):L(N)}function q(N){return at(N)?(e.consume(N),O):r(N)}function O(N){return N===45||Je(N)?(e.consume(N),O):Y(N)}function Y(N){return ue(N)?(s=Y,se(N)):ke(N)?(e.consume(N),Y):be(N)}function J(N){return N===45||Je(N)?(e.consume(N),J):N===47||N===62||_e(N)?Q(N):r(N)}function Q(N){return N===47?(e.consume(N),be):N===58||N===95||at(N)?(e.consume(N),P):ue(N)?(s=Q,se(N)):ke(N)?(e.consume(N),Q):be(N)}function P(N){return N===45||N===46||N===58||N===95||Je(N)?(e.consume(N),P):Z(N)}function Z(N){return N===61?(e.consume(N),U):ue(N)?(s=Z,se(N)):ke(N)?(e.consume(N),Z):Q(N)}function U(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(e.consume(N),a=N,le):ue(N)?(s=U,se(N)):ke(N)?(e.consume(N),U):(e.consume(N),ae)}function le(N){return N===a?(e.consume(N),a=void 0,ee):N===null?r(N):ue(N)?(s=le,se(N)):(e.consume(N),le)}function ae(N){return N===null||N===34||N===39||N===60||N===61||N===96?r(N):N===47||N===62||_e(N)?Q(N):(e.consume(N),ae)}function ee(N){return N===47||N===62||_e(N)?Q(N):r(N)}function be(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):r(N)}function se(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),Te}function Te(N){return ke(N)?ye(e,fe,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):fe(N)}function fe(N){return e.enter("htmlTextData"),s(N)}}const Es={name:"labelEnd",resolveAll:I7,resolveTo:D7,tokenize:L7},C7={tokenize:R7},N7={tokenize:O7},_7={tokenize:M7};function I7(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const a=n.type==="labelImage"?4:2;n.type="data",t+=a}}return e.length!==r.length&&Ze(e,0,e.length,r),e}function D7(e,t){let r=e.length,n=0,a,i,s,u;for(;r--;)if(a=e[r][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[r][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=r,a.type!=="labelLink")){n=2;break}}else a.type==="labelEnd"&&(s=r);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},o={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},h={type:"labelText",start:{...e[i+n+2][1].end},end:{...e[s-2][1].start}};return u=[["enter",l,t],["enter",o,t]],u=Ke(u,e.slice(i+1,i+n+3)),u=Ke(u,[["enter",h,t]]),u=Ke(u,ln(t.parser.constructs.insideSpan.null,e.slice(i+n+4,s-3),t)),u=Ke(u,[["exit",h,t],e[s-2],e[s-1],["exit",o,t]]),u=Ke(u,e.slice(s+1)),u=Ke(u,[["exit",l,t]]),Ze(e,i,e.length,u),e}function L7(e,t,r){const n=this;let a=n.events.length,i,s;for(;a--;)if((n.events[a][1].type==="labelImage"||n.events[a][1].type==="labelLink")&&!n.events[a][1]._balanced){i=n.events[a][1];break}return u;function u(m){return i?i._inactive?c(m):(s=n.parser.defined.includes(Dt(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),l):r(m)}function l(m){return m===40?e.attempt(C7,h,s?h:c)(m):m===91?e.attempt(N7,h,s?o:c)(m):s?h(m):c(m)}function o(m){return e.attempt(_7,h,c)(m)}function h(m){return t(m)}function c(m){return i._balanced=!0,r(m)}}function R7(e,t,r){return n;function n(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),a}function a(c){return _e(c)?Mn(e,i)(c):i(c)}function i(c){return c===41?h(c):th(e,s,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function s(c){return _e(c)?Mn(e,l)(c):h(c)}function u(c){return r(c)}function l(c){return c===34||c===39||c===40?nh(e,o,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):h(c)}function o(c){return _e(c)?Mn(e,h)(c):h(c)}function h(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):r(c)}}function O7(e,t,r){const n=this;return a;function a(u){return rh.call(n,e,i,s,"reference","referenceMarker","referenceString")(u)}function i(u){return n.parser.defined.includes(Dt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(u):r(u)}function s(u){return r(u)}}function M7(e,t,r){return n;function n(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):r(i)}}const P7={name:"labelStartImage",resolveAll:Es.resolveAll,tokenize:B7};function B7(e,t,r){const n=this;return a;function a(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),i}function i(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),s):r(u)}function s(u){return u===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(u):t(u)}}const F7={name:"labelStartLink",resolveAll:Es.resolveAll,tokenize:z7};function z7(e,t,r){const n=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const Hi={name:"lineEnding",tokenize:H7};function H7(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ye(e,t,"linePrefix")}}const Aa={name:"thematicBreak",tokenize:U7};function U7(e,t,r){let n=0,a;return i;function i(o){return e.enter("thematicBreak"),s(o)}function s(o){return a=o,u(o)}function u(o){return o===a?(e.enter("thematicBreakSequence"),l(o)):n>=3&&(o===null||ue(o))?(e.exit("thematicBreak"),t(o)):r(o)}function l(o){return o===a?(e.consume(o),n++,l):(e.exit("thematicBreakSequence"),ke(o)?ye(e,u,"whitespace")(o):u(o))}}const ot={continuation:{tokenize:Y7},exit:G7,name:"list",tokenize:$7},q7={partial:!0,tokenize:W7},j7={partial:!0,tokenize:V7};function $7(e,t,r){const n=this,a=n.events[n.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return u;function u(g){const E=n.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!n.containerState.marker||g===n.containerState.marker:T0(g)){if(n.containerState.type||(n.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Aa,r,o)(g):o(g);if(!n.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(g)}return r(g)}function l(g){return T0(g)&&++s<10?(e.consume(g),l):(!n.interrupt||s<2)&&(n.containerState.marker?g===n.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),o(g)):r(g)}function o(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||g,e.check(ta,n.interrupt?r:h,e.attempt(q7,m,c))}function h(g){return n.containerState.initialBlankLine=!0,i++,m(g)}function c(g){return ke(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):r(g)}function m(g){return n.containerState.size=i+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function Y7(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(ta,a,i);function a(u){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ye(e,t,"listItemIndent",n.containerState.size+1)(u)}function i(u){return n.containerState.furtherBlankLines||!ke(u)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(u)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(j7,t,s)(u))}function s(u){return n.containerState._closeFlow=!0,n.interrupt=void 0,ye(e,e.attempt(ot,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function V7(e,t,r){const n=this;return ye(e,a,"listItemIndent",n.containerState.size+1);function a(i){const s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(i):r(i)}}function G7(e){e.exit(this.containerState.type)}function W7(e,t,r){const n=this;return ye(e,a,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const s=n.events[n.events.length-1];return!ke(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):r(i)}}const pl={name:"setextUnderline",resolveTo:X7,tokenize:Q7};function X7(e,t){let r=e.length,n,a,i;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(a=r)}else e[r][1].type==="content"&&e.splice(r,1),!i&&e[r][1].type==="definition"&&(i=r);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function Q7(e,t,r){const n=this;let a;return i;function i(o){let h=n.events.length,c;for(;h--;)if(n.events[h][1].type!=="lineEnding"&&n.events[h][1].type!=="linePrefix"&&n.events[h][1].type!=="content"){c=n.events[h][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||c)?(e.enter("setextHeadingLine"),a=o,s(o)):r(o)}function s(o){return e.enter("setextHeadingLineSequence"),u(o)}function u(o){return o===a?(e.consume(o),u):(e.exit("setextHeadingLineSequence"),ke(o)?ye(e,l,"lineSuffix")(o):l(o))}function l(o){return o===null||ue(o)?(e.exit("setextHeadingLine"),t(o)):r(o)}}const K7={tokenize:i8,partial:!0};function Z7(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:r8,continuation:{tokenize:n8},exit:a8}},text:{91:{name:"gfmFootnoteCall",tokenize:t8},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:J7,resolveTo:e8}}}}function J7(e,t,r){const n=this;let a=n.events.length;const i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s;for(;a--;){const l=n.events[a][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return u;function u(l){if(!s||!s._balanced)return r(l);const o=Dt(n.sliceSerialize({start:s.end,end:n.now()}));return o.codePointAt(0)!==94||!i.includes(o.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function e8(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},u=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...u),e}function t8(e,t,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i=0,s;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),l}function l(c){return c!==94?r(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",o)}function o(c){if(i>999||c===93&&!s||c===null||c===91||_e(c))return r(c);if(c===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return a.includes(Dt(n.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(c)}return _e(c)||(s=!0),i++,e.consume(c),c===92?h:o}function h(c){return c===91||c===92||c===93?(e.consume(c),i++,o):o(c)}}function r8(e,t,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i,s=0,u;return l;function l(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),o}function o(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):r(E)}function h(E){if(s>999||E===93&&!u||E===null||E===91||_e(E))return r(E);if(E===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return i=Dt(n.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return _e(E)||(u=!0),s++,e.consume(E),E===92?c:h}function c(E){return E===91||E===92||E===93?(e.consume(E),s++,h):h(E)}function m(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),a.includes(i)||a.push(i),ye(e,g,"gfmFootnoteDefinitionWhitespace")):r(E)}function g(E){return t(E)}}function n8(e,t,r){return e.check(ta,t,e.attempt(K7,t,r))}function a8(e){e.exit("gfmFootnoteDefinition")}function i8(e,t,r){const n=this;return ye(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):r(i)}}function s8(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:i,resolveAll:a};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function a(s,u){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let o=l;for(;o--;)if(s[o][0]==="exit"&&s[o][1].type==="strikethroughSequenceTemporary"&&s[o][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[o][1].end.offset-s[o][1].start.offset){s[l][1].type="strikethroughSequence",s[o][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},s[o][1].start),end:Object.assign({},s[l][1].end)},c={type:"strikethroughText",start:Object.assign({},s[o][1].end),end:Object.assign({},s[l][1].start)},m=[["enter",h,u],["enter",s[o][1],u],["exit",s[o][1],u],["enter",c,u]],g=u.parser.constructs.insideSpan.null;g&&Ze(m,m.length,0,ln(g,s.slice(o+1,l),u)),Ze(m,m.length,0,[["exit",c,u],["enter",s[l][1],u],["exit",s[l][1],u],["exit",h,u]]),Ze(s,o-1,l-o+3,m),l=o+m.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function i(s,u,l){const o=this.previous,h=this.events;let c=0;return m;function m(E){return o===126&&h[h.length-1][1].type!=="characterEscape"?l(E):(s.enter("strikethroughSequenceTemporary"),g(E))}function g(E){const y=en(o);if(E===126)return c>1?l(E):(s.consume(E),c++,g);if(c<2&&!r)return l(E);const v=s.exit("strikethroughSequenceTemporary"),A=en(E);return v._open=!A||A===2&&!!y,v._close=!y||y===2&&!!A,u(E)}}}class u8{constructor(){this.map=[]}add(t,r,n){l8(this,t,r,n)}consume(t){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let a=n.pop();for(;a;){for(const i of a)t.push(i);a=n.pop()}this.map.length=0}}function l8(e,t,r,n){let a=0;if(!(r===0&&n.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=r,e.map[a][2].push(...n);return}a+=1}e.map.push([t,r,n])}}function o8(e,t){let r=!1;const n=[];for(;t<e.length;){const a=e[t];if(r){if(a[0]==="enter")a[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=n.length-1;n[i]=n[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function c8(){return{flow:{null:{name:"table",tokenize:h8,resolveAll:d8}}}}function h8(e,t,r){const n=this;let a=0,i=0,s;return u;function u(P){let Z=n.events.length-1;for(;Z>-1;){const ae=n.events[Z][1].type;if(ae==="lineEnding"||ae==="linePrefix")Z--;else break}const U=Z>-1?n.events[Z][1].type:null,le=U==="tableHead"||U==="tableRow"?O:l;return le===O&&n.parser.lazy[n.now().line]?r(P):le(P)}function l(P){return e.enter("tableHead"),e.enter("tableRow"),o(P)}function o(P){return P===124||(s=!0,i+=1),h(P)}function h(P){return P===null?r(P):ue(P)?i>1?(i=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),g):r(P):ke(P)?ye(e,h,"whitespace")(P):(i+=1,s&&(s=!1,a+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),s=!0,h):(e.enter("data"),c(P)))}function c(P){return P===null||P===124||_e(P)?(e.exit("data"),h(P)):(e.consume(P),P===92?m:c)}function m(P){return P===92||P===124?(e.consume(P),c):c(P)}function g(P){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(P):(e.enter("tableDelimiterRow"),s=!1,ke(P)?ye(e,E,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):E(P))}function E(P){return P===45||P===58?v(P):P===124?(s=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),y):q(P)}function y(P){return ke(P)?ye(e,v,"whitespace")(P):v(P)}function v(P){return P===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),A):P===45?(i+=1,A(P)):P===null||ue(P)?z(P):q(P)}function A(P){return P===45?(e.enter("tableDelimiterFiller"),w(P)):q(P)}function w(P){return P===45?(e.consume(P),w):P===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),L):(e.exit("tableDelimiterFiller"),L(P))}function L(P){return ke(P)?ye(e,z,"whitespace")(P):z(P)}function z(P){return P===124?E(P):P===null||ue(P)?!s||a!==i?q(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):q(P)}function q(P){return r(P)}function O(P){return e.enter("tableRow"),Y(P)}function Y(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),Y):P===null||ue(P)?(e.exit("tableRow"),t(P)):ke(P)?ye(e,Y,"whitespace")(P):(e.enter("data"),J(P))}function J(P){return P===null||P===124||_e(P)?(e.exit("data"),Y(P)):(e.consume(P),P===92?Q:J)}function Q(P){return P===92||P===124?(e.consume(P),J):J(P)}}function d8(e,t){let r=-1,n=!0,a=0,i=[0,0,0,0],s=[0,0,0,0],u=!1,l=0,o,h,c;const m=new u8;for(;++r<e.length;){const g=e[r],E=g[1];g[0]==="enter"?E.type==="tableHead"?(u=!1,l!==0&&(gl(m,t,l,o,h),h=void 0,l=0),o={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},m.add(r,0,[["enter",o,t]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(n=!0,c=void 0,i=[0,0,0,0],s=[0,r+1,0,0],u&&(u=!1,h={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},m.add(r,0,[["enter",h,t]])),a=E.type==="tableDelimiterRow"?2:h?3:1):a&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],c=pa(m,t,i,a,void 0,c),i=[0,0,0,0]),s[2]=r)):E.type==="tableCellDivider"&&(n?n=!1:(i[1]!==0&&(s[0]=s[1],c=pa(m,t,i,a,void 0,c)),i=s,s=[i[1],r,0,0])):E.type==="tableHead"?(u=!0,l=r):E.type==="tableRow"||E.type==="tableDelimiterRow"?(l=r,i[1]!==0?(s[0]=s[1],c=pa(m,t,i,a,r,c)):s[1]!==0&&(c=pa(m,t,s,a,r,c)),a=0):a&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&gl(m,t,l,o,h),m.consume(t.events),r=-1;++r<t.events.length;){const g=t.events[r];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=o8(t.events,r))}return e}function pa(e,t,r,n,a,i){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",u="tableContent";r[0]!==0&&(i.end=Object.assign({},$r(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));const l=$r(t.events,r[1]);if(i={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",i,t]]),r[2]!==0){const o=$r(t.events,r[2]),h=$r(t.events,r[3]),c={type:u,start:Object.assign({},o),end:Object.assign({},h)};if(e.add(r[2],0,[["enter",c,t]]),n!==2){const m=t.events[r[2]],g=t.events[r[3]];if(m[1].end=Object.assign({},g[1].end),m[1].type="chunkText",m[1].contentType="text",r[3]>r[2]+1){const E=r[2]+1,y=r[3]-r[2]-1;e.add(E,y,[])}}e.add(r[3]+1,0,[["exit",c,t]])}return a!==void 0&&(i.end=Object.assign({},$r(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function gl(e,t,r,n,a){const i=[],s=$r(t.events,r);a&&(a.end=Object.assign({},s),i.push(["exit",a,t])),n.end=Object.assign({},s),i.push(["exit",n,t]),e.add(r+1,0,i)}function $r(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const f8={name:"tasklistCheck",tokenize:p8};function m8(){return{text:{91:f8}}}function p8(e,t,r){const n=this;return a;function a(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return _e(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):r(l)}function u(l){return ue(l)?t(l):ke(l)?e.check({tokenize:g8},t,r)(l):r(l)}}function g8(e,t,r){return ye(e,n,"whitespace");function n(a){return a===null?r(a):t(a)}}function b8(e){return q1([Cg(),Z7(),s8(e),c8(),m8()])}const E8={};function T8(e){const t=this,r=e||E8,n=t.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(b8(r)),i.push(yg()),s.push(kg(r))}function x8(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:i},exit:{mathFlow:a,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:u,mathText:s,mathTextData:u}};function e(l){const o={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[o]}},l)}function t(){this.buffer()}function r(){const l=this.resume(),o=this.stack[this.stack.length-1];o.type,o.meta=l}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(l){const o=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),h=this.stack[this.stack.length-1];h.type,this.exit(l),h.value=o;const c=h.data.hChildren[0];c.type,c.tagName,c.children.push({type:"text",value:o}),this.data.mathFlowInside=void 0}function i(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function s(l){const o=this.resume(),h=this.stack[this.stack.length-1];h.type,this.exit(l),h.value=o,h.data.hChildren.push({type:"text",value:o})}function u(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function y8(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),n.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
281
+ `,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(i,s,u,l){const o=i.value||"",h=u.createTracker(l),c="$".repeat(Math.max(N1(o,"$")+1,2)),m=u.enter("mathFlow");let g=h.move(c);if(i.meta){const E=u.enter("mathFlowMeta");g+=h.move(u.safe(i.meta,{after:`
282
+ `,before:g,encode:["$"],...h.current()})),E()}return g+=h.move(`
283
+ `),o&&(g+=h.move(o+`
284
+ `)),g+=h.move(c),m(),g}function n(i,s,u){let l=i.value||"",o=1;for(t||o++;new RegExp("(^|[^$])"+"\\$".repeat(o)+"([^$]|$)").test(l);)o++;const h="$".repeat(o);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let c=-1;for(;++c<u.unsafe.length;){const m=u.unsafe[c];if(!m.atBreak)continue;const g=u.compilePattern(m);let E;for(;E=g.exec(l);){let y=E.index;l.codePointAt(y)===10&&l.codePointAt(y-1)===13&&y--,l=l.slice(0,y)+" "+l.slice(E.index+1)}}return h+l+h}function a(){return"$"}}const k8={tokenize:v8,concrete:!0,name:"mathFlow"},bl={tokenize:A8,partial:!0};function v8(e,t,r){const n=this,a=n.events[n.events.length-1],i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let s=0;return u;function u(w){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(w)}function l(w){return w===36?(e.consume(w),s++,l):s<2?r(w):(e.exit("mathFlowFenceSequence"),ye(e,o,"whitespace")(w))}function o(w){return w===null||ue(w)?c(w):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||ue(w)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),c(w)):w===36?r(w):(e.consume(w),h)}function c(w){return e.exit("mathFlowFence"),n.interrupt?t(w):e.attempt(bl,m,v)(w)}function m(w){return e.attempt({tokenize:A,partial:!0},v,g)(w)}function g(w){return(i?ye(e,E,"linePrefix",i+1):E)(w)}function E(w){return w===null?v(w):ue(w)?e.attempt(bl,m,v)(w):(e.enter("mathFlowValue"),y(w))}function y(w){return w===null||ue(w)?(e.exit("mathFlowValue"),E(w)):(e.consume(w),y)}function v(w){return e.exit("mathFlow"),t(w)}function A(w,L,z){let q=0;return ye(w,O,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function O(Q){return w.enter("mathFlowFence"),w.enter("mathFlowFenceSequence"),Y(Q)}function Y(Q){return Q===36?(q++,w.consume(Q),Y):q<s?z(Q):(w.exit("mathFlowFenceSequence"),ye(w,J,"whitespace")(Q))}function J(Q){return Q===null||ue(Q)?(w.exit("mathFlowFence"),L(Q)):z(Q)}}}function A8(e,t,r){const n=this;return a;function a(s){return s===null?t(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function w8(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:S8,previous:C8,name:"mathText"};function n(a,i,s){let u=0,l,o;return h;function h(y){return a.enter("mathText"),a.enter("mathTextSequence"),c(y)}function c(y){return y===36?(a.consume(y),u++,c):u<2&&!r?s(y):(a.exit("mathTextSequence"),m(y))}function m(y){return y===null?s(y):y===36?(o=a.enter("mathTextSequence"),l=0,E(y)):y===32?(a.enter("space"),a.consume(y),a.exit("space"),m):ue(y)?(a.enter("lineEnding"),a.consume(y),a.exit("lineEnding"),m):(a.enter("mathTextData"),g(y))}function g(y){return y===null||y===32||y===36||ue(y)?(a.exit("mathTextData"),m(y)):(a.consume(y),g)}function E(y){return y===36?(a.consume(y),l++,E):l===u?(a.exit("mathTextSequence"),a.exit("mathText"),i(y)):(o.type="mathTextData",g(y))}}}function S8(e){let t=e.length-4,r=3,n,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)a===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(a=n):(n===t||e[n][1].type==="lineEnding")&&(e[a][1].type="mathTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),t-=n-a-2,n=a+2),a=void 0);return e}function C8(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function N8(e){return{flow:{36:k8},text:{36:w8(e)}}}const _8={};function v0(e){const t=this,r=e||_8,n=t.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(N8(r)),i.push(x8()),s.push(y8(r))}var I8=/(\*\*)([^*]*?)$/,D8=/(__)([^_]*?)$/,L8=/(\*\*\*)([^*]*?)$/,R8=/(\*)([^*]*?)$/,O8=/(_)([^_]*?)$/,M8=/(`)([^`]*?)$/,P8=/(~~)([^~]*?)$/,Mr=/^[\s_~*`]*$/,ah=/^[\s]*[-*+][\s]+$/,B8=/[\p{L}\p{N}_]/u,F8=/^```[^`\n]*```?$/,z8=/^\*{4,}$/,br=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:B8.test(e)},ui=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2===0&&e.includes(`
285
+ `)},H8=(e,t)=>{let r=1;for(let n=t-1;n>=0;n-=1)if(e[n]==="]")r+=1;else if(e[n]==="["&&(r-=1,r===0))return n;return-1},U8=(e,t)=>{let r=1;for(let n=t+1;n<e.length;n+=1)if(e[n]==="[")r+=1;else if(e[n]==="]"&&(r-=1,r===0))return n;return-1},ih=(e,t)=>{let r=!1,n=!1;for(let a=0;a<e.length&&a<t;a+=1){if(e[a]==="\\"&&e[a+1]==="$"){a+=1;continue}e[a]==="$"&&(e[a+1]==="$"?(n=!n,a+=1,r=!1):n||(r=!r))}return r||n},q8=(e,t,r)=>{if(r!==" "&&r!==" ")return!1;let n=0;for(let a=t-1;a>=0;a-=1)if(e[a]===`
286
+ `){n=a+1;break}for(let a=n;a<t;a+=1)if(e[a]!==" "&&e[a]!==" ")return!1;return!0},j8=(e,t,r,n)=>!!(r==="\\"||r==="*"||n==="*"||r&&n&&br(r)&&br(n)||q8(e,t,n)),$8=e=>{let t=0,r=e.length;for(let n=0;n<r;n+=1){if(e[n]!=="*")continue;let a=n>0?e[n-1]:"",i=n<r-1?e[n+1]:"";j8(e,n,a,i)||(t+=1)}return t},Y8=(e,t,r,n)=>!!(r==="\\"||e.includes("$")&&ih(e,t)||r==="_"||n==="_"||r&&n&&br(r)&&br(n)),V8=e=>{let t=0,r=e.length;for(let n=0;n<r;n+=1){if(e[n]!=="_")continue;let a=n>0?e[n-1]:"",i=n<r-1?e[n+1]:"";Y8(e,n,a,i)||(t+=1)}return t},G8=e=>{let t=0,r=0;for(let n=0;n<e.length;n+=1)e[n]==="*"?r+=1:(r>=3&&(t+=Math.floor(r/3)),r=0);return r>=3&&(t+=Math.floor(r/3)),t},W8=e=>{if(ui(e))return e;let t=e.match(I8);if(t){let r=t[2];if(!r||Mr.test(r))return e;let n=e.lastIndexOf(t[1]),a=e.substring(0,n).lastIndexOf(`
287
+ `),i=a===-1?0:a+1,s=e.substring(i,n);if(ah.test(s)&&r.includes(`
288
+ `))return e;if((e.match(/\*\*/g)||[]).length%2===1)return`${e}**`}return e},X8=e=>{let t=e.match(D8);if(t){let r=t[2];if(!r||Mr.test(r))return e;let n=e.lastIndexOf(t[1]),a=e.substring(0,n).lastIndexOf(`
289
+ `),i=a===-1?0:a+1,s=e.substring(i,n);if(ah.test(s)&&r.includes(`
290
+ `))return e;if((e.match(/__/g)||[]).length%2===1)return`${e}__`}return e},Q8=e=>{for(let t=0;t<e.length;t+=1)if(e[t]==="*"&&e[t-1]!=="*"&&e[t+1]!=="*"&&e[t-1]!=="\\"){let r=t>0?e[t-1]:"",n=t<e.length-1?e[t+1]:"";if(r&&n&&br(r)&&br(n))continue;return t}return-1},K8=e=>{if(ui(e)||!e.match(R8))return e;let t=Q8(e);if(t===-1)return e;let r=e.substring(t+1);return!r||Mr.test(r)?e:$8(e)%2===1?`${e}*`:e},Z8=e=>{for(let t=0;t<e.length;t+=1)if(e[t]==="_"&&e[t-1]!=="_"&&e[t+1]!=="_"&&e[t-1]!=="\\"&&!ih(e,t)){let r=t>0?e[t-1]:"",n=t<e.length-1?e[t+1]:"";if(r&&n&&br(r)&&br(n))continue;return t}return-1},J8=e=>{let t=e.length;for(;t>0&&e[t-1]===`
291
+ `;)t-=1;if(t<e.length){let r=e.slice(0,t),n=e.slice(t);return`${r}_${n}`}return`${e}_`},eb=e=>{if(ui(e)||!e.match(O8))return e;let t=Z8(e);if(t===-1)return e;let r=e.substring(t+1);return!r||Mr.test(r)?e:V8(e)%2===1?J8(e):e},tb=e=>{if(ui(e)||z8.test(e))return e;let t=e.match(L8);if(t){let r=t[2];if(!r||Mr.test(r))return e;if(G8(e)%2===1)return`${e}***`}return e},A0=(e,t)=>{let r=!1,n=!1;for(let a=0;a<t;a+=1){if(e.substring(a,a+3)==="```"){n=!n,a+=2;continue}!n&&e[a]==="`"&&(r=!r)}return r||n},rb=(e,t)=>{let r=e.substring(t,t+3)==="```",n=t>0&&e.substring(t-1,t+2)==="```",a=t>1&&e.substring(t-2,t+1)==="```";return r||n||a},nb=e=>{let t=0;for(let r=0;r<e.length;r+=1)e[r]==="`"&&!rb(e,r)&&(t+=1);return t},ab=e=>!e.match(F8)||e.includes(`
292
+ `)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,ib=e=>{let t=(e.match(/```/g)||[]).length;return!!(t>0&&t%2===0&&e.includes(`
293
+ `)||(e.endsWith("```\n")||e.endsWith("```"))&&t%2===0)},sb=e=>(e.match(/```/g)||[]).length%2===1,ub=e=>{let t=ab(e);if(t!==null)return t;if(ib(e))return e;let r=e.match(M8);if(r&&!sb(e)){let n=r[2];if(!n||Mr.test(n))return e;if(nb(e)%2===1)return`${e}\``}return e},lb=e=>{if((e.match(/\$\$/g)||[]).length%2===0)return e;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
294
+ `,t)!==-1&&!e.endsWith(`
295
+ `)?`${e}
296
+ $$`:`${e}$$`},ob=(e,t)=>{if(e.substring(t+2).includes(")"))return null;let r=H8(e,t);if(r===-1||A0(e,r))return null;let n=r>0&&e[r-1]==="!",a=n?r-1:r,i=e.substring(0,a);if(n)return i;let s=e.substring(r+1,t);return`${i}[${s}](streamdown:incomplete-link)`},cb=(e,t)=>{let r=t>0&&e[t-1]==="!",n=r?t-1:t;if(!e.substring(t+1).includes("]")){let a=e.substring(0,n);return r?a:`${e}](streamdown:incomplete-link)`}if(U8(e,t)===-1){let a=e.substring(0,n);return r?a:`${e}](streamdown:incomplete-link)`}return null},hb=e=>{let t=e.lastIndexOf("](");if(t!==-1&&!A0(e,t)){let r=ob(e,t);if(r!==null)return r}for(let r=e.length-1;r>=0;r-=1)if(e[r]==="["&&!A0(e,r)){let n=cb(e,r);if(n!==null)return n}return e},db=e=>{let t=e.match(P8);if(t){let r=t[2];if(!r||Mr.test(r))return e;if((e.match(/~~/g)||[]).length%2===1)return`${e}~~`}return e},fb=e=>{if(!e||typeof e!="string")return e;let t=e,r=hb(t);return r.endsWith("](streamdown:incomplete-link)")?r:(t=r,t=tb(t),t=W8(t),t=X8(t),t=K8(t),t=eb(t),t=ub(t),t=db(t),t=lb(t),t)},mb=fb;const pb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bb={};function El(e,t){return(bb.jsx?gb:pb).test(e)}const Eb=/[ \t\n\f\r]/g;function Tb(e){return typeof e=="object"?e.type==="text"?Tl(e.value):!1:Tl(e)}function Tl(e){return e.replace(Eb,"")===""}var jr={},Ui,xl;function xb(){if(xl)return Ui;xl=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,u=/^\s+|\s+$/g,l=`
297
+ `,o="/",h="*",c="",m="comment",g="declaration";function E(v,A){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];A=A||{};var w=1,L=1;function z(ae){var ee=ae.match(t);ee&&(w+=ee.length);var be=ae.lastIndexOf(l);L=~be?ae.length-be:L+ae.length}function q(){var ae={line:w,column:L};return function(ee){return ee.position=new O(ae),Q(),ee}}function O(ae){this.start=ae,this.end={line:w,column:L},this.source=A.source}O.prototype.content=v;function Y(ae){var ee=new Error(A.source+":"+w+":"+L+": "+ae);if(ee.reason=ae,ee.filename=A.source,ee.line=w,ee.column=L,ee.source=v,!A.silent)throw ee}function J(ae){var ee=ae.exec(v);if(ee){var be=ee[0];return z(be),v=v.slice(be.length),ee}}function Q(){J(r)}function P(ae){var ee;for(ae=ae||[];ee=Z();)ee!==!1&&ae.push(ee);return ae}function Z(){var ae=q();if(!(o!=v.charAt(0)||h!=v.charAt(1))){for(var ee=2;c!=v.charAt(ee)&&(h!=v.charAt(ee)||o!=v.charAt(ee+1));)++ee;if(ee+=2,c===v.charAt(ee-1))return Y("End of comment missing");var be=v.slice(2,ee-2);return L+=2,z(be),v=v.slice(ee),L+=2,ae({type:m,comment:be})}}function U(){var ae=q(),ee=J(n);if(ee){if(Z(),!J(a))return Y("property missing ':'");var be=J(i),se=ae({type:g,property:y(ee[0].replace(e,c)),value:be?y(be[0].replace(e,c)):c});return J(s),se}}function le(){var ae=[];P(ae);for(var ee;ee=U();)ee!==!1&&(ae.push(ee),P(ae));return ae}return Q(),le()}function y(v){return v?v.replace(u,c):c}return Ui=E,Ui}var yl;function yb(){if(yl)return jr;yl=1;var e=jr&&jr.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(jr,"__esModule",{value:!0}),jr.default=r;const t=e(xb());function r(n,a){let i=null;if(!n||typeof n!="string")return i;const s=(0,t.default)(n),u=typeof a=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:h}=l;u?a(o,h,l):h&&(i=i||{},i[o]=h)}),i}return jr}var Tn={},kl;function kb(){if(kl)return Tn;kl=1,Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(o){return!o||r.test(o)||e.test(o)},s=function(o,h){return h.toUpperCase()},u=function(o,h){return"".concat(h,"-")},l=function(o,h){return h===void 0&&(h={}),i(o)?o:(o=o.toLowerCase(),h.reactCompat?o=o.replace(a,u):o=o.replace(n,u),o.replace(t,s))};return Tn.camelCase=l,Tn}var xn,vl;function vb(){if(vl)return xn;vl=1;var e=xn&&xn.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(yb()),r=kb();function n(a,i){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(u,l){u&&l&&(s[(0,r.camelCase)(u,i)]=l)}),s}return n.default=n,xn=n,xn}var Ab=vb();const wb=to(Ab);function Pn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Al(e.position):"start"in e||"end"in e?Al(e):"line"in e||"column"in e?w0(e):""}function w0(e){return wl(e&&e.line)+":"+wl(e&&e.column)}function Al(e){return w0(e&&e.start)+"-"+w0(e&&e.end)}function wl(e){return e&&typeof e=="number"?e:1}class tt extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let a="",i={},s=!1;if(r&&("line"in r&&"column"in r?i={place:r}:"start"in r&&"end"in r?i={place:r}:"type"in r?i={ancestors:[r],place:r.position}:i={...r}),typeof t=="string"?a=t:!i.cause&&t&&(s=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?i.ruleId=n:(i.source=n.slice(0,l),i.ruleId=n.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const u=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=u?u.line:void 0,this.name=Pn(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}tt.prototype.file="";tt.prototype.name="";tt.prototype.reason="";tt.prototype.message="";tt.prototype.stack="";tt.prototype.column=void 0;tt.prototype.line=void 0;tt.prototype.ancestors=void 0;tt.prototype.cause=void 0;tt.prototype.fatal=void 0;tt.prototype.place=void 0;tt.prototype.ruleId=void 0;tt.prototype.source=void 0;const Ts={}.hasOwnProperty,Sb=new Map,Cb=/[A-Z]/g,Nb=new Set(["table","tbody","thead","tfoot","tr"]),_b=new Set(["td","th"]),sh="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ib(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=Fb(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=Bb(r,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Er:Wn,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=uh(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function uh(e,t,r){if(t.type==="element")return Db(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Lb(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Ob(e,t,r);if(t.type==="mdxjsEsm")return Rb(e,t);if(t.type==="root")return Mb(e,t,r);if(t.type==="text")return Pb(e,t)}function Db(e,t,r){const n=e.schema;let a=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(a=Er,e.schema=a),e.ancestors.push(t);const i=oh(e,t.tagName,!1),s=zb(e,t);let u=ys(e,t);return Nb.has(t.tagName)&&(u=u.filter(function(l){return typeof l=="string"?!Tb(l):!0})),lh(e,s,i,t),xs(s,u),e.ancestors.pop(),e.schema=n,e.create(t,i,s,r)}function Lb(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Yn(e,t.position)}function Rb(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Yn(e,t.position)}function Ob(e,t,r){const n=e.schema;let a=n;t.name==="svg"&&n.space==="html"&&(a=Er,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:oh(e,t.name,!0),s=Hb(e,t),u=ys(e,t);return lh(e,s,i,t),xs(s,u),e.ancestors.pop(),e.schema=n,e.create(t,i,s,r)}function Mb(e,t,r){const n={};return xs(n,ys(e,t)),e.create(t,e.Fragment,n,r)}function Pb(e,t){return t.value}function lh(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function xs(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Bb(e,t,r){return n;function n(a,i,s,u){const o=Array.isArray(s.children)?r:t;return u?o(i,s,u):o(i,s)}}function Fb(e,t){return r;function r(n,a,i,s){const u=Array.isArray(i.children),l=Yt(n);return t(a,i,s,u,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function zb(e,t){const r={};let n,a;for(a in t.properties)if(a!=="children"&&Ts.call(t.properties,a)){const i=Ub(e,a,t.properties[a]);if(i){const[s,u]=i;e.tableCellAlignToStyle&&s==="align"&&typeof u=="string"&&_b.has(t.tagName)?n=u:r[s]=u}}if(n){const i=r.style||(r.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function Hb(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];i.type;const s=i.expression;s.type;const u=s.properties[0];u.type,Object.assign(r,e.evaluater.evaluateExpression(u.argument))}else Yn(e,t.position);else{const a=n.name;let i;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const u=n.value.data.estree.body[0];u.type,i=e.evaluater.evaluateExpression(u.expression)}else Yn(e,t.position);else i=n.value===null?!0:n.value;r[a]=i}return r}function ys(e,t){const r=[];let n=-1;const a=e.passKeys?new Map:Sb;for(;++n<t.children.length;){const i=t.children[n];let s;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const o=a.get(l)||0;s=l+"-"+o,a.set(l,o+1)}}const u=uh(e,i,s);u!==void 0&&r.push(u)}return r}function Ub(e,t,r){const n=Va(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?po(r):go(r)),n.property==="style"){let a=typeof r=="object"?r:qb(e,String(r));return e.stylePropertyNameCase==="css"&&(a=jb(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&n.space?Af[n.property]||n.property:n.attribute,r]}}function qb(e,t){try{return wb(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,a=new tt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=sh+"#cannot-parse-style-attribute",a}}function oh(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,s;for(;++i<a.length;){const u=El(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};s=s?{type:"MemberExpression",object:s,property:u,computed:!!(i&&u.type==="Literal"),optional:!1}:u}n=s}else n=El(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const a=n.value;return Ts.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(n);Yn(e)}function Yn(e,t){const r=new tt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=sh+"#cannot-handle-mdx-estrees-without-createevaluater",r}function jb(e){const t={};let r;for(r in e)Ts.call(e,r)&&(t[$b(r)]=e[r]);return t}function $b(e){let t=e.replace(Cb,Yb);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Yb(e){return"-"+e.toLowerCase()}const Vb={tokenize:Gb};function Gb(e){const t=e.attempt(this.parser.constructs.contentInitial,n,a);let r;return t;function n(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ye(e,t,"linePrefix")}function a(u){return e.enter("paragraph"),i(u)}function i(u){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return ue(u)?(e.consume(u),e.exit("chunkText"),i):(e.consume(u),s)}}const Wb={tokenize:Xb},Sl={tokenize:Qb};function Xb(e){const t=this,r=[];let n=0,a,i,s;return u;function u(L){if(n<r.length){const z=r[n];return t.containerState=z[1],e.attempt(z[0].continuation,l,o)(L)}return o(L)}function l(L){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&w();const z=t.events.length;let q=z,O;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){O=t.events[q][1].end;break}A(n);let Y=z;for(;Y<t.events.length;)t.events[Y][1].end={...O},Y++;return Ze(t.events,q+1,0,t.events.slice(z)),t.events.length=Y,o(L)}return u(L)}function o(L){if(n===r.length){if(!a)return m(L);if(a.currentConstruct&&a.currentConstruct.concrete)return E(L);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Sl,h,c)(L)}function h(L){return a&&w(),A(n),m(L)}function c(L){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,E(L)}function m(L){return t.containerState={},e.attempt(Sl,g,E)(L)}function g(L){return n++,r.push([t.currentConstruct,t.containerState]),m(L)}function E(L){if(L===null){a&&w(),A(0),e.consume(L);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),y(L)}function y(L){if(L===null){v(e.exit("chunkFlow"),!0),A(0),e.consume(L);return}return ue(L)?(e.consume(L),v(e.exit("chunkFlow")),n=0,t.interrupt=void 0,u):(e.consume(L),y)}function v(L,z){const q=t.sliceStream(L);if(z&&q.push(null),L.previous=i,i&&(i.next=L),i=L,a.defineSkip(L.start),a.write(q),t.parser.lazy[L.start.line]){let O=a.events.length;for(;O--;)if(a.events[O][1].start.offset<s&&(!a.events[O][1].end||a.events[O][1].end.offset>s))return;const Y=t.events.length;let J=Y,Q,P;for(;J--;)if(t.events[J][0]==="exit"&&t.events[J][1].type==="chunkFlow"){if(Q){P=t.events[J][1].end;break}Q=!0}for(A(n),O=Y;O<t.events.length;)t.events[O][1].end={...P},O++;Ze(t.events,J+1,0,t.events.slice(Y)),t.events.length=O}}function A(L){let z=r.length;for(;z-- >L;){const q=r[z];t.containerState=q[1],q[0].exit.call(t,e)}r.length=L}function w(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Qb(e,t,r){return ye(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Kb={tokenize:Zb};function Zb(e){const t=this,r=e.attempt(ta,n,e.attempt(this.parser.constructs.flowInitial,a,ye(e,e.attempt(this.parser.constructs.flow,a,e.attempt(n7,a)),"linePrefix")));return r;function n(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const Jb={resolveAll:hh()},e9=ch("string"),t9=ch("text");function ch(e){return{resolveAll:hh(e==="text"?r9:void 0),tokenize:t};function t(r){const n=this,a=this.parser.constructs[e],i=r.attempt(a,s,u);return s;function s(h){return o(h)?i(h):u(h)}function u(h){if(h===null){r.consume(h);return}return r.enter("data"),r.consume(h),l}function l(h){return o(h)?(r.exit("data"),i(h)):(r.consume(h),l)}function o(h){if(h===null)return!0;const c=a[h];let m=-1;if(c)for(;++m<c.length;){const g=c[m];if(!g.previous||g.previous.call(n,n.previous))return!0}return!1}}}function hh(e){return t;function t(r,n){let a=-1,i;for(;++a<=r.length;)i===void 0?r[a]&&r[a][1].type==="data"&&(i=a,a++):(!r[a]||r[a][1].type!=="data")&&(a!==i+2&&(r[i][1].end=r[a-1][1].end,r.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(r,n):r}}function r9(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],a=t.sliceStream(n);let i=a.length,s=-1,u=0,l;for(;i--;){const o=a[i];if(typeof o=="string"){for(s=o.length;o.charCodeAt(s-1)===32;)u++,s--;if(s)break;s=-1}else if(o===-2)l=!0,u++;else if(o!==-1){i++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(u=0),u){const o={type:r===e.length||l||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:n.start._bufferIndex+s,_index:n.start._index+i,line:n.end.line,column:n.end.column-u,offset:n.end.offset-u},end:{...n.end}};n.end={...o.start},n.start.offset===n.end.offset?Object.assign(n,o):(e.splice(r,0,["enter",o,t],["exit",o,t]),r+=2)}r++}return e}const n9={42:ot,43:ot,45:ot,48:ot,49:ot,50:ot,51:ot,52:ot,53:ot,54:ot,55:ot,56:ot,57:ot,62:K1},a9={91:l7},i9={[-2]:zi,[-1]:zi,32:zi},s9={35:m7,42:Aa,45:[pl,Aa],60:E7,61:pl,95:Aa,96:fl,126:fl},u9={38:J1,92:Z1},l9={[-5]:Hi,[-4]:Hi,[-3]:Hi,33:P7,38:J1,42:k0,60:[Fg,w7],91:F7,92:[d7,Z1],93:Es,95:k0,96:Kg},o9={null:[k0,Jb]},c9={null:[42,95]},h9={null:[]},d9=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:c9,contentInitial:a9,disable:h9,document:n9,flow:s9,flowInitial:i9,insideSpan:o9,string:u9,text:l9},Symbol.toStringTag,{value:"Module"}));function f9(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const a={},i=[];let s=[],u=[];const l={attempt:Y(q),check:Y(O),consume:w,enter:L,exit:z,interrupt:Y(O,{interrupt:!0})},o={code:null,containerState:{},defineSkip:y,events:[],now:E,parser:e,previous:null,sliceSerialize:m,sliceStream:g,write:c};let h=t.tokenize.call(o,l);return t.resolveAll&&i.push(t),o;function c(Z){return s=Ke(s,Z),v(),s[s.length-1]!==null?[]:(J(t,0),o.events=ln(i,o.events,o),o.events)}function m(Z,U){return p9(g(Z),U)}function g(Z){return m9(s,Z)}function E(){const{_bufferIndex:Z,_index:U,line:le,column:ae,offset:ee}=n;return{_bufferIndex:Z,_index:U,line:le,column:ae,offset:ee}}function y(Z){a[Z.line]=Z.column,P()}function v(){let Z;for(;n._index<s.length;){const U=s[n._index];if(typeof U=="string")for(Z=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===Z&&n._bufferIndex<U.length;)A(U.charCodeAt(n._bufferIndex));else A(U)}}function A(Z){h=h(Z)}function w(Z){ue(Z)?(n.line++,n.column=1,n.offset+=Z===-3?2:1,P()):Z!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),o.previous=Z}function L(Z,U){const le=U||{};return le.type=Z,le.start=E(),o.events.push(["enter",le,o]),u.push(le),le}function z(Z){const U=u.pop();return U.end=E(),o.events.push(["exit",U,o]),U}function q(Z,U){J(Z,U.from)}function O(Z,U){U.restore()}function Y(Z,U){return le;function le(ae,ee,be){let se,Te,fe,N;return Array.isArray(ae)?Ce(ae):"tokenize"in ae?Ce([ae]):Ee(ae);function Ee(Oe){return xt;function xt(rt){const St=rt!==null&&Oe[rt],Ct=rt!==null&&Oe.null,Br=[...Array.isArray(St)?St:St?[St]:[],...Array.isArray(Ct)?Ct:Ct?[Ct]:[]];return Ce(Br)(rt)}}function Ce(Oe){return se=Oe,Te=0,Oe.length===0?be:D(Oe[Te])}function D(Oe){return xt;function xt(rt){return N=Q(),fe=Oe,Oe.partial||(o.currentConstruct=Oe),Oe.name&&o.parser.constructs.disable.null.includes(Oe.name)?Qe():Oe.tokenize.call(U?Object.assign(Object.create(o),U):o,l,Xe,Qe)(rt)}}function Xe(Oe){return Z(fe,N),ee}function Qe(Oe){return N.restore(),++Te<se.length?D(se[Te]):be}}}function J(Z,U){Z.resolveAll&&!i.includes(Z)&&i.push(Z),Z.resolve&&Ze(o.events,U,o.events.length-U,Z.resolve(o.events.slice(U),o)),Z.resolveTo&&(o.events=Z.resolveTo(o.events,o))}function Q(){const Z=E(),U=o.previous,le=o.currentConstruct,ae=o.events.length,ee=Array.from(u);return{from:ae,restore:be};function be(){n=Z,o.previous=U,o.currentConstruct=le,o.events.length=ae,u=ee,P()}}function P(){n.line in a&&n.column<2&&(n.column=a[n.line],n.offset+=a[n.line]-1)}}function m9(e,t){const r=t.start._index,n=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let s;if(r===a)s=[e[r].slice(n,i)];else{if(s=e.slice(r,a),n>-1){const u=s[0];typeof u=="string"?s[0]=u.slice(n):s.shift()}i>0&&s.push(e[a].slice(0,i))}return s}function p9(e,t){let r=-1;const n=[];let a;for(;++r<e.length;){const i=e[r];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
298
+ `;break}case-3:{s=`\r
299
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(i)}a=i===-2,n.push(s)}return n.join("")}function g9(e){const n={constructs:q1([d9,...(e||{}).extensions||[]]),content:a(Vb),defined:[],document:a(Wb),flow:a(Kb),lazy:{},string:a(e9),text:a(t9)};return n;function a(i){return s;function s(u){return f9(n,i,u)}}}function b9(e){for(;!eh(e););return e}const Cl=/[\0\t\n\r]/g;function E9(){let e=1,t="",r=!0,n;return a;function a(i,s,u){const l=[];let o,h,c,m,g;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),c=0,t="",r&&(i.charCodeAt(0)===65279&&c++,r=void 0);c<i.length;){if(Cl.lastIndex=c,o=Cl.exec(i),m=o&&o.index!==void 0?o.index:i.length,g=i.charCodeAt(m),!o){t=i.slice(c);break}if(g===10&&c===m&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),c<m&&(l.push(i.slice(c,m)),e+=m-c),g){case 0:{l.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,l.push(-2);e++<h;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}c=m+1}return u&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const dh={}.hasOwnProperty;function T9(e,t,r){return typeof t!="string"&&(r=t,t=void 0),x9(r)(b9(g9(r).document().write(E9()(e,t,!0))))}function x9(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(yr),autolinkProtocol:Q,autolinkEmail:Q,atxHeading:i(hn),blockQuote:i(Ct),characterEscape:Q,characterReference:Q,codeFenced:i(Br),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(Br,s),codeText:i(hi,s),codeTextData:Q,data:Q,codeFlowValue:Q,definition:i(di),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(cn),hardBreakEscape:i(dn),hardBreakTrailing:i(dn),htmlFlow:i(Fr,s),htmlFlowData:Q,htmlText:i(Fr,s),htmlTextData:Q,image:i(zr),label:s,link:i(yr),listItem:i(dd),listItemValue:m,listOrdered:i(Os,c),listUnordered:i(Os),paragraph:i(fd),reference:D,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(hn),strong:i(md),thematicBreak:i(gd)},exit:{atxHeading:l(),atxHeadingSequence:q,autolink:l(),autolinkEmail:St,autolinkProtocol:rt,blockQuote:l(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:Qe,characterReferenceMarkerNumeric:Qe,characterReferenceValue:Oe,characterReference:xt,codeFenced:l(v),codeFencedFence:y,codeFencedFenceInfo:g,codeFencedFenceMeta:E,codeFlowValue:P,codeIndented:l(A),codeText:l(ee),codeTextData:P,data:P,definition:l(),definitionDestinationString:z,definitionLabelString:w,definitionTitleString:L,emphasis:l(),hardBreakEscape:l(U),hardBreakTrailing:l(U),htmlFlow:l(le),htmlFlowData:P,htmlText:l(ae),htmlTextData:P,image:l(se),label:fe,labelText:Te,lineEnding:Z,link:l(be),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Xe,resourceDestinationString:N,resourceTitleString:Ee,resource:Ce,setextHeading:l(J),setextHeadingLineSequence:Y,setextHeadingText:O,strong:l(),thematicBreak:l()}};fh(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(j){let re={type:"root",children:[]};const de={stack:[re],tokenStack:[],config:t,enter:u,exit:o,buffer:s,resume:h,data:r},ve=[];let Ie=-1;for(;++Ie<j.length;)if(j[Ie][1].type==="listOrdered"||j[Ie][1].type==="listUnordered")if(j[Ie][0]==="enter")ve.push(Ie);else{const Nt=ve.pop();Ie=a(j,Nt,Ie)}for(Ie=-1;++Ie<j.length;){const Nt=t[j[Ie][0]];dh.call(Nt,j[Ie][1].type)&&Nt[j[Ie][1].type].call(Object.assign({sliceSerialize:j[Ie][2].sliceSerialize},de),j[Ie][1])}if(de.tokenStack.length>0){const Nt=de.tokenStack[de.tokenStack.length-1];(Nt[1]||Nl).call(de,void 0,Nt[0])}for(re.position={start:lr(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:lr(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},Ie=-1;++Ie<t.transforms.length;)re=t.transforms[Ie](re)||re;return re}function a(j,re,de){let ve=re-1,Ie=-1,Nt=!1,kr,Gt,fn,mn;for(;++ve<=de;){const mt=j[ve];switch(mt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{mt[0]==="enter"?Ie++:Ie--,mn=void 0;break}case"lineEndingBlank":{mt[0]==="enter"&&(kr&&!mn&&!Ie&&!fn&&(fn=ve),mn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:mn=void 0}if(!Ie&&mt[0]==="enter"&&mt[1].type==="listItemPrefix"||Ie===-1&&mt[0]==="exit"&&(mt[1].type==="listUnordered"||mt[1].type==="listOrdered")){if(kr){let Hr=ve;for(Gt=void 0;Hr--;){const Wt=j[Hr];if(Wt[1].type==="lineEnding"||Wt[1].type==="lineEndingBlank"){if(Wt[0]==="exit")continue;Gt&&(j[Gt][1].type="lineEndingBlank",Nt=!0),Wt[1].type="lineEnding",Gt=Hr}else if(!(Wt[1].type==="linePrefix"||Wt[1].type==="blockQuotePrefix"||Wt[1].type==="blockQuotePrefixWhitespace"||Wt[1].type==="blockQuoteMarker"||Wt[1].type==="listItemIndent"))break}fn&&(!Gt||fn<Gt)&&(kr._spread=!0),kr.end=Object.assign({},Gt?j[Gt][1].start:mt[1].end),j.splice(Gt||ve,0,["exit",kr,mt[2]]),ve++,de++}if(mt[1].type==="listItemPrefix"){const Hr={type:"listItem",_spread:!1,start:Object.assign({},mt[1].start),end:void 0};kr=Hr,j.splice(ve,0,["enter",Hr,mt[2]]),ve++,de++,fn=void 0,mn=!0}}}return j[re][1]._spread=Nt,de}function i(j,re){return de;function de(ve){u.call(this,j(ve),ve),re&&re.call(this,ve)}}function s(){this.stack.push({type:"fragment",children:[]})}function u(j,re,de){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([re,de||void 0]),j.position={start:lr(re.start),end:void 0}}function l(j){return re;function re(de){j&&j.call(this,de),o.call(this,de)}}function o(j,re){const de=this.stack.pop(),ve=this.tokenStack.pop();if(ve)ve[0].type!==j.type&&(re?re.call(this,j,ve[0]):(ve[1]||Nl).call(this,j,ve[0]));else throw new Error("Cannot close `"+j.type+"` ("+Pn({start:j.start,end:j.end})+"): it’s not open");de.position.end=lr(j.end)}function h(){return ms(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function m(j){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function g(){const j=this.resume(),re=this.stack[this.stack.length-1];re.lang=j}function E(){const j=this.resume(),re=this.stack[this.stack.length-1];re.meta=j}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const j=this.resume(),re=this.stack[this.stack.length-1];re.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const j=this.resume(),re=this.stack[this.stack.length-1];re.value=j.replace(/(\r?\n|\r)$/g,"")}function w(j){const re=this.resume(),de=this.stack[this.stack.length-1];de.label=re,de.identifier=Dt(this.sliceSerialize(j)).toLowerCase()}function L(){const j=this.resume(),re=this.stack[this.stack.length-1];re.title=j}function z(){const j=this.resume(),re=this.stack[this.stack.length-1];re.url=j}function q(j){const re=this.stack[this.stack.length-1];if(!re.depth){const de=this.sliceSerialize(j).length;re.depth=de}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function Y(j){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function J(){this.data.setextHeadingSlurpLineEnding=void 0}function Q(j){const de=this.stack[this.stack.length-1].children;let ve=de[de.length-1];(!ve||ve.type!=="text")&&(ve=pd(),ve.position={start:lr(j.start),end:void 0},de.push(ve)),this.stack.push(ve)}function P(j){const re=this.stack.pop();re.value+=this.sliceSerialize(j),re.position.end=lr(j.end)}function Z(j){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=re.children[re.children.length-1];de.position.end=lr(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(Q.call(this,j),P.call(this,j))}function U(){this.data.atHardBreak=!0}function le(){const j=this.resume(),re=this.stack[this.stack.length-1];re.value=j}function ae(){const j=this.resume(),re=this.stack[this.stack.length-1];re.value=j}function ee(){const j=this.resume(),re=this.stack[this.stack.length-1];re.value=j}function be(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=re,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function se(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=re,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function Te(j){const re=this.sliceSerialize(j),de=this.stack[this.stack.length-2];de.label=lg(re),de.identifier=Dt(re).toLowerCase()}function fe(){const j=this.stack[this.stack.length-1],re=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const ve=j.children;de.children=ve}else de.alt=re}function N(){const j=this.resume(),re=this.stack[this.stack.length-1];re.url=j}function Ee(){const j=this.resume(),re=this.stack[this.stack.length-1];re.title=j}function Ce(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function Xe(j){const re=this.resume(),de=this.stack[this.stack.length-1];de.label=re,de.identifier=Dt(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function Qe(j){this.data.characterReferenceType=j.type}function Oe(j){const re=this.sliceSerialize(j),de=this.data.characterReferenceType;let ve;de?(ve=U1(re,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ve=gs(re);const Ie=this.stack[this.stack.length-1];Ie.value+=ve}function xt(j){const re=this.stack.pop();re.position.end=lr(j.end)}function rt(j){P.call(this,j);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(j)}function St(j){P.call(this,j);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(j)}function Ct(){return{type:"blockquote",children:[]}}function Br(){return{type:"code",lang:null,meta:null,value:""}}function hi(){return{type:"inlineCode",value:""}}function di(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function cn(){return{type:"emphasis",children:[]}}function hn(){return{type:"heading",depth:0,children:[]}}function dn(){return{type:"break"}}function Fr(){return{type:"html",value:""}}function zr(){return{type:"image",title:null,url:"",alt:null}}function yr(){return{type:"link",title:null,url:"",children:[]}}function Os(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function dd(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function fd(){return{type:"paragraph",children:[]}}function md(){return{type:"strong",children:[]}}function pd(){return{type:"text",value:""}}function gd(){return{type:"thematicBreak"}}}function lr(e){return{line:e.line,column:e.column,offset:e.offset}}function fh(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?fh(e,n):y9(e,n)}}function y9(e,t){let r;for(r in t)if(dh.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function Nl(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Pn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Pn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Pn({start:t.start,end:t.end})+") is still open")}function k9(e){const t=this;t.parser=r;function r(n){return T9(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function v9(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function A9(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
300
+ `}]}function w9(e,t){const r=t.value?t.value+`
301
+ `:"",n={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(n.className=["language-"+a[0]]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function S9(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function C9(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function N9(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),a=on(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let s,u=e.footnoteCounts.get(n);u===void 0?(u=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=i+1,u+=1,e.footnoteCounts.set(n,u);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const o={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,o),e.applyData(t,o)}function _9(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function I9(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function mh(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=n:a.push({type:"text",value:n}),a}function D9(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return mh(e,t);const a={src:on(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function L9(e,t){const r={src:on(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function R9(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function O9(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return mh(e,t);const a={href:on(n.url||"")};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function M9(e,t){const r={href:on(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function P9(e,t,r){const n=e.all(t),a=r?B9(r):ph(t),i={},s=[];if(typeof t.checked=="boolean"){const h=n[0];let c;h&&h.type==="element"&&h.tagName==="p"?c=h:(c={type:"element",tagName:"p",properties:{},children:[]},n.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let u=-1;for(;++u<n.length;){const h=n[u];(a||u!==0||h.type!=="element"||h.tagName!=="p")&&s.push({type:"text",value:`
302
+ `}),h.type==="element"&&h.tagName==="p"&&!a?s.push(...h.children):s.push(h)}const l=n[n.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
303
+ `});const o={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,o),e.applyData(t,o)}function B9(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=ph(r[n])}return t}function ph(e){const t=e.spread;return t??e.children.length>1}function F9(e,t){const r={},n=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++a<n.length;){const s=n[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,i),e.applyData(t,i)}function z9(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function H9(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function U9(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function q9(e,t){const r=e.all(t),n=r.shift(),a=[];if(n){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),a.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},u=Yt(t.children[1]),l=ii(t.children[t.children.length-1]);u&&l&&(s.position={start:u,end:l}),a.push(s)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function j9(e,t,r){const n=r?r.children:void 0,i=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,u=s?s.length:t.children.length;let l=-1;const o=[];for(;++l<u;){const c=t.children[l],m={},g=s?s[l]:void 0;g&&(m.align=g);let E={type:"element",tagName:i,properties:m,children:[]};c&&(E.children=e.all(c),e.patch(c,E),E=e.applyData(c,E)),o.push(E)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(o,!0)};return e.patch(t,h),e.applyData(t,h)}function $9(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const _l=9,Il=32;function Y9(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),a=0;const i=[];for(;n;)i.push(Dl(t.slice(a,n.index),a>0,!0),n[0]),a=n.index+n[0].length,n=r.exec(t);return i.push(Dl(t.slice(a),a>0,!1)),i.join("")}function Dl(e,t,r){let n=0,a=e.length;if(t){let i=e.codePointAt(n);for(;i===_l||i===Il;)n++,i=e.codePointAt(n)}if(r){let i=e.codePointAt(a-1);for(;i===_l||i===Il;)a--,i=e.codePointAt(a-1)}return a>n?e.slice(n,a):""}function V9(e,t){const r={type:"text",value:Y9(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function G9(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const W9={blockquote:v9,break:A9,code:w9,delete:S9,emphasis:C9,footnoteReference:N9,heading:_9,html:I9,imageReference:D9,image:L9,inlineCode:R9,linkReference:O9,link:M9,listItem:P9,list:F9,paragraph:z9,root:H9,strong:U9,table:q9,tableCell:$9,tableRow:j9,text:V9,thematicBreak:G9,toml:ga,yaml:ga,definition:ga,footnoteDefinition:ga};function ga(){}function X9(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Q9(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function K9(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||X9,n=e.options.footnoteBackLabel||Q9,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let l=-1;for(;++l<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[l]);if(!o)continue;const h=e.all(o),c=String(o.identifier).toUpperCase(),m=on(c.toLowerCase());let g=0;const E=[],y=e.footnoteCounts.get(c);for(;y!==void 0&&++g<=y;){E.length>0&&E.push({type:"text",value:" "});let w=typeof r=="string"?r:r(l,g);typeof w=="string"&&(w={type:"text",value:w}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,g),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const v=h[h.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const w=v.children[v.children.length-1];w&&w.type==="text"?w.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...E)}else h.push(...E);const A={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(h,!0)};e.patch(o,A),u.push(A)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Nr(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
304
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
305
+ `}]}}const S0={}.hasOwnProperty,Z9={};function J9(e,t){const r=t||Z9,n=new Map,a=new Map,i=new Map,s={...W9,...r.handlers},u={all:o,applyData:tE,definitionById:n,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:s,one:l,options:r,patch:eE,wrap:nE};return Qr(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const c=h.type==="definition"?n:a,m=String(h.identifier).toUpperCase();c.has(m)||c.set(m,h)}}),u;function l(h,c){const m=h.type,g=u.handlers[m];if(S0.call(u.handlers,m)&&g)return g(u,h,c);if(u.options.passThrough&&u.options.passThrough.includes(m)){if("children"in h){const{children:y,...v}=h,A=Nr(v);return A.children=u.all(h),A}return Nr(h)}return(u.options.unknownHandler||rE)(u,h,c)}function o(h){const c=[];if("children"in h){const m=h.children;let g=-1;for(;++g<m.length;){const E=u.one(m[g],h);if(E){if(g&&m[g-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=Ll(E.value)),!Array.isArray(E)&&E.type==="element")){const y=E.children[0];y&&y.type==="text"&&(y.value=Ll(y.value))}Array.isArray(E)?c.push(...E):c.push(E)}}}return c}}function eE(e,t){e.position&&(t.position=o1(e))}function tE(e,t){let r=t;if(e&&e.data){const n=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&i&&Object.assign(r.properties,Nr(i)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function rE(e,t){const r=t.data||{},n="value"in t&&!(S0.call(r,"hProperties")||S0.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nE(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
306
+ `});++n<e.length;)n&&r.push({type:"text",value:`
307
+ `}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
308
+ `}),r}function Ll(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Rl(e,t){const r=J9(e,t),n=r.one(e,void 0),a=K9(r),i=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
309
+ `},a),i}function aE(e,t){return e&&"run"in e?async function(r,n){const a=Rl(r,{file:n,...t});await e.run(a,n)}:function(r,n){return Rl(r,{file:n,...e||t})}}function Ol(e){if(e)throw e}var qi,Ml;function iE(){if(Ml)return qi;Ml=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=function(o){return typeof Array.isArray=="function"?Array.isArray(o):t.call(o)==="[object Array]"},i=function(o){if(!o||t.call(o)!=="[object Object]")return!1;var h=e.call(o,"constructor"),c=o.constructor&&o.constructor.prototype&&e.call(o.constructor.prototype,"isPrototypeOf");if(o.constructor&&!h&&!c)return!1;var m;for(m in o);return typeof m>"u"||e.call(o,m)},s=function(o,h){r&&h.name==="__proto__"?r(o,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):o[h.name]=h.newValue},u=function(o,h){if(h==="__proto__")if(e.call(o,h)){if(n)return n(o,h).value}else return;return o[h]};return qi=function l(){var o,h,c,m,g,E,y=arguments[0],v=1,A=arguments.length,w=!1;for(typeof y=="boolean"&&(w=y,y=arguments[1]||{},v=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});v<A;++v)if(o=arguments[v],o!=null)for(h in o)c=u(y,h),m=u(o,h),y!==m&&(w&&m&&(i(m)||(g=a(m)))?(g?(g=!1,E=c&&a(c)?c:[]):E=c&&i(c)?c:{},s(y,{name:h,newValue:l(w,E,m)})):typeof m<"u"&&s(y,{name:h,newValue:m}));return y},qi}var sE=iE();const ji=to(sE);function C0(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function uE(){const e=[],t={run:r,use:n};return t;function r(...a){let i=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);u(null,...a);function u(l,...o){const h=e[++i];let c=-1;if(l){s(l);return}for(;++c<a.length;)(o[c]===null||o[c]===void 0)&&(o[c]=a[c]);a=o,h?lE(h,u)(...o):s(null,...o)}}function n(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function lE(e,t){let r;return n;function n(...s){const u=e.length>s.length;let l;u&&s.push(a);try{l=e.apply(this,s)}catch(o){const h=o;if(u&&r)throw h;return a(h)}u||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(s,...u){r||(r=!0,t(s,...u))}function i(s){a(null,s)}}const Pt={basename:oE,dirname:cE,extname:hE,join:dE,sep:"/"};function oE(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ra(e);let r=0,n=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){r=a+1;break}}else n<0&&(i=!0,n=a+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,u=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){r=a+1;break}}else s<0&&(i=!0,s=a+1),u>-1&&(e.codePointAt(a)===t.codePointAt(u--)?u<0&&(n=a):(u=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function cE(e){if(ra(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function hE(e){ra(e);let t=e.length,r=-1,n=0,a=-1,i=0,s;for(;t--;){const u=e.codePointAt(t);if(u===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),u===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||r<0||i===0||i===1&&a===r-1&&a===n+1?"":e.slice(a,r)}function dE(...e){let t=-1,r;for(;++t<e.length;)ra(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":fE(r)}function fE(e){ra(e);const t=e.codePointAt(0)===47;let r=mE(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function mE(e,t){let r="",n=0,a=-1,i=0,s=-1,u,l;for(;++s<=e.length;){if(s<e.length)u=e.codePointAt(s);else{if(u===47)break;u=47}if(u===47){if(!(a===s-1||i===1))if(a!==s-1&&i===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),a=s,i=0;continue}}else if(r.length>0){r="",n=0,a=s,i=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),n=s-a-1;a=s,i=0}else u===46&&i>-1?i++:i=-1}return r}function ra(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const pE={cwd:gE};function gE(){return"/"}function N0(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function bE(e){if(typeof e=="string")e=new URL(e);else if(!N0(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return EE(e)}function EE(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const $i=["history","path","basename","stem","extname","dirname"];class TE{constructor(t){let r;t?N0(t)?r={path:t}:typeof t=="string"||xE(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":pE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<$i.length;){const i=$i[n];i in r&&r[i]!==void 0&&r[i]!==null&&(this[i]=i==="history"?[...r[i]]:r[i])}let a;for(a in r)$i.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?Pt.basename(this.path):void 0}set basename(t){Vi(t,"basename"),Yi(t,"basename"),this.path=Pt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Pt.dirname(this.path):void 0}set dirname(t){Pl(this.basename,"dirname"),this.path=Pt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Pt.extname(this.path):void 0}set extname(t){if(Yi(t,"extname"),Pl(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Pt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){N0(t)&&(t=bE(t)),Vi(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Pt.basename(this.path,this.extname):void 0}set stem(t){Vi(t,"stem"),Yi(t,"stem"),this.path=Pt.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const a=this.message(t,r,n);throw a.fatal=!0,a}info(t,r,n){const a=this.message(t,r,n);return a.fatal=void 0,a}message(t,r,n){const a=new tt(t,r,n);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Yi(e,t){if(e&&e.includes(Pt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Pt.sep+"`")}function Vi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Pl(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function xE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const yE=(function(e){const n=this.constructor.prototype,a=n[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,n),i}),kE={}.hasOwnProperty;class ks extends yE{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=uE()}copy(){const t=new ks;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(ji(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Xi("data",this.frozen),this.namespace[t]=r,this):kE.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Xi("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const a=r.call(t,...n);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=ba(t),n=this.parser||this.Parser;return Gi("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),Gi("process",this.parser||this.Parser),Wi("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(i,s){const u=ba(t),l=n.parse(u);n.run(l,u,function(h,c,m){if(h||!c||!m)return o(h);const g=c,E=n.stringify(g,m);wE(E)?m.value=E:m.result=E,o(h,m)});function o(h,c){h||!c?s(h):i?i(c):r(void 0,c)}}}processSync(t){let r=!1,n;return this.freeze(),Gi("processSync",this.parser||this.Parser),Wi("processSync",this.compiler||this.Compiler),this.process(t,a),Fl("processSync","process",r),n;function a(i,s){r=!0,Ol(i),n=s}}run(t,r,n){Bl(t),this.freeze();const a=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?i(void 0,n):new Promise(i);function i(s,u){const l=ba(r);a.run(t,l,o);function o(h,c,m){const g=c||t;h?u(h):s?s(g):n(void 0,g,m)}}}runSync(t,r){let n=!1,a;return this.run(t,r,i),Fl("runSync","run",n),a;function i(s,u){Ol(s),a=u,n=!0}}stringify(t,r){this.freeze();const n=ba(r),a=this.compiler||this.Compiler;return Wi("stringify",a),Bl(t),a(t,n)}use(t,...r){const n=this.attachers,a=this.namespace;if(Xi("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?u(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(o){if(typeof o=="function")l(o,[]);else if(typeof o=="object")if(Array.isArray(o)){const[h,...c]=o;l(h,c)}else s(o);else throw new TypeError("Expected usable value, not `"+o+"`")}function s(o){if(!("plugins"in o)&&!("settings"in o))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(o.plugins),o.settings&&(a.settings=ji(!0,a.settings,o.settings))}function u(o){let h=-1;if(o!=null)if(Array.isArray(o))for(;++h<o.length;){const c=o[h];i(c)}else throw new TypeError("Expected a list of plugins, not `"+o+"`")}function l(o,h){let c=-1,m=-1;for(;++c<n.length;)if(n[c][0]===o){m=c;break}if(m===-1)n.push([o,...h]);else if(h.length>0){let[g,...E]=h;const y=n[m][1];C0(y)&&C0(g)&&(g=ji(!0,y,g)),n[m]=[o,g,...E]}}}}const vE=new ks().freeze();function Gi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Wi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Xi(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Bl(e){if(!C0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Fl(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ba(e){return AE(e)?e:new TE(e)}function AE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function wE(e){return typeof e=="string"||SE(e)}function SE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function vs(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Pr=vs();function gh(e){Pr=e}var Bn={exec:()=>null};function Se(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(st.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,t)};return n}var CE=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),st={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},NE=/^(?:[ \t]*(?:\n|$))+/,_E=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,IE=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,na=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,DE=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,As=/(?:[*+-]|\d{1,9}[.)])/,bh=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Eh=Se(bh).replace(/bull/g,As).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),LE=Se(bh).replace(/bull/g,As).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ws=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,RE=/^[^\n]+/,Ss=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,OE=Se(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ss).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ME=Se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,As).getRegex(),li="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Cs=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,PE=Se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Cs).replace("tag",li).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Th=Se(ws).replace("hr",na).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",li).getRegex(),BE=Se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Th).getRegex(),Ns={blockquote:BE,code:_E,def:OE,fences:IE,heading:DE,hr:na,html:PE,lheading:Eh,list:ME,newline:NE,paragraph:Th,table:Bn,text:RE},zl=Se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",na).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",li).getRegex(),FE={...Ns,lheading:LE,table:zl,paragraph:Se(ws).replace("hr",na).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",zl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",li).getRegex()},zE={...Ns,html:Se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Cs).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Bn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Se(ws).replace("hr",na).replace("heading",` *#{1,6} *[^
310
+ ]`).replace("lheading",Eh).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},HE=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,UE=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,xh=/^( {2,}|\\)\n(?!\s*$)/,qE=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,oi=/[\p{P}\p{S}]/u,_s=/[\s\p{P}\p{S}]/u,yh=/[^\s\p{P}\p{S}]/u,jE=Se(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_s).getRegex(),kh=/(?!~)[\p{P}\p{S}]/u,$E=/(?!~)[\s\p{P}\p{S}]/u,YE=/(?:[^\s\p{P}\p{S}]|~)/u,VE=Se(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",CE?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),vh=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,GE=Se(vh,"u").replace(/punct/g,oi).getRegex(),WE=Se(vh,"u").replace(/punct/g,kh).getRegex(),Ah="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",XE=Se(Ah,"gu").replace(/notPunctSpace/g,yh).replace(/punctSpace/g,_s).replace(/punct/g,oi).getRegex(),QE=Se(Ah,"gu").replace(/notPunctSpace/g,YE).replace(/punctSpace/g,$E).replace(/punct/g,kh).getRegex(),KE=Se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,yh).replace(/punctSpace/g,_s).replace(/punct/g,oi).getRegex(),ZE=Se(/\\(punct)/,"gu").replace(/punct/g,oi).getRegex(),JE=Se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),eT=Se(Cs).replace("(?:-->|$)","-->").getRegex(),tT=Se("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",eT).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),za=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,rT=Se(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",za).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),wh=Se(/^!?\[(label)\]\[(ref)\]/).replace("label",za).replace("ref",Ss).getRegex(),Sh=Se(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ss).getRegex(),nT=Se("reflink|nolink(?!\\()","g").replace("reflink",wh).replace("nolink",Sh).getRegex(),Hl=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Is={_backpedal:Bn,anyPunctuation:ZE,autolink:JE,blockSkip:VE,br:xh,code:UE,del:Bn,emStrongLDelim:GE,emStrongRDelimAst:XE,emStrongRDelimUnd:KE,escape:HE,link:rT,nolink:Sh,punctuation:jE,reflink:wh,reflinkSearch:nT,tag:tT,text:qE,url:Bn},aT={...Is,link:Se(/^!?\[(label)\]\((.*?)\)/).replace("label",za).getRegex(),reflink:Se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",za).getRegex()},_0={...Is,emStrongRDelimAst:QE,emStrongLDelim:WE,url:Se(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Hl).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Se(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Hl).getRegex()},iT={..._0,br:Se(xh).replace("{2,}","*").getRegex(),text:Se(_0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ea={normal:Ns,gfm:FE,pedantic:zE},yn={normal:Is,gfm:_0,breaks:iT,pedantic:aT},sT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ul=e=>sT[e];function Ot(e,t){if(t){if(st.escapeTest.test(e))return e.replace(st.escapeReplace,Ul)}else if(st.escapeTestNoEncode.test(e))return e.replace(st.escapeReplaceNoEncode,Ul);return e}function ql(e){try{e=encodeURI(e).replace(st.percentDecode,"%")}catch{return null}return e}function jl(e,t){let r=e.replace(st.findPipe,(i,s,u)=>{let l=!1,o=s;for(;--o>=0&&u[o]==="\\";)l=!l;return l?"|":" |"}),n=r.split(st.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(st.slashPipe,"|");return n}function kn(e,t,r){let n=e.length;if(n===0)return"";let a=0;for(;a<n&&e.charAt(n-a-1)===t;)a++;return e.slice(0,n-a)}function uT(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function $l(e,t,r,n,a){let i=t.href,s=t.title||null,u=e[1].replace(a.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:i,title:s,text:u,tokens:n.inlineTokens(u)};return n.state.inLink=!1,l}function lT(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let a=n[1];return t.split(`
311
+ `).map(i=>{let s=i.match(r.other.beginningSpace);if(s===null)return i;let[u]=s;return u.length>=a.length?i.slice(a.length):i}).join(`
312
+ `)}var Ha=class{options;rules;lexer;constructor(e){this.options=e||Pr}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:kn(r,`
313
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let r=t[0],n=lT(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){let n=kn(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:kn(t[0],`
314
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=kn(t[0],`
315
+ `).split(`
316
+ `),n="",a="",i=[];for(;r.length>0;){let s=!1,u=[],l;for(l=0;l<r.length;l++)if(this.rules.other.blockquoteStart.test(r[l]))u.push(r[l]),s=!0;else if(!s)u.push(r[l]);else break;r=r.slice(l);let o=u.join(`
317
+ `),h=o.replace(this.rules.other.blockquoteSetextReplace,`
318
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
319
+ ${o}`:o,a=a?`${a}
320
+ ${h}`:h;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,i,!0),this.lexer.state.top=c,r.length===0)break;let m=i.at(-1);if(m?.type==="code")break;if(m?.type==="blockquote"){let g=m,E=g.raw+`
321
+ `+r.join(`
322
+ `),y=this.blockquote(E);i[i.length-1]=y,n=n.substring(0,n.length-g.raw.length)+y.raw,a=a.substring(0,a.length-g.text.length)+y.text;break}else if(m?.type==="list"){let g=m,E=g.raw+`
323
+ `+r.join(`
324
+ `),y=this.list(E);i[i.length-1]=y,n=n.substring(0,n.length-m.raw.length)+y.raw,a=a.substring(0,a.length-g.raw.length)+y.raw,r=E.substring(i.at(-1).raw.length).split(`
325
+ `);continue}}return{type:"blockquote",raw:n,tokens:i,text:a}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,a={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let i=this.rules.other.listItemRegex(r),s=!1;for(;e;){let l=!1,o="",h="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;o=t[0],e=e.substring(o.length);let c=t[2].split(`
326
+ `,1)[0].replace(this.rules.other.listReplaceTabs,A=>" ".repeat(3*A.length)),m=e.split(`
327
+ `,1)[0],g=!c.trim(),E=0;if(this.options.pedantic?(E=2,h=c.trimStart()):g?E=t[1].length+1:(E=t[2].search(this.rules.other.nonSpaceChar),E=E>4?1:E,h=c.slice(E),E+=t[1].length),g&&this.rules.other.blankLine.test(m)&&(o+=m+`
328
+ `,e=e.substring(m.length+1),l=!0),!l){let A=this.rules.other.nextBulletRegex(E),w=this.rules.other.hrRegex(E),L=this.rules.other.fencesBeginRegex(E),z=this.rules.other.headingBeginRegex(E),q=this.rules.other.htmlBeginRegex(E);for(;e;){let O=e.split(`
329
+ `,1)[0],Y;if(m=O,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),Y=m):Y=m.replace(this.rules.other.tabCharGlobal," "),L.test(m)||z.test(m)||q.test(m)||A.test(m)||w.test(m))break;if(Y.search(this.rules.other.nonSpaceChar)>=E||!m.trim())h+=`
330
+ `+Y.slice(E);else{if(g||c.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||L.test(c)||z.test(c)||w.test(c))break;h+=`
331
+ `+m}!g&&!m.trim()&&(g=!0),o+=O+`
332
+ `,e=e.substring(O.length+1),c=Y.slice(E)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(o)&&(s=!0));let y=null,v;this.options.gfm&&(y=this.rules.other.listIsTask.exec(h),y&&(v=y[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:o,task:!!y,checked:v,loose:!1,text:h,tokens:[]}),a.raw+=o}let u=a.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let l=0;l<a.items.length;l++)if(this.lexer.state.top=!1,a.items[l].tokens=this.lexer.blockTokens(a.items[l].text,[]),!a.loose){let o=a.items[l].tokens.filter(c=>c.type==="space"),h=o.length>0&&o.some(c=>this.rules.other.anyLine.test(c.raw));a.loose=h}if(a.loose)for(let l=0;l<a.items.length;l++)a.items[l].loose=!0;return a}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:a}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=jl(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
333
+ `):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let s of n)this.rules.other.tableAlignRight.test(s)?i.align.push("right"):this.rules.other.tableAlignCenter.test(s)?i.align.push("center"):this.rules.other.tableAlignLeft.test(s)?i.align.push("left"):i.align.push(null);for(let s=0;s<r.length;s++)i.header.push({text:r[s],tokens:this.lexer.inline(r[s]),header:!0,align:i.align[s]});for(let s of a)i.rows.push(jl(s,i.header.length).map((u,l)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:i.align[l]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let r=t[1].charAt(t[1].length-1)===`
334
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let i=kn(r.slice(0,-1),"\\");if((r.length-i.length)%2===0)return}else{let i=uT(t[2],"()");if(i===-2)return;if(i>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let n=t[2],a="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(n);i&&(n=i[1],a=i[3])}else a=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?n=n.slice(1):n=n.slice(1,-1)),$l(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let n=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=t[n.toLowerCase()];if(!a){let i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return $l(r,a,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!r||this.rules.inline.punctuation.exec(r))){let a=[...n[0]].length-1,i,s,u=a,l=0,o=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+a);(n=o.exec(t))!=null;){if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!i)continue;if(s=[...i].length,n[3]||n[4]){u+=s;continue}else if((n[5]||n[6])&&a%3&&!((a+s)%3)){l+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u+l);let h=[...n[0]][0].length,c=e.slice(0,a+n.index+h+s);if(Math.min(a,s)%2){let g=c.slice(1,-1);return{type:"em",raw:c,text:g,tokens:this.lexer.inlineTokens(g)}}let m=c.slice(2,-2);return{type:"strong",raw:c,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(r),a=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&a&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=t[1],n="mailto:"+r):(r=t[1],n=r),{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let r,n;if(t[2]==="@")r=t[0],n="mailto:"+r;else{let a;do a=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(a!==t[0]);r=t[0],t[1]==="www."?n="http://"+t[0]:n=t[0]}return{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},kt=class I0{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Pr,this.options.tokenizer=this.options.tokenizer||new Ha,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:st,block:Ea.normal,inline:yn.normal};this.options.pedantic?(r.block=Ea.pedantic,r.inline=yn.pedantic):this.options.gfm&&(r.block=Ea.gfm,this.options.breaks?r.inline=yn.breaks:r.inline=yn.gfm),this.tokenizer.rules=r}static get rules(){return{block:Ea,inline:yn}}static lex(t,r){return new I0(r).lex(t)}static lexInline(t,r){return new I0(r).inlineTokens(t)}lex(t){t=t.replace(st.carriageReturn,`
335
+ `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){for(this.options.pedantic&&(t=t.replace(st.tabCharGlobal," ").replace(st.spaceLine,""));t;){let a;if(this.options.extensions?.block?.some(s=>(a=s.call({lexer:this},t,r))?(t=t.substring(a.raw.length),r.push(a),!0):!1))continue;if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length);let s=r.at(-1);a.raw.length===1&&s!==void 0?s.raw+=`
336
+ `:r.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
337
+ `)?"":`
338
+ `)+a.raw,s.text+=`
339
+ `+a.text,this.inlineQueue.at(-1).src=s.text):r.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length);let s=r.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
340
+ `)?"":`
341
+ `)+a.raw,s.text+=`
342
+ `+a.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},r.push(a));continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),r.push(a);continue}let i=t;if(this.options.extensions?.startBlock){let s=1/0,u=t.slice(1),l;this.options.extensions.startBlock.forEach(o=>{l=o.call({lexer:this},u),typeof l=="number"&&l>=0&&(s=Math.min(s,l))}),s<1/0&&s>=0&&(i=t.substring(0,s+1))}if(this.state.top&&(a=this.tokenizer.paragraph(i))){let s=r.at(-1);n&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
343
+ `)?"":`
344
+ `)+a.raw,s.text+=`
345
+ `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(a),n=i.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length);let s=r.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
346
+ `)?"":`
347
+ `)+a.raw,s.text+=`
348
+ `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):r.push(a);continue}if(t){let s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n=t,a=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)l.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,a.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(a=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=a[2]?a[2].length:0,n=n.slice(0,a.index+i)+"["+"a".repeat(a[0].length-i-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let s=!1,u="";for(;t;){s||(u=""),s=!1;let l;if(this.options.extensions?.inline?.some(h=>(l=h.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let h=r.at(-1);l.type==="text"&&h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(l=this.tokenizer.emStrong(t,n,u)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.del(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),r.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),r.push(l);continue}let o=t;if(this.options.extensions?.startInline){let h=1/0,c=t.slice(1),m;this.options.extensions.startInline.forEach(g=>{m=g.call({lexer:this},c),typeof m=="number"&&m>=0&&(h=Math.min(h,m))}),h<1/0&&h>=0&&(o=t.substring(0,h+1))}if(l=this.tokenizer.inlineText(o)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(u=l.raw.slice(-1)),s=!0;let h=r.at(-1);h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},Ua=class{options;parser;constructor(e){this.options=e||Pr}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(st.notSpaceStart)?.[0],a=e.replace(st.endingNewline,"")+`
349
+ `;return n?'<pre><code class="language-'+Ot(n)+'">'+(r?a:Ot(a,!0))+`</code></pre>
350
+ `:"<pre><code>"+(r?a:Ot(a,!0))+`</code></pre>
351
+ `}blockquote({tokens:e}){return`<blockquote>
352
+ ${this.parser.parse(e)}</blockquote>
353
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
354
+ `}hr(e){return`<hr>
355
+ `}list(e){let t=e.ordered,r=e.start,n="";for(let s=0;s<e.items.length;s++){let u=e.items[s];n+=this.listitem(u)}let a=t?"ol":"ul",i=t&&r!==1?' start="'+r+'"':"";return"<"+a+i+`>
356
+ `+n+"</"+a+`>
357
+ `}listitem(e){let t="";if(e.task){let r=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=r+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=r+" "+Ot(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):t+=r+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
358
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
359
+ `}table(e){let t="",r="";for(let a=0;a<e.header.length;a++)r+=this.tablecell(e.header[a]);t+=this.tablerow({text:r});let n="";for(let a=0;a<e.rows.length;a++){let i=e.rows[a];r="";for(let s=0;s<i.length;s++)r+=this.tablecell(i[s]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
360
+ <thead>
361
+ `+t+`</thead>
362
+ `+n+`</table>
363
+ `}tablerow({text:e}){return`<tr>
364
+ ${e}</tr>
365
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
366
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ot(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),a=ql(e);if(a===null)return n;e=a;let i='<a href="'+e+'"';return t&&(i+=' title="'+Ot(t)+'"'),i+=">"+n+"</a>",i}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let a=ql(e);if(a===null)return Ot(r);e=a;let i=`<img src="${e}" alt="${r}"`;return t&&(i+=` title="${Ot(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Ot(e.text)}},Ds=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},It=class D0{options;renderer;textRenderer;constructor(t){this.options=t||Pr,this.options.renderer=this.options.renderer||new Ua,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ds}static parse(t,r){return new D0(r).parse(t)}static parseInline(t,r){return new D0(r).parseInline(t)}parse(t,r=!0){let n="";for(let a=0;a<t.length;a++){let i=t[a];if(this.options.extensions?.renderers?.[i.type]){let u=i,l=this.options.extensions.renderers[u.type].call({parser:this},u);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(u.type)){n+=l||"";continue}}let s=i;switch(s.type){case"space":{n+=this.renderer.space(s);continue}case"hr":{n+=this.renderer.hr(s);continue}case"heading":{n+=this.renderer.heading(s);continue}case"code":{n+=this.renderer.code(s);continue}case"table":{n+=this.renderer.table(s);continue}case"blockquote":{n+=this.renderer.blockquote(s);continue}case"list":{n+=this.renderer.list(s);continue}case"html":{n+=this.renderer.html(s);continue}case"def":{n+=this.renderer.def(s);continue}case"paragraph":{n+=this.renderer.paragraph(s);continue}case"text":{let u=s,l=this.renderer.text(u);for(;a+1<t.length&&t[a+1].type==="text";)u=t[++a],l+=`
367
+ `+this.renderer.text(u);r?n+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):n+=l;continue}default:{let u='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}parseInline(t,r=this.renderer){let n="";for(let a=0;a<t.length;a++){let i=t[a];if(this.options.extensions?.renderers?.[i.type]){let u=this.options.extensions.renderers[i.type].call({parser:this},i);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=u||"";continue}}let s=i;switch(s.type){case"escape":{n+=r.text(s);break}case"html":{n+=r.html(s);break}case"link":{n+=r.link(s);break}case"image":{n+=r.image(s);break}case"strong":{n+=r.strong(s);break}case"em":{n+=r.em(s);break}case"codespan":{n+=r.codespan(s);break}case"br":{n+=r.br(s);break}case"del":{n+=r.del(s);break}case"text":{n+=r.text(s);break}default:{let u='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}},Sn=class{options;block;constructor(e){this.options=e||Pr}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?kt.lex:kt.lexInline}provideParser(){return this.block?It.parse:It.parseInline}},oT=class{defaults=vs();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=It;Renderer=Ua;TextRenderer=Ds;Lexer=kt;Tokenizer=Ha;Hooks=Sn;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":{let a=n;for(let i of a.header)r=r.concat(this.walkTokens(i.tokens,t));for(let i of a.rows)for(let s of i)r=r.concat(this.walkTokens(s.tokens,t));break}case"list":{let a=n;r=r.concat(this.walkTokens(a.items,t));break}default:{let a=n;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(i=>{let s=a[i].flat(1/0);r=r.concat(this.walkTokens(s,t))}):a.tokens&&(r=r.concat(this.walkTokens(a.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let i=t.renderers[a.name];i?t.renderers[a.name]=function(...s){let u=a.renderer.apply(this,s);return u===!1&&(u=i.apply(this,s)),u}:t.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[a.level];i?i.unshift(a.tokenizer):t[a.level]=[a.tokenizer],a.start&&(a.level==="block"?t.startBlock?t.startBlock.push(a.start):t.startBlock=[a.start]:a.level==="inline"&&(t.startInline?t.startInline.push(a.start):t.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(t.childTokens[a.name]=a.childTokens)}),n.extensions=t),r.renderer){let a=this.defaults.renderer||new Ua(this.defaults);for(let i in r.renderer){if(!(i in a))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let s=i,u=r.renderer[s],l=a[s];a[s]=(...o)=>{let h=u.apply(a,o);return h===!1&&(h=l.apply(a,o)),h||""}}n.renderer=a}if(r.tokenizer){let a=this.defaults.tokenizer||new Ha(this.defaults);for(let i in r.tokenizer){if(!(i in a))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let s=i,u=r.tokenizer[s],l=a[s];a[s]=(...o)=>{let h=u.apply(a,o);return h===!1&&(h=l.apply(a,o)),h}}n.tokenizer=a}if(r.hooks){let a=this.defaults.hooks||new Sn;for(let i in r.hooks){if(!(i in a))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let s=i,u=r.hooks[s],l=a[s];Sn.passThroughHooks.has(i)?a[s]=o=>{if(this.defaults.async&&Sn.passThroughHooksRespectAsync.has(i))return(async()=>{let c=await u.call(a,o);return l.call(a,c)})();let h=u.call(a,o);return l.call(a,h)}:a[s]=(...o)=>{if(this.defaults.async)return(async()=>{let c=await u.apply(a,o);return c===!1&&(c=await l.apply(a,o)),c})();let h=u.apply(a,o);return h===!1&&(h=l.apply(a,o)),h}}n.hooks=a}if(r.walkTokens){let a=this.defaults.walkTokens,i=r.walkTokens;n.walkTokens=function(s){let u=[];return u.push(i.call(this,s)),a&&(u=u.concat(a.call(this,s))),u}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return kt.lex(e,t??this.defaults)}parser(e,t){return It.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},a={...this.defaults,...n},i=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&n.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let s=a.hooks?await a.hooks.preprocess(t):t,u=await(a.hooks?await a.hooks.provideLexer():e?kt.lex:kt.lexInline)(s,a),l=a.hooks?await a.hooks.processAllTokens(u):u;a.walkTokens&&await Promise.all(this.walkTokens(l,a.walkTokens));let o=await(a.hooks?await a.hooks.provideParser():e?It.parse:It.parseInline)(l,a);return a.hooks?await a.hooks.postprocess(o):o})().catch(i);try{a.hooks&&(t=a.hooks.preprocess(t));let s=(a.hooks?a.hooks.provideLexer():e?kt.lex:kt.lexInline)(t,a);a.hooks&&(s=a.hooks.processAllTokens(s)),a.walkTokens&&this.walkTokens(s,a.walkTokens);let u=(a.hooks?a.hooks.provideParser():e?It.parse:It.parseInline)(s,a);return a.hooks&&(u=a.hooks.postprocess(u)),u}catch(s){return i(s)}}}onError(e,t){return r=>{if(r.message+=`
368
+ Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+Ot(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},Ir=new oT;function Ne(e,t){return Ir.parse(e,t)}Ne.options=Ne.setOptions=function(e){return Ir.setOptions(e),Ne.defaults=Ir.defaults,gh(Ne.defaults),Ne};Ne.getDefaults=vs;Ne.defaults=Pr;Ne.use=function(...e){return Ir.use(...e),Ne.defaults=Ir.defaults,gh(Ne.defaults),Ne};Ne.walkTokens=function(e,t){return Ir.walkTokens(e,t)};Ne.parseInline=Ir.parseInline;Ne.Parser=It;Ne.parser=It.parse;Ne.Renderer=Ua;Ne.TextRenderer=Ds;Ne.Lexer=kt;Ne.lexer=kt.lex;Ne.Tokenizer=Ha;Ne.Hooks=Sn;Ne.parse=Ne;Ne.options;Ne.setOptions;Ne.use;Ne.walkTokens;Ne.parseInline;It.parse;kt.lex;var pe=(...e)=>Fd(yd(e)),Xr=(e,t,r)=>{let n=typeof t=="string"?new Blob([t],{type:r}):t,a=URL.createObjectURL(n),i=document.createElement("a");i.href=a,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(a)},cT=B.createContext({code:""}),Ch=()=>B.useContext(cT),Yl=({onCopy:e,onError:t,timeout:r=2e3,children:n,className:a,code:i,...s})=>{let[u,l]=B.useState(!1),o=B.useRef(0),{code:h}=Ch(),{isAnimating:c}=B.useContext(Lt),m=i??h,g=async()=>{var y;if(typeof window>"u"||!((y=navigator?.clipboard)!=null&&y.writeText)){t?.(new Error("Clipboard API not available"));return}try{u||(await navigator.clipboard.writeText(m),l(!0),e?.(),o.current=window.setTimeout(()=>l(!1),r))}catch(v){t?.(v)}};B.useEffect(()=>()=>{window.clearTimeout(o.current)},[]);let E=u?ro:no;return I.jsx("button",{className:pe("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-copy-button",disabled:c,onClick:g,title:"Copy Code",type:"button",...s,children:n??I.jsx(E,{size:14})})},Vl={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},hT=({onDownload:e,onError:t,language:r,children:n,className:a,code:i,...s})=>{let{code:u}=Ch(),{isAnimating:l}=B.useContext(Lt),o=i??u,h=`file.${r&&r in Vl?Vl[r]:"txt"}`,c="text/plain",m=()=>{try{Xr(h,o,c),e?.()}catch(g){t?.(g)}};return I.jsx("button",{className:pe("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-download-button",disabled:l,onClick:m,title:"Download file",type:"button",...s,children:n??I.jsx(qa,{size:14})})},Gl=()=>I.jsxs("div",{className:"w-full divide-y divide-border overflow-hidden rounded-xl border border-border",children:[I.jsx("div",{className:"h-[46px] w-full bg-muted/80"}),I.jsx("div",{className:"flex w-full items-center justify-center p-4",children:I.jsx(Cd,{className:"size-4 animate-spin"})})]}),dT=/\.[^/.]+$/,fT=({node:e,className:t,src:r,alt:n,...a})=>{let i=async()=>{if(r)try{let s=await(await fetch(r)).blob(),u=new URL(r,window.location.origin).pathname.split("/").pop()||"",l=u.split(".").pop(),o=u.includes(".")&&l!==void 0&&l.length<=4,h="";if(o)h=u;else{let c=s.type,m="png";c.includes("jpeg")||c.includes("jpg")?m="jpg":c.includes("png")?m="png":c.includes("svg")?m="svg":c.includes("gif")?m="gif":c.includes("webp")&&(m="webp"),h=`${(n||u||"image").replace(dT,"")}.${m}`}Xr(h,s,s.type)}catch(s){console.error("Failed to download image:",s)}};return r?I.jsxs("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[I.jsx("img",{alt:n,className:pe("max-w-full rounded-lg",t),"data-streamdown":"image",src:r,...a}),I.jsx("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),I.jsx("button",{className:pe("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:i,title:"Download image",type:"button",children:I.jsx(qa,{size:14})})]}):null},Nh=async e=>{let t={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...e},r=(await ja(async()=>{const{default:n}=await import("./mermaid.core-ds122QIK.js").then(a=>a.bA);return{default:n}},__vite__mapDeps([0,1,2,3]))).default;return r.initialize(t),r},mT=(e,t)=>{var r;let n=(r=void 0)!=null?r:5;return new Promise((a,i)=>{let s="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),u=new Image;u.crossOrigin="anonymous",u.onload=()=>{let l=document.createElement("canvas"),o=u.width*n,h=u.height*n;l.width=o,l.height=h;let c=l.getContext("2d");if(!c){i(new Error("Failed to create 2D canvas context for PNG export"));return}c.drawImage(u,0,0,o,h),l.toBlob(m=>{if(!m){i(new Error("Failed to create PNG blob"));return}a(m)},"image/png")},u.onerror=()=>i(new Error("Failed to load SVG image")),u.src=s})},pT=({chart:e,children:t,className:r,onDownload:n,config:a,onError:i})=>{let[s,u]=B.useState(!1),l=B.useRef(null),{isAnimating:o}=B.useContext(Lt),h=async c=>{try{if(c==="mmd"){Xr("diagram.mmd",e,"text/plain"),u(!1),n?.(c);return}let m=await Nh(a),g=e.split("").reduce((v,A)=>(v<<5)-v+A.charCodeAt(0)|0,0),E=`mermaid-${Math.abs(g)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:y}=await m.render(E,e);if(!y){i?.(new Error("SVG not found. Please wait for the diagram to render."));return}if(c==="svg"){Xr("diagram.svg",y,"image/svg+xml"),u(!1),n?.(c);return}if(c==="png"){let v=await mT(y);Xr("diagram.png",v,"image/png"),n?.(c),u(!1);return}}catch(m){i?.(m)}};return B.useEffect(()=>{let c=m=>{l.current&&!l.current.contains(m.target)&&u(!1)};return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}},[]),I.jsxs("div",{className:"relative",ref:l,children:[I.jsx("button",{className:pe("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:o,onClick:()=>u(!s),title:"Download diagram",type:"button",children:t??I.jsx(qa,{size:14})}),s&&I.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[I.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("svg"),title:"Download diagram as SVG",type:"button",children:"SVG"}),I.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("png"),title:"Download diagram as PNG",type:"button",children:"PNG"}),I.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("mmd"),title:"Download diagram as MMD",type:"button",children:"MMD"})]})]})},Fn=0,gT=()=>{Fn+=1,Fn===1&&(document.body.style.overflow="hidden")},bT=()=>{Fn=Math.max(0,Fn-1),Fn===0&&(document.body.style.overflow="")},ET=({chart:e,config:t,onFullscreen:r,onExit:n,className:a,...i})=>{let[s,u]=B.useState(!1),{isAnimating:l,controls:o}=B.useContext(Lt),h=(()=>{if(typeof o=="boolean")return o;let m=o.mermaid;return m===!1?!1:m===!0||m===void 0?!0:m.panZoom!==!1})(),c=()=>{u(!s)};return B.useEffect(()=>{if(s){gT();let m=g=>{g.key==="Escape"&&u(!1)};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m),bT()}}},[s]),B.useEffect(()=>{s?r?.():n&&n()},[s,r,n]),I.jsxs(I.Fragment,{children:[I.jsx("button",{className:pe("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:l,onClick:c,title:"View fullscreen",type:"button",...i,children:I.jsx(wd,{size:14})}),s&&I.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm",onClick:c,onKeyDown:m=>{m.key==="Escape"&&c()},role:"button",tabIndex:0,children:[I.jsx("button",{className:"absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:c,title:"Exit fullscreen",type:"button",children:I.jsx(Sd,{size:20})}),I.jsx("div",{className:"flex h-full w-full items-center justify-center p-4",onClick:m=>m.stopPropagation(),onKeyDown:m=>m.stopPropagation(),role:"presentation",children:I.jsx(nd,{chart:e,className:"h-full w-full [&>div]:h-full [&>div]:overflow-hidden [&_svg]:h-auto [&_svg]:w-auto",config:t,fullscreen:!0,showControls:h})})]})]})},_h=e=>{var t,r;let n=[],a=[],i=e.querySelectorAll("thead th");for(let u of i)n.push(((t=u.textContent)==null?void 0:t.trim())||"");let s=e.querySelectorAll("tbody tr");for(let u of s){let l=[],o=u.querySelectorAll("td");for(let h of o)l.push(((r=h.textContent)==null?void 0:r.trim())||"");a.push(l)}return{headers:n,rows:a}},Ih=e=>{let{headers:t,rows:r}=e,n=u=>{let l=!1,o=!1;for(let h=0;h<u.length;h+=1){let c=u[h];if(c==='"'){l=!0,o=!0;break}(c===","||c===`
369
+ `)&&(l=!0)}return l?o?`"${u.replace(/"/g,'""')}"`:`"${u}"`:u},a=t.length>0?r.length+1:r.length,i=new Array(a),s=0;t.length>0&&(i[s]=t.map(n).join(","),s+=1);for(let u of r)i[s]=u.map(n).join(","),s+=1;return i.join(`
370
+ `)},TT=e=>{let{headers:t,rows:r}=e,n=u=>{let l=!1;for(let h=0;h<u.length;h+=1){let c=u[h];if(c===" "||c===`
371
+ `||c==="\r"){l=!0;break}}if(!l)return u;let o=[];for(let h=0;h<u.length;h+=1){let c=u[h];c===" "?o.push("\\t"):c===`
372
+ `?o.push("\\n"):c==="\r"?o.push("\\r"):o.push(c)}return o.join("")},a=t.length>0?r.length+1:r.length,i=new Array(a),s=0;t.length>0&&(i[s]=t.map(n).join(" "),s+=1);for(let u of r)i[s]=u.map(n).join(" "),s+=1;return i.join(`
373
+ `)},Qi=e=>{let t=!1;for(let n=0;n<e.length;n+=1){let a=e[n];if(a==="\\"||a==="|"){t=!0;break}}if(!t)return e;let r=[];for(let n=0;n<e.length;n+=1){let a=e[n];a==="\\"?r.push("\\\\"):a==="|"?r.push("\\|"):r.push(a)}return r.join("")},xT=e=>{let{headers:t,rows:r}=e;if(t.length===0)return"";let n=new Array(r.length+2),a=0,i=t.map(u=>Qi(u));n[a]=`| ${i.join(" | ")} |`,a+=1;let s=new Array(t.length);for(let u=0;u<t.length;u+=1)s[u]="---";n[a]=`| ${s.join(" | ")} |`,a+=1;for(let u of r)if(u.length<t.length){let l=new Array(t.length);for(let o=0;o<t.length;o+=1)l[o]=o<u.length?Qi(u[o]):"";n[a]=`| ${l.join(" | ")} |`,a+=1}else{let l=u.map(o=>Qi(o));n[a]=`| ${l.join(" | ")} |`,a+=1}return n.join(`
374
+ `)},yT=({children:e,className:t,onCopy:r,onError:n,timeout:a=2e3})=>{let[i,s]=B.useState(!1),[u,l]=B.useState(!1),o=B.useRef(null),h=B.useRef(0),{isAnimating:c}=B.useContext(Lt),m=async E=>{var y,v;if(typeof window>"u"||!((y=navigator?.clipboard)!=null&&y.write)){n?.(new Error("Clipboard API not available"));return}try{let A=(v=o.current)==null?void 0:v.closest('[data-streamdown="table-wrapper"]'),w=A?.querySelector("table");if(!w){n?.(new Error("Table not found"));return}let L=_h(w),z=E==="csv"?Ih(L):TT(L),q=new ClipboardItem({"text/plain":new Blob([z],{type:"text/plain"}),"text/html":new Blob([w.outerHTML],{type:"text/html"})});await navigator.clipboard.write([q]),l(!0),s(!1),r?.(E),h.current=window.setTimeout(()=>l(!1),a)}catch(A){n?.(A)}};B.useEffect(()=>{let E=y=>{o.current&&!o.current.contains(y.target)&&s(!1)};return document.addEventListener("mousedown",E),()=>{document.removeEventListener("mousedown",E),window.clearTimeout(h.current)}},[]);let g=u?ro:no;return I.jsxs("div",{className:"relative",ref:o,children:[I.jsx("button",{className:pe("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:c,onClick:()=>s(!i),title:"Copy table",type:"button",children:e??I.jsx(g,{size:14})}),i&&I.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[I.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>m("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),I.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>m("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]})]})},kT=({children:e,className:t,onDownload:r,onError:n})=>{let[a,i]=B.useState(!1),s=B.useRef(null),{isAnimating:u}=B.useContext(Lt),l=o=>{var h;try{let c=(h=s.current)==null?void 0:h.closest('[data-streamdown="table-wrapper"]'),m=c?.querySelector("table");if(!m){n?.(new Error("Table not found"));return}let g=_h(m),E=o==="csv"?Ih(g):xT(g);Xr(`table.${o==="csv"?"csv":"md"}`,E,o==="csv"?"text/csv":"text/markdown"),i(!1),r?.(o)}catch(c){n?.(c)}};return B.useEffect(()=>{let o=h=>{s.current&&!s.current.contains(h.target)&&i(!1)};return document.addEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o)}},[]),I.jsxs("div",{className:"relative",ref:s,children:[I.jsx("button",{className:pe("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:()=>i(!a),title:"Download table",type:"button",children:e??I.jsx(qa,{size:14})}),a&&I.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[I.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>l("csv"),title:"Download table as CSV",type:"button",children:"CSV"}),I.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>l("markdown"),title:"Download table as Markdown",type:"button",children:"Markdown"})]})]})},vT=({children:e,className:t,showControls:r,...n})=>I.jsxs("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[r&&I.jsxs("div",{className:"flex items-center justify-end gap-1",children:[I.jsx(yT,{}),I.jsx(kT,{})]}),I.jsx("div",{className:"overflow-x-auto",children:I.jsx("table",{className:pe("w-full border-collapse border border-border",t),"data-streamdown":"table",...n,children:e})})]}),AT=B.lazy(()=>ja(()=>import("./code-block-IT6T5CEO-B2LU0jbX.js"),__vite__mapDeps([4,3,5,6,1,2,7,8,9,10,11,12,13])).then(e=>({default:e.CodeBlock}))),wT=B.lazy(()=>ja(()=>Promise.resolve().then(()=>gx),void 0).then(e=>({default:e.Mermaid}))),ST=/language-([^\s]+)/;function ci(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let r=e.position.start,n=t.position.start,a=e.position.end,i=t.position.end;return r?.line===n?.line&&r?.column===n?.column&&a?.line===i?.line&&a?.column===i?.column}function Ue(e,t){return e.className===t.className&&ci(e.node,t.node)}var L0=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,Ta=(e,t)=>{if(typeof e=="boolean")return e;let r=e.mermaid;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},Ls=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("ol",{className:pe("list-inside list-decimal whitespace-normal",t),"data-streamdown":"ordered-list",...n,children:e}),(e,t)=>Ue(e,t));Ls.displayName="MarkdownOl";var Dh=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("li",{className:pe("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...n,children:e}),(e,t)=>e.className===t.className&&ci(e.node,t.node));Dh.displayName="MarkdownLi";var Lh=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("ul",{className:pe("list-inside list-disc whitespace-normal",t),"data-streamdown":"unordered-list",...n,children:e}),(e,t)=>Ue(e,t));Lh.displayName="MarkdownUl";var Rh=B.memo(({className:e,node:t,...r})=>I.jsx("hr",{className:pe("my-6 border-border",e),"data-streamdown":"horizontal-rule",...r}),(e,t)=>Ue(e,t));Rh.displayName="MarkdownHr";var Oh=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("span",{className:pe("font-semibold",t),"data-streamdown":"strong",...n,children:e}),(e,t)=>Ue(e,t));Oh.displayName="MarkdownStrong";var Mh=B.memo(({children:e,className:t,href:r,node:n,...a})=>{let i=r==="streamdown:incomplete-link";return I.jsx("a",{className:pe("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":i,"data-streamdown":"link",href:r,rel:"noreferrer",target:"_blank",...a,children:e})},(e,t)=>Ue(e,t)&&e.href===t.href);Mh.displayName="MarkdownA";var Ph=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("h1",{className:pe("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...n,children:e}),(e,t)=>Ue(e,t));Ph.displayName="MarkdownH1";var Bh=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("h2",{className:pe("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...n,children:e}),(e,t)=>Ue(e,t));Bh.displayName="MarkdownH2";var Fh=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("h3",{className:pe("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...n,children:e}),(e,t)=>Ue(e,t));Fh.displayName="MarkdownH3";var zh=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("h4",{className:pe("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...n,children:e}),(e,t)=>Ue(e,t));zh.displayName="MarkdownH4";var Hh=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("h5",{className:pe("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...n,children:e}),(e,t)=>Ue(e,t));Hh.displayName="MarkdownH5";var Uh=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("h6",{className:pe("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...n,children:e}),(e,t)=>Ue(e,t));Uh.displayName="MarkdownH6";var qh=B.memo(({children:e,className:t,node:r,...n})=>{let{controls:a}=B.useContext(Lt),i=L0(a,"table");return I.jsx(vT,{className:t,"data-streamdown":"table-wrapper",showControls:i,...n,children:e})},(e,t)=>Ue(e,t));qh.displayName="MarkdownTable";var jh=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("thead",{className:pe("bg-muted/80",t),"data-streamdown":"table-header",...n,children:e}),(e,t)=>Ue(e,t));jh.displayName="MarkdownThead";var $h=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("tbody",{className:pe("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...n,children:e}),(e,t)=>Ue(e,t));$h.displayName="MarkdownTbody";var Yh=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("tr",{className:pe("border-border border-b",t),"data-streamdown":"table-row",...n,children:e}),(e,t)=>Ue(e,t));Yh.displayName="MarkdownTr";var Vh=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("th",{className:pe("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...n,children:e}),(e,t)=>Ue(e,t));Vh.displayName="MarkdownTh";var Gh=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("td",{className:pe("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...n,children:e}),(e,t)=>Ue(e,t));Gh.displayName="MarkdownTd";var Wh=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("blockquote",{className:pe("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...n,children:e}),(e,t)=>Ue(e,t));Wh.displayName="MarkdownBlockquote";var Xh=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("sup",{className:pe("text-sm",t),"data-streamdown":"superscript",...n,children:e}),(e,t)=>Ue(e,t));Xh.displayName="MarkdownSup";var Qh=B.memo(({children:e,className:t,node:r,...n})=>I.jsx("sub",{className:pe("text-sm",t),"data-streamdown":"subscript",...n,children:e}),(e,t)=>Ue(e,t));Qh.displayName="MarkdownSub";var Kh=B.memo(({children:e,className:t,node:r,...n})=>{if("data-footnotes"in n){let a=s=>{var u,l;if(!B.isValidElement(s))return!1;let o=Array.isArray(s.props.children)?s.props.children:[s.props.children],h=!1,c=!1;for(let m of o)if(m){if(typeof m=="string")m.trim()!==""&&(h=!0);else if(B.isValidElement(m))if(((u=m.props)==null?void 0:u["data-footnote-backref"])!==void 0)c=!0;else{let g=Array.isArray(m.props.children)?m.props.children:[m.props.children];for(let E of g){if(typeof E=="string"&&E.trim()!==""){h=!0;break}if(B.isValidElement(E)&&((l=E.props)==null?void 0:l["data-footnote-backref"])===void 0){h=!0;break}}}}return c&&!h},i=Array.isArray(e)?e.map(s=>{if(!B.isValidElement(s))return s;if(s.type===Ls){let u=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(l=>!a(l));return u.length===0?null:{...s,props:{...s.props,children:u}}}return s}):e;return(Array.isArray(i)?i.some(s=>s!==null):i!==null)?I.jsx("section",{className:t,...n,children:i}):null}return I.jsx("section",{className:t,...n,children:e})},(e,t)=>Ue(e,t));Kh.displayName="MarkdownSection";var CT=({node:e,className:t,children:r,...n})=>{var a,i,s;let u=((a=e?.position)==null?void 0:a.start.line)===((i=e?.position)==null?void 0:i.end.line),{mermaid:l,controls:o}=B.useContext(Lt);if(u)return I.jsx("code",{className:pe("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...n,children:r});let h=t?.match(ST),c=(s=h?.at(1))!=null?s:"",m="";if(B.isValidElement(r)&&r.props&&typeof r.props=="object"&&"children"in r.props&&typeof r.props.children=="string"?m=r.props.children:typeof r=="string"&&(m=r),c==="mermaid"){let E=L0(o,"mermaid"),y=Ta(o,"download"),v=Ta(o,"copy"),A=Ta(o,"fullscreen"),w=Ta(o,"panZoom");return I.jsx(B.Suspense,{fallback:I.jsx(Gl,{}),children:I.jsxs("div",{className:pe("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[E&&(y||v||A)&&I.jsxs("div",{className:"flex items-center justify-end gap-2",children:[y&&I.jsx(pT,{chart:m,config:l?.config}),v&&I.jsx(Yl,{code:m}),A&&I.jsx(ET,{chart:m,config:l?.config})]}),I.jsx(wT,{chart:m,config:l?.config,showControls:w})]})})}let g=L0(o,"code");return I.jsx(B.Suspense,{fallback:I.jsx(Gl,{}),children:I.jsx(AT,{className:pe("overflow-x-auto border-border border-t",t),code:m,language:c,children:g&&I.jsxs(I.Fragment,{children:[I.jsx(hT,{code:m,language:c}),I.jsx(Yl,{})]})})})},Zh=B.memo(CT,(e,t)=>e.className===t.className&&ci(e.node,t.node));Zh.displayName="MarkdownCode";var Jh=B.memo(fT,(e,t)=>e.className===t.className&&ci(e.node,t.node));Jh.displayName="MarkdownImg";var ed=B.memo(({children:e,className:t,node:r,...n})=>{var a;let i=(Array.isArray(e)?e:[e]).filter(s=>s!=null&&s!=="");return i.length===1&&B.isValidElement(i[0])&&((a=i[0].props.node)==null?void 0:a.tagName)==="img"?I.jsx(I.Fragment,{children:e}):I.jsx("p",{className:t,...n,children:e})},(e,t)=>Ue(e,t));ed.displayName="MarkdownParagraph";var NT={ol:Ls,li:Dh,ul:Lh,hr:Rh,strong:Oh,a:Mh,h1:Ph,h2:Bh,h3:Fh,h4:zh,h5:Hh,h6:Uh,table:qh,thead:jh,tbody:$h,tr:Yh,th:Vh,td:Gh,blockquote:Wh,code:Zh,img:Jh,pre:({children:e})=>e,sup:Xh,sub:Qh,p:ed,section:Kh},Wl=[],Xl={allowDangerousHtml:!0},xa=new WeakMap,_T=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let r=e.rehypePlugins,n=e.remarkPlugins,a=e.remarkRehypeOptions;if(!(r||n||a)){let h="default";return this.keyCache.set(e,h),h}let i=h=>{if(!h||h.length===0)return"";let c="";for(let m=0;m<h.length;m+=1){let g=h[m];if(m>0&&(c+=","),Array.isArray(g)){let[E,y]=g;if(typeof E=="function"){let v=xa.get(E);v||(v=E.name,xa.set(E,v)),c+=v}else c+=String(E);c+=":",c+=JSON.stringify(y)}else if(typeof g=="function"){let E=xa.get(g);E||(E=g.name,xa.set(g,E)),c+=E}else c+=String(g)}return c},s=i(r),u=i(n),l=a?JSON.stringify(a):"",o=`${u}::${s}::${l}`;return this.keyCache.set(e,o),o}get(e){let t=this.generateCacheKey(e),r=this.cache.get(t);return r&&(this.cache.delete(t),this.cache.set(t,r)),r}set(e,t){let r=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let n=this.cache.keys().next().value;n&&this.cache.delete(n)}this.cache.set(r,t)}clear(){this.cache.clear()}},Ql=new _T,td=e=>{let t=IT(e),r=e.children||"";return LT(t.runSync(t.parse(r),r),e)},IT=e=>{let t=Ql.get(e);if(t)return t;let r=DT(e);return Ql.set(e,r),r},DT=e=>{let t=e.rehypePlugins||Wl,r=e.remarkPlugins||Wl,n=e.remarkRehypeOptions?{...Xl,...e.remarkRehypeOptions}:Xl;return vE().use(k9).use(r).use(aE,n).use(t)},LT=(e,t)=>Ib(e,{Fragment:I.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:I.jsx,jsxs:I.jsxs,passKeys:!0,passNode:!0}),RT=/\[\^[^\]\s]{1,200}\](?!:)/,OT=/\[\^[^\]\s]{1,200}\]:/,MT=/<\/(\w+)>/,PT=/<(\w+)[\s>]/,Ki=e=>{let t=0;for(;t<e.length&&(e[t]===" "||e[t]===" "||e[t]===`
375
+ `||e[t]==="\r");)t+=1;return t+1<e.length&&e[t]==="$"&&e[t+1]==="$"},BT=e=>{let t=e.length-1;for(;t>=0&&(e[t]===" "||e[t]===" "||e[t]===`
376
+ `||e[t]==="\r");)t-=1;return t>=1&&e[t]==="$"&&e[t-1]==="$"},Zi=e=>{let t=0;for(let r=0;r<e.length-1;r+=1)e[r]==="$"&&e[r+1]==="$"&&(t+=1,r+=1);return t},FT=e=>{let t=RT.test(e),r=OT.test(e);if(t||r)return[e];let n=kt.lex(e,{gfm:!0}),a=[],i=[];for(let s of n){let u=s.raw,l=a.length;if(i.length>0){if(a[l-1]+=u,s.type==="html"){let o=u.match(MT);if(o){let h=o[1];i.at(-1)===h&&i.pop()}}continue}if(s.type==="html"&&s.block){let o=u.match(PT);if(o){let h=o[1];u.includes(`</${h}>`)||i.push(h)}}if(u.trim()==="$$"&&l>0){let o=a[l-1],h=Ki(o),c=Zi(o);if(h&&c%2===1){a[l-1]=o+u;continue}}if(l>0&&BT(u)){let o=a[l-1],h=Ki(o),c=Zi(o),m=Zi(u);if(h&&c%2===1&&!Ki(u)&&m===1){a[l-1]=o+u;continue}}a.push(u)}return a},zT={raw:a6,katex:[m0,{errorColor:"var(--color-muted-foreground)"}],sanitize:[m6,{}],harden:[gf,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},HT={gfm:[T8,{}],math:[v0,{singleDollarTextMath:!1}],cjkFriendly:[U6,{}],cjkFriendlyGfmStrikethrough:[j6,{}]},UT=Object.values(zT),qT=Object.values(HT),jT={shikiTheme:["github-light","github-dark"],controls:!0,isAnimating:!1,mode:"streaming",mermaid:void 0},Lt=B.createContext(jT),rd=B.memo(({content:e,shouldParseIncompleteMarkdown:t,...r})=>{let n=B.useMemo(()=>typeof e=="string"&&t?mb(e.trim()):e,[e,t]);return I.jsx(td,{...r,children:n})},(e,t)=>{if(e.content!==t.content||e.shouldParseIncompleteMarkdown!==t.shouldParseIncompleteMarkdown||e.index!==t.index)return!1;if(e.components!==t.components){let r=Object.keys(e.components||{}),n=Object.keys(t.components||{});if(r.length!==n.length||r.some(a=>{var i,s;return((i=e.components)==null?void 0:i[a])!==((s=t.components)==null?void 0:s[a])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)});rd.displayName="Block";var $T=["github-light","github-dark"],Rs=B.memo(({children:e,mode:t="streaming",parseIncompleteMarkdown:r=!0,components:n,rehypePlugins:a=UT,remarkPlugins:i=qT,className:s,shikiTheme:u=$T,mermaid:l,controls:o=!0,isAnimating:h=!1,BlockComponent:c=rd,parseMarkdownIntoBlocksFn:m=FT,...g})=>{let E=B.useId(),[y,v]=B.useTransition(),[A,w]=B.useState([]),L=B.useMemo(()=>m(typeof e=="string"?e:""),[e,m]);B.useEffect(()=>{t==="streaming"?v(()=>{w(L)}):w(L)},[L,t]);let z=t==="streaming"?A:L,q=B.useMemo(()=>z.map((J,Q)=>`${E}-${Q}`),[z.length,E]),O=B.useMemo(()=>({shikiTheme:u,controls:o,isAnimating:h,mode:t,mermaid:l}),[u,o,h,t,l]),Y=B.useMemo(()=>({...NT,...n}),[n]);return B.useEffect(()=>{if(!(Array.isArray(a)&&a.some(U=>Array.isArray(U)?U[0]===m0:U===m0)))return;let J=!1;if(Array.isArray(i)){let U=i.find(le=>Array.isArray(le)?le[0]===v0:le===v0);U&&Array.isArray(U)&&U[1]&&(J=U[1].singleDollarTextMath===!0)}let Q=typeof e=="string"?e:"",P=Q.includes("$$"),Z=J&&(/[^$]\$[^$]/.test(Q)||/^\$[^$]/.test(Q)||/[^$]\$$/.test(Q));(P||Z)&&ja(()=>Promise.resolve({}),__vite__mapDeps([14]))},[a,i,e]),t==="static"?I.jsx(Lt.Provider,{value:O,children:I.jsx("div",{className:pe("space-y-4 whitespace-normal",s),children:I.jsx(td,{components:Y,rehypePlugins:a,remarkPlugins:i,...g,children:e})})}):I.jsx(Lt.Provider,{value:O,children:I.jsx("div",{className:pe("space-y-4 whitespace-normal",s),children:z.map((J,Q)=>I.jsx(c,{components:Y,content:J,index:Q,rehypePlugins:a,remarkPlugins:i,shouldParseIncompleteMarkdown:r,...g},q[Q]))})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.mode===t.mode);Rs.displayName="Streamdown";var YT=({children:e,className:t,minZoom:r=.5,maxZoom:n=3,zoomStep:a=.1,showControls:i=!0,initialZoom:s=1,fullscreen:u=!1})=>{let l=B.useRef(null),o=B.useRef(null),[h,c]=B.useState(s),[m,g]=B.useState({x:0,y:0}),[E,y]=B.useState(!1),[v,A]=B.useState({x:0,y:0}),[w,L]=B.useState({x:0,y:0}),z=B.useCallback(U=>{c(le=>Math.max(r,Math.min(n,le+U)))},[r,n]),q=B.useCallback(()=>{z(a)},[z,a]),O=B.useCallback(()=>{z(-a)},[z,a]),Y=B.useCallback(()=>{c(s),g({x:0,y:0})},[s]),J=B.useCallback(U=>{U.preventDefault();let le=U.deltaY>0?-a:a;z(le)},[z,a]),Q=B.useCallback(U=>{if(U.button!==0||U.isPrimary===!1)return;y(!0),A({x:U.clientX,y:U.clientY}),L(m);let le=U.currentTarget;le instanceof HTMLElement&&le.setPointerCapture(U.pointerId)},[m]),P=B.useCallback(U=>{if(!E)return;U.preventDefault();let le=U.clientX-v.x,ae=U.clientY-v.y;g({x:w.x+le,y:w.y+ae})},[E,v,w]),Z=B.useCallback(U=>{y(!1);let le=U.currentTarget;le instanceof HTMLElement&&le.releasePointerCapture(U.pointerId)},[]);return B.useEffect(()=>{let U=l.current;if(U)return U.addEventListener("wheel",J,{passive:!1}),()=>{U.removeEventListener("wheel",J)}},[J]),B.useEffect(()=>{let U=o.current;if(U&&E)return document.body.style.userSelect="none",U.addEventListener("pointermove",P,{passive:!1}),U.addEventListener("pointerup",Z),U.addEventListener("pointercancel",Z),()=>{document.body.style.userSelect="",U.removeEventListener("pointermove",P),U.removeEventListener("pointerup",Z),U.removeEventListener("pointercancel",Z)}},[E,P,Z]),I.jsxs("div",{className:pe("relative",u?"h-full w-full":"w-full",t),ref:l,style:{cursor:E?"grabbing":"grab"},children:[i&&I.jsxs("div",{className:pe("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm",u?"bottom-4 left-4":"bottom-2 left-2"),children:[I.jsx("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:h>=n,onClick:q,title:"Zoom in",type:"button",children:I.jsx(Nd,{size:16})}),I.jsx("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:h<=r,onClick:O,title:"Zoom out",type:"button",children:I.jsx(_d,{size:16})}),I.jsx("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:Y,title:"Reset zoom and pan",type:"button",children:I.jsx(Id,{size:16})})]}),I.jsx("div",{className:pe("origin-center transition-transform duration-150 ease-out",u&&"flex w-full items-center justify-center"),onPointerDown:Q,ref:o,role:"application",style:{transform:`translate(${m.x}px, ${m.y}px) scale(${h})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},nd=({chart:e,className:t,config:r,fullscreen:n=!1,showControls:a=!0})=>{let[i,s]=B.useState(null),[u,l]=B.useState(!0),[o,h]=B.useState(""),[c,m]=B.useState(""),[g,E]=B.useState(0),{mermaid:y}=B.useContext(Lt),v=y?.errorComponent;if(B.useEffect(()=>{(async()=>{try{s(null),l(!0);let w=await Nh(r),L=e.split("").reduce((O,Y)=>(O<<5)-O+Y.charCodeAt(0)|0,0),z=`mermaid-${Math.abs(L)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:q}=await w.render(z,e);h(q),m(q)}catch(w){if(!(c||o)){let L=w instanceof Error?w.message:"Failed to render Mermaid chart";s(L)}}finally{l(!1)}})()},[e,r,g]),u&&!o&&!c)return I.jsx("div",{className:pe("my-4 flex justify-center p-4",t),children:I.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[I.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),I.jsx("span",{className:"text-sm",children:"Loading diagram..."})]})});if(i&&!o&&!c){let w=()=>E(L=>L+1);return v?I.jsx(v,{chart:e,error:i,retry:w}):I.jsxs("div",{className:pe("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[I.jsxs("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",i]}),I.jsxs("details",{className:"mt-2",children:[I.jsx("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),I.jsx("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]})}let A=o||c;return I.jsx(YT,{className:pe(n?"h-full w-full overflow-hidden":"my-4 overflow-hidden",t),fullscreen:n,maxZoom:3,minZoom:.5,showControls:a,zoomStep:.1,children:I.jsx("div",{"aria-label":"Mermaid chart",className:pe("flex justify-center",n&&"h-full w-full items-center"),dangerouslySetInnerHTML:{__html:A},role:"img"})})};const Kl=({className:e,from:t,...r})=>I.jsx("div",{className:He("group flex w-full max-w-[95%] flex-col gap-2",t==="user"?"is-user ml-auto justify-end":"is-assistant",e),...r}),Zl=({children:e,className:t,...r})=>I.jsx("div",{className:He("is-user:dark flex w-fit max-w-full min-w-0 flex-col gap-2 overflow-hidden text-sm","group-[.is-user]:ml-auto group-[.is-user]:rounded-lg group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground","group-[.is-assistant]:text-foreground",t),...r,children:e}),ad=B.createContext(null),VT=()=>{const e=B.useContext(ad);if(!e)throw new Error("MessageBranch components must be used within MessageBranch");return e},Jl=({defaultBranch:e=0,onBranchChange:t,className:r,...n})=>{const[a,i]=B.useState(e),[s,u]=B.useState([]),l=m=>{i(m),t?.(m)},o=()=>{const m=a>0?a-1:s.length-1;l(m)},h=()=>{const m=a<s.length-1?a+1:0;l(m)},c={currentBranch:a,totalBranches:s.length,goToPrevious:o,goToNext:h,branches:s,setBranches:u};return I.jsx(ad.Provider,{value:c,children:I.jsx("div",{className:He("grid w-full gap-2 [&>div]:pb-0",r),...n})})},eo=({children:e,...t})=>{const{currentBranch:r,setBranches:n,branches:a}=VT(),i=Array.isArray(e)?e:[e];return B.useEffect(()=>{a.length!==i.length&&n(i)},[i,a,n]),i.map((s,u)=>I.jsx("div",{className:He("grid gap-2 overflow-hidden [&>div]:pb-0",u===r?"block":"hidden"),...t,children:s},s.key))},id=B.memo(({className:e,...t})=>I.jsx(Rs,{className:He("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...t}),(e,t)=>e.children===t.children);id.displayName="MessageResponse";const GT="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let WT=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=GT[r[e]&63];return t};const XT=B.createContext(null),QT=B.createContext(null),sd=()=>B.useContext(XT),KT=()=>B.useContext(QT),ud=B.createContext(null),ZT=()=>{const e=KT(),t=B.useContext(ud),r=e??t;if(!r)throw new Error("usePromptInputAttachments must be used within a PromptInput or PromptInputProvider");return r},JT=({className:e,accept:t,multiple:r,globalDrop:n,syncHiddenInput:a,maxFiles:i,maxFileSize:s,onError:u,onSubmit:l,children:o,...h})=>{const c=sd(),m=!!c,g=B.useRef(null),E=B.useRef(null),[y,v]=B.useState([]),A=m?c.attachments.files:y,w=B.useRef(A);w.current=A;const L=B.useCallback(()=>{g.current?.click()},[]),z=B.useCallback(se=>!t||t.trim()===""?!0:t.split(",").map(fe=>fe.trim()).filter(Boolean).some(fe=>{if(fe.endsWith("/*")){const N=fe.slice(0,-1);return se.type.startsWith(N)}return se.type===fe}),[t]),q=B.useCallback(se=>{const Te=Array.from(se),fe=Te.filter(Ce=>z(Ce));if(Te.length&&fe.length===0){u?.({code:"accept",message:"No files match the accepted types."});return}const N=Ce=>s?Ce.size<=s:!0,Ee=fe.filter(N);if(fe.length>0&&Ee.length===0){u?.({code:"max_file_size",message:"All files exceed the maximum size."});return}v(Ce=>{const D=typeof i=="number"?Math.max(0,i-Ce.length):void 0,Xe=typeof D=="number"?Ee.slice(0,D):Ee;typeof D=="number"&&Ee.length>D&&u?.({code:"max_files",message:"Too many files. Some were not added."});const Qe=[];for(const Oe of Xe)Qe.push({id:WT(),type:"file",url:URL.createObjectURL(Oe),mediaType:Oe.type,filename:Oe.name});return Ce.concat(Qe)})},[z,i,s,u]),O=B.useCallback(se=>v(Te=>{const fe=Te.find(N=>N.id===se);return fe?.url&&URL.revokeObjectURL(fe.url),Te.filter(N=>N.id!==se)}),[]),Y=B.useCallback(()=>v(se=>{for(const Te of se)Te.url&&URL.revokeObjectURL(Te.url);return[]}),[]),J=m?c.attachments.add:q,Q=m?c.attachments.remove:O,P=m?c.attachments.clear:Y,Z=m?c.attachments.openFileDialog:L;B.useEffect(()=>{m&&c.__registerFileInput(g,()=>g.current?.click())},[m,c]),B.useEffect(()=>{a&&g.current&&A.length===0&&(g.current.value="")},[A,a]),B.useEffect(()=>{const se=E.current;if(!se||n)return;const Te=N=>{N.dataTransfer?.types?.includes("Files")&&N.preventDefault()},fe=N=>{N.dataTransfer?.types?.includes("Files")&&N.preventDefault(),N.dataTransfer?.files&&N.dataTransfer.files.length>0&&J(N.dataTransfer.files)};return se.addEventListener("dragover",Te),se.addEventListener("drop",fe),()=>{se.removeEventListener("dragover",Te),se.removeEventListener("drop",fe)}},[J,n]),B.useEffect(()=>{if(!n)return;const se=fe=>{fe.dataTransfer?.types?.includes("Files")&&fe.preventDefault()},Te=fe=>{fe.dataTransfer?.types?.includes("Files")&&fe.preventDefault(),fe.dataTransfer?.files&&fe.dataTransfer.files.length>0&&J(fe.dataTransfer.files)};return document.addEventListener("dragover",se),document.addEventListener("drop",Te),()=>{document.removeEventListener("dragover",se),document.removeEventListener("drop",Te)}},[J,n]),B.useEffect(()=>()=>{if(!m)for(const se of w.current)se.url&&URL.revokeObjectURL(se.url)},[m]);const U=se=>{se.currentTarget.files&&J(se.currentTarget.files),se.currentTarget.value=""},le=async se=>{try{const fe=await(await fetch(se)).blob();return new Promise(N=>{const Ee=new FileReader;Ee.onloadend=()=>N(Ee.result),Ee.onerror=()=>N(null),Ee.readAsDataURL(fe)})}catch{return null}},ae=B.useMemo(()=>({files:A.map(se=>({...se,id:se.id})),add:J,remove:Q,clear:P,openFileDialog:Z,fileInputRef:g}),[A,J,Q,P,Z]),ee=se=>{se.preventDefault();const Te=se.currentTarget,fe=m?c.textInput.value:new FormData(Te).get("message")||"";m||Te.reset(),Promise.all(A.map(async({id:N,...Ee})=>{if(Ee.url?.startsWith("blob:")){const Ce=await le(Ee.url);return{...Ee,url:Ce??Ee.url}}return Ee})).then(N=>{try{const Ee=l({text:fe,files:N},se);Ee instanceof Promise?Ee.then(()=>{P(),m&&c.textInput.clear()}).catch(()=>{}):(P(),m&&c.textInput.clear())}catch{}}).catch(()=>{})},be=I.jsxs(I.Fragment,{children:[I.jsx("input",{accept:t,"aria-label":"Upload files",className:"hidden",multiple:r,onChange:U,ref:g,title:"Upload files",type:"file"}),I.jsx("form",{className:He("w-full",e),onSubmit:ee,ref:E,...h,children:I.jsx(zd,{className:"overflow-hidden",children:o})})]});return m?be:I.jsx(ud.Provider,{value:ae,children:be})},ex=({className:e,...t})=>I.jsx("div",{className:He("contents",e),...t}),tx=({onChange:e,className:t,placeholder:r="What would you like to know?",...n})=>{const a=sd(),i=ZT(),[s,u]=B.useState(!1),l=c=>{if(c.key==="Enter"){if(s||c.nativeEvent.isComposing||c.shiftKey)return;c.preventDefault();const m=c.currentTarget.form;if(m?.querySelector('button[type="submit"]')?.disabled)return;m?.requestSubmit()}if(c.key==="Backspace"&&c.currentTarget.value===""&&i.files.length>0){c.preventDefault();const m=i.files.at(-1);m&&i.remove(m.id)}},o=c=>{const m=c.clipboardData?.items;if(!m)return;const g=[];for(const E of m)if(E.kind==="file"){const y=E.getAsFile();y&&g.push(y)}g.length>0&&(c.preventDefault(),i.add(g))},h=a?{value:a.textInput.value,onChange:c=>{a.textInput.setInput(c.currentTarget.value),e?.(c)}}:{onChange:e};return I.jsx(Hd,{className:He("field-sizing-content max-h-48 min-h-16",t),name:"message",onCompositionEnd:()=>u(!1),onCompositionStart:()=>u(!0),onKeyDown:l,onPaste:o,placeholder:r,...n,...h})},rx=({className:e,...t})=>I.jsx(Ud,{align:"block-end",className:He("justify-between justify-end gap-1",e),...t}),nx=({className:e,variant:t="default",size:r="icon-sm",status:n,children:a,...i})=>{let s=I.jsx(Dd,{className:"size-4"});return n==="submitted"?s=I.jsx(Ld,{className:"size-4 animate-spin"}):n==="streaming"?s=I.jsx(Rd,{className:"size-4"}):n==="error"&&(s=I.jsx(Od,{className:"size-4"})),I.jsx(qd,{"aria-label":"Submit",className:He(e),size:r,type:"submit",variant:t,...i,children:a??s})};function ax({...e}){return I.jsx(Ed,{"data-slot":"collapsible",...e})}function ix({...e}){return I.jsx(Td,{"data-slot":"collapsible-trigger",...e})}function sx({...e}){return I.jsx(xd,{"data-slot":"collapsible-content",...e})}const ux=({children:e,as:t="p",className:r,duration:n=2,spread:a=2})=>{const i=B.useMemo(()=>(e?.length??0)*a,[e,a]);return I.jsx(t,{className:He("relative inline-block bg-size-[250%_100%,auto] bg-clip-text text-transparent","[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]","animate-shimmer",r),style:{"--spread":`${i}px`,"--duration":`${n}s`,backgroundImage:"var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))"},children:e})},lx=B.memo(ux),ld=B.createContext(null),ox=()=>{const e=B.useContext(ld);if(!e)throw new Error("Reasoning components must be used within Reasoning");return e},cx=1e3,hx=1e3,od=B.memo(({className:e,isStreaming:t=!1,open:r,defaultOpen:n=!0,onOpenChange:a,duration:i,children:s,...u})=>{const[l,o]=Ms({prop:r,defaultProp:n,onChange:a}),[h,c]=Ms({prop:i,defaultProp:void 0}),[m,g]=B.useState(!1),[E,y]=B.useState(null);B.useEffect(()=>{t?E===null&&y(Date.now()):E!==null&&(c(Math.ceil((Date.now()-E)/hx)),y(null))},[t,E,c]),B.useEffect(()=>{if(n&&!t&&l&&!m){const A=setTimeout(()=>{o(!1),g(!0)},cx);return()=>clearTimeout(A)}},[t,l,n,o,m]);const v=A=>{o(A)};return I.jsx(ld.Provider,{value:{isStreaming:t,isOpen:l,setIsOpen:o,duration:h},children:I.jsx(ax,{className:He("not-prose mb-4",e),onOpenChange:v,open:l,...u,children:s})})}),dx=(e,t)=>e||t===0?I.jsx(lx,{duration:1,children:"Thinking..."}):t===void 0?I.jsx("p",{children:"Thought for a few seconds"}):I.jsxs("p",{children:["Thought for ",t," seconds"]}),cd=B.memo(({className:e,children:t,getThinkingMessage:r=dx,...n})=>{const{isStreaming:a,isOpen:i,duration:s}=ox();return I.jsx(ix,{className:He("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...n,children:t??I.jsxs(I.Fragment,{children:[I.jsx(Md,{className:"size-4"}),r(a,s),I.jsx(Pd,{className:He("size-4 transition-transform",i?"rotate-180":"rotate-0")})]})})}),hd=B.memo(({className:e,children:t,...r})=>I.jsx(sx,{className:He("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...r,children:I.jsx(Rs,{...r,children:t})}));od.displayName="Reasoning";cd.displayName="ReasoningTrigger";hd.displayName="ReasoningContent";const fx=({className:e,children:t,...r})=>I.jsxs(Vd,{className:"w-full overflow-x-auto whitespace-nowrap",...r,children:[I.jsx("div",{className:He("flex w-max flex-nowrap items-center gap-2",e),children:t}),I.jsx(Gd,{className:"hidden",orientation:"horizontal"})]}),mx=({suggestion:e,onClick:t,className:r,variant:n="outline",size:a="sm",children:i,...s})=>{const u=()=>{t?.(e)};return I.jsx(R0,{className:He("cursor-pointer rounded-full px-4",r),onClick:u,size:a,type:"button",variant:n,...s,children:i||e})},px=()=>{const{rateLimit:e,refetchRateLimit:t}=Kd(),[r,n]=B.useState(""),{isSheetOpen:a,closeSheet:i}=jd(),{messages:s,sendMessage:u,isLoading:l,clear:o,stop:h}=kd({connection:vd(`${Yd.BASE_URL}/chat`),onError:v=>console.error("Error:",v.message),onResponse:v=>console.log("Response:",v),onFinish:v=>{console.log("Finish:",v),t()}}),c=v=>{const A=!!v.text,w=!!v.files?.length;!(A||w)||l||(u(v.text),n(""))},m=()=>{o(),n("")},g=v=>{u(v),n("")},E=()=>{h(),n("")},y=l?"streaming":"ready";return I.jsx($d,{title:"AI Assistant",cta:I.jsxs("div",{className:"flex items-center gap-2",children:[e&&I.jsxs(Wd,{children:[I.jsx(Xd,{asChild:!0,children:I.jsxs("span",{className:"text-xs px-2 py-1 cursor-default text-muted-foreground",children:[e.remaining,"/",e.limit]})}),I.jsx(Qd,{side:"bottom",children:I.jsxs("p",{children:[e.remaining," messages remaining"]})})]}),I.jsxs(R0,{type:"button",variant:"outline",size:"lg",onClick:m,disabled:l,children:[I.jsx(Bd,{className:"h-4 w-4 mr-1"}),"New Chat"]})]}),closeButton:!1,open:a("ai-assistant"),size:"max-w-2xl!",contentClassName:"p-0 flex flex-col h-[calc(100vh-4rem)] flex-1",onOpenChange:v=>{v||i("ai-assistant")},children:I.jsxs("div",{className:"relative flex size-full flex-col divide-y overflow-hidden",children:[I.jsxs(sf,{children:[I.jsx(uf,{children:s.length===0?I.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:I.jsxs("div",{className:"text-center space-y-2",children:[I.jsx("p",{className:"text-lg font-medium",children:"Start a new conversation"}),I.jsx("p",{className:"text-sm",children:"Ask me anything to get started"})]})}):I.jsxs(I.Fragment,{children:[s.map(v=>{const A=v.parts.filter(z=>z.type==="thinking"),w=v.parts.filter(z=>z.type==="text").map(z=>z.content).join(""),L=A.length>0;return I.jsx(Jl,{defaultBranch:0,children:I.jsx(eo,{children:I.jsx(Kl,{from:v.role==="user"?"user":"assistant",children:I.jsxs("div",{children:[L&&v.role==="assistant"&&I.jsxs(od,{duration:0,children:[I.jsx(cd,{}),I.jsx(hd,{children:A.map(z=>z.content).join(`
377
+ `)})]}),I.jsx(Zl,{children:I.jsx(id,{children:w})})]})})})},v.id)}),l&&I.jsx(Jl,{defaultBranch:0,children:I.jsx(eo,{children:I.jsx(Kl,{from:"assistant",children:I.jsx(Zl,{children:I.jsx(of,{children:"Thinking..."})})})})})]})}),I.jsx(lf,{})]}),I.jsxs("div",{className:"grid shrink-0 gap-4 pt-3",children:[s.length===0&&I.jsx(fx,{className:"px-4",children:Zd.map(v=>I.jsx(mx,{onClick:()=>g(v),suggestion:v,size:"lg",children:v},v))}),I.jsx("div",{className:"w-full px-4 pb-4",children:I.jsxs(JT,{globalDrop:!0,multiple:!0,onSubmit:c,children:[I.jsx(ex,{children:I.jsx(tx,{onChange:v=>n(v.target.value),value:r,placeholder:"Type a message..."})}),I.jsx(rx,{children:I.jsx(nx,{className:"h-8!",status:y,onClick:l?E:void 0,disabled:e&&e.remaining===0})})]})})]})]})})},Sx=Object.freeze(Object.defineProperty({__proto__:null,ChatSidebar:px},Symbol.toStringTag,{value:"Module"})),gx=Object.freeze(Object.defineProperty({__proto__:null,Mermaid:nd},Symbol.toStringTag,{value:"Module"}));export{Lt as C,cT as D,po as a,go as b,rl as c,g2 as d,wx as e,Va as f,Sx as g,Wn as h,Ne as k,Er as s,pe as u,Tb as w,Rc as z};